Skip to content

Commit

Permalink
Working to get more information on this error:
Browse files Browse the repository at this point in the history
Traceback (most recent call last):
  File '/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/billiard/pool.py', line 366, in workloop
    put((READY, (job, i, result, inqW_fd)))
  File '/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/billiard/queues.py', line 366, in put
    self.send_payload(ForkingPickler.dumps(obj))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^
  File '/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/billiard/reduction.py', line 56, in dumps
    cls(buf, protocol).dump(obj)
billiard.pool.MaybeEncodingError: Error sending result: ''(1, <ExceptionInfo: MetadataException('\'checks\' | Additional metadata: required_output: {}')>, None)''. Reason: ''PicklingError('Can\'t pickle <class \'augur.tasks.util.metadata_exception.MetadataException\'>: it\'s not the same object as augur.tasks.util.metadata_exception.MetadataException')''.

Signed-off-by: Sean P. Goggins <s@goggins.com>
  • Loading branch information
sgoggins committed Aug 14, 2024
1 parent b5af4ac commit 9aee7ab
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion augur/tasks/git/dependency_tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,24 @@ def process_ossf_dependency_metrics(self, repo_git):

logger = logging.getLogger(process_ossf_dependency_metrics.__name__)

generate_scorecard(logger, repo_git)
try:
generate_scorecard(logger, repo_git)
except Exception as e:
logger.warning(f'Exception generating scorecard: {e}')
raise MetadataException

"""
This try/except block is an attempt to get more information about this occasional error:
```bash
Traceback (most recent call last):
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/billiard/pool.py", line 366, in workloop
put((READY, (job, i, result, inqW_fd)))
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/billiard/queues.py", line 366, in put
self.send_payload(ForkingPickler.dumps(obj))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/billiard/reduction.py", line 56, in dumps
cls(buf, protocol).dump(obj)
billiard.pool.MaybeEncodingError: Error sending result: ''(1, <ExceptionInfo: MetadataException("\'checks\' | Additional metadata: required_output: {}")>, None)''. Reason: ''PicklingError("Can\'t pickle <class \'augur.tasks.util.metadata_exception.MetadataException\'>: it\'s not the same object as augur.tasks.util.metadata_exception.MetadataException")''.
```
"""

0 comments on commit 9aee7ab

Please sign in to comment.