Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define fingerprint to distinguish runs #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jabolina
Copy link
Member

@jabolina jabolina commented Jul 5, 2024

In Horreum, we utilize a fingerprint to identify which configurations should be tracked for changes. This allows us to test different configurations, with different server versions without needing to create a test for each on Horreum.

I am setting the server image to the 15.0 stream which should be the latest stable. Otherwise, it would always return :latest tag.

# Defines the description of the run on the JSON output.
# We utilize this value to distinguish between server version and cache configuration on Horreum.
# By default, it can be null. If running the complete test suite, it is automatically filled.
hyperfoil_run_description: ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the past I have had to put "{{ undef() }}" does it work with empty string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was working, but I'll update it to "{{ undef() }}" for consistency.

But I see this weird thing when running the all_benchmarks.yml playbook. If I don't explicitly set the server_image value, the hyperfoil_run_description remains null. If I set the server_image to something, even the same value as the default, the description is created correctly.

# Optional way to override the server image used by the benchmar
server_image: quay.io/infinispan/server
# Optional way to override the server image used by the benchmark
server_image: "quay.io/infinispan/server:15.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we want to change this default or not... User should probably override instead if they want a specific version.

@@ -17,6 +17,7 @@
run_once: true
vars:
operation: run
hyperfoil_run_description: "{{ server_image }}-{{ cache_file }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't descriptive enough, but I guess it is probably fine as a default value designed to be overridden by the user.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we include something more here? I intended to leave this "as is" when running in the GH actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants