Skip to content

Output debug resource to file in molecule test#1823

Merged
TheRealHaoLiu merged 1 commit intoansible:develfrom
TheRealHaoLiu:molecule-debug
Apr 12, 2024
Merged

Output debug resource to file in molecule test#1823
TheRealHaoLiu merged 1 commit intoansible:develfrom
TheRealHaoLiu:molecule-debug

Conversation

@TheRealHaoLiu
Copy link
Copy Markdown
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
Copy Markdown
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
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