ProgrammerHumor

peakGithubActionsExperience

peakGithubActionsExperience

This shit took me 32 commits to get right 😭

https://i.redd.it/d39sfa9tokef1.png
Reddit

Discussion

Mewtwo2387
:js:

please use conventional commits:

ci: pls fucking work odjqoadiuwhshhwqiqlqn RRAHHH

13 hours ago
ATE47
:powershell::cp::j:

It won't work till you stop using words, usually dqfegwhro2 is the right commit, but the main fix was in hbjyrgrehzd

13 hours ago
Fleaaa

You can try locally with https://github.com/nektos/act but it just reduces the number of trial and error from my experience.. something is inherently and badly designed with GA

12 hours ago
Osmium_tetraoxide

This is what makes using GitHub actions decent, throw in linting your GitHub action files and read the damn docs.

12 hours ago
Fleaaa

Linting is the least issue of it, most of failure comes from inter platform aspect which is impossible to debug unless you start to build it

Act reduces this a bit but you gotta slap a bullet proof environment setup to make it work

11 hours ago
shark7161

Cheers bro this is an awesome tool

2 hours ago
CalliNerissaFanBoy02

I had the same thing. I hate it.

I questioned my life and if CI/CD was a Good idea.

Tbf: I vibe CI/CD-ed

15 hours ago
Kingblackbanana

as soon as it works it will be the best idea ever unti it stops again

15 hours ago
Frinckles

lmao the existential crisis is real. but once it clicks, it clicks

12 hours ago
OnlyHereOnFridays
:cs::fsharp::js::ts::rust:

Tbf: I vibe CI/CD-ed

In my experience the vast majority of people/teams vibe their CI/CD code. That is for two reasons:
1) Most teams don’t have dedicated specialists for this. Largely because it’s hard to justify a full-time role for this.
2) Most engineers use the vast majority of their productive work time (after we exclude the time for meetings), to write application code. CI/CD pipelines, once set-up, require very infrequent tampering. By the time you come to tamper with it, you have forgotten most of what you learned from previous tampering sessions. So you can’t write/amend it in a reasonable timeframe, without resorting to help from AI again.

It is also my opinion that for the above reasons, and because it never brings anyone any joy to write it, that it is totally acceptable to vibe/prompt engineer you CI/CD code.

4 hours ago
billyowo
:ts::js:

did god forbid you from using nektos/act

15 hours ago
YboMa2 OP

I’m ngl, u just saved a life by putting me on ts, thanks šŸ‘

14 hours ago
WhatTheTea
:cs::cp:

I had similar experience because I didn't know about 'act back then :P

On other hand, local runner configuration for windows pipelines with secrets sounds somewhat scary. Sometimes it's easier to throw actions at the wall))

14 hours ago
iHiep

I had the same experience when asking AI to build workflows for my repo :))))

15 hours ago
exoclipse
:powershell::j::vb:

what did we learn

14 hours ago
iHiep

Just read the docs

14 hours ago
exoclipse
:powershell::j::vb:

You learned well.

14 hours ago
JanB1

What an exchange. XD

14 hours ago
aRightQuant

At least GitLab has a built in ci linter. But no, who decided that submitting a dsl defined job to a central system was a good idea? Certainly not someone who'd worked on mainframes.

11 hours ago
DHtek

Ever heard of fixup commits and rebasing? There are of course many ways to do it. (Arguably) the easiest is to use fixup commits to fix these linter errors and once the CI is green, squash them with ā€žgit rebase —autosquash masterā€œ

You will need to do a force push afterwards, but you will have a perfectly nice pristine commit.

I would suggest everyone to get to know rebasing. There is a lot of cool stuff you can do.

8 hours ago
ilawon

I don't think the problem at hand is the commit history.Ā 

6 hours ago
LoloMiMama

There's no need to force push. You can branch and work on the CI only and then squash merge locally or through a merge/pull request.

3 hours ago
donthitmeplez
:js:

man i had the same thing but on someone elses repo :sob: my man messaged me with a screenshot of like 30 failed jobs XD

12 hours ago
TheFranticDreamer
:c: :cp: :cs:

Try until it works Copy in another place manually Revert back to the first try Paste the working files back into the repo ... Profit

11 hours ago
NotSoProGamerR

if i were to mess with ci, i make sure to always amend extra changes, wouldn't want anyone to know i failed

11 hours ago
GrantSolar

The worst is trying to make changes to the action and testing it without committing the incomplete workflow changes to main

9 hours ago
spastical-mackerel

workflow_dispatch is your friend

9 hours ago
DespoticLlama

TIL what SMH means, I am so disappointed

9 hours ago
prehensilemullet

Use something likeĀ https://mxschmitt.github.io/action-tmate/Ā to ssh into your actions and debug them

7 hours ago
Excellent_Tie_5604

I'm glad I don't understand and use GitHub enough to identify what's the errors are and why they are happening.

I simply create my project add features and push.

bash git add . git commit -m "Message" git push

Is the only thing I use generally 😌

7 hours ago
exomyth

git commit --amend

git push -f

7 hours ago
Tttehfjloi
:cs: :py:

WTF I WAS LITERALLY DOING THIS YESTERDAY

7 hours ago
chisoph

My org has a rule that you can't push to main without approval (which is normally fair), so any time I have to edit a workflow I have to open a PR and find someone to approve it. Very annoying when setting them up.

3 hours ago
Not-the-best-name
:py:

Change my mind. Git commits are not the right way to develop CI.

3 hours ago