Skip to content

[DX-3066] set CL image env var used by simple nodeset#2457

Merged
Tofel merged 1 commit intomainfrom
dx-3131-upgrade-pipeline-cre
Mar 3, 2026
Merged

[DX-3066] set CL image env var used by simple nodeset#2457
Tofel merged 1 commit intomainfrom
dx-3131-upgrade-pipeline-cre

Conversation

@Tofel
Copy link
Contributor

@Tofel Tofel commented Mar 3, 2026


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes introduce functionalities aimed at improving usability and flexibility. Specifically, they allow for skipping the docker pull step during testing, which is useful for working with locally built images. Additionally, setting the CTF_CHAINLINK_IMAGE environment variable ensures that both the development environment and simple node setups use the specified Chainlink node image.

What

  • framework/.changeset/v0.15.1.md
    • Added a changeset entry for setting CTF_CHAINLINK_IMAGE in the compat command. This documents the update for release.
  • framework/cmd/main.go
    • Added a skip-pull flag to the compat backward command to skip docker pull steps. This is particularly useful for local testing with locally built images.
    • Set CTF_CHAINLINK_IMAGE environment variable alongside CHAINLINK_IMAGE during the compatibility testing command. This ensures the specified Chainlink image is used across different setups.
    • Modified a log message to include buildcmd in the list of commands that if not provided, will result in skipping certain operations. This clarifies the actions taken when specific commands are not specified.

@Tofel Tofel requested a review from a team as a code owner March 3, 2026 16:19
Copilot AI review requested due to automatic review settings March 3, 2026 16:19
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

👋 Tofel, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the compat backward CLI workflow to better support simple nodesets by exporting the Chainlink image override via CTF_CHAINLINK_IMAGE, and adds a flag to optionally skip pulling Docker images during upgrade iterations.

Changes:

  • Set CTF_CHAINLINK_IMAGE (in addition to CHAINLINK_IMAGE) before running the compat backward sequence.
  • Add --skip-pull flag to bypass docker pull during node upgrade steps.
  • Add a framework changeset entry documenting the new env var behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
framework/cmd/main.go Adds --skip-pull, sets CTF_CHAINLINK_IMAGE, and conditionally skips docker pull during upgrades.
framework/.changeset/v0.15.1.md Documents the addition of CTF_CHAINLINK_IMAGE in the compat command behavior.

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

Comment on lines 400 to 402
if buildcmd == "" || envcmd == "" || testcmd == "" {
framework.L.Info().Msg("No envcmd or testcmd provided, skipping")
framework.L.Info().Msg("No envcmd or testcmd or buildcmd provided, skipping")
return nil
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The log message is misleading: the condition triggers when any of buildcmd/envcmd/testcmd is empty, but the message reads as if none were provided. Consider wording that indicates all three are required (or specify which one is missing).

Copilot uses AI. Check for mistakes.
@Tofel Tofel merged commit b84aed9 into main Mar 3, 2026
79 of 83 checks passed
@Tofel Tofel deleted the dx-3131-upgrade-pipeline-cre branch March 3, 2026 17:02
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.

3 participants