Repository navigation
fix(pipeline-orchestrator): three Makefile targets named a Lambda that does not exist - #762
Merged
Merged
Conversation
…t does not exist
`make update-code`, `make logs` and `make invoke-test` all asked for
`spawn-pipeline-orchestrator-production`. That function has never existed
in any account: template.yaml sets
FunctionName: spawn-pipeline-orchestrator
with no environment suffix, and SAM has no say in it because the name is
explicit. Verified against the infra account — list-functions returns only
`spawn-pipeline-orchestrator`, get-function on the `-production` name is a
ResourceNotFoundException, and the only log group is
/aws/lambda/spawn-pipeline-orchestrator. So all three targets failed on a
name rather than doing anything, and always had.
`Environment` names the STACK, never the function. The function and stack
names now have a single definition each at the top of the Makefile, so the
Makefile and the template cannot drift apart again.
Also documents the trap that made this matter. `update-code` is a debug
shortcut, not a deploy: CloudFormation treats the S3 object pinned in the
template as the truth, so the next `make deploy` silently reverts whatever
update-function-code pushed — no warning, no failure. The target now says
so, in a comment and at runtime.
Removes `packaged.yaml`. It is a real `sam package` output, but from May,
pinning an object that matches neither the key the stack carried when #754
was filed nor the one live now, and nothing in the repo references it —
`make deploy` passes `--resolve-s3` and repackages every time. A stale
artifact that reads like an input is worse than no artifact.
Refs #754. The issue's premise — that no template for this stack exists in
the repo — is wrong and is corrected on the issue; template.yaml defines
every live resource, including the IAM role implicitly, and matches the
deployed stack resource-for-resource. Two items from the revised scope
remain: converging the live stack back to the SAM form, which touches
production and needs a reviewed change set first.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
scttfrdmn
added a commit
that referenced
this pull request
Oct 8, 2026
Promotes [Unreleased] to [0.126.0] and adds the compare link. MINOR, not PATCH, because this release contains a breaking change to a package other repos compile against: pkg/taskproto's three script generators now take a WrapperOptions struct and return an error (#765/#764). Pre-1.0 the project's rule is that a breaking change bumps MINOR. Also in this release: the cross-repo API surface gate that will report the next such change before it ships (#763/#679), `spawn logs` (#761), the spored console log tail it reads (#759), the MPI peer-SSH readiness poll (#758), and the remaining sleep-audit fixes plus the creation-stamp/orphan reaper work (#752, #755, #756, #757, #762). Release guard passed: both binaries report 0.126.0 for tag v0.126.0.
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 the real bug behind #754, whose stated premise was wrong.
The premise was wrong
#754 says the CloudFormation template for
spawn-pipeline-orchestratoris notin the repo. It is:
lambda/pipeline-orchestrator/template.yaml, a SAM templatethat matches the deployed stack resource-for-resource, including the IAM role
(implicitly, from its 7
Policies:entries — the live role carriesPipelineOrchestratorFunctionRolePolicy0…Policy6, which is SAM's generatednaming).
make deployalready deploys it. Full correction is on the issue.The real bug
Three targets named a function that has never existed:
update-codespawn-pipeline-orchestrator-productionResourceNotFoundExceptionlogs/aws/lambda/…-production/aws/lambda/spawn-pipeline-orchestratorinvoke-testspawn-pipeline-orchestrator-productionupdate-codetemplate.yamlsetsFunctionName: spawn-pipeline-orchestratorwith no suffix,and SAM has no say in it because the name is explicit.
Environmentnames thestack, never the function. Verified against the infra account:
list-functionsreturns only the unsuffixed name, and the only log group is theunsuffixed one. So all three failed on a name rather than doing anything, and
always had.
The names now have one definition each (
FUNCTION,STACK) at the top of thefile, so the Makefile and the template cannot drift apart again.
The trap that made it matter
update-codeis a debug shortcut, not a deploy. CloudFormation treats the S3object pinned in the template as the truth, so the next
make deploysilentlyreverts whatever
update-function-codepushed — no warning, no failure. Thatis what #754 was really circling. The target now says so in a comment and at
runtime.
packaged.yamlRemoved. It is a genuine
sam packageoutput — I claimed otherwise on the issueand corrected it — but from May, pinning an object matching neither the key the
stack held when #754 was filed nor the one live now, and nothing references
it:
make deploypasses--resolve-s3and repackages every time. A staleartifact that reads like an input is worse than no artifact.
Verification
make -non all five targets, confirming every one expands to a name that waschecked against the live account. Repo-only change — no AWS call, no deploy.
Format, vet,
-shorttests, changelog gate, docs-drift gate andsemgrep --config=auto --errorall clean locally.Deliberately not in this PR
The live stack currently carries the expanded,
Transform-less template,because the #752 deploy submitted the template it had retrieved. Converging it
back to the SAM form should be a no-op on resources — all four logical IDs are
identical — but that is a prediction about a production stack, so it wants
sam deploy --no-execute-changesetand a read of the change set first. #754stays open for it.