Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

CI release has failed #512

Closed
mockitoguy opened this issue Oct 15, 2017 · 8 comments
Closed

CI release has failed #512

mockitoguy opened this issue Oct 15, 2017 · 8 comments

Comments

@mockitoguy
Copy link
Member

It seems that the CI job has failed: https://travis-ci.org/mockito/shipkit/builds/288214545

@epeee
Copy link
Contributor

epeee commented Oct 15, 2017

This one seems to be related to #395.
The first failing build failed with the same error message as the one in the linked issue.

[performRelease] > Execution of command failed (exit code 1):
[performRelease]     git push https://dummy:[SECRET]@github.com/mockito/shipkit.git v0.9.115 master
[performRelease]     Captured command output:
[performRelease]   To https://github.com/mockito/shipkit.git
[performRelease]    * [new tag]           v0.9.115 -> v0.9.115
[performRelease]    ! [rejected]          master -> master (non-fast-forward)
[performRelease]   error: failed to push some refs to 'https://dummy:[SECRET]@github.com/mockito/shipkit.git'
[performRelease]   hint: Updates were rejected because the tip of your current branch is behind
[performRelease]   hint: its remote counterpart. Integrate the remote changes (e.g.

@mockitoguy
Copy link
Member Author

mockitoguy commented Oct 15, 2017

I'm not sure why it is failing. I restarted the build and it failed with:

[performRelease] :fetchReleaseNotes FAILED
[performRelease] 
[performRelease] FAILURE: Build failed with an exception.
[performRelease] 
[performRelease] * What went wrong:
[performRelease] Execution failed for task ':fetchReleaseNotes'.
[performRelease] > Execution of command failed (exit code 128):
[performRelease]     git log --pretty=%ad --date=iso v0.9.115 -n 1
[performRelease]     Captured command output:
[performRelease]   fatal: ambiguous argument 'v0.9.115': unknown revision or path not in the working tree.
[performRelease]   Use '--' to separate paths from revisions, like this:
[performRelease]   'git <command> [<revision>...] -- [<file>...]'

However "git log --pretty=%ad --date=iso v0.9.115 -n 1" command works for me on clean checkout. Is Travis CI healthy? It looks like it does not see the tag but the tag does exist.

Can you take a look at it? I should have some time middle next week to look into this.

BTW. I created new ticket #513 to help debugging CI release failures.

@epeee
Copy link
Contributor

epeee commented Oct 16, 2017

Yes, I will have a look at it.

@epeee
Copy link
Contributor

epeee commented Oct 16, 2017

Luckily, I was able to reproduce it locally.
v0.9.115 tag was not available after updating master.
After calling "git fetch --tags" the missing tags appeared and I was no longer heading into the problem described above.
It looks like the tag (v0.9.115) is not set on master? In fact we do have two 0.9.115 commits (one of them on master, but the other one seems to have the tag).

@epeee
Copy link
Contributor

epeee commented Oct 16, 2017

Travis uses
"git clone --depth=50 --branch=master https://github.com/mockito/shipkit.git mockito/shipkit"
After using this command the tag is also missing locally.

@epeee
Copy link
Contributor

epeee commented Oct 16, 2017

I'd suggest to go for a "git pull" right before the git push. It looks like this will solve most of our problems with pr's being merged right after each other. Any concerns about this solution?

@mockitoguy
Copy link
Member Author

Thanks for investigating. Looking at it right now.

mockitoguy added a commit that referenced this issue Oct 18, 2017
Our git unshallow task also needs to specify '--tags'. Otherwise we don't fetch the latest tag needed for release generation. See #512
mockitoguy added a commit that referenced this issue Oct 18, 2017
Our git unshallow task also needs to specify '--tags'. Otherwise we don't fetch the latest tag needed for release generation. See #512
@mockitoguy
Copy link
Member Author

This should fix the problem: #515

mockitoguy added a commit that referenced this issue Oct 19, 2017
Our git unshallow task also needs to specify '--tags'. Otherwise we don't fetch the latest tag needed for release generation. See #512
@epeee epeee closed this as completed Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants