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

Use existing view in the job group test #440

Merged

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Jan 11, 2025

Use existing view in the job group test

Restore a loss that I caused in the original test created by @yashpal2104. Thanks very much to @yashpal2104 for detecting the loss!

@yashpal2104 I'd love to have your review to be sure that I corrected my earlier mistakes.

Expand tests for existing and non-existing views.

Amends #437 to correct mistakes that I made while reviewing that pull request.

Testing done

Confirmed that test pass on my Linux computer.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Restore a loss that I caused in the original test created by @yashpal2104.
Thanks very much to @yashpal2104 for detecting the loss!
@MarkEWaite MarkEWaite requested a review from a team as a code owner January 11, 2025 15:20
@github-actions github-actions bot added the tests Automated test addition or improvement label Jan 11, 2025
MarkEWaite referenced this pull request Jan 11, 2025
Avoid duplicating code that is common between uses.

Use a job group name that is distinct for each test so that the single
JenkinsRule instance does not risk having the tests collide in their
use of the job group.
@yashpal2104
Copy link
Contributor

yashpal2104 commented Jan 11, 2025

Yes, I think the method works about just right. Thank you 😊
Also can you tell me how do I effectively review the changes made by others pulling them locally and then reviewing it or only the maintainers have that authority, because this time I just copy pasted the changes locally and then reviewed it

@MarkEWaite MarkEWaite merged commit 5232cf8 into jenkinsci:master Jan 11, 2025
18 checks passed
@MarkEWaite MarkEWaite deleted the use-distinct-view-strategy-name branch January 11, 2025 16:48
@MarkEWaite
Copy link
Contributor Author

Can you tell me how do I effectively review the changes made by others pulling them locally and then reviewing it or only the maintainers have that authority, because this time I just copy pasted the changes locally and then reviewed it

When I have questions about the code that I'm reviewing, I use the gh command line utility to pull the changes locally and build them. In this case, it would be gh pr checkout 440. Then I can run the tests in my debugger, set breakpoints, and watch the behavior as I make changes.

The gh utility is also helpful for creating pull requests. I use gh pr create --title "My title"

@yashpal2104
Copy link
Contributor

Can you tell me how do I effectively review the changes made by others pulling them locally and then reviewing it or only the maintainers have that authority, because this time I just copy pasted the changes locally and then reviewed it

When I have questions about the code that I'm reviewing, I use the gh command line utility to pull the changes locally and build them. In this case, it would be gh pr checkout 440. Then I can run the tests in my debugger, set breakpoints, and watch the behavior as I make changes.

The gh utility is also helpful for creating pull requests. I use gh pr create --title "My title"

Thank you so much for sharing this knowledge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants