NVIDIA / NVIDIA/cccl

[INFRA]: Skip third-party CI when only modifying `ignored` project files.

Open
#7,290 0 comments 0 reactions 0 assignees View on GitHub
infra
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

### Is this a duplicate?

- [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cccl/issues) for this request and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)

### Overview

Currently, when I modify for example something in `docs`, the optionals (MatX, Pytorch) are built, too, even though these changes are unrelated. We should build them only if relevant parts of CCCL change.

### Details

An initial implementation will run a script to check if any changes don't match these regexes: https://github.com/NVIDIA/cccl/blob/main/ci/project_files_and_dependencies.yaml#L177-L207

If all files are ignored, skip third party tests.

----

For bonus points: Add yaml projects for each third party library that:

- declare meaningful dependencies on relevant CCCL projects
- include the third-party build/test/infra scripts as files that belong to the third-party project

Then check the `inspect changes` output to see if those projects are marked dirty.

### Note

This is low priority as those builds are relatively cheap and do not block PR merges.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.