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

fix: UI Jobs streams are not cleaned up after PR is closed #5359

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joe1981al
Copy link

@joe1981al joe1981al commented Feb 24, 2025

what

  • Update func (p *PullClosedExecutor) CleanUpPull to use the updated definition of `PullInfo

why

  • see related issue
  • this commit updated the definition of PullInfo
  • PullInfo wasn't updated in function used to cleanup job info, so matches were not found in the mapping

tests

  • tested in my local environment with PRs from Azure Devops

references

@joe1981al joe1981al requested review from a team as code owners February 24, 2025 22:46
@joe1981al joe1981al requested review from jamengual, nitrocode and X-Guardian and removed request for a team February 24, 2025 22:46
@dosubot dosubot bot added the bug Something isn't working label Feb 24, 2025
@github-actions github-actions bot added the go Pull requests that update Go code label Feb 24, 2025
joe1981al and others added 2 commits February 24, 2025 23:05
Update `func (p *PullClosedExecutor) CleanUpPull` to use the updated definition of `PullInfo`

Signed-off-by: joe1981al <[email protected]>
Signed-off-by: Joseph McDonald <[email protected]>
Signed-off-by: Joseph McDonald <[email protected]>
Comment on lines +90 to +95
PullNum: pull.Num,
Repo: pull.BaseRepo.Name,
RepoFullName: pull.BaseRepo.FullName,
ProjectName: project.ProjectName,
Path: project.RepoRelDir,
Workspace: project.Workspace,
Copy link
Member

Choose a reason for hiding this comment

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

can you also add unit tests for such changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants