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

Fix MySQL and PostgreSQL GitHub Actions #3375

Closed
wants to merge 6 commits into from

Conversation

aaronskiba
Copy link
Contributor

@aaronskiba aaronskiba commented Jan 31, 2024

Fixes #3347

Changes proposed in this PR:

  • Replace webdrivers gem with selenium-webdriver gem (https://github.com/titusfortner/webdrivers states "If you can update to the latest version of Selenium (4.11+), please do so and stop requiring this gem.")
  • Disable rack-attack from throttling "/users/sign_in" path on Rails test environment
  • Address Faker deprecation warning NOTE: Faker::Internet.safe_email is deprecated; use email instead. It will be removed on or after 2023-10. (More here: Generate safe email and domain_name by default (RFC 2606) faker-ruby/faker#2733)
  • Small changes to enable existing tests to pass (here: a5710ad)
  • Fix mysql.yml and postgres.yml workflows by removing duplicate node-version: statements

martaribeiro and others added 6 commits October 16, 2023 17:13
According to https://github.com/titusfortner/webdrivers:
"If you can update to the latest version of Selenium (4.11+), please do so and stop requiring this gem."
Without this modification, the selenium tests often trigger a 429 / Too Many Requests error. (Perhaps this should be applied to "/users/password" as well?)
Prior to this commit, the following deprecation warning was appearing in the terminal:
NOTE: Faker::Internet.safe_email is deprecated; use email instead. It will be removed on or after 2023-10.

More here: faker-ruby/faker#2733
Prior to this commit, the GitHub Actions associated with these files were failing with the message, "Invalid workflow file
The workflow is not valid. .github/workflows/mysql.yml (Line: X, Col: Y): 'node-version' is already defined"
@aaronskiba aaronskiba marked this pull request as ready for review January 31, 2024 19:17
@aaronskiba aaronskiba changed the title Test Fix MySQL and PostgreSQL GitHub Actions Jan 31, 2024
@johnpinto1
Copy link
Contributor

@aaronskiba looks good as it clearly gets rid of breaking Github actions. Not sure why Marta's commits included. Might be better to pull code from development again and add your changes.

@aaronskiba aaronskiba closed this Feb 1, 2024
@aaronskiba
Copy link
Contributor Author

@aaronskiba looks good as it clearly gets rid of breaking Github actions. Not sure why Marta's commits included. Might be better to pull code from development again and add your changes.

Thanks. My bad, I branched off main. The PR can now be found here: #3376

@aaronskiba aaronskiba deleted the aaron/issues/fix-rspec-tests branch February 1, 2024 17:26
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.

There are two entries for node-version in the mysql and postgres workflows
3 participants