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

QueueTest - Be more forgiving about slow execution #17532

Merged
merged 1 commit into from
Jun 7, 2020

Conversation

totten
Copy link
Member

@totten totten commented Jun 7, 2020

The CRM_Queue_QueueTest is producing failures with the TIME_FUNC option of linear:500 (the value currently used in PR test runs) -- which is to say, it fails when the system runs very slowly (with some 500ms stalling during execution).

This gets it working under some very slow scenarios:

for TIME_FUNC in natural frozen linear:500 linear:1250 prng:500 prng:666 prng:1000 prng:1500 ; do
  export TIME_FUNC;
  echo;
  echo "TIME_FUNC=$TIME_FUNC" ;
  env CIVICRM_UF=UnitTests phpunit6 tests/phpunit/CRM/Queue/QueueTest.php ;
done

The `CRM_Queue_QueueTest` is producing failures with the
[TIME_FUNC](civicrm#17414) option of
`linear:500` (the value currently used in PR test runs) -- which is to say,
it fails when the system runs very slowly (with some 500ms stalling during
execution).

This gets it working under some very slow scenarios:

```
for TIME_FUNC in natural frozen linear:500 linear:1250 prng:500 prng:666 prng:1000 prng:1500 ; do
  export TIME_FUNC;
  echo;
  echo "TIME_FUNC=$TIME_FUNC" ;
  env CIVICRM_UF=UnitTests phpunit6 tests/phpunit/CRM/Queue/QueueTest.php ;
done
```
@civibot
Copy link

civibot bot commented Jun 7, 2020

(Standard links)

@civibot civibot bot added the 5.27 label Jun 7, 2020
@seamuslee001 seamuslee001 merged commit 1bdf47d into civicrm:5.27 Jun 7, 2020
@totten totten deleted the 5.27-queue-test branch June 8, 2020 05:46
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