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

Invert the load order of the merged branches #208

Merged
merged 2 commits into from
Sep 9, 2020
Merged

Invert the load order of the merged branches #208

merged 2 commits into from
Sep 9, 2020

Conversation

fred3m
Copy link
Collaborator

@fred3m fred3m commented Sep 3, 2020

One of the datasets needed to make the regression testing docs work is the list of merged branches, in order. This is stored in a DynamoDB table with the name of the branch and the index order acting as the unique keys for the table. The problem is by default git returns the branches in order with the newest first, which causes problems when the table updates on a new merge to master.

This PR fixes the problem by inverting the order of the merged branches on write (in scarlet_extensions) and requires a simple change here to invert the order again so that we correctly use the "last N commits" in the correct order.

fred3m added 2 commits September 3, 2020 16:03
The current master will fail if the scarlet branch also does not
exist in scarlet_extensions. This commit adds the quiet `-q`
parameter to ignore the error generated if the branch does not exist.
@fred3m
Copy link
Collaborator Author

fred3m commented Sep 3, 2020

Build passes: https://travis-ci.org/github/pmelchior/scarlet/builds/723922001

No rush on this, but this ticket should get merged to master before any other branches, otherwise they will mess up the regression docs again.

@fred3m fred3m merged commit b42ad4c into master Sep 9, 2020
@fred3m fred3m deleted the merge_bug branch September 9, 2020 19:13
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.

None yet

2 participants