Skip to content

Conversation

@strangiato
Copy link

@strangiato strangiato commented May 3, 2021

Resolves #148

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@phracek
Copy link
Member

phracek commented Feb 10, 2022

[test-all]

@phracek
Copy link
Member

phracek commented Feb 23, 2022

Let's test Testing Farm as GitHub Action

[test-all]

"exec": {
"command": [ "/bin/sh", "-i", "-c",
"MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping"]
"MYSQL_PWD=\"$MYSQL_PASSWORD\" && mysqladmin -u $MYSQL_USER ping"]
Copy link
Member

Choose a reason for hiding this comment

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

I am not an expert in mariadb, but what about to use export MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping

Copy link
Author

Choose a reason for hiding this comment

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

Hey @phracek it has been a while since I originally raised this issue so I don't remember all of the details but the problem is that these are two commands without any delineator between them.

The export changes the scope of the variable but it is still two commands that need some sort of delineator.

I believe doing a command instead of && would also resolve the issue.

Copy link
Member

Choose a reason for hiding this comment

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

I am sorry, but as far as I know BASH. the row
"MYSQL_PWD=\"$MYSQL_PASSWORD\" mysqladmin -u $MYSQL_USER ping" means that mysqladmin consumes variable MYSQL_PWD

but
"MYSQL_PWD=\"$MYSQL_PASSWORD\" && mysqladmin -u $MYSQL_USER ping" is used for two bashes.
But may be I am wrong.

@hhorak Am I right?

@phracek
Copy link
Member

phracek commented Sep 9, 2022

[test-all]

@github-actions
Copy link

github-actions bot commented Nov 5, 2024

Pull Request validation

Failed

🔴 Failed or pending statuses:

  • Testing Farm - Fedora - 10.3[error]
  • Testing Farm - RHEL8 - 10.3[error]

Success

🟢 Review - Reviewed by a member
🟢 Approval - Changes were approved

Copy link
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fix.

@phracek
Copy link
Member

phracek commented Feb 28, 2025

[test]

@github-actions
Copy link

github-actions bot commented Feb 28, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - 10.3Fedora-latestx86_64❌ error23.06.2025 08:04:017min 31stest pipeline
RHEL8 - 10.3RHEL-8.10.0-Nightlyx86_64❌ error23.06.2025 08:03:5916min 42stest pipeline

@phracek
Copy link
Member

phracek commented Jun 23, 2025

[test-all]

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.

Example Template Liveness/Readiness Probe Errors

3 participants