Skip to content

TO-51: assign reviewers to environments#601

Open
almeidaraul wants to merge 3 commits intoTO-51/frontend-supports-reviewers-in-environmentsfrom
TO-51/assign-reviewers-to-environments
Open

TO-51: assign reviewers to environments#601
almeidaraul wants to merge 3 commits intoTO-51/frontend-supports-reviewers-in-environmentsfrom
TO-51/assign-reviewers-to-environments

Conversation

@almeidaraul
Copy link
Contributor

@almeidaraul almeidaraul commented Feb 27, 2026

Assign reviewers to environments when assigning them to artefacts

@almeidaraul almeidaraul marked this pull request as ready for review March 13, 2026 16:31
@almeidaraul almeidaraul requested a review from Copilot March 13, 2026 16:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the test-execution “needs_assignment” flow so that, when an artefact is assigned multiple reviewers, each environment review for that artefact also gets assigned a reviewer.

Changes:

  • Update reviewer-assignment logic to propagate reviewer assignment onto ArtefactBuildEnvironmentReview.reviewers when multiple artefact reviewers are assigned.
  • Add controller tests covering (a) no env-review reviewer assignment for “small” artefacts and (b) env-review reviewer assignment across many environments.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
backend/test_observer/controllers/test_executions/start_test.py Assign a reviewer to each environment review when multiple artefact reviewers are assigned.
backend/tests/controllers/test_executions/test_start_test.py Add tests for env-review reviewer assignment behavior for small vs large artefacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 100 to +104
expected_number_of_reviewers = (environment_count + 50 - 1) // 50

if users:
self.artefact.reviewers = random.sample(users, min(expected_number_of_reviewers, len(users)))
if expected_number_of_reviewers > 1:
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