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

GitHub workflow to ensure tests are up to date #1505

Closed
wants to merge 7 commits into from

Conversation

joevilches
Copy link
Contributor

Summary: This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 9, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: cc8f6ad0f8482f2628da1619a0de54c4b8963587
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 2f143e41af665ae7534352e6e93b45d1d8f10de9
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 24b173da1703c0927b7e778a896c4036075086f7
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 38c1ddeb2f085a4da13f46fd3a51e92fb692c04c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 3b8965ea404b4c725ab6d6fa2bd58dad44e3c9eb
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 4281c511e82eeaed9b0f4bf40ba36fa8e417db79
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 4a64e36563b47ec8970a830f8ac5000dd4d9ec22
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 3db7415ffd1d65adeb00f9741158d5f1fd9f52b0
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 4d70df65d3fe0f353ba9e0b7df03cdf4fe366f9e
joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: c177e60774d9b4f24e6aabeeffc79e8f19d3284f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: 549e2a1d4229935a3a6875ca73a5bd1aa839fc5e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: debb439f3f928a95dd826db553b4442c1e3c8874
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: bd451b128e46866c62b8f8ed060bc11e59378f4d
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Differential Revision: D52002920

fbshipit-source-id: ec848d3c94f2ca0f5a72fbcda7e06e3dfca0f5b1
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 12, 2023
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Reviewed By: NickGerleman

Differential Revision: D52002920

fbshipit-source-id: 24167da1bd10a18ea66239b337fcb32ac309e424
Joe Vilches and others added 7 commits December 13, 2023 13:46
Summary:
The only instance of ruby in this repository is `gentest.rb` used to generate test cases from html fixtures. This is quite annoying as ruby is not the most popular compared to something like Node and it does not integrate into the rest of our stack. I changed this to use Node.js instead. Instead of `watir` we now use `selenium-webdriver`. `watir` is backed by Selenium so I do not expect anything to change.

Next commits will add command line options, clean up gentest.rb and its references, and change the README

Differential Revision: https://www.internalfb.com/diff/D51874433?entry_point=27

fbshipit-source-id: 4cb290eb2776a68c81a1a51fe49b109e039c0c44
Summary: This uses the minimist library to parse the command line easily for flags and options. I added over the same ones in the ruby script (-f and -s). Unfortunately, there seems to be no way to fully suspend the script on command while waiting for user input like how you can in ruby. So, I am only able to suspend at the very end by not closing the browser immediately. Therefore, I only let this happen if -f is specified.

Differential Revision: https://www.internalfb.com/diff/D51877810?entry_point=27

fbshipit-source-id: 7ae1b2cac8ff7253854f71fae5747bdcb2366ba5
Differential Revision: D51956567

fbshipit-source-id: 576e39c97057a52c76453dcd9c3f0cbd443b2e5a
Differential Revision: https://www.internalfb.com/diff/D51957351?entry_point=27

fbshipit-source-id: 8763d382ccad02a7c035f3ed5bdc176bac9cc164
Summary: This diff makes it so that our driver will sign all of the generated files to help ensure that they are not edited by hand. Next I will add CI to actually verify the signature

Differential Revision: https://www.internalfb.com/diff/D51966201?entry_point=27

fbshipit-source-id: 3a5a82d186dc8a6907d3b89608fc741860a4bdd1
Differential Revision: D51999865

fbshipit-source-id: 4556bee0e1906ef3c1a7859956604b03dd8ddccf
Summary:
Pull Request resolved: facebook#1505

This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :)

Reviewed By: NickGerleman

Differential Revision: D52002920

fbshipit-source-id: f0811a24c60d08da7455f848ad1eda02c6eb27e8
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52002920

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 43d09a3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants