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

Internal (ckeditor5): Fixed CC upload so that it works when CI job is reset #7260

Merged
merged 1 commit into from
May 21, 2020

Conversation

mlewand
Copy link
Contributor

@mlewand mlewand commented May 21, 2020

Suggested merge commit message (convention)

Internal (ckeditor5): Fixed CC upload so that it works when CI job is reset. Closes #7244.


Additional information

In a fascinating twist of reverse engineering and guessing I was able to get it working.

Unfortunately providing Coveralls token (suggested in Coveralls error message) didn't fix the problem.

I noticed a very strange thing, that our env TRAVIS_JOB_ID is different than the job id in the Travis link… e.g. for https://travis-ci.org/github/ckeditor/ckeditor5/builds/689606488 TRAVIS_JOB_ID will be 689606489.

I wanted to force an unique job id, by making it e.g. a timestamp - but Coveralls backend was complaining that it could not match corresponding Travis build - so it means it has a special handling for Travis. So I checked the source code of coveralls npm package, to see how it determines whether it's Travis or not - turned out it should be based on the service name. So I adjusted the service name, and... it works 🧙‍♂️

@mlewand mlewand requested a review from pomek May 21, 2020 13:54
@pomek pomek merged commit cb7b5d1 into master May 21, 2020
@pomek pomek deleted the i/7244-travis-is-failing-after-restart-build branch May 21, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Travis is failing after "restart build"
2 participants