Skip to content

Commit 8fcfdff

Browse files
authored
Scrape warning messages in CI (#22393)
There's a downstream workflow that runs the `print-warnings` command. We can make it faster by scraping the warnings in CI and storing the result as a build artifact.
1 parent ba07042 commit 8fcfdff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@ jobs:
9191
- *restore_node_modules
9292
- run: node ./scripts/tasks/flow-ci
9393

94+
scrape_warning_messages:
95+
docker: *docker
96+
environment: *environment
97+
98+
steps:
99+
- checkout
100+
- run: yarn workspaces info | head -n -1 > workspace_info.txt
101+
- *restore_node_modules
102+
- run:
103+
command: |
104+
mkdir -p ./build
105+
node ./scripts/print-warnings/print-warnings.js > build/WARNINGS
106+
- persist_to_workspace:
107+
root: .
108+
paths:
109+
- build
94110

95111
yarn_build_combined:
96112
docker: *docker
@@ -345,8 +361,12 @@ workflows:
345361
- yarn_build_combined:
346362
requires:
347363
- setup
364+
- scrape_warning_messages:
365+
requires:
366+
- setup
348367
- process_artifacts_combined:
349368
requires:
369+
- scrape_warning_messages
350370
- yarn_build_combined
351371
- yarn_test_build:
352372
requires:

0 commit comments

Comments
 (0)