ghc-pkg error: package.conf.d/$pkg.conf does not exist
This happens occasionally during gitlab/ci.sh test_hadrian
.
Failure example:
Error: hadrian: ghc-pkg dump failed: dieVerbatim: user error (Error: hadrian:
'/opt/ghc/9.4.3/bin/ghc-pkg' exited with an error:
ghc-pkg-9.4.3: _build/stage0/inplace/package.conf.d/mtl-2.3.1.conf:
getModificationTime:getFileStatus: does not exist (No such file or directory)
)
It is not always the same file, but otherwise the errors look the same.
This happens a lot and seems unrelated to the code being validated, so I will add it to the retry bot.
It happens on Windows, Linux, and Macs:
select count(*), json ->> '$.runner.description'
from job
where job_id in (
select rowid from job_trace where trace match '"ghc-pkg dump failed: dieVerbatim: user error"'
)
group by json ->> '$.runner.description'
---
count(*) json ->> '$.runner.description'
-------- --------------------------------------------------
11
1 aarch64-darwin-1_aarch64-darwin-1_a1a3a7139d97
1 aarch64-darwin-3_aarch64-darwin-3_855e630771e1
2 aarch64-linux-2.zw3rk_aarch64-linux-2_379242e21d29
5 aarch64-linux-2.zw3rk_aarch64-linux-2_97f12874a58d
3 maurer.smart-cactus.org_maurer_ddb6d703d90e
4 x86-64-win-2.zw3rk.com
1 x86_64-linux-2.zw3rk_x86_64-linux-2_d292a225d2eb
1 x86_64-linux-3.zw3rk_x86_64-linux-3_db038e4e1623
3 x86_64-linux-4.zw3rk_x86_64-linux-4_db038e4e1623
1 x86_64-linux-5.zw3rk_x86_64-linux-5_db038e4e1623
1 x86_64-linux-7.zw3rk_x86_64-linux-7_db038e4e1623
Examples from the last 2-3 months:
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241055
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241119
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241149
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241240
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241298
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241300
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1241674
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1242086
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1242580
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1242786
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1244988
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1246103
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1246878
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1247778
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1248248
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1325838
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1325915
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1326598
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1326646
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1326802
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1327355
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1327357
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1327598
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1330936
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1334603
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1338201
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1345203
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1345952
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1346625
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1346866
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1347230
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1347656
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1348062
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1348170
- https://gitlab.haskell.org/ghc/ghc/-/jobs/1322107