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

backup-manager mysql db restore test failure #4885

Open
rshewitt opened this issue Sep 12, 2024 · 0 comments
Open

backup-manager mysql db restore test failure #4885

rshewitt opened this issue Sep 12, 2024 · 0 comments
Labels
bug Software defect or bug O&M Operations and maintenance tasks for the Data.gov platform

Comments

@rshewitt
Copy link
Contributor

rshewitt commented Sep 12, 2024

Upgrading the alpine image from 3.14 to 3.20 in the backup-manager app installs mysql-client as MariaDB Ver 15.1 Distrib 10.11.8-MariaDB instead of Ver 14.14 Distrib 5.7.44, for Linux (x86_64). This causes the restore mysql test to fail (failing assertion).

 ✗ mysql backup and restore
   (from function `assert_success' in file test/test_helper/bats-assert/src/assert_success.bash, line 42,
    in test file test/test_mysql.bats, line 31)
     `assert_success' failed
   {
       "Location": "/datastore-backup-test"
   }
   
   -- command failed --
   status : 1
   output (6 lines):
     restoring application-mysql-db (mysql) from /mysql-backup.sql.gz...
     ERROR at line 1: Unknown command '\-'.
     
     real       0m0.640s
     user       0m0.622s
     sys        0m0.093s
   --
   
   delete: s3://datastore-backup-test/mysql-backup.sql.gz
   remove_bucket: datastore-backup-test

Background

  • related to #4880
  • alpine 3.20 installs 16.x pg client which is compatible with 15.x pg server

How to reproduce

  1. Change the alpine version from 3.14 to 3.20 in the app dockerfile
  2. run tests

Expected behavior

test pass

Actual behavior

test fail

Links

[Notes or a checklist reflecting our understanding of the selected approach]

@rshewitt rshewitt added bug Software defect or bug O&M Operations and maintenance tasks for the Data.gov platform labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software defect or bug O&M Operations and maintenance tasks for the Data.gov platform
Projects
Status: 🧊 Icebox
Development

No branches or pull requests

1 participant