Skip to content

try to fix failing test_008_restart - #733

Open
jfclere wants to merge 1 commit into
apache:trunkfrom
jfclere:mpm-restart-race
Open

try to fix failing test_008_restart#733
jfclere wants to merge 1 commit into
apache:trunkfrom
jfclere:mpm-restart-race

Conversation

@jfclere

@jfclere jfclere commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Co-Authored-By: Claude Opus 4.6

Co-Authored-By: Claude Opus 4.6
@jfclere

jfclere commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

I am not able to reproduce it.

notroj added a commit to notroj/httpd that referenced this pull request Sep 4, 2026
…tests.

* test/pyhttpd/log.py (HttpdErrorLog.current_pos, .wait_for): New
  methods, to wait for a line logged after a noted position.

* test/pyhttpd/env.py (HttpdTestEnv._apache_signal_restart): New method:
  run "httpd -k restart" or "-k graceful", which only signal the parent,
  then wait for the MPM to log "resuming normal operations" before
  checking is_live().  Until then the answer may come from the old
  generation, with the old config and about to be killed, which showed
  up as an empty reply in test_core_008_03_repeated under ASan.
  (apache_reload, apache_hard_restart): Use it.

Fixes: 7172909 ("test/modules/core/test_008_restart.py: New test suite for server restart handling.")
Fixes: 31d91bb ("test/pyhttpd/env.py (HttpdTestEnv.apache_hard_restart, read_pid_file): Moved here from the mod_systemd tests")
Fixes: 4abdd20 ("test/modules/arch/linux/: New test suite.")
GitHub: see also apache#733

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@notroj notroj mentioned this pull request Sep 4, 2026
asf-gitbox-commits pushed a commit that referenced this pull request Sep 4, 2026
* test/pyhttpd/log.py (HttpdErrorLog.current_pos, .wait_for): New
  methods, to wait for a line logged after a noted position.

* test/pyhttpd/env.py (HttpdTestEnv._apache_signal_restart): New method:
  run "httpd -k restart" or "-k graceful", which only signal the parent,
  then wait for the MPM to log "resuming normal operations" before
  checking is_live().  Until then the answer may come from the old
  generation, with the old config and about to be killed, which showed
  up as an empty reply in test_core_008_03_repeated under ASan.
  (apache_reload, apache_hard_restart): Use it.

Fixes: 7172909 ("test/modules/core/test_008_restart.py: New test suite for server restart handling.")
GitHub: see also #733

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GitHub: closes #737


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937877 13f79535-47bb-0310-9956-ffa450edef68
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

Successfully merging this pull request may close these issues.

1 participant