google-research / google-research/kubric

Error in logs when launching on cloud

Open
#296 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
2.8k
Forks
278
PR merge metrics
No merged PRs in 30d

Description

This was happening (erroneous things marked as errors):
![image](https://github.com/google-research/kubric/assets/4480573/50448df6-fa30-42b1-860c-bf812884823d)

Narrowed it down to this line:
https://github.com/google-research/kubric/blob/bb534357a0e3a316979bfc35900279737b3cbf26/kubric/utils.py#L108

@Qwlouse should we disable the formatter?
As seen below, it was logging as info, yet reporting as error on cloud...

```
def log_my_flags(flags):
flags_string = pprint.pformat(vars(flags), indent=2, width=100)
logger.info(flags_string)
```

p.s. still running like a charm ❤️

Contributor guide

Open the contributing guide

Research direction

Start at kubric/utils.py line 108 and inspect how log_my_flags sends the formatted flags through logger.info. Reproduce a cloud launch and compare the local log level with the cloud-rendered level. Done means informational output is no longer reported as an error in the cloud logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cloud, observability
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.