compliance icon indicating copy to clipboard operation
compliance copied to clipboard

Store and use archived filename in the bin directory

Open rapphil opened this issue 2 years ago • 1 comments

In the case of the remote_write_sender tests, use the archived filename to generate the filename of the binaries stored in bin and used for the tests.

The reason why we need this is because it will provide more stable filenames since the name will not rely on the name of the published artifact.

Before this change the files stored in bin after a run of go test --tags=compliance -run "TestRemoteWrite/.+" -v were:

agent-linux-amd64
otelcol_0.42.0_linux_amd64
prometheus-2.30.3.linux-amd64
telegraf-1.20.2_linux_amd64
vector-0.16.1-x86_64-unknown-linux-gnu
vmutils-amd64-v1.67.0

After:

agent-linux-amd64 
otelcol 
prometheus 
telegraf 
vector 
vmagent-prod

This will solve https://github.com/prometheus/compliance/issues/97

rapphil avatar Mar 23 '23 22:03 rapphil

@tomwilkie can you take a look into this pr?

rapphil avatar Mar 24 '23 16:03 rapphil