Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Fixes #1013
Stacked on #1012 (fix/989), itself on #988 → #980 → #972 → #957 → #942 → #931. Review and merge after #1012; the diff here is only the commit on top of it.
What
The orchestrator's stage user data no longer exports
SPAWN_RESULT_S3_BUCKETandSPAWN_RESULT_S3_PREFIX. They carried the deprecatedresult_s3_bucket/result_s3_prefix(#989). The stage's instance profile (pipeline.StageDataPolicy) grants onlys3_bucket/<s3_prefix>/*, so a command that wrote there got AccessDenied, andspawn pipeline collectno longer reads them anyway.I removed them rather than exporting them empty. Nothing in the repo reads them: not the stage runner (
pkg/pipeline/stage_runner.gopassesos.Environ()plusSPAWN_PIPELINE_ID/STAGE_ID/STAGE_INDEX), not the examples, not the docs. They were never documented as part of the stage environment.validate,launchandcollectalready warn when a definition sets the fields (#1012).ResultS3Bucket/ResultS3Prefixstay onPipelineStateso records in flight still decode.Test
TestStageCommandIsNotGivenTheDeprecatedResultLocationruns the real user data under the existing fakes, with a state that setsresult_s3_bucket/prefix. Its fakesporeddumps the environment that the real runner hands to the command, and the test asserts that noSPAWN_RESULT_S3_*assignment appears.SPAWN_S3_BUCKET=bktis checked as a control, which shows the dump itself works. With the old exports restored (a revert that compiles), the test fails with["SPAWN_RESULT_S3_BUCKET=results-bkt" "SPAWN_RESULT_S3_PREFIX=results/pfx"].make check: everything passes exceptTestGenerateWrapper_ChownFixesCrossUIDStickyUnlink_Docker, which is the known Docker-only failure (no Docker on this machine).make check-nested: all 9 modules clean. Semgrep (--config=auto) on the changed files: 0 findings.Deploy
The
spawn-pipeline-orchestratorLambda has to be redeployed for this to take effect. The user data is generated in the Lambda, so stages launched by the deployed function keep getting the variables until then. No AWS resources were touched for this PR.