Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

A task with `if-dependencies` or/and `soft-dependencies` pulls all of them if any gets pulled

Aperta
#710 6 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@ahal ci sta già lavorando.

Dal 11/3/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

BREAKING CHANGE

Considering the following:

loader: taskgraph.loader.transform:loader

transforms:
  - taskgraph.transforms.task

task-defaults:
  worker-type: succeed

tasks:
  task-a:
    label: task-a
    optimization:
      skip-unless-changed: ["world"]
    description: task-a

  task-b:
    label: task-b
    description: task-b

  final:
    label: final
    dependencies:
      task-a: task-a
      task-b: task-b
    if-dependencies:
      - task-a
      - task-b
    soft-dependencies:
      - task-a
      - task-b
    description: final

task-a gets optimized because of skip-unless-changed but gets pulled back in by final

2025-06-23 17:42:57,207 - DEBUG - no files found matching a pattern in `skip-unless-changed` for "task-a"
2025-06-23 17:42:57,207 - DEBUG - optimize: final kept because of never
2025-06-23 17:42:57,207 - DEBUG - optimize: task-b kept because of never
2025-06-23 17:42:57,207 - DEBUG - optimize: task-a kept because of dependent tasks
2025-06-23 17:42:57,207 - INFO - No tasks removed during optimization

If I optimize task-b away too, then I get an empty graph.

I would expect task-a to not get pulled by final if it's already been optimized.

Lingua principale
Python
Stelle
26
Fork
55
Merge medio
2g 6m
PR unite (30g)
15

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di taskcluster/taskgraph

Tutte le issue di taskcluster/taskgraph

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.