Skip to content
Snippets Groups Projects
Commit 2e2c1b604bcd authored by Georges Racinet's avatar Georges Racinet
Browse files

Fix the infamous ENOENT for /opt/gitlab/licenses/registry.csv

Until now, every few builds failed with ENOENT for the (apparently)
just copied /opt/gitlab/licenses/registry.csv

I finally went through the lengthy steps to reproduce, using an
actual cache zip from S3, and it turns
out that the ENOENT is due to the missing parent directory.

This never happens without the cache, probably because
an earlier step that creates this directory gets then always executed.

Ensuring the directory before hand as done in the CI configuration
was enough to fix the problem on the reproduction setup, but not in
CI, but the `mkdir` from `registry.rb` did fix it. We're keeping the
former one in case it would help with other cases of licenses aggregation.
parent 60e8e5159fd9
No related branches found
No related tags found
2 merge requests!59Merge build failure fix from heptapod-stable,!58Fix the apparent cache corruption problem
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment