-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Run only docs workflow #2203
Run only docs workflow #2203
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2203 +/- ##
=======================================
Coverage ? 40.72%
=======================================
Files ? 183
Lines ? 10998
Branches ? 0
=======================================
Hits ? 4479
Misses ? 6168
Partials ? 351 ☔ View full report in Codecov by Sentry. |
Now it will run anyhow as I added the |
https://ci.woodpecker-ci.org/repos/3780/pipeline/7287 looks good. I am now commenting in all the |
Oh no, my auto-formatting made a hell of unrelated changes 🥴️ |
.woodpecker/docker.yml
Outdated
@@ -18,10 +18,23 @@ variables: | |||
- &platforms_server 'linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le,linux/riscv64' | |||
- &platforms_preview 'linux/amd64' | |||
- &platforms_alpine 'linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le' | |||
- &when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is unused, so we only need path
as variable.
.woodpecker/test.yml
Outdated
@@ -25,7 +25,8 @@ steps: | |||
group: prepare | |||
commands: | |||
- go mod vendor | |||
when: *when | |||
when: | |||
path: *when_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change this?
It is currently skipped on builds on main
completely, so I'd keep it as it is (same for everything else in this file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I am confused with the different use of *when
and *when_path
across files. Trying to harmonize...
@@ -24,7 +24,8 @@ steps: | |||
commands: | |||
- corepack enable | |||
- pnpm install --frozen-lockfile | |||
when: *when | |||
when: | |||
path: *when_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The when
is already part of the variable. You can drop all changes like this in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed all *when
to *when_path
- OK?
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
…nto run-only-docs
https://ci.woodpecker-ci.org/repos/3780/pipeline/7293/13 looks good now? 😅 @qwerty287 |
@qwerty287 Thanks a lot for your time and patience! |
I am using prettier to format it. |
Me 2 - and this is what happens if I format the yaml files - so good for you? In the gitea helm chart we use a yamllint WF for this - maybe we could add that one as well here? https://gitea.com/gitea/helm-chart/src/branch/main/.gitea/workflows/test-pr.yml#L35-L36 |
.woodpecker/test.yml
Outdated
|
||
lint-editorconfig: | ||
image: mstruebing/editorconfig-checker | ||
group: test | ||
when: | ||
path: *when_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a event: pull_request
here too? Just noticed that this also runs on pushes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it to a few more instances. Probably even more refinement possible across all pipelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it's actually missing for everything because you changed the when
var to only use path filters. Actually every step should have this filter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix it throughout the day.
Overall I think it's important to reduce/avoid unneeded runs to save resources and time - even if it is a bit of tedious small-scale optimization work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still not happy with test
because the change is not really doing something but complicates the pipeline.
You can directly take the file content of test.yml
from 55134ad and apply this here - it contains all the changes but without those that are increasing complexity.
I don't like the In some occasions additional modifications to |
I am not sure how/if we can find a consensus here. I am aware that the discussion which is blocking a merge is actually off-topic WRT to the PR title but I feel like aligning variable usage across pipelines is an important one ❓ |
I'm leaning more towards code deduplication ... |
the only things I would accept right away would be the changes to add a path filter to the as we do with souch bike-shading topics -> the @woodpecker-ci/owner will vote & decide ... cc @anbraten |
Again, that's what prettier did for auto-formatting the file. Either we need a better config or linter. I can remove it again but it's tedious to cherry-pick. That's why it's still in. |
.woodpecker/docker.yml
Outdated
|
||
# vars used on push / tag events only | ||
- publish_logins: &publish_logins | ||
# Default DockerHub login | ||
- publish_logins: &publish_logins # Default DockerHub login |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
publish_logins is not default dockerhub login ... the next entry is
Any progress here? |
- removes docker username secret (#2589) - fix `when` filters https://ci.woodpecker-ci.org/repos/3780/pipeline/8907/9 - add path filter to only build docker image if stuff was changed (or label is added) closes #2203 closes #2598
fix #2200
Outsourced from #2193
Due to triggers like
- ".woodpecker/test.yml"
the WFs will still run in this PR and changes will only take effect for a subsequent PR.Also harmonized the use of
&when
and&when_paths
across the workflows.