Describe the issue
apply.py uses heuristic/hardcoded path logic to find the pipeline source path instead of reading it from the Project CRD. There is commented-out code showing an incomplete attempt to use commit.branch and commit.git_ref. This means the path used during apply may not match the actual project source location, causing silent failures or applying the wrong pipeline config.
Steps to resolve
- Fetch the
Project CRD for the given namespace/name via the API
- Read the pipeline source path from the project spec
- Remove the hardcoded/heuristic path logic
- Validate the retrieved path exists and is readable before proceeding
- Add a test that verifies path retrieval uses the Project CRD and not a hardcoded fallback
Additional context
See apply.py:25 and apply.py:42. The commented-out block at line 27–39 shows the intended direction but was never completed.
Describe the issue
apply.pyuses heuristic/hardcoded path logic to find the pipeline source path instead of reading it from theProjectCRD. There is commented-out code showing an incomplete attempt to usecommit.branchandcommit.git_ref. This means the path used duringapplymay not match the actual project source location, causing silent failures or applying the wrong pipeline config.Steps to resolve
ProjectCRD for the given namespace/name via the APIAdditional context
See
apply.py:25andapply.py:42. The commented-out block at line 27–39 shows the intended direction but was never completed.