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

Output debug resource to file in molecule test #1823

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

TheRealHaoLiu
Copy link
Member

@TheRealHaoLiu TheRealHaoLiu commented Apr 12, 2024

SUMMARY
  • output all relevant k8s resource to file on failure
  • output awx job list and job details to file on failure
  • output all pod logs to file on failure
  • added STORE_DEBUG_OUTPUT to enable debug output gathering
  • added DEBUG_OUTPUT_DIR to control where the debug output files will be stored
  • when molecule test fail in CI trigger artifact gathering

accidental yak shaving:

  • re-organized test sequence for awx_test.yml
ISSUE TYPE
  • Bug, Docs Fix or other nominal change
ADDITIONAL INFORMATION

example artifact produced by artificial failure
https://github.com/ansible/awx-operator/actions/runs/8665355235/artifacts/1409438614

@TheRealHaoLiu
Copy link
Member Author

NOTE currently there's a symmetric failure to trigger the log gathering need to remove before merge

@TheRealHaoLiu TheRealHaoLiu changed the title Molecule debug Output debug resource to file in molecule test Apr 12, 2024
- output all relevant k8s resource to file on failure
- output awx job list and job details to file on failure
- output all pod logs to file on failure
- added STORE_DEBUG_OUTPUT to enable debug output gathering
- added DEBUG_OUTPUT_DIR to control where the debug output files will be stored
- when molecule test fail in CI trigger artifact gathering
@TheRealHaoLiu TheRealHaoLiu merged commit 0b37f76 into ansible:devel Apr 12, 2024
8 checks passed
@TheRealHaoLiu TheRealHaoLiu deleted the molecule-debug branch April 12, 2024 17:52
TheRealHaoLiu added a commit to ansible/awx that referenced this pull request Apr 12, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
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