Skip to content

chore: checkout the base branch instead of release in cyclic deps check#39057

Merged
dvj1988 merged 32 commits intoreleasefrom
chore/fix-base-branch-cyclic-deps-check
Feb 7, 2025
Merged

chore: checkout the base branch instead of release in cyclic deps check#39057
dvj1988 merged 32 commits intoreleasefrom
chore/fix-base-branch-cyclic-deps-check

Conversation

@dvj1988
Copy link

@dvj1988 dvj1988 commented Feb 6, 2025

Description

The CI workflow for cyclic dependency checks has been modified to reference the base branch instead of the release branch.

Fixes #Issue Number
or
Fixes Issue URL

Warning

If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation

/ok-to-test tags="@tag.Sanity"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13192705773
Commit: 06d600f
Cypress dashboard.
Tags: @tag.Sanity
Spec:


Fri, 07 Feb 2025 04:42:43 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features
    • Dependency analysis now dynamically compares pull request changes against the active base branch for improved accuracy.
    • A new diff log highlights added and removed dependencies, offering clearer insights during pull request reviews.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 6, 2025

Walkthrough

The cyclic dependency check workflow has been updated to dynamically reference the pull request’s base branch instead of a static release branch. The checkout step now retrieves the merged commit from the base branch, and the command for counting circular dependencies includes additional processing with sed for formatting and sorting. Output files and variable names have been renamed accordingly, and a new step has been added to log the differences between the pull request and the base branch dependencies.

Changes

File(s) Change Summary
.github/.../ci-client-cyclic-deps-check.yml - Updated checkout step to use pull request base branch (dynamic reference)
- Modified command for counting cyclic dependencies with sed for formatting
- Renamed output file from release_circular_deps.txt to base_branch_circular_deps.txt and variable from release_count to base_branch_count
- Added step to log diff in circular dependencies between PR and base branch
- Updated step names accordingly

Sequence Diagram(s)

sequenceDiagram
    participant PR as Pull Request
    participant WF as CI Workflow
    participant CB as Checkout Base Step
    participant CS as Count Step
    participant DL as Diff Log Step

    PR->>WF: Trigger workflow on PR event
    WF->>CB: Checkout base branch (using github.event.pull_request.base.ref)
    WF->>CS: Count circular dependencies (apply sed & sort)
    WF->>DL: Log diff between PR and base branch
    DL-->>WF: Return dependency differences
    WF-->>PR: Update PR comment with diff summary
Loading

Possibly related PRs

Suggested labels

ok-to-test

Suggested reviewers

  • sharat87
  • riodeuno
  • mohanarpit

Poem

In the realm of code where changes gleam,
A base branch now leads the seamless stream.
Cyclic paths refined with every line,
Diffing secrets in a flow so fine.
Cheers, dear devs, let this workflow shine! ✨
Happy coding in rhythmic design!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the skip-changelog Adding this label to a PR prevents it from being listed in the changelog label Feb 6, 2025
@dvj1988 dvj1988 changed the base branch from release to master February 6, 2025 07:07
@dvj1988 dvj1988 changed the base branch from master to release February 6, 2025 07:09
@dvj1988 dvj1988 marked this pull request as ready for review February 6, 2025 07:18
@dvj1988 dvj1988 requested a review from sharat87 as a code owner February 6, 2025 07:18
@dvj1988 dvj1988 requested review from KelvinOm and riodeuno February 6, 2025 07:26
@dvj1988 dvj1988 added ok-to-test Required label for CI and removed ok-to-test Required label for CI labels Feb 6, 2025
@dvj1988 dvj1988 enabled auto-merge (squash) February 6, 2025 07:28
KelvinOm
KelvinOm previously approved these changes Feb 6, 2025
script: |
const prNumber = context.payload.pull_request.number;
const message = `🔴🔴🔴 Cyclic Dependency Check:\n\nThis PR has increased the number of cyclic dependencies by ${{steps.compare-deps.outputs.diff}}, when compared with the release branch.\n\nRefer [this document](https://appsmith.notion.site/How-to-check-cyclic-dependencies-c47b08fe5f2f4261a3a234b19e13f2db) to identify the cyclic dependencies introduced by this PR.`;
const message = `🔴🔴🔴 Cyclic Dependency Check:\n\nThis PR has increased the number of cyclic dependencies by ${{steps.compare-deps.outputs.diff}}, when compared with the ${{github.event.pull_request.base.ref}} branch.\n\nRefer [this document](https://appsmith.notion.site/How-to-check-cyclic-dependencies-c47b08fe5f2f4261a3a234b19e13f2db) to identify the cyclic dependencies introduced by this PR.`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@dvj1988 Can we also list the new added cyclic dependencies? Maybe not in the message, but at least in the log.

