Skip to content
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

Remove dead code in package.py causing deployments to fail #4612

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

vitorguidi
Copy link
Collaborator

@vitorguidi vitorguidi commented Jan 15, 2025

This fixes the following error:

  File "/usr/local/google/home/metzman/clusterfuzz-311/butler.py", line 421, in <module>                                                                                                                           
    sys.exit(main())                                                                                                                                                                                               
             ^^^^^^                                                                                                                                                                                                
  File "/usr/local/google/home/metzman/clusterfuzz-311/butler.py", line 407, in main                                                                                                                               
    return command.execute(args)                                                                                                                                                                                   
           ^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                   
  File "/usr/local/google/home/metzman/clusterfuzz-311/src/local/butler/deploy.py", line 576, in execute                                                                                                           
    package.package(                                                                                                                                                                                               
  File "/usr/local/google/home/metzman/clusterfuzz-311/src/local/butler/package.py", line 87, in package
    py_unittest.execute(args={})                                                                                                                                                                                   
  File "/usr/local/google/home/metzman/clusterfuzz-311/src/local/butler/py_unittest.py", line 299, in execute                                 
    target=args.target,                                                                                                                                                                                            
           ^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'target'

This happens to dead code in package.py that should have been deleted, the actual functionality lives in butler deploy.

Copy link
Collaborator

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for fixing this.

@vitorguidi vitorguidi merged commit e608eee into master Jan 15, 2025
7 checks passed
@vitorguidi vitorguidi deleted the fix/unit-tests-deploy branch January 15, 2025 20:54
vitorguidi added a commit that referenced this pull request Jan 15, 2025
This fixes the following error:

```
  File "/usr/local/google/home/metzman/clusterfuzz-311/butler.py", line 421, in <module>                                                                                                                           
    sys.exit(main())                                                                                                                                                                                               
             ^^^^^^                                                                                                                                                                                                
  File "/usr/local/google/home/metzman/clusterfuzz-311/butler.py", line 407, in main                                                                                                                               
    return command.execute(args)                                                                                                                                                                                   
           ^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                   
  File "/usr/local/google/home/metzman/clusterfuzz-311/src/local/butler/deploy.py", line 576, in execute                                                                                                           
    package.package(                                                                                                                                                                                               
  File "/usr/local/google/home/metzman/clusterfuzz-311/src/local/butler/package.py", line 87, in package
    py_unittest.execute(args={})                                                                                                                                                                                   
  File "/usr/local/google/home/metzman/clusterfuzz-311/src/local/butler/py_unittest.py", line 299, in execute                                 
    target=args.target,                                                                                                                                                                                            
           ^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'target'
```
@vitorguidi vitorguidi changed the title Fixing typo in py_unittest breaking deployments Remove dead code in package.py causing deployments to fail Jan 15, 2025
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.

2 participants