-
Notifications
You must be signed in to change notification settings - Fork 30
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
Generated tests and review pages output improvements #441
Conversation
Updated create-all-tests script to add verbose flag and provide summary of runs
* WIP - pre-push test * Revert "WIP - pre-push test" This reverts commit 42b40d6 * adding tests folder level .gitignore * after untrack * added additional command to generate-and-commit-files workflow script * Generate test and review files automatically * workflow tweak * Generate test and review files automatically * workflow tweak * Generate test and review files automatically * workflow tweak * Generate test and review files automatically * workflow tweak * Generate test and review files automatically * Generate test and review files automatically * workflow tweak * Generate test and review files automatically * workflow tweak * workflow step rename * added tests/.gitignore * Generate test and review files automatically * untracked files * Generate test and review files automatically * misc * Generate test and review files automatically * adjusted generate-and-commit-files.yml for CI * Generate test and review files automatically * updated workflow action * untracked files * Generate test and review files automatically * misc * Generate test and review files automatically * Update test-03-navigate-to-unchecked-checkbox-interaction.html * Generate test and review files automatically * Create test-03-navigate-to-unchecked-checkbox-interaction.html * Generate test and review files automatically * misc * Generate test and review files automatically * after untrack * modified gitignore * untrack files * testing .gitattributes * Generate test and review files automatically * .gitattributes * Generate test and review files automatically * misc * Generate test and review files automatically * misc * Generate test and review files automatically * misc * Generate test and review files automatically * adjusted .gitattributes * Generate test and review files automatically * misc * Generate test and review files automatically * misc * misc * adjusted gitignore * after untrack * prep to test workflow * Generate test and review files automatically * Create index.html * Generate test and review files automatically * Delete index.html * Generate test and review files automatically * adjusting generated PR link * Generate test and review files automatically * adding support for support.json * Generate test and review files automatically * build cleanups * misc * workflow refactor * Generate test and review files automatically * Generate test and review files automatically * after merging with verbosity branch * Generate test and review files automatically * updated .gitattributes and .gitignore; added additional utility script for generating tests and review files locally * Generate test and review files automatically * misc * Generate test and review files automatically Co-authored-by: howard-e <[email protected]>
I don't know how to reconcile these two points. Are you saying that the scripts will continue to create output artifacts in the |
Takeaways from today's app dev meeting:
Longer term goals:
|
* added `npm run validate` command * added `npm run cleanup` command
…all-tests.js) and npm run validate
These 2 can be addressed in separate PRs. |
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.
Looks great! I'm going to approve!
Although I did run all the commands, I mostly reviewed the code itself, so I do think James or someone on the test author side might be interested in reviewing from a user's perspective.
# Conflicts: # build/index.html # build/review/checkbox-tri-state.html # build/review/checkbox.html # build/review/combobox-autocomplete-both.html # build/review/combobox-select-only.html # build/review/menu-button-actions-active-descendant.html # build/review/menubar-editor.html # build/review/modal-dialog.html # build/review/tabs-manual-activation.html
@howard-e I know this has been merged, but I have some questions. Apologies I'm not leaving them directly on the diff, which is unusable with a screen reader because of the number of files modified. In
|
Also, just to note, @alflennik wrote:
I would've been happy to do this before it was merged, had my review been requested or if I'd actually been mentioned. So apologies again that these comments are coming in after the fact. |
Noted. That point had slipped us as well when merging so our apologies there. It's completely reasonable to revert for now if you'd rather to do a more in depth review. |
I appreciate that. I'd like to understand the appropriate usage pattern of the scripts / if I'm doing anything wrong, then take a look at the output to assess whether it resolves some of the accessibility concerns. I'd also like to see OS-specific concerns (like the use of If your timeline allows us to revert, review, fix up and merge in again over the next 1-1.5 weeks, I think we should. I'm certainly happy to review this week. Otherwise, if reverting would likely introduce greater delays than 1.5 weeks, we should just move forward and file any issues as follow-ups. |
It's an environment variable injected by node once that argument is passed to a node script. In this particular case, it's set by providing an argument to the
You would rather separate scripts that that are dedicated to either functions rather than this argument based approach on the original? Or do you think a rename of the original script would be appropriate?
You're quite correct. A patch should follow for the full Windows support there.
The script changes and additions are documented within a newly created file, This specific error however may be related to it being ran under a Windows environment. |
Yes, I believe this would be best as you weren't allowed ample time to review and to also include that platform-agnostic patch.
I don't believe this is a problem at the moment so I'll go ahead with reverting for now. |
@howard-e Thanks for the clarification. Getting it running on Windows is critical, to allow review and ultimately unblock some of our workflows. So I think we should proceed with a new PR, and we can continue discussion there. What is the expected timeline for that new PR to go up? |
Preview Tests - FORKED REPO PREVIEW
This addresses a few issues identified with the automation/workflow scripts flow. See #384.
Test Plans generation script noisy output
When running
npm run create-all-tests
to generate test plans, many of the messages were unnecessary when one of the main goals was only understanding if anything unexpected had happened.Verbose Output
The decision taken here was to completely silence the output except for displaying errors and providing a summary of how many tests have been generated.
A note on how many log lines have been suppressed along with instructions on how to view those messages is provided which means the original verbose output is now behind a
--verbose
flag.Non-Verbose Output
Conflicts created by generated files from PR action + local development changes
npm run create-all-tests
andnpm run review-tests
will continue to work as normal. The only difference is that thein-linefiles they generated are nowgitignoredstored in abuild
folder. This means means there will no longer be a chance for merge conflicts to occur on those in-line generated files when having to push/pull to/from the repository.Those scripts however, now support aThese files are updated via a GitHub Action with--build
flag to create a dedicated build artifact folder which will have those generated files.npm run build
which will then be referenced in the PR'sPreview Tests
link instead.base
branch (which the PR will also notify you of) before merging to avoid any possible merge conflicts but overall, the merge conflicts situation should be somewhat mitigated for the time being.build
folder) in the repository altogetherTODOS:
build
folder for local developmentnpm run validate
command that will output the validity status of the written test plansnpm run build
npm run validate
npm run cleanup
command that will remove the build directory