Skip to content

Commit 9d1d2db

Browse files
qianz2DmitriiBobreshevDmitrii Bobreshev (Akvelon INC)Maxim Zaytsev
authored
Migrate PublishSymbolsV2 (#19242)
* migrate PublishSymbolsV2 * update node20 handler * Migrate PublishSymbolsV2 - Replace task-lib to remove deasync package dependency --------- Co-authored-by: Dmitrii Bobreshev <[email protected]> Co-authored-by: Dmitrii Bobreshev (Akvelon INC) <[email protected]> Co-authored-by: Maxim Zaytsev <[email protected]>
1 parent d52dfc0 commit 9d1d2db

File tree

94 files changed

+6709
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+6709
-29
lines changed

Tasks/PublishSymbolsV2/Tests/L0NetCore.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ describe('Publishing Symbol Suite', function () {
99
after(() => {
1010
});
1111

12-
it('(Publishing symbols) from current organization with NetCore version', function (done: MochaDone) {
12+
it('(Publishing symbols) from current organization with NetCore version', async function (done: MochaDone) {
1313
this.timeout(1000);
1414
let tp = path.join(__dirname, './PublishSymbolsInternal.js')
1515
assert("should have no errors", tp);
1616
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
1717

18-
tr.run();
18+
await tr.runAsync();
1919
assert(tr.ran(`mock/location/symbol.exe publish --service https://example.artifacts.visualstudio.com --name testpublishsymbol/testpublishsymbolbuild/2021.11.30/1/8fd4c05c-e13b-4dc1-8f0f-7e1c661db3b5 --directory c:\\temp --expirationInDays 365 --patAuthEnvVar SYMBOL_PAT_AUTH_TOKEN --fileListFileName ${path.join("c:\\agent\\_temp", "ListOfSymbols-8fd4c05c-e13b-4dc1-8f0f-7e1c661db3b5.txt")} --tracelevel verbose --globalretrycount 2`), 'it should have run client tool symbol.exe');
2020
assert(tr.stdOutContained('Symbol.exe output'), "should have symbol output");
2121
assert(tr.succeeded, 'should have succeeded');

Tasks/PublishSymbolsV2/_buildConfigs/Node20/package-lock.json

+667
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "publishsymbolsv2",
3+
"version": "2.0.0",
4+
"description": "Index sources and publish symbols.",
5+
"scripts": {
6+
"test": "echo \"Error: no test specified\" && exit 1"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/Microsoft/azure-pipelines-tasks.git"
11+
},
12+
"category": "Tool",
13+
"author": "Microsoft Corporation",
14+
"license": "MIT",
15+
"bugs": {
16+
"url": "https://github.com/Microsoft/azure-pipelines-tasks/issues"
17+
},
18+
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
19+
"dependencies": {
20+
"@types/node": "^20.3.1",
21+
"azure-pipelines-task-lib": "^5.0.1-preview.0",
22+
"azure-pipelines-tasks-packaging-common": "^3.229.0",
23+
"azure-pipelines-tasks-utility-common": "^3.225.0"
24+
},
25+
"devDependencies": {
26+
"typescript": "5.1.6"
27+
}
28+
}

Tasks/PublishSymbolsV2/package-lock.json

+97-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/PublishSymbolsV2/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
1919
"dependencies": {
2020
"@types/node": "^16.11.39",
21-
"azure-pipelines-task-lib": "^4.4.0",
21+
"azure-pipelines-task-lib": "^5.0.1-preview.0",
2222
"azure-pipelines-tasks-packaging-common": "^3.229.0",
2323
"azure-pipelines-tasks-utility-common": "^3.225.0"
2424
},

Tasks/PublishSymbolsV2/task.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"preview": false,
1414
"version": {
1515
"Major": 2,
16-
"Minor": 230,
16+
"Minor": 234,
1717
"Patch": 0
1818
},
1919
"minimumAgentVersion": "2.144.0",

Tasks/PublishSymbolsV2/task.loc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"preview": false,
1414
"version": {
1515
"Major": 2,
16-
"Minor": 230,
16+
"Minor": 234,
1717
"Patch": 0
1818
},
1919
"minimumAgentVersion": "2.144.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Default|2.234.0
2+
Node20_229_14|2.234.1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts-prepend-node-path=true

0 commit comments

Comments
 (0)