Skip to content

Commit

Permalink
Add environment variables to all artifacts and fetches (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatum authored Sep 24, 2024
1 parent be8bef7 commit a8883aa
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion taskcluster/kinds/bicleaner-model/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tasks:
python3 $VCS_PATH/pipeline/bicleaner/download_pack.py
--src={src_locale}
--trg={trg_locale}
artifacts/bicleaner-ai-{src_locale}-{trg_locale}.tar.zst
$TASK_WORKDIR/artifacts/bicleaner-ai-{src_locale}-{trg_locale}.tar.zst
fetches:
toolchain:
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/bicleaner/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ tasks:
export PATH=$PATH:~/.local/bin &&
$VCS_PATH/pipeline/bicleaner/bicleaner.sh
$MOZ_FETCHES_DIR/{dataset_sanitized}
artifacts/{dataset_sanitized}
$TASK_WORKDIR/artifacts/{dataset_sanitized}
{bicleaner_threshold}
{bicleaner_threads}
$MOZ_FETCHES_DIR/bicleaner-ai-{src_locale}-{trg_locale}
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/collect-corpus/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ tasks:
- >-
$VCS_PATH/pipeline/translate/collect.sh
fetches
artifacts/corpus.{trg_locale}.zst
$TASK_WORKDIR/artifacts/corpus.{trg_locale}.zst
$MOZ_FETCHES_DIR/corpus.{trg_locale}.zst
# Don't run unless explicitly scheduled
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/collect-mono-src/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ task-defaults:
zstd -d --rm $MOZ_FETCHES_DIR/file* &&
$VCS_PATH/pipeline/translate/collect.sh
fetches
artifacts/mono.{trg_locale}.zst
$TASK_WORKDIR/artifacts/mono.{trg_locale}.zst
$MOZ_FETCHES_DIR/mono.{src_locale}.zst
tasks:
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/collect-mono-trg/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ task-defaults:
zstd -d --rm $MOZ_FETCHES_DIR/file* &&
$VCS_PATH/pipeline/translate/collect.sh
fetches
artifacts/mono.{src_locale}.zst
$TASK_WORKDIR/artifacts/mono.{src_locale}.zst
$MOZ_FETCHES_DIR/mono.{trg_locale}.zst
tasks:
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/merge-corpus/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ task-defaults:
- >-
export BIN=$MOZ_FETCHES_DIR &&
$VCS_PATH/pipeline/clean/merge-corpus.sh
artifacts/{artifact_prefix}
$TASK_WORKDIR/artifacts/{artifact_prefix}
$MOZ_FETCHES_DIR/*.zst
fetches:
toolchain:
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/merge-devset/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ task-defaults:
- >-
export BIN=$MOZ_FETCHES_DIR &&
$VCS_PATH/pipeline/clean/merge-corpus.sh
artifacts/{artifact_prefix}
$TASK_WORKDIR/artifacts/{artifact_prefix}
$MOZ_FETCHES_DIR/*.zst
fetches:
toolchain:
Expand Down
8 changes: 4 additions & 4 deletions taskcluster/kinds/score/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ tasks:
export MARIAN=$MOZ_FETCHES_DIR &&
find fetches &&
$VCS_PATH/pipeline/cefilter/score.sh
fetches/final.model.npz.best-{best_model}.npz
fetches/vocab.spm
fetches/corpus
artifacts/scores.txt
$TASK_WORKDIR/fetches/final.model.npz.best-{best_model}.npz
$TASK_WORKDIR/fetches/vocab.spm
$TASK_WORKDIR/fetches/corpus
$TASK_WORKDIR/artifacts/scores.txt
dependencies:
train-backwards: train-backwards-{src_locale}-{trg_locale}
Expand Down
6 changes: 3 additions & 3 deletions taskcluster/kinds/train-vocab/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ tasks:
- >-
export MARIAN=$MOZ_FETCHES_DIR &&
$VCS_PATH/pipeline/train/spm-vocab.sh
fetches/corpus.{src_locale}.zst
fetches/corpus.{trg_locale}.zst
artifacts/vocab.spm
$TASK_WORKDIR/fetches/corpus.{src_locale}.zst
$TASK_WORKDIR/fetches/corpus.{trg_locale}.zst
$TASK_WORKDIR/artifacts/vocab.spm
{spm_sample_size}
auto
{spm_vocab_size}
Expand Down

0 comments on commit a8883aa

Please sign in to comment.