mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Delete all but one build2 reference (#22391)
This removes all the remaining references to the `build2` directory except for the CI job that stores the artifacts. We'll keep the `build2` artifact until downstream scripts are migrated to `build`.
This commit is contained in:
parent
bb0d069359
commit
cf07c3df12
|
|
@ -103,9 +103,7 @@ jobs:
|
||||||
- run: yarn build-combined
|
- run: yarn build-combined
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
# TODO: Migrate scripts to use `build` directory instead of `build2`
|
|
||||||
paths:
|
paths:
|
||||||
- build2
|
|
||||||
- build
|
- build
|
||||||
|
|
||||||
get_base_build:
|
get_base_build:
|
||||||
|
|
@ -121,7 +119,7 @@ jobs:
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
cd ./scripts/release && yarn && cd ../../
|
cd ./scripts/release && yarn && cd ../../
|
||||||
scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/main)
|
scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/main)
|
||||||
mv ./build2 ./base-build
|
mv ./build ./base-build
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -136,12 +134,11 @@ jobs:
|
||||||
at: .
|
at: .
|
||||||
- run: yarn workspaces info | head -n -1 > workspace_info.txt
|
- run: yarn workspaces info | head -n -1 > workspace_info.txt
|
||||||
- *restore_node_modules
|
- *restore_node_modules
|
||||||
- run: echo "<< pipeline.git.revision >>" >> build2/COMMIT_SHA
|
|
||||||
- run: echo "<< pipeline.git.revision >>" >> build/COMMIT_SHA
|
- run: echo "<< pipeline.git.revision >>" >> build/COMMIT_SHA
|
||||||
# Compress build directory into a single tarball for easy download
|
# Compress build directory into a single tarball for easy download
|
||||||
- run: tar -zcvf ./build2.tgz ./build2
|
|
||||||
# TODO: Migrate scripts to use `build` directory instead of `build2`
|
|
||||||
- run: tar -zcvf ./build.tgz ./build
|
- run: tar -zcvf ./build.tgz ./build
|
||||||
|
# TODO: Migrate scripts to use `build` directory instead of `build2`
|
||||||
|
- run: cp ./build.tgz ./build2.tgz
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ./build2.tgz
|
path: ./build2.tgz
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
|
@ -154,7 +151,6 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: echo "<< pipeline.git.revision >>" >> build2/COMMIT_SHA
|
|
||||||
- run: echo "<< pipeline.git.revision >>" >> build/COMMIT_SHA
|
- run: echo "<< pipeline.git.revision >>" >> build/COMMIT_SHA
|
||||||
- run: yarn workspaces info | head -n -1 > workspace_info.txt
|
- run: yarn workspaces info | head -n -1 > workspace_info.txt
|
||||||
- *restore_node_modules
|
- *restore_node_modules
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,6 @@ packages/react-art/npm/lib
|
||||||
|
|
||||||
# Build products
|
# Build products
|
||||||
build/
|
build/
|
||||||
# TODO: Currently storing artifacts as `./build2` so that it doesn't conflict
|
|
||||||
# with old build job. Remove once we migrate rest of build/test pipeline.
|
|
||||||
build2/
|
|
||||||
coverage/
|
coverage/
|
||||||
fixtures/
|
fixtures/
|
||||||
scripts/bench/benchmarks/**/*.js
|
scripts/bench/benchmarks/**/*.js
|
||||||
|
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -8,7 +8,6 @@ scripts/flow/*/.flowconfig
|
||||||
_SpecRunner.html
|
_SpecRunner.html
|
||||||
__benchmarks__
|
__benchmarks__
|
||||||
build/
|
build/
|
||||||
build2/
|
|
||||||
remote-repo/
|
remote-repo/
|
||||||
coverage/
|
coverage/
|
||||||
.module-cache
|
.module-cache
|
||||||
|
|
@ -36,4 +35,4 @@ packages/react-devtools-extensions/shared/build
|
||||||
packages/react-devtools-extensions/.tempUserDataDir
|
packages/react-devtools-extensions/.tempUserDataDir
|
||||||
packages/react-devtools-inline/dist
|
packages/react-devtools-inline/dist
|
||||||
packages/react-devtools-shell/dist
|
packages/react-devtools-shell/dist
|
||||||
packages/react-devtools-scheduling-profiler/dist
|
packages/react-devtools-scheduling-profiler/dist
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
[ignore]
|
[ignore]
|
||||||
.*/scripts/bench/.*
|
.*/scripts/bench/.*
|
||||||
.*/build/.*
|
.*/build/.*
|
||||||
.*/build2/.*
|
|
||||||
.*/fixtures/.*
|
.*/fixtures/.*
|
||||||
.*/.tempUserDataDir/.*
|
.*/.tempUserDataDir/.*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
const {exec} = require('child-process-promise');
|
const {exec} = require('child-process-promise');
|
||||||
const {existsSync} = require('fs');
|
const {existsSync} = require('fs');
|
||||||
const fse = require('fs-extra');
|
|
||||||
const {join} = require('path');
|
const {join} = require('path');
|
||||||
const {getArtifactsList, logPromise} = require('../utils');
|
const {getArtifactsList, logPromise} = require('../utils');
|
||||||
const theme = require('../theme');
|
const theme = require('../theme');
|
||||||
|
|
@ -31,11 +30,6 @@ const run = async ({build, cwd, releaseChannel}) => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: Currently storing a copy of the artifacts as `./build2`, because
|
|
||||||
// some scripts reference that directory. Remove once we migrate everything to
|
|
||||||
// reference `./build` instead.
|
|
||||||
fse.copySync('./build', './build2');
|
|
||||||
|
|
||||||
// Copy to staging directory
|
// Copy to staging directory
|
||||||
// TODO: Consider staging the release in a different directory from the CI
|
// TODO: Consider staging the release in a different directory from the CI
|
||||||
// build artifacts: `./build/node_modules` -> `./staged-releases`
|
// build artifacts: `./build/node_modules` -> `./staged-releases`
|
||||||
|
|
|
||||||
|
|
@ -56,11 +56,6 @@ if (process.env.CIRCLE_NODE_TOTAL) {
|
||||||
buildForChannel('experimental', nodeTotal, nodeIndex);
|
buildForChannel('experimental', nodeTotal, nodeIndex);
|
||||||
processExperimental('./build');
|
processExperimental('./build');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Currently storing a copy of the artifacts as `./build2`, because
|
|
||||||
// some scripts reference that directory. Remove once we migrate everything to
|
|
||||||
// reference `./build` instead.
|
|
||||||
fse.copySync('./build', './build2');
|
|
||||||
} else {
|
} else {
|
||||||
// Running locally, no concurrency. Move each channel's build artifacts into
|
// Running locally, no concurrency. Move each channel's build artifacts into
|
||||||
// a temporary directory so that they don't conflict.
|
// a temporary directory so that they don't conflict.
|
||||||
|
|
@ -87,10 +82,6 @@ if (process.env.CIRCLE_NODE_TOTAL) {
|
||||||
|
|
||||||
// Now restore the combined directory back to its original name
|
// Now restore the combined directory back to its original name
|
||||||
crossDeviceRenameSync(stableDir, './build');
|
crossDeviceRenameSync(stableDir, './build');
|
||||||
// TODO: Currently storing a copy of the artifacts as `./build2`, because
|
|
||||||
// some scripts reference that directory. Remove once we migrate everything to
|
|
||||||
// reference `./build` instead.
|
|
||||||
fse.copySync('./build', './build2');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildForChannel(channel, nodeTotal, nodeIndex) {
|
function buildForChannel(channel, nodeTotal, nodeIndex) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user