-
Notifications
You must be signed in to change notification settings - Fork 47.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The existing flow-ci script makes some assumptions about running inside of circleci for parallelization. This PR forks the script with very smal ll tweaks to allow for a short name to be passed in as an argument. These short names are discovered in a new GH job and then each one is passed as an argument for parallelization ghstack-source-id: d134d321b27265066b18993fc4dabd45bff37cc9 Pull Request resolved: #30026
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
process.on('unhandledRejection', err => { | ||
throw err; | ||
}); | ||
|
||
const runFlow = require('../flow/runFlow'); | ||
const inlinedHostConfigs = require('../shared/inlinedHostConfigs'); | ||
|
||
async function check(shortName) { | ||
if (shortName == null) { | ||
throw new Error('Expected an inlinedHostConfig shortName'); | ||
} | ||
const rendererInfo = inlinedHostConfigs.find( | ||
config => config.shortName === shortName | ||
); | ||
if (rendererInfo.isFlowTyped) { | ||
await runFlow(rendererInfo.shortName, ['check']); | ||
console.log(); | ||
} | ||
} | ||
|
||
check(process.argv[2]); |