Skip to content

Cleanup orphaned managed git repos in deploy tests#8984

Open
k-anshul wants to merge 3 commits intomainfrom
cleanup_repos
Open

Cleanup orphaned managed git repos in deploy tests#8984
k-anshul wants to merge 3 commits intomainfrom
cleanup_repos

Conversation

@k-anshul
Copy link
Member

@k-anshul k-anshul commented Mar 6, 2026

The deployments tests do not delete managed repos. The repos are currently deleted via a background worker only after an inactive period of 7 days.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@k-anshul k-anshul self-assigned this Mar 6, 2026
- Avoid short utility functions that are only used once; it is usually more readable to inline these in their parent function.
- Avoid variables that only serve as aliases unless there's a large readability improvement (i.e. the expression is very long and used several times); for example, instead of `db := table.Database`, just reference `table.Database` directly.
- Use the standard library `errors` (not `github.com/pkg/errors`).
- Prefer `require.NoError(...)` instead of `panic` in tests.
Copy link
Member Author

@k-anshul k-anshul Mar 6, 2026

Choose a reason for hiding this comment

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

I often see it using panic in utility functions.

@k-anshul k-anshul requested a review from begelundmuller March 6, 2026 17:07
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.

1 participant