Dynatrace / libbuildpack-dynatrace

Common resources used for Dynatrace integration in Cloudfoundry Buildpacks.
Apache License 2.0
1 stars 5 forks source link

CF Buildpacks tests failing after latest libbuildpack-dynatrace release #21

Closed brayanhenao closed 2 years ago

brayanhenao commented 2 years ago

Some of our (CF Buildpacks) Buildpacks started to show errors in integration tests after the libbuildpack-dynatrace library was updated from 1.4.2 to 1.5.0.

Was there a significant change in this release that causes the tests to fail? Something to do with fixtures, should they have any additional settings?

Buildpacks failing (On which dependabot has performed the update):

Error message:

-----> Setting up Dynatrace OneAgent injection...
       DEBUG: Copy dynatrace-env.sh to /tmp/contents1126887780/deps/0/profile.d/dynatrace-env.sh
       DEBUG: Open /tmp/contents1126887780/deps/0/profile.d/dynatrace-env.sh for modification...
       DEBUG: Setting LD_PRELOAD...
       DEBUG: Setting DT_LOGSTREAM to stdout...
       DEBUG: Preparing custom properties...
       DEBUG: Fetching updated OneAgent configuration from tenant... 
       DEBUG: Successfully fetched OneAgent config from API
       **ERROR** Failure while reading OneAgent config file /tmp/app/dynatrace/oneagent/agent/conf/ruxitagentproc.conf: open /tmp/app/dynatrace/oneagent/agent/conf/ruxitagentproc.conf: no such file or directory
       **ERROR** Error during agent config update: open /tmp/app/dynatrace/oneagent/agent/conf/ruxitagentproc.conf: no such file or directory
       **ERROR** After Compile: open /tmp/app/dynatrace/oneagent/agent/conf/ruxitagentproc.conf: no such file or directory
brayanhenao commented 2 years ago

@arthfl Any update on this?

arthfl commented 2 years ago

@brayanhenao The integration tests in those buildpacks are missing a part in the fake API which is used there. Currently in the process of preparing this for all go-based buildpacks we support.

brayanhenao commented 2 years ago

@arthfl Any estimate of how long these changes may take?

brayanhenao commented 2 years ago

Hi @arthfl, any update on this? Dependabot keeps updating libbuildpack-dynatrace to the latest version and now it's a little bit noisy for our Buildpacks repositories.

arthfl commented 2 years ago

Sorry, been quite busy.

I can remove the 1.5.0 version tag until i've prepared everything on my side for a proper integration test to save you folks some noise. Would that help as a temporary mitigation?

arthfl commented 2 years ago

@brayanhenao i deleted the release for now. That should you give you a bit more silence while i prepare everything :-)