You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lexicon-upgrade: pinned lexicons fail as unsupported because pin discovery needs generated files #5483
The scheduled lexicon-upgrade.yml has failed on its last four weekly runs (43884521514, 42637412312, 41460164152, 40318435417). In each one the same five legs fail (k8s, gcp, docker, gitlab, cedar) and aws, azure, github and fly pass.
The failing step prints nothing because stdout goes to upgrade-<lexicon>.json and bash -e exits before cat. The uploaded artifact has the error, the same in every run and every failing leg:
Lexicon "k8s" is not supported by LexiconUpgradeOp. Supported: the rolling lexicons (aws, azure, github, fly) and any lexicon whose plugin declares upstreamPin.
Cause
loadUpstreamPins (packages/core/src/codegen/pinned-upgrade.ts) imports the lexicon's package entry, src/index.ts, which re-exports ./generated/index. The workflow checks out and runs npm install with no generate step, so src/generated/ does not exist, the import throws, the catch swallows it, the package-name fallback fails the same way, and the Op sees no pin. Reproduced on a fresh worktree of main: every pinned lexicon's src/index.ts import fails with Cannot find module .../src/generated/index, while each src/plugin.ts loads fine.
Since #5473 azure is a pinned lexicon too (removed from ROLLING_LEXICONS), so the azure leg would now fail the same way, and the #5452 line "the first weekly azure-upgrade after merge reports the next bump" can never be met.
Fix
When the package entry cannot be imported, loadUpstreamPins tries the lexicon's src/plugin.ts, which declares the pin and imports nothing generated. A test covers a lexicon directory with no generated barrel.
The workflow step prints the Op's JSON before it exits non-zero, so the error shows in the job log.
Activity