Skip to content

Commit

Permalink
Migrate PublishSymbolsV2 (#19242)
Browse files Browse the repository at this point in the history
* migrate PublishSymbolsV2

* update node20 handler

* Migrate PublishSymbolsV2

- Replace task-lib to remove deasync package dependency

---------

Co-authored-by: Dmitrii Bobreshev <106314398+DmitriiBobreshev@users.noreply.github.com>
Co-authored-by: Dmitrii Bobreshev (Akvelon INC) <v-bobreshevd@microsoft.com>
Co-authored-by: Maxim Zaytsev <v-mazayt@microsoft.com>
  • Loading branch information
4 people authored Jan 11, 2024
1 parent d52dfc0 commit 9d1d2db
Show file tree
Hide file tree
Showing 94 changed files with 6,709 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Tasks/PublishSymbolsV2/Tests/L0NetCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ describe('Publishing Symbol Suite', function () {
after(() => {
});

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

tr.run();
await tr.runAsync();
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');
assert(tr.stdOutContained('Symbol.exe output'), "should have symbol output");
assert(tr.succeeded, 'should have succeeded');
Expand Down
667 changes: 667 additions & 0 deletions Tasks/PublishSymbolsV2/_buildConfigs/Node20/package-lock.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions Tasks/PublishSymbolsV2/_buildConfigs/Node20/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "publishsymbolsv2",
"version": "2.0.0",
"description": "Index sources and publish symbols.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/azure-pipelines-tasks.git"
},
"category": "Tool",
"author": "Microsoft Corporation",
"license": "MIT",
"bugs": {
"url": "https://github.com/Microsoft/azure-pipelines-tasks/issues"
},
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
"dependencies": {
"@types/node": "^20.3.1",
"azure-pipelines-task-lib": "^5.0.1-preview.0",
"azure-pipelines-tasks-packaging-common": "^3.229.0",
"azure-pipelines-tasks-utility-common": "^3.225.0"
},
"devDependencies": {
"typescript": "5.1.6"
}
}
120 changes: 97 additions & 23 deletions Tasks/PublishSymbolsV2/package-lock.json

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

2 changes: 1 addition & 1 deletion Tasks/PublishSymbolsV2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
"dependencies": {
"@types/node": "^16.11.39",
"azure-pipelines-task-lib": "^4.4.0",
"azure-pipelines-task-lib": "^5.0.1-preview.0",
"azure-pipelines-tasks-packaging-common": "^3.229.0",
"azure-pipelines-tasks-utility-common": "^3.225.0"
},
Expand Down
2 changes: 1 addition & 1 deletion Tasks/PublishSymbolsV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"preview": false,
"version": {
"Major": 2,
"Minor": 230,
"Minor": 234,
"Patch": 0
},
"minimumAgentVersion": "2.144.0",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/PublishSymbolsV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"preview": false,
"version": {
"Major": 2,
"Minor": 230,
"Minor": 234,
"Patch": 0
},
"minimumAgentVersion": "2.144.0",
Expand Down
2 changes: 2 additions & 0 deletions _generated/PublishSymbolsV2.versionmap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Default|2.234.0
Node20_229_14|2.234.1
1 change: 1 addition & 0 deletions _generated/PublishSymbolsV2_Node20/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts-prepend-node-path=true
Loading

0 comments on commit 9d1d2db

Please sign in to comment.