Repository navigation
ci(a11y): the contract job also runs the specs of components that import a touched shared hook or util #14261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ import path from 'node:path'; | |
| import {pathToFileURL} from 'node:url'; | ||
| import {createRequire} from 'node:module'; | ||
| import {changedFolderMembers} from './a11y-pr-scope.mjs'; | ||
| import {sharedModules} from './a11y-pr-contracts.mjs'; | ||
|
|
||
| const require = createRequire(import.meta.url); | ||
| const {diffAgainstBaseline} = require('./lib/a11y-baseline.js'); | ||
|
|
@@ -624,6 +625,7 @@ export function main(argv = process.argv.slice(2)) { | |
| // budget (spec:AST-030 FR12). | ||
| contract_owners: scope.touched.join(','), | ||
| contract_folders: scope.folders.join(','), | ||
| contract_shared: sharedModules(files).join(','), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When CI cannot decide the scope (GitHub cannot list the changed files, say), |
||
| rtl_packages: Object.keys(scope.rtlOwnersByPackage).join(','), | ||
| rtl_owners: scope.touched.join(','), | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This goes through
isRenderedSource, whoseNOT_RENDERED(lines 410-411) excludes only.d.ts. A.d.mtsor.d.ctsdeclaration underhooks/orutils/is therefore listed and starts the contract job (reproduced locally), although the comment above and the description say declarations are never listed. Exclude\.d\.[cm]?ts$and add a.d.mtspath to thesharedModulestest.