Skip to content

Pushing to prod PR#410 onward #439

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

Merged
merged 17 commits into from
Sep 23, 2024
Merged

Pushing to prod PR#410 onward #439

merged 17 commits into from
Sep 23, 2024

Conversation

validbeck
Copy link
Collaborator

nrichers and others added 17 commits September 23, 2024 14:34
* Simplify merge strategy

* Minor workflow tweaks

* Switch to test branches

* Add comment to trigger workflow

* Add comment to trigger workflow

* Add comment to trigger workflow

* Switch to squash merge

* Add comment to trigger workflow

* Remove comment to trigger workflow

* Remove comment to trigger workflow

* Remove comment to trigger workflow

* Remove comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Try --ff strategy

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Revert to --no-ff strategy

* Try reset --hard

* Switch to --merge for PRs

* Switch back to merge --no-ff

* Try merge --ff again

* Add test comment to trigger workflow

* Switch back to merge --no-ff

* Add test comment to trigger workflow

* Switch back to squash merging for PRs

* Add test comment to trigger workflow

* Remove test comments

* Revert to --merge for PRs

* Testing PR#373 - push to branch from local

* Add comment to trigger workflow

* Add comment to trigger workflow

* Add comment to trigger workflow

* Switch to squash merge

* Add comment to trigger workflow

* Remove comment to trigger workflow

* Remove comment to trigger workflow

* Remove comment to trigger workflow

* Remove comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Switch to --merge for PRs

* Add test comment to trigger workflow

* Add test comment to trigger workflow

* Switch back to squash merging for PRs

* Add test comment to trigger workflow

* Remove test comments

* Revert to --merge for PRs

* Undo test changes

* Undo test comment

---------

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>
* Added a .screenshot CSS class

* Sample image

* Changed class for About -releases

* Changed class for Get Started & edited images to be uniform

* Changed class for guides/configuration

* Changed class for guides/model-workflows

* Changed class for guides/model-inventory

* Changed class for guides/model-documentation

* Changed class for guides/model-validation

* Changed class for guides/monitoring

* Changed class for developer/

* Changed class for releases/ 1st pass

* Cropped images for 2024-may-22 -1 gif

* Reverting changes for a gif to crop again

* Cropped images for releases 2nd pass

* Cropped images for releases 3rd  pass

* Cropped images for releases 4th pass

* More tweaks

* Videos styling

* Tweaks to JH quickstart

* More cropping

* Applied class to training

* Annotated screenshots in guides/
* Preview of Generate with AI docs sections

* Release notes draft

* Image edits

* Editing release

* Release notes done

* Final tweaks + new gif

* Oops I lied

* anchor links
@validbeck validbeck added the internal Not to be externalized in the release notes label Sep 23, 2024
@validbeck validbeck self-assigned this Sep 23, 2024
Copy link
Contributor

A PR preview is available: Preview URL

@validbeck validbeck merged commit 4e4626b into prod Sep 23, 2024
4 checks passed
@validbeck
Copy link
Collaborator Author

@nrichers No merge conflicts this time but the history between prod & staging still retains changes from previous to merge: prod...staging

Is this working as intended?

@nrichers
Copy link
Collaborator

@nrichers No merge conflicts this time but the history between prod & staging still retains changes from previous to merge: prod...staging

Is this working as intended?

How did you merge your previous PR into prod? If you squash merged, I think this might be working as designed. The commits from the previous PR would have been squashed down, leaving only a single commit.

Note that nowhere in our release process do we require you to compare branches to make sure that commits that were merged into main and staging are also present in the PR to merge into prod. I know this sounds counterintuitive, but trying to make comparing git histories part of the release process is not the way to go.

If you really are curious, I would recommend experimenting — it's good to learn more about how git merges work, but I would create another prod-test branch and try out the different options that are available:

image

@validbeck
Copy link
Collaborator Author

If you squash merged, I think this might be working as designed.

Ah yes, that's what I did. No squash would fix this then? I will try that next time and see what happens. Just want to make sure I understand what's happening under the hood.

@nrichers
Copy link
Collaborator

nrichers commented Sep 24, 2024

Ah yes, that's what I did. No squash would fix this then? I will try that next time and see what happens. Just want to make sure I understand what's happening under the hood.

"Fix" would imply something is broken — it isn't. You CAN squash merge but it will behave differently than if you created, say, a merge commit. If you squash, the next time you go to merge, GitHub will look at the commit history in staging and prod and see that there are commit SHAs in staging that aren't enumerated in prod, so it's going to add them to the list for reference. It has no effect on the changes that get merged in, though, you're still safely merging one branch into another.

Note also that if you change the merge method for one PR in your browser, you might have to remember change it back for the next PR, or you're going to add merge commits to our history in main. Again, not something that needs to be fixed, just something to remember.

For reference, we use --merge to create a merge commit whenever we merge main into staging. I did this to preserve the commit history, but if the histories end up becoming an ongoing issue, I might suggest we squash merge into staging and sidestep the issue altogether. You can always run a git diff on branches instead if you want to know if there are file differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Not to be externalized in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants