Skip to content

refactor(wait)!: create wait package and call it directly within actions#4549

Merged
AustinAbro321 merged 30 commits intomainfrom
call-wait-directly
Feb 4, 2026
Merged

refactor(wait)!: create wait package and call it directly within actions#4549
AustinAbro321 merged 30 commits intomainfrom
call-wait-directly

Conversation

@AustinAbro321
Copy link
Copy Markdown
Member

@AustinAbro321 AustinAbro321 commented Jan 23, 2026

Breaking changes:

  • This deletes utils.ExecuteWait, in favor of two new functions in the new package src/pkg/wait. wait.ForResource and wait.ForNetwork. These functions no longer have both the parameter waitTimeout string and timeout time.Duration and instead only accept timeout time.Duration

Description

.actions.wait currently calls shells out to zarf tools wait-for. It makes more sense to call the wait functions directly. This makes us less reliant on shelling out (though it's still necessary for now when zarf tools kubectl wait is called by utils.ExecuteWait(). For now...

New e2e test takes ~6 seconds

Relates to #4550

Checklist before merging

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 23, 2026

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit 0d5655c
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6983491a34f2cf0008a042c1
😎 Deploy Preview https://deploy-preview-4549--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@AustinAbro321 AustinAbro321 changed the title refactor: call wait function directly instead of shelling out refactor: call wait directly within actions instead of shelling out Jan 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2026

Codecov Report

❌ Patch coverage is 4.22535% with 68 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/packager/actions/actions.go 0.00% 51 Missing ⚠️
src/pkg/wait/wait.go 20.00% 12 Missing ⚠️
src/cmd/wait.go 0.00% 5 Missing ⚠️
Files with missing lines Coverage Δ
src/cmd/wait.go 42.10% <0.00%> (-4.96%) ⬇️
src/pkg/wait/wait.go 26.13% <20.00%> (ø)
src/pkg/packager/actions/actions.go 22.05% <0.00%> (-0.61%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AustinAbro321 AustinAbro321 marked this pull request as ready for review January 23, 2026 19:23
@AustinAbro321 AustinAbro321 requested review from a team as code owners January 23, 2026 19:23
@AustinAbro321 AustinAbro321 marked this pull request as draft January 23, 2026 19:24
@AustinAbro321 AustinAbro321 changed the title refactor: call wait directly within actions instead of shelling out refactor!: Create wait package and call it directly within actions Jan 26, 2026
@AustinAbro321 AustinAbro321 changed the title refactor!: Create wait package and call it directly within actions refactor!: create wait package and call it directly within actions Jan 26, 2026
@AustinAbro321 AustinAbro321 marked this pull request as ready for review January 26, 2026 16:29
@AustinAbro321 AustinAbro321 moved this to PR Review in Zarf Jan 26, 2026
@AustinAbro321 AustinAbro321 changed the title refactor!: create wait package and call it directly within actions refactor(wait)!: create wait package and call it directly within actions Jan 30, 2026
Copy link
Copy Markdown
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

Minor nits primarily with a thought on testing.

Comment thread src/pkg/packager/actions/actions.go Outdated
Comment thread src/pkg/wait/wait.go Outdated
Comment thread src/test/e2e/46_tools_wait_for_test.go Outdated
Comment thread src/test/e2e/46_tools_wait_for_test.go
@github-project-automation github-project-automation Bot moved this from PR Review to In progress in Zarf Feb 3, 2026
AustinAbro321 and others added 15 commits February 4, 2026 08:24
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
…4548)

Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Co-authored-by: Brandt Keller <43887158+brandtkeller@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
…-organization group (#4553)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Jason Washburn <jason.washburn@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
AustinAbro321 and others added 14 commits February 4, 2026 08:24
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
#4534)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Co-authored-by: Brandt Keller <43887158+brandtkeller@users.noreply.github.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
This reverts commit 2b885f1.

Signed-off-by: Austin Abro <austinabro321@gmail.com>
This reverts commit f85b92c.

Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Copy link
Copy Markdown
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

Test coverage and existing docs looks to align to implementation - I didn't find any additional scenarios to test for parity. lgtm.

@AustinAbro321 AustinAbro321 added this pull request to the merge queue Feb 4, 2026
Merged via the queue into main with commit 2498e1c Feb 4, 2026
37 of 39 checks passed
@AustinAbro321 AustinAbro321 deleted the call-wait-directly branch February 4, 2026 20:34
@github-project-automation github-project-automation Bot moved this from In progress to Done in Zarf Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants