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

Extend test asset dump command #9022

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Conversation

zhiltsov-max
Copy link
Contributor

@zhiltsov-max zhiltsov-max commented Jan 30, 2025

Motivation and context

Follow up for changes in #9008

In my case launching the updated command actually produces a slightly smaller file, but it contains all the same data.

  • Extended test asset dumping command to exclude caches

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@zhiltsov-max zhiltsov-max requested a review from SpecLad January 30, 2025 12:27
@@ -88,7 +88,7 @@ To backup DB and data volume, please use commands below.

```console
docker exec test_cvat_server_1 python manage.py dumpdata --indent 2 --natural-foreign --exclude=auth.permission --exclude=contenttypes --exclude=django_rq > shared/assets/cvat_db/data.json
docker exec test_cvat_server_1 tar -cjv /home/django/data > shared/assets/cvat_db/cvat_data.tar.bz2
docker exec test_cvat_server_1 tar --exclude "/home/django/data/cache" --exclude "events.db" --exclude "logstash.db" -cjv /home/django/data > shared/assets/cvat_db/cvat_data.tar.bz2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the latter two excludes shouldn't be necessary post-#9015, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, seems to be true.

@zhiltsov-max zhiltsov-max merged commit 3bc92da into develop Jan 30, 2025
15 checks passed
@zhiltsov-max zhiltsov-max deleted the zm/update-test-assets-dumping branch January 30, 2025 13:59
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.

2 participants