diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8254b5..0eae951 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/deploy/taxi.mojo b/deploy/taxi.mojo index 4922988..9782593 100644 --- a/deploy/taxi.mojo +++ b/deploy/taxi.mojo @@ -44,7 +44,6 @@ from std.time import perf_counter_ns from arrow_mlake import RecordBatch from iceberg import ( - FileIO, FileScanTask, ScanOptions, TableMetadata, diff --git a/src/dista/metrics.mojo b/src/dista/metrics.mojo index d1c64ab..c13af6a 100644 --- a/src/dista/metrics.mojo +++ b/src/dista/metrics.mojo @@ -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 diff --git a/src/dista/runtime.mojo b/src/dista/runtime.mojo index f7bd960..1932007 100644 --- a/src/dista/runtime.mojo +++ b/src/dista/runtime.mojo @@ -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 ( diff --git a/src/dista/socket.mojo b/src/dista/socket.mojo index 54e29c7..0eac08c 100644 --- a/src/dista/socket.mojo +++ b/src/dista/socket.mojo @@ -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 diff --git a/src/dista/store.mojo b/src/dista/store.mojo index 114a113..f4fdc23 100644 --- a/src/dista/store.mojo +++ b/src/dista/store.mojo @@ -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 diff --git a/tests/autoscale_driver.mojo b/tests/autoscale_driver.mojo index 5ec1c60..260bfa0 100644 --- a/tests/autoscale_driver.mojo +++ b/tests/autoscale_driver.mojo @@ -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 diff --git a/tests/compile_fail/nested_ref.mojo b/tests/compile_fail/nested_ref.mojo index 25e5d93..11a3fff 100644 --- a/tests/compile_fail/nested_ref.mojo +++ b/tests/compile_fail/nested_ref.mojo @@ -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 diff --git a/tests/test_fetch.mojo b/tests/test_fetch.mojo index a0ea87b..e97c070 100644 --- a/tests/test_fetch.mojo +++ b/tests/test_fetch.mojo @@ -18,7 +18,6 @@ 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, @@ -26,7 +25,7 @@ from dista.frame import ( 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 diff --git a/tests/test_head_drivers.mojo b/tests/test_head_drivers.mojo index 1472aa3..dad5a44 100644 --- a/tests/test_head_drivers.mojo +++ b/tests/test_head_drivers.mojo @@ -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 diff --git a/tests/test_sizing.mojo b/tests/test_sizing.mojo index 074c87d..e29c49d 100644 --- a/tests/test_sizing.mojo +++ b/tests/test_sizing.mojo @@ -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