Skip to content

Commit 311389d

Browse files
authored
Revert "[clang-3.4-debuginfo-statistics] Fix the LNT submissions run order" (#292)
Reverts #291
1 parent 8f4b2cb commit 311389d

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

zorg/jenkins/jobs/jobs/clang-3.4-debuginfo-statistics

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pipeline {
1111

1212
string(name: 'GIT_SHA', defaultValue: params.GIT_REVISION ?: '*/release/13.x', description: 'Git commit to build.')
1313

14-
string(name: 'STAGE_1_JOB_NAME', defaultValue: params.STAGE_1_JOB_NAME ?: 'clang-stage1-RA', description: 'Stage 1 job name to download the artifact from.')
14+
string(name: 'ARTIFACT', defaultValue: params.ARTIFACT ?: 'clang-stage1-RA/latest', description: 'Clang artifact to use')
1515

1616
string(name: 'BUILD_TYPE', defaultValue: params.BUILD_TYPE ?: 'Release', description: 'Default CMake build type; one of: Release, Debug, ...')
1717

@@ -68,19 +68,6 @@ pipeline {
6868
'''
6969
}
7070
}
71-
stage('Download Properties File') {
72-
environment {
73-
PATH="$PATH:/usr/bin:/usr/local/bin"
74-
}
75-
steps {
76-
withCredentials([string(credentialsId: 's3_resource_bucket', variable: 'S3_BUCKET')]) {
77-
sh """
78-
source ./venv/bin/activate
79-
aws s3 cp "{S3_BUCKET}/clangci/${params.STAGE_1_JOB_NAME}/last_good_build.properties" "."
80-
"""
81-
}
82-
}
83-
}
8471
stage('Fetch Artifact') {
8572
environment {
8673
PATH="$PATH:/usr/bin:/usr/local/bin"
@@ -89,7 +76,7 @@ pipeline {
8976
withCredentials([string(credentialsId: 's3_resource_bucket', variable: 'S3_BUCKET')]) {
9077
sh """
9178
source ./venv/bin/activate
92-
export $(grep ARTIFACT last_good_build.properties)
79+
echo "ARTIFACT=${params.ARTIFACT}"
9380
python llvm-zorg/zorg/jenkins/monorepo_build.py fetch
9481
ls $WORKSPACE/host-compiler/lib/clang/
9582
VERSION=`ls $WORKSPACE/host-compiler/lib/clang/`
@@ -115,9 +102,21 @@ pipeline {
115102
sh '''
116103
source ./venv/bin/activate
117104
105+
cd src/clang-13
106+
git tag -a -m "First Commit" first_commit 97724f18c79c7cc81ced24239eb5e883bf1398ef || true
107+
108+
git_desc=$(git describe --match "first_commit")
109+
export GIT_DISTANCE=$(echo ${git_desc} | cut -f 2 -d "-")
110+
111+
sha=$(echo ${git_desc} | cut -f 3 -d "-")
112+
export GIT_SHA=${sha:1}
113+
114+
cd -
115+
118116
set -eux
119117
120118
$CXX --version
119+
LLVM_REV=${GIT_DISTANCE}
121120
122121
mkdir -p $HISTORIC_COMPILER-src
123122
mkdir -p $HISTORIC_COMPILER-build
@@ -167,11 +166,17 @@ pipeline {
167166
sh '''
168167
source ./venv/bin/activate
169168
170-
export GIT_DISTANCE=$(grep GIT_DISTANCE last_good_build.properties)
169+
cd src/clang-13
170+
git tag -a -m "First Commit" first_commit 97724f18c79c7cc81ced24239eb5e883bf1398ef || true
171+
172+
git_desc=$(git describe --match "first_commit")
173+
export GIT_DISTANCE=$(echo ${git_desc} | cut -f 2 -d "-")
174+
175+
cd -
171176
172177
python llvm-zorg/zorg/jenkins/jobs/util/submit-debuginfo-statistics-to-lnt.py
173178
'''
174179
}
175180
}
176181
}
177-
}
182+
}

0 commit comments

Comments
 (0)