[
https://issues.apache.org/jira/browse/TIKA-5099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155342#comment-18155342
]
Julien Nioche commented on TIKA-5099:
-------------------------------------
thanks [~tallison]
[https://github.com/apache/tika/blob/badges/badge.json]
{code:java}
{
"aspen_version": "1.5.0",
"co2eq_g": 3243.495,
"color": "c0c0c0",
"energy_wh": 8445.88,
"label": "CI CO2eq (30d)",
"message": "3.24 kgCO2e",
"minutes": 37413,
"period": "30d",
"schemaVersion": 1,
"source": "jobs",
"water_cooling_l": 2.872,
"water_electricity_l": 30.219
}{code}
currently generating 3kg a month, which is not a huge amount but still worth
doing.
Looking at
[https://github.com/apache/tika/actions/metrics/usage?dateRangeType=DATE_RANGE_TYPE_LAST_30_DAYS]
[main-jdk17-build.yml|https://github.com/apache/tika/actions/workflows/.github/workflows/main-jdk17-build.yml]
is the top contributor. it is triggered more than 2x the other workflows,
that's because it is triggered on PRs whereas
[main-jdk21-build.yml|https://github.com/apache/tika/actions/workflows/.github/workflows/main-jdk21-build.yml]
is only on pushes. Same for
[main-jdk17-windows-build.yml|https://github.com/apache/tika/actions/workflows/.github/workflows/main-jdk17-windows-build.yml],
neither have concurrency blocks whereas
[main-jdk17-build.yml|https://github.com/apache/tika/actions/workflows/.github/workflows/main-jdk17-build.yml]
does.
so looks like there is already a judicious strategy here. Adding concurrency
blocks where missing would help I expect. Maybe jdk21 and jdk17-windows can be
done only once a day and keep jdk17 as the main gate for checking?
Apart from that, paths exclusions e.g. to exclude .md files? although this
would not have much of an impact.
[docker-snapshot.yml|https://github.com/apache/tika/actions/workflows/.github/workflows/docker-snapshot.yml]
comes second - does it need to trigger for every change? Is that something
that could run once daily instead?
it could also get a concurrency block like
{{concurrency:
group: ${\{ github.workflow }}-${\{ github.ref }}
cancel-in-progress: true}}
{{A more radical change would be to have self-hosted runners in clean locations
like Sweden or France but this requires more effort and would not be worth the
investment given the footprint of this project. I think there are self-hosted
runners at the ASF, making sure these are in the right regions would benefit
any project that uses them.
}}
> Decrease ci's carbon footprint
> ------------------------------
>
> Key: TIKA-5099
> URL: https://issues.apache.org/jira/browse/TIKA-5099
> Project: Tika
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Minor
>
> Let's see what we can do to trim back on what we don't need in CI. Let's
> track this effort on this ticket.
> Recommendations? cc [~jnioche]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)