Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: magmalake/customs@v0.3.1
- uses: magmalake/customs@v0.4.0

# One check for every Linux job above: each passed, or, for a prose-only
# PR, was skipped. The jobs' own checks still report too, so the ruleset's
Expand Down
1 change: 0 additions & 1 deletion deploy/taxi.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ from std.time import perf_counter_ns

from arrow_mlake import RecordBatch
from iceberg import (
FileIO,
FileScanTask,
ScanOptions,
TableMetadata,
Expand Down
3 changes: 1 addition & 2 deletions src/dista/metrics.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ well under a millisecond, but a client that connects and sends nothing holds
it for the timeout.
"""

from std.ffi import c_int
from std.os import getenv

from dista.socket import Listener, Stream, poll_readable, recv_some
from dista.socket import Listener, poll_readable, recv_some

comptime READ_TIMEOUT_MS = 200

Expand Down
1 change: 0 additions & 1 deletion src/dista/runtime.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ an `ObjectRef` like a task does; `checkpoint` saves its state to
"""

from std.os import getenv
from std.time import perf_counter_ns, sleep

from dista.auth import send_auth
from dista.client import (
Expand Down
2 changes: 1 addition & 1 deletion src/dista/socket.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ closed peer is kept from raising SIGPIPE; `platform_map` picks the right value
for each.
"""

from std.ffi import c_int, c_size_t, c_ssize_t, c_uint, external_call, get_errno
from std.ffi import c_int, c_uint, external_call, get_errno
from std.memory import Pointer, stack_allocation
from std.os import getenv
from std.sys.info import CompilationTarget, platform_map
Expand Down
2 changes: 1 addition & 1 deletion src/dista/store.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ since mapped files are padded.
"""

from std.ffi import c_int, c_size_t, external_call
from std.memory import stack_allocation, unsafe_memcpy
from std.memory import stack_allocation
from std.os import getenv
from std.sys.info import CompilationTarget
from std.time import perf_counter_ns
Expand Down
1 change: 0 additions & 1 deletion tests/autoscale_driver.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ starts and drains workers from `dista scale --once`; every result must come
back exact.
"""

from std.os import getenv
from std.time import sleep

from dista import ObjectRef, Runtime, Task
Expand Down
2 changes: 1 addition & 1 deletion tests/compile_fail/nested_ref.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ refs only as the argument, in a list, or beside a value; nested ones would
need Ray's borrowing. tests/compile_fail.sh checks the error names the fix.
"""

from dista import ObjectRef, Runtime, Seq, Task
from dista import ObjectRef, Runtime, Task


@fieldwise_init
Expand Down
3 changes: 1 addition & 2 deletions tests/test_fetch.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ from dista import ObjectRef, Runtime, Seq, Task
from dista.client import TaskContext
from dista.conn import BIG_FRAME, Conn
from dista.frame import (
KIND_ERROR,
KIND_FETCH,
KIND_PART,
KIND_RESULT,
Frame,
Parts,
fetch_payload,
)
from dista.socket import Stream, stream_pair
from dista.socket import stream_pair
from dista.store import Location, write_shared
from dista.task import StatePtr
from dista.worker import SERVE_CHUNK, SERVE_WINDOW, Worker, _Outgoing
Expand Down
1 change: 0 additions & 1 deletion tests/test_head_drivers.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ head before it made.

from std.os import setenv, unsetenv
from std.testing import TestSuite, assert_equal, assert_false, assert_true
from std.time import sleep

from dista.codec import get_scalar, put_scalar
from dista.conn import Conn
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sizing.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ from dista.sizing import (
parse_pressure,
resident_bytes,
)
from dista.socket import Listener, Stream, stream_pair
from dista.socket import Listener, stream_pair
from dista.task import StatePtr
from dista.worker import Worker

Expand Down
Loading