Skip to content

Commit

Permalink
Provide more task info during test failures
Browse files Browse the repository at this point in the history
We're trying to debug a test failure in the CI that we can't
reproduce locally:

https://github.com/pulp/pulp_deb/actions/runs/9898615528/job/27345874499?pr=1061#step:15:3505

Part of the challenge in debugging this is that there's not enough
information to go on because the CI is only outputting the task error
description. Not sure if there's a better way to handle this but in
these cases it seems like printing the entire task details somehow would
be more helpful.

[noissue]
  • Loading branch information
daviddavis authored and mdellweg committed Jul 15, 2024
1 parent ac08d63 commit 80a19db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulpcore/tests/functional/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PulpTaskError(Exception):

def __init__(self, task):
"""Provide task info to exception."""
description = task.to_dict()["error"].get("description")
description = task.to_dict()
super().__init__(self, f"Pulp task failed ({description})")
self.task = task

Expand Down

0 comments on commit 80a19db

Please sign in to comment.