Skip to content
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

Fix helpers getListing() and getDirectories() on Windows etc #3863

Merged
merged 8 commits into from
Jun 26, 2023

Conversation

colinrotherham
Copy link
Contributor

@colinrotherham colinrotherham commented Jun 26, 2023

More fixes for places we've assumed Windows line endings and slashes were supported but weren't:

  1. Consistently write POSIX line endings now Rollup uses them regardless
  2. Convert to POSIX forward slashes in directory listing glob() pattern

Plus some timeout and speed fixes for GitHub Actions on Windows

Update: Linking to some Windows runs to confirm it works:

@colinrotherham colinrotherham added 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) github-actions labels Jun 26, 2023
@colinrotherham colinrotherham requested a review from a team as a code owner June 26, 2023 14:19
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3863 June 26, 2023 14:20 Inactive
@colinrotherham colinrotherham force-pushed the github-actions-windows branch from 6f09e8a to 4986804 Compare June 26, 2023 14:37
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3863 June 26, 2023 14:37 Inactive
We see failures due to Express.js startup delays, awaiting selector visibility, and accessibility tests taking 60+ seconds to loop through all component examples
Required for `workflow_call` calls but still works with `workflow_dispatch`
We previously let these Jest projects run early:

1. JavaScript unit tests
2. Nunjucks macro tests

But they both finish sooner than the “Accessibility tests” project
All the cache keys have also been changed to ensure all archives are recreated
Unlike on Linux, tests run slower when concurrent due to the number of open Chrome windows/tabs
@colinrotherham colinrotherham force-pushed the github-actions-windows branch from 4986804 to 87e4b2c Compare June 26, 2023 14:59
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3863 June 26, 2023 15:00 Inactive
Copy link
Member

@romaricpascal romaricpascal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers for fixing our Windows tests 🙌🏻 Looks all good (albeit so painful to wait so long for results 🤣 )

We already skip package tests as we have coverage in our PR tests already
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3863 June 26, 2023 15:10 Inactive
@colinrotherham colinrotherham merged commit d51c007 into main Jun 26, 2023
@colinrotherham colinrotherham deleted the github-actions-windows branch June 26, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working the way it should (including incorrect wording in documentation)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants