Skip to content

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
@stmontgomery stmontgomery modified the milestones: Swift 6.x, Swift 6.2 Apr 24, 2025
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.

4 participants