Skip to content

Commit 86299a6

Browse files
authored
SY-3498: Oracle Code Generation (#1921)
1 parent 4cd7c60 commit 86299a6

153 files changed

Lines changed: 49853 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.oracle.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test - Oracle
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/test.oracle.yaml
7+
- .github/workflows/test.go.yaml
8+
- .golangci.yaml
9+
- alamos/go/**
10+
- codecov.yaml
11+
- freighter/go/**
12+
- go.work
13+
- go.work.sum
14+
- oracle/**
15+
- scripts/check_gofmt.sh
16+
- x/go/**
17+
push:
18+
branches:
19+
- main
20+
- rc
21+
paths:
22+
- .github/workflows/test.oracle.yaml
23+
- .github/workflows/test.go.yaml
24+
- .golangci.yaml
25+
- alamos/go/**
26+
- codecov.yaml
27+
- freighter/go/**
28+
- go.work
29+
- go.work.sum
30+
- oracle/**
31+
- scripts/check_gofmt.sh
32+
- x/go/**
33+
workflow_dispatch:
34+
35+
jobs:
36+
test:
37+
uses: ./.github/workflows/test.go.yaml
38+
secrets: inherit
39+
with:
40+
directory: oracle
41+
ginkgo_flags: -p --randomize-all --fail-on-empty --race
42+
coverage_flag: oracle

core/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ COPY x/go/go.mod x/go/go.sum ./x/go/
1616
COPY cesium/go.mod cesium/go.sum ./cesium/
1717
COPY aspen/go.mod aspen/go.sum ./aspen/
1818
COPY arc/go/go.mod arc/go/go.sum ./arc/go/
19+
COPY oracle/go.mod oracle/go.sum ./oracle/
1920

2021
# Download dependencies with cache mount for go modules
2122
RUN --mount=type=cache,target=/go/pkg/mod \
@@ -32,6 +33,7 @@ COPY x/go ./x/go
3233
COPY cesium ./cesium
3334
COPY aspen ./aspen
3435
COPY arc/go ./arc/go
36+
COPY oracle ./oracle
3537
COPY core ./core
3638

3739
# Build with cache mounts for both go modules and build cache

freighter/integration/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ COPY arc/go/go.mod arc/go/go.sum ./arc/go/
1515
COPY aspen/go.mod aspen/go.sum ./aspen/
1616
COPY cesium/go.mod cesium/go.sum ./cesium/
1717
COPY core/go.mod core/go.sum ./core/
18+
COPY oracle/go.mod oracle/go.sum ./oracle/
1819

1920
# Download dependencies with cache mount
2021
RUN --mount=type=cache,target=/go/pkg/mod \
@@ -29,6 +30,7 @@ COPY arc ./arc
2930
COPY aspen ./aspen
3031
COPY cesium ./cesium
3132
COPY core ./core
33+
COPY oracle ./oracle
3234

3335
# Build with cache mounts
3436
WORKDIR /workspace/freighter/integration

go.work

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use (
88
./core
99
./freighter/go
1010
./freighter/integration
11+
./oracle
1112
./x/go
1213
)
1314

go.work.sum

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b h1:mimo19zliBX/vS
1616
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b/go.mod h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs=
1717
github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg=
1818
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
19+
github.com/aymanbagabas/go-udiff v0.2.0 h1:TK0fH4MteXUDspT88n8CKzvK0X9O2xu9yQjWpi6yML8=
20+
github.com/aymanbagabas/go-udiff v0.2.0/go.mod h1:RE4Ex0qsGkTAJoQdQQCA0uG+nAzJO/pI/QwceO5fgrA=
1921
github.com/blevesearch/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:kDy+zgJFJJoJYBvdfBSiZYBbdsUL0XcjHYWezpQBGPA=
2022
github.com/blevesearch/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:9eJDeqxJ3E7WnLebQUlPD7ZjSce7AnDb9vjGmMCbD0A=
2123
github.com/blevesearch/goleveldb v1.0.1 h1:iAtV2Cu5s0GD1lwUiekkFHe2gTMCCNVj2foPclDLIFI=
@@ -26,6 +28,11 @@ github.com/blevesearch/stempel v0.2.0 h1:CYzVPaScODMvgE9o+kf6D4RJ/VRomyi9uHF+PtB
2628
github.com/blevesearch/stempel v0.2.0/go.mod h1:wjeTHqQv+nQdbPuJ/YcvOjTInA2EIc6Ks1FoSUzSLvc=
2729
github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=
2830
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
31+
github.com/charmbracelet/colorprofile v0.3.1/go.mod h1:/GkGusxNs8VB/RSOh3fu0TJmQ4ICMMPApIIVn0KszZ0=
32+
github.com/charmbracelet/x/ansi v0.9.2/go.mod h1:3RQDQ6lDnROptfpWuUVIUG64bD2g2BgntdxH0Ya5TeE=
33+
github.com/charmbracelet/x/cellbuf v0.0.13/go.mod h1:xe0nKWGd3eJgtqZRaN9RjMtK7xUYchjzPr7q6kcvCCs=
34+
github.com/charmbracelet/x/exp/golden v0.0.0-20240806155701-69247e0abc2a h1:G99klV19u0QnhiizODirwVksQB91TJKV/UaTnACcG30=
35+
github.com/charmbracelet/x/exp/golden v0.0.0-20240806155701-69247e0abc2a/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
2936
github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI=
3037
github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk=
3138
github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe h1:QQ3GSy+MqSHxm/d8nCtnAiZdYFd45cYZPs8vOOIYKfk=

0 commit comments

Comments
 (0)