Skip to content

Fix functional tests failures for STF tests#166

Merged
elfiesmelfie merged 15 commits intomasterfrom
fix_functional_test_failures
Jun 4, 2025
Merged

Fix functional tests failures for STF tests#166
elfiesmelfie merged 15 commits intomasterfrom
fix_functional_test_failures

Conversation

@elfiesmelfie
Copy link
Copy Markdown
Collaborator

@elfiesmelfie elfiesmelfie commented Oct 29, 2024

The issue may have been caused by the observability strategy tests causing both community and redhat monitoring components to be installed and shadowing the monitoring component definitions (prom, alertmanager, etc)

Depends-On: #177

@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch 2 times, most recently from b8ffcb7 to ff8ef96 Compare October 31, 2024 18:57
@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch 3 times, most recently from 9f933df to 3fda2d0 Compare November 19, 2024 20:53
@elfiesmelfie
Copy link
Copy Markdown
Collaborator Author

recheck

@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch 6 times, most recently from 17863ff to 91990e9 Compare November 27, 2024 20:08
@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch 6 times, most recently from 8353e87 to 2503c4a Compare December 5, 2024 13:51
@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 166,2503c4afab8eaa204bbd76b3b965a57f513aa587

@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch from 2503c4a to a381325 Compare December 5, 2024 17:52
@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 166,a9a04c5158b0739624dadb794aa87b11cc5ac99b

@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch 4 times, most recently from de97212 to 2d46452 Compare December 10, 2024 18:41
@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 166,119f7197dd557f8a5d286d7fb156f21bafc4e272

@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 166,08ab06b0d20b820c0ec450c661ede3ba2f793bda

@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch 2 times, most recently from 410547e to 3190efb Compare December 17, 2024 18:07
@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch from 3190efb to a771ce8 Compare January 10, 2025 19:13
Comment thread roles/test_sensubility/tasks/test_health_status.yml Outdated
changed_when: false
failed_when: container_nodes.stdout_lines|length != 0

- name: Check what metrics are available to prometheus that relate to sensubility
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@lnatapov I think that making this a new test would be a good idea.

It validates a pre-req for later sensubility tests i.e. There are sensubility metrics available

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It would need a failed_when condition to make it useful

@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch from ea0fbf3 to c89d25f Compare June 3, 2025 14:26
Comment thread roles/test_sensubility/tasks/test_health_status.yml Outdated
Comment thread roles/test_sensubility/tasks/test_health_status.yml Outdated
Comment thread roles/test_snmp_traps/tasks/main.yml
@elfiesmelfie elfiesmelfie marked this pull request as ready for review June 3, 2025 14:35
Comment thread roles/test_alerts/tasks/test_creating_a_standard_alert_route_in_alert_manager.yml Outdated
@elfiesmelfie elfiesmelfie enabled auto-merge (squash) June 3, 2025 15:12
Copy link
Copy Markdown
Contributor

@ayefimov-1 ayefimov-1 left a comment

Choose a reason for hiding this comment

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

A few comments that have not been resolved but looks fine to me.

elfiesmelfie and others added 15 commits June 4, 2025 13:44
* Update the alarm to use FVT_TESTING in the alarm description
  so we can identify the alarm created by this test
* Replace grep with an updated failed_when condition
* Correct the failed_when condition to match the alarm message
* Retry the check for alarm creation

TODO:
* Add check for Prometheus rule deletion
This avoids some errors in parsing the alertmanager config, which caused delays and the alarm not to appear in the logs
Increase retry count.
@elfiesmelfie elfiesmelfie force-pushed the fix_functional_test_failures branch from 25c8f8b to 93eac82 Compare June 4, 2025 12:44
@elfiesmelfie elfiesmelfie requested a review from vkmc June 4, 2025 13:11
Copy link
Copy Markdown
Contributor

@vkmc vkmc left a comment

Choose a reason for hiding this comment

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

LGTM

@elfiesmelfie elfiesmelfie merged commit 0142f05 into master Jun 4, 2025
9 checks passed
@elfiesmelfie elfiesmelfie deleted the fix_functional_test_failures branch June 4, 2025 13:36
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.

3 participants