Skip to content

ci: parallelize CRN install with CCN stack + contract deploy#13

Open
odesenfans wants to merge 1 commit intomainfrom
od/speed-up-ci
Open

ci: parallelize CRN install with CCN stack + contract deploy#13
odesenfans wants to merge 1 commit intomainfrom
od/speed-up-ci

Conversation

@odesenfans
Copy link
Copy Markdown
Contributor

Summary

  • Parallelize CRN --install with CCN --up + --deploy-contracts in the PR integration-tests workflow. Both branches' logs are captured and printed after wait so failures stay easy to read.
  • Split the CRN state prep (droplet name/IP files, SSH key copy) into its own fast step so both parallel branches have what they need.
  • --register stays serial since it needs the CCN aggregate up and accounts funded from contract deploy.

Expected saving: ~2-3 min off the ~15 min pipeline — the CRN install step (~3-4 min sequentially) now overlaps with the ~3 min of CCN stack-up + contract-deploy work.

Separate follow-ups (not in this PR):

  • Pre-baked DigitalOcean snapshot with docker/foundry/aleph-vm .deb pre-installed (bigger saving, needs its own nightly refresh workflow).
  • Investigate submodule-recursion cost in checkout (~2 min).

Test plan

  • CI run on this PR completes green.
  • Wall-clock time noticeably lower than prior successful runs (~15 min baseline).
  • On failure, ccn.log and crn-install.log sections are both present in the step output.

Splits the sequential "Start stack → Deploy contracts → Install and
register CRN" block into a parallel phase (CCN up + deploy contracts ||
CRN --install) followed by a serial --register step. CRN state setup is
moved to its own fast prep step so both branches have what they need.
Both sides' logs are captured and printed after wait so failures remain
easy to diagnose.

Expected saving: 2-3 min off the ~15 min PR pipeline.
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.

1 participant