Move from custom DALI conda recipe to upstream nvidia-dali-feedstock#6402
Move from custom DALI conda recipe to upstream nvidia-dali-feedstock#6402JanuszL wants to merge 8 commits into
Conversation
|
CI MESSAGE: [55681719]: BUILD STARTED |
|
| Filename | Overview |
|---|---|
| conda/build_conda_packages.sh | Core orchestration script fully rewritten: clones the upstream feedstock, optionally pins to a SHA, applies a local patch, and drives rattler-build. Input validation and sed-patch verification are solid; the CUDA_VERSION_MAJOR else-branch silently falls through to the CUDA 12.9 YAML for unrecognised major versions. |
| conda/nvidia-dali-python-feedstock.patch | Adds rm-rf guards before symlink creation to prevent 'target exists' failures, injects BUILD_FOR_CONDA / flavor / timestamp CMake flags, re-enables tests and benchmarks, documents the nvCOMP 5.2 minimum, and wires DALI_VERSION / NVIDIA_BUILD_ID into the recipe context. Tightly coupled to specific line numbers in the upstream build.sh, so a feedstock refactor may cause git apply --check to catch and fail cleanly. |
| conda/config/conda_build_config.yaml | Deleted; equivalent config now lives in the upstream feedstock's conda_build_config.yaml, extended via the patch file. |
| conda/dali_native_libs/recipe/meta.yaml | Deleted as part of migrating to the upstream feedstock recipe. |
| conda/dali_python_bindings/recipe/meta.yaml | Deleted as part of migrating to the upstream feedstock recipe. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[build_conda_packages.sh] --> B{Validate env vars}
B -->|invalid| FAIL1[exit 1 with message]
B -->|valid| C{CUDA_VERSION_MAJOR}
C -->|== 13| D[METAL_YAML: cuda13.0]
C -->|else| E[METAL_YAML: cuda12.9]
D --> F[git clone nvidia-dali-python-feedstock]
E --> F
F --> G{DALI_FEEDSTOCK_SHA set?}
G -->|yes| H[git checkout SHA]
G -->|no| I[use HEAD]
H --> J[git apply --check patch]
I --> J
J -->|fail| FAIL2[exit 1]
J -->|ok| K[git apply patch]
K --> L[sed: replace tarball URL with path: /opt/dali]
L --> M{grep verify}
M -->|fail| FAIL3[exit 1]
M -->|ok| N[sed: add use_gitignore: false]
N --> O{grep verify}
O -->|fail| FAIL4[exit 1]
O -->|ok| P[rattler-build build with METAL_YAML]
P --> Q[cp *.conda to artifacts/]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[build_conda_packages.sh] --> B{Validate env vars}
B -->|invalid| FAIL1[exit 1 with message]
B -->|valid| C{CUDA_VERSION_MAJOR}
C -->|== 13| D[METAL_YAML: cuda13.0]
C -->|else| E[METAL_YAML: cuda12.9]
D --> F[git clone nvidia-dali-python-feedstock]
E --> F
F --> G{DALI_FEEDSTOCK_SHA set?}
G -->|yes| H[git checkout SHA]
G -->|no| I[use HEAD]
H --> J[git apply --check patch]
I --> J
J -->|fail| FAIL2[exit 1]
J -->|ok| K[git apply patch]
K --> L[sed: replace tarball URL with path: /opt/dali]
L --> M{grep verify}
M -->|fail| FAIL3[exit 1]
M -->|ok| N[sed: add use_gitignore: false]
N --> O{grep verify}
O -->|fail| FAIL4[exit 1]
O -->|ok| P[rattler-build build with METAL_YAML]
P --> Q[cp *.conda to artifacts/]
Reviews (12): Last reviewed commit: "Rebase feedstock patch on current recipe" | Re-trigger Greptile
957c7ca to
714dac3
Compare
714dac3 to
dd7d6ca
Compare
|
CI MESSAGE: [55681719]: BUILD FAILED |
dd7d6ca to
8fa4e57
Compare
|
CI MESSAGE: [55685089]: BUILD STARTED |
|
CI MESSAGE: [55685089]: BUILD FAILED |
8fa4e57 to
f63cb59
Compare
|
CI MESSAGE: [55688559]: BUILD STARTED |
|
CI MESSAGE: [55688559]: BUILD FAILED |
|
CI MESSAGE: [55693916]: BUILD STARTED |
|
CI MESSAGE: [55694466]: BUILD STARTED |
|
CI MESSAGE: [55696184]: BUILD STARTED |
3e8800a to
a5acefb
Compare
|
CI MESSAGE: [57832399]: BUILD STARTED |
|
CI MESSAGE: [57832399]: BUILD FAILED |
a5acefb to
86ccb4a
Compare
|
CI MESSAGE: [57957810]: BUILD STARTED |
|
CI MESSAGE: [57957810]: BUILD FAILED |
|
CI MESSAGE: [57967556]: BUILD STARTED |
|
CI MESSAGE: [57967556]: BUILD FAILED |
86ccb4a to
536c992
Compare
|
CI MESSAGE: [58002631]: BUILD STARTED |
|
CI MESSAGE: [58002631]: BUILD FAILED |
- uses nvidia-dali-feedstock recipe to build DALI in CI - removes DALI maintained recipe Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
abfefc0 to
9c4cd1f
Compare
|
CI MESSAGE: [58097163]: BUILD STARTED |
|
CI MESSAGE: [58097163]: BUILD FAILED |
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
|
CI MESSAGE: [58105433]: BUILD STARTED |
|
CI MESSAGE: [58105433]: BUILD FAILED |
|
CI MESSAGE: [58114829]: BUILD STARTED |
|
CI MESSAGE: [58114829]: BUILD PASSED |
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: DALI-4680