Skip to content

Conversation

agnes512
Copy link
Contributor

Signed-off-by: Agnes Lin [email protected]

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

@frbuceta frbuceta mentioned this pull request Feb 18, 2021
3 tasks
@agnes512 agnes512 force-pushed the gh-actions branch 3 times, most recently from 16547a3 to 7812e62 Compare February 20, 2021 00:19
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

Great initiative 👏🏻

I left few comments to consider, hoping to help you troubleshoot the failing CI.

test/init.js Outdated
password: process.env.MYSQL_PASSWORD || config.password,
database: process.env.MYSQL_DATABASE || 'testdb',
username: process.env.MYSQL_USER || config.username || 'user',
password: process.env.MYSQL_PASSWORD || config.password || 'pass',
Copy link
Member

Choose a reason for hiding this comment

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

It makes me wonder, are cis-jenkins builds failing because the database on cis-jenkins is using the old values (user "test", password "test") and not providing any ENV variables to specify those values explicitly?

What if we reverted changes in this file, would it fix cis-jenkins builds while keeping local dev setup and GH Actions CI working too?

test/init.js Outdated
global.getConfig = function(options) {
const dbConf = {
host: process.env.MYSQL_HOST || config.host || 'localhost',
host: process.env.MYSQL_HOST || config.host || '127.0.0.1',
Copy link
Member

Choose a reason for hiding this comment

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

I think forcing the IPv4 localhost is a good idea and we can land this change independently on the rest 👍

Comment on lines +20 to +23
MYSQL_USER: user
MYSQL_PASSWORD: pass
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can try to use the same values we have in place now?

Suggested change
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_USER: test
MYSQL_PASSWORD: test

@agnes512
Copy link
Contributor Author

Thanks @bajtos ! Jenkins failed might because I was trying to get GH actions to work. I remember that I couldn't get the right version of MySQL running on Github actions. The default is MySQL 8 and I couldn't get MySQL 5.7 to work properly, and that was frustrating 😂

@agnes512 agnes512 force-pushed the gh-actions branch 3 times, most recently from 8e4ee10 to 5b20dc1 Compare April 11, 2021 04:28
Agnes Lin added 2 commits April 11, 2021 00:58
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Agnes Lin added 12 commits April 11, 2021 21:57
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Agnes Lin added 24 commits April 11, 2021 22:45
@stale
Copy link

stale bot commented Jul 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 9, 2021
@agnes512
Copy link
Contributor Author

See #448

@agnes512 agnes512 closed this Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants