Open romani opened 1 year ago
on passing execution with cache it took 33 seconds: codenarc analysis 00:33
without cache 53 seconds.
Better to not use cache and make it more stable.
Ok, PR at https://github.com/checkstyle/checkstyle/pull/12706 will be quick hack for stability. In the long term, to close this issue, we should do:
It is better to create new "no cache" build like so and add codenarc job to it, without restore cache and deleting it:
- name: "Linux openjdk build (no cache)"
task:
prologue:
commands:
- checkout
- sudo apt-get update
- sudo apt-get install -y ant groovy xsltproc xmlstarlet
- export GRADLE_OPTS=-Dorg.gradle.console=plain
proposed layout will make pipeline and failure of fist task block second task. https://checkstyle.semaphoreci.com/workflows/65ba10a4-7259-4388-b305-d1cbddce09de?pipeline_id=a9dc30f1-cad4-4574-986a-a8ad0e4a51c5
semaphore use some concurecy:
so suggestion is not good. @nrmancuso, please reconsider and lets close this issue if you agree.
https://checkstyle.semaphoreci.com/jobs/a4f70d7c-9969-4e1e-917b-f13e3b735e25
execution of codenarc is failing on grapes very often
removal of M2 folder help groovy to avoid this problem and downlaod all from scratch. example: https://github.com/checkstyle/checkstyle/pull/12662
We can put removal of M2 local repository for this job to let it always run without local maven cache.