Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

tfx command line publish issue for Azure DevOps Server 2022 RC1

Open
#423 1 comment 0 reactions 0 assignees View on GitHub

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

Area: tfx-cli bug

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

Open in Codespaces

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/tfs-cli

All issues in microsoft/tfs-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.