Skip to content

ALI-2161: License Alias Calc under MIT (0.1.2) - #15

Merged
michaelaguiar merged 4 commits into
mainfrom
aliasbot/alias-calc-mit-licence
Nov 26, 2026
Merged

michaelaguiar merged 4 commits into
mainfrom
aliasbot/alias-calc-mit-licence

Conversation

@michaelaguiar

@michaelaguiar michaelaguiar commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Alias Calc is going open source under the MIT License, like omacalc and Gannet.

  • LICENSE: MIT, "Copyright (c) 2026 Alias Project, Inc.", Gannet's text and copyright line.
  • Cargo.toml: license = "MIT" for both crates, in place of LicenseRef-Proprietary.
  • README: a Licence section. It also names the SIL Open Font License 1.1 (fonts/OFL.txt) that covers the JetBrains Mono subsets compiled into the binary.
  • Version: 0.1.2, so the package carries the licence.
  • CI: runs on GitHub-hosted ubuntu-24.04, as Gannet's does, instead of the self-hosted home runner. A public repo's pull requests can come from anyone, and the home runner's group takes private repos only.

Check

  • cargo clippy -D warnings and cargo test --workspace (98 + 3) pass. alias-calc --version prints 0.1.2.
  • The repo's whole history (36 commits, all by one author) has no keys, tokens, passwords, internal addresses, home paths or private-repo references, so it can be made public as it is.

After the merge

  1. Create the signed tag v0.1.2 on the merge commit and push it.
  2. Make aliasproject/alias-calc public.
  3. Move the alias-calc package from [aliasos-private] to [aliasos] in aliasos-pkgs.

Linear: ALI-2161

Alias Calc is going open source, under the MIT License like omacalc and
Gannet, with Gannet's copyright line. The JetBrains Mono subsets compiled
into the binary stay under the SIL Open Font License 1.1 (fonts/OFL.txt);
the README names both. Version 0.1.2, so the package carries the licence.
@linear-code

linear-code Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
ALI-2161 Open-source Alias Calc under MIT and publish it in the public [aliasos] repo

Mike decided on 2026-11-26 that Alias Calc will be open source, under the MIT License like omacalc and Gannet. The copyright line is "Alias Project, Inc.", as in Gannet. Being public lets it replace GNOME Calculator for every aliasOS install (ALI-2105). As a private package, it could only reach machines with access to [aliasos-private].

Done when

  • alias-calc has a LICENSE file (MIT), and both crates say license = "MIT". The README names the licence, and the font licence (fonts/OFL.txt) for the embedded JetBrains Mono subsets.
  • It's released as 0.1.2, so the package ships the licence.
  • The GitHub repo aliasproject/alias-calc is public.
  • In aliasos-pkgs, alias-calc is no longer private:
    • the metadata no longer says private;
    • the PKGBUILD says license=('MIT' 'OFL-1.1') and installs both licence files;
    • the private-only notes are gone from the README, doctor and the tests.
  • 0.1.2 is released to edge, and the 0.1.x builds are removed from [aliasos-private].

Review in Linear

The repo is going public. The org's self-hosted home runners are in a group
that takes private repos only, and a public repo's pull requests would
otherwise run outside code as root on the home VM. ubuntu-24.04 is free for
public repos, and outside contributors' first pull requests wait for
approval. The home-runner housekeeping (a clean $HOME, handing the
workspace back to uid 1001) goes with it.
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 1 ran code-review in full.

Confirmed

  • LICENSE matches Gannet's: MIT, "Copyright (c) 2026 Alias Project, Inc.".
  • Both crates say MIT, and Cargo.toml and Cargo.lock are at 0.1.2.
  • fonts/OFL.txt is the complete OFL 1.1, with JetBrains' copyright line. The font subsets keep their copyright and licence in their name tables.
  • Every dependency checked (fontdue, rust_decimal, smithay-client-toolkit, rustix, accesskit) is under a permissive licence; no copyleft crates.
  • The icons and bench scripts are original work.
  • All 37 commits have no secrets, tokens, keys, LAN addresses or internal hostnames.

Fixed

  • P2, CI on the home runner: ci.yml ran on: pull_request on [self-hosted, home]. Once public, a fork's pull request would run outside code as root on the home VM. The org's runner group takes private repos only anyway. Fixed in the newest commit: the job runs on ubuntu-24.04, GitHub-hosted, as Gannet's does, and the home-runner housekeeping steps are gone. Outside contributors' first pull requests wait for approval (first_time_contributors). CI passed on a hosted runner.

Declined

  • install.sh doesn't install the licence files: the aliasos-pkgs PKGBUILD installs LICENSE and fonts/OFL.txt to /usr/share/licenses/alias-calc/, as Gannet's does. A ~/.local install comes from a checkout that already holds both files.
  • Ticket references (P-ALI-28, ALI-…) and a /home/m test fixture: not sensitive.
  • Cargo.toml could say MIT AND OFL-1.1: the crate's own code is MIT, and the README names the font licence.
  • alias-calc-a11y stays at 0.1.0: an internal crate, never published.

Round 2 covers the CI commit.

On a GitHub-hosted runner the 200-frame average came in near 0.8 ms
against the 1 ms budget, close enough that a noisy neighbour could fail a
PR that never touched the renderer. The test now takes the best of 10
batches of 40 frames: a stall slows one batch, not the renderer. The CI
step prints both timings (--nocapture), so the margin shows in the log.

Also: checkout no longer leaves the token in git's config while pull
request code runs (persist-credentials: false, as Gannet does).
Even the best batch took 1.06 ms on a GitHub-hosted runner, where the
desktop takes 0.53 ms: 1 ms is a budget for an aliasOS desktop, not for
shared CI hardware. ALIAS_CALC_FRAME_BUDGET_US overrides the limit (1000
by default); CI sets 3000, which still fails a renderer that has got
several times slower.
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 2 covered the CI runner commit. It found no P1 problems.

Confirmed for a public repo

  • No self-hosted runner left in .github/.
  • No pull_request_target and no secrets.
  • permissions: contents: read, and nothing writes or uploads.
  • The container, Rust and install steps work on a hosted runner.

Fixed

  • P2, the frame budget is flaky on hosted runners: confirmed. Hosted runners vary from run to run: the best of 10 batches took 1.06 ms on one and 0.76 ms on another, against 0.53 ms on the desktop.
    • The test now takes the best of 10 batches of 40 frames, so one stalled batch doesn't fail it.
    • ALIAS_CALC_FRAME_BUDGET_US overrides the 1 ms limit. CI sets 3 ms, which still catches a renderer that has become several times slower. A 100 µs limit fails locally, which shows the variable is read.
    • CI prints both timings (--nocapture).
  • P3: actions/checkout now has persist-credentials: false, as Gannet's does, so the token isn't left in git's config while pull request code runs.
  • P3: the header comment now says "open source" instead of claiming the repo is already public.

Noted

  • The fork pull request approval policy can't be set on a private repo (the API returns "not allowed for private repositories"). Check it once the repo is public. Gannet's is first_time_contributors.
  • install.sh and the licence files, and the PKGBUILD's license=: both are handled in aliasos-pkgs#92, whose package() installs LICENSE and OFL.txt and declares MIT and OFL-1.1.

@michaelaguiar
michaelaguiar merged commit 59d1ace into main Nov 26, 2026
1 check passed
@michaelaguiar
michaelaguiar deleted the aliasbot/alias-calc-mit-licence branch November 26, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant