-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix(phpmyadmin): Add step to wait for PhpMyAdmin readiness. #1809
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
4423c33
to
9097297
Compare
Update: upon an offline discussion with Sarosh, we agreed to create a status/healthcheck endpoint in the phpMyAdmin itself, which will allow us to detect readiness in a cleaner way. |
d3defb4
to
67c8b89
Compare
c42f28d
to
6cb420b
Compare
Also remane LB_DELAY -> PROCESSING
a0047d1
to
746d705
Compare
Quality Gate failedFailed conditions |
const resp = await fetch( url, { | ||
method: 'GET', | ||
redirect: 'manual', | ||
agent: agent ?? undefined, | ||
} ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add some cache-ignoring/cache-busting headers/cookies here? Or switch to POST
here? It will at least eliminate the possibility that it's not the cache that's causing issues.
Description
After spinning up the necessary pod to run PhpMyAdmin, we have to wait for the LB to be propagated, so that the requests to the PhpMyAdmin link are served the by PhpMyAdmin pod. In this PR, we are adding a step to wait to see the LB routing is happening before we generate an access.
Pull request checklist
Steps to Test
npm run build
node ./dist/bin/vip db phpmyadmin @<app>.<env>
. This should be run on an environment for which PMA is not enabled yet.