@dvj1988 dvj1988 added the ok-to-test Required label for CI label Feb 6, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

106-121: 🛠️ Refactor suggestion

⚠️ Potential issue

Portability Concerns in Log Circular Dependencies Step
The inline sed -i '' commands on lines 110 and 111 use syntax that is typical on macOS but may fail on Ubuntu (the workflow’s runtime). In GNU sed (default on Ubuntu), the correct usage is simply sed -i. Additionally, ensure that the logging clearly shows both removed and added dependencies as requested in previous review feedback.

Diff suggestions:

-          sed -i '' '10,14d' pr_circular_deps.txt
+          sed -i '10,14d' pr_circular_deps.txt
-          sed -i '' '20,29d' base_branch_circular_deps.txt
+          sed -i '20,29d' base_branch_circular_deps.txt
🧹 Nitpick comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

58-60: Trailing Whitespace & Command Formatting in Dependency Count (PR branch)
There are extra trailing spaces on line 58 that could lead to formatting inconsistencies. Please remove these trailing spaces to improve readability and maintainability.

Diff suggestion:

-          npx dpdm "./src/**/*.{js,jsx,ts,tsx}" --circular --warning=false --tree=false \                     
+          npx dpdm "./src/**/*.{js,jsx,ts,tsx}" --circular --warning=false --tree=false \
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 58-58: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4e9cdaf and 1e796ac.

📒 Files selected for processing (1)
  • .github/workflows/ci-client-cyclic-deps-check.yml (2 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/ci-client-cyclic-deps-check.yml

[error] 58-58: trailing spaces

(trailing-spaces)


[error] 84-84: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: perform-test / client-build / client-build
  • GitHub Check: client-unit-tests / client-unit-tests
  • GitHub Check: client-lint / client-lint
  • GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
  • GitHub Check: client-build / client-build
  • GitHub Check: client-prettier / prettier-check
🔇 Additional comments (3)
.github/workflows/ci-client-cyclic-deps-check.yml (3)

67-72: Updated Checkout for Base Branch
The checkout step now correctly references the pull request’s base branch using ${{ github.event.pull_request.base.ref }} with clean: false, ensuring that the proper branch is checked out. This meets the PR objective.


97-99: Variable Substitution in Comparison Step
The updated substitution of base_branch_count and calculation of diff in the comparison step look correct and better aligned with the base branch change objectives.


129-130: Descriptive PR Comment Message
The PR comment message now clearly states the dependency difference and references the base branch. This makes it easier for reviewers and contributors to understand the comparison context.

Comment on lines +84 to +86
npx dpdm "./src/**/*.{js,jsx,ts,tsx}" --circular --warning=false --tree=false \
| sed '1d; s/^[[:space:]]*[0-9]\{4\})[[:space:]]*/• /; /^[[:space:]]*$/d' \
| sort | sed '/^[[:space:]]*$/d' > > base_branch_circular_deps.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Critical: Fix Redirection Operator in Base Branch Dependency Count
There is an extra > in the redirection operator on line 86 (> > base_branch_circular_deps.txt), which will cause a syntax error during execution. Please remove the duplicate redirection symbol. Also, note there is trailing whitespace on line 84 per static analysis.

Diff suggestion:

-          | sort | sed '/^[[:space:]]*$/d' > > base_branch_circular_deps.txt
+          | sort | sed '/^[[:space:]]*$/d' > base_branch_circular_deps.txt
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
npx dpdm "./src/**/*.{js,jsx,ts,tsx}" --circular --warning=false --tree=false \
| sed '1d; s/^[[:space:]]*[0-9]\{4\})[[:space:]]*/• /; /^[[:space:]]*$/d' \
| sort | sed '/^[[:space:]]*$/d' > > base_branch_circular_deps.txt
npx dpdm "./src/**/*.{js,jsx,ts,tsx}" --circular --warning=false --tree=false \
| sed '1d; s/^[[:space:]]*[0-9]\{4\})[[:space:]]*/• /; /^[[:space:]]*$/d' \
| sort | sed '/^[[:space:]]*$/d' > base_branch_circular_deps.txt
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 84-84: trailing spaces

(trailing-spaces)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

84-86: ⚠️ Potential issue

Fix Extra Redirection Operator and Trailing Whitespace in Base Branch Dependency Command

An extra redirection operator (> >) is detected on line 86, which will cause a syntax error. Also, trailing whitespace is present on line 84. Please remove the extra > and any undesired whitespace.

-          | sort | sed '/^[[:space:]]*$/d' > > base_branch_circular_deps.txt
+          | sort | sed '/^[[:space:]]*$/d' > base_branch_circular_deps.txt
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 84-84: trailing spaces

(trailing-spaces)

🧹 Nitpick comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

58-60: Remove Trailing Whitespace in PR Branch Dependency Command

There are trailing spaces at the end of the command on line 58 which could lead to formatting inconsistencies. Please remove any extra whitespace.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 58-58: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1e796ac and 6ea6401.

📒 Files selected for processing (1)
  • .github/workflows/ci-client-cyclic-deps-check.yml (2 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/ci-client-cyclic-deps-check.yml

[error] 58-58: trailing spaces

(trailing-spaces)


[error] 84-84: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: client-unit-tests / client-unit-tests
  • GitHub Check: client-lint / client-lint
  • GitHub Check: client-build / client-build
🔇 Additional comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

110-111: ⚠️ Potential issue

Ensure Cross-Platform Compatibility for Inline Sed Editing

The commands using sed -i '' (BSD-style inline editing) on lines 110 and 111 may not work as expected on the Ubuntu runner (which uses GNU sed). Consider switching to GNU sed syntax, for example by using sed -i without the empty string.

-          sed -i '' '10,14d' pr_circular_deps.txt
+          sed -i '10,14d' pr_circular_deps.txt
-          sed -i '' '20,29d' base_branch_circular_deps.txt
+          sed -i '20,29d' base_branch_circular_deps.txt

@dvj1988 dvj1988 removed the ok-to-test Required label for CI label Feb 6, 2025
Diljit VJ added 2 commits February 6, 2025 16:49
@github-actions
Copy link

github-actions bot commented Feb 6, 2025

🔴🔴🔴 Cyclic Dependency Check:

This PR has increased the number of cyclic dependencies by 71, when compared with the release branch.

Refer this document to identify the cyclic dependencies introduced by this PR.

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

🔴🔴🔴 Cyclic Dependency Check:

This PR has increased the number of cyclic dependencies by 71, when compared with the release branch.

Refer this document to identify the cyclic dependencies introduced by this PR.

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

🔴🔴🔴 Cyclic Dependency Check:

This PR has increased the number of cyclic dependencies by 71, when compared with the release branch.

Refer this document to identify the cyclic dependencies introduced by this PR.

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

🔴🔴🔴 Cyclic Dependency Check:

This PR has increased the number of cyclic dependencies by 71, when compared with the release branch.

Refer this document to identify the cyclic dependencies introduced by this PR.

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

🔴🔴🔴 Cyclic Dependency Check:

This PR has increased the number of cyclic dependencies by 71, when compared with the release branch.

Refer this document to identify the cyclic dependencies introduced by this PR.

You can view the dependency diff in the run log.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

102-103: ⚠️ Potential issue

Remove Trailing Whitespace
Static analysis has flagged trailing whitespace on these lines. Please remove any extra space(s) to comply with YAML formatting standards.

-      
+      
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 102-102: trailing spaces

(trailing-spaces)

🧹 Nitpick comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

133-147: PR Commenting Step and Action Version Update
The PR comment is detailed and accurately reflects the new comparison against the base branch. However, static analysis indicates that using actions/github-script@v3 may be outdated. Upgrading to a newer version (e.g., v6) is recommended to ensure better compatibility and benefit from recent improvements.

🧰 Tools
🪛 actionlint (1.7.4)

135-135: the runner of "actions/github-script@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ebd2e77 and 6f0401e.

📒 Files selected for processing (1)
  • .github/workflows/ci-client-cyclic-deps-check.yml (2 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/ci-client-cyclic-deps-check.yml

135-135: the runner of "actions/github-script@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🪛 YAMLlint (1.35.1)
.github/workflows/ci-client-cyclic-deps-check.yml

[error] 102-102: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: client-unit-tests / client-unit-tests
  • GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
  • GitHub Check: client-lint / client-lint
  • GitHub Check: client-build / client-build
  • GitHub Check: client-prettier / prettier-check
🔇 Additional comments (8)
.github/workflows/ci-client-cyclic-deps-check.yml (8)

43-47: Global Installation of dpdm
The step installs dpdm globally (version 3.14), which is useful for ensuring a consistent environment for dependency checks. Consider parameterizing the dpdm version for easier future updates if needed.


48-53: Dependency Installation Step
The "Install dependencies" step using yarn install --immutable is clear and standard. No issues found here.


58-63: Cyclic Dependencies Count on PR Branch
The command to generate pr_circular_deps.txt using npx dpdm piped through sed and sort is well-constructed. Please verify that the sed pattern continues to match the output format of dpdm in future releases.


66-71: Checkout Base Branch Update
This step now checks out the base branch dynamically using ${{ github.event.pull_request.base.ref }}, which aligns with the PR objectives. Also, note the use of clean: false—ensure that preserving local state is the intended behavior for the dependency verification process.


78-88: Cyclic Dependencies Count on Base Branch
Similar to the PR branch count, this segment uses dpdm with corresponding text processing to generate base_branch_circular_deps.txt. It looks consistent; just confirm that both steps continue to behave in parallel as dpdm’s output may evolve.


103-107: Save Diff Step Verification
The step that saves the diff output using diff -u and writes to diff_output.txt is clear and functions as expected. No issues noted.


108-132: Logging Diff Details
The script capturing added and removed dependencies via grep and sed is neatly implemented. It conditionally outputs headers only when there are differences. As an enhancement, you might consider error-handling scenarios where diff.txt could be unexpectedly empty, but this is a minor point.


148-152: Workflow Failure on Detected Cyclic Dependencies
This final step correctly fails the workflow when new cyclic dependencies are detected, ensuring that such issues are caught early in the CI process.

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

🔴🔴🔴 Cyclic Dependency Check:

This PR has increased the number of cyclic dependencies by 71, when compared with the release branch.

Refer this document to identify the cyclic dependencies introduced by this PR.

You can view the dependency diff in the run log. Look for the check-cyclic-dependencies job in the run.

@dvj1988 dvj1988 requested a review from KelvinOm February 6, 2025 12:03
const { appVersion, observability } = getAppsmithConfigs();
const { deploymentName, serviceInstanceId, serviceName, tracingUrl } =
observability;
//
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe it should be deleted.

Copy link
Author

Choose a reason for hiding this comment

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

@KelvinOm you are right. Missed this.

KelvinOm
KelvinOm previously approved these changes Feb 6, 2025
@dvj1988 dvj1988 added the ok-to-test Required label for CI label Feb 7, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/ci-client-cyclic-deps-check.yml (1)

102-102: Remove Trailing Whitespace
Static analysis has detected trailing spaces on this blank line. Please remove any extra whitespace to comply with YAML formatting standards.

-      
+      
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 102-102: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f0401e and 06d600f.

📒 Files selected for processing (1)
  • .github/workflows/ci-client-cyclic-deps-check.yml (2 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/ci-client-cyclic-deps-check.yml

135-135: the runner of "actions/github-script@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🪛 YAMLlint (1.35.1)
.github/workflows/ci-client-cyclic-deps-check.yml

[error] 102-102: trailing spaces

(trailing-spaces)

🔇 Additional comments (7)
.github/workflows/ci-client-cyclic-deps-check.yml (7)

43-47: DPDM Global Installation Step Looks Correct
The added comment and step to globally install dpdm (version 3.14) is clear and appropriately placed.


48-53: Dependency Installation Step is Fine
The step to install all dependencies using yarn is correctly added and positioned after dpdm installation.


58-59: PR Branch Dependency Count Command Verification
The command combining dpdm with sed and sort to process circular dependency output is well integrated. Please verify that the sed substitution (using the pattern [0-9]\{4\})) works across all expected scenarios.


66-71: Dynamic Checkout of Base Branch is Implemented
Using ${{ github.event.pull_request.base.ref }} for the checkout ref meets the PR objective. Also, note that clean: false is set—please confirm that preserving working directory files is intentional.


78-88: Base Branch Dependency Count Step is Consistent
The updated command for counting circular dependencies on the base branch is consistent with the PR branch step, and renaming the output to base_branch_circular_deps.txt meets the specified objectives. Verify that the sed/filtering logic handles all cases as expected.


103-107: Diff Saving Step is Implemented Properly
The new step that saves the unified diff between the base branch and the PR dependencies is clear and correctly uses the fallback (|| true) to handle non-zero diff exits.


108-132: Logging of Dependency Differences is Well-Structured
The step to log added and removed cyclic dependencies effectively captures the relevant changes by filtering the diff output. The use of grep and sed appears appropriate; however, it’s advisable to test these patterns with various diff outputs to ensure no unexpected lines are captured.

@dvj1988 dvj1988 requested a review from KelvinOm February 7, 2025 06:23
@dvj1988 dvj1988 merged commit 3cdb4a3 into release Feb 7, 2025
52 checks passed
@dvj1988 dvj1988 deleted the chore/fix-base-branch-cyclic-deps-check branch February 7, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Required label for CI skip-changelog Adding this label to a PR prevents it from being listed in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants