Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5a253ed
Build out Rust unit tests/coverage reporting
forstmeier Feb 8, 2026
fc25fbf
Change test coverage output location
forstmeier Feb 8, 2026
dd97775
Address pull request #752 feedback: refactor tests and improve CI rob…
forstmeier Feb 8, 2026
6fa04d3
Remove coverage file check from Rust workflow
forstmeier Feb 8, 2026
ae97ee0
Address pull request #752 feedback: refine error handling and test co…
forstmeier Feb 8, 2026
bbbdb31
Fix Flox dependency error
forstmeier Feb 8, 2026
d937c45
Address pull request #752 feedback: fix coverage tool mismatch
forstmeier Feb 8, 2026
4b8dc25
Expand unit tests/update code tests GitHub workflows
forstmeier Feb 9, 2026
5139536
Update GitHub workflow code check "detect changes" job outputs
forstmeier Feb 9, 2026
e1d76b0
Add push trigger for testing workflow on feature branch
forstmeier Feb 9, 2026
eb5eff8
Add missing checkout step to detect_changes job
forstmeier Feb 9, 2026
c64f4c1
Simplify workflow to always run all code checks
forstmeier Feb 9, 2026
b602d45
Fix YAML syntax for coveralls files parameter
forstmeier Feb 9, 2026
1ebdd2e
Add bot pull request feedback
forstmeier Feb 9, 2026
70cea99
Add Rust dependency caching/add disk space optimizations
forstmeier Feb 9, 2026
cee6506
Update Coveralls target file upload format
forstmeier Feb 10, 2026
ab4d0c7
Truncate all tests into DataFrame validation
forstmeier Feb 10, 2026
6b661d3
testcontainers
chrisaddy Feb 10, 2026
c2970cf
Add bot pull request feedback and add general cleanup/fixes
forstmeier Feb 10, 2026
f94ca31
Address pull request #753 feedback: improve tracing init and env var …
forstmeier Feb 11, 2026
448a63f
Add changes from pull request #751
forstmeier Feb 11, 2026
42d8f15
Merge pull request #753 from oscmcompany/rust-tests
forstmeier Feb 12, 2026
4b95032
Merge branch 'master' into rust-unit-tests-and-coverage-updates
forstmeier Feb 12, 2026
9d91879
Address pull request #752 feedback: infrastructure cleanups and code …
forstmeier Feb 12, 2026
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
944 changes: 618 additions & 326 deletions .flox/env/manifest.lock

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions .flox/env/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pulumi-python.pkg-path = "pulumiPackages.pulumi-python"
ruff.pkg-path = "ruff"
ruff.version = "0.14.7"
uv.pkg-path = "uv"
vulture.pkg-path = "python313Packages.vulture"
vulture.pkg-path = "python312Packages.vulture"
yamllint.pkg-path = "yamllint"
nushell.pkg-path = "nushell"
fselect.pkg-path = "fselect"
Expand All @@ -17,7 +17,8 @@ mask.pkg-path = "mask"
bacon.pkg-path = "bacon"
cargo-watch.pkg-path = "cargo-watch"
cargo-nextest.pkg-path = "cargo-nextest"
cargo-tarpaulin.pkg-path = "cargo-tarpaulin"
cargo-llvm-cov.pkg-path = "cargo-llvm-cov"
cargo-llvm-cov.pkg-group = "rust-toolchain"
cargo.pkg-path = "cargo"
cargo.pkg-group = "rust-toolchain"
rustc.pkg-path = "rustc"
Expand All @@ -28,6 +29,8 @@ rustfmt.pkg-path = "rustfmt"
rustfmt.pkg-group = "rust-toolchain"
rust-lib-src.pkg-path = "rustPlatform.rustLibSrc"
rust-lib-src.pkg-group = "rust-toolchain"
llvm.pkg-path = "llvm"
llvm.pkg-group = "rust-toolchain"
libiconv.pkg-path = "libiconv"
libiconv.systems = ["aarch64-darwin", "x86_64-darwin"]
rust-analyzer.pkg-path = "rust-analyzer"
Expand All @@ -42,6 +45,7 @@ pkgconf.pkg-path = "pkgconf"
direnv.pkg-path = "direnv"
jq.pkg-path = "jq"
markdownlint-cli.pkg-path = "markdownlint-cli"
pre-commit.pkg-path = "pre-commit"

