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

Min-max testing for Common package : Separate folder & Pipeline creation #24225

Merged

Conversation

mjafferi-msft
Copy link
Member

@mjafferi-msft mjafferi-msft commented Dec 14, 2022

Packages impacted by this PR

communication-common

Issues associated with this PR

Describe the problem that is addressed by this PR

  1. Created 2 folders under test folder :
    - public which contains all the tests eligible for min-max testing
    - internal that contains tests that access private/internal members

  2. Fixed tests that were failing when object instance was checked possibly due to different package versions referenced.

  3. Added tests.yml file to the Common package which is responsible for creating live test pipeline.
    - Modified the matrix to skip all unnecessary jobs and just execute min-max testing

  4. Live test pipelines created :
    - Pipelines - Runs for js - communication-common - tests (azure.com)
    - Pipelines - Runs for js - communication-common - tests-weekly (azure.com)

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

No new test cases are added. Just restructuring of test folder and fixing failed tests so as to enable min-max testing.

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@mjafferi-msft
Copy link
Member Author

/azp run js - communication-common - tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@ckairen
Copy link
Member

ckairen commented Dec 14, 2022

/azp run prepare-pipelines

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

ghost pushed a commit to Azure/azure-sdk-tools that referenced this pull request Dec 15, 2022
Was trying to set up live test pipeline for this [pr](Azure/azure-sdk-for-js#24225). The prepare-pipeline job failed due to [not being able to find install-pipeline-generation.yml](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2056101&view=results).
@ckairen
Copy link
Member

ckairen commented Dec 15, 2022

/azp run prepare-pipelines

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -23,7 +23,7 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 dist-esm/test/*.spec.js dist-esm/test/node/*.spec.js",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 dist-esm/test/**/*.spec.js dist-esm/test/node/*.spec.js",
Copy link
Member Author

Choose a reason for hiding this comment

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

This change is because test files has now been moved to test/public or test/internal folders and is needed to show coverage summary.

@Azure Azure deleted a comment from azure-pipelines bot Dec 21, 2022
@Azure Azure deleted a comment from azure-pipelines bot Dec 21, 2022
@Azure Azure deleted a comment from azure-pipelines bot Dec 21, 2022
@Azure Azure deleted a comment from azure-pipelines bot Dec 21, 2022
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Azure Azure deleted a comment from azure-pipelines bot Dec 21, 2022
@mjafferi-msft
Copy link
Member Author

/azp run js - communication-common - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mjafferi-msft
Copy link
Member Author

/azp run js - communication-common - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mjafferi-msft
Copy link
Member Author

/azp run js - communication-common - tests

@azure-pipelines
Copy link

Pull request contains merge conflicts.

@mjafferi-msft
Copy link
Member Author

/azp run js - communication-common - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@maximrytych-ms maximrytych-ms left a comment

Choose a reason for hiding this comment

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

Great work!

@mjafferi-msft mjafferi-msft merged commit 2fef257 into Azure:main Jan 6, 2023
@mjafferi-msft mjafferi-msft deleted the minmaxtesting_folderseparation branch January 9, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants