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

Mediawiki install reports successful but HHVM failed #63

Open
LPettey-Arm opened this issue Oct 10, 2024 · 1 comment
Open

Mediawiki install reports successful but HHVM failed #63

LPettey-Arm opened this issue Oct 10, 2024 · 1 comment

Comments

@LPettey-Arm
Copy link

LPettey-Arm commented Oct 10, 2024

Mediawiki is failing the install because HHVM is dumping a seg fault when running Composer during the install process.

The HHVM seg fault is probably on my side.

The Mediawiki issue is that even after the seg fault, the benchpress_cli reports Mediawiki as installed and allows an attempt to run. If HHVM fails during the install step, Benchpress should not report MW as installed and should not allow a run attempt.

Composer (version 2.2.24) successfully installed to: /root/DCPerf/oss-performance/composer.phar
Use it: php composer.phar

+ yes
+ /usr/local/hphpi/legacy/bin/hhvm composer.phar install
Core dumped: Segmentation fault
Stack trace in /tmp/stacktrace.4391.log
./packages/mediawiki/install_oss_performance_mediawiki.sh: line 115:  4390 Broken pipe             yes
      4391 Segmentation fault      (core dumped) | $HHVM composer.phar install
+ echo 1
+ sudo tee /proc/sys/net/ipv4/tcp_tw_reuse
1
+ sudo cp /root/DCPerf/packages/mediawiki/my.cnf /etc/my.cnf
+ '[' centos = ubuntu ']'
+ sudo systemctl restart mariadb
[root@2pgrace-112 DCPerf]# ./benchpress_cli.py run oss_performance_mediawiki_mlp
Will run 1 job(s)
Running "oss_performance_mediawiki_mlp": Tuned +MLP run for oss_performance_mediawiki
Job execution command: ['./packages/mediawiki/run.sh', '-r/usr/local/hphpi/legacy/bin/hhvm', '-nnginx', '-ssiege', '-R0', '-c0', '--', '--mediawiki-mlp', '--siege-duration=10M', '--siege-timeout=11m', '--run-as-root', '--i-am-not-benchmarking']
stdout:
	1
	Core dumped: Segmentation fault
	Stack trace in /tmp/stacktrace.4826.log
stderr:
	./packages/mediawiki/run.sh: line 72:  4826 Segmentation fault      (core dumped) HHVM_DISABLE_NUMA=1 "$_hhvm_path" -vEval.ProfileHWEnable=0 perf.php --nginx "$_nginx_path" --siege "$_siege_path" --hhvm "$_hhvm_path" ${_db_host} --db-username=root --db-password=password --memcached=/usr/local/memcached/bin/memcached --memcached-threads "$MEMCACHE_THREADS" --client-threads "$CLIENT_THREADS" --server-threads "$SERVER_THREADS" --scale-out "${HHVM_SERVERS}" --delay-check-health 30 --hhvm-extra-arguments='-vEval.ProfileHWEnable=0' ${extra_args}
Failed to parse stdout as JSON:
Failed to parse stderr as JSON:
Failed to parse results, this might mean the benchmark failed
stdout:
1
Core dumped: Segmentation fault
Stack trace in /tmp/stacktrace.4826.log

stderr:
./packages/mediawiki/run.sh: line 72:  4826 Segmentation fault      (core dumped) HHVM_DISABLE_NUMA=1 "$_hhvm_path" -vEval.ProfileHWEnable=0 perf.php --nginx "$_nginx_path" --siege "$_siege_path" --hhvm "$_hhvm_path" ${_db_host} --db-username=root --db-password=password --memcached=/usr/local/memcached/bin/memcached --memcached-threads "$MEMCACHE_THREADS" --client-threads "$CLIENT_THREADS" --server-threads "$SERVER_THREADS" --scale-out "${HHVM_SERVERS}" --delay-check-health 30 --hhvm-extra-arguments='-vEval.ProfileHWEnable=0' ${extra_args}

Traceback (most recent call last):
  File "/root/DCPerf/./benchpress_cli.py", line 16, in <module>
    main()
  File "/root/DCPerf/benchpress/cli/main.py", line 354, in main
    args.command.run(args, bp.jobs)
  File "/root/DCPerf/benchpress/cli/commands/run.py", line 178, in run
    metrics = job.run(args.role, role_in)
  File "/root/DCPerf/benchpress/lib/job.py", line 275, in run
    return self.parser.parse(
  File "/root/DCPerf/benchpress/plugins/parsers/mediawiki.py", line 16, in parse
    metrics = super().parse(stdout, stderr, returncode)
  File "/root/DCPerf/benchpress/plugins/parsers/generic.py", line 50, in parse
    raise ValueError(msg)
ValueError: Couldn't not find or parse JSON from either stdout or stderr`

```
@excelle08
Copy link
Contributor

2ad3809 will let installation fail if something in the script fails. We'll push another feature improvement to disallow running un-installed benchmark soon.

facebook-github-bot pushed a commit that referenced this issue Dec 10, 2024
Summary:
- Background: #63

- Objective: currently when we run ./benchpress_cli.py run <benchmark_job_name>, it will attempt to run the benchmark
even if it has not been successfully installed. We fix it such that the run command will catch uninstalled benchmark and print out
error message saying the benchmark has not been installed.

Reviewed By: YifanYuan3

Differential Revision: D67041618

fbshipit-source-id: c0345f68f77892d3bca302a05d6522a5894cdd41
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