Skip to content
Open
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
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[alias]
# run tests and generate lcov.info
cov = "llvm-cov --workspace --lcov --output-path lcov.info"
44 changes: 44 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Coverage Badge

on:
push:
branches: [main]
paths:
- crates/**
- Cargo.toml
- Cargo.lock
- Dockerfile
pull_request:
paths:
- crates/**
- Cargo.toml
- Cargo.lock
- Dockerfile
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
code-coverage-publish-coveralls:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Dependencies
run: |
# Install lcov if not already installed
sudo apt-get install -y lcov
cargo install cargo-llvm-cov
rustup update
rustup component add llvm-tools-preview

- name: Create coverage info
run: |
# Run coverage test
cargo cov

- name: Upload to coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.DOCKERHUB_TOKEN }}
path-to-lcov: lcov.info
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Coverage Status](https://coveralls.io/repos/github/embucket/embucket/badge.svg?branch=master)](https://coveralls.io/github/embucket/embucket?branch=master)

# Embucket

**Run Snowflake SQL dialect on your data lake in 30 seconds. Zero dependencies.**
Expand Down
2 changes: 1 addition & 1 deletion crates/api-snowflake-rest/src/tests/test_stress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ mod stress {
// Returned results match any of these patterns
let expected_patterns = vec![
"successfully executed",
"Too many open files", // OS related error
"Too many open files", // OS related error
"SQL compilation error: Schema 's3_table_db.schema1' does not exist or not authorized 002003",
"Generic S3 error: Error performing GET",
"Iceberg Object store: The operation lacked the necessary privileges to complete for path metadata",
Expand Down
Loading