GitHub Actions Extension Shows Incorrect Job Dependency Error (v0.28.0)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, typescript
- 领域
- devtools
调研方向
首先,使用示例 GitHub Actions workflow 重现该诊断,尤其要检查包含 architecture-dependency-check 的 needs 数组,并将其与显示的错误进行比较。跟踪扩展的作业依赖关系验证,并确认错误指出的是实际引用的作业;workflow 应在没有错误警告的情况下继续运行。
由索引模型根据 Issue 内容生成。
描述
Bug Report
Environment
- VS Code Version: 1.105.1 (user setup)
- GitHub Actions Extension Version: 0.28.0 (updated 3 weeks ago)
- OS: Windows_NT x64 10.0.26200
- Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Description
The GitHub Actions extension incorrectly validates job dependencies, showing an error for a non-existent job name instead of the actual job name defined in the workflow file.
Steps to Reproduce
- Create a GitHub Actions workflow file with a job named
architecture-dependency-check - Create another job that references this job in the
needs:array - The extension shows a validation error referencing a completely different job name
Expected Behavior
The extension should validate job dependencies against the actual job names present in the current workflow file.
Actual Behavior
- Error message displayed:
Job 'check-no-deployment' depends on unknown job 'foundation-architecture-scan' - Actual file content:
needs: [build-test, architecture-dependency-check] - GitHub Actions execution result: Workflow runs successfully on GitHub
Sample Workflow Code
jobs:
build-test:
name: Build and Test
runs-on: ubuntu-latest
# ... job steps
architecture-dependency-check:
name: Architecture Dependency Check
runs-on: ubuntu-latest
# ... job steps
check-no-deployment:
name: Development Branch Status
runs-on: ubuntu-latest
needs: [build-test, architecture-dependency-check] # This line shows the error
# ... job steps
Workaround
Disabling and re-enabling the GitHub Actions extension temporarily resolves the issue.
Additional Context
- This issue appears to be related to the extension update from 3 weeks ago (version 0.28.0)
- The workflow file has been working correctly for weeks
- Multiple VS Code restarts do not resolve the issue
- The actual GitHub Actions execution works perfectly
Impact
While this doesn't affect functionality, it creates confusion and false error reporting in the development environment.
- 主要语言
- TypeScript
- 星标
- 661
- 派生
- 214
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/vscode-github-actions 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
github/vscode-github-actions#627 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 20/100
github/vscode-github-actions#630 ·
-
long work 未关闭
难度 4/5 3-5 天 新手友好度 25/100
github/vscode-github-actions#628 ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
github/vscode-github-actions#625 ·
-
bug
难度 3/5 1-2 天 新手友好度 64/100
github/vscode-github-actions#621 · 3 条评论 ·
查看 github/vscode-github-actions 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·