Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: artifact-reference only supports public artifacts, not /path/to/xpi #37

Open
willdurand opened this issue Aug 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@willdurand
Copy link
Member

This issue was raised in Slack. It looks like our TaskCluster configuration does not support private repositories anymore because of the use of artifact-reference (added for the addons-linter task).

[task 2022-08-08T18:16:20.114Z] 2022-08-08 18:16:20,114 - INFO - Loading kinds
[task 2022-08-08T18:16:20.127Z] 2022-08-08 18:16:20,127 - INFO - Generating full task set
[task 2022-08-08T18:16:20.161Z] 2022-08-08 18:16:20,161 - INFO - Generated 1 tasks for kind build
[task 2022-08-08T18:16:20.164Z] 2022-08-08 18:16:20,164 - INFO - Generated 1 tasks for kind dep-signing
[task 2022-08-08T18:16:20.166Z] 2022-08-08 18:16:20,166 - INFO - Generated 1 tasks for kind linter
[task 2022-08-08T18:16:20.186Z] 2022-08-08 18:16:20,186 - INFO - Generated 2 tasks for kind test
[task 2022-08-08T18:16:20.187Z] 2022-08-08 18:16:20,187 - INFO - Generated 1 tasks for kind pr
[task 2022-08-08T18:16:20.187Z] 2022-08-08 18:16:20,187 - INFO - Generating full task graph
[task 2022-08-08T18:16:20.187Z] 2022-08-08 18:16:20,187 - INFO - Full task graph contains 6 tasks and 2 dependencies
[task 2022-08-08T18:16:20.187Z] 2022-08-08 18:16:20,187 - INFO - writing artifact file `full-task-graph.json`
[task 2022-08-08T18:16:20.190Z] 2022-08-08 18:16:20,190 - INFO - writing artifact file `runnable-jobs.json`
[task 2022-08-08T18:16:20.190Z] 2022-08-08 18:16:20,190 - INFO - Generating target task set
[task 2022-08-08T18:16:20.191Z] 2022-08-08 18:16:20,191 - INFO - Filter filter_target_tasks pruned 1 tasks (5 remain)
[task 2022-08-08T18:16:20.191Z] 2022-08-08 18:16:20,191 - INFO - writing artifact file `target-tasks.json`
[task 2022-08-08T18:16:20.192Z] 2022-08-08 18:16:20,191 - INFO - Generating target task graph
[task 2022-08-08T18:16:20.192Z] 2022-08-08 18:16:20,191 - INFO - Adding 0 tasks with `always_target` attribute
[task 2022-08-08T18:16:20.193Z] 2022-08-08 18:16:20,192 - INFO - Generating optimized task graph
[task 2022-08-08T18:16:20.193Z] 2022-08-08 18:16:20,192 - INFO - No tasks removed during optimization
[task 2022-08-08T18:16:20.616Z] 2022-08-08 18:16:20,616 - INFO - No tasks replaced during optimization
[task 2022-08-08T18:16:20.618Z] Traceback (most recent call last):
[task 2022-08-08T18:16:20.618Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/main.py", line 742, in main
[task 2022-08-08T18:16:20.619Z]     args.command(vars(args))
[task 2022-08-08T18:16:20.619Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/main.py", line 615, in decision
[task 2022-08-08T18:16:20.619Z]     taskgraph_decision(options)
[task 2022-08-08T18:16:20.619Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/decision.py", line 118, in taskgraph_decision
[task 2022-08-08T18:16:20.619Z]     write_artifact("task-graph.json", tgg.morphed_task_graph.to_json())
[task 2022-08-08T18:16:20.619Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/generator.py", line 220, in morphed_task_graph
[task 2022-08-08T18:16:20.619Z]     return self._run_until("morphed_task_graph")
[task 2022-08-08T18:16:20.620Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/generator.py", line 402, in _run_until
[task 2022-08-08T18:16:20.620Z]     k, v = next(self._run)
[task 2022-08-08T18:16:20.620Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/generator.py", line 387, in _run
[task 2022-08-08T18:16:20.620Z]     existing_tasks=existing_tasks,
[task 2022-08-08T18:16:20.620Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/optimize.py", line 77, in optimize_task_graph
[task 2022-08-08T18:16:20.620Z]     decision_task_id,
[task 2022-08-08T18:16:20.620Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/optimize.py", line 358, in get_subgraph
[task 2022-08-08T18:16:20.620Z]     dependencies=named_task_dependencies,
[task 2022-08-08T18:16:20.620Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 95, in resolve_task_references
[task 2022-08-08T18:16:20.621Z]     "artifact-reference": artifact_reference,
[task 2022-08-08T18:16:20.621Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 28, in _recurse
[task 2022-08-08T18:16:20.621Z]     return recurse(val)
[task 2022-08-08T18:16:20.621Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 24, in recurse
[task 2022-08-08T18:16:20.621Z]     return {k: recurse(v) for k, v in val.items()}
[task 2022-08-08T18:16:20.621Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 24, in <dictcomp>
[task 2022-08-08T18:16:20.621Z]     return {k: recurse(v) for k, v in val.items()}
[task 2022-08-08T18:16:20.621Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 24, in recurse
[task 2022-08-08T18:16:20.621Z]     return {k: recurse(v) for k, v in val.items()}
[task 2022-08-08T18:16:20.622Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 24, in <dictcomp>
[task 2022-08-08T18:16:20.622Z]     return {k: recurse(v) for k, v in val.items()}
[task 2022-08-08T18:16:20.622Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 24, in recurse
[task 2022-08-08T18:16:20.622Z]     return {k: recurse(v) for k, v in val.items()}
[task 2022-08-08T18:16:20.622Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 24, in <dictcomp>
[task 2022-08-08T18:16:20.622Z]     return {k: recurse(v) for k, v in val.items()}
[task 2022-08-08T18:16:20.622Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 23, in recurse
[task 2022-08-08T18:16:20.622Z]     return param_fn(val[param_key])
[task 2022-08-08T18:16:20.622Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 89, in artifact_reference
[task 2022-08-08T18:16:20.622Z]     return ARTIFACT_REFERENCE_PATTERN.sub(repl, val)
[task 2022-08-08T18:16:20.622Z]   File "/builds/worker/.local/lib/python3.6/site-packages/taskgraph/util/parameterization.py", line 85, in repl
[task 2022-08-08T18:16:20.622Z]     artifact_name
[task 2022-08-08T18:16:20.623Z] AssertionError: artifact-reference only supports public artifacts, not `xpi/build/search_engine_usage_study.xpi`
[taskcluster 2022-08-08 18:16:20.895Z] === Task Finished ===
[taskcluster 2022-08-08 18:16:22.134Z] Unsuccessful task run with exit code: 1 completed in 8.732 seconds
@willdurand willdurand added the bug Something isn't working label Aug 9, 2022
@willdurand willdurand transferred this issue from mozilla-extensions/xpi-manifest Aug 9, 2022
@willdurand
Copy link
Member Author

Note that this would also apply to the xpi-manifest repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant