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

Tests tools bump #3723

Merged
merged 5 commits into from
Jan 20, 2022
Merged

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Jan 20, 2022

/kind cleanup

What this PR does / why we need it:

Some vendoring bumps and simplifications for tests/tools.

This is a followup to #3717, addressing TODO in #3717 (comment) and a few more things (see individual commits for details).

How to verify it

CI should be sufficient

Which issue(s) this PR fixes:

none

Special notes for your reviewer:

Please review commit-by-commit, and see individual commit messages for details.

⚠️ See also: #3722 (needs to be implemented before merging this)

Does this PR introduce a user-facing change?

NONE

@openshift-ci openshift-ci bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jan 20, 2022
@kolyshkin
Copy link
Contributor Author

I have had temporary commit added to check if the new subject line length check it working, and it is! (see
https://github.com/containers/buildah/actions/runs/1721490520)

@rhatdan
Copy link
Member

rhatdan commented Jan 20, 2022

@umohnani8
Copy link
Member

/lgtm

@flouthoc
Copy link
Collaborator

LGTM

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1. Remove GO111MODULE=on and -mod=vendor. Those are not required
   (default) since go 1.16 (or earlier), and go 1.16 is currently
   the oldest supported release.

2. Remove go-build define:
   - cd `pwd` does not make any sense;
   - @echo > /dev/null masks any errors during tools building;
   - $(shell basename ...) could be replaced by $(notdir ...);
   - the above is not needed since we already have what we need
     as a target ($@);
   - finally, this is problematic for e.g. cpuguy83/go-md2man/v2
     (as it builds the binary named v2).

   So, just use $(GO_BUILD) -o $@ path/to/package

3. GO_BUILD does not need to be exported.

4. Mark $(BUILDDIR) target as phony -- a mere existence of the directory
   should not cause make to skip building the binaries.

K.I.S.S!

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Currently, git-validation is used to do two things:
1. Check that all commits in a PR has DCO (Signed-off-by)
2. Check that all commits has limited subject length

Nowdays, there are better tools for that. For DCO,
https://github.com/apps/dco can be used, and for subject length check, I
mocked up a GHA CI job (originally in opencontainers/runc -- copied from
there with some minimal changes).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Contributor Author

rebased

@TomSweeneyRedHat
Copy link
Member

@cevich PTAL

@rhatdan
Copy link
Member

rhatdan commented Jan 20, 2022

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 20, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kolyshkin, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 2030d0b into containers:main Jan 20, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm locked - please file new issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants