Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Nov 6, 2025

This PR ensures that the attachment-saving logic in Runner is applied consistently. I made the mistake of moving that logic to configureEventHandlerRuntimeState() because I'd forgotten that that function only has an effect when we're running our own tests. And, as a result, all our tests continued to pass because the code was in place for our tests (and for nobody else.)

I've moved the code to a different location that we will always call when running a Runner instance, so the issue is resolved now. I don't have a great way to set up a unit test for this; tested manually at desk.

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 ensures that the attachment-saving logic in `Runner` is applied
consistently. I made the mistake of moving that logic to
`configureEventHandlerRuntimeState()` because I'd forgotten that that
function only has an effect when we're running our own tests. And, as a
result, all our tests continued to pass because the code was in place
for our tests (and for nobody else.)

I've moved the code to a different location that we will always call
when running a `Runner` instance, so the issue is resolved now. I don't
have a great way to set up a unit test for this; tested manually at
desk.
@grynspan grynspan added this to the Swift 6.3.0 milestone Nov 6, 2025
@grynspan grynspan self-assigned this Nov 6, 2025
@grynspan grynspan added the bug 🪲 Something isn't working label Nov 6, 2025
@grynspan grynspan added command-line experience ⌨️ enhancements to the command line interface attachments/activities 🖇️ Work related to attachments and/or activities labels Nov 6, 2025
@grynspan grynspan merged commit ef3e4af into main Nov 6, 2025
26 of 27 checks passed
@grynspan grynspan deleted the jgrynspan/attachments-not-saving branch November 6, 2025 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attachments/activities 🖇️ Work related to attachments and/or activities bug 🪲 Something isn't working command-line experience ⌨️ enhancements to the command line interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants