Remove duplicate download go func#6026
Conversation
|
After removing the Not sure why the Traffic Ops Go client/API integration tests / API_tests and TP Integration Tests / TP_Integration_tests workflows are failing. |
|
The Traffic Ops Go client/API integration tests / API_tests and TP Integration Tests / TP_Integration_tests workflows fail because they both use the |
There was a problem hiding this comment.
Looks good so far. Next, for each workflow that uses a GitHub Action that you removed download_go from, get the Go version from the GO_VERSION file and install that Go version using the actions/setup-go action:
Go version should be be set in the workflow files by
- Checking the version in the
GO_VERSIONfile:
trafficcontrol/.github/workflows/go.vet.yml
Lines 43 to 44 in f691cd9
Note thatidalso needs to be set for this step (see #5991).- Using the actions/setup-go action with that version.
trafficcontrol/.github/workflows/go.vet.yml
Lines 45 to 47 in f691cd9
hi,guys! |
| - name: Save Alpine Docker image | ||
| run: .github/actions/save-alpine-tar/entrypoint.sh save ${{ env.ALPINE_VERSION }} | ||
|
|
||
| run: .github/actions/save-alpine-tar/entrypoint.sh save ${{ env.ALPINE_VERSION }} No newline at end of file |
There was a problem hiding this comment.
missing terminating newline in text file
zrhoffman
left a comment
There was a problem hiding this comment.
The dashboard URLs still need to be reverted.
#6026 (comment)
#6026 (comment)
75860ae to
a6ad5a2
Compare
Functionality is handled within trafficcontrol/.github/workflows/go.vet.yml
Removing code assigning GOROOT, PATH
Some functions of download_go are still needed for git actions to succeed.
Updated functions to get Go Version and install Go
Changes to Install Go portion of workflow
Making changes suggested in comments.
Changing back to name=value as test failed. Need to look up proper way to set id.
Check Go Version has id set to go-version
Added steps to check go version and install
check-go-modules.yml, traffic-ops.yml, go.fmt.yml changed.
Moving go version check and install to bottom
Moving go install and version check to run after Go fmt
Moved location of Go install and version check.
Addressed comments on PR
a6ad5a2 to
dacb6e4
Compare
Added id to fix Issue 5991
zrhoffman
left a comment
There was a problem hiding this comment.
Looks good!
download_gofunctions and its remnants are removed from the non-Docker GHAs- Our GitHub Actions use
actions/setup-goto download the Go version specified in theGO_VERSIONfile - The only GitHub Actions still running
download_goare Docker actions that cannot use theactions/setup-goGHA go-versionidis set in the Go Vet workflow, which fixes #5991
The TP_Integration_tests fails, (stil fails after re-running) but because only 1 out of 490 specs failed, I do not think this PR caused the failure. The 1 failure:
2021-07-23T15:28:43.5354179Z 1) Traffic Portal - Origins - Operation Role can login
2021-07-23T15:28:43.5354891Z Message:
2021-07-23T15:28:43.5360049Z Failed: No element found using locator: By(css selector, *[id="loginUsername"])
We should open an Issue for the sporadic TP spec failure.
|
TP Tests passed this time after failing twice in a row. |
What does this PR (Pull Request) do?
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR
Additional Information