Tests fail on main branch
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- powershell
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu với syntax_test_TheBigTestFile.ps1, tệp báo lỗi ở dòng 114 và 117, rồi truy tìm các phạm vi mong đợi cho $error và $home trong các bài kiểm tra ngữ pháp PowerShell. Chạy .\build.ps1 -Test để tái hiện; công việc hoàn tất khi cả hai biến nhận được phạm vi mong đợi support.constant.variable.powershell và bộ kiểm thử chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Using the most current LTS version of NodeJS (26.13.0) and the current main branch, run
.\build.ps1 -Test
Expected behavior
Finished in 6.121 seconds
382 tests, 3673 assertions, 0 failures, 0 skipped
Actual behavior
PowerShell Grammar
Automated tests
syntax_test_TheBigTestFile.ps1
[-] It should parse line 114: $error
Expected to find support.constant.variable.powershell at 114:3,
instead found source.powershell, variable.other.constant.powershell
[-] It should parse line 117: $home
Expected to find support.constant.variable.powershell at 117:3,
instead found source.powershell, variable.other.constant.powershell
Finished in 6.121 seconds
382 tests, 3673 assertions, 2 failures, 0 skipped
Error details
Exception :
Type : System.Management.Automation.RuntimeException
ErrorRecord :
Exception :
Type : System.Management.Automation.ParentContainsErrorRecordException
Message : One or more tests failed.
HResult : -2146233087
CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : RuntimeException
WasThrownFromThrowStatement : True
Message : One or more tests failed.
HResult : -2146233087
TargetObject : One or more tests failed.
CategoryInfo : OperationStopped: (One or more tests failed.:String) [], RuntimeException
FullyQualifiedErrorId : One or more tests failed.
InvocationInfo :
ScriptLineNumber : 89
OffsetInLine : 13
HistoryId : 42
ScriptName : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1
Line : throw "One or more tests failed."
Statement : throw "One or more tests failed."
PositionMessage : At C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1:89 char:13
+ throw "One or more tests failed."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PSScriptRoot : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools
PSCommandPath : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1
CommandOrigin : Internal
ScriptStackTrace : at RunSpecs, C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1: line
89
at <ScriptBlock>, C:\Users\bcuneo\source\bryancuneo\EditorSyntax\build.ps1: line 69
at <ScriptBlock>, <No file>: line 1
Environment data
Name Value
---- -----
PSVersion 7.6.9
PSEdition Core
GitCommitId 7.6.9
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
Current main branch at commit 23eed76
Visuals
No response
- Ngôn ngữ chính
- PowerShell
- Star
- 149
- Fork
- 55
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/EditorSyntax
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PowerShell/EditorSyntax#224 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
PowerShell/EditorSyntax#222 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PowerShell/EditorSyntax#221 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
PowerShell/EditorSyntax#220 · 2 bình luận · 1 reaction ·
-
Issue-Bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
PowerShell/EditorSyntax#219 · 2 bình luận ·
Tất cả issue của PowerShell/EditorSyntax
Issue tương tự
-
good first issue reliability severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
TMHSDigital/Static_Chess#150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort: small good first issue priority: medium testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
TMHSDigital/screencast-mcp#351 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
a launchd removal test races the fake's refusal against bootout under loadCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
nledford/Ladderback#907 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
btclib-org/btclib-wallet#1045 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hive size:simple
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày