Skip to content
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

[engsys] build test assets only for browser runs #27035

Merged

Conversation

jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Sep 6, 2023

We no longer run Node tests against bundled tests. The test inputs are from dist-esm/test and running build produces the same output as build:test as far as Node is concerned.

For browser we still need the bundled tests from build:test.

This PR enables "Build test assets" step only if the run is for browser.

We no longer run Node tests against bundled tests. The test inputs are from
dist-esm/test and running `build` produces the same output as `build:test` as
far as Node is concerned.

For browser we still need the bundled tests from `build:test`.

This PR enable "Build test assets" step only if the run is for browser.
@jeremymeng
Copy link
Member Author

/azp run js - storage-blob - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeremymeng
Copy link
Member Author

/azp run js - app-configuration - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeremymeng
Copy link
Member Author

/azp run js - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeremymeng jeremymeng marked this pull request as ready for review September 7, 2023 00:37
Copy link
Member

@benbp benbp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Some minor readability nits that seem to have been there in the original condition statement that we might as well update.

jeremymeng and others added 2 commits September 7, 2023 09:36
@jeremymeng jeremymeng enabled auto-merge (squash) September 7, 2023 16:37
@jeremymeng jeremymeng merged commit e453c2d into Azure:main Sep 7, 2023
@jeremymeng jeremymeng deleted the engsys/build-tests-only-for-browser branch September 7, 2023 17:10
jeremymeng added a commit to jeremymeng/azure-sdk-for-js that referenced this pull request Sep 8, 2023
jeremymeng added a commit that referenced this pull request Sep 11, 2023
…27065)

This reverts commit e453c2d.

PR #27035 keeps `build;test` only for browser runs. It turns out that a
couple of packages have custom `build:test` scripts that are different
from `build`. While we can explore more on enabling `build:test` for
these few packages, this PR reverts the changes to unblock automation
builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants