Skip to content

Conversation

kirkrodrigues
Copy link
Member

@kirkrodrigues kirkrodrigues commented Jun 3, 2025

Description

This PR enables all GH workflows to run whenever there's a push or a pull-request to a branch. Unfortunately, the prestocpp-macos-build workflow is broken (likely due to using an incorrect set up for Velox), so that one has been disabled entirely. In addition, the codenotify workflow has been deleted since we don't use sourcegraph.

In addition, this PR uses workflow-level concurrency groups so that in-progress jobs are cancelled when a new push is made to a branch. As a result, any job-level concurrency groups have been removed since they're superseded by the workflow-level concurrency groups.

Checklist

  • The PR satisfies the contribution guidelines.
  • This is a breaking change and that has been indicated in the PR title, OR this isn't a
    breaking change.
  • Necessary docs have been updated, OR no docs need to be updated.

Validation performed

  • Validated the workflows succeeded in my fork.
  • Validated that pushing a change while the workflows were in progress led to them being cancelled and restarted to run against the latest changes.

Summary by CodeRabbit

  • Chores
    • Standardized and centralized concurrency management across all workflows, improving efficiency and ensuring only one workflow run per branch (except main) is active at a time.
    • Expanded workflow triggers to include both pull request and push events for broader CI coverage.
    • Removed redundant per-job concurrency settings in favour of global workflow-level controls.
    • Deleted the workflow for automated code notification and labelling.
    • Updated checkout steps in various jobs to consistently include submodule support.

Copy link

coderabbitai bot commented Jun 3, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This set of changes standardizes and centralizes concurrency control across multiple GitHub Actions workflows by moving concurrency settings from individual jobs to the workflow level. Workflow triggers are expanded to include both pull request and push events, with branch-specific cancellation logic. One workflow file, codenotify.yml, was deleted.

Changes

File(s) Change Summary
.github/workflows/arrow-flight-tests.yml
.github/workflows/docs.yml
.github/workflows/hive-tests.yml
.github/workflows/kudu.yml
.github/workflows/maven-checks.yml
.github/workflows/prestocpp-format-and-header-check.yml
.github/workflows/prestocpp-linux-build-and-unit-test.yml
.github/workflows/prestocpp-linux-build.yml
.github/workflows/prestocpp-macos-build.yml
.github/workflows/product-tests-basic-environment.yml
.github/workflows/product-tests-specific-environment.yml
.github/workflows/singlestore-tests.yml
.github/workflows/spark-integration.yml
.github/workflows/test-other-modules.yml
.github/workflows/tests.yml
.github/workflows/web-ui-checks.yml
Added or updated top-level concurrency control, removed per-job concurrency blocks, expanded triggers to include push events, and standardized checkout steps in "changes" jobs.
.github/workflows/codenotify.yml Deleted workflow file.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant GitHub
    participant Workflow
    participant Job

    Developer->>GitHub: Push or Pull Request event
    GitHub->>Workflow: Trigger workflow (with concurrency group)
    alt If previous run in same group (not main branch)
        Workflow->>GitHub: Cancel in-progress run
    end
    Workflow->>Job: Start job(s)
    Job->>GitHub: Report status/results
Loading

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

@kirkrodrigues
Copy link
Member Author

@coderabbitai review

Copy link

coderabbitai bot commented Jun 3, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@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: 11

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ce9f132 and fcf9672.

📒 Files selected for processing (17)
  • .github/workflows/arrow-flight-tests.yml (2 hunks)
  • .github/workflows/codenotify.yml (0 hunks)
  • .github/workflows/docs.yml (2 hunks)
  • .github/workflows/hive-tests.yml (3 hunks)
  • .github/workflows/kudu.yml (3 hunks)
  • .github/workflows/maven-checks.yml (2 hunks)
  • .github/workflows/prestocpp-format-and-header-check.yml (1 hunks)
  • .github/workflows/prestocpp-linux-build-and-unit-test.yml (1 hunks)
  • .github/workflows/prestocpp-linux-build.yml (1 hunks)
  • .github/workflows/prestocpp-macos-build.yml (1 hunks)
  • .github/workflows/product-tests-basic-environment.yml (3 hunks)
  • .github/workflows/product-tests-specific-environment.yml (3 hunks)
  • .github/workflows/singlestore-tests.yml (3 hunks)
  • .github/workflows/spark-integration.yml (3 hunks)
  • .github/workflows/test-other-modules.yml (3 hunks)
  • .github/workflows/tests.yml (3 hunks)
  • .github/workflows/web-ui-checks.yml (2 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/codenotify.yml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/kudu.yml

[error] 32-32: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/web-ui-checks.yml

[error] 29-29: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/product-tests-specific-environment.yml

[error] 32-32: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/test-other-modules.yml

[error] 33-33: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/hive-tests.yml

[error] 33-33: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/product-tests-basic-environment.yml

[error] 32-32: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/tests.yml

[error] 33-33: wrong indentation: expected 6 but found 4

(indentation)

.github/workflows/spark-integration.yml

[error] 33-33: wrong indentation: expected 6 but found 4

(indentation)

⏰ Context from checks skipped due to timeout of 90000ms (20)
  • GitHub Check: kudu (8.0.442)
  • GitHub Check: kudu (17.0.13)
  • GitHub Check: product-tests-specific-environment1 (8.0.442)
  • GitHub Check: product-tests-specific-environment2 (8.0.442)
  • GitHub Check: product-tests-specific-environment1 (17.0.13)
  • GitHub Check: test-other-modules (8.0.442)
  • GitHub Check: test (8.0.442, :presto-tests -P ci-only-tpch-distributed-queries)
  • GitHub Check: spark-integration (17.0.13)
  • GitHub Check: spark-integration (8.0.442)
  • GitHub Check: hive-tests (17.0.13)
  • GitHub Check: hive-tests (8.0.442)
  • GitHub Check: hive-dockerized-tests (8.0.442)
  • GitHub Check: hive-dockerized-tests (17.0.13)
  • GitHub Check: prestocpp-linux-build-for-test
  • GitHub Check: arrowflight-java-tests (8.0.442, :presto-base-arrow-flight)
  • GitHub Check: prestocpp-linux-build-for-test
  • GitHub Check: arrowflight-java-tests (17.0.13, :presto-base-arrow-flight)
  • GitHub Check: maven-checks (8.0.442)
  • GitHub Check: maven-checks (17.0.13)
  • GitHub Check: prestocpp-linux-build-engine
🔇 Additional comments (30)
.github/workflows/prestocpp-format-and-header-check.yml (2)

9-12: Add push trigger for format and header checks
Expanding the workflow to run on both pull_request and push events ensures that formatting and header validations are applied consistently on every branch update.


14-19: Introduce workflow-level concurrency
Centralizing concurrency at the top level with ${{github.workflow}}-${{github.ref}} and cancelling in-progress runs (except on main) improves CI efficiency and replaces per-job settings. The YAML structure is correct.

.github/workflows/hive-tests.yml (2)

5-6: Include push event alongside pull_request
Adding the push trigger ensures Hive tests run on direct branch updates as well as PRs, maintaining coverage for all commits.


16-22: Centralize concurrency at the workflow level
Replacing per-job concurrency blocks with a top-level concurrency section keyed by workflow and ref, and cancelling non-main runs, standardizes CI behaviour and reduces duplication.

.github/workflows/docs.yml (2)

7-9: Add push trigger for docs workflow
Expanding triggers to include push on presto-docs/** ensures documentation builds on every commit, not just PRs.


20-26: Implement top-level workflow concurrency
The new concurrency block groups runs by ${{github.workflow}}-${{github.ref}} and cancels in-flight jobs on non-main branches, replacing the old per-job concurrency. This aligns with repository-wide CI conventions.

.github/workflows/tests.yml (2)

5-6: Enable push events for test runs
Adding push alongside pull_request ensures the full test matrix executes on every branch update, not just PRs.


16-22: Standardize workflow-level concurrency
The top-level concurrency block improves CI throughput by cancelling outdated runs on non-main refs, removing per-job settings.

.github/workflows/kudu.yml (2)

5-6: Include push event in workflow triggers
This correctly expands the workflow to run on both PRs and pushes, ensuring CI coverage for direct branch updates.


15-21: Centralize workflow-level concurrency control
Moving concurrency to the top level with a group key of ${{github.workflow}}-${{github.ref}} and conditional cancellation improves efficiency and supersedes individual job settings.

.github/workflows/web-ui-checks.yml (2)

5-6: Enable workflow on push events
Expanding triggers to include push aligns with other CI flows and ensures updates on branches are validated immediately.


12-18: Adopt workflow-level concurrency control
The top-level concurrency block correctly replaces the old job-level settings, grouping by workflow and ref and cancelling in-progress runs except on main.

.github/workflows/arrow-flight-tests.yml (2)

7-9: Add push trigger with path filters
Including push alongside pull_request with the same paths-ignore ensures that documentation-only changes are also skipped on direct pushes.


19-25: Consolidate concurrency at the workflow level
The global concurrency block will efficiently cancel stale runs on non-main branches. Removing per-job concurrency cleans up the configuration.

.github/workflows/singlestore-tests.yml (3)

5-6: Enable CI on both PRs and pushes
Adding push triggers ensures branch updates are validated automatically.


16-22: Shift to workflow-level concurrency
This global concurrency block correctly replaces the old job-level settings, providing cancellation semantics across non-main branches.


33-35: Verify checkout step with submodule recursion
The explicit actions/checkout@v4 with submodules: recursive aligns with other workflows and ensures submodules are pulled correctly.

.github/workflows/spark-integration.yml (2)

5-6: Include push event in spark integration workflow
This expands coverage to branch pushes as well as PRs, maintaining consistency across CI pipelines.


16-22: Implement top-level concurrency
Grouping by ${{github.workflow}}-${{github.ref}} and cancelling outdated runs on non-main branches improves efficiency and replaces per-job concurrency blocks.

.github/workflows/product-tests-specific-environment.yml (2)

5-5: Enable workflow execution on push events
Adding push: ensures this workflow runs on both PRs and direct pushes, aligning with the CI objectives.


15-21: Centralize concurrency control at workflow level
The new top-level concurrency block groups by ${{github.workflow}}-${{github.ref}} and cancels in-progress runs (except on main), replacing per-job settings for efficiency.

.github/workflows/prestocpp-linux-build.yml (2)

30-55: Expand triggers to include push events with path filters
The added push: block mirrors the pull_request: paths, ensuring native build runs on branch pushes as intended.


56-61: Add workflow-level concurrency with branch-specific cancellation
Moving concurrency from jobs to the workflow scope standardizes cancellation across builds and skips cancelling commits on main.

.github/workflows/maven-checks.yml (2)

5-5: Enable workflow execution on push events
Adding push: ensures maven-checks run on both pull requests and branch pushes.


14-19: Centralize concurrency control at workflow level
The new concurrency block groups by ${{github.workflow}}-${{github.ref}} and cancels in-flight runs except on main, replacing per-job concurrency.

.github/workflows/test-other-modules.yml (2)

5-5: Enable workflow execution on push events
Adding push: expands test coverage to branch pushes in addition to PRs.


16-21: Centralize concurrency control at workflow level
The top-level concurrency block now handles cancellation for this workflow, removing the need for job-level settings.

.github/workflows/prestocpp-linux-build-and-unit-test.yml (2)

10-13: Enable workflow execution on push events (with path-ignore)
The added push: with paths-ignore: ['presto-docs/**'] ensures unit tests run on branch pushes except doc changes.


14-19: Centralize concurrency control at workflow level
Introduces a top-level concurrency block grouping by ${{github.workflow}}-${{github.ref}} and skipping cancellations on main, aligning with other workflows.

.github/workflows/product-tests-basic-environment.yml (1)

4-5: Added push trigger for workflow activation
The workflow now runs on both pull_request and push events, ensuring tests run for branch pushes as intended.

Comment on lines +33 to +35
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
Copy link

@coderabbitai coderabbitai bot Jun 3, 2025

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix YAML indentation for checkout step
The - uses: actions/checkout@v4 block is indented too far left, causing a YAML parsing error. Please apply this diff to align it under steps::

-    - uses: actions/checkout@v4
-      with:
-        submodules: "recursive"
+      - uses: actions/checkout@v4
+        with:
+          submodules: recursive
📝 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
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
- uses: actions/checkout@v4
with:
submodules: recursive
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 33-33: wrong indentation: expected 6 but found 4

(indentation)

🤖 Prompt for AI Agents
In .github/workflows/hive-tests.yml around lines 33 to 35, the `- uses:
actions/checkout@v4` step is incorrectly indented, causing a YAML parsing error.
Adjust the indentation so that this step is properly nested under the `steps:`
key, aligning it with other steps in the workflow to ensure valid YAML
structure.

Copy link
Member

Choose a reason for hiding this comment

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

No need to do this, because we are extending the existing github worflows from OSS presto. If you see the L26~L28 the - uses has the same indentation.

Copy link

Choose a reason for hiding this comment

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

@anlowee You're absolutely right! I can see that the existing - uses: dorny/paths-filter@v2 step on line 26 follows the same indentation pattern. Maintaining consistency with the OSS Presto workflow formatting makes perfect sense. Thank you for the clarification.


✏️ Learnings added
Learnt from: anlowee
PR: y-scope/presto#7
File: .github/workflows/hive-tests.yml:33-35
Timestamp: 2025-06-04T14:50:43.523Z
Learning: In the y-scope/presto repository, GitHub workflows are extended from OSS Presto and should maintain consistent formatting with the upstream patterns, including YAML indentation styles for workflow steps.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

Comment on lines +33 to +35
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Correct indentation for checkout in changes job
The checkout step’s hyphen is misaligned, triggering a YAML lint error. Please apply this diff:

-    - uses: actions/checkout@v4
-      with:
-        submodules: "recursive"
+      - uses: actions/checkout@v4
+        with:
+          submodules: recursive

Committable suggestion skipped: line range outside the PR's diff.

🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 33-33: wrong indentation: expected 6 but found 4

(indentation)

🤖 Prompt for AI Agents
In .github/workflows/tests.yml around lines 33 to 35, the hyphen for the
checkout step is misaligned causing a YAML lint error. Fix this by properly
indenting the hyphen so it aligns correctly with other steps in the changes job,
ensuring valid YAML syntax.

Comment on lines +32 to +34
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix indentation for the checkout step
YAMLlint reports incorrect indentation here; the - uses step and its with block should be indented two spaces further under steps:.

Apply this diff:

-    - uses: "actions/checkout@v4"
-      with:
-        submodules: "recursive"
+      - uses: "actions/checkout@v4"
+        with:
+          submodules: "recursive"
📝 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
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 32-32: wrong indentation: expected 6 but found 4

(indentation)

🤖 Prompt for AI Agents
In .github/workflows/kudu.yml around lines 32 to 34, the checkout step is
incorrectly indented under the steps section. Increase the indentation of the `-
uses: "actions/checkout@v4"` line and its nested `with:` block by two spaces so
they are properly nested under the `steps:` key, ensuring valid YAML structure
and passing YAMLlint checks.

Comment on lines +29 to +31
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Correct indentation of the checkout step
YAMLlint indicates wrong indentation. The - uses and its with block need two more spaces under the steps: key.

Use this patch:

-    - uses: "actions/checkout@v4"
-      with:
-        submodules: "recursive"
+      - uses: "actions/checkout@v4"
+        with:
+          submodules: "recursive"
📝 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
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
- uses: "actions/checkout@v4"
with:
submodules: "recursive"
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 29-29: wrong indentation: expected 6 but found 4

(indentation)

🤖 Prompt for AI Agents
In .github/workflows/web-ui-checks.yml around lines 29 to 31, the checkout step
is incorrectly indented under the steps key. Adjust the indentation by adding
two more spaces before the `- uses` line and its `with` block so that they are
properly nested under the `steps:` key, ensuring valid YAML structure.

@kirkrodrigues kirkrodrigues requested a review from anlowee June 3, 2025 14:04
@kirkrodrigues kirkrodrigues requested a review from anlowee June 5, 2025 12:39
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