Another fun thing with GitHub Actions' YAML is that they have an on key to define when the workflow should run. For example, in their quickstart they use:
on: [push]
but of course, this is YAML, so this is semantically equivalent to:
true: [push]
Fortunately, they also support this syntax for the sanity of people who generate their YAML, but it's undocumented:
On GitHub's side, I'm not sure if they have a clean path towards spec conformance here.
Are you referring to the fact that fixing this parsing issue would break some users' existing workflows? Hopefully they don't go down the path of adding a "quirks mode" to the parser!
Yeah, exactly. Historically GitHub has shown great hesitance when it comes to breaking Actions, even when it would make the ecosystem more correct as a whole. I think that's been changing recently (e.g. with the renewed attention on dangerous triggers like pull_request_target) however, so who knows!
Hehe. I took parent's comment to mean that you can write valid yaml but because the spec is so complex, you can't really eyeball it to be correct. Significantl whitespace (dumbest decision ever) doesn't help.
Is your claim here that whatever lib GH is using doesn't test the test suite?
Is it possible the test suite doesn't cover this case? the linked part of the spec seems pretty clear but I guess testing all parse failures is tricky...
I remember being extremely excited to move CI/CD pipelines to GH, but I think since adopting GH Actions, it has been a consistent, albeit slow, decline in satisfaction. Just so many curious product decisions that leave me scratching my head.
Whenever I get these thoughts, I remember what it was like to use Travis-CI, AppVeyor, Azure CI. For open source projects, GitHub Actions was like a breath of fresh air.
In terms of configuration, the nicest setup I ever had was Buildbot, but I was responsible for setting up containerisation and integration with the GitHub web interface, and I'm just not that much of a sysadmin, so it never became particularly polished.
olegkovalov | 10 hours ago
YAML moment. I’m not shocked at all.
val | 3 hours ago
Another fun thing with GitHub Actions' YAML is that they have an
onkey to define when the workflow should run. For example, in their quickstart they use:but of course, this is YAML, so this is semantically equivalent to:
Fortunately, they also support this syntax for the sanity of people who generate their YAML, but it's undocumented:
jaredkrinke | 10 hours ago
Are you referring to the fact that fixing this parsing issue would break some users' existing workflows? Hopefully they don't go down the path of adding a "quirks mode" to the parser!
[OP] yossarian | 9 hours ago
Yeah, exactly. Historically GitHub has shown great hesitance when it comes to breaking Actions, even when it would make the ecosystem more correct as a whole. I think that's been changing recently (e.g. with the renewed attention on dangerous triggers like
pull_request_target) however, so who knows!m_eiman | an hour ago
I can't make up my mind on if wanting to make YAML accept even MORE quirky stuff is a) utterly insane or b) business as usual, it's YAML after all.
landon | 5 hours ago
That is almost certainly what they'll do, if they do anything. This is Microsoft after all.
gulbanana | 5 hours ago
the concept of valid yaml is an oxymoron
[OP] yossarian | 5 hours ago
It actually has a very clear spec (and an excellent test suite). YAML's problem is that it's complex, not that it's unclear whether or not it's valid.
e3bc54b2 | 5 hours ago
Hehe. I took parent's comment to mean that you can write valid yaml but because the spec is so complex, you can't really eyeball it to be correct. Significantl whitespace (dumbest decision ever) doesn't help.
rtpg | 3 hours ago
Is your claim here that whatever lib GH is using doesn't test the test suite?
Is it possible the test suite doesn't cover this case? the linked part of the spec seems pretty clear but I guess testing all parse failures is tricky...
valenterry | 7 hours ago
Just stop using all together. It's about time really.
tclancy | 6 hours ago
Are we both talking about the same thing? Because I really should.
stephenr | 9 minutes ago
Are we talking about GitHub or YAML?
Yes.
joshuat | 6 hours ago
I remember being extremely excited to move CI/CD pipelines to GH, but I think since adopting GH Actions, it has been a consistent, albeit slow, decline in satisfaction. Just so many curious product decisions that leave me scratching my head.
athas | an hour ago
Whenever I get these thoughts, I remember what it was like to use Travis-CI, AppVeyor, Azure CI. For open source projects, GitHub Actions was like a breath of fresh air.
In terms of configuration, the nicest setup I ever had was Buildbot, but I was responsible for setting up containerisation and integration with the GitHub web interface, and I'm just not that much of a sysadmin, so it never became particularly polished.
JulianSildenLanglo | 59 minutes ago
I kinda miss Jenkins, but that might just be a symptom of trauma.
sigmonsez | 3 hours ago
what are the alternatives to github?
riking | an hour ago
BuildKite is an excellent driver for Bring Your Own Compute action runners.
JulianSildenLanglo | an hour ago
Gitlab, sourcehut, codeberg, self-hosted gitea++, just running a server and ssh-ing into it.