tfx command line publish issue for Azure DevOps Server 2022 RC1
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- cli
Research direction
Start by reproducing the tfx-cli extension publish command against Azure DevOps Server 2022 RC1 and compare the behavior with issue #416. Trace the failure after the VSIX is read and the log reports that the extension is already published, then verify that updating or publishing the extension completes without the dictionary-key error.
Written by the indexing model from the issue text.
Description
Hi everyone, I have the same bug that is described by @Shahyads in #416, also having the issue with tfx-cli for Azure DevOps Server 2022 RC1. Not only is the pipeline not working, but also fails with the command line tfx extension publish
Here is the part of the pipeline:
npx tfx-cli extension publish^ --publisher "$(publisher)"^ --manifest-globs azure-devops-extension.json^ --overrides-file configs/test.json^ --override "{\"version\": \"$(ext_version)\"}"^ --trace-level debug^ --service-url ${{ parameters.serviceUrl }}^ --auth-type pat --token ${{ parameters.token }}^ --trace-level debug^ --output-path deploy\extension_${{ parameters.mode }}^ --nowait-validation displayName: 'Publish Extension'
Here is the log:
2022-12-12T13:54:13.974Z : -- export-test-protocol-history
2022-12-12T13:54:13.974Z : Path 'C:\agents\ABC_work\1\s\dist\export-test-protocol-history is a directory. Adding all contained files (recursive). 2022-12-12T13:54:13.974Z : -- export-test-protocol-history.html 2022-12-12T13:54:13.975Z : -- export-test-protocol-history.js 2022-12-12T13:54:13.975Z : -- export-test-protocol-history.js.LICENSE.txt 2022-12-12T13:54:13.975Z : -- export-test-protocol-history.js.map 2022-12-12T13:54:13.975Z : -- export-test-specification 2022-12-12T13:54:13.975Z : Path 'C:\agents\ABC\_work\1\s\dist\export-test-specification is a directory. Adding all contained files (recursive).
2022-12-12T13:54:13.975Z : -- export-test-specification.html
2022-12-12T13:54:13.976Z : -- export-test-specification.js
2022-12-12T13:54:13.976Z : -- export-test-specification.js.LICENSE.txt
2022-12-12T13:54:13.976Z : -- export-test-specification.js.map
2022-12-12T13:54:13.976Z : -- organization-settings
2022-12-12T13:54:13.976Z : Path 'C:\agents\ABC_work\1\s\dist\organization-settings is a directory. Adding all contained files (recursive). 2022-12-12T13:54:13.977Z : -- organization-settings.html 2022-12-12T13:54:13.977Z : -- organization-settings.js 2022-12-12T13:54:13.977Z : -- organization-settings.js.LICENSE.txt 2022-12-12T13:54:13.977Z : -- organization-settings.js.map 2022-12-12T13:54:13.977Z : -- projectnumber-select-panel 2022-12-12T13:54:13.977Z : Path 'C:\agents\ABC\_work\1\s\dist\projectnumber-select-panel is a directory. Adding all contained files (recursive).
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.html
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.js
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.js.LICENSE.txt
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.js.map
2022-12-12T13:54:13.978Z : Path 'C:\agents\ABC_work\1\s\resources` is a directory. Adding all contained files (recursive).
2022-12-12T13:54:13.978Z : -- logo.png
2022-12-12T13:54:13.979Z : -- prot-black.png
2022-12-12T13:54:13.979Z : -- prot-white.png
2022-12-12T13:54:13.979Z : -- spec-black.png
2022-12-12T13:54:13.979Z : -- spec-white.png
2022-12-12T13:54:13.979Z : -- test-protocol-template.docx
2022-12-12T13:54:13.979Z : -- test-specification-template.docx
2022-12-12T13:54:13.983Z : Generating [Content_Types].xml
warning: Could not determine content type for extension .docx. Defaulting to application/octet-stream. To override this, add a contentType property to this file entry in the manifest.
2022-12-12T13:54:14.012Z : Found content type for .txt: text/plain.
2022-12-12T13:54:14.037Z : Writing vsix to: C:\agents\ABC_work\1\s\deploy\extension_test\ABC-azure-devops-powertools-test-1.0.157.vsix
2022-12-12T13:54:15.127Z : Publishing C:\agents\ABC_work\1\s\deploy\extension_test\ABC-azure-devops-powertools-test-1.0.157.vsix
Checking if this extension is already published
2022-12-12T13:54:15.131Z : Read vsix as zip... Size (bytes): 3133301
2022-12-12T13:54:15.139Z : Files in the zip: ......
(node:20328) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings ... to show where the warning was created)
It is, update the extension
error: The given key was not present in the dictionary.
##[error]Cmd.exe exited with code '-1'.
Finishing: Publish Extension
- Dominant language
- TypeScript
- Stars
- 385
- Forks
- 142
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/tfs-cli
-
Area: tfx-cli triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Error messages can be lost/truncated when tfx is run as a child process and failsPossibly taken @jessehouwing claimed this 13 days ago. OpenArea: tfx-cli triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Area: tfx-cli DevOps enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Area: tfx-cli triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Area: tfx-cli triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in microsoft/tfs-cli
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
solana-foundation/solana-com#2245 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
`document.cookie` with `max-age=0` does not delete the cookiePossibly taken @BartInTheField claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
capricorn86/happy-dom#2460 ·
Maintainers usually reply within 2 days