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

After pushing, wait for MRs to stabilize #35

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

dancysoft
Copy link
Collaborator

@dancysoft dancysoft commented Aug 29, 2023

By stabililze we mean that the "changes_count" field of the MR has a value of "1". This ensures that by the time the "git lab" command terminates, MRs should be fully up-to-date.

Note that this approach will have to be reevaluated if #16 is implemented (which would allow multiple commits to end up in a single MR).

Also:
unit_tests/merge_request_test.py:
MergeRequestTest:
Removed WAIT_TIME_BEFORE_VALIDATE, etc since create_merge_requests()
now waits for the desired state before returning.

Copy link
Owner

@yaoyuannnn yaoyuannnn left a comment

Choose a reason for hiding this comment

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

Thanks! With this, now you can remove the waiting in the tests here and here.

By stabililze we mean that the "changes_count" field of the MR has a
value of "1".  This ensures that by the time the "git lab" command
terminates, MRs should be fully up-to-date.

Note that this approach will have to be reevaluated if #16 is
implemented (which would allow multiple commits to end up in a single
MR).

Also:
 unit_tests/merge_request_test.py:
  MergeRequestTest:
   Removed WAIT_TIME_BEFORE_VALIDATE, etc since create_merge_requests()
   now waits for the desired state before returning.

Change-Id: Id20d9feb27076afe0603bee334badc815e5528a9
@dancysoft dancysoft force-pushed the review/dancy/wait-for-stable branch from 7ee3c16 to 3ccdfea Compare August 30, 2023 00:00
@dancysoft
Copy link
Collaborator Author

Thanks! With this, now you can remove the waiting in the tests here and here.

Done.

@dancysoft dancysoft merged commit 3714f22 into main Aug 30, 2023
@dancysoft dancysoft deleted the review/dancy/wait-for-stable branch August 30, 2023 15:23
dancysoft pushed a commit that referenced this pull request Aug 30, 2023
Followup to #35

Change-Id: I209472650081fc3b32181af41d9ddc30c344adb5
dancysoft pushed a commit that referenced this pull request Aug 30, 2023
Followup to #35

Change-Id: I209472650081fc3b32181af41d9ddc30c344adb5
dancysoft pushed a commit that referenced this pull request Aug 30, 2023
Followup to #35

Change-Id: I209472650081fc3b32181af41d9ddc30c344adb5
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