Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
53d002c
feat: access providers in same scope
nank1ro Dec 9, 2025
aa4d153
refactor
nank1ro Dec 9, 2025
11fe9ea
fix: tests
nank1ro Dec 9, 2025
57ff372
fix: typos
nank1ro Dec 9, 2025
a654085
coverage: ignore coverage for unreachable states
nank1ro Dec 9, 2025
15586f3
coverage: ignore line
nank1ro Dec 9, 2025
05957a1
chore: fix typo
nank1ro Dec 9, 2025
012b870
refactor: use smaller methods\
nank1ro Dec 9, 2025
6d02e04
chore: coverage ignore indentation
nank1ro Dec 9, 2025
ad3f27f
docs: update dependencies
nank1ro Dec 9, 2025
f753a42
docs: update
nank1ro Dec 9, 2025
083f710
perf: optimize ProviderScope with zero-cost debug validation (#34)
Copilot Dec 10, 2025
e848f11
refactors
nank1ro Dec 11, 2025
57d7356
chore: remove mds
nank1ro Dec 11, 2025
88a2f7b
chore: remove unused import
nank1ro Dec 11, 2025
7e5806e
ci: update benchmark worflow
nank1ro Dec 11, 2025
6f5585c
chore: remove debug mode comments
nank1ro Dec 11, 2025
d3f6751
tests: add circular dependency tests
nank1ro Dec 11, 2025
80595ad
fix: typos
nank1ro Dec 11, 2025
51ad98f
Merge branch 'main' into feat/access-providers-in-same-scope
nank1ro Dec 11, 2025
30dba33
ci fixes
nank1ro Dec 15, 2025
aab03ed
fixes
nank1ro Jan 7, 2026
1f9b85f
docs: bump versions
nank1ro Jan 7, 2026
8cf5f27
docs: add node version
nank1ro Jan 7, 2026
bc01ed8
fix: errors for arg provider overrides
nank1ro Jan 7, 2026
fff4f11
fix: test
nank1ro Jan 7, 2026
905545c
docs: update disco_lint readme
nank1ro Jan 7, 2026
d570879
chore: update disco version
nank1ro Jan 7, 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
122 changes: 122 additions & 0 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Provider Benchmarks

on:
pull_request:
paths:
- "packages/disco/lib/**"
- "packages/disco/benchmark/**"
- ".github/workflows/benchmark.yaml"
push:
branches:
- main
- dev
paths:
- "packages/disco/lib/**"
- "packages/disco/benchmark/**"
workflow_dispatch:

jobs:
benchmark:
name: Run Provider Benchmarks
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2.18.0
with:
channel: "stable"
cache: true

- name: Install dependencies
run: flutter pub get
working-directory: packages/disco

- name: Run benchmarks (Debug Mode - Worst Case)
working-directory: packages/disco
run: |
# Run benchmark, it will generate benchmark_results.md automatically
flutter test benchmark/provider_benchmark.dart

- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: packages/disco/benchmark_results.md

- name: Update README with benchmark results
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
run: |
# Read benchmark results
BENCHMARK_CONTENT=$(cat packages/disco/benchmark_results.md)

# Check if README already has a Benchmark section
if grep -q "^## Benchmark" packages/disco/README.md; then
# Remove everything from ## Benchmark to the end
sed -i '/^## Benchmark/,$d' packages/disco/README.md
fi

# Add benchmark section at the end
echo "" >> packages/disco/README.md
echo "## Benchmark" >> packages/disco/README.md
echo "" >> packages/disco/README.md
echo "$BENCHMARK_CONTENT" >> packages/disco/README.md

- name: Commit benchmark results to README
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add packages/disco/README.md
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update benchmark results in README [skip ci]"
git push
fi

- name: Comment PR with results
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const results = fs.readFileSync('packages/disco/benchmark_results.md', 'utf8');

// Check if we already commented
const comments = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
});

const botComment = comments.data.find(comment =>
comment.user.type === 'Bot' &&
comment.body.includes('Provider Benchmark Results')
);

if (botComment) {
// Update existing comment
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: botComment.id,
body: results
});
} else {
// Create new comment
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: results
});
}

- name: Display results
run: cat packages/disco/benchmark_results.md
1 change: 1 addition & 0 deletions docs/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
Loading