Presence of a user-defined .sqliterc file can cause augur merge to fail with uncaught exceptions.
Expected behavior
Functionality of augur merge should not be affected by user-defined .sqliterc files.
How to reproduce
Add this to a .sqliterc file
.mode column
Run any valid augur merge command, for example cram tests/functional/merge/cram/merge.t
Observe error
Traceback (most recent call last):
File "augur/tests/functional/merge/cram/../../../../augur/__init__.py", line 70, in run
return args.__command__.run(args)
File "augur/tests/functional/merge/cram/../../../../augur/merge.py", line 181, in run
assert m.columns == (table_columns := sqlite3_table_columns(db_path, m.table_name)), \
AssertionError: ['strain', 'a', 'b', 'c'] == ['name ', '------', 'strain', 'a ', 'b ', 'c ']
An error occurred (see above) that has not been properly handled by Augur.
To report this, please open a new issue including the original command and the error above:
<https://github.com/nextstrain/augur/issues/new/choose>
Possible solutions
Ignore .sqliterc files entirely and fall back to SQLite3 defaults.
Set explicit config (e.g. .mode list) for commands that could be affected.
Current Behavior
Presence of a user-defined
.sqliterc
file can causeaugur merge
to fail with uncaught exceptions.Expected behavior
Functionality of
augur merge
should not be affected by user-defined.sqliterc
files.How to reproduce
Add this to a
.sqliterc
fileRun any valid
augur merge
command, for examplecram tests/functional/merge/cram/merge.t
Observe error
Possible solutions
.sqliterc
files entirely and fall back to SQLite3 defaults..mode list
) for commands that could be affected.Your environment: if running Nextstrain locally
auspice 2.7.0
): augur 25.3.0