Skip to content

Conversation

@pablo-garay
Copy link
Collaborator

No description provided.

Signed-off-by: Pablo Garay <[email protected]>
@pablo-garay
Copy link
Collaborator Author

/ok to test eb967b5

Copy link
Collaborator

@chtruong814 chtruong814 left a comment

Choose a reason for hiding this comment

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

Some comments to refactor the code.

except subprocess.CalledProcessError as e:
pytest.fail(f"WAN pretrain mock run failed with return code {e.returncode}")
print("STDOUT:", e.stdout)
print("STDERR:", e.stderr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like you want to print out the stdout and stderr regardless? If that's the case, better to do that in a finally block and remove lines 95 and 96. That way, whether it fails or succeeds, you print the stdout and stderr

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

except subprocess.CalledProcessError as e:
pytest.fail(f"DiT pretrain mock run failed with return code {e.returncode}")
print("STDOUT:", e.stdout)
print("STDERR:", e.stderr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like you want to print out the stdout and stderr regardless? If that's the case, better to do that in a finally block and remove lines 77 and 78. That way, whether it fails or succeeds, you print the stdout and stderr

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

Signed-off-by: Pablo Garay <[email protected]>
Signed-off-by: Pablo Garay <[email protected]>
@pablo-garay
Copy link
Collaborator Author

/ok to test 882194d

@pablo-garay pablo-garay merged commit f824d18 into main Nov 20, 2025
12 of 14 checks passed
sajadn pushed a commit that referenced this pull request Nov 20, 2025
* tests: add more logs

Signed-off-by: Pablo Garay <[email protected]>

* update

Signed-off-by: Pablo Garay <[email protected]>

* update2

Signed-off-by: Pablo Garay <[email protected]>

---------

Signed-off-by: Pablo Garay <[email protected]>
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.

3 participants