Skip to content

test(aws_s3): round-trip files from the repository, not the developer's home directory - #617

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/570-aws-s3-no-home-files
Oct 18, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/570-aws-s3-no-home-files

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Refs #570. The first live-aws run (39157968388) failed on purpose, and the reason turned out to be worse than a skip.

What the run found

  • live-suite (integration): passed. OIDC role assumed, all 11 tag-only tests pass under the narrow role, conditional writes included.
  • live-suite (aws_s3): failed, because TestRealLocalData skipped: No suitable local files found.

That subtest searched $HOME/Downloads, $HOME/src and /Volumes/Public/genomics_training for PDFs, spreadsheets, VCFs and similar, and uploaded what it found to S3. So:

Fix

Files now come from the repository checkout: one each of .go, .md, .json, .yml, .yaml, .txt and .sh over 1 KB. They're the same on every machine, and nobody's private data. The byte-for-byte round trip and the range read are unchanged. Finding fewer than three types is a failure, not a skip, because the checkout is always there. Random binary content is already covered by TestLargeFileUpload and TestMultipartUpload.

I also dropped log lines claiming a "CargoShip optimization". That upload path was removed in v0.12.0.

Verification

Against real AWS, locally: 12/12 subtests, no skips, no bucket left. All seven files came from the repo:

bug_report.yml, PROJECTS.md, gosec-baseline.txt, create-v0.5.0-issues.sh, .markdownlint.yaml, main.go, artifacts.json

The real check is a second dispatch of live-aws on main after this merges.

🤖 Generated with Claude Code

…'s home directory (#570)

The first live-aws run failed on purpose: tagged suites may not skip, and
TestAWSS3Integration/TestRealLocalData skipped with 'No suitable local files
found'. It searched $HOME/Downloads, $HOME/src and
/Volumes/Public/genomics_training for PDFs, spreadsheets, VCFs and similar,
and uploaded what it found to S3. So on a developer's machine the suite
copied their personal files to a test bucket without anyone choosing it,
and on a runner it skipped, which read as a pass until skips stopped
counting.

The files now come from the repository checkout: one each of .go, .md,
.json, .yml, .yaml, .txt and .sh over 1KB, the same set everywhere and
nobody's private data. The byte-for-byte round trip and range read are
unchanged. Fewer than three types found is a failure, not a skip, since the
checkout is always present. Also drops log lines claiming a CargoShip
optimization that was removed with its upload path in v0.12.0.

Real AWS, local: 12/12 subtests, no skips, no bucket left, the seven files
all from the repository.
@scttfrdmn
scttfrdmn merged commit 108fbf6 into main Oct 18, 2026
58 checks passed
@scttfrdmn
scttfrdmn deleted the fix/570-aws-s3-no-home-files branch October 18, 2026 21:01
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