grafana / k6build

K6 build service
GNU Affero General Public License v3.0
2 stars 1 forks source link

k6 version reported for pre-release versions is not consistent #48

Open pablochacin opened 1 month ago

pablochacin commented 1 month ago

When a client request a binary, k6build returns the version of the dependencies in the artifact's metadata. These versions are determined when resolving the dependencies and are not saved along the artifact in the cache.

After the changes introduced in https://github.com/grafana/k6build/pull/47 the k6 version reported for a pre-release version are inconsistent across multiple request for building a binary.

The first time, when the artifact is created it is reported using a full semantic version

id: d49dada22dc962cf43096091432f5ba3bcd345f4
platform: linux/amd64
k6:"v0.54.1-0.20241022073258-09a768494cd0"
checksum: 4c9ec82dab0d97aa5185aaf580dfffba7a0e066001a084e54bc732fddb5e7027
url: http://localhost:9000/cache/d49dada22dc962cf43096091432f5ba3bcd345f4/download

In subsequent requests, when the pre-build artifact is returned only the hash is reported:

id: d49dada22dc962cf43096091432f5ba3bcd345f4
platform: linux/amd64
k6:"09a768494cd04a7efbf741169433b42d67593afd"
checksum: 4c9ec82dab0d97aa5185aaf580dfffba7a0e066001a084e54bc732fddb5e7027
url: http://localhost:9000/cache/d49dada22dc962cf43096091432f5ba3bcd345f4/download