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

metrics assignment from variables #1427

Open
4 tasks
shahzebsiddiqui opened this issue Mar 17, 2023 · 1 comment
Open
4 tasks

metrics assignment from variables #1427

shahzebsiddiqui opened this issue Mar 17, 2023 · 1 comment
Assignees

Comments

@shahzebsiddiqui
Copy link
Member

we should be able to assign metrics from variables defined in tests. This could look as follows. We can have a property name vars which will look for key under the vars section of the test. If the key is found we will assign the value to the metric. In this example below we can perform an assertion equality.

buildspecs:
  metric_variables:
    executor: generic.local.bash
    type: script
    description: capture metrics from variables
    vars:
       FOO: BAR
    run: echo $FOO
    tags: tutorials
    metrics: 
      foo:
        type: str
        vars: foo 
    status:
      assert_eq:
        - name: foo
          ref: BAR

TODO:

@shahzebsiddiqui
Copy link
Member Author

@szuananwar i will assign this task to you, this will require a bit of work

@szuananwar szuananwar linked a pull request Aug 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants