Skip to content

A-1376 part 3: e2e test for filesystem integrity#4011

Merged
zhming0 merged 1 commit into
mainfrom
ming/a-1376-part-3
Jun 17, 2026
Merged

A-1376 part 3: e2e test for filesystem integrity#4011
zhming0 merged 1 commit into
mainfrom
ming/a-1376-part-3

Conversation

@zhming0

@zhming0 zhming0 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Description

Add end to end test coverage for fs integrity after cache restore, it was an issue in v1

Context

part of A-1376

Disclosures / Credits

Clanker and minion.

@zhming0 zhming0 requested review from a team as code owners June 17, 2026 01:57
@zhming0 zhming0 added the internal Non-user facing, internal change. label Jun 17, 2026
Base automatically changed from ming/a-1376-part-1 to main June 17, 2026 02:08
@zhming0 zhming0 requested a review from buildsworth-bk June 17, 2026 04:55
@buildsworth-bk-app

Copy link
Copy Markdown

On it! Follow along with my review here: https://buildkite.com/buildkite/buildsworth-review-pull-request/builds/811

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found one coverage gap against the stated filesystem cases: the home target is using tilde expansion rather than a true absolute path, so I don't think the absolute-path e2e coverage is there yet.

Want to dig deeper? The full session log is attached to this Buildkite build. Download the session file and open a new pi session with it:

Download the buildsworth logs from build 811, then answer my questions about the findings.

- { env: BUILDKITE_BUILD_ID }
target_paths:
- fs-test
- ~/cache-abs-fs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: This target doesn't exercise the true absolute-path case the PR/issue says this e2e covers. In the cache archive code, ~/... is handled by the tilde-expansion branch before the filepath.IsAbs(path) branch, so this would still pass without covering a literal $HOME/... target path. Could the fixture write the resolved $HOME/cache-abs-fs path into cache.yml for both save and restore?

@zhming0 zhming0 force-pushed the ming/a-1376-part-3 branch from 6877b34 to 1efd0dd Compare June 17, 2026 05:51
@zhming0

zhming0 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

@buildsworth-bk review again?

@buildsworth-bk-app

Copy link
Copy Markdown

On it! Follow along with my review here: https://buildkite.com/buildkite/buildsworth-review-pull-request/builds/816

@buildsworth-bk-app buildsworth-bk-app Bot dismissed their stale review June 17, 2026 05:55

Previous concerns have been addressed.

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous concern is resolved: the cache fixture now writes a resolved $HOME path into cache.yml, so the target path is literal absolute rather than tilde-expanded. This is a test-fixture-only change, so I read it as L1.

Want to dig deeper? The full session log is attached to this Buildkite build. Download the session file and open a new pi session with it:

Download the buildsworth logs from build 816, then answer my questions about the findings.

@zhming0 zhming0 enabled auto-merge June 17, 2026 05:56
@zhming0 zhming0 merged commit e7c5257 into main Jun 17, 2026
4 checks passed
@zhming0 zhming0 deleted the ming/a-1376-part-3 branch June 17, 2026 06:06
@buildkate buildkate mentioned this pull request Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Non-user facing, internal change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant