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

Don't purge latest released version #7324

Closed
arnaudsjs opened this issue Mar 8, 2024 · 0 comments
Closed

Don't purge latest released version #7324

arnaudsjs opened this issue Mar 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@arnaudsjs
Copy link
Contributor

The OrchestrationService._purge_versions() method ensures that we only keep X configuration model versions, where X is determined by the value of the available_versions_to_keep environment setting. However, this method doesn't take into account that it should never remove the latest released version.

@arnaudsjs arnaudsjs added the bug Something isn't working label Mar 8, 2024
@wouterdb wouterdb assigned wouterdb and unassigned wouterdb Mar 19, 2024
@arnaudsjs arnaudsjs self-assigned this Mar 20, 2024
inmantaci pushed a commit that referenced this issue Mar 22, 2024
…ould be removed by the cleanup job. (Issue #7324, PR #7412)

# Description

Fix bug where the latest released version of the configurationmodel could be removed by the cleanup job.

closes #7324

# Self Check:

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
- [x] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] ~~If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
inmantaci pushed a commit that referenced this issue Mar 22, 2024
…ould be removed by the cleanup job. (Issue #7324, PR #7412)

Pull request opened by the merge tool on behalf of #7412
arnaudsjs added a commit that referenced this issue Mar 22, 2024
…ould be removed by the cleanup job. (Issue #7324, PR #7412)

Fix bug where the latest released version of the configurationmodel could be removed by the cleanup job.

closes #7324

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
- [x] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] ~~If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
inmantaci pushed a commit that referenced this issue Mar 22, 2024
…ould be removed by the cleanup job. (Issue #7324, PR #7426)

# Description

**Same PR as #7412 but applied on the iso6 branch due to a merge conflict**

Fix bug where the latest released version of the configurationmodel could be removed by the cleanup job.

closes #7324

# Self Check:

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
- [x] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] ~~If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants