Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Errors on ./mach taskgraph load-task

未关闭
#915 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, python
领域
ci-cd, devops, tooling

调研方向

Start with the ./mach taskgraph load-task entry point and reproduce the reported task ID with and without --develop. Read third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content around command_task_artifacts and extract_archive, then trace the --develop handling for tasks without $REPOSITORIES. Done means the command succeeds or reports a clear, actionable limitation for both invocation modes.

由索引模型根据 Issue 内容生成。

描述

It was recommended to run this command to verify platfrom specific failures on a local machine without pushing to TRY. I tried with and without --develop, but neither worked for me.
Here's a failed build that we want to verify a fix for: https://firefox-ci-tc.services.mozilla.com/tasks/EHQBumY9RXuOxR2DVGi1lg/runs/0

./mach taskgraph load-task --develop EHQBumY9RXuOxR2DVGi1lg
warning: Using --develop can cause data loss.

Running `taskgraph load-task --develop` means the task will operate
on your actual source repository. Make sure you verify the task
doesn't perform any destructive operations against your repository.

Set TASKGRAPH_LOAD_TASK_NO_WARN=1 to disable this warning.

Proceed? [y/N]: y
 0:12.86 D loading config from `taskcluster/config.yml`
 0:12.86 D Using default TASKCLUSTER_ROOT_URL
 0:12.87 D Starting new HTTPS connection (1): firefox-ci-tc.services.mozilla.com:443
 0:12.98 D https://firefox-ci-tc.services.mozilla.com:443 "GET /api/queue/v1/task/EHQBumY9RXuOxR2DVGi1lg HTTP/1.1" 200 None
 0:12.98 Loading 'build-linux64-nightlyasrelease/opt' from task EHQBumY9RXuOxR2DVGi1lg
 0:12.98 D Using default TASKCLUSTER_ROOT_URL
 0:12.98 Downloading from https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/A2-T9qrFTnGQSU-KMkhehw/artifacts/public/image.tar.zst
 0:12.98 D Starting new HTTPS connection (1): firefox-ci-tc.services.mozilla.com:443
 0:13.10 D https://firefox-ci-tc.services.mozilla.com:443 "GET /api/queue/v1/task/A2-T9qrFTnGQSU-KMkhehw/artifacts/public/image.tar.zst HTTP/1.1" 303 127
 0:13.10 D Starting new HTTPS connection (1): firefoxci.taskcluster-artifacts.net:443
 0:13.54 D https://firefoxci.taskcluster-artifacts.net:443 "GET /A2-T9qrFTnGQSU-KMkhehw/0/public/image.tar.zst HTTP/1.1" 200 199377319
Loaded image: debian12-amd64-build:latest
 0:47.24 Found docker image: docker.io/library/debian12-amd64-build:latest
 0:47.24 Try: docker run -ti --rm docker.io/library/debian12-amd64-build:latest bash
 0:47.24 E Can't use --develop with task that doesn't define any $REPOSITORIES!
 0:47.71 Collecting usage
 0:47.71 D Resetting Glean
 0:47.72 D Storing ping 'df386887-81f9-4ff4-90b1-ccff76ed63b9' at '/Users/epavlov/.mozbuild/glean/pending_pings/df386887-81f9-4ff4-90b1-ccff76ed63b9'
 0:47.72 Processing ping at: /Users/epavlov/.mozbuild/glean/pending_pings/df386887-81f9-4ff4-90b1-ccff76ed63b9
 0:47.72 The ping 'usage' was submitted and will be sent as soon as possible
 0:47.73 D Starting new HTTPS connection (1): o1069899.ingest.sentry.io:443
 0:47.80 D https://o1069899.ingest.sentry.io:443 "POST /api/6250014/envelope/ HTTP/1.1" 200 0
./mach taskgraph load-task EHQBumY9RXuOxR2DVGi1lg
...
[fetches 2026-03-02T18:20:47.039+00:00] Verified size of https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Ra-goS-aTGSwpufDRsyYZg/artifacts/public/build/clang.tar.zst
[fetches 2026-03-02T18:20:47.040+00:00] Extracting /builds/worker/fetches/clang.tar.zst to /builds/worker/fetches
[fetches 2026-03-02T18:20:50.483+00:00] /builds/worker/fetches/clang.tar.zst extracted in 3.442s
[fetches 2026-03-02T18:20:50.483+00:00] Removing /builds/worker/fetches/clang.tar.zst
[fetches 2026-03-02T18:20:50.531+00:00] Traceback (most recent call last):
[fetches 2026-03-02T18:20:50.531+00:00]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content", line 1042, in <module>
[fetches 2026-03-02T18:20:50.533+00:00]     sys.exit(main())
[fetches 2026-03-02T18:20:50.534+00:00]              ^^^^^^
[fetches 2026-03-02T18:20:50.534+00:00]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content", line 1038, in main
[fetches 2026-03-02T18:20:50.534+00:00]     return args.func(args)
[fetches 2026-03-02T18:20:50.534+00:00]            ^^^^^^^^^^^^^^^
[fetches 2026-03-02T18:20:50.534+00:00]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content", line 939, in command_task_artifacts
[fetches 2026-03-02T18:20:50.534+00:00]     fetch_urls(downloads)
[fetches 2026-03-02T18:20:50.534+00:00]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content", line 659, in fetch_urls
[fetches 2026-03-02T18:20:50.534+00:00]     f.result()
[fetches 2026-03-02T18:20:50.534+00:00]   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
[fetches 2026-03-02T18:20:50.538+00:00]     return self.__get_result()
[fetches 2026-03-02T18:20:50.538+00:00]            ^^^^^^^^^^^^^^^^^^^
[fetches 2026-03-02T18:20:50.538+00:00]   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
[fetches 2026-03-02T18:20:50.538+00:00]     raise self._exception
[fetches 2026-03-02T18:20:50.538+00:00]   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
[fetches 2026-03-02T18:20:50.538+00:00]     result = self.fn(*self.args, **self.kwargs)
[fetches 2026-03-02T18:20:50.538+00:00]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[fetches 2026-03-02T18:20:50.538+00:00]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content", line 643, in fetch_and_extract
[fetches 2026-03-02T18:20:50.539+00:00]     extract_archive(dest_path, dest_dir)
[fetches 2026-03-02T18:20:50.539+00:00]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content", line 441, in extract_archive
[fetches 2026-03-02T18:20:50.539+00:00]     raise Exception("%r exited %d" % (args, p.returncode))
[fetches 2026-03-02T18:20:50.539+00:00] Exception: ['tar', 'xf', '-'] exited 2
19:44.26 Collecting usage
19:44.26 D Resetting Glean
19:44.26 D Storing ping '990c2b32-e626-48a1-9946-9eee338ea603' at '/Users/epavlov/.mozbuild/glean/pending_pings/990c2b32-e626-48a1-9946-9eee338ea603'
19:44.26 Processing ping at: /Users/epavlov/.mozbuild/glean/pending_pings/990c2b32-e626-48a1-9946-9eee338ea603
19:44.26 The ping 'usage' was submitted and will be sent as soon as possible
主要语言
Python
星标
26
派生
55
平均合并
2 天 6 分钟
30 天内合并 PR
15

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

taskcluster/taskgraph 的其他 Issue

查看 taskcluster/taskgraph 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。