Skip to content

[1.1] Make CI green again#3472

Merged
thaJeztah merged 6 commits intoopencontainers:release-1.1from
kolyshkin:1.1-fix-fedora-ci-git
May 12, 2022
Merged

[1.1] Make CI green again#3472
thaJeztah merged 6 commits intoopencontainers:release-1.1from
kolyshkin:1.1-fix-fedora-ci-git

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin commented May 11, 2022

With the updated git in Fedora 35, we can't build it via sudo:

	ssh default 'sudo -i make -C /vagrant localunittest'
	make: Entering directory '/vagrant'
	fatal: unsafe repository ('/vagrant' is owned by someone else)
	To add an exception for this directory, call:

		git config --global --add safe.directory /vagrant
	go build -trimpath "-buildmode=pie"  -tags "seccomp" -ldflags "-X main.gitCommit= -X main.version=1.1.0+dev " -o runc .
	error obtaining VCS status: exit status 128
		Use -buildvcs=false to disable VCS stamping.
	make: Leaving directory '/vagrant'

This commit should fix this.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 009e627)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Copy Markdown
Contributor Author

Apparently we also need to fix linter...

@kolyshkin kolyshkin changed the title [1.1] Vagrantfile.fedora: fix build wrt new git [WIP] [1.1] Vagrantfile.fedora: fix build wrt new git May 11, 2022
@kolyshkin kolyshkin marked this pull request as draft May 11, 2022 23:32
@kolyshkin kolyshkin changed the title [WIP] [1.1] Vagrantfile.fedora: fix build wrt new git [WIP] [1.1] Make CI green again May 11, 2022
dependabot Bot and others added 2 commits May 11, 2022 16:35
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit a43485c)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
... which adds a wee more whitespace fixes.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 89733cd)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin force-pushed the 1.1-fix-fedora-ci-git branch from 10f084b to 3fa605f Compare May 11, 2022 23:43
kolyshkin added 3 commits May 11, 2022 16:46
(on Go 1.18 this is actually an error)

> libcontainer/factory_linux.go:341:10: fmt.Errorf format %w has arg e of wrong type interface{}

Unfortunately, fixing it results in an errorlint warning:

> libcontainer/factory_linux.go#L344 non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)

so we have to silence that one.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 907aefd)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Also, remove "must be specified without patch version" as this is no
longer true.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit f7d4613)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
golangci-lint-action v3 no longer installs golang itself, and the
version that comes with Ubuntu is not new/good enough.

Install go 1.17.x explicitly.

Introduce GO_VERSION environment variable to avoid duplication,
and use it instead of 1.x in other places, so that implicit go update
won't bring some unexpected failures.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit f7637de)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin force-pushed the 1.1-fix-fedora-ci-git branch from 3fa605f to bf1cd88 Compare May 11, 2022 23:47
@kolyshkin kolyshkin requested a review from AkihiroSuda May 12, 2022 00:02
@kolyshkin kolyshkin marked this pull request as ready for review May 12, 2022 00:04
@kolyshkin kolyshkin changed the title [WIP] [1.1] Make CI green again [1.1] Make CI green again May 12, 2022
@kolyshkin kolyshkin requested a review from thaJeztah May 12, 2022 00:05
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit b507e2d into opencontainers:release-1.1 May 12, 2022
@kolyshkin kolyshkin added this to the 1.1.3 milestone May 26, 2022
@kolyshkin kolyshkin mentioned this pull request Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci backport/1.1-pr A backport PR to release-1.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants