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

Merge staging->main #853

Merged
merged 28 commits into from
Sep 11, 2024
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
3fdf912
Merge branch 'staging' into BEDS-298/api-dashboards-network
remoterami Aug 19, 2024
648027f
added network field
remoterami Aug 19, 2024
1c1f117
Merge remote-tracking branch 'origin/staging' into BEDS-298/api-dashb…
remoterami Aug 30, 2024
eb39ef9
added network to /validator-dashboards/id
remoterami Aug 30, 2024
e9f9fea
Merge branch 'staging' into BEDS-298/api-dashboards-network
remoterami Sep 4, 2024
a234897
fix frontend pipeline
remoterami Sep 4, 2024
b103de4
feat(api): add more integration tests
peterbitfly Sep 5, 2024
4760bf1
Merge pull request #834 from gobitfly/main
guybrush Sep 5, 2024
918be99
ci: tag docker images (#835)
guybrush Sep 5, 2024
910ade9
(BEDS-442) accept charset param in request content type (#837)
LuccaBitfly Sep 6, 2024
e61defb
ci: fix docker-tags (remove dash at end) (#839)
guybrush Sep 6, 2024
95faf16
Merge pull request #829 from gobitfly/BEDS-428/more_intergration_tests
peterbitfly Sep 7, 2024
c8b6d38
Beds 90/fix ens long names (#840)
guybrush Sep 9, 2024
a09285d
fix(dashboard): source head epoch from slot viz duties response
peterbitfly Sep 9, 2024
adfa096
Merge pull request #841 from gobitfly/BEDS-439/missing_assignments_in…
peterbitfly Sep 9, 2024
601c740
fix(DashboardValidatorManagementModal): anchor footer at the bottom
benji-bitfly Sep 9, 2024
67b263c
feat(DashboardValidatorManagmentModal): add `validator status` to th…
benji-bitfly Sep 9, 2024
1c543c9
refactor(DashboardValidatorManagmentModal): rename component to match…
benji-bitfly Sep 9, 2024
0a22346
Merge pull request #843 from gobitfly/BEDS-386/modal-footer-and-statu…
benji-bitfly Sep 9, 2024
1b960a4
ci: fix docker-image-tags (#844)
guybrush Sep 9, 2024
0856fac
ci: fix docker-image-tags (#845)
guybrush Sep 9, 2024
64e7c93
BEDS-306: handle clean shutdown cleanly
invis-bitfly Sep 9, 2024
43cfa46
BEDS-306: api: trigger clean shutdown event even if not listening
invis-bitfly Sep 9, 2024
6294894
Merge pull request #846 from gobitfly/BEDS-306/clean_shutdown_event
invis-bitfly Sep 9, 2024
b7f67b6
Merge pull request #730 from gobitfly/BEDS-298/api-dashboards-network
remoterami Sep 10, 2024
0f5097e
BEDS-306: monitoring: acquire current time with snowflake
invis-bitfly Sep 10, 2024
6fe5b11
Merge pull request #848 from gobitfly/BEDS-306/fix-ooo-ts
invis-bitfly Sep 10, 2024
4d5ed1e
chore(env): add env-var to distinguish between deployment-types (#850)
guybrush Sep 10, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/backend-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cache-dependency-path: 'backend/go.sum'
- name: Test with the Go CLI
working-directory: backend
run: go test ./pkg/api/... -config "${{ secrets.CI_CONFIG_PATH }}"
run: go test -failfast ./pkg/api/... -config "${{ secrets.CI_CONFIG_PATH }}"



7 changes: 7 additions & 0 deletions .github/workflows/backend-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
paths:
- 'backend/**'
- '.github/**'
branches:
- main
- staging
Expand All @@ -27,6 +28,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set version
run: |
echo "BEACONCHAIN_VERSION=$(TZ=UTC0 git show --quiet --date='format-local:%Y%m%d%H%M%S' --format="%cd" $GITHUB_SHA)-$(git describe $GITHUB_SHA --always --tags)" >> "$GITHUB_ENV"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
Expand All @@ -42,6 +46,9 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.BEACONCHAIN_VERSION }}
type=ref,event=branch
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/frontend-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
paths:
- 'frontend/**'
- '.github/**'
branches:
- main
- staging
Expand All @@ -31,7 +32,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Set version
run: |
echo "BEACONCHAIN_VERSION=$(git describe --always --tags)" >> "$GITHUB_ENV"
echo "BEACONCHAIN_VERSION=$(TZ=UTC0 git show --quiet --date='format-local:%Y%m%d%H%M%S' --format="%cd" $GITHUB_SHA)-$(git describe $GITHUB_SHA --always --tags)" >> "$GITHUB_ENV"
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand All @@ -45,6 +46,9 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.BEACONCHAIN_VERSION }}
type=ref,event=branch
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
Expand Down
3 changes: 1 addition & 2 deletions backend/cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func Run() {
// enable light-weight db connection monitoring
monitoring.Init(false)
monitoring.Start()
defer monitoring.Stop()
}

var dataAccessor dataaccess.DataAccessor
Expand Down Expand Up @@ -98,7 +97,7 @@ func Run() {
}()

utils.WaitForCtrlC()

monitoring.Stop() // this will emit a clean shutdown event
log.Info("shutting down server")
if srv != nil {
shutDownCtx, cancelShutDownCtx := context.WithTimeout(context.Background(), 10*time.Second)
Expand Down
2 changes: 1 addition & 1 deletion backend/cmd/monitoring/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func Run() {

monitoring.Init(true)
monitoring.Start()
defer monitoring.Stop()

// gotta wait forever
utils.WaitForCtrlC()
monitoring.Stop()
}
16 changes: 16 additions & 0 deletions backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ require (
github.com/doug-martin/goqu/v9 v9.19.0
github.com/ethereum/go-ethereum v1.13.12
github.com/fergusstrange/embedded-postgres v1.29.0
github.com/gavv/httpexpect/v2 v2.16.0
github.com/go-faker/faker/v4 v4.3.0
github.com/go-redis/redis/v8 v8.11.5
github.com/gobitfly/eth-rewards v0.1.2-0.20230403064929-411ddc40a5f7
Expand Down Expand Up @@ -89,6 +90,8 @@ require (
cloud.google.com/go/storage v1.36.0 // indirect
github.com/ClickHouse/ch-go v0.58.2 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2 // indirect
github.com/ajg/form v1.5.1 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/alessio/shellescape v1.4.1 // indirect
github.com/andybalholm/brotli v1.0.6 // indirect
Expand Down Expand Up @@ -124,6 +127,7 @@ require (
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/fatih/structtag v1.2.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/ferranbt/fastssz v0.1.3 // indirect
Expand All @@ -135,12 +139,14 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/goccy/go-yaml v1.9.5 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.2.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
Expand All @@ -149,6 +155,7 @@ require (
github.com/herumi/bls-eth-go-binary v1.31.0 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/huandu/go-clone v1.6.0 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/ipfs/bbloom v0.0.4 // indirect
github.com/ipfs/boxo v0.8.0 // indirect
github.com/ipfs/go-bitfield v1.1.0 // indirect
Expand Down Expand Up @@ -181,6 +188,7 @@ require (
github.com/minio/highwayhash v1.0.2 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mmcloughlin/addchain v0.4.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -207,14 +215,18 @@ require (
github.com/prysmaticlabs/prysm/v3 v3.2.2 // indirect
github.com/r3labs/sse/v2 v2.10.0 // indirect
github.com/rs/zerolog v1.29.1 // indirect
github.com/sanity-io/litter v1.5.5 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/sethvargo/go-retry v0.2.4 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/thomaso-mirodin/intmath v0.0.0-20160323211736-5dc6d854e46e // indirect
github.com/tklauser/go-sysconf v0.3.13 // indirect
github.com/tklauser/numcpus v0.7.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.34.0 // indirect
github.com/wealdtech/go-bytesutil v1.2.0 // indirect
github.com/wealdtech/go-merkletree v1.0.1-0.20190605192610-2bb163c2ea2a // indirect
github.com/wealdtech/go-multicodec v1.4.0 // indirect
Expand All @@ -224,6 +236,9 @@ require (
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/yudai/gojsondiff v1.0.0 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect
Expand All @@ -247,6 +262,7 @@ require (
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.2.1 // indirect
moul.io/http2curl/v2 v2.3.0 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)

Expand Down
Loading
Loading