Skip to content

ci: fail-fast Go format check and add copilot-setup-steps timeout#478

Merged
askpt merged 2 commits intomainfrom
repo-assist/ci-go-format-timeout-e523d3234e4b8242
Mar 9, 2026
Merged

ci: fail-fast Go format check and add copilot-setup-steps timeout#478
askpt merged 2 commits intomainfrom
repo-assist/ci-go-format-timeout-e523d3234e4b8242

Conversation

@askpt
Copy link
Copy Markdown
Owner

@askpt askpt commented Mar 9, 2026

Move gofmt check before go mod download/build/test in build-go job so
formatting failures are caught immediately (~1-2 min savings on failure).

Add timeout-minutes: 10 to copilot-setup-steps job to prevent runaway
runner consumption on network issues or hung dependency installs.

Implements suggestion from #463.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Closes #463
Closes #465

Move gofmt check before go mod download/build/test in build-go job so
formatting failures are caught immediately (~1-2 min savings on failure).

Add timeout-minutes: 10 to copilot-setup-steps job to prevent runaway
runner consumption on network issues or hung dependency installs.

Implements suggestion from #463.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 9, 2026 06:35
@askpt askpt enabled auto-merge (squash) March 9, 2026 06:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements two small CI workflow optimizations suggested in issue #463: reordering Go format check for fail-fast behavior and adding a safety timeout to the copilot-setup-steps job.

Changes:

  • Move gofmt format check step to run immediately after actions/setup-go (before dependency download, build, and test) in the build-go job, so formatting failures fail quickly without wasting time on the rest of the pipeline.
  • Add timeout-minutes: 10 to the copilot-setup-steps job to prevent runaway runner consumption from hung network or dependency installs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Reorders steps in build-go: Format check moved before go mod download, go build, and go test
.github/workflows/copilot-setup-steps.yml Adds timeout-minutes: 10 to the copilot-setup-steps job

@askpt askpt merged commit f224906 into main Mar 9, 2026
13 checks passed
@askpt askpt deleted the repo-assist/ci-go-format-timeout-e523d3234e4b8242 branch March 9, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants