Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lmz
on June 22, 2024
|
parent
|
context
|
favorite
| on:
I kind of like rebasing
CI will usually only run the latest commit. Even if commit a, b, and c were all tested, the resulting commits a', b', and c' after rebase would usually only have the last one tested.
skybrian
on June 22, 2024
|
next
[–]
Since you shouldn't publish commits that weren't tested, this suggests you should publish only one commit at a time.
(Unless you think "works on my machine" is good enough testing. Sometimes it is.)
lmz
on June 23, 2024
|
parent
|
next
[–]
So rebase then force push a', wait for CI, push b', wait for CI, push c'? Personally I just squash on merge.
account42
on June 26, 2024
|
prev
[–]
And if you care about each commit always passing all test you should change your CI config accordingly.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: