Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-122549: Allow to invalidate platform's cached results#122547

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 9 commits intopython:mainfrompicnixz:platform-invalidate-cache
Nov 15, 2024

Conversation

picnixz
Copy link
Member

@picnixzpicnixz commentedAug 1, 2024
edited
Loading

Using a cache invalidation approach is probably better than querying the new results every time. At least, it will not cause any breaking change.


📚 Documentation preview 📚:https://cpython-previews--122547.org.readthedocs.build/

@picnixzpicnixz changed the titlegh-122525: Allow to invalidate platform's cached resultsgh-122549: Allow to invalidate platform's cached resultsAug 1, 2024
Copy link

@kashavkashav left a comment

Choose a reason for hiding this comment

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

The current implementation doesn’t seem useful to me.

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM. The function looks useful when the hostname changes, tests look complete, and the documentation is good enough.

@picnixzpicnixz added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelAug 26, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit42668a3 🤖

If you want to schedule another build, you need to add the🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelAug 26, 2024
@picnixz
Copy link
MemberAuthor

I just want to be sure that build bots won't be unhappy with this change for whatever reason (we'll get the answer in roughly 8 hours)

@picnixz
Copy link
MemberAuthor

The USAN failures are known#111178, the refleaks on Fedora are known as well#122136.

@vstinnervstinnerenabled auto-merge (squash)November 15, 2024 13:42
@vstinnervstinner merged commit612ac28 intopython:mainNov 15, 2024
36 checks passed
@picnixzpicnixz deleted the platform-invalidate-cache branchNovember 15, 2024 13:55
This is typically useful when the platform's :func:`node` is changed
by an external process and one needs to retrieve the updated value.

.. versionadded:: 3.14
Copy link
MemberAuthor

@picnixzpicnixzNov 16, 2024
edited
Loading

Choose a reason for hiding this comment

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

I should have used aversionadded:: next here but at that time, it didn't exist yet. Not sure if this warrants an additional commit though. WDYT@vstinner

Copy link
Member

Choose a reason for hiding this comment

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

next will be replaced with 3.14 anyway, there is no need to replace it.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yea but sometimes users are confused that the feature is present in the docs but not in the current release. That was the purpose ofnext

picnixz added a commit to picnixz/cpython that referenced this pull requestDec 8, 2024
Allow to invalidate platform's cached results.
ebonnal pushed a commit to ebonnal/cpython that referenced this pull requestJan 12, 2025
Allow to invalidate platform's cached results.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vstinnervstinnervstinner approved these changes

@kashavkashavkashav requested changes

@ZeroIntensityZeroIntensityZeroIntensity left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@picnixz@bedevere-bot@vstinner@kashav@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp