Skip to content

secondary error: process_ossf_dependency_metrics Error: local variable \'required_output\' referenced before assignment #3052

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

Open
cdolfi opened this issue Mar 12, 2025 · 1 comment
Labels
bug Documents unexpected/wrong/buggy behavior

Comments

@cdolfi
Copy link
Contributor

cdolfi commented Mar 12, 2025

On our instance we have gotten 2000+ of this error since core has been unblocked

Exception:

<MaybeEncodingError: Error sending result: ''(1, <ExceptionInfo: MetadataException("local variable 'required_output' referenced before assignment | Additional metadata: An error occurred while generating the scorecard: local variable 'required_output' referenced before assignment")>, 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")''.>

Traceback (most recent call last):

File "/opt/venv/lib/python3.9/site-packages/billiard/pool.py", line 366, in workloop put((READY, (job, i, result, inqW_fd))) File "/opt/venv/lib/python3.9/site-packages/billiard/queues.py", line 366, in put self.send_payload(ForkingPickler.dumps(obj)) File "/opt/venv/lib/python3.9/site-packages/billiard/reduction.py", line 56, in dumps cls(buf, protocol).dump(obj) billiard.pool.MaybeEncodingError: Error sending result: ''(1, <ExceptionInfo: MetadataException("local variable 'required_output' referenced before assignment | Additional metadata: An error occurred while generating the scorecard: local variable 'required_output' referenced before assignment")>, 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")''.

@cdolfi cdolfi added the bug Documents unexpected/wrong/buggy behavior label Mar 12, 2025
@cdolfi cdolfi changed the title process_ossf_dependency_metrics Error: local variable \'required_output\' referenced before assignment secondary error: process_ossf_dependency_metrics Error: local variable \'required_output\' referenced before assignment Mar 12, 2025
@MoralCode
Copy link
Contributor

Was this happening at all before #3012 got merged?

I would be curious to see if #3076 fixes this too

@cdolfi cdolfi added this to Augur TSC Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documents unexpected/wrong/buggy behavior
Projects
Status: No status
Development

No branches or pull requests

2 participants