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

GitLab CI: Direct build directory to $HOME #647

Merged
merged 1 commit into from
May 21, 2024

Conversation

marshallward
Copy link
Member

This patch directs the compilation of GitLab regression test models to the $HOME directory.

This is motivated by incredibly slow file access times on GFDL's GPFS file system (F5), with the Nvidia builds taking a prohibitively long time (around 4 hours). Compiling in $HOME reduces Nvidia times to 15 minutes, with similar reduction times in the other compilation.

This is achieved with only minimal changes to the build system. Instead of creating build/, we create a dedicated directory in $HOME/ci/$CI_PROJECT_ID/build and a symbolic link to this directory in the GPFS directory. To support these builds, additional symlinks to src/ and ocean_only/ (for static builds) are also created, from $HOME and back into GPFS.

Once the job is completed, the temporary space in $HOME is deleted. We also check for and delete any other stale directories older than 3 days, such as from incomplete tests.

This should not be considered a permanent solution, it is only meant to get us through a difficult period of testing. Hopefully we can revert this change in the near future.

@adcroft
Copy link
Member

adcroft commented May 21, 2024

I see commit e788ada718c7569267d3f622665d82970cc255fb tested in the pipelines. How does that differ from this? Is it just a rebase?

@adcroft
Copy link
Member

adcroft commented May 21, 2024

No matter - I see some extra link steps were added. I'm testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/23550

This patch directs the compilation of GitLab regression test models to
the $HOME directory.

This is motivated by incredibly slow file access times on GFDL's GPFS
file system (F5), with the Nvidia builds taking a prohibitively long
time (around 4 hours).  Compiling in $HOME reduces Nvidia times to 15
minutes, with similar reduction times in the other compilation.

This is achieved with only minimal changes to the build system.  Instead
of creating `build/`, we create a dedicated directory in
`$HOME/ci/$CI_PROJECT_ID/build` and a symbolic link to this directory in
the GPFS directory.  To support these builds, additional symlinks to
`src/` and `ocean_only/` (for static builds) are also created, from
$HOME and back into GPFS.

Once the job is completed, the temporary space in $HOME is deleted.

This patch should not be considered a permanent solution, it is only
meant to get us through a difficult period of testing.  Hopefully we can
revert this change in the near future.
@adcroft adcroft merged commit 83bc4a6 into NOAA-GFDL:dev/gfdl May 21, 2024
12 checks passed
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.

2 participants