build: jenkins: archive-prerequisites.sh fails in with build configs

Bug #2028880 reported by Davlet Panech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
New
Undecided
Unassigned

Bug Description

Brief Description
-----------------

The sub-job "download-prerequisites" conflicts with logic in "archive-misc". Both attempt to archive the "mirrors" directory in different ways. The relevant steps in download-prerequisites should probably be removed. This happens when re-building the same build:

1) download-prerequisites creates "mirrors" as a symlink
2) archive-misc deletes the symlink and creates a directory full of hardlinks in its place
3) ==> REBUILD the same build; this will use the same timestamped directory for the archive dir under /localdisk/loadbuil
4) Step (1) fails because there's already a directory (from step 3) at destination

Severity
--------
Minor

Steps to Reproduce
------------------
1) Set ARCHIVE_BIG_DIRS="checksum-hardlink" in build.conf
2) Run Jenkins build
3) Re-run Jenkins build

Expected Behavior
------------------
Both builds succeed

Actual Behavior
----------------
The re-build fails in the "download-prerequisites" job

Reproducibility
---------------
Reproducible

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
master/2023-07-27

Last Pass
---------
N/A

Timestamp/Logs
--------------

12:48:43 + /var/lib/jenkins/workspace/dpanech/starlingx-jenkins-pipelines/parts/download-prerequisites/scripts/archive-prerequisites.sh
12:48:43 reading /localdisk/designer/jenkins/dpanech-wrcp-master/build.conf
12:48:43 cd /localdisk/designer/jenkins/dpanech-wrcp-master/repo/stx-tools
12:48:43 sourcing ./import-stx
12:48:43 + [[ -d /localdisk/designer/jenkins/dpanech-wrcp-master/mirrors ]]
12:48:43 + mkdir -p /localdisk/loadbuild/jenkins/dpanech-wrcp-master/2023-07-26_11-50-31
12:48:43 + ln -sfn /localdisk/designer/jenkins/dpanech-wrcp-master/mirrors /localdisk/loadbuild/jenkins/dpanech-wrcp-master/2023-07-26_11-50-31/
12:48:43 ln: ‘/localdisk/loadbuild/jenkins/dpanech-wrcp-master/2023-07-26_11-50-31/mirrors’: cannot overwrite directory

Test Activity
-------------
N/A

Workaround
----------
N/A

Tags: stx.build
Ghada Khalil (gkhalil)
tags: added: stx.build
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.