Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/.github/workflows/ci-check-repo.yaml: Iterating on github actions check repo #767

Merged
merged 7 commits into from Jun 26, 2020

Conversation

coffeegoddd
Copy link
Contributor

@coffeegoddd coffeegoddd commented Jun 25, 2020

looking into fixing this: https://github.com/liquidata-inc/dolt/pull/767/checks?check_run_id=808971285#step:4:296

2020/06/25 21:04:02 Error running `git merge-base remotes/origin/db/ci-github-actions-check-repo remotes/origin/master` to find merge parent: exit status 128
exit status 1

the exit status 128 is from //go/utils/checkcommiters/main.go ... im thinking could be the go version? i had to use 1.13 here to get past the error that occurred when i used go version ^1.13 regarding the -mod=readonly flag....

@coffeegoddd coffeegoddd force-pushed the db/ci-github-actions-check-repo branch from dc56d8b to cdc1201 Compare June 25, 2020 20:12
@coffeegoddd coffeegoddd force-pushed the db/ci-github-actions-check-repo branch 5 times, most recently from dbd197c to 60fbb19 Compare June 25, 2020 21:36
@coffeegoddd coffeegoddd force-pushed the db/ci-github-actions-check-repo branch from 60fbb19 to 16a36eb Compare June 25, 2020 21:37
- name: Setup Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
Copy link
Contributor Author

Choose a reason for hiding this comment

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

must be 1.13 as ^1.13 resulted in a flag error for go get -mod=readonly ./...

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we upgrade the script to work with go > 1.13? Maybe it's fine to just drop this statement in general. Or do GOFLAGS="-mod readonly" go build ./... to check everything builds without modifications to go.mod?

@coffeegoddd coffeegoddd force-pushed the db/ci-github-actions-check-repo branch from 1dadad3 to 070e0f2 Compare June 25, 2020 21:51
@coffeegoddd coffeegoddd force-pushed the db/ci-github-actions-check-repo branch from 070e0f2 to c3422e0 Compare June 25, 2020 21:54
@coffeegoddd coffeegoddd requested a review from reltuk June 25, 2020 21:54
./utils/checkcommitters/check_pr.sh
go vet -mod=readonly ./...
go run -mod=readonly ./utils/copyrightshdrs/
go test -mod=readonly -test.v ./...
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it necessary to run the tests here as well as in #762 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, we don't need to do this here.

Copy link
Contributor

@reltuk reltuk left a comment

Choose a reason for hiding this comment

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

LGTM. Some comments.

./utils/checkcommitters/check_pr.sh
go vet -mod=readonly ./...
go run -mod=readonly ./utils/copyrightshdrs/
go test -mod=readonly -test.v ./...
Copy link
Contributor

Choose a reason for hiding this comment

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

No, we don't need to do this here.

fetch-depth: 0
- name: Check all
working-directory: ./go
# Keep this in sync with //go/utils/prepr/prepr.sh.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we update prepr.sh to say "Keep this in sync with //.github/workflows/ci-check-repo.yaml?

- name: Setup Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we upgrade the script to work with go > 1.13? Maybe it's fine to just drop this statement in general. Or do GOFLAGS="-mod readonly" go build ./... to check everything builds without modifications to go.mod?

@coffeegoddd coffeegoddd merged commit 9533988 into master Jun 26, 2020
@coffeegoddd coffeegoddd deleted the db/ci-github-actions-check-repo branch June 26, 2020 18:39
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.

None yet

2 participants