Skip to content

xattr: default to weekly stability if missing#101

Merged
jlebon merged 2 commits intomainfrom
xattr-default-stab
Apr 2, 2026
Merged

xattr: default to weekly stability if missing#101
jlebon merged 2 commits intomainfrom
xattr-default-stab

Conversation

@jlebon
Copy link
Copy Markdown
Member

@jlebon jlebon commented Apr 2, 2026

This is the second part of #98. If the user didn't provide any interval via the new xattr API, assume weekly.

Previously, we were using the fallback of (minimum stability)/2, which (1) is way too sensitive to churny outliers in the package set, and (2) doesn't really have a basis in what users are expressing.

I'm converting users' intent of bothering to add an xattr here as them saying that it has some amount of stability, which I'm semi-arbitrarily ballparking as 'weekly'.

While we're here, tweak the README section on xattrs a bit more to reflect reality.

jlebon added 2 commits April 1, 2026 22:40
This is the second part of #98. If the user didn't provide any interval
via the new xattr API, assume weekly.

Previously, we were using the fallback of (minimum stability)/2, which
(1) is way too sensitive to churny outliers in the package set, and (2)
doesn't really have a basis in what users are expressing.

I'm converting users' intent of bothering to add an xattr here
as them saying that it has _some_ amount of stability, which I'm
semi-arbitrarily ballparking as 'weekly'.

While we're here, tweak the README section on xattrs a bit more to
reflect reality.
Semi-arbitrarily chosen value. But 10 feels like the point where
you're probably doing this mechanically (e.g. mapping from a currently
incompatible repo database) than by hand on specific files.

If those components become a large part of your total component set, you
really want to add stability information for better packing.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the xattr-based component implementation to use a default update interval of 7 days (weekly) when the user.update-interval xattr is missing, rather than defaulting to zero stability. The changes include updates to the documentation, logic for calculating component stability, and a new warning threshold for missing xattrs. A review comment suggests replacing a magic number in the tests with the newly defined UPDATE_INTERVAL_DEFAULT constant for better maintainability.

Comment thread src/components/xattr.rs
@jlebon jlebon enabled auto-merge (rebase) April 2, 2026 02:48
@jlebon jlebon merged commit 221089c into main Apr 2, 2026
10 checks passed
@jlebon jlebon deleted the xattr-default-stab branch April 2, 2026 02:48
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.

1 participant