Skip to content

ci: Move the Go tests from Prow to GitHub Actions - #121

Merged
dzvon merged 1 commit into
masterfrom
sre-6511-github-actions
Sep 24, 2026
Merged

dzvon merged 1 commit into
masterfrom
sre-6511-github-actions

Conversation

@dzvon

@dzvon dzvon commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

The new Test workflow replaces the Prow jobs pull-appkit-go-test and
post-appkit-go-test. It runs go test ./... for a pull request and for
a push to master.

  • Like the Prow jobs, the workflow runs only when a Go file or go.mod
    changes. It also runs when go.sum or the workflow file changes.
  • setup-go reads the Go version from go.mod, so a Go upgrade does
    not need a workflow change.
  • The actions are pinned to commit SHAs.

Test change

TestLogError removed only the $GOPATH/src/ prefix from the stack
traces. The test passed only in a checkout under
$GOPATH/src/github.com/theplant/appkit, which is the Prow clone path.
GitHub Actions checks out to a different directory, so the test failed
there. The test now removes the module directory, which it finds from
its own source file path. This change also makes the test pass in a
local checkout outside GOPATH.

Limitation

GitHub Actions does not send the failures on master to #team-dev in
Slack, as the Prow reporter did.

Merge order

Merge this PR first. Then merge the test-infra PR that removes the Prow
jobs, so that the repository always has a test job.

Jira: SRE-6511

The Test workflow replaces the Prow jobs pull-appkit-go-test and
post-appkit-go-test. It runs go test ./... for a pull request and for a
push to master. Like the Prow jobs, it runs only when a Go file or
go.mod changes. It also runs when go.sum or the workflow file changes.
setup-go reads the Go version from go.mod, so the workflow does not
need a change for a Go upgrade.

TestLogError removed only the $GOPATH/src/ prefix from the stack
traces. The test passed only in a checkout under
$GOPATH/src/github.com/theplant/appkit, which is the Prow clone path.
GitHub Actions checks out to a different directory, and a local checkout
is usually not under GOPATH either. The test now removes the module
directory, which it finds from its own source file path.

GitHub Actions does not send the failures on master to team-dev in
Slack, as the Prow reporter did.

Jira: SRE-6511
@dzvon
dzvon merged commit e92dab6 into master Sep 24, 2026
4 checks passed
@dzvon
dzvon deleted the sre-6511-github-actions branch September 24, 2026 00:24
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