Skip to content

Commit

Permalink
Scrape warning messages in CI (facebook#22393)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
acdlite authored and zhengjitf committed Apr 15, 2022
1 parent 619e433 commit c22640a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ jobs:
- *restore_node_modules
- run: node ./scripts/tasks/flow-ci

scrape_warning_messages:
docker: *docker
environment: *environment

steps:
- checkout
- run: yarn workspaces info | head -n -1 > workspace_info.txt
- *restore_node_modules
- run:
command: |
mkdir -p ./build
node ./scripts/print-warnings/print-warnings.js > build/WARNINGS
- persist_to_workspace:
root: .
paths:
- build

yarn_build_combined:
docker: *docker
Expand Down Expand Up @@ -345,8 +361,12 @@ workflows:
- yarn_build_combined:
requires:
- setup
- scrape_warning_messages:
requires:
- setup
- process_artifacts_combined:
requires:
- scrape_warning_messages
- yarn_build_combined
- yarn_test_build:
requires:
Expand Down

0 comments on commit c22640a

Please sign in to comment.