Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apertium/apertium-stats-service
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: vba29b94f816fd17de3a6645fca2e5f0b021b2b5e
Choose a base ref
...
head repository: apertium/apertium-stats-service
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 10 commits
  • 17 files changed
  • 3 contributors

Commits on Mar 8, 2021

  1. Copy the full SHA
    2990d46 View commit details
  2. Copy the full SHA
    447e6bc View commit details

Commits on Mar 13, 2021

  1. Copy the full SHA
    c8cd727 View commit details
  2. Copy the full SHA
    a554a55 View commit details
  3. Fix synchronous stat fetching response type (#79)

    * wow
    
    * whoops
    sushain97 authored Mar 13, 2021
    Copy the full SHA
    dd68842 View commit details
  4. Copy the full SHA
    c83afe7 View commit details
  5. count lexd entries using tree-sitter instead of by compiling (#77)

    * start on tree-sitter lexd analysis
    
    * finish lexd counter stuff
    
    * update github test runner
    
    * run cargo fmt
    
    * make linter happy
    
    * formatting
    
    * checkout submodules, don't .unwrap(), borrow strings
    
    * make clippy happy
    mr-martian authored Mar 13, 2021
    Copy the full SHA
    9d8e370 View commit details
  6. Mostly fix coverage workflow & other minor tweaks (#82)

    * Bump timeout for coverage runs
    
    * Switch submodule to apertium org
    
    * Bump reset duration to 10m in future
    
    * Tweak some names
    
    * Add --debug
    
    * Try downgrading
    
    * Exclude rlx
    
    * Why did I ever enable this???
    sushain97 authored Mar 13, 2021
    Copy the full SHA
    7cbfb9d View commit details

Commits on Mar 16, 2021

  1. Replace cg-comp with tree-sitter (#83)

    * First attempt
    
    * Bump tree-sitter-apertium
    
    * Toss core tool installation
    
    * Single cc build
    
    * Tweaks
    
    * Bump tree-sitter-apertium
    sushain97 authored Mar 16, 2021
    Copy the full SHA
    c32d21f View commit details

Commits on May 27, 2021

  1. Copy the full SHA
    3a143db View commit details
Showing with 1,115 additions and 211 deletions.
  1. +10 −18 .github/workflows/check.yml
  2. +2 −0 .github/workflows/publish.yml
  3. +3 −0 .gitmodules
  4. +0 −2 .rustfmt.toml
  5. +817 −12 Cargo.lock
  6. +5 −0 Cargo.toml
  7. +5 −0 README.md
  8. +1 −1 api.html
  9. +12 −0 build.rs
  10. +25 −17 src/main.rs
  11. +59 −0 src/stats/lexd.rs
  12. +7 −86 src/stats/mod.rs
  13. +32 −0 src/stats/rlx.rs
  14. +1 −0 src/stats/tree-sitter-apertium
  15. +48 −5 src/tests/common.rs
  16. +6 −0 src/tests/fixtures/package_listing.jsonl
  17. +82 −70 src/worker.rs
28 changes: 10 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Check
on:
on:
- push
- pull_request
env:
CARGO_TERM_COLOR: always
DIESEL_CLI_VERSION: '1.4.1'
DIESEL_CLI_VERSION: "1.4.1"
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
@@ -35,6 +37,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
@@ -43,11 +47,6 @@ jobs:
- name: Restore Rust cache
uses: Swatinem/rust-cache@v1

- name: Install apertium-all-dev
run: wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
- name: Install other language tools
run: sudo apt-get install cg3 lexd

- name: Install diesel_cli
uses: actions-rs/install@v0.1
with:
@@ -58,13 +57,13 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
coverage:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
@@ -73,11 +72,6 @@ jobs:
- name: Restore Rust cache
uses: Swatinem/rust-cache@v1

- name: Install apertium-all-dev
run: wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
- name: Install other language tools
run: sudo apt-get install cg3 lexd

- name: Install diesel_cli
uses: actions-rs/install@v0.1
with:
@@ -87,10 +81,8 @@ jobs:
- name: Run tests with coverage
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.16.0'
args: --out Lcov
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
version: "0.16.0"
args: --out Lcov --timeout 120 --exclude-files src/stats/tree-sitter-apertium/*
- name: Upload coverage
uses: coverallsapp/github-action@master
with:
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/stats/tree-sitter-apertium"]
path = src/stats/tree-sitter-apertium
url = https://github.com/apertium/tree-sitter-apertium.git
2 changes: 0 additions & 2 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
condense_wildcard_suffixes = true
match_block_trailing_comma = true
imports_granularity = "Crate"
report_fixme = "Unnumbered"
report_todo = "Unnumbered"
unstable_features = true
use_field_init_shorthand = true
use_try_shorthand = true
Loading