Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

checkcommits: print out details obtained from CI - #136

Closed
grahamwhaley wants to merge 2 commits into
clearcontainers:masterfrom
grahamwhaley:20170807_checkcommits_verbosity
Closed

grahamwhaley wants to merge 2 commits into
clearcontainers:masterfrom
grahamwhaley:20170807_checkcommits_verbosity

Conversation

@grahamwhaley

Copy link
Copy Markdown
Contributor

Print out, under verbose mode, the details of the information
we have extracted from the CI environment.

Fixes: #135

Signed-off-by: Graham Whaley graham.whaley@intel.com

Print out, under verbose mode, the details of the information
we have extracted from the CI environment.

Fixes: clearcontainers#135

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
@grahamwhaley

Copy link
Copy Markdown
Contributor Author

OK, @dlespiau @chavafg , with @jodh-intel not available, let's see if we can figure out what is going wrong with these Travis SHAs and checkcommit...
Looking at the fail logs for this one, Travis pulls a pre-merged tree from GitHub:

git fetch origin +refs/pull/136/merge
git checkout -qf FETCH_HEAD

which it seems you can see here:
3c2a136

and says

2 parents 568d693 + c149acf commit 3c2a136b7f21833734fa4aa2284194c517fd7332

But when I do that locally, I get a different commit SHA for the merge:

0dec4d8 Merge c149acf27791a3f7891d5e81beb0111dc4b576c1 into 568d693c7d06f400ec2618880b8afb1855b942d4
c149acf checkcommits: print out details obtained from CI
568d693 Merge pull request #103 from grahamwhaley/20170703_checkcommits_static_checks

Maybe that is the crux of the issue - why the 3c2a SHA is not found by checkcommits. Any thoughts on how we get into this situation. I'm pretty sure this is not the 're-pushed too fast' issue.

My next step might be to add a git log --oneline -10 to the checkcommits debug or thereabouts, and see what more info I can squeeze out of Travis.

We have seen some CI instabilities whereby the git SHA
we are trying to use cannot be found in the git tree.
In verbose mode dump out the last 10 git log entries
to aid debugging.

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
@grahamwhaley

Copy link
Copy Markdown
Contributor Author

We are still seeing the issue, and it looks like things 'move on' as the tree changes, as we can no longer access the 3c2a136 commit link.
Add some more debug, dumping out the top 10 entries of the git log for the current tree to see if that helps figure out the disparity between the commit SHAs (maybe it will expose the merge process Travis/github has used etc.).

@grahamwhaley

Copy link
Copy Markdown
Contributor Author

Of course, obviously, not Travis passed for this one :-)
I'm going to mark this as DNM for now to ensure we don't accidentally merge it. I'll see if @jodh-intel fancies adding any of this debug to the mainline.

For reference (as the log may get expired from Travis), here is the log fragment from a working Travis:

$ .ci/setup_tests.sh
Set up tests repo
go test .
ok  	github.com/clearcontainers/tests/cmd/checkcommits	0.008s
go install -ldflags "-X main.appCommit="7a435b2274ec50eec9737e31a829daac582e7a66" -X main.appVersion=0.0.1" .
Running checkcommits version 0.0.1 (commit 7a435b2274ec50eec9737e31a829daac582e7a66)
Detected TravisCI Environment
Using Commit 7a435b2274ec50eec9737e31a829daac582e7a66, source branch 20170807_checkcommits_verbosity, destination branch master
Dumping git log
	commit 7a435b2274ec50eec9737e31a829daac582e7a66
	Merge: 21d0bc9 13f783e
	Author:     Graham Whaley <graham.whaley@intel.com>
	AuthorDate: Wed Jul 12 14:26:10 2017 +0000
	Commit:     GitHub <noreply@github.com>
	CommitDate: Wed Jul 12 14:26:10 2017 +0000

	    Merge 13f783e9f4ae1744b7f7954a5ed82d9310a57e8e into 21d0bc9c689be1266c196ec7ed6bfae61283ca25

	commit 13f783e9f4ae1744b7f7954a5ed82d9310a57e8e
	Author:     Graham Whaley <graham.whaley@intel.com>
	AuthorDate: Wed Jul 12 15:23:24 2017 +0100
	Commit:     Graham Whaley <graham.whaley@intel.com>
	CommitDate: Wed Jul 12 15:23:24 2017 +0100

	    checkcommits: Dump out last 10 entries of git log
	    We have seen some CI instabilities whereby the git SHA
	    we are trying to use cannot be found in the git tree.
	    In verbose mode dump out the last 10 git log entries
	    to aid debugging.

	    Signed-off-by: Graham Whaley <graham.whaley@intel.com>

@clearcontainersbot

Copy link
Copy Markdown

qa-passed

@clearcontainersbot

Copy link
Copy Markdown

metrics-failed

5 similar comments
@clearcontainersbot

Copy link
Copy Markdown

metrics-failed

@clearcontainersbot

Copy link
Copy Markdown

metrics-failed

@clearcontainersbot

Copy link
Copy Markdown

metrics-failed

@clearcontainersbot

Copy link
Copy Markdown

metrics-failed

@clearcontainersbot

Copy link
Copy Markdown

metrics-failed

@clearcontainersbot

Copy link
Copy Markdown

Popular Images qa-passed 👍

2 similar comments
@clearcontainersbot

Copy link
Copy Markdown

Popular Images qa-passed 👍

@clearcontainersbot

Copy link
Copy Markdown

Popular Images qa-passed 👍

@grahamwhaley

Copy link
Copy Markdown
Contributor Author

I'm going to close this PR down - we have just moved checkcommits off of Travis and over to Jenkins, where hopefully we won't be seeing the issue...

mcastelino pushed a commit to mcastelino/tests that referenced this pull request Jan 23, 2019
Don't ignore a repository just because it contains sub-modules - filter
the packages those sub-modules provide out of the list of all packages
and run the static checks on the remaining packages.

This is specifically for the https://github.com/kata-containers/runtime
repo. It used to contain simply submodule references to other
repositories. However, now it contains actual code content (`cli/` and
`virtcontainers/`) but the original check script logic was ignoring
*all* packages below runtime. This is incorrect since (now) both the
`cli` and `virtcontainers` packages should be checked when a runtime PR
is raised.

Fixes clearcontainers#136.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants