-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor: collect step artifacts immediately after step finish #718
Conversation
Can it be transformed a little so that collecting artifacts after the step is displayed as a separate step or a substep? |
Let's discuss and choose the one. Option 1: Collect artifacts at the end of the step (current one)
Option 2: Collect artifacts in the substep
Option 3: Collect artifacts in the separate step
|
I myself prefer the option 3. It seems the most readable to me. But this way step numeration may be more confusing to the user. |
PR description was updated according to changes in the last commit. |
Please also update the documentation to reflect the changes. |
try: | ||
step_process = self.run_in_block(self.execute_one_step, step_name, False, | ||
item, step_executor, obj_a.critical) | ||
if not item.background: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also kinda don't like the
if not item.background:
self._run_artifact_collection_step(item.name, step_process.collect_artifacts)
<one line>
if not item.background:
self._run_artifact_collection_step(item.name, e.step_process.collect_artifacts)
part. These lines seem a little too similar. Are we sure this cannot be fixed somehow?
Please note that this is breaking change. Some configs expect that artifacts will be collected at the end of all steps. |
Log examples in the PR description were extended. |
This change was requested for conditional steps artifacts collections easier development.
Relates #717
Logic before:
Logic now:
2.1. Step execution
2.2. Step's artifacts collection
Log before:
Log now:
Background steps example: