Skip to content

Use the entire SHA-256 hash as an exit test ID. #1053

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Apr 6, 2025

This PR uses the entire 256 bits of the computed SHA-256 hash for an exit test's ID, not just the first 128. They're there, might as well use them.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR uses the entire 256 bits of the computed SHA-256 hash for an exit test's
ID, not just the first 128. They're there, might as well use them.
@grynspan grynspan added enhancement New feature or request exit-tests ☠️ Work related to exit tests macros 🔭 Related to Swift macros such as @Test or #expect labels Apr 6, 2025
@grynspan grynspan added this to the Swift 6.x milestone Apr 6, 2025
@grynspan grynspan self-assigned this Apr 6, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Apr 6, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Apr 6, 2025

@swift-ci test Linux

@grynspan grynspan merged commit 1ba4e6f into main Apr 7, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/draw-the-rest-of-the-sha256 branch April 7, 2025 17:59
grynspan added a commit that referenced this pull request Apr 7, 2025
This PR uses the entire 256 bits of the computed SHA-256 hash for an
exit test's ID, not just the first 128. They're there, might as well use
them.

### Checklist:

- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
grynspan added a commit that referenced this pull request Apr 8, 2025
- **Explanation**: Uses the full 256 bits from a SHA-256 hash to
uniquely identify an exit test instead of truncating to 128 bits.
  - **Scope**: Exit test IDs
  - **Issues**: N/A
  - **Original PRs**: #1053
  - **Risk**: Low (everything involved is recompiled)
  - **Testing**: Normal CI jobs.
  - **Reviewers**: @briancroom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exit-tests ☠️ Work related to exit tests macros 🔭 Related to Swift macros such as @Test or #expect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants