Skip to content

Topic/workflows#30

Open
agampa263 wants to merge 9 commits into
developfrom
topic/workflows
Open

Topic/workflows#30
agampa263 wants to merge 9 commits into
developfrom
topic/workflows

Conversation

@agampa263
Copy link
Copy Markdown

No description provided.

agampa263 and others added 8 commits February 17, 2026 00:22
Signed-off-by: Netaji Panigrahi Netaji_Panigrahi@comcast.com
Co-authored-by: Suganya-Sugumar <222150366+Suganya-Sugumar@users.noreply.github.com>
Co-authored-by: guruchandru <36739781+guruchandru@users.noreply.github.com>
Co-authored-by: Daniel Soden <daniel_soden@comcast.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: sowmiyachelliah <162420027+sowmiyachelliah@users.noreply.github.com>
Co-authored-by: Simon Chung <simon.thunderbolt@gmail.com>
Co-authored-by: Netaji Panigrahi <114923459+NetajiPanigrahi@users.noreply.github.com>
@agampa263 agampa263 marked this pull request as ready for review May 21, 2026 04:37
@agampa263 agampa263 requested a review from a team as a code owner May 21, 2026 04:37
Copilot AI review requested due to automatic review settings May 21, 2026 04:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for applying “source patches” to dependency repositories during the dependency setup flow, including a new patch_file patch type handled by shared build utilities.

Changes:

  • Introduces apply_dependency_patches() in setup_dependencies.sh and wires it into process_dependency() before header copying/building.
  • Extends apply_patch() in common_build_utils.sh with a patch_file mode that runs patch -p1 within the repo.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
cov_docker_script/setup_dependencies.sh Adds per-dependency patch application based on JSON config (source_patches).
cov_docker_script/common_build_utils.sh Implements patch_file patch application logic inside apply_patch().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +142 to +149
if [[ "$type" == "patch_file" ]]; then
# For patch_file type, 'search' parameter contains the patch file path
local patch_file="$search"
local repo_dir="$file"

# Expand environment variables in patch file path
patch_file=$(eval echo "$patch_file")

# For patch_file type, get the patch file path
patch_file=$(jq -r ".dependencies.repos[$index].source_patches[$i].patch_file" "$CONFIG_FILE")

# Expand $HOME and $BUILD_DIR in patch file path
Comment on lines +159 to +162
# Apply the patch using patch -p1
if ! patch -p1 < "$patch_file"; then
err "Failed to apply patch file: $patch_file"
popd >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants