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

Tests #1345

Closed
soulseekah opened this issue Sep 18, 2019 · 22 comments
Closed

Tests #1345

soulseekah opened this issue Sep 18, 2019 · 22 comments
Assignees

Comments

@soulseekah
Copy link
Contributor

Lots of permissions failures, about 10 tests are failing.

@soulseekah soulseekah self-assigned this Sep 18, 2019
@soulseekah
Copy link
Contributor Author

Bisect shows 1803ef7 as one of the culprits.

soulseekah added a commit that referenced this issue Sep 18, 2019
@soulseekah
Copy link
Contributor Author

6 fails to go.

soulseekah added a commit that referenced this issue Sep 25, 2019
Some filters are core-added, so it's pretty dangerous to mess with them
like so. Fixes a failed test.

Work on #1345
@soulseekah
Copy link
Contributor Author

soulseekah added a commit that referenced this issue Sep 30, 2019
@soulseekah
Copy link
Contributor Author

soulseekah added a commit that referenced this issue Sep 30, 2019
@soulseekah
Copy link
Contributor Author

soulseekah added a commit that referenced this issue Oct 22, 2019
@soulseekah
Copy link
Contributor Author

soulseekah commented Oct 23, 2019

GravityView_Edit_Entry_Test::test_field_visibility_and_editability_caps's success depends on the number of forms that have been created... weirdest thing I've ever seen.

I modify the create_many call in GVCommon_Test::test_get_forms from 5 to 3 and it works. 1 and 2 works as well, anything over 5 stops working.

...It's like it fails unless there are more than 100 forms present.

I literally do a --filter GravityView_Edit_Entry_Test::test_field_visibility_and_editability_caps --repeat 20, it works for the first 4 times, then it stops working for 5 times, and then works for 11 times!

I'm stumped.

Here are 250 test runs of the same test:

image

Fails first 4 then fails another 50 after some good ones.

It actually fails if the form ID starts with a 1... 1, 17, 110, 1093, etc. 🗡️

soulseekah added a commit that referenced this issue Oct 23, 2019
input_1 is contained in input_17_2 labels, hard one.

WIP on #1345
@soulseekah
Copy link
Contributor Author

input_1 is contained in for="input_17_2"... doh

2 to go 🏁

soulseekah added a commit that referenced this issue Oct 23, 2019
@soulseekah
Copy link
Contributor Author

0?

@soulseekah
Copy link
Contributor Author

@soulseekah
Copy link
Contributor Author

2 😄

soulseekah added a commit that referenced this issue Oct 24, 2019
@soulseekah
Copy link
Contributor Author

1 🍇

soulseekah added a commit that referenced this issue Oct 24, 2019
@soulseekah
Copy link
Contributor Author

  1. But not on all versions:

image

ugh

@soulseekah
Copy link
Contributor Author

A regression in WordPress nightly:

https://core.trac.wordpress.org/ticket/28636

@zackkatz
Copy link
Member

@soulseekah I thought the nightlies wouldn't show as errors in the build?

allow_failures:
      - php: nightly

@soulseekah
Copy link
Contributor Author

@soulseekah
Copy link
Contributor Author

See: https://core.trac.wordpress.org/ticket/28636#comment:34

nightly should be fine.

@soulseekah
Copy link
Contributor Author

Errors: 1, Failures: 1... continuing the battle.

The error is from #877 d04c10a which is a good thing, strangely (and hopefully). It should be failing but for other reasons.

The failure is being worked on.

soulseekah added a commit that referenced this issue Oct 29, 2019
@soulseekah
Copy link
Contributor Author

Bah, I don't know... it's soooooo bad:

image

But we're almost there: https://travis-ci.org/gravityview/GravityView/builds/604386137

@soulseekah
Copy link
Contributor Author

There seems to be a bug in latest. GravityView_Merge_Tags_Test::test_replace_date_updated human time diff stuff. I would love to look into it if no update is released in a week or two, after handling more pressing matters. Okay?

@zackkatz
Copy link
Member

@soulseekah Yep, sounds good.

@soulseekah
Copy link
Contributor Author

It does look like the human test is time-sensitive in some way. Running it 100 times gets about 2% fails:

image

Maybe if the interval is sometimes too short (less than 1 second) then it doesn't output 0 seconds, but outputs the date. I'll check later.

@soulseekah
Copy link
Contributor Author

Seems to have helped locally:

image

soulseekah added a commit that referenced this issue Nov 16, 2019
soulseekah added a commit that referenced this issue Nov 16, 2019
Make sure that 1 second time difference is fixed
Should take care of #1345 a bit more
Fingers crossed
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

No branches or pull requests

2 participants