-
Notifications
You must be signed in to change notification settings - Fork 70
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
VAGOV-2142: Add yaml-tests to include phpunit, phpcs, and linting #348
Conversation
So, this PR is the test itself... The From my local laptop I am about to run |
The tests are defined in a tests.yml file: va/phpunit:
description: PHPUnit
command: phpunit tests/phpunit --colors=always
va/phpcs:
- phpcs --standard=PSR2 -n docroot/modules/custom docroot/themes --colors
va/phplint:
- find docroot/modules/custom docroot/themes -name '*.php' -print0 | xargs -0 -n1 php -l
- find docroot/modules/custom docroot/themes -name '*.module' -print0 | xargs -0 -n1 php -l
- find docroot/modules/custom docroot/themes -name '*.install' -print0 | xargs -0 -n1 php -l |
The plugin includes an option for |
Nice work @jonpugh, this is highly useful and powerful giving engineers the ability to control which tests are run (and on a PR level granularity) and love the status feedback here on the PR, so much more useful than a global pass/fail. |
…er to run just one test.'
Ok! I've got PHPCS and Linting now working! Good new on another front: I swapped out the The |
👍👏👏👏
…On Fri, Jun 7, 2019, 1:16 AM Elijah Lynn ***@***.***> wrote:
W00t w00t!
[image: image]
<https://user-images.githubusercontent.com/1504756/59082588-b4c1e500-88a8-11e9-929f-4aa243d6a87f.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#348?email_source=notifications&email_token=AAAZ7NEX673HO34LLJ3VC4DPZHVKNA5CNFSM4HPSUEIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXE3TAY#issuecomment-499759491>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAZ7NGNRXXIFR6BFFTXVBLPZHVKNANCNFSM4HPSUEIA>
.
|
Incredible! |
1 similar comment
Incredible! |
The last steps as I see it:
|
I don't want to hold up this PR because of the hostname. And we can't just add it back as it broke docker last night because it was too long, so we need more time to figure out how to add a hostname longer than 64 chars, unless you already know how. Do you see this as a blocker for merge?
|
rebuild |
@beeyayjay The MigrationCount failed just now. Should that test be disabled or kept up to date? |
rebuild |
failed on performance test, I think there was something up with Jenkins slave container host on that one. The time to post status here was really long after the Ansible task started. |
build |
Almost feel like before any performance test, there needs to be a system check for CPU and Disk I/O that isn't dependent on the app and just tests the raw system. |
Come to think of it, the Jenkins master was displaying a "Jenkins is going to shutdown" message due to a scheduled restart so I do wonder if that had something to do with it. |
Huzzah! Merging, GREAT WORK @jonpugh! 🚀 🎉 🎸 |
…fairs#348. Need this merge in master because deploys to STAGING and PROD are dependant on these.
…fairs#348. Need this merge in master because deploys to STAGING and PROD are dependant on these.
VAGOV-2142 Manual cherry-pick of yaml-tests from #348 to master for PROD release
This PR includes a new library I created to make maintaining and running a list of tests really easy. It also integrates directly with GitHub so each test is passed back to the PR as a commit status.
Simply
composer install
Then
composer yaml-tests
or justcomposer y
Thew way yaml tests work, if there is a GITHUB_TOKEN environment variable, it will not only run the tests but post to the commit status API with the test pass or fail.