Skip to content

[DX-3581] CRE system tests with public images#21748

Merged
Tofel merged 1 commit intodevelopfrom
dx-3581-cre-system-tests-public-image
Apr 2, 2026
Merged

[DX-3581] CRE system tests with public images#21748
Tofel merged 1 commit intodevelopfrom
dx-3581-cre-system-tests-public-image

Conversation

@Tofel
Copy link
Copy Markdown
Contributor

@Tofel Tofel commented Mar 27, 2026

  • adds a dedicated bash script for resolving chainlink image to use in the workflow
  • bumps a couple of actions' versions

Tests:

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Mar 27, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@Tofel Tofel marked this pull request as ready for review March 30, 2026 06:27
@Tofel Tofel requested review from a team as code owners March 30, 2026 06:27
Copilot AI review requested due to automatic review settings March 30, 2026 06:27
Copy link
Copy Markdown
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

Risk Rating: MEDIUM

Adds a dedicated Chainlink image resolver (with tests) so CRE system tests can run against either public ECR images (full ref) or composed private ECR images (repo/tag/version), plus updates a few GitHub Action versions to support the new flow.

Changes:

  • Introduces resolve-chainlink-image.sh and a bash test harness, and wires them into CRE system test execution.
  • Adds a dedicated workflow to run resolver tests on PRs that touch relevant workflows/scripts.
  • Updates workflow inputs and bumps action/tool versions (e.g., actions/checkout, amazon-ecr-login, gotestsum, CTF tag).

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/resolve-chainlink-image-tests.yml New CI workflow to run resolver bash tests when related files change.
.github/workflows/integration-tests.yml Updates checkout action version and switches CRE reusable-workflow input from ecr_name to chainlink_image_repo.
.github/workflows/cre-system-tests.yaml Adds new inputs (chainlink_full_image, chainlink_image_repo/tag), public ECR auth, and uses resolver output for CTF_CHAINLINK_IMAGE.
.github/scripts/resolve-chainlink-image.sh New resolver script that validates and selects the Chainlink image reference based on env vars.
.github/scripts/resolve-chainlink-image_test.sh New bash tests covering resolver priority, validation, and error cases.

Requires scrupulous human review:

  • .github/workflows/cre-system-tests.yaml: the new image-selection inputs + resolver wiring, and the AWS/ECR auth changes (private + public) since they directly affect CI reliability and credential usage.

Suggested reviewers (per CODEOWNERS):

  • @smartcontractkit/devex-cicd, @smartcontractkit/devex-tooling, @smartcontractkit/core (owners for /.github/**; see .github/CODEOWNERS:100-111).

erikburt
erikburt previously approved these changes Mar 31, 2026
mv ctf bin/ctf
chmod +x bin/ctf
echo "::endgroup::"
- name: Install Aptos CLI
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We have a reusable action for this dont we?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

@erikburt erikburt Apr 1, 2026

Choose a reason for hiding this comment

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

Still don't understand why this logic (and determine chainlink version) can't be put into into the actual go run . env start command? Seems like the appropriate place for it.

The logic to setup the env is being split up between shell scripts, GHAs, and go code. I think its best to consolidate it all.

Copy link
Copy Markdown
Contributor Author

@Tofel Tofel Apr 2, 2026

Choose a reason for hiding this comment

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

Logic to determine CL version is not restricted to the local CRE, but to all tests/workflows we want to run with both public and private images and these workflows include non-CRE tests.

I will look into installing Aptos CLI from Go code, but even if added to our automatic setup command, this command will not run CI, since what it does is not required in CI and would only increase execution time. Also, I did not add that step, just moved it around.

EDIT: refactored to use that official action.

…he pipeline; bump a couple of actions' versions
@Tofel Tofel force-pushed the dx-3581-cre-system-tests-public-image branch from d47870d to 8b7c536 Compare April 2, 2026 08:53
@Tofel Tofel enabled auto-merge April 2, 2026 15:40
@Tofel Tofel added this pull request to the merge queue Apr 2, 2026
Merged via the queue into develop with commit 8d4f0a1 Apr 2, 2026
117 checks passed
@Tofel Tofel deleted the dx-3581-cre-system-tests-public-image branch April 2, 2026 16:02
prashantkumar1982 pushed a commit that referenced this pull request Apr 2, 2026
add a dedicated bash script for resolving chainlink image to use in the pipeline; bump a couple of actions' versions
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.

4 participants