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

Samples and tests for Azure Quantum SDK #13480

Merged
merged 49 commits into from
Feb 4, 2021
Merged

Conversation

vxfield
Copy link
Member

@vxfield vxfield commented Jan 29, 2021

No description provided.

@vxfield vxfield requested a review from sarangan12 January 29, 2021 13:11
@vxfield
Copy link
Member Author

vxfield commented Jan 29, 2021

/azp run js - mgmt - pr

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vxfield
Copy link
Member Author

vxfield commented Jan 29, 2021

/azp run prepare-pipelines

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vxfield
Copy link
Member Author

vxfield commented Jan 29, 2021

/azp run net - quanttum - ci

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@vxfield
Copy link
Member Author

vxfield commented Jan 29, 2021

/azp run net - quantum - ci

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@vxfield
Copy link
Member Author

vxfield commented Jan 29, 2021

/azp run js - quantum - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vxfield
Copy link
Member Author

vxfield commented Jan 29, 2021

/azp run js - quantum - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vxfield
Copy link
Member Author

vxfield commented Feb 4, 2021

/azp run js - quantum - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

"execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/",
"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": "echo skipped",
Copy link
Member

Choose a reason for hiding this comment

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

Browser tests are being skipped because we would need to launch the browser pop-up window for authentication and it couldn't be possible to do that with a headless browser.

/cc @sadasant

@@ -0,0 +1,14 @@
{
"name": "azure-quantum-jobs-samples-js",
Copy link
Member

Choose a reason for hiding this comment

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

Regarding samples... restructuring required in a future PR.

The current structure we have for samples folder - https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/template/template/samples

JS and TS samples are to be separated in folders as shown in the above link.

Based on the metadata in the readme of those folders, the samples get published at docs.microsoft.com
Example: https://docs.microsoft.com/en-us/samples/azure/azure-sdk-for-js/service-bus-typescript/

subscriptionId: string,
resourceGroupName: string,
workspaceName: string,
options?: QuantumJobClientOptionalParams
) {
if (credentials === undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (credentials === undefined) {
if (credentials == undefined) {

This would cover both null and undefined.

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 code is auto-generated by autorest so I'll open a bug there

Copy link
Member

Choose a reason for hiding this comment

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

I see.

@vxfield vxfield dismissed sarangan12’s stale review February 4, 2021 05:05

Will remove this file in the next PR

@vxfield vxfield merged commit ea5bf30 into master Feb 4, 2021
@vxfield vxfield deleted the feature/azure-quantum-sdk branch February 4, 2021 05:05
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.

4 participants