Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
346a4a4
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
2897347
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
48cb7a0
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
aa7a4d0
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
2d29978
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
efc015f
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
2ae4c46
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
b33b14d
Added GitHub Workflow YAML definition.
vineetmimrot Sep 9, 2020
692ae25
e2e-v1
vineetmimrot Sep 15, 2020
b83de5c
minor fix
vineetmimrot Sep 15, 2020
4b64540
final version of test
vineetmimrot Sep 16, 2020
9020d3a
set env var
vineetmimrot Sep 16, 2020
d0708c6
undo commit
vineetmimrot Sep 16, 2020
4514ecf
minor fix
vineetmimrot Sep 16, 2020
dd06f21
Adding workflow
vineetmimrot Sep 17, 2020
2c6146d
Merge branch 'master' into e2e-test
vineetmimrot Sep 17, 2020
6b820eb
Update extension-tests.yml
vineetmimrot Sep 17, 2020
1dec0d2
Update extension-tests.yml
vineetmimrot Sep 17, 2020
5256400
workflow fix
vineetmimrot Sep 17, 2020
869df54
minor fix
vineetmimrot Sep 17, 2020
3ea0031
minor fix
vineetmimrot Sep 17, 2020
e1d0e6e
m2
vineetmimrot Sep 17, 2020
b3a5769
show tests results
vineetmimrot Sep 17, 2020
81b8b5d
fix workflow failure
vineetmimrot Sep 17, 2020
5347e8a
test failure scenario
vineetmimrot Sep 17, 2020
7568384
workflow fix
vineetmimrot Sep 17, 2020
6c9f762
m1
vineetmimrot Sep 17, 2020
21bf24a
m2
vineetmimrot Sep 17, 2020
e738bf7
m3
vineetmimrot Sep 17, 2020
8fa0653
m4
vineetmimrot Sep 17, 2020
ad7ce25
final fix
vineetmimrot Sep 17, 2020
8ff630d
m1
vineetmimrot Sep 17, 2020
e99c3c3
Merge branch 'master' into e2e-test
vineetmimrot Sep 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/test-failed-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Build Failed Issue
about: Something went wrong with CI build
title: Build Failed Issue [{{payload.sender.login}}]
labels: Build Failed
assignees: bishal-pdMSFT, vineetmimrot, kanika1894

---

Event triggered by: {{payload.sender.login}}
Workflow: {{ workflow }}
Branch: {{ref}}

Something went wrong with GitHub checks for {{ workflow }}. For more info visit-

https://github.com/microsoft/vscode-deploy-azure/actions?query=workflow%3A%22Extension%20Test%20analysis%22%20is%3Afailure
44 changes: 44 additions & 0 deletions .github/workflows/extension-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Extension Test analysis"

on: [push]

jobs:
build:

strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: '12'

- name: npm install
run: npm install

- name: Build extension
run: npm run compile

- name: Run tests
uses: GabrielBB/[email protected]
with:
run: npm test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Azure_UserName: ${{ secrets.Azure_UserName }}
Azure_PAT: ${{ secrets.Azure_PAT }}

- name: Create an issue
uses: JasonEtco/[email protected]
if: ${{ failure() && github.ref == 'refs/heads/master' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/ISSUE_TEMPLATE/test-failed-issue.md
16 changes: 11 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceRoot}/src/test/workspace/",
// Add repository path on which you want to test
"",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
// Change this to whatever test you want to debug
"--extensionTestsPath=${workspaceFolder}/out/configure/test/E2ETests/Static_Win_WebApp_Suite"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
]
"${workspaceFolder}/out/configure/test/**/*.js"
],
"env": {
// Uncomment below line to show telemetry on Debug console
"DEBUGTELEMETRY": "v",
}
},
{
"name": "Extension Tests From Server",
Expand All @@ -60,4 +66,4 @@
]
}
]
}
}
3 changes: 3 additions & 0 deletions copyStaticFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ var mkdir = function (options, target) {
mkdir("-p", path.join(__dirname, 'out/configure/templates'));
cp("-Rf", path.join(__dirname, 'src/configure/templates/*'), path.join(__dirname, 'out/configure/templates'));
//# sourceMappingURL=copyStaticFiles.js.map

mkdir("-p", path.join(__dirname, 'out/configure/test/E2ETests/testFixtures'));
cp("-Rf", path.join(__dirname, 'src/configure/test/E2ETests/testFixtures/*'), path.join(__dirname, 'out/configure/test/E2ETests/testFixtures'));
161 changes: 155 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"compile": "tsc -p ./ && node copyStaticFiles.js",
"watch": "node copyStaticFiles.js && tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"pretest": "npm run compile",
"test": "node ./out/configure/test/runTest.js"
},
"devDependencies": {
Expand All @@ -123,13 +122,16 @@
"@types/mustache": "0.8.32",
"@types/node": "7.0.43",
"@types/q": "1.5.0",
"@types/sinon": "^9.0.5",
"@types/underscore": "1.8.9",
"ajv": "^6.9.1",
"assert": "1.4.1",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"glob": "^7.1.6",
"mocha": "^7.1.2",
"nock": "^13.0.2",
"sinon": "^9.0.3",
"ts-node": "7.0.1",
"tslint": "5.8.0",
"tslint-microsoft-contrib": "^6.2.0",
Expand Down Expand Up @@ -163,4 +165,4 @@
"extensionDependencies": [
"ms-vscode.azure-account"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class PortalExtensionRepositoryAnalysisClient implements IRepositoryAnaly
private restClient: RestClient;
private url: string;
constructor(url: string, credentials: ServiceClientCredentials) {
this.restClient = new RestClient(credentials);
this.restClient = new RestClient(credentials, { noRetryPolicy: true });
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixes repo analysis long retry bug

this.url = url;
}

Expand Down
Loading