Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release script based on new stabilization date #13140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Mar 4, 2025

Description:

Since #13119 has been merged we should update the helper script to match.

Rationale:

Keeping helper scripts up-to-date with policies.

Review Hints:

./utils/release_helper.py stats

@Mab879 Mab879 added the Infrastructure Our content build system label Mar 4, 2025
@Mab879 Mab879 added this to the 0.1.77 milestone Mar 4, 2025
Copy link

codeclimate bot commented Mar 4, 2025

Code Climate has analyzed commit f49cfc6 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 62.1% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Mar 5, 2025
first_day_weekday = first_day_of_month.weekday()
first_monday_date = 1 + (0 - first_day_weekday) % 7
third_monday_date = first_monday_date + 14
return datetime(year, month, third_monday_date)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You need to add time zone info

Suggested change
return datetime(year, month, third_monday_date)
return datetime(year, month, third_monday_date, tzinfo=UTC)

Otherwise you will get TypeError: can't compare offset-naive and offset-aware datetimes on line 366.

Copy link
Member Author

Choose a reason for hiding this comment

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

What version of Python are you using? Using 3.11 and 3.13 I'm running into this and this suggested change causes more issues.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I use Python 3.13.2.

Copy link
Collaborator

Choose a reason for hiding this comment

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

On line 366 you compare the returned value with now which is now = datetime.now(UTC). Happens only if the month is greater than 9 therefore in Q4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants