Skip to content

[fix] Fix the database management options of 'CodeChecker server' - #5215

Open
barnabasdomozi wants to merge 1 commit into
Ericsson:masterfrom
barnabasdomozi:fix_known_issues_server_db_options
Open

barnabasdomozi wants to merge 1 commit into
Ericsson:masterfrom
barnabasdomozi:fix_known_issues_server_db_options

Conversation

@barnabasdomozi

Copy link
Copy Markdown
Collaborator

'--db-status' and '--db-upgrade-schema' were silently ignored and a normal server was started instead. server_init_start() passed 'context.migration_root', which no longer exists (it was renamed to 'run_migration_root'), and the resulting AttributeError was swallowed by the 'except AttributeError' meant for a missing command-line argument.

  • '--db-status' now prints the status of the product databases and exits (exit code 1 if the given product does not exist).
  • '--db-upgrade-schema' is removed. Product databases are upgraded when the server starts, after asking the user.
  • '--db-force-upgrade' upgrades the configuration database and all product databases without user interaction, then starts the server. Its help text now says so.

Backward-incompatible: passing '--db-upgrade-schema' is now an argument error.

'--db-status' and '--db-upgrade-schema' were silently ignored and a
normal server was started instead. server_init_start() passed
'context.migration_root', which no longer exists (it was renamed to
'run_migration_root'), and the resulting AttributeError was swallowed by
the 'except AttributeError' meant for a missing command-line argument.

- '--db-status' now prints the status of the product databases and exits
  (exit code 1 if the given product does not exist).
- '--db-upgrade-schema' is removed. Product databases are upgraded when
  the server starts, after asking the user.
- '--db-force-upgrade' upgrades the configuration database and all
  product databases without user interaction, then starts the server.
  Its help text now says so.

Backward-incompatible: passing '--db-upgrade-schema' is now an argument
error.
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.

4 participants