Skip to content

add shared_fs_path configuration setting - #214

Merged
trz42 merged 2 commits into
EESSI:mainfrom
boegel:shared_fs_path
Sep 26, 2023
Merged

trz42 merged 2 commits into
EESSI:mainfrom
boegel:shared_fs_path

Conversation

@boegel

@boegel boegel commented Sep 21, 2023 •

Copy link
Copy Markdown
Contributor

WIP because I'm still testing whether this works as expected, see also companion PR EESSI/software-layer#337

Works as expected, testing along with EESSI/software-layer#337 via boegel/software-layer#27

@boegel boegel changed the title [WIP] add shared_fs_path configuration setting add shared_fs_path configuration setting Sep 21, 2023
@boegel
boegel marked this pull request as ready for review September 21, 2023 17:55
@boegel
boegel requested a review from trz42 September 21, 2023 17:55
@boegel

boegel commented Sep 21, 2023

Copy link
Copy Markdown
Contributor Author

@trz42 I feel the changes here are trivial enough to include them in the v0.1.0 release of the bot, but I'll let you be the judge of that...

@trz42

trz42 commented Sep 25, 2023

Copy link
Copy Markdown
Contributor

@trz42 I feel the changes here are trivial enough to include them in the v0.1.0 release of the bot, but I'll let you be the judge of that...

Not fully clear to me what the tests in EESSI/software-layer#337 and boegel/software-layer#27 show ... there is very little information about what has been tested (e.g., a successful download and then the reuse of the downloaded sources; how does this improve the fluke download issue if the first download for the $N-1$-th dependency fails?). Are the tests sufficient to demonstrate that this PR solves the issue (#213) and what undesired consequences may they have (multiple jobs writing concurrently to the shared directory or worse the same files ...).

To me this looks more like a performance optimisation (avoiding repeated downloads of the same sources), than solving the fluke download issue.

@boegel

boegel commented Sep 26, 2023

Copy link
Copy Markdown
Contributor Author

You're right about the concurrent downloads to a shared place. The idea is to combine setting shared_fs_path with starting only a single build job per PR initially, which takes care of the downloading.
EasyBuild currently doesn't use a lock when a download is being done, but it could, and if a 2nd download waits for a while until the download lock is released, that would prevent problems with concurrent downloads.

It doesn't fully avoid the download fluke problem, so I wouldn't close #213 just yet, but it should make it as lot less likely since every file only needs to be downloaded once.
I'm not sure we can fully avoid download problems btw, we're always at the mercy of whatever site provides the source tarballs?

Keep in mind that the same source tarball can be used for other PRs as well, like zlib 1.2.13 for example.
Right now source tarballs are always downloaded in a build job, there's no caching of downloads at all.

@trz42 trz42 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Should be fine.

@trz42
trz42 merged commit 37f05e3 into EESSI:main Sep 26, 2023
@boegel boegel added this to the 0.1.0 - initial release milestone Oct 4, 2023
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