Skip to content

ARR: Remove all but latest 2 cycles#3025

Open
haroldrubio wants to merge 7 commits intomasterfrom
fix/arr-limit-cycles
Open

ARR: Remove all but latest 2 cycles#3025
haroldrubio wants to merge 7 commits intomasterfrom
fix/arr-limit-cycles

Conversation

@haroldrubio
Copy link
Copy Markdown
Member

This PR adds a step in the setup function in the ARR class to keep only the most recent 2 cycles in active_venues

@haroldrubio haroldrubio self-assigned this Apr 17, 2026
Copilot AI review requested due to automatic review settings April 17, 2026 13:21
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

This PR updates the ARR workflow setup to automatically prune the global active_venues group so that only the latest two ARR cycles remain listed, and adds a regression test to validate the pruning behavior during an ARR cycle deployment.

Changes:

  • Add ARR.prune_active_arr_venues() and call it from ARR.setup().
  • Introduce a test that seeds active_venues with stale ARR venues and asserts only the latest two remain after deploy/setup.

Reviewed changes

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

File Description
openreview/arr/arr.py Adds ARR-specific pruning logic and invokes it during venue setup.
tests/test_arr_venue_v2.py Adds coverage ensuring stale ARR venues are removed from active_venues after setup.

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

Comment thread openreview/arr/arr.py Outdated
Comment thread openreview/arr/arr.py Outdated
Comment thread openreview/arr/arr.py Outdated
Comment thread openreview/arr/arr.py Outdated
if venue_group is None:
continue
venue_cdate = venue_group.cdate
arr_venues.append((venue_cdate, venue_id == self.venue_id, venue_id))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the purpose of saving venue_id == self.venue_id?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

to know if that venue is the current cycle?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes, I thought so, but I guess I don't see it being used anywhere. Maybe I am missing something

Comment thread openreview/arr/arr.py Outdated
return

arr_venues.sort(reverse=True)
stale_venue_ids = [venue_id for _, _, venue_id in arr_venues[keep_count:]]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@celestemartinez here we should filter out the current cycle.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I can make the change to do it more explicitly

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.

4 participants