Automattic / vip-cli

The VIP-CLI
https://docs.wpvip.com/vip-cli/
MIT License
59 stars 16 forks source link

fix(dev-env): retry healthcheck only on 502 and 504 status codes #1896

Closed sjinks closed 4 months ago

sjinks commented 4 months ago

Description

Healthcheck fails if the server replies with a 404 error. However, it is possible to (mis)configure WordPress to reply with 404 when its home page is accessed.

This PR sets waitable codes to 502 (Bad gateway) and 504 (Gateway timeout) to avoid false negatives on whether the environment is down.

Pull request checklist

New release checklist

Steps to Test

N/A

github-actions[bot] commented 4 months ago

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud