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

Clean up abandoned/obsolete jobs in jenkins #790

Closed
sxa opened this issue May 22, 2019 · 5 comments
Closed

Clean up abandoned/obsolete jobs in jenkins #790

sxa opened this issue May 22, 2019 · 5 comments
Assignees
Milestone

Comments

@sxa
Copy link
Member

sxa commented May 22, 2019

Working with Martijn on this - will report results and what we've done in this issue for future reference

TODO: Go through the Work in progress tab and encourage anyone with jobs in there to prefix them with their name

Also there are quite a lot of old jobs in the pipeline directories which are being kept (mostly but not exclusively GA ones) that could do with being cleaned up as they are chewing disk space.

@sxa sxa added this to the 2019 May milestone May 22, 2019
@sxa sxa assigned karianna and sxa May 22, 2019
@karianna karianna added this to TODO in infrastructure via automation May 22, 2019
@karianna
Copy link
Contributor

We've made good progress - awaiting feedback from several job owners to clean up more

@sxa
Copy link
Member Author

sxa commented May 22, 2019

List of jobs which we deleted today:

< amber-rsl_hs_openjdktest_x86-64_linux
< amber-rsl_hs_openjdktest_x86-64_macos

< ao8_jre_mirror_test_sxa

< attyt
< awx.job.playbook
< awx.job.shell
< awx.pipeline.job.playbook
< awx.pipeline.test
< Ben_test_job
< build_ao11j9_win_vs2017

< delete workspace

< freestyleTry

< GraalVM-suite-jdk8_x86-64_macos

< jdk10-solaris-sparcv9-hotspot-build

< jdk11-windows-x86-32-hotspot-wip
< jdk8u-mac-x64-hotspot-severin

< jdk8u-windows-x64-openj9

< lumpfish-openjdk12-pipeline
< lumpfish-openjdk12-pipeline2

< openjdk10_nightly_pipeline_scm

< openjdk10_openj9_nightly_pipeline_scm
< openjdk10_openj9_release_pipeline_scm

< openjdk10_release_pipeline_scm

< openjdk11_build_arm32_linux

< openjdk11_build_ppc64_aix
< openjdk11_build_ppc64le_linux
< openjdk11_build_s390x_linux
< openjdk11_build_x86-64_linux
< openjdk11_build_x86-64_macos
< openjdk11_build_x86-64_windows

< openjdk11_openj9_build_ppc64_aix
< openjdk11_openj9_build_ppc64le_linux
< openjdk11_openj9_build_s390x_linux
< openjdk11_openj9_build_x86-32_windows
< openjdk11_openj9_build_x86-64_linux
< openjdk11_openj9_build_x86-64_linux_largeHeap
< openjdk11_openj9_build_x86-64_windows

< openjdk8_build_aarch32_linux
< openjdk8_build_aarch64_linux
< openjdk8_build_arm32_linux
< openjdk8_build_checksum
< openjdk8_build_docker

< openjdk8_build_ppc64_aix
< openjdk8_build_ppc64le_linux
< openjdk8_build_s390x_linux
< openjdk8_build_x86-32_win-cacerts
< openjdk8_build_x86-32_windows
< openjdk8_build_x86-64_linux
< openjdk8_build_x86-64_linux-73
< openjdk8_build_x86-64_macos
< openjdk8_build_x86-64_macos-libfreetype
< openjdk8_build_x86-64_solaris
< openjdk8_build_x86-64_windows
< openjdk8_build_x86-64_windows_test

< openjdk8_nightly_pipeline_scm
< openjdk8_openj9_build_checksum
< openjdk8_openj9_build_ppc64_aix
< openjdk8_openj9_build_ppc64le_linux
< openjdk8_openj9_build_s390x_linux
< openjdk8_openj9_build_x86-32_windows
< openjdk8_openj9_build_x86-64_linux
< openjdk8_openj9_build_x86-64_linux_largeHeap
< openjdk8_openj9_build_x86-64_linux-SSL
< openjdk8_openj9_build_x86-64_windows
< openjdk8_openj9_nightly_pipeline_scm
< openjdk8_openj9_release_pipeline_scm

< openjdk8_release_pipeline_scm
< openjdk8_stf_systemtests-user

< openjdk9_nightly_pipeline_scm

< openjdk9_openj9_nightly_pipeline_scm
< openjdk9_openj9_release_pipeline_scm

< openjdk_amber_build_checksum
< openjdk_amber_build_s390x_linux
< openjdk_amber_build_x86-64_linux
< openjdk_amber_build_x86-64_macos
< openjdk_amber_build_x86-64_windows
< openjdk_amber_nightly_pipeline_scm
< openjdk-api-java-client

< windows-x64-jdk11-fix

@karianna karianna modified the milestones: 2019 May, 2019 June Jun 3, 2019
@sxa sxa modified the milestones: 2019 June, July 2019 Jul 2, 2019
@sxa sxa modified the milestones: July 2019, August 2019 Jul 30, 2019
@smlambert
Copy link
Contributor

I additionally cleaned up old test jobs (containing strings 'systemtest', 'openjdktest', though I have left the ev3 runs, until I check with that team), as we have re-generated test jobs with a different naming convention now, adoptium/aqa-tests#1168. Note we are still only keeping 5 jobs in history.

@smlambert
Copy link
Contributor

I propose that we run a script that checks all Jenkins job and lists those that have not been used in over x months. That way we can flag and remove stale jobs. (I proposed this last year, and think I wrote a script that would do this & delete the jobs... though I think we want to be cautious and not blindly delete without human intervention).

@sxa
Copy link
Member Author

sxa commented Aug 26, 2019

Space ran out again this weekend. Roughly speaking we have the following under the jobs dir:

  • 130Gb in use by build-scripts
  • 100Gb by the Test_ jobs
  • 72Gb from what I'll call "Legacy" build jobs (Those not in the build-scripts directories)
  • Exclusing the above, 6 jobs using more than 1Gb: Three Grinder jobs, openjdk8_jcov, UploadFile (Used by test) and ev3dev)

Also, in the worksapce directory on master, ~125Gb in the workspace directory of which a little over 90Gb is the build-scripts pipelines.

Implemented https://ci.adoptopenjdk.net/view/work%20in%20progress/job/SXA-masterSpace/ to periodically check this and post to slack if the space goes under 10Gb

@sxa sxa closed this as completed Aug 26, 2019
infrastructure automation moved this from TODO to Done Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants