Skip to content

ci: speed up generate metadata#825

Merged
gilescope merged 4 commits into
mainfrom
push-subxt-into-ci-image
Mar 2, 2026
Merged

ci: speed up generate metadata#825
gilescope merged 4 commits into
mainfrom
push-subxt-into-ci-image

Conversation

@gilescope

@gilescope gilescope commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Overview

Consolidates tool installations (subxt-cli, cargo-auditable, Docker-in-Docker, Node.js 22) into the CI image so they don't need to be installed on every CI run. This speeds up metadata generation and other Earthly targets by removing redundant install steps.

Key changes:

  • Move subxt-cli, cargo-auditable, and Docker into node-ci-image-single-platform
  • Install Node.js 22 in the CI image, replacing three separate per-target Node.js installations with a single one (also unifies the version — was 22.13.1 in some places, now 22.22.0 everywhere)
  • Remove redundant microdnf install calls from prep-no-copy, build-test-toolkit, toolkit-js-prep, and check-deps
  • Metadata targets (get-metadata, rebuild-metadata, check-metadata) now use +prep-no-copy instead of the separate +subxt base + DIND

🗹 TODO before merging

  • Get approval
  • Republish CI image using this definition
  • Switch this PR back to using published CI image

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason: change only affects CI
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

CI will validate the Earthly targets still function correctly with the consolidated CI image.

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other
  • N/A

Links

#825

Signed-off-by: Giles Cope <gilescope@gmail.com>
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.19

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 99
LOW LOW 12
INFO INFO 83
TRACE TRACE 0
TOTAL TOTAL 194
Metric Values
Files scanned placeholder 31
Files parsed placeholder 31
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 11

Signed-off-by: Giles Cope <gilescope@gmail.com>
…t versions of node

Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope gilescope mentioned this pull request Mar 2, 2026
5 tasks
@gilescope gilescope marked this pull request as ready for review March 2, 2026 08:48
@gilescope gilescope requested a review from a team as a code owner March 2, 2026 08:48
@gilescope gilescope added this pull request to the merge queue Mar 2, 2026
@gilescope gilescope removed this pull request from the merge queue due to a manual request Mar 2, 2026
@gilescope

Copy link
Copy Markdown
Contributor Author

Running in updated CI image for rust 1.93: https://github.com/midnightntwrk/midnight-node/actions/runs/22573006125

Comment thread Earthfile Outdated
@gilescope gilescope enabled auto-merge March 2, 2026 11:33
@gilescope gilescope added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit 7b00a3f Mar 2, 2026
39 checks passed
@gilescope gilescope deleted the push-subxt-into-ci-image branch March 2, 2026 14:22
m2ux pushed a commit that referenced this pull request Mar 2, 2026
* chore: speed up generate metadata

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: remove redundent intalls (these are already in the ci image)

Signed-off-by: Giles Cope <gilescope@gmail.com>

* fix: stick node in CI image, use one version rather than two different versions of node

Signed-off-by: Giles Cope <gilescope@gmail.com>

* Apply suggestion from @gilescope

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
Klapeyron pushed a commit that referenced this pull request Mar 3, 2026
* chore: speed up generate metadata

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: remove redundent intalls (these are already in the ci image)

Signed-off-by: Giles Cope <gilescope@gmail.com>

* fix: stick node in CI image, use one version rather than two different versions of node

Signed-off-by: Giles Cope <gilescope@gmail.com>

* Apply suggestion from @gilescope

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
gilescope added a commit that referenced this pull request Mar 3, 2026
This reverts commit 7b00a3f.

Signed-off-by: Giles Cope <gilescope@gmail.com>
github-merge-queue Bot pushed a commit that referenced this pull request Mar 3, 2026
This reverts commit 7b00a3f.

Signed-off-by: Giles Cope <gilescope@gmail.com>
gilescope pushed a commit that referenced this pull request Apr 8, 2026
m2ux added a commit that referenced this pull request Apr 23, 2026
…or address (#825)

Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
…or address (#825)

Signed-off-by: Mike Clay <mike.clay@shielded.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants