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

Travis is failing after "restart build" #7244

Closed
niegowski opened this issue May 20, 2020 · 4 comments · Fixed by #7260
Closed

Travis is failing after "restart build" #7244

niegowski opened this issue May 20, 2020 · 4 comments · Fixed by #7260
Assignees
Labels
squad:platform Issue to be handled by the Platform team. type:task This issue reports a chore (non-production change) and other types of "todos".

Comments

@niegowski
Copy link
Contributor

After "restart build" following happens on https://travis-ci.org/github/ckeditor/ckeditor5/builds/688837664:

Uploading combined code coverage report…
/home/travis/build/ckeditor/ckeditor5/node_modules/coveralls/bin/coveralls.js:19
      throw err;
      ^
Bad response: 422 {"message":"service_job_id (688837665) must be unique for Travis Jobs not supplying a Coveralls Repo Token","error":true}
child_process.js:669
    throw err;
    ^
Error: Command failed: npx coveralls < .out/combined_lcov.info
/home/travis/build/ckeditor/ckeditor5/node_modules/coveralls/bin/coveralls.js:19
      throw err;
      ^
Bad response: 422 {"message":"service_job_id (688837665) must be unique for Travis Jobs not supplying a Coveralls Repo Token","error":true}
    at checkExecSyncError (child_process.js:629:11)
    at Object.execSync (child_process.js:666:13)
    at Object.<anonymous> (/home/travis/build/ckeditor/ckeditor5/scripts/continuous-integration-script.js:94:14)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
@niegowski niegowski added type:task This issue reports a chore (non-production change) and other types of "todos". squad:platform Issue to be handled by the Platform team. labels May 20, 2020
@mlewand
Copy link
Contributor

mlewand commented May 20, 2020

Interestingly the id after restarting no longer matches the build number anymore - this should mean it is unique. Unless another build already used this job id? Needs further investigation.

@mlewand mlewand modified the milestones: nice-to-have, iteration 32 May 20, 2020
@mlewand mlewand self-assigned this May 21, 2020
@mlewand
Copy link
Contributor

mlewand commented May 21, 2020

Ok I just used i/7244-travis-is-failing-after-restart-build branch to test this case and the first build was fine. After restarting it it failed with the exact same error - so it looks like we have the root cause nailed.

https://travis-ci.org/github/ckeditor/ckeditor5/builds/689555227

I'll check if providing coveralls token will solve it (as the message suggests) - might be that then it has an ability to override given jobid.

@mlewand
Copy link
Contributor

mlewand commented May 21, 2020

Unfortunately adding Coverall token doesn't solve the problem.

@mlewand
Copy link
Contributor

mlewand commented May 21, 2020

I added a summary of the struggle in main comment of the PR.

pomek added a commit that referenced this issue May 21, 2020
…-restart-build

Internal (ckeditor5): Fixed CC upload so that it works when CI job is reset. Closes #7244.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad:platform Issue to be handled by the Platform team. type:task This issue reports a chore (non-production change) and other types of "todos".
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants