Skip to content

fix(ci): Contract Upgrade checks out main, not the retired next branch - #599

Merged
GTC6244 merged 1 commit into
mainfrom
fix/contract-upgrade-checkout-main
Jul 22, 2026
Merged

fix(ci): Contract Upgrade checks out main, not the retired next branch#599
GTC6244 merged 1 commit into
mainfrom
fix/contract-upgrade-checkout-main

Conversation

@GTC6244

@GTC6244 GTC6244 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Problem

The Contract Upgrade workflow failed with lit-api-server/NodeConfig.next.toml not found (run 29962175213), even though that file exists on main.

Root cause: the workflow coupled two things that shouldn't be coupled:

  • actions/checkout used ref: ${{ inputs.branch }} (default next), and
  • it then read NodeConfig.<branch>.toml from that checkout.

Dispatching with the default next checked out the next branch — which was retired in CPL-272 (3b0a7a2e, "main now drives staging deploys") and had its NodeConfig.next.toml deleted. origin/next is now 481 commits behind main.

Fix

All NodeConfig.*.toml files now live on main (NodeConfig.main.toml and NodeConfig.next.toml both present). So:

  • Always check out main.
  • The dispatch input now only selects which config to read; renamed branchtarget to reflect it picks a deploy target, not a git ref.

Both next and main targets now resolve their config correctly.

🤖 Generated with Claude Code

The Contract Upgrade workflow used `ref: ${{ inputs.branch }}` and then
read `NodeConfig.<branch>.toml` from that checkout. Dispatching with the
default (`next`) checked out the retired `next` branch, whose
NodeConfig.next.toml was deleted in CPL-272 when main took over staging
deploys — so the run failed with "NodeConfig.next.toml not found".

All NodeConfig.*.toml files now live on main, so always check out main and
let the input select only which config to read. Renamed the input from
`branch` to `target` to reflect that it picks a deploy target, not a git ref.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@GTC6244
GTC6244 requested review from a team and Copilot July 22, 2026 22:19
@GTC6244
GTC6244 merged commit da7c792 into main Jul 22, 2026
14 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the manual Contract Upgrade GitHub Actions workflow so it no longer checks out the retired next git branch when using the default dispatch input, while still allowing operators to choose which NodeConfig.<target>.toml (e.g., main vs next) to read for deployment configuration.

Changes:

  • Renames the dispatch input from branchtarget to reflect it selects a deploy target/config, not a git ref.
  • Forces actions/checkout to always check out main.
  • Updates concurrency grouping and config selection to use inputs.target.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants