Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-128104: Remove Py_STRFTIME_C99_SUPPORT; require C99-compliant strftime#128106
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
Conversation
zanieb commented Dec 19, 2024 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
ghost commented Dec 19, 2024 • edited by ghost
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by ghost
Uh oh!
There was an error while loading. Please reload this page.
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
This comment was marked as outdated.
This comment was marked as outdated.
f82b179 to 68fea4bCompareMost changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Uh oh!
There was an error while loading. Please reload this page.
ZeroIntensity commented Dec 20, 2024
I think this is probably blurb-worthy. We have a section for builds (but maybe this fits better under "library") |
zanieb commented Dec 20, 2024
👍 I can add one. #123861 omitted the news entry but this change is definitely larger. |
zanieb commented Dec 20, 2024
I believe that failure is a flake as those tests succeeded on the first commit. |
ZeroIntensity commented Dec 20, 2024
Yeah, it's not related. |
Misc/NEWS.d/next/Build/2024-12-20-09-03-22.gh-issue-128104.m_SoVx.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Py_STRFTIME_C99_SUPPORT; require C99-compliant strftimePy_STRFTIME_C99_SUPPORT; require C99-compliant strftimePy_STRFTIME_C99_SUPPORT; require C99-compliant strftimePy_STRFTIME_C99_SUPPORT; require C99-compliant strftimepicnixz commented Dec 21, 2024
Ok, I eventually decided that we can keep your issue opened instead of mine because there's a bit more details. It'd be better not to have two issues in the title as well (sorry for the title double edit). I'll close mine. |
picnixz commented Dec 21, 2024
66135e2 to 0a9e225Comparezanieb commented Dec 21, 2024
@erlend-aasland can do. It seems like the devguide suggests that you shouldn't ever amend commits? Is it not a priority to have discrete commits in the pull request? Are you just referring to merging |
picnixz commented Dec 22, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
We don't really care about having merge commits since we anyway squash everything together at the end and change the commit message. However, we allow (at least I) to amend commits in some situations. My personal rules (which are not the official ones, but that I use) are:
I avoid force-pushing when I can, but sometimes the situation requires you to force-push. Considering the time and the window between two commits I usually have, my force-pushes are fine because we can still follow from the last reviewed commit but if I wait before force-pushing, someone could already have reviewed something and everything's lost! Now, this is something I've been doing less and less because we live in different timezones and people might be very reactive! (or already reviewing the PR, then they see the "Refresh" button, hit it, and then the review becomes messed up because of my force-push). So, I always try to first clean my commits locally before pushing them in one go. A final note: unless I've marked my PR as ready for review, I assume I can do whatever I want. Victor told me that he doesn't review draft PRs until they are ready and I assume that it's because we can have huge commit activity. Obviously, this is assuming the PR was opened as a draft. If I mark it as a draft during the review process, I still try to reduce commit activity and force-pushing just for the sake of reviewers. Overall, force-pushing is a matter of taste. I personally prefer having a force-push rather a wrong commit that reviewers will view. However, if the "wrong" in the commit is something like a typo or a compilation failure, I don't bother because reviewers don't review commits locally but on a web UI. So I just add a commit "fix compilation" or "fix typo" for instance. Most of the time, force-pushing for having one single commit at the end is not recommended (and should be avoided) but force-pushing for cleaning something that was dirty and would make reviews incorrect or incorrectly lead reviewers is probably preferred, at least to me. |
zanieb commented Dec 22, 2024
Thanks @picnixz — I'll keep that all in mind. |
zanieb commented Dec 30, 2024
@erlend-aasland gentle reminder on this one — let me know if you need anything. |
Uh oh!
There was an error while loading. Please reload this page.
picnixz commented Jan 2, 2025
cc @serhiy-storchaka (who re-opened my other issue to suggest a runtime check instead of a compile-time check) |
serhiy-storchaka commented Jan 2, 2025
@blhsing, please remind, why was the In any case, I proposed to make the Py_NORMALIZE_CENTURY check at runtime instead of a compile time. This is needed for cross-compilation. It would also be easy to check for |
zanieb commented Jan 2, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I'm all for runtime checks, though if C11 is required I don't see why we need to check for C99 features? I only left the check here since it's low-maintenance and not complicating the runtime. ref #123861 (comment) cc @zware |
erlend-aasland commented Jan 2, 2025
Totally agree with @zanieb and Zach; there is no need to complicate the runtime with such obsolete checks. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
47a047f to 629af8dComparebb2dfad into python:mainUh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Jan 3, 2025
Thanks, Zanie! It's good to get rid of cruft like this; thanks for all the good work you're doing! |
Supersedes #123861
Closes#123681
Closes#128104
Since C11 is required now, there's no need to toggle behavior based on C99-compliant behavior in
strftime. Instead, we fail at configure time ifstrftimeis not detected to be C99-compliant. If cross-compiling, we don't check ifstrftimeis compliant.We could remove the check entirely, but it seems nice to check when we can. I loosely modeled this after the
libmcheck.This does not re-enable the
strftime_y2ktest for the JIT which was disabled in #124466 — I don't see that file :) I did a JIT test run anyway.test_strftime_y2kfails while cross-compiling 3.14a3 forx86_64_v2andx86_64_v3on Linux #128104test_strftime_y2kfails on embedded Linux #123681