[hook]
on-activate = '''
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/launch_infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,12 @@ jobs:
with:
role-to-assume: ${{ secrets.AWS_IAM_INFRASTRUCTURE_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Set up Docker Buildx
if: steps.changes.outputs.service == 'true' || github.event_name == 'schedule'
uses: docker/setup-buildx-action@v3
- name: Install Flox
if: steps.changes.outputs.service == 'true' || github.event_name == 'schedule'
uses: flox/install-flox-action@v2
- name: Conditionally download artifacts
if: (steps.changes.outputs.service == 'true' || github.event_name == 'schedule') && matrix.service == 'equitypricemodel'
uses: flox/activate-action@v1
env:
AWS_S3_ARTIFACTS_BUCKET_NAME: ${{ secrets.AWS_S3_ARTIFACTS_BUCKET_NAME }}
with:
command: mask models artifacts download equitypricemodel
- name: Build ${{ matrix.service }} image
if: steps.changes.outputs.service == 'true' || github.event_name == 'schedule'
uses: flox/activate-action@v1
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/run_code_checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
name: Code checks
run-name: Code checks
on:
pull_request:
jobs:
run_rust_code_checks:
name: Run Rust code checks
runs-on: ubuntu-latest
steps:
Comment thread
forstmeier marked this conversation as resolved.
- name: Checkout code
uses: actions/checkout@v4
- name: Free disk space
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Disk space after cleanup:"
df -h
- name: Install Flox
uses: flox/install-flox-action@v2
- name: Cache Rust dependencies
Comment thread
forstmeier marked this conversation as resolved.
uses: Swatinem/rust-cache@v2
with:
workspaces: .
cache-on-failure: false
shared-key: rust-continuous-integration
save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Comment thread
forstmeier marked this conversation as resolved.
- name: Run Rust code checks
uses: flox/activate-action@v1
with:
command: mask development rust all
- name: Upload test coverage results
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_test_coverage
path: .coverage_output/rust.xml
if-no-files-found: error
overwrite: true
Comment thread
forstmeier marked this conversation as resolved.
run_python_code_checks:
name: Run Python code checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Flox
uses: flox/install-flox-action@v2
- name: Run Python code checks
uses: flox/activate-action@v1
with:
command: mask development python all
- name: Upload test coverage results
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_test_coverage
path: .coverage_output/python.xml
if-no-files-found: error
overwrite: true
run_markdown_code_checks:
name: Run Markdown code checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Flox
uses: flox/install-flox-action@v2
Comment thread
forstmeier marked this conversation as resolved.
- name: Run Markdown code checks
uses: flox/activate-action@v1
with:
command: mask development markdown all
upload_test_coverage:
needs:
Comment thread
forstmeier marked this conversation as resolved.
- run_rust_code_checks
- run_python_code_checks
Comment thread
forstmeier marked this conversation as resolved.
Comment thread
forstmeier marked this conversation as resolved.
Comment thread
forstmeier marked this conversation as resolved.
Comment thread
forstmeier marked this conversation as resolved.
if: ${{ always() && (needs.run_rust_code_checks.result == 'success' || needs.run_python_code_checks.result == 'success') }}
name: Upload coverage to Coveralls
runs-on: ubuntu-latest
steps:
- name: Download test coverage results
uses: actions/download-artifact@v4
with:
pattern: '*_test_coverage'
path: .coverage_output/
merge-multiple: true
run-id: ${{ github.run_id }}
Comment thread
forstmeier marked this conversation as resolved.
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: .coverage_output/python.xml .coverage_output/rust.xml
35 changes: 0 additions & 35 deletions .github/workflows/run_markdown_code_checks.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/run_python_code_checks.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/run_rust_code_checks.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
__pycache__/
.envrc
.env.nu
coverage/
.coverage
.coverage_output/
.coverage*
*.csv
*.egg-info/
wandb/
Expand All @@ -22,3 +22,4 @@ data/
**/*.json
.claude/tasks/
.scratchpad/

2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This is a collection of guidelines and references.
- Use Polars for [Python](https://docs.pola.rs/api/python/stable/reference/index.html) and
[Rust](https://docs.rs/polars/latest/polars/) dataframes
- Use `typing` module `cast` function for `tinygrad` method outputs when necessary with union types
- Write `pytest` functions for Python tests
- Write `pytest` functions for Python tests using plain functions, not class-based test organization
- Ensure Rust and Python automated test suites achieve at least 90% line or statement coverage per service or library
- Exclude generated code, third-party code, tooling boilerplate, and anything explicitly excluded in this repository
from test coverage calculations
Expand Down
Loading
Loading