|
| 1 | +task-defaults: |
| 2 | + matrix: |
| 3 | + substitution-fields: |
| 4 | + - attributes |
| 5 | + - description |
| 6 | + - run.command |
| 7 | + - treeherder |
| 8 | + - worker |
| 9 | + attributes: |
| 10 | + artifact_prefix: public |
| 11 | + retrigger: true |
| 12 | + code-review: true |
| 13 | + python: "{matrix[python]}" |
| 14 | + platform: linux |
| 15 | + resolution: default |
| 16 | + worker-type: t-linux |
| 17 | + worker: |
| 18 | + docker-image: {in-tree: python} |
| 19 | + max-run-time: 1800 |
| 20 | + env: |
| 21 | + PYTHONUTF8: "0" |
| 22 | + PYTHONCOERCECLOCALE: "0" |
| 23 | + HGENCODING: "utf-8" |
| 24 | + LC_ALL: "C" |
| 25 | + UV_PYTHON: "{matrix[python]}" |
| 26 | + treeherder: |
| 27 | + platform: test-linux/opt |
| 28 | + kind: test |
| 29 | + tier: 1 |
| 30 | + run: |
| 31 | + using: run-task |
| 32 | + cwd: '{checkout}' |
| 33 | + use-caches: [checkout, uv] |
| 34 | + |
| 35 | +unit: |
| 36 | + description: "Run unit tests with py{matrix[python]} on Linux" |
| 37 | + matrix: |
| 38 | + set-name: "unit-py{matrix[python]}" |
| 39 | + substitution-fields: [description, run.command, treeherder, worker, attributes] |
| 40 | + python: ["314t", "314", "313", "312", "311", "310", "39"] |
| 41 | + worker: |
| 42 | + docker-image: {in-tree: python} |
| 43 | + artifacts: |
| 44 | + - type: file |
| 45 | + path: "/builds/worker/artifacts/coverage" |
| 46 | + name: "public/coverage.py{matrix[python]}" |
| 47 | + treeherder: |
| 48 | + symbol: unit(py{matrix[python]}) |
| 49 | + run: |
| 50 | + command: >- |
| 51 | + uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv |
| 52 | +
|
| 53 | +integration: |
| 54 | + description: "Run unit tests with py{matrix[python]} on Linux with resolution {matrix[resolution]}" |
| 55 | + attributes: |
| 56 | + resolution: "{matrix[resolution]}" |
| 57 | + matrix: |
| 58 | + set-name: "integration-py{matrix[python]}-deps-{matrix[resolution]}" |
| 59 | + python: ["314", "39"] |
| 60 | + resolution: ["highest", "lowest-direct"] |
| 61 | + exclude: |
| 62 | + - python: "314" |
| 63 | + resolution: "lowest-direct" |
| 64 | + - python: "39" |
| 65 | + resolution: "highest" |
| 66 | + |
| 67 | + treeherder: |
| 68 | + symbol: integration(py{matrix[python]}-{matrix[resolution]}) |
| 69 | + run: |
| 70 | + command: >- |
| 71 | + uv run --isolated --resolution={matrix[resolution]} pytest -vv |
0 commit comments