GeezerVison is showing github.com — Delete all but one `build2` reference (#22391) · react/react@cf07c3d
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .circleci/config.yml +3-7Lines changed: 3 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -103,9 +103,7 @@ jobs: | 103 | 103 | - run: yarn build-combined | 104 | 104 | - persist_to_workspace: | 105 | 105 | root: . | 106 | | - # TODO: Migrate scripts to use `build` directory instead of `build2` | 107 | 106 | paths: | 108 | | - - build2 | 109 | 107 | - build | 110 | 108 |
| 111 | 109 | get_base_build: | @@ -121,7 +119,7 @@ jobs: | 121 | 119 | git fetch origin main | 122 | 120 | cd ./scripts/release && yarn && cd ../../ | 123 | 121 | scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/main) | 124 | | - mv ./build2 ./base-build | | 122 | + mv ./build ./base-build | 125 | 123 | - persist_to_workspace: | 126 | 124 | root: . | 127 | 125 | paths: | @@ -136,12 +134,11 @@ jobs: | 136 | 134 | at: . | 137 | 135 | - run: yarn workspaces info | head -n -1 > workspace_info.txt | 138 | 136 | - *restore_node_modules | 139 | | - - run: echo "<< pipeline.git.revision >>" >> build2/COMMIT_SHA | 140 | 137 | - run: echo "<< pipeline.git.revision >>" >> build/COMMIT_SHA | 141 | 138 | # Compress build directory into a single tarball for easy download | 142 | | - - run: tar -zcvf ./build2.tgz ./build2 | 143 | | - # TODO: Migrate scripts to use `build` directory instead of `build2` | 144 | 139 | - run: tar -zcvf ./build.tgz ./build | | 140 | + # TODO: Migrate scripts to use `build` directory instead of `build2` | | 141 | + - run: cp ./build.tgz ./build2.tgz | 145 | 142 | - store_artifacts: | 146 | 143 | path: ./build2.tgz | 147 | 144 | - store_artifacts: | @@ -154,7 +151,6 @@ jobs: | 154 | 151 | - checkout | 155 | 152 | - attach_workspace: | 156 | 153 | at: . | 157 | | - - run: echo "<< pipeline.git.revision >>" >> build2/COMMIT_SHA | 158 | 154 | - run: echo "<< pipeline.git.revision >>" >> build/COMMIT_SHA | 159 | 155 | - run: yarn workspaces info | head -n -1 > workspace_info.txt | 160 | 156 | - *restore_node_modules | |
Collapse file Copy file name to clipboardExpand all lines: .eslintignore -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,9 +6,6 @@ packages/react-art/npm/lib | 6 | 6 |
| 7 | 7 | # Build products | 8 | 8 | build/ | 9 | | -# TODO: Currently storing artifacts as `./build2` so that it doesn't conflict | 10 | | -# with old build job. Remove once we migrate rest of build/test pipeline. | 11 | | -build2/ | 12 | 9 | coverage/ | 13 | 10 | fixtures/ | 14 | 11 | scripts/bench/benchmarks/**/*.js | |
Collapse file Copy file name to clipboardExpand all lines: .gitignore +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,6 @@ scripts/flow/*/.flowconfig | 8 | 8 | _SpecRunner.html | 9 | 9 | __benchmarks__ | 10 | 10 | build/ | 11 | | -build2/ | 12 | 11 | remote-repo/ | 13 | 12 | coverage/ | 14 | 13 | .module-cache | @@ -36,4 +35,4 @@ packages/react-devtools-extensions/shared/build | 36 | 35 | packages/react-devtools-extensions/.tempUserDataDir | 37 | 36 | packages/react-devtools-inline/dist | 38 | 37 | packages/react-devtools-shell/dist | 39 | | -packages/react-devtools-scheduling-profiler/dist | | 38 | +packages/react-devtools-scheduling-profiler/dist |
Collapse file Copy file name to clipboardExpand all lines: scripts/flow/config/flowconfig -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | [ignore] | 2 | 2 | .*/scripts/bench/.* | 3 | 3 | .*/build/.* | 4 | | -.*/build2/.* | 5 | 4 | .*/fixtures/.* | 6 | 5 | .*/.tempUserDataDir/.* | 7 | 6 |
| |
Collapse file Copy file name to clipboardExpand all lines: scripts/release/shared-commands/download-build-artifacts.js -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 |
| 5 | 5 | const {exec} = require('child-process-promise'); | 6 | 6 | const {existsSync} = require('fs'); | 7 | | -const fse = require('fs-extra'); | 8 | 7 | const {join} = require('path'); | 9 | 8 | const {getArtifactsList, logPromise} = require('../utils'); | 10 | 9 | const theme = require('../theme'); | @@ -31,11 +30,6 @@ const run = async ({build, cwd, releaseChannel}) => { | 31 | 30 | } | 32 | 31 | ); | 33 | 32 |
| 34 | | - // TODO: Currently storing a copy of the artifacts as `./build2`, because | 35 | | - // some scripts reference that directory. Remove once we migrate everything to | 36 | | - // reference `./build` instead. | 37 | | - fse.copySync('./build', './build2'); | 38 | | - | 39 | 33 | // Copy to staging directory | 40 | 34 | // TODO: Consider staging the release in a different directory from the CI | 41 | 35 | // build artifacts: `./build/node_modules` -> `./staged-releases` | |
Collapse file Copy file name to clipboardExpand all lines: scripts/rollup/build-all-release-channels.js -9Lines changed: 0 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -56,11 +56,6 @@ if (process.env.CIRCLE_NODE_TOTAL) { | 56 | 56 | buildForChannel('experimental', nodeTotal, nodeIndex); | 57 | 57 | processExperimental('./build'); | 58 | 58 | } | 59 | | - | 60 | | - // TODO: Currently storing a copy of the artifacts as `./build2`, because | 61 | | - // some scripts reference that directory. Remove once we migrate everything to | 62 | | - // reference `./build` instead. | 63 | | - fse.copySync('./build', './build2'); | 64 | 59 | } else { | 65 | 60 | // Running locally, no concurrency. Move each channel's build artifacts into | 66 | 61 | // a temporary directory so that they don't conflict. | @@ -87,10 +82,6 @@ if (process.env.CIRCLE_NODE_TOTAL) { | 87 | 82 |
| 88 | 83 | // Now restore the combined directory back to its original name | 89 | 84 | crossDeviceRenameSync(stableDir, './build'); | 90 | | - // TODO: Currently storing a copy of the artifacts as `./build2`, because | 91 | | - // some scripts reference that directory. Remove once we migrate everything to | 92 | | - // reference `./build` instead. | 93 | | - fse.copySync('./build', './build2'); | 94 | 85 | } | 95 | 86 |
| 96 | 87 | function buildForChannel(channel, nodeTotal, nodeIndex) { | |
|