@tscircuit/eval 0.0.325 → 0.0.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/auto-merge-tscircuitbot.yml +60 -0
- package/.github/workflows/bun-test.yml +3 -3
- package/.github/workflows/update-tscircuit-core.yml +3 -0
- package/dist/blob-url.js +1 -1
- package/dist/eval/index.d.ts +148 -4
- package/dist/lib/index.d.ts +148 -4
- package/dist/webworker/entrypoint.js +307 -307
- package/package.json +5 -5
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Auto-merge tscircuitbot PRs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types: [opened, synchronize, reopened]
|
|
6
|
+
check_suite:
|
|
7
|
+
types: [completed]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
debug:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Debug event context
|
|
14
|
+
run: |
|
|
15
|
+
echo "Event name: ${{ github.event_name }}"
|
|
16
|
+
echo "PR number: ${{ github.event.pull_request.number }}"
|
|
17
|
+
echo "PR title: ${{ github.event.pull_request.title }}"
|
|
18
|
+
echo "PR user: ${{ github.event.pull_request.user.login }}"
|
|
19
|
+
echo "PR head sha: ${{ github.event.pull_request.head.sha }}"
|
|
20
|
+
echo "Check suite conclusion: ${{ github.event.check_suite.conclusion }}"
|
|
21
|
+
echo "Repository: ${{ github.repository }}"
|
|
22
|
+
echo "Actor: ${{ github.actor }}"
|
|
23
|
+
|
|
24
|
+
auto-merge:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
needs: debug
|
|
27
|
+
if: >
|
|
28
|
+
github.event.pull_request &&
|
|
29
|
+
(github.event.pull_request.user.login == 'tscircuitbot' ||
|
|
30
|
+
github.actor == 'tscircuitbot') &&
|
|
31
|
+
contains(github.event.pull_request.title, 'chore: update @tscircuit/core')
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- name: Wait for all required checks
|
|
35
|
+
uses: fountainhead/action-wait-for-check@v1.2.0
|
|
36
|
+
with:
|
|
37
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
checkName: test
|
|
39
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
40
|
+
|
|
41
|
+
- name: Wait for type check completion
|
|
42
|
+
uses: fountainhead/action-wait-for-check@v1.2.0
|
|
43
|
+
with:
|
|
44
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
+
checkName: type-check
|
|
46
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
47
|
+
|
|
48
|
+
- name: Wait for format check completion
|
|
49
|
+
uses: fountainhead/action-wait-for-check@v1.2.0
|
|
50
|
+
with:
|
|
51
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
52
|
+
checkName: format-check
|
|
53
|
+
ref: ${{ github.event.pull_request.head.sha }}
|
|
54
|
+
|
|
55
|
+
- name: Enable auto-merge
|
|
56
|
+
uses: peter-evans/enable-pull-request-automerge@v3
|
|
57
|
+
with:
|
|
58
|
+
token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
|
|
59
|
+
pull-request-number: ${{ github.event.pull_request.number }}
|
|
60
|
+
merge-method: squash
|
|
@@ -43,7 +43,7 @@ jobs:
|
|
|
43
43
|
- name: Run tests for ${{ matrix.test-dir }}
|
|
44
44
|
run: |
|
|
45
45
|
set +e
|
|
46
|
-
for i in 1 2 3; do
|
|
46
|
+
for i in 1 2 3 4; do
|
|
47
47
|
bun test tests/${{ matrix.test-dir }} --timeout 30000
|
|
48
48
|
code=$?
|
|
49
49
|
if [ $code -eq 0 ]; then
|
|
@@ -52,7 +52,7 @@ jobs:
|
|
|
52
52
|
if [ $code -ne 139 ]; then
|
|
53
53
|
exit $code
|
|
54
54
|
fi
|
|
55
|
-
echo "Segmentation fault detected, retrying ($i/
|
|
55
|
+
echo "Segmentation fault detected, retrying ($i/4)..."
|
|
56
56
|
done
|
|
57
|
-
echo "Tests failed due to segmentation fault after
|
|
57
|
+
echo "Tests failed due to segmentation fault after 4 attempts."
|
|
58
58
|
exit 139
|