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

Unable to use --clean-team and --keep-months option together #76

Open
arjunvc opened this issue Jan 17, 2024 · 1 comment
Open

Unable to use --clean-team and --keep-months option together #76

arjunvc opened this issue Jan 17, 2024 · 1 comment

Comments

@arjunvc
Copy link

arjunvc commented Jan 17, 2024

testarchiver --dont-require-ssl --clean-team DEV --keep-months 6 --no-keywords --no-keyword-stats --ignore-logs-below INFO --config db_config.json --format robotframework --team DEV --series "12345#$CI_JOB_ID" --metadata Application:ABC grafana_final.xml

`
Parsing: 'grafana_final.xml'
Cleaning archived data by the following parameters:

  • Keeping results archived within 6 months
  • Only cleaning results from team: 'DEV'
    Cleaning test runs from history
    Traceback (most recent call last):
    File "/usr/local/bin/testarchiver", line 8, in
    sys.exit(main())
    File "/usr/local/lib/python3.8/dist-packages/test_archiver/output_parser.py", line 863, in main
    database.run_history_cleaning(connection, config)
    File "/usr/local/lib/python3.8/dist-packages/test_archiver/database.py", line 612, in run_history_cleaning
    connection.delete_history(config.clean_team, config.keep_builds, config.keep_months, config.keep_after,
    File "/usr/local/lib/python3.8/dist-packages/test_archiver/database.py", line 293, in delete_history
    self.delete('test_run', values, where_query='WHERE id IN ({})'.format(ids_query))
    File "/usr/local/lib/python3.8/dist-packages/test_archiver/database.py", line 457, in delete
    self._execute(sql, values)
    File "/usr/local/lib/python3.8/dist-packages/test_archiver/database.py", line 160, in _execute
    cursor.execute(sql, values)
    TypeError: not all arguments converted during string formatting`
@titanzx
Copy link

titanzx commented Jun 12, 2024

I'm facing same issue

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

No branches or pull requests

2 participants