Skip to content

fix: warn when projects attach the same file - #12043

Merged
sheremet-va merged 1 commit into
mainfrom
fix/shared-attachment-warning
Nov 25, 2026
Merged

sheremet-va merged 1 commit into
mainfrom
fix/shared-attachment-warning

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

All projects share attachmentsDir, and the copy of an attachment is named after the path of the attached file. So when 2 projects attached the same file, both annotations pointed to 1 copy with the content of the project that attached it last.

The copy of a second project now gets the project name. Vitest also warns once per pair of projects, because the projects can still overwrite the attached file itself.

Stacked on #12042.

@flakiness-io

flakiness-io Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Test Results Summary

This comment shows the latest test results for this pull request.

Commit Status Test Results CI Runs
d413474 ✅ Passed 12968 passed · 156 flaky · 652 skipped 2 runs
⚠️ 156 flaky

⚠️ Ubuntu 26.04 · vmThreads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · vmThreads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · threads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · forks test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · forks test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · threads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · vmThreads test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
⚠️ Ubuntu 26.04 · forks test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
⚠️ Ubuntu 26.04 · threads test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
⚠️ Ubuntu 26.04 · vmThreads test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
…and 146 more

View full report

ℹ️ About Flakiness.io in GitHub

Your team has set up Flakiness.io pull request comments. This comment is updated when

  • The first test results arrive for this pull request
  • A later run reports more results for the same commit
  • A new commit is pushed and tested

Flakiness.io rewrites the comment in place, so it always reflects the most recently tested commit.

Base automatically changed from fix/failure-screenshot-instances to main November 24, 2026 20:27
@sheremet-va
sheremet-va force-pushed the fix/shared-attachment-warning branch from 6ff0f2c to d413474 Compare November 25, 2026 07:38
@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit d413474
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6b06906fbaf4bd41ac2fdf88
😎 Deploy Preview https://deploy-preview-12043--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va
sheremet-va merged commit 5f88473 into main Nov 25, 2026
9 of 28 checks passed
@sheremet-va
sheremet-va deleted the fix/shared-attachment-warning branch November 25, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant