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

Ciac 11100 playbook run in build #4658

Merged
merged 79 commits into from
Jan 28, 2025
Merged

Conversation

JasBeilin
Copy link
Contributor

@JasBeilin JasBeilin commented Nov 12, 2024

Added test-use-case command, to run use case flows on cloud machines.

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-11867

@JasBeilin JasBeilin self-assigned this Nov 12, 2024
@JasBeilin JasBeilin marked this pull request as draft November 12, 2024 08:41
Copy link
Contributor

@dantavori dantavori left a comment

Choose a reason for hiding this comment

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

some minor comments but looks very good!

.changelog/4658.yml Outdated Show resolved Hide resolved
demisto_sdk/commands/common/clients/__init__.py Outdated Show resolved Hide resolved
demisto_sdk/commands/common/clients/__init__.py Outdated Show resolved Hide resolved
demisto_sdk/commands/common/constants.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Comment on lines +367 to +369
except Exception:
self.build_context.logging_module.exception("~~ Thread failed ~~")
self.build_context.tests_data_keeper.errors = True
Copy link
Contributor

Choose a reason for hiding this comment

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

how does it behave in case of exception?

  1. will the rest of the threads continue?
  2. will we see the error message?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, each thread should run its tests, the rest of the threads should keep running.
Also logs per thread are printed (with thread number)

Copy link
Contributor

Choose a reason for hiding this comment

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

can we have one sanity E2E test (from the main command method)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure its needed, the methods are tested in unit tests.

Copy link
Contributor

@dantavori dantavori left a comment

Choose a reason for hiding this comment

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

as discussed, consider adding an E2E test (or at least cover the uncovered lines)

demisto_sdk/commands/common/git_util.py Show resolved Hide resolved
@eyalpalo eyalpalo merged commit e746b1c into master Jan 28, 2025
25 checks passed
@eyalpalo eyalpalo deleted the CIAC-11100-playbook-run-in-build branch January 28, 2025 08:26
@eyalpalo eyalpalo restored the CIAC-11100-playbook-run-in-build branch February 2, 2025 08:43
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.

5 participants