Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Apr 16, 2025

Problem:

  • Stable strings can be fixed not just to be consistent from one build to the next, but because hardware expects certain string IDs or ranges. Accidentally having a string in code with a typo could result in another string ID being generated, with unfortunate results.

Solution:

  • Allow typos to be detected and fixed.

@elbeno elbeno force-pushed the string-typo-detection branch from 3e6ff88 to b7a4757 Compare April 16, 2025 17:07
Problem:
- Stable strings can be fixed not just to be consistent from one build to the
  next, but because hardware expects certain string IDs or ranges. Accidentally
  having a string in code with a typo could result in another string ID being
  generated, with unfortunate results.

Solution:
- Allow typos to be detected and fixed.
Copy link
Contributor

@lukevalenty lukevalenty left a comment

Choose a reason for hiding this comment

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

suggestion: i would like a stronger guarantee...like logging a message with some STABLE policy that forces the message to match a stable string or the build will fail.

@elbeno
Copy link
Contributor Author

elbeno commented Apr 18, 2025

You're saying you want an additional stable_only policy that forces every string to be in stable_strings.json?

Problem:
- If someone wants to be ultra-safe, every string should be in
  `stable_strings.json`.

Solution:
- Add a typo policy that requires every string from the code to be found in
  `stable_strings.json`.
@elbeno
Copy link
Contributor Author

elbeno commented May 9, 2025

This PR is abandoned. Typo detection doesn't really solve any problem we have in the right way.
The useful CI part is captured in #726

@elbeno elbeno closed this May 9, 2025
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.

2 participants