Repository navigation
test(aws_s3): round-trip files from the repository, not the developer's home directory - #617
Merged
Merged
Conversation
…'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.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #570. The first
live-awsrun (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, becauseTestRealLocalDataskipped:No suitable local files found.That subtest searched
$HOME/Downloads,$HOME/srcand/Volumes/Public/genomics_trainingfor 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,.txtand.shover 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 byTestLargeFileUploadandTestMultipartUpload.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.jsonThe real check is a second dispatch of
live-awsonmainafter this merges.🤖 Generated with Claude Code