Repository navigation
Migrate to gha only - #615
Merged
Merged
Conversation
- Drop individual .sha256 files and provide a single checksums.txt for all binaries. - Include FreeBSD builds in the release. - Maintain filename format: launchpad_<OS>_<ARCH>_<VERSION>.
- Remove unsupported --debug flag from local build. - Use --help flag to display available commands after build.
- GitHub Actions workflows now handle releases, so release-related targets are no longer needed. - Removed: build-release, clean-release, create-checksum, verify-checksum. - Kept: local, lint, and testing targets for development.
- Ensure only one 'go 1.25' statement exists in go.mod.
- Add linting, unit tests, integration tests, build verification, and security scanning. - Trigger workflow on PRs to main branch.
- Add permissions block to limit GITHUB_TOKEN to read-only access for contents. - Address GitHub CodeQL warning about over-privileged tokens. Signed-off-by: James Nesbitt <[email protected]>
james-nesbitt
force-pushed
the
migrate-to-gha-only
branch
from
March 26, 2026 10:46
f6cb3ef to
53c4ad8
Compare
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2 of 3 tasks
james-nesbitt
added a commit
that referenced
this pull request
Sep 20, 2026
pr.yml set both paths and paths-ignore on the same pull_request trigger,
which GitHub's docs explicitly disallow ("You cannot use both the paths
and paths-ignore filters for the same event in a workflow"). This made
GitHub reject the whole workflow file at parse time before scheduling any
job, producing "likely failed because of a workflow file issue" with zero
jobs and zero check-runs on every run.
Confirmed via full run history (218 runs) that every pr.yml run has failed
this way since paths-ignore was introduced in #615 (2026-03-26). A prior
fix (removing both paths and paths-ignore) was authored the same day but
never merged into main.
This keeps the paths include filter and drops only paths-ignore.
Signed-off-by: James Nesbitt <[email protected]>
james-nesbitt
added a commit
that referenced
this pull request
Sep 20, 2026
* [PRODENG-3758] Drop paths-ignore from pr.yml to fix zero-job failures
pr.yml set both paths and paths-ignore on the same pull_request trigger,
which GitHub's docs explicitly disallow ("You cannot use both the paths
and paths-ignore filters for the same event in a workflow"). This made
GitHub reject the whole workflow file at parse time before scheduling any
job, producing "likely failed because of a workflow file issue" with zero
jobs and zero check-runs on every run.
Confirmed via full run history (218 runs) that every pr.yml run has failed
this way since paths-ignore was introduced in #615 (2026-03-26). A prior
fix (removing both paths and paths-ignore) was authored the same day but
never merged into main.
This keeps the paths include filter and drops only paths-ignore.
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Remove integration-test job from pr.yml
test/integration/integration_test.go's TestMain provisions real AWS
infrastructure (Terraform VPC/subnets/node groups) and does a real
Product.Apply cluster install -- the same category of work as the
label-gated smoke tests, not a lightweight component-level test.
Unlike smoke-tests.yaml, this job had no AWS credentials wired in, no
label gate, and ran on ubuntu-latest (no instance profile). It
unconditionally attempted a real terraform apply with no way to
authenticate, hanging on AWS SDK/Terraform credential-discovery retries
until the 20-minute go test timeout killed it. This was invisible for 6
months because pr.yml never scheduled any jobs until the paths-ignore fix
in this same branch.
Per user direction, the launchpad integration test should not run in GHA
at all. `make integration-test` remains available for local/manual use.
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Use golangci-lint-action instead of make lint in pr.yml
The lint job's "make lint" step assumed golangci-lint was already on
PATH, but the arc-runner-set-mirantis-public runner image has no Go
tooling pre-installed beyond what actions/setup-go supplies per workflow.
The job failed unconditionally with "golangci-lint: No such file or
directory" once pr.yml could actually schedule jobs again (see prior
commits in this branch).
golangci-lint's own official action installs and runs the binary in one
step, the same pattern security-scan already uses for govulncheck (go
install golang.org/x/vuln/cmd/govulncheck@latest). Filed and closed
Mirantis/arc#44: baking golangci-lint into the shared runner image isn't
the right fix since nothing else on that image is pre-baked either (Go
itself comes from actions/setup-go); this belongs in the consuming
workflow.
version: v2.13 matches this repo's .golangci.yml schema version ("2").
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Fix gofumpt: remove unnecessary parens in hosts.go returns
pkg/product/mke/config/hosts.go had two gofumpt-flagged 'return (x)'
statements with unnecessary parens (Find, Index). Pre-existing on main,
never caught before because pr.yml's lint job couldn't run at all until
the fixes earlier in this branch. golangci-lint-action's summary output
only surfaced one of the two; confirmed both via 'gofumpt -d' directly.
make lint now reports 0 issues.
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Bump helm.sh/helm/v3 to v3.21.4 to clear GO-2026-5932
v3.21.4 migrated pkg/provenance from golang.org/x/crypto/openpgp to the
maintained github.com/ProtonMail/go-crypto/openpgp fork (matching
helm/helm#32463, backported from dev-v3 per helm/helm#32361). Confirmed
via go mod why that this was the only path pulling x/crypto/openpgp into
launchpad's build (pkg/helm -> helm.sh/helm/v3/pkg/action ->
helm.sh/helm/v3/pkg/provenance -> x/crypto/openpgp), and that launchpad
has no direct import of the package itself.
govulncheck ./... now reports 0 reachable vulnerabilities (previously 1:
GO-2026-5932, "Fixed in: N/A", the one advisory left unresolved after the
earlier x/crypto/x/mod/grpc bump in #666). make security-scan exits 0.
Kept to the v3.21.x patch line rather than v3.22.0, which would likely
force a k8s.io/* dependency bump unrelated to this fix; a version bump to
v3.22 can be considered separately once these CI fixes are merged.
Signed-off-by: James Nesbitt <[email protected]>
---------
Signed-off-by: James Nesbitt <[email protected]>
5 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.