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

MINOR: [CI] Bump actions/setup-go from 3 to 4 #36195

Merged
merged 1 commit into from Jun 22, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 21, 2023

Bumps actions/setup-go from 3 to 4.

Release notes

Sourced from actions/setup-go's releases.

v4.0.0

In scope of release we enable cache by default. The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process. The cache can be disabled by specifying cache: false.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v4
    with:
      go-version: ‘1.19’
  - run: go run hello.go

Besides, we introduce such changes as

Add support for stable and oldstable aliases

In scope of this release we introduce aliases for the go-version input. The stable alias instals the latest stable version of Go. The oldstable alias installs previous latest minor release (the stable is 1.19.x -> the oldstable is 1.18.x).

Stable

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    with:
      go-version: 'stable'
  - run: go run hello.go

OldStable

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    with:
      go-version: 'oldstable'
  - run: go run hello.go

Add support for go.work and pass the token input through on GHES

In scope of this release we added support for go.work file to pass it in go-version-file input.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Dependabot-only label Jun 21, 2023
@github-actions github-actions bot added the awaiting review Awaiting review label Jun 21, 2023
@raulcd
Copy link
Member

raulcd commented Jun 21, 2023

Some of the failures are related to the benchmark tests here:

 Traceback (most recent call last):
  File "/Users/runner/work/arrow/arrow/ci/scripts/go_bench_adapt.py", line 52, in <module>
    assert os.getenv("GITHUB_ACTIONS") is None
AssertionError

Is there any reason we are raising an AssertionError here?
@zeroshade @jgehrcke

@jgehrcke
Copy link
Contributor

jgehrcke commented Jun 21, 2023

Is there any reason we are raising an AssertionError here?

Yes, this code is not supposed to execute in GHA for a non-default branch:

"pr_number": None, # implying default branch

else:
    # Assume that the environment is not GitHub Actions CI. Error out if that
    # assumption seems to be wrong.
    assert os.getenv("GITHUB_ACTIONS") is None

    # This is probably a local dev environment, for testing. In this case, it
    # does usually not make sense to provide commit information (not a
    # controlled CI environment). Explicitly keep `github_commit_info=None` to
    # reflect that (to not send commit information).

In that sense I think the failure is expected and does / should not block merge. If the redness is a problem then we can also sys.exit(0) instead. Although that might result in mean false-positive green signal in the future.

@raulcd
Copy link
Member

raulcd commented Jun 21, 2023

Ok, I think the problem is that the PR from dependabot is coming from a branch on the apache/arrow repository instead of a fork hence those are executed which are not if they are from a fork branch due to:
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
Probably we should not error and just do a sys.exit(0) but now I understand why this is failing here.

@kou kou changed the title MINOR: [CI]: Bump actions/setup-go from 3 to 4 MINOR: [CI] Bump actions/setup-go from 3 to 4 Jun 21, 2023
@kou
Copy link
Member

kou commented Jun 21, 2023

I've opened a new issue for it: #36218

Copy link
Member

@assignUser assignUser left a comment

Choose a reason for hiding this comment

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

I see no breaking changes in v4 and the jobs succeed outside of the benchmarking issue.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jun 21, 2023
@dependabot dependabot bot force-pushed the dependabot/github_actions/actions/setup-go-4 branch from f286ba6 to 0557f9c Compare June 22, 2023 00:29
@kou
Copy link
Member

kou commented Jun 22, 2023

@dependabot rebase

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/github_actions/actions/setup-go-4 branch from 0557f9c to 841c9df Compare June 22, 2023 01:41
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit 320ecbd into main Jun 22, 2023
43 of 44 checks passed
@dependabot dependabot bot deleted the dependabot/github_actions/actions/setup-go-4 branch June 22, 2023 02:38
@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Jun 22, 2023
@conbench-apache-arrow
Copy link

Conbench analyzed the 6 benchmark runs on commit 320ecbd1.

There were 5 benchmark results indicating a performance regression:

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge Awaiting merge dependencies Dependabot-only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants