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

Run precheck make target in Travis CI #11740

Merged
merged 3 commits into from May 29, 2020
Merged

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented May 28, 2020

  • move lock and rand checks to precheck target
  • run build checks and complete build in travis

Please see individual commits for details.

Updates #11730

@tklauser tklauser added the release-note/ci This PR makes changes to the CI. label May 28, 2020
@tklauser tklauser requested review from a team as code owners May 28, 2020 08:23
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 May 28, 2020
@tklauser tklauser marked this pull request as draft May 28, 2020 10:04
@tklauser tklauser force-pushed the pr/tklauser/travis-prechecks branch from 81152e3 to 828fd31 Compare May 28, 2020 10:10
@coveralls
Copy link

coveralls commented May 28, 2020

Coverage Status

Coverage decreased (-0.02%) to 36.867% when pulling 0d6fdc0 on pr/tklauser/travis-prechecks into 9b0ae85 on master.

@tklauser tklauser marked this pull request as ready for review May 28, 2020 11:44
.travis/build.sh Outdated Show resolved Hide resolved
@tklauser tklauser force-pushed the pr/tklauser/travis-prechecks branch 2 times, most recently from 3bc5436 to 4ac4e01 Compare May 28, 2020 12:36
Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

Nice!

There's no reason to wait with running contrib/scripts/lock-check.sh and
contrib/scripts/rand-check.sh until after the build (i.e. the postcheck
target) as they are using only `grep` to check. Move them to the
precheck target so these errors are caught earlier.

Updates #11730

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
The CI_BUILD define is no longer needed since commit 9886f71
("pkg/bpf: remove #define depending on CI_BUILD")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This will allow various issues before actually running the tests in our
CI. Use `-j 2` since Travis CI usually runs on 2 cores and some parts of
the build benefit from that.

Updates #11730

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser force-pushed the pr/tklauser/travis-prechecks branch from 4ac4e01 to 0d6fdc0 Compare May 28, 2020 21:32
@tklauser
Copy link
Member Author

I think this PR can be merged without running Jenkins tests as it only affects the Travis CI build/test, which passed.

@tklauser tklauser added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 29, 2020
@aanm aanm merged commit a6ca5d5 into master May 29, 2020
1.8.0 automation moved this from In progress to Merged May 29, 2020
@aanm aanm deleted the pr/tklauser/travis-prechecks branch May 29, 2020 08:55
@pchaigno
Copy link
Member

@tklauser I think this PR broke Travis CI on aarch64: https://travis-ci.com/github/cilium/cilium/jobs/341409008.

tklauser added a commit that referenced this pull request May 29, 2020
After PR #11740, a complete build is run on Travis CI. This currently
breaks the ARM64 build which is missing some dependencies.

Fixes: a6ca5d5 ("travis: run build checks and complete build")
Reported-by: Paul Chaignon <paul@cilium.io>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
aanm pushed a commit that referenced this pull request May 29, 2020
After PR #11740, a complete build is run on Travis CI. This currently
breaks the ARM64 build which is missing some dependencies.

Fixes: a6ca5d5 ("travis: run build checks and complete build")
Reported-by: Paul Chaignon <paul@cilium.io>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

6 participants