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

Run one testsuite with observers enabled in CI #13869

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

bwoebi
Copy link
Member

@bwoebi bwoebi commented Apr 2, 2024

Running one full test suite with an observer doing nothing, to make sure that we do have proper coverage of them.

@@ -184,6 +184,8 @@ jobs:
-d opcache.enable_cli=1 \
-d opcache.jit_buffer_size=16M \
-d opcache.jit=tracing \
-d zend_test.observer.enabled=1 \
-d zend_test.observer.show_output=0 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might it make sense to test this on x86_64 in nightly instead? E.g. .github/nightly_matrix.php, under get_matrix_include(), _VARIATION. That one also runs without opcache, with opcache and with JIT(s).

Copy link
Member Author

@bwoebi bwoebi Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally would like to see it run in a push-job, with --repeat 2, and not nightly only.
(Because it turns out that's the configuration which catches most errors)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, lgtm then 🙂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwoebi Do you really like to run this on ARM only?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dstogov I suppose we can add it on one x86 job as well. Makes sense.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwoebi You can add it to either the nightly repeat or variation job.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think it make more sense to setup specialized nightly jobs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dstogov The variation job enables multiple debug checks, I think it's not too out of place there. I'm not sure there's a big benefit in testing each separately. Usually it's pretty clear what is causing the issue, from the error message.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what is "variation job". Do you mean "Test", "Test Tracing JIT", etc? Of course "Test Observer" and "Tesr Observer + Function JIT" may be add as this kind of sub-jobs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$jobs[] = [
'name' => '_VARIATION',
'branch' => $branch,
'debug' => true,
'zts' => true,
'configuration_parameters' => "CFLAGS='-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1 -DZEND_VERIFY_TYPE_INFERENCE'",
'timeout_minutes' => 360,
'test_function_jit' => true,
'asan' => false,
];

This job runs tests with additional assertions.

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
@bwoebi bwoebi force-pushed the test-observer-ci branch from f7054b7 to b9c7b5e Compare April 2, 2024 16:05
@bwoebi bwoebi requested a review from TimWolla as a code owner April 2, 2024 16:05
@bwoebi bwoebi merged commit e7462bf into php:PHP-8.2 Apr 2, 2024
6 of 8 checks passed
@TimWolla
Copy link
Member

TimWolla commented Apr 2, 2024

see also: #9850 (that one can probably be closed, unless the run-test option is useful?)

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.

4 participants