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

Fix CI: Download to build instead of base-build #24677

Merged
merged 1 commit into from Jun 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 27 additions & 5 deletions .circleci/config.yml
Expand Up @@ -122,7 +122,28 @@ jobs:
paths:
- build

get_base_build:
download_build:
docker: *docker
environment: *environment
parameters:
revision:
type: string
steps:
- checkout
- run: yarn workspaces info | head -n -1 > workspace_info.txt
- *restore_node_modules
- run:
name: Download artifacts for revision
command: |
git fetch origin main
cd ./scripts/release && yarn && cd ../../
scripts/release/download-experimental-build.js --commit=<< parameters.revision >> --allowBrokenCI
- persist_to_workspace:
root: .
paths:
- base-build

download_base_build_for_sizebot:
docker: *docker
environment: *environment
steps:
Expand Down Expand Up @@ -493,7 +514,7 @@ workflows:
# - "-r=www-modern --env=production --variant=true"

# TODO: Test more persistent configurations?
- get_base_build:
- download_base_build_for_sizebot:
filters:
branches:
ignore:
Expand All @@ -506,7 +527,7 @@ workflows:
ignore:
- main
requires:
- get_base_build
- download_base_build_for_sizebot
- yarn_build_combined
- yarn_lint_build:
requires:
Expand Down Expand Up @@ -555,12 +576,13 @@ workflows:
- main
jobs:
- setup
- get_base_build:
- download_build:
requires:
- setup
revision: << pipeline.git.revision >>
- build_devtools_and_process_artifacts:
requires:
- get_base_build
- download_build
- run_devtools_tests_for_versions:
requires:
- build_devtools_and_process_artifacts
Expand Down