Skip to content

[ST-NNNN] Polling Confirmations#2926

Open
younata wants to merge 26 commits intoswiftlang:mainfrom
younata:younata/testing-polling-expectations
Open

[ST-NNNN] Polling Confirmations#2926
younata wants to merge 26 commits intoswiftlang:mainfrom
younata:younata/testing-polling-expectations

Conversation

@younata
Copy link
Copy Markdown
Contributor

@younata younata commented Jul 29, 2025

New proposal for Swift Testing: Polling Confirmations.

These allow test authors to check that state updates over the course of some amount of time, in a very brute-force kind of way. Very helpful when there aren't other means of checking this available.

@stmontgomery stmontgomery added the TWG Contains topics under the domain of the Testing Workgroup label Aug 1, 2025
@stmontgomery stmontgomery added the workgroup: needs development This proposal needs to be developed further before it can be reviewed label Aug 1, 2025
@younata younata changed the title Swift Testing Proposal: Polling Confirmations [ST-NNNN] Polling Confirmations Oct 22, 2025
@younata younata force-pushed the younata/testing-polling-expectations branch from c602e5f to 4fafc61 Compare October 23, 2025 04:31
@stmontgomery
Copy link
Copy Markdown
Contributor

Looks like there's some merge or rebase issue, files besides the new proposal are being shown as modified

@younata younata force-pushed the younata/testing-polling-expectations branch from 93f586d to 3fcb851 Compare November 4, 2025 19:32
@younata
Copy link
Copy Markdown
Contributor Author

younata commented Nov 4, 2025

Looks like there's some merge or rebase issue, files besides the new proposal are being shown as modified

Whoops. That's corrected now. I wonder how I messed up that rebase.

@younata younata force-pushed the younata/testing-polling-expectations branch from 3fcb851 to 3ab257e Compare December 1, 2025 23:10
I'm working on it, but macros are hard.
- Change the default timeout.
- Change how unexpected thrown errors are treated.
- Add future direction to add change monitoring via Observation
- Add alternative considered of Just Use A While Loop
- Add alternative considered for shorter default timeouts
- Include commenting on why not pure counts (i.e. why counts + interval)
- Specify the configuration traits
- Specify callsite configuration of counts + interval
younata and others added 11 commits February 25, 2026 23:43
Co-authored-by: Jonathan Grynspan <grynspan@me.com>
…t to mention that duration may be greater than or equal to interval
Also add a couple paragraphs discussing known delays in code when using polling.
Keep the @escaping, even though that's not strictly necessary: it's less work to specify escaping now and later remove it
than it is to introduce the escaping restriction later.
…n alternatives considered.

As it turns out, this approach isn't feasible. Sadly.
@younata younata force-pushed the younata/testing-polling-expectations branch from f50a9f0 to aefe6a8 Compare February 26, 2026 08:30
Corrected a couple of typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TWG Contains topics under the domain of the Testing Workgroup workgroup: needs development This proposal needs to be developed further before it can be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants