You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/06/27 17:32:00 UTC

[jira] [Resolved] (SLING-11401) Jenkins: Properly isolate workspace directories for parallel stages

     [ https://issues.apache.org/jira/browse/SLING-11401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus resolved SLING-11401.
-------------------------------------
    Resolution: Fixed

Fixed in https://github.com/apache/sling-tooling-jenkins/commit/86f64a59ed33c4e7bdbee8150d391d9d27ac8ebb.

> Jenkins: Properly isolate workspace directories for parallel stages
> -------------------------------------------------------------------
>
>                 Key: SLING-11401
>                 URL: https://issues.apache.org/jira/browse/SLING-11401
>             Project: Sling
>          Issue Type: Bug
>          Components: Build and Source Control
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The default workspace name is not unique for parallel stages which run incidentally on the same node. That could lead to race conditions (e.g. between clean and install).
> An example can be found here (https://ci-builds.apache.org/job/Sling/job/modules/job/sling-maven-enforcer-rules/job/master/19/console) where the rat-check was executed on a workspace which was populated by another job.
> {code}
> [WARNING] Files with unapproved licenses:
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/maven-metadata.xml.sha1
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-metadata.xml.sha1
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-metadata.xml.md5
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-enforcer-rules-1.0.1-20220618.114744-1-sources.jar.sha1
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-enforcer-rules-1.0.1-20220618.114744-1.jar.md5
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-enforcer-rules-1.0.1-20220618.114744-1.pom.sha1
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-enforcer-rules-1.0.1-20220618.114744-1.jar.sha1
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-metadata.xml
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-enforcer-rules-1.0.1-20220618.114744-1.pom.md5
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/1.0.1-SNAPSHOT/maven-enforcer-rules-1.0.1-20220618.114744-1-sources.jar.md5
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/maven-metadata.xml.md5
>   local-snapshots-dir/org/apache/sling/maven-enforcer-rules/maven-metadata.xml
> {code}
> Also the Maven repository should not be shared until Maven 3.9 (with Maven Resolver 1.7+) has been released as there is no proper locking in place there (compare with https://lists.apache.org/thread/yovswz70v3f4d2b5ofyoqymvg9lbmzrg).
> As the installation to the local repository directory may be executed for multi-module jobs prior to execution of rat-maven-plugin the local repository should be created below {{target}} where it is excluded by default (and also cleaned up through a regular {{mvn clean}}).



--
This message was sent by Atlassian Jira
(v8.20.7#820007)