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
[Test][core] inline build:test commands into browser test scripts #29411
[Test][core] inline build:test commands into browser test scripts #29411
Conversation
API change check API changes are not detected in this pull request. |
@@ -57,7 +57,7 @@ | |||
], | |||
"scripts": { | |||
"build:samples": "echo Obsolete", | |||
"build:test": "npm run clean && tshy && dev-tool run build-test", | |||
"build:test": "echo skipped. actual commands inlined in browser test scripts", |
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.
another approach is to have build:test:node
and build:test:browser
but it seems that we used to have that but moved away from it.
As far as I know for the majority of our packages we don't need to run `build:test` as we either runs test on .ts files, or `build` script already generates the .js files under `dist-esm`. Currently we only need to build the test for browser testing. This PR moves commands in `build:test` into the browser test scripts, thus saving us from rebuilding when testing for NodeJS.
efb1f38
to
fcec45d
Compare
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.
I love the idea of getting away from this step.
As a follow-up, can we roll this change out to all packages and remove the command from our CI?
node eng/tools/rush-runner.js build:test "${{parameters.ServiceDirectory}}" -packages "$(ArtifactPackageNames)" --verbose -p max |
and
node common/scripts/install-run-rush.js build:test -t "${{parameters.PackageName}}" --verbose -p max |
yeah that's what I eventually want too. I had a failed attempt earlier because some packages still depends on build:test. Once we get them to all "echo skipped" then the steps can be removed. |
for non-core packages in js - core pipelines. This PR is a follow-up of PR Azure#29411 for non-core packages.
for non-core packages in js - core pipelines. This PR is a follow-up of PR #29411 for non-core packages.
As far as I know for NodeJS the majority of our packages don't need
build:test
as we either runs test on .ts files, orbuild
script already generates the .js files underdist-esm
. Currently we only need to build the test for browser testing.This PR moves commands in
build:test
into the browser test scripts for core packages, thus saving us from rebuilding when testing for NodeJS.