Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

tfx command line publish issue for Azure DevOps Server 2022 RC1

Đang mở
#423 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh tfx-cli extension publish trên Azure DevOps Server 2022 RC1 và so sánh hành vi với issue #416. Theo dõi lỗi sau khi VSIX được đọc và log báo rằng extension đã được publish, sau đó xác minh rằng việc cập nhật hoặc publish extension hoàn tất mà không gặp lỗi khóa từ điển.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
385
Fork
142
Merge trung bình
20 giờ 46 phút
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/tfs-cli

Tất cả issue của microsoft/tfs-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.