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 @@ -174,7 +174,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: magmalake/customs@v0.3.0
- uses: magmalake/customs@v0.4.0

# `test` and `image`, the checks main's ruleset requires: each passes once
# every architecture's job has (skipped counts).
Expand Down
1 change: 0 additions & 1 deletion pipelines/gharchive_index.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ events are skipped.
"""

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

from dista import ObjectRef, Task
from morca import Ctx, Daily, Day, Mapped, Pipeline, Step, Tasks, morca_main
Expand Down
1 change: 0 additions & 1 deletion pipelines/mojo_activity.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ from dista import ObjectRef, Task
from morca import Ctx, Daily, Day, Mapped, Pipeline, Step, Tasks, morca_main
from morca.civil import now
from morca.tables import BatchBuilder, Table, append, ensure_table, scan, table
from parquet import RecordBatch

from activity import (
ActivityRow,
Expand Down
4 changes: 1 addition & 3 deletions pipelines/mojo_live.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ from morca.civil import now
from morca.tables import BatchBuilder, append, ensure_table, scan, table
from parquet import RecordBatch

from cols import col, i64_at, str_at
from cols import col, str_at
from fetch import github_graphql
from jscan import days_from_civil
from lake import (
Expand All @@ -59,10 +59,8 @@ from live import (
Asked,
ask_heads,
LiveCommit,
heads_query,
history_query,
new_since,
parse_heads,
parse_history,
)
from replace import replace_files
Expand Down
2 changes: 1 addition & 1 deletion pipelines/mojo_repos.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ from morca.civil import now
from morca.tables import BatchBuilder, append, ensure_table, scan, table
from parquet import RecordBatch

from cols import col, i64_at, str_at, str_range
from cols import col, i64_at, str_at
from detect import Candidate, RepoInfo, Verdict, note, search_candidates, verify
from hourindex import candidates_from
from days import days_of
Expand Down
1 change: 0 additions & 1 deletion pipelines/mojo_retool.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ from morca import Ctx, Gather, Name, Pipeline, Step, Tasks, morca_main
from morca.keyed import Keyed
from morca.tables import ensure_table, scan, table
from dista import Seq
from parquet import RecordBatch

from history import CommitRow, History, MigrationRow, TagRow, read_history
from historyrows import (
Expand Down
2 changes: 1 addition & 1 deletion pipelines/mojo_versions.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ from dista import ObjectRef, Seq, Task
from morca.civil import now
from morca import Ctx, Gather, Name, Pipeline, Step, Tasks, morca_main
from morca.keyed import Keyed
from morca.tables import ensure_table, scan, table
from morca.tables import ensure_table, scan

from deps import RepoDep, decode_deps
from headversion import HeadVersion, read_head_version
Expand Down
2 changes: 1 addition & 1 deletion src/activity.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ from dista import Seq
from morca.tables import BatchBuilder, load_dataset
from parquet import RecordBatch

from cols import bool_at, col, i32_at, i64_at, str_at, str_range
from cols import bool_at, col, i32_at, i64_at, str_at
from days import day_text, days_of
from jscan import Range, field, text, timestamp_micros
from lake import (
Expand Down
3 changes: 1 addition & 2 deletions src/console_live.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ from console_layout import _empty, _page
from console_pages import page_json, page_line
from jscan import micros_to_iso
from lake import try_load
from live import Freshness, LiveCommit, freshness
from model import day
from live import LiveCommit, freshness
from swap import Swap
from threads import OpaquePtr

Expand Down
1 change: 0 additions & 1 deletion src/headversion.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ root `pixi.toml`, `mojoproject.toml`, `pyproject.toml`, `requirements*.txt`
and a `recipe.yaml` of its own), the rows of `mojo.repo_deps`.
"""

from std.os import getenv

from deps import Dep, declared_count, dedupe, encode_deps, is_recipe, manifest_deps
from command import STDERR_DROP, TIMED_OUT, git, remove_tree
Expand Down
2 changes: 1 addition & 1 deletion src/history.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ from dista import Seq
from contributors import AuthorMonth, read_authors
from filemix import FileMix

from command import STDERR_DROP, STDERR_MERGE, TIMED_OUT, git, make_dirs, remove_tree
from command import STDERR_DROP, STDERR_MERGE, git, make_dirs, remove_tree
from retry import backoff_ms, env_int, log_retry, nap_ms
from deps import names_mojo_pkg
from versions import (
Expand Down
1 change: 0 additions & 1 deletion tests/test_checks.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ from std.testing import TestSuite, assert_equal, assert_false, assert_true
from checks import (
Check,
CheckRun,
PageFacts,
RepoFacts,
Tops,
notice,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_console_routes.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ from std.testing import TestSuite, assert_equal, assert_false, assert_true
from flare.http import Request, Response, Router

from checks import CheckRun
from console_ai import html_text, llms_txt
from console_ai import html_text
from console_cache import Cache, RepoData
from console_repo import Months, chart_view, month_counts, month_span
from console_repo import chart_view, month_counts, month_span
from issues import IssueRow
from console_layout import SITE_URL
from console_live import LiveData
Expand Down
1 change: 0 additions & 1 deletion tests/test_datafiles.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ from iceberg.io import FileIO
from iceberg.schema import Schema
from iceberg.transforms import PartitionField, PartitionSpec, parse_transform
from lake import EVENTS_SCHEMA
from morca.tables import DataFiles as FileEntries
from morca.tables import Table, write_files


Expand Down
2 changes: 1 addition & 1 deletion tests/test_embedtext.mojo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The input text, hashes and vector bytes of mojo.repo_embeddings, and a
# batch of rows read back as written. No model needed.

from std.testing import assert_equal, assert_not_equal, assert_true, TestSuite
from std.testing import assert_equal, assert_not_equal, TestSuite

from embedtext import (
EmbedRow,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_eventsoff.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ from morca.tables import Table
from parquet import ParquetReader
from parquet_full import AllCodecs

from datafiles import DataFiles, TableWriter
from datafiles import TableWriter
from events import ROWS_PER_BATCH, decode_hour, keep_events
from gzstream import Whole
from lake import (
Expand Down
2 changes: 1 addition & 1 deletion tests/test_history.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _sh(cmd: String, timeout_ms: Int = 0) raises -> Tuple[Int, String]:
"""`cmd` run with `sh` (the tests set repositories up with it; the census
itself runs git without a shell)."""
return command(["/bin/sh", "-c", cmd], timeout_ms)
from history import CommitRow, MigrationRow, TagRow, join_tags, parse_tags
from history import join_tags, parse_tags


def _log() -> String:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hourindex.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ from detect import Candidate, scan_event
from events import EventParser
from hourindex import HourIndex, candidates_from, write_marker
from lake import CANDIDATES_SCHEMA, GH_RELEASES_SCHEMA, REPO_HOUR_SCHEMA
from jscan import Range, field, scan_event as scan_line, text, timestamp_micros
from jscan import Range, scan_event as scan_line, text, timestamp_micros


def _line(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from std.time import perf_counter_ns

from iceberg.batch import ColumnBuilder, NestedBuilder, batch_of, batch_of_columns
from iceberg.nested import ColumnTree
from iceberg.catalog.filesystem import FilesystemCatalog, Table
from iceberg.catalog.filesystem import FilesystemCatalog
from iceberg.schema import Schema
from morca.tables import Table as LakeTable
from iceberg.json import json_quote
Expand Down
1 change: 0 additions & 1 deletion tests/test_overview.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ from listing import (
NEW_30D,
NEW_LAST_MONTH,
NEW_MONTH,
ListQuery,
list_url,
parse_list_query,
select_repos,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_republish.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fork of it (`deps.republishes`).

from std.testing import TestSuite, assert_equal, assert_false, assert_true

from deps import DEPENDS, Dep, ForkOf, PROVIDES, RepoDep, manifest_deps, republishes, resolve
from deps import Dep, ForkOf, PROVIDES, RepoDep, manifest_deps, republishes, resolve
from detect import Candidate, parse_search, scan_event, search_queries
from jscan import Range, scan_event as scan_line, text, timestamp_micros

Expand Down
2 changes: 1 addition & 1 deletion tools/compare_activity.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ from std.time import perf_counter_ns
from activity import Acc, ReleaseRow, add_event, day_activity, encode_job, finish
from cols import str_at, str_range
from days import day_text, days_of
from lake import EVENTS, GH_RELEASES, REPO_HOUR, load
from lake import load


def main() raises:
Expand Down
Loading