Skip to content

Conversation

sarthakaggarwal97
Copy link
Contributor

@sarthakaggarwal97 sarthakaggarwal97 commented Oct 7, 2025

Resolves: #2228

Currently, there are no tests running on the already released branches. We often do backport for bug fixes and CVEs in these older versions, and end up with multiple CI tests failures on these branches.

The PR adds support for running weekly tests on already released versions >= 7.2. The workflow will execute the "daily" test workflow for each of these branches on Sunday 06:00 UTC.

The idea is to continuously monitor our released versions through weekly test runs (during the time when is lesser activity on github runners).

Copy link
Member

@roshkhatri roshkhatri left a comment

Choose a reason for hiding this comment

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

I think we should prefer to use github workflow actions more than relying on APIs

Comment on lines +26 to +34
const branches = await github.paginate(github.rest.repos.listBranches, {
owner,
repo,
per_page: 100,
});
Copy link
Member

Choose a reason for hiding this comment

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

Why dont we use this kind of filter for branches:

branches:
      - "[0-9].[0-9]"

Then we can filter which versions we want to run on

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will support single digit branch numbers right like till 9.1. But as soon as we go 10 (multi digit version), it might break. I am not sure if github workflows supports regex.

Comment on lines 53 to 54
core.info(`Found release branches: ${releaseBranches.join(', ')}`);
core.info(`Dispatching '${workflowId}' from ref '${workflowRef}'...`);
Copy link
Member

Choose a reason for hiding this comment

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

We can use the dispatch actions of workflows rather than the APIs, WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

We can refer to dail.yml to see how we can dispatch workflows

Copy link
Member

Choose a reason for hiding this comment

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

like these: https://github.com/valkey-io/valkey-release-automation/blob/1e54afe6a02b48c278a959744c3f31d04ecba0d6/.github/workflows/build-release.yml#L95C4-L97C59

 uses: ./.github/workflows/update-valkey-hashes.yml
    with:
      version: ${{ needs.process-inputs.outputs.version }}

Copy link
Collaborator

@hpatro hpatro left a comment

Choose a reason for hiding this comment

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

Could you run it in your fork and share the run link here? Would like to visualize it.

@roshkhatri mentioned the daily runs on active PR against release branch. Do they conflict with each other or they just run in queued manner.

@sarthakaggarwal97 sarthakaggarwal97 force-pushed the weekly-release-daily-tests branch from 4622032 to 8691d22 Compare October 10, 2025 00:59
Signed-off-by: Sarthak Aggarwal <[email protected]>
@sarthakaggarwal97 sarthakaggarwal97 force-pushed the weekly-release-daily-tests branch from 8691d22 to 03c3d04 Compare October 10, 2025 01:01
Copy link

codecov bot commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.56%. Comparing base (18214be) to head (c1f47bf).
⚠️ Report is 9 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2702      +/-   ##
============================================
- Coverage     72.57%   72.56%   -0.01%     
============================================
  Files           128      128              
  Lines         71273    71278       +5     
============================================
+ Hits          51724    51725       +1     
- Misses        19549    19553       +4     

see 15 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.

Signed-off-by: Sarthak Aggarwal <[email protected]>
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.

[NEW] Run the whole test suite weekly on release branches

3 participants