Wait your CI takes 20 minutes? Are you running integration tests too? For us we only run unit and contract tests and then have bugbot run on every push.
Small codebase, it’s like ~800 unit tests and some linters. Functional tests get started by hand because they have to run on specific hardware with serial connections, etc. those still don’t take long.
Merge conflicts also present :) Also I don't know if it's the best practice, but we rebase to keep the history of each change separately. If we merge directly, some commits mingle with others based on commit date.
The goal isn't to not push anything on Friday, the goal is to not deploy anything to prod on Friday. Who tf is not pushing and testing anything in pre-prod for one whole day lol.
Depends on the exact environment. For us we have dev and prod workspace, so pushing to dev should not affect any productipn stuff, if it does, the fault is on someone connecting prod stuff to dev stuff.
Yep. Testing? Doesn’t happen. Reviewing? Doesn’t happen. Designs? Doesn’t happen. Had a team meeting yesterday where we considered standing up a bullshit package to commit literally anything to just to hit this absurd requirement. People are making changes to agent.md and readme files with “revised for clarity” daily. It’s so bad that Ops joke is literally an hourly occurrence. Most PRs are merged within 1-2 minutes.
In fact, a lot of the team actually pushes code they know will break the pipeline because a bugfix means another PR. Management of this team has become a satire come to life.
The normal merge is called a 3-way merge. It compares 3 commits to determine what the new commit will look like: the HEAD of the branch being merged, the HEAD if the branch being merged into, and the common ancestor. The end result is a commit that does not necessarily match either of the two branch heads.
However, if the common ancestor of the feature branch being merged is the HEAD of the branch being merged into, Git does a fast forward merge instead of a 3-way merge. It will simply move the base branch's HEAD to the HEAD of the branch being merged. The base branch will exactly match the feature branch, guaranteed. No questions. No funny business. No side effects. The code you reviewed in the feature branch will be the code after the merge.
Getting back to rebasing. A rebase will move the branch being rebased and all of its commits going back to the common ancestor to the HEAD of the base branch. The rebase process will resolve any conflicts. Then, when you merge, git will do a fast forward merge instead of a 3-way merge.
I have a MR open for over a week now.. Everytime I get it through tests and such, another Mr is faster. And since I only look at it once or twice a day.... We need an automatic rebase function in git.
It wouldn’t be a Git feature, since Git on its own doesn’t really run as a server. But some Git forges do have features to help with this issue.
For example, with Gerrit you don’t merge your own MRs, you merely flag them as ready to merge and then Gerrit automatically batches yours up with other ready-to-merge MRs. If the branches all merge together without conflicts and the CI run passes, the MRs are all merged atomically at the same time.
Or your code gets rolled back from production because it was in the same release as another unrelated change that was bad and wrong and needed to be backed out.
I think this is even describing those automated pipelines. You might need to manually restart them, but you still have ti watch it and wait for it to merge without issue, so mentally you might need to keep it in the back of your mind for a few hours instead of relaxing on a Friday
Been working on a native app pipeline today. 20000 tests across emulators etc, 10gb build artifacts. No TLC for pipeline for a while and now takes 1 hour to run.
Super busy with commits as well. Miss the gap, thats another 1 hour for you
Oh 1 or 2 flaky tests in there as well. 19998 of 20000 tests pass. Fuxk you lol
I feel this on a spiritual level. Merging conflicts always seem to pop up at the worst possible time. Anyone else have a horror story about a merge gone wrong?
I always set up branch protection rules. One of the reasons is to prevent this from happening. No one is pushing code directly to production branch directly on my watch.
This is why we defer testing to the merge queue, no such problems and no dozen test runs for a pr. The savings pay for bigger test runners so we're done testing faster also. Big happy
You guys still do rebase manually? I have been rebasing via agent for several months now and without any problem (it has never done anything wrong). When it has good context about what your feature branch must do (MR description + linked task), when it knows what was merged since last rebase + mechanical diff applying + static analysis / type checks / compilation + automatic tests + automatic pipeline watch after pushed rebase, then there should not be any problem to do this tedious work manually ever again. This is actually one of the few things I don’t mind that agents do reliably instead of me.
241
u/Genkics Oct 16 '26
When you want to go in weekend but Jenkins decide otherwise
101
u/apnorton Oct 16 '26
Just
git push --force, deploy to prod at 4:59pm, and enjoy your weekend.Follow for more tips on how to make your coworkers love you.
49
u/bobdoily Oct 16 '26
Revert there's instead of rebasing to assert dominance!
58
u/InSearchOfTyrael Oct 16 '26
you guys retest things?
5
u/Coredict Oct 17 '26
Aaaand theres a multiple file conflict, you fix them, aaaand some tests fail.
4
u/ldn-ldn Oct 17 '26
Don't rebase, problem solved!
12
u/dontletthestankout Oct 16 '26
Who pushes on a Friday? That's always a bad idea
161
u/AskPositive9792 Oct 16 '26
That's how you punish someone who commits on Friday
14
u/Apprehensive-Lychee2 Oct 16 '26
You guys use Rebase??
9
u/Freestila Oct 17 '26
I have a MR open for over a week now.. Everytime I get it through tests and such, another Mr is faster. And since I only look at it once or twice a day.... We need an automatic rebase function in git.
8
u/Afraid-Atmosphere747 Oct 16 '26
Testing?? Why do you do that when customers can do that.
7
u/RandolphCarter2112 Oct 16 '26
Or your code gets rolled back from production because it was in the same release as another unrelated change that was bad and wrong and needed to be backed out.
3
u/jy3n2 Oct 16 '26
When it's Monday, two PRs were approved and merged but turned out to be incompatible with each other, and now Jenkins is failing everyone:
2
u/Glass-Crafty-9460 Oct 16 '26
That's a monday job
2
u/frikilinux2 Oct 16 '26
And your boss wants it now because it's end of Sprint and metrics get weird if you don't
2
u/FGaBoX_ Oct 16 '26
meme ❌ reality ✅
2
u/The_Mawheel6321 Oct 16 '26
Today in a nutshell
3
u/IAmWeary Oct 16 '26
The best way to rebase is to use merge instead.
3
u/dlm2137 Oct 16 '26
Seriously tho, it seems like merge queues are the solution to this. I’ve been thinking of trying them out, has anyone had a good experience with them?
3
u/nicuramar Oct 16 '26
Why? Don’t people have pipelines that automatically do this in the PR? In my experience there is rarely a need to rebase manually.
2
u/clauEB Oct 16 '26
This is the point of AI
1
u/SableGriis Oct 16 '26
Monday problem now
1
u/Treechcer Oct 16 '26
Just never test it, nor rebate it... Hope the reviewer does it by himself.
1
u/k8s-problem-solved Oct 16 '26
Been working on a native app pipeline today. 20000 tests across emulators etc, 10gb build artifacts. No TLC for pipeline for a while and now takes 1 hour to run.
Super busy with commits as well. Miss the gap, thats another 1 hour for you
Oh 1 or 2 flaky tests in there as well. 19998 of 20000 tests pass. Fuxk you lol
I am making it better
1
u/jolharg Oct 16 '26
Gotta hate it
1
u/MapNo2659 Oct 16 '26
I feel this on a spiritual level. Merging conflicts always seem to pop up at the worst possible time. Anyone else have a horror story about a merge gone wrong?
1
u/DogmaticParadigm87 Oct 16 '26
Somebody always merges a one-line typo fix the second the approval lands. Same person every time, too.
1
u/HRApprovedUsername Oct 16 '26
Why would you rebase? Do people still do that
1
u/a_aniq Oct 16 '26
I always set up branch protection rules. One of the reasons is to prevent this from happening. No one is pushing code directly to production branch directly on my watch.
1
u/NibblesIndexus Oct 16 '26
This is why we defer testing to the merge queue, no such problems and no dozen test runs for a pr. The savings pay for bigger test runners so we're done testing faster also. Big happy
1
u/flakusha Oct 16 '26
maintainingLinearHistoryHuh(?)
1
u/maggos Oct 16 '26
We have a repo where unit tests take 3 hours so people just skip the tests and merge
1
u/Previous-Ant2812 Oct 17 '26
Rebase
1
u/LegitimatePants Oct 17 '26
And due to the rebase, it sees new commits pushed and resets your approvals
1
u/El_RoviSoft Oct 17 '26
life is much easier when you work in a proper monorepo
1
u/PuzzleMeDo Oct 17 '26
Your PRs are rebased. Mine are based. We are not the same.
1
u/mobileJay77 Oct 17 '26
Then it becomes Monday, fuck it
1
u/kolorcuk Oct 17 '26
? Claude -p rebase and push , rebasing has never been easier
1
u/budius333 Oct 18 '26
That shit is simple... Turn off the work computer and I'll see this on Monday.
1
u/a-r-c Oct 18 '26
what if they just made the computer faster???
1
u/fishvoidy Oct 19 '26
who's approving PRs on friday??
1
u/jzrobot Oct 16 '26
Like the time I entered a PR, then someone else did one for the same issue, and theirs got approved first :)
1
u/Spacer3pt0r Oct 16 '26
I ma shocked so many people don't use claude to rebase stuff nowadays. It is the one task that i have never had it mess up and i do it a lot.
0
u/Unusual-Mongoose4994 Oct 18 '26
You guys still do rebase manually? I have been rebasing via agent for several months now and without any problem (it has never done anything wrong). When it has good context about what your feature branch must do (MR description + linked task), when it knows what was merged since last rebase + mechanical diff applying + static analysis / type checks / compilation + automatic tests + automatic pipeline watch after pushed rebase, then there should not be any problem to do this tedious work manually ever again. This is actually one of the few things I don’t mind that agents do reliably instead of me.