Skip to content

Make CI more robust - #425

Closed
willirath wants to merge 15 commits into
dask:masterfrom
willirath:make-ci-more-robust
Closed

willirath wants to merge 15 commits into
dask:masterfrom
willirath:make-ci-more-robust

Conversation

@willirath

@willirath willirath commented May 3, 2020 •

Copy link
Copy Markdown
Collaborator
  • make SLURM CI more inspectable
  • pin slurm docker images more aggressively
  • [x] pin other docker images more aggressively
  • apply to other schedulers as well

Things I could not address here:

@willirath

Copy link
Copy Markdown
Collaborator Author

With b9fb801, the SLURM job in Travis will fail, but will tell us more about the env before it does so.

@willirath
willirath marked this pull request as ready for review May 3, 2020 12:47
@willirath
willirath requested review from guillaumeeb and lesteve May 3, 2020 12:48
@riedel

riedel commented May 3, 2020

Copy link
Copy Markdown
Member

I tried similar stuff for the HTCondor CI (will wait with a PR), after looking at what you proposed. A few comments from my experience.

Doing docker run before listing the images can be avoided by doing docker(-compose) pull (and build) before doing the listing. After starting up docker ps can be done. I would not group things to much as a standard as it overcomplicates the startup procedure (at least for me). Things could already go wrong when doing the docker-compose up (to me that would be the natural place to actually start up the whole cluster).

Why not put the set -x outside the functions in travis? Then it would be default for all CIs (can still turn it off for anoying stuff).

@willirath

Copy link
Copy Markdown
Collaborator Author

Fair points, looking at the code now, it seems my changes did make CI logs more verbose, but also didn't really improve readability of the CI code... :/

I'll transfer to draft stage again to prevent accidental merging and try and straighten out the logic first.

@willirath
willirath marked this pull request as draft May 4, 2020 10:01
@lesteve

lesteve commented May 4, 2020 •

Copy link
Copy Markdown
Member

I tried ages ago to add set -e everywhere and failed, this kind of reminds me of it a little bit (I could not find the PR but I still have an old branch https://github.com/lesteve/dask-jobqueue/tree/add-set-e-in-bash-scripts) ...

Anything that can help debug CI problems is more than welcome!

With the recent pain from the Slurm CI, docker-compose logs where the most useful thing to look at IMO. So maybe they could be printed at the end if we did not manage to start the cluster ?

Also we should not wait for 50 minutes before the build is marked as failed ... Maybe 1-2 minutes without being able to start the toy cluster should be enough to decide a build should be marked as failed ?

@guillaumeeb guillaumeeb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair points, looking at the code now, it seems my changes did make CI logs more verbose, but also didn't really improve readability of the CI code... :/

Not looked in detail, but yes, my first impression is that it adds still more indirections to the CI code, and apparently in every job queueing system CI. I've not followed the Slurm CI problem, so I can't really tell if it is worth it or not...

Also we should not wait for 50 minutes before the build is marked as failed ... Maybe 1-2 minutes without being able to start the toy cluster should be enough to decide a build should be marked as failed ?

Yes, 50 minutes is much too long!

@guillaumeeb

Copy link
Copy Markdown
Member

@willirath do you think this PR should be kept open?

@andersy005 andersy005 added the CI Continuous Integration tools label Jan 24, 2021
@willirath

Copy link
Copy Markdown
Collaborator Author

No, let's close this.

(And thanks @guillaumeeb and @andersy005 for the housekeeping session!)

@willirath willirath closed this Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants