Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: testbed #39

Merged
merged 59 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
54da8aa
feat: first version of the lsp-client
McPatate Oct 24, 2023
58f01ee
feat: add support for github repositories
McPatate Oct 28, 2023
143a0f9
feat: move to async + run hole completions in parallel
McPatate Oct 29, 2023
e5bc818
refactor: leftover sync code
McPatate Oct 29, 2023
fe46076
feat: add CI for testbed
McPatate Oct 30, 2023
3babdc2
debug: CI
McPatate Oct 30, 2023
1247f9a
fix(ci): checkout repository
McPatate Oct 30, 2023
562acd6
fix(ci): specify bin to run
McPatate Oct 30, 2023
ed107c6
fix(ci): trigger on push and pr
McPatate Oct 30, 2023
cfb7b96
feat(ci): create or update comment
McPatate Oct 30, 2023
0863f1b
refactor: make Total bold
McPatate Oct 30, 2023
8943f95
feat(ci): add cargo cache
McPatate Oct 30, 2023
0851259
feat: add fastapi test runner
McPatate Oct 30, 2023
e5baaba
refactor: cleanup & prepare for holes generation
McPatate Oct 30, 2023
2a852d7
feat: add note regarding hole completion time
McPatate Oct 30, 2023
619401c
refactor(ci): use the proper restore key for cache
McPatate Oct 30, 2023
b7df348
refactor: "Average hole completion time" -> "hole completion time"
McPatate Oct 30, 2023
bffabe7
fix(ci): update table header in `body-includes`
McPatate Oct 30, 2023
1d9a7b6
feat: add starlette
McPatate Oct 30, 2023
78f727b
feat: add opt to generate holes files
McPatate Oct 31, 2023
4279db1
fix: ignore response errors
McPatate Oct 31, 2023
5106e76
feat: reduce holes #
McPatate Nov 1, 2023
eb68aa5
fix: NaN in results
McPatate Nov 2, 2023
6064346
fix: incorrect path to build_command
McPatate Nov 2, 2023
466b9ce
fix(ci): add dependencies for lancedb
McPatate Nov 2, 2023
1845261
fix: cargo & pytest output parsing
McPatate Nov 2, 2023
535b06a
fix(ci): `when` => `if`
McPatate Nov 2, 2023
757a692
refactor(ci): remove global dependencies cache step
McPatate Nov 2, 2023
883fe84
docs: add `crates/testbed/README.md`
McPatate Nov 2, 2023
440c7d1
feat(ci): run cargo in release mode
McPatate Nov 2, 2023
d921e44
feat: add new repos
McPatate Nov 2, 2023
2489713
feat: add vitest runner
McPatate Nov 3, 2023
83e8d84
install rust
glegendre01 Nov 3, 2023
4368521
install rustup
glegendre01 Nov 3, 2023
1198992
fix(ci): install rust the proper way
McPatate Nov 3, 2023
e5495b8
fix(ci): add missing `pkg-config`
McPatate Nov 3, 2023
99430a3
fix(ci): install nodejs
McPatate Nov 3, 2023
ef97cca
feat: add jest runner for zod
McPatate Nov 3, 2023
e704684
fix(ci): installing `yarn`
McPatate Nov 3, 2023
db64508
fix(ci): debug lancedb build err
McPatate Nov 3, 2023
61ad1a4
fix(ci): comment lance* while waiting for new runner img
McPatate Nov 3, 2023
9509f72
fix(ci): debugging helix build fail
McPatate Nov 3, 2023
5356748
fix(ci): run in ubuntu 22.04 container
McPatate Nov 6, 2023
2d03091
fix(ci): install curl
McPatate Nov 6, 2023
207d66b
fix(ci): remove `sudo`
McPatate Nov 6, 2023
56fbce0
fix(ci): add `build-essential`
McPatate Nov 6, 2023
725c178
fix(ci): install git
McPatate Nov 6, 2023
403c403
fix(ci): set DEBIAN_FRONTEND to noninteractive
McPatate Nov 6, 2023
1dbf60c
fix(ci): disable dead code errors
McPatate Nov 6, 2023
2f9e1a5
feat: add env vars
McPatate Nov 6, 2023
f160a7b
fix(ci): make `env` optional
McPatate Nov 6, 2023
c77f331
refactor: choose random file when generating holes
McPatate Nov 6, 2023
6233db3
feat(ci): remove debug `-f` option
McPatate Nov 6, 2023
537f0ec
fix(ci): debug lancedb
McPatate Nov 6, 2023
db7e4ba
fix(ci): comment unused import
McPatate Nov 6, 2023
3f6c2f6
fix(ci): unset default actions rustflags
McPatate Nov 6, 2023
54962b9
fix(ci): upadte lance commit
McPatate Nov 6, 2023
cffdf2e
fix(ci): FortranCompilerNotFound
McPatate Nov 6, 2023
bcdd4a5
fix(ci): debugged, revert changes
McPatate Nov 6, 2023
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
91 changes: 91 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: test
on:
workflow_dispatch:
push:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
testbed:
runs-on: [self-hosted, intel-cpu, 8-cpu, ci]
container:
image: ubuntu:22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
apt update
DEBIAN_FRONTEND=noninteractive apt install -y pkg-config protobuf-compiler libssl-dev curl build-essential git-all gfortran

- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ''
toolchain: nightly

- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install node 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install yarn
run: |
npm i -g yarn

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

- name: Build project
run: cargo build -r

- name: Run testbed
run: cargo run --bin testbed -r -- --api-token $API_TOKEN -r `pwd`/crates/testbed/repositories-ci.yaml
if: github.event_name == 'push' || github.event_name == 'pull_request'
env:
API_TOKEN: ${{ secrets.API_TOKEN }}

- name: Run testbed
run: cargo run --bin testbed -r -- --api-token $API_TOKEN
if: github.event_name == 'workflow_dispatch'
env:
API_TOKEN: ${{ secrets.API_TOKEN }}

- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '| Repository name | Source type | Average hole completion time (s) | Pass percentage |'

- name: Create or update comment
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-path: results.md
edit-mode: replace

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.vscode/
dist/
target/
.DS_Store
__pycache__/
results.md
.pytest_cache/
Loading
Loading