Skip to content

Pipeline generator: Add missing Dockerfile dependency validation (Phase 2 of #967)ย #3025

@coderabbitai

Description

@coderabbitai

Description

Issue #967 identified that both sandbox.py and the Tekton pipeline generator (konflux_generate_component_build_pipelines.py) need better error reporting for missing Dockerfile dependencies. PR #3017 addressed sandbox.py (Phase 1), but the pipeline generator still needs similar validation.

Enhancement Request

Apply the same validation logic to konflux_generate_component_build_pipelines.py to ensure consistent error reporting across all tooling. The pipeline generator should:

  • Validate that all files referenced in Dockerfiles exist before processing
  • Provide clear, actionable error messages pointing to missing files
  • Avoid generic FileNotFoundError stack traces

Context

This is Phase 2 of the plan outlined in issue #967. Phase 1 (sandbox.py) was completed in PR #3017.

References

Requested by: @jiridanek

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

๐Ÿ“‹ Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions