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

[WIP] Nightly full pa11y scan #3834

Closed
wants to merge 44 commits into from
Closed

Conversation

caleywoods
Copy link
Contributor

@caleywoods caleywoods commented May 16, 2024

Pull request summary

#3829 Changed how pa11y scans are handled in CI so that instead of full site scans using the sitemap it only scans the files that were changed. Part of that scope of work was to create a scheduled full site scan with pa11y since that now never occurs otherwise.

There are three parts to completing this work, only the first step is complete currently:

  1. Modify the CircleCI config so that it supports both a scheduled full scan and the normal "run a changed files scan when a commit to a branch that has a pull request open" scan [ ✅ ]
  2. Create a GitHub action that listens for the repository_dispatch event and creates a GitHub issue from the pa11y failures, those pa11y failures are provided in the event that will be sent to GitHub from our CircleCI step listed in step 3 [ ✅ ]
  3. Make the scheduled nightly scan create a GitHub issue if there's a pa11y failure. The current plan is to add a step to the CircleCI config that uses cURL to send an event through the GitHub API to the 18f/18f.gsa.gov repo that triggers the repository_dispatch GitHub action [ ✅ ]

You can see a successful run of the scheduled "nightly" execution here on CircleCI.

Attempts to close #3832

Current status: tweaking the logic in our GitHub action responsible for creating the GH issue when a scan fails so that it tries to handle issue creation intelligently. The goal is to have it not open a new issue if there's an issue already open and the scan result between the two runs was identical.

.circleci/config.yml Outdated Show resolved Hide resolved
@caleywoods
Copy link
Contributor Author

Closing this - it will be re-opened soon based on the replatforming work.

@caleywoods caleywoods closed this Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add nightly pa11y scan
1 participant