-
Notifications
You must be signed in to change notification settings - Fork 8
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 and re-enable pa11y-ci #2058
Conversation
Terraform plan for meta No changes. Your infrastructure matches the configuration.
✅ Plan applied in Deploy to Development and Management Environment #186 |
Terraform plan for dev No changes. Your infrastructure matches the configuration.
✅ Plan applied in Deploy to Development and Management Environment #186 |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 65f197a |
This old-ish Docker issue provided the fix. pa11y/pa11y-ci#198 |
touch .env | ||
docker compose -f docker-compose.yml up -d | ||
|
||
- name: Run Lighthouse CI and pa11y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combined these two together to keep the npm install bits in one place.
"chromeLaunchConfig": { | ||
"executablePath": "/usr/bin/google-chrome" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a whole bunch of tests, it turned out pa11y was silently failing to launch headless chrome, then timing out. I couldn't pinpoint the exact source of this change in the dependency tree, but it turns out we just needed to point it to chrome's path.
Ref: pa11y/pa11y-ci#198
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will watch the GH env after merge.
Closes #2056
To verify, review the check logs for this action OR create a branch off of
ds-workflow-node
and trigger the a11y tests.Don't mind the unreasonably long list of commits.
PR checklist: submitters
main
into your branch shortly before creating the PR. (You should also be mergingmain
into your branch regularly during development.)Make sure that whatever feature you’re adding has tests that cover the feature. This includes test coverage to make sure that the previous workflow still works, if applicable.PR checklist: reviewers
make docker-clean; make docker-first-run && docker compose up
; then rundocker compose exec web /bin/bash -c "python manage.py test"
The larger the PR, the stricter we should be about these points.