Fix assemble cache clean order in 16-minimal, 18-minimal
Removal of the cache has to be the last things done in the assemble script. Calling npm after deleting the cache folder will cause npm to recreate it - which will fail during the image test.
Other images apparently have it correctly, for some reason this error is present only in 16-minimal and 18-minimal.
[test]
Pull Request validation
Failed
🔴 Failed or pending statuses - Testing Farm - CentOS Stream 10 - 22[error]
🔴 Review - Missing review from a member (2 required)
Success
🟢 Review - Reviewed by undefined
I'm afraid to click approve
afaik two approvals are needed, and it's not yet merging automatically, only sending email that it would.
@lukaszachy @SlouchyButton Automatic merger is not enabled yet;). Don't worry. See send only mails about PR and what is missing. Syncing upstream -> downstream for RHEL-9.5.0 is also disabled.
but is it enought to move cleaning operations before NPM_CACHE
It's hard to test it completely as this issue is present (for some unknown reason) only in the konflux built image, but as far as I tested it, it should resolve the error.
Also, the issue was present only in 16-min and 18-min - this change changes the code to be identical with other version. For some reason, these two containers had the tmp clean and cache clean reversed.
[test]
Testing Farm results
| name | compose | arch | status | started (UTC) | time | logs |
|---|---|---|---|---|---|---|
| Fedora - 18-minimal | Fedora-latest | x86_64 | ✅ passed | 25.10.2024 09:15:23 | 10min 12s | test pipeline |
| Fedora - 18 | Fedora-latest | x86_64 | ✅ passed | 25.10.2024 09:15:25 | 14min 10s | test pipeline |
| Fedora - 20 | Fedora-latest | x86_64 | ✅ passed | 25.10.2024 09:17:27 | 15min 26s | test pipeline |
| CentOS Stream 9 - 20 | CentOS-Stream-9 | x86_64 | ✅ passed | 25.10.2024 09:18:34 | 15min 45s | test pipeline |
| RHEL9 - 18-minimal | RHEL-9.4.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:15:33 | 19min 31s | test pipeline |
| CentOS Stream 10 - 22 | CentOS-Stream-10 | x86_64 | ❌ failed | 04.11.2024 08:47:11 | 10min 48s | test pipeline |
| RHEL9 - 18 | RHEL-9.4.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:15:27 | 21min 3s | test pipeline |
| RHEL8 - 18-minimal | RHEL-8.10.0-Nightly | x86_64 | ✅ passed | 04.11.2024 08:47:10 | 18min 33s | test pipeline |
| RHEL8 - 18 | RHEL-8.10.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:15:26 | 24min 17s | test pipeline |
| CentOS Stream 9 - 20-minimal | CentOS-Stream-9 | x86_64 | ✅ passed | 25.10.2024 09:21:42 | 19min 10s | test pipeline |
| RHEL9 - 20 | RHEL-9.4.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:21:04 | 20min 36s | test pipeline |
| CentOS Stream 10 - 22-minimal | CentOS-Stream-10 | x86_64 | ✅ passed | 25.10.2024 09:33:12 | 8min 26s | test pipeline |
| RHEL8 - 20 | RHEL-8.10.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:15:36 | 27min | test pipeline |
| Fedora - 20-minimal | Fedora-latest | x86_64 | ✅ passed | 25.10.2024 09:23:37 | 20min 12s | test pipeline |
| Fedora - 22 | Fedora-latest | x86_64 | ✅ passed | 25.10.2024 09:30:49 | 13min 16s | test pipeline |
| Fedora - 22-minimal | Fedora-latest | x86_64 | ✅ passed | 25.10.2024 09:34:55 | 10min 44s | test pipeline |
| RHEL9 - 22-minimal | RHEL-9.4.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:35:24 | 17min 30s | test pipeline |
| RHEL8 - 20-minimal | RHEL-8.10.0-Nightly | x86_64 | ✅ passed | 04.11.2024 08:47:13 | 26min 28s | test pipeline |
| RHEL9 - 22 | RHEL-9.4.0-Nightly | x86_64 | ✅ passed | 04.11.2024 08:47:15 | 21min 26s | test pipeline |
| RHEL9 - 20-minimal | RHEL-9.4.0-Nightly | x86_64 | ✅ passed | 25.10.2024 09:26:12 | 27min 35s | test pipeline |