Skip to content

Replace gh run watch in workflow wrapper - #5689

Open
clockwork-labs-bot wants to merge 2 commits into
masterfrom
bot/replace-gh-run-watch
Open

Replace gh run watch in workflow wrapper#5689
clockwork-labs-bot wants to merge 2 commits into
masterfrom
bot/replace-gh-run-watch

Conversation

@clockwork-labs-bot

Copy link
Copy Markdown
Contributor

Description of Changes

Adds cargo ci other-workflows watch, a deterministic workflow-run watcher for CI wrappers. It polls gh run view --json status,conclusion,url,jobs until the child run completes, prints a compact job summary, and exits from the final workflow conclusion.

Updates the Internal Tests wrapper to use this command instead of gh run watch.

API and ABI breaking changes

None.

Expected complexity level and risk

  1. The change is scoped to CI workflow waiting behavior.

Testing

  • cargo fmt -p ci -- --check
  • cargo check -p ci
  • cargo ci self-docs --check
  • cargo run -p ci -- other-workflows watch --help
  • YAML parse for .github/workflows/internal-tests.yml
  • git diff --check

Comment thread tools/ci/src/main.rs
run_id: u64,
run_url: Option<String>,
interval_seconds: u64,
max_attempts: u64,

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.

make this optional. poll forever by default.

Comment thread tools/ci/src/main.rs
run_id: u64,
/// Optional URL printed while waiting for the run.
#[arg(long)]
run_url: Option<String>,

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.

remove this. we can construct this from run_id and repo.

Comment thread tools/ci/src/main.rs Outdated
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
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