• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 21552830208

31 Jan 2026 11:40PM UTC coverage: 80.277% (-0.05%) from 80.324%
21552830208

Pull #23062

github

web-flow
Merge 808a9786c into 2c4dcf9cf
Pull Request #23062: Remove support for Get

18 of 25 new or added lines in 4 files covered. (72.0%)

17119 existing lines in 541 files now uncovered.

78278 of 97510 relevant lines covered (80.28%)

3.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.0
/src/python/pants/bsp/spec/log.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
UNCOV
3
from __future__ import annotations
2✔
4

UNCOV
5
from dataclasses import dataclass
2✔
UNCOV
6
from enum import Enum
2✔
UNCOV
7
from typing import Any
2✔
8

UNCOV
9
from pants.bsp.spec.base import TaskId
2✔
UNCOV
10
from pants.bsp.spec.notification import BSPNotification
2✔
11

12
# -----------------------------------------------------------------------------------------------
13
# Log message
14
# See https://build-server-protocol.github.io/docs/specification.html#log-message
15
# -----------------------------------------------------------------------------------------------
16

17

UNCOV
18
class MessageType(Enum):
2✔
19
    # An error message.
UNCOV
20
    ERROR = 1
2✔
21
    # A warning message.
UNCOV
22
    WARNING = 2
2✔
23
    # An information message.
UNCOV
24
    INFO = 3
2✔
25
    # A log message.
UNCOV
26
    LOG = 4
2✔
27

28

UNCOV
29
@dataclass(frozen=True)
2✔
UNCOV
30
class LogMessageParams(BSPNotification):
2✔
UNCOV
31
    notification_name = "build/logMessage"
2✔
32

33
    # The message type. See {@link MessageType}
UNCOV
34
    type_: MessageType
2✔
35

36
    # The actual message
UNCOV
37
    message: str
2✔
38

39
    # The task id if any.
UNCOV
40
    task: TaskId | None = None
2✔
41

42
    # The request id that originated this notification.
UNCOV
43
    origin_id: str | None = None
2✔
44

UNCOV
45
    def to_json_dict(self) -> dict[str, Any]:
2✔
46
        result: dict[str, Any] = {
×
47
            "message": self.message,
48
            "type": self.type_.value,
49
        }
50
        if self.task is not None:
×
51
            result["task"] = self.task.to_json_dict()
×
52
        if self.origin_id is not None:
×
53
            result["originId"] = self.origin_id
×
54
        return result
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc