Skip to content

Fix CI#98

Merged
marcprux merged 3 commits intoskiptools:mainfrom
dfabulich:ci-fix-test-data-download
Feb 25, 2026
Merged

Fix CI#98
marcprux merged 3 commits intoskiptools:mainfrom
dfabulich:ci-fix-test-data-download

Conversation

@dfabulich
Copy link
Contributor

@dfabulich dfabulich commented Feb 24, 2026

Fixes #96

This test was downloading from https://www.example.com and https://www.iana.org but something funny seems to have happened to the JVM CA certificates on Github actions.

Pointing to a site we control, skip.dev, ensures that we'll be in charge of any weirdness in changing certificate authorities.

The CI was still failing at that point, in TestURLSession. I added some robustness enhancements to those tests, and, now, the CI passes.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

This test was downloading from https://www.example.com and https://www.iana.org but something funny seems to have happened to the JVM CA certificates on Github actions.

Pointing to a site we control, skip.dev, ensures that we'll be in charge of any weirdness in changing certificate authorities.
@cla-bot cla-bot bot added the cla-signed label Feb 24, 2026
`testGetTasks` assumed that the task would remain pending long enough to `await session.allTasks` and then `await session.tasks`, but the task might fail or succeed faster than that.

I split the test into `testGetTasks` which only tests `session.tasks`, and `testGetAllTasks` which only tests `session.allTasks`, minimizing the likelihood of race conditions.
Poll for success in a loop for up to two seconds before failing
@dfabulich dfabulich force-pushed the ci-fix-test-data-download branch from 701ccd3 to 719d01c Compare February 25, 2026 05:42
@dfabulich dfabulich changed the title Fix testDataDownload in CI Fix CI Feb 25, 2026
@dfabulich
Copy link
Contributor Author

CI passes! 💪

@dfabulich dfabulich requested a review from marcprux February 25, 2026 06:11
@marcprux
Copy link
Member

Great, thanks! These network tests have been the cause of flakiness in the past, and it is probably bad practice to have them run as a part of the CI for skip-foundation, but I would be nervous disabling them wholesale. So this is a good stopgap patch, and as you say, we at least have control over the domain they are trying to hit.

@marcprux marcprux merged commit a84a940 into skiptools:main Feb 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI failing

2 participants