Skip to content

Conversation

@ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Nov 13, 2024

Fixes #1894. If compute_from is set, then explicitly check every key's deprecated value.

Right now this is not great—it's quite slow. I need to do some sort of refactoring here to not run computeBaseline on every key twice. It's too late in the day for me to think that through.

@github-actions github-actions bot added the tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings label Nov 13, 2024
@ddbeck ddbeck force-pushed the surface-discouraged-on-compute-from branch from e77a819 to e5e7442 Compare November 13, 2024 16:50
@ddbeck ddbeck marked this pull request as ready for review November 14, 2024 09:04
@ddbeck ddbeck requested review from Elchi3 and jamesnw November 14, 2024 09:04
Copy link
Collaborator

@jamesnw jamesnw left a comment

Choose a reason for hiding this comment

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

🚀

@ddbeck
Copy link
Collaborator Author

ddbeck commented Nov 14, 2024

OK, then if we're going down this route we have a little bit of work to do. These are the keys currently failing the test:

if (!source.draft_date) {
logger.error(
`${id}: contains at least one deprecated compat feature and can never be Baseline. This is forbidden for published features.`,
`${id}: contains at least one deprecated compat feature. This is forbidden for published features.`,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is kinda annoying in some cases, because you never get the one key that caused it. I should refactor this a bit, to conditionally check deprecated for each key up here.

@jamesnw
Copy link
Collaborator

jamesnw commented Nov 20, 2024

@vwallen Can you open PRs for the remaining keys in this comment?

@jamesnw
Copy link
Collaborator

jamesnw commented Nov 21, 2024

@ddbeck The blocking keys have been removed, and it looks like none have been added in the interim.

@ddbeck
Copy link
Collaborator Author

ddbeck commented Nov 22, 2024

Great. Let's merge this now.

@ddbeck ddbeck merged commit ef8d98a into web-platform-dx:main Nov 22, 2024
3 checks passed
@ddbeck ddbeck deleted the surface-discouraged-on-compute-from branch November 22, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compute_from suppresses deprecation warnings

3 participants