Skip to content

Adds three functions used by replicated-actions to surface airgap build failures#114

Merged
bennyyang11 merged 1 commit into
mainfrom
bennyyang/sc-136443/add-airgap-status
May 14, 2026
Merged

Adds three functions used by replicated-actions to surface airgap build failures#114
bennyyang11 merged 1 commit into
mainfrom
bennyyang/sc-136443/add-airgap-status

Conversation

@bennyyang11
Copy link
Copy Markdown
Contributor

Summary

Adds three airgap-build helpers used by replicated-actions#403 (sc-136443) to surface airgap build failures after a release promotion:

  • getAirgapBuildStatus — polls the dedicated /airgap/status endpoint for a single channel-release. Returns null on 404.
  • getLatestAirgapStatusForRelease — finds the latest channel-release for a given release sequence (handles multi-promote correctly).
  • getAirgapBundleDownloadURL — variant of getDownloadUrlAirgapBuildRelease that takes a pre-known channelSequence, skipping the redundant /releases scrape.

Also extends ChannelRelease with airgapBuildError and adds an AirgapBuildStatus interface matching the new wire shape from vandoor#9761.

Test plan

  • npm run build — clean
  • npx jest channels.spec — 15/15 passing (9 new mockttp-backed tests covering 200 / pending / 404 / 5xx / multi-promote / no-match / no-releases-array)
  • Once merged + published, replicated-actions#403 will be updated to import from this lib instead of inlining the HTTP calls (per JD's review)

@bennyyang11 bennyyang11 merged commit f48918c into main May 14, 2026
1 check passed
@bennyyang11 bennyyang11 deleted the bennyyang/sc-136443/add-airgap-status branch May 14, 2026 19: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.

2 participants