You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "GChuf (via GitHub)" <gi...@apache.org> on 2025/11/07 14:38:49 UTC
[PR] Cicd jobs [activemq-artemis]
GChuf opened a new pull request, #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3533598023
Took a bit longer than expected, but I pushed the changes this morning and refreshed the caches for main:
https://github.com/apache/activemq-artemis/commit/42de10591e1c1f72fd2d76aed11c1f152184c477
Result is smaller logs with zero Downloading/Downloaded entries on any of the sub jobs when starting with an up to date cache, and the overall run is a minute+ faster as the tests complete faster (checks complete slower as they do more now).
https://github.com/apache/activemq-artemis/actions/runs/19363184511
Thanks for the prod to clean up the straggling issues.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3541285885
The download logs are wanted so definitely not a fan of adding "-ntp" (which to be clear, removes _all the download logs_).
The option also basically does nothing now anyway if you have a cache and aren't adding/updating dependencies. Having a cache is pretty trivial even for infrequent contributors, so basically noone needs to be running without a cache if they dont want that. Especially not anyone doing a change of some substance and that has actually bothered to enable Actions on their fork (many dont) and intends to then read the logs. Sync the fork main and ~15mins later all your branches have a cache if they dont already their own. That (or just creating my fork) tends to be the first thing I do if I start a new contribution somewhere new and actually want to use the actions in my fork.
I dont think I knew about "-Dstyle.color=always", or had certainly forgotten it if I did, so may look into using that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3505174124
> I understand - most of my CICD experience comes from gitlab (and non-java projects). I don't find it hard to believe a more manual approach works better, I've worked on a couple of my own ... I did however see some outputs of jars being downloaded (on PRs not by dependabot), even though they should be cached. Example: https://github.com/apache/activemq-artemis/actions/runs/19174094055/job/54814185898
Yes, I'm aware that can happen to a small extent. The checks and test runs share caches, and the checks usually complete first, so it can be the case that certain things do still need downloaded as they didnt make it into the cache. But its pretty small compared to the overall dep load.
I did used to segregate them, here and in other components jobs, but the disadvantage is that it doubles the cache usage, leading to more eviction churn for caches, especially across branches. They have increased the cache limits since then, but I still think its probably better as it is. Could probably also rig the 'checks' executions to trigger more inclusions with their 'extra time' buffer though.
>
> Well, at least this doesn't reach the 100k lines which happened after I changed the caching strategy :) Even though it's not extensive ... some bandwidth can be saved.
>
> About the T1C, I think i was looking at the wrong data before. But again as mentioned, it's the tests that take longer, and combined with the scrambled output I also don't think it's worth it.
>
> You mention certain tests needing "install" - I'll have to take a closer look at that, but I'm just bruteforcing through all the options and it seems the test have passed with "mvn verify" as well.
Yes, because after a while of being annoyed by it, I did eventually change the build to _not actually fail_ if you didnt use "install" like it always had before. Check closer and youll find you shaved about a minute off the time, because it _didnt actually do exactly the same as it was before_.
I'm signing out now, have a good weekend.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "GChuf (via GitHub)" <gi...@apache.org>.
GChuf commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3538727947
The decreased times can be seen nicely!
I still think "-B" flag would be a nice addition.
ubuntu-latest (instead of ubuntu-22) is another. Apart from possible speedups, it would mean less maintenance for the action .yml files (if you think newer ubuntu runners won't break stuff ...)
About the cache size though - isn't the newer cache at around 644MB, while the old one was at 590MB?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3527874413
No worries, I was simply aiming to elaborate on some of the not-obvious history behind why some of the things are the way they are, to avoid you burning time treading the same paths.
I have actually been working in the last couple days on improvements to remove all 'Downloading' logs without disabling them, so long as you have a cache (or, you know, a new dep is added). Mostly there already, just some stragglers, so might be pushing it later today if the latest iterations do what I hope and dont turn up anything else.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "GChuf (via GitHub)" <gi...@apache.org>.
GChuf commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3504744612
My fingers were way too fast, I thought I was merging into my own main branch. I hope that explains the horrendous typos ...
I wish I saw your comment earlier.
> We would most likely stick to the separate cache action over the more basic 'setup-java built in' one
Removing this was also the reason why I removed the cleanup job - if we let github take care of all the cache, it wouldn't make sense to do the cleanup manually ... well, at least if we trust it. I'll take a closer look at what's being cached.
> The maven download logging being there is actually desired
I'm just beginning to play with this. I would ask - what's the minimum amount of logging that's desired? 100k lines in the log, mostly due to downloading, isn't great ... Actually it doesn't even load in the browser for me.
I think removing the progress is a great way to keep the log smaller, while keeping the essential info.
The next step, I'm thinking, is to suppress "[INFO] Downloading from ..." while keeping "[INFO] Downloaded from ..."
> various modules will run tests that cannot run at the same time, so that seems unlikely to be too reliable.
Got there! ...
> -T1C
I ran nproc to check how many cores there are available, and the answer is 4. So theoretically this should help.
But.
I tried this with builds as well and it doesn't look like it's making a world of difference, plus ... it's the tests that take longer like you said.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3540898236
I never really use batch mode. I want the extra logs, like the colouring, and definitely want to know if its somehow expecting input when I dont expect it should be doing so. There is rarely a point/need to run without a cache, so the initial more verbose logs run really doesnt seem like an issue and either way its little different than doing it locally for the first time.
The use of fixed (and often non-latest) ubuntu versions was deliberate on my part. I prefer that doesnt float, and I dont think changing the runner every X years is really any concern in terms of maintenance, we do way more maintenance on the jobs in general and for other specific stuff like the actions/JDK/etc.
Yes, the new cache is a bit bigger (difference is a bit larger than I exected though); it wouldnt have been more effective now than it was before if it didnt get bigger. The way it prevents the 'Downloading/ed' logs is that it now contains things the cache did not before, as the 'checks' jobs are doing things they didnt previously [in the then-faster runs that tended to win the race to populate the cache], and now also includes some bits the test jobs need that the old cache did not (since the test jobs only won the race if all the checks jobs failed, but theyd often fail too in many cases deepending on the issue).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3504021049
I see you worked on this some more after opening+closing it, I'd give some pre-feedback if you are still working on suggested changes.
- We would most likely stick to the separate cache action over the more basic 'setup-java built in' one, its more configurable, and there are some things outside the root pom the cache should sometimes consider so it definitely shouldnt be restricted to that.
- The pre-cache cleanup shouldn't be removed entirely, we dont want it caching the build output which is being installed as certain bits need it to be, since caching that can (and has before) influence future builds and prevent catching certain issues as they happen rather than later on.
- The maven download logging being there is actually desired, to see what being downloaded especially if its happening unexpectedly (most stuff is cached, except when being added).
- I noticed you are also playing with -T1C to multithread the test runs specifically; various modules will run tests that cannot run at the same time, so that seems unlikely to be too reliable. The output is also a bit horrible (more so if you redirect the test output to console as we used to, and still will ocassionally).
- Whilst I do use -T1C for most _builds_[-only] locally, and in other CI jobs elsewhere (since its already been compiled and checked here), we dont do so in these in-repo jobs in order to give the more comprehensible output when it barfs. Having the compile and other checks off in their own steps apart from the testing was partly for allowing that to be the case, as they happen at the same point and the overall run takes the same time with or without -T1C builds since the [tiny subset of the overall] tests it runs are the gating factor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "GChuf (via GitHub)" <gi...@apache.org>.
GChuf commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3527506459
I ran out of time for this one. Commenting now before I forget everything I was doing here.
I agree that segregating the caches is not worth it - I only mentioned the "Downloading ..." lines still being there in the logs to discuss the possibilities of cleaning the logs up. That said, achieving that with "-ntp" or "-B" flags was the only clear winner in all of my tests up until now, it seems.
-B disables color output as well - I'm not sure if it has any impact on the logs' sizes here in github CICD jobs.
Even though these flags won't impact the times substantially, some logs will be smaller and easier to read.
I hope I don't come across as double-guessing your decisions - my goal was simply to learn, and to try and improve.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "gemmellr (via GitHub)" <gi...@apache.org>.
gemmellr commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3504940321
>
> Removing this was also the reason why I removed the cleanup job - if we let github take care of all the cache, it wouldn't make sense to do the cleanup manually ... well, at least if we trust it. I'll take a closer look at what's being cached.
>
The cleanup is in there for a reason I assure you (I'm the one that put it there). Without it, it caches the build output, which is being installed as certain tests need it to be installed. Not having the cleanup can also and indeed has screwed us over in the past before it was done, more than a couple of build issues were masked due to it. Some then only getting hit at release time.
I'd personally still want to use the cache action instead of the setup-java based stuff regardless.
> > The maven download logging being there is actually desired
>
> I'm just beginning to play with this. I would ask - what's the minimum amount of logging that's desired? 100k lines in the log, mostly due to downloading, isn't great ... Actually it doesn't even load in the browser for me. I think removing the progress is a great way to keep the log smaller, while keeping the essential info. The next step, I'm thinking, is to suppress "[INFO] Downloading from ..." while keeping "[INFO] Downloaded from ..."
>
You'll only get extensive download logs if you have no cache. The main repo CI always has a cache. Forks will have one so long as its not your first activity in a week....or you do something like removing the existing caching stuff and thus forcing it to start afresh hehe. Easy enough to download the logs and inspect (though theyve opened in the browser for me, even in the past when we drove the significant test output to the console)
Its also desirable to see the 'Downloading from' logs as well as the 'Downloaded from' ones in either case. I have on multiple occasions found repository config issues specifically due to those logs. In a separate case a ~terabyte of BW may or may not have been wasted over time due to all of the downloads logs being disabled hehe.
> > various modules will run tests that cannot run at the same time, so that seems unlikely to be too reliable.
>
> Got there! ...
>
> > -T1C
>
> I ran nproc to check how many cores there are available, and the answer is 4. So theoretically this should help. But. I tried this with builds as well and it doesn't look like it's making a world of difference, plus ... it's the tests that take longer like you said.
Yep its 4, has been for the last few years:
https://docs.github.com/en/actions/reference/runners/github-hosted-runners
-T1C does make a noticable difference with up to around 8 threads, but its not particularly useful if you arent actually waiting on it, which we arent really here. The tradeoff is also exceptionally ugly output (without going to things like mvnd), especially on failure (when we most need it), which for this job isnt a tradeoff I think is worthwhile.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "GChuf (via GitHub)" <gi...@apache.org>.
GChuf commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3505111833
> The cleanup is in there for a reason I assure you (I'm the one that put it there). Without it, it caches the build output, which is being installed as certain tests need it to be installed. Not having the cleanup can also and indeed has screwed us over in the past before it was done, more than a couple of build issues were masked due to it. Some then only getting hit at release time.
I understand - most of my CICD experience comes from gitlab (and non-java projects). I don't find it hard to believe a more manual approach works better, I've worked on a couple of my own ...
I did however see some outputs of jars being downloaded (on PRs not by dependabot), even though they should be cached.
Example:
https://github.com/apache/activemq-artemis/actions/runs/19174094055/job/54814185898
Well, at least this doesn't reach the 100k lines which happened after I changed the caching strategy :)
Even though it's not extensive ... some bandwidth can be saved.
About the T1C, I think i was looking at the wrong data before. But again as mentioned, it's the tests that take longer, and combined with the scrambled output I also don't think it's worth it.
You mention certain tests needing "install" - I'll have to take a closer look at that, but I'm just bruteforcing through all the options and it seems the test have passed with "mvn verify" as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "GChuf (via GitHub)" <gi...@apache.org>.
GChuf closed pull request #6036: Cicd jobs
URL: https://github.com/apache/activemq-artemis/pull/6036
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact
Re: [PR] Cicd jobs [activemq-artemis]
Posted by "GChuf (via GitHub)" <gi...@apache.org>.
GChuf commented on PR #6036:
URL: https://github.com/apache/activemq-artemis/pull/6036#issuecomment-3540974916
Understood. Then the last suggestion at this point from me would be the "-ntp" instead of "-B". Even though regular committers would probably not notice the difference, others like me would.
As for the coloring - I stumbled upon this quite by accident, on the same day that I was looking at output colors: "-Dstyle.color=always". To see how it looks inside github actions - on the off chance you don't know about this already:
https://github.com/apache/zookeeper/actions/runs/19386620419/job/55474379448
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact