Skip to content

[telemetry_chargeback] Get chargeback data results from loki and validate (TEMP)#335

Open
ayefimov-1 wants to merge 16 commits into
masterfrom
alexy_ck_get_cost
Open

[telemetry_chargeback] Get chargeback data results from loki and validate (TEMP)#335
ayefimov-1 wants to merge 16 commits into
masterfrom
alexy_ck_get_cost

Conversation

@ayefimov-1
Copy link
Copy Markdown
Contributor

@ayefimov-1 ayefimov-1 commented Feb 3, 2026

Test changes validate Synthetic data push and pull from loki

  • Generates Synthetic data
  • Uploads data to loki
  • pull data from loki
  • Validates chargeback synthetic data upload and download
  • Checks to see that CK rating data is generated from synthetic data

Closes: https://issues.redhat.com/browse/OSPRH-26066
Closes: https://issues.redhat.com/browse/OSPRH-26361
Closes: https://issues.redhat.com/browse/OSPRH-26969

Assisted-by: Claude

@ayefimov-1 ayefimov-1 force-pushed the alexy_ck_get_cost branch 9 times, most recently from 63c23a2 to df89225 Compare February 5, 2026 20:04
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e14cf51447bc425d874de78466d0ea27

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 1h 57m 21s
functional-chargeback-tests-osp18 FAILURE in 1h 07m 17s
✔️ feature-verification-tests-noop SUCCESS in 5s
functional-tests-osp18 FAILURE in 1h 39m 09s

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@ayefimov-1 ayefimov-1 force-pushed the alexy_ck_get_cost branch 2 times, most recently from 2421fe3 to cae4835 Compare February 6, 2026 18:39
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4d8e228d62f2458bb70aaf51d23d0edb

telemetry-openstack-meta-content-provider-master FAILURE in 15m 22s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ feature-verification-tests-noop SUCCESS in 5s
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ef2941d8a8c842d0ba8fb8832d217602

telemetry-openstack-meta-content-provider-master FAILURE in 14m 27s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ feature-verification-tests-noop SUCCESS in 5s
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ef445a39c5e347aa955c54db965f5a6f

telemetry-openstack-meta-content-provider-master FAILURE in 14m 30s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ feature-verification-tests-noop SUCCESS in 5s
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/0a9a2771578a4bd9af5a72501030d667

telemetry-openstack-meta-content-provider-master FAILURE in 16m 10s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ feature-verification-tests-noop SUCCESS in 5s
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d172ce02695b40e593f54c99fc7e9e3b

telemetry-openstack-meta-content-provider-master FAILURE in 14m 56s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ feature-verification-tests-noop SUCCESS in 5s
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/070a8250ac274f96b5bd8f5a250ef6b2

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 36m 03s
functional-chargeback-tests-osp18 RETRY_LIMIT in 18m 41s
✔️ feature-verification-tests-noop SUCCESS in 5s
functional-tests-osp18 RETRY_LIMIT in 18m 14s

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@ayefimov-1 ayefimov-1 force-pushed the alexy_ck_get_cost branch 3 times, most recently from 7e94bdd to d2866b4 Compare February 11, 2026 20:47
Copy link
Copy Markdown
Collaborator

@elfiesmelfie elfiesmelfie left a comment

Choose a reason for hiding this comment

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

In general, is this intended to be run in pieces or all together?

There are tags are not needed if all the tasks are going to always be run.

There's also a few tasks that save data to files, and then re-load it from files in a different task. If the data files are needed for log, you can write them to the logs dir, and keep the content in a var.

When creating the test data, you can just save the list of files as a fact at that point instead of running extra tasks to get the task file names.

Comment thread roles/telemetry_chargeback/tasks/loki_rate.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/loki_rate.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/load_loki_data.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/load_loki_data.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/retrieve_loki_data.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/retrieve_loki_data.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/run_test_scenarios.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/loki_rate.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/run_test_scenarios.yml Outdated
Comment thread roles/telemetry_chargeback/tasks/loki_rate.yml Outdated
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 351,5b41b1c5c6ccd38148a114d96c451b065bfa887b

2 similar comments
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 351,5b41b1c5c6ccd38148a114d96c451b065bfa887b

@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 351,5b41b1c5c6ccd38148a114d96c451b065bfa887b

- uses synth data to calculate total cost via script
- run "openstack rating summary get" to get total cost from loki
- compares script_totals and Loki_Totals if same then job passes
- Used Gemini and Cursor AI
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 351,5b41b1c5c6ccd38148a114d96c451b065bfa887b

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

ayefimov-1 and others added 7 commits April 20, 2026 11:33
push and retriieved from loki

- uses synth data to calculate total cost via script
- run "openstack rating summary get" to get total cost from loki
- compares script_totals and Loki_Totals if same then job passes
- Used Gemini and Cursor AI
* Validates chargeback data is generated and then
push and retriieved from loki

- uses synth data to calculate total cost via script
- run "openstack rating summary get" to get total cost from loki
- compares script_totals and Loki_Totals if same then job passes
- Used Gemini and Cursor AI

* Review Changes

* Delete roles/telemetry_chargeback/.gitignore

---------

Co-authored-by: ayefimov <ayefimov@redhat.com>
push and retriieved from loki

- uses synth data to calculate total cost via script
- run "openstack rating summary get" to get total cost from loki
- compares script_totals and Loki_Totals if same then job passes
- Used Gemini and Cursor AI
Address review feedback: consolidate repeated when conditions into
blocks and skip the entire workflow when no scenarios are found.
@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

1 similar comment
@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

Adding a method to selecting telemetry_chargeback scenarios to run which do not require changing the role
@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c7d7b2fbddb64749ad84a31f22c45795

telemetry-openstack-meta-content-provider-master FAILURE in 4m 46s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
✔️ feature-verification-tests-noop SUCCESS in 5s
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1
Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Unable to freeze job graph: Unable to modify final job <Job noop explicit: None implied: None source: None#0> attribute parent=noop with variant <Job feature-verification-tests-noop explicit: None implied: {MatchAny:{ImpliedBranchMatcher:master}} source: infrawatch/feature-verification-tests/.zuul.yaml@master#139>

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/acf6f797f566457994cf42ab49edcf32

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 12m 17s
functional-chargeback-tests-osp18 FAILURE in 1h 51m 23s
✔️ feature-verification-tests-noop SUCCESS in 1m 06s
functional-tests-osp18 FAILURE in 1h 55m 12s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants