Skip to content

Remove apt-get upgrade in clang-format job#3913

Merged
zuiderkwast merged 1 commit into
valkey-io:unstablefrom
sarthakaggarwal97:ci-clang-format-no-upgrade
Jun 4, 2026
Merged

Remove apt-get upgrade in clang-format job#3913
zuiderkwast merged 1 commit into
valkey-io:unstablefrom
sarthakaggarwal97:ci-clang-format-no-upgrade

Conversation

@sarthakaggarwal97

Copy link
Copy Markdown
Contributor

Thanks to @zuiderkwast for pointing this out. This changes helps speed up the clang-format job. We don't really need to upgrade every pre-installed package on the runner (firefox and a bunch of other things the job never uses).

Before this change: 2m 47s (Eg)
After this change: 31s (Eg)

The clang-format job only needs clang-format-18, but apt-get upgrade -y
upgrades every pre-installed package on the runner (firefox and others),
which adds minutes to the job for no benefit.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 33b1f817-fbd7-4e52-8d45-6b5c9e355076

📥 Commits

Reviewing files that changed from the base of the PR and between d7384b9 and 934d8bb.

📒 Files selected for processing (1)
  • .github/workflows/clang-format.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/clang-format.yml

📝 Walkthrough

Walkthrough

This PR removes the sudo apt-get upgrade -y command from the Clang setup step in the GitHub Actions workflow. The "Set up Clang" step now runs only apt-get update -y before proceeding directly to installing software-properties-common.

Changes

Workflow Optimization

Layer / File(s) Summary
Clang setup optimization
.github/workflows/clang-format.yml
The "Set up Clang" step removes the apt-get upgrade invocation, running update and proceeding directly to package installation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and clearly describes the main change: removing apt-get upgrade from the clang-format job workflow file.
Description check ✅ Passed The description is directly related to the changeset, explaining the motivation for removing the apt-get upgrade step and providing performance metrics demonstrating the improvement.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.68%. Comparing base (3cfaf57) to head (934d8bb).
⚠️ Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #3913      +/-   ##
============================================
+ Coverage     76.67%   76.68%   +0.01%     
============================================
  Files           162      162              
  Lines         80728    80735       +7     
============================================
+ Hits          61897    61911      +14     
+ Misses        18831    18824       -7     

see 16 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zuiderkwast zuiderkwast merged commit c8c38e7 into valkey-io:unstable Jun 4, 2026
63 of 64 checks passed
hpatro pushed a commit to hpatro/valkey that referenced this pull request Jun 5, 2026
This changes helps speed up the clang-format job. We don't really need
to upgrade every pre-installed package on the runner (firefox and a
bunch of other things the job never uses).

Before this change: 2m 47s
After this change: 31s

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Signed-off-by: Harkrishn Patro <h_patro@apple.com>
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