Closed felixbarny closed 4 years ago
There is currently some work being done by the CI team on this, not sure about the current progress and priority though.
We may be able to add this to the image cache if it's not there already. I will investigate this.
I'm working on something else that seems similar to this issue, and this is my finding:
That particular configuration was there since the very beginning:
https://github.com/elastic/apm-agent-java/pull/1376 might fix this issue, at least the one related to the cached artifacts.
UPDATE: https://github.com/elastic/apm-agent-java/pull/1376 cannot be used in this case, since the very first build will cache all the required artifacts which will be stashed for being used later on in some other stages. Therefore, we cannot use this approach
And guess what! I faced this particular issue in my above-mentioned fix:
For what I read the -Dhttps.protocols=TLSv1.2
flag seems to be the workaround:
Even with a change to .m2
won't the fact that we do a clean install
here force the download to happen regardless of what's in the cache? Should we remove the clean
keyword to rely on the cache?
the clean
goal should not affect with the cached dependencies, since it's in charge for the clean up of the generated files within the workspace which are normally hosted in the target
folder. The only case I imagine it will be required is when the workspace location and the .m2 point to the some location
Yup, I just tested this and was coming back here to say that it doesn't appear to change the caching mechanism so this should be fine.
Test method
Happens before tests, in the build phase
Test logs
Additional context
Lately, we see a lot of test failures because of
Connection reset
errors.@elastic/observablt-robots do you know if there are network issues?
Also, why does maven even need to resolve the dependencies? Shouldn't they be cached in the image via packer cache?