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

Avoid using --single-branch in tests #155

Merged
merged 4 commits into from
Aug 11, 2022
Merged

Conversation

rudymatela
Copy link

@rudymatela rudymatela commented Aug 11, 2022

Avoid using --single-branch in tests by making sure that the local repository is cloned at the right time.

The --single-branch argument does a bit more than just ordering git to clone only the given branch, but actually changes the way the repository is tracked so that only the given (master) branch is tracked. This makes it so that tests behave differently from the actual running app, notably when dealing with parallel and speculative builds as in #77.

This change makes it so that tests and running code are more similar.

This is needed for #137.

... by making sure that the local repository is cloned at the right time.

The --single-branch argument does a bit more than just ordering git to clone
only the given branch, but actually changes the way the repository is tracked
so that only the given (master) branch is tracked.  This makes it so that tests
behave differently from the actual running app, notably when dealing with
parallel and speculative builds as in #77.

This change makes it so that tests and running code are more similar.
@rudymatela rudymatela self-assigned this Aug 11, 2022
@rudymatela rudymatela added the testing Testing label Aug 11, 2022
This was referenced Aug 11, 2022
Copy link

@marcin-rzeznicki marcin-rzeznicki left a comment

Choose a reason for hiding this comment

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

I added a couple of questions. Some things weren't that clear to me. Other than that, I won't be standing in the way of progress 😄

tests/EventLoopSpec.hs Outdated Show resolved Hide resolved
tests/EventLoopSpec.hs Show resolved Hide resolved
@rudymatela rudymatela removed the request for review from ReinierMaas August 11, 2022 12:47
@rudymatela
Copy link
Author

@marcin-rzeznicki Thanks for the review.

I believe to have addressed your comments (with changes in the comments). Can you please review again? 😁

Copy link

@marcin-rzeznicki marcin-rzeznicki left a comment

Choose a reason for hiding this comment

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

Perfect! LGTM

tests/EventLoopSpec.hs Show resolved Hide resolved
tests/EventLoopSpec.hs Outdated Show resolved Hide resolved
@rudymatela
Copy link
Author

@marcin-rzeznicki Awesome. Thanks again for the review.

@OpsBotPrime merge

@OpsBotPrime
Copy link

Pull request approved for merge by @rudymatela, rebasing now.

Approved-by: rudymatela
Auto-deploy: false
@OpsBotPrime
Copy link

Rebased as 4873ebe, waiting for CI …

@OpsBotPrime
Copy link

CI job started.

@OpsBotPrime OpsBotPrime merged commit 4873ebe into master Aug 11, 2022
@OpsBotPrime OpsBotPrime deleted the test/avoid---single-branch branch August 11, 2022 13:23
@rudymatela rudymatela added OKR Objectives and Key Results train Involves Merge Trains labels Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OKR Objectives and Key Results testing Testing train Involves Merge Trains
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants