Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Cirrus cache for Orchestrator #4696

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
fingerprint_script: cat **/pom.xml

orchestrator_cache_preparation_definition: &ORCHESTRATOR_CACHE
set_orchestrator_home_script: |
export TODAY=$(date '+%Y-%m-%d')
echo "TODAY=${TODAY}" >> $CIRRUS_ENV
echo "ORCHESTRATOR_HOME=${CIRRUS_WORKING_DIR}/orchestrator/${TODAY}" >> $CIRRUS_ENV
mkdir_orchestrator_home_script: |
echo "Create dir ${ORCHESTRATOR_HOME} if needed"
mkdir -p ${ORCHESTRATOR_HOME}
orchestrator_cache:
folder: ${ORCHESTRATOR_HOME}
fingerprint_script: echo ${TODAY}
reupload_on_changes: 'true'

nodejs_runtimes_cache_definition: &RUNTIME_CACHE
runtime_cache:
folder: tools/fetch-node/downloads/
Expand Down Expand Up @@ -88,6 +101,7 @@
CIRRUS_CLONE_DEPTH: 10
SONARSOURCE_QA: true
<<: *MAVEN_CACHE
<<: *ORCHESTRATOR_CACHE
qa_script:
- source cirrus-env QA
- source set_maven_build_version $BUILD_NUMBER
Expand Down Expand Up @@ -220,6 +234,7 @@
- TEST: 'CoverageTest,TypeScriptAnalysisTest,EslintBasedRulesTest,PRAnalysisTest,TypeCheckerConfigTest,VueAnalysisTest'
<<: *WIN_SSD_AND_CLONE
<<: *MAVEN_CACHE
<<: *ORCHESTRATOR_CACHE
qa_script:
- source /c/buildTools-docker/bin/cirrus-env QA
- source /c/buildTools-docker/bin/set_maven_build_version $BUILD_NUMBER
Expand Down Expand Up @@ -284,6 +299,7 @@
CIRRUS_CLONE_DEPTH: 10
SONARSOURCE_QA: true
<<: *MAVEN_CACHE
<<: *ORCHESTRATOR_CACHE
submodules_script:
- git submodule update --init
ruling_script:
Expand All @@ -308,6 +324,7 @@
CIRRUS_CLONE_DEPTH: 10
SONARSOURCE_QA: true
<<: *MAVEN_CACHE
<<: *ORCHESTRATOR_CACHE
submodules_script:
- git submodule update --init
perf_script:
Expand All @@ -320,7 +337,7 @@
path: 'its/perf/target/perf.txt'
cleanup_before_cache_script: cleanup_maven_repository

promote_task:

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 340 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L340

task "promote" depends on task "ws_scan", but their only_if conditions are different
depends_on:
- ws_scan
- build_win
Expand Down
Loading