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

MNT Output more info for debugging failures #105

Merged

Conversation

GuySartorelli
Copy link
Member

There's a few things that could be causing the mariadb failure, such as missing PHP mods, misconfigured ini, breaking changes in mariadb if that updated, etc.

This PR gives a little more info about what's installed in CI to help rule out possibilities.

Issue

cat << EOF > .env
SS_DATABASE_CLASS="SQLite3Database"
SS_DATABASE_USERNAME="root"
SS_DATABASE_PASSWORD=""
SS_SQLITE_DATABASE_PATH=":memory:"
EOF
elif [[ "${{ matrix.db }}" =~ mariadb ]]; then
echo "mariadb version":
mysql --version
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should be mariadb --version, isn't it?

Copy link
Member Author

@GuySartorelli GuySartorelli Feb 21, 2024

Choose a reason for hiding this comment

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

Oops not correct, but not for the reason you're thinking. The mysql cli will work fine here.
I need to tell it which port to look at (same for the mysql databases) so it gives us the correct version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@GuySartorelli GuySartorelli force-pushed the pulls/1.6/more-debug-output branch from 98bebe3 to 65fed72 Compare February 21, 2024 23:26
@sabina-talipova sabina-talipova merged commit dd462e7 into silverstripe:1 Feb 21, 2024
4 checks passed
@sabina-talipova sabina-talipova deleted the pulls/1.6/more-debug-output branch February 21, 2024 23:32
@emteknetnz emteknetnz mentioned this pull request Apr 10, 2024
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.

2 participants