Closed Bug 1802171 Opened 3 years ago Closed 3 years ago

TypeError when running ./mach static-analysis

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1800056

People

(Reporter: bdk, Unassigned)

References

(Blocks 1 open bug)

Details

When I run ./mach static-analysis check --outgoing locally, I get the following error:

TypeError: Unknown terminal capability, 'dim', or, TypeError for arguments ('Processing',): 'str' object cannot be interpreted as an integer

  File "/home/bdk/gecko/uniffi-callbacks/python/mozbuild/mozbuild/code_analysis/mach_commands.py", line 410, in check
    rc = command_context.run_process(
  File "/home/bdk/gecko/uniffi-callbacks/python/mach/mach/mixin/process.py", line 109, in run_process
    self.log(logging.INFO, "new_process", {"args": " ".join(args)}, "{args}")
  File "/home/bdk/gecko/uniffi-callbacks/python/mach/mach/mixin/logging.py", line 53, in log
    self._logger.log(level, format_str, extra={"action": action, "params": params})
  File "/usr/lib64/python3.10/logging/__init__.py", line 1547, in log
    self._log(level, msg, args, **kwargs)
  File "/usr/lib64/python3.10/logging/__init__.py", line 1624, in _log
    self.handle(record)
  File "/usr/lib64/python3.10/logging/__init__.py", line 1634, in handle
    self.callHandlers(record)
  File "/home/bdk/gecko/uniffi-callbacks/third_party/python/sentry_sdk/sentry_sdk/integrations/logging.py", line 77, in sentry_patched_callhandlers
    return old_callhandlers(self, record)
  File "/usr/lib64/python3.10/logging/__init__.py", line 1696, in callHandlers
    hdlr.handle(record)
  File "/usr/lib64/python3.10/logging/__init__.py", line 968, in handle
    self.emit(record)
  File "/home/bdk/gecko/uniffi-callbacks/python/mozbuild/mozbuild/controller/building.py", line 626, in emit
    self.footer.draw()
  File "/home/bdk/gecko/uniffi-callbacks/python/mozbuild/mozbuild/controller/building.py", line 778, in draw
    self.write(parts)
  File "/home/bdk/gecko/uniffi-callbacks/python/mozterm/mozterm/widgets.py", line 47, in write
    encoded = attribute(part)
  File "/home/bdk/gecko/uniffi-callbacks/third_party/python/blessed/blessed/formatters.py", line 101, in __call__
    raise TypeError(

I think this was fixed in bug 1800056 (in D162274), it looks like it never landed. Can you try running ./mach static-analysis check --outgoing on top of that patch? If it works for you, we can close this as a duplicate of bug 1800056.

I'll get it landed in the meantime.

Flags: needinfo?(bdeankawamura)
Severity: -- → S3
Priority: -- → P3

Thanks for the quick response. Applying that patch fixed things for me.

Flags: needinfo?(bdeankawamura)

No problem, glad I could help!

Status: NEW → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1800056
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.