Skip to content

Commit

Permalink
refactor!: remove rosetta from repo (#17112)
Browse files Browse the repository at this point in the history
(cherry picked from commit 506e87a)

# Conflicts:
#	UPGRADING.md
#	contrib/rosetta/rosetta-ci/data.tar.gz
#	simapp/go.mod
#	tools/rosetta/client_online.go
#	tools/rosetta/converter.go
#	tools/rosetta/go.mod
#	tools/rosetta/go.sum
#	tools/rosetta/lib/errors/errors_test.go
  • Loading branch information
bizk authored and mergify[bot] committed Jul 24, 2023
1 parent 983c9f7 commit ed0198a
Show file tree
Hide file tree
Showing 55 changed files with 448 additions and 4,090 deletions.
9 changes: 0 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@ updates:
labels:
- "A:automerge"
- dependencies
- package-ecosystem: gomod
directory: "/tools/rosetta"
schedule:
interval: weekly
day: monday
time: "02:05"
labels:
- "A:automerge"
- dependencies
- package-ecosystem: gomod
directory: "/tools/confix"
schedule:
Expand Down
3 changes: 0 additions & 3 deletions .github/pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
- collections/**/*
"C:Cosmovisor":
- tools/cosmovisor/**/*
"C:Rosetta":
- contrib/rosetta/**/*
- tools/rosetta/**/*
"C:Confix":
- tools/confix/**/*
"C:Hubl":
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ jobs:
- name: Build Cosmovisor
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} make cosmovisor
- name: Build Rosetta
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} make rosetta
- name: Build Confix
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} make confix
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/release-rosetta.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -443,42 +443,6 @@ jobs:
with:
projectBaseDir: simapp/

test-rosetta:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
cache-dependency-path: tools/rosetta/go.sum
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
contrib/rosetta/*
tools/rosetta/**/*.go
tools/rosetta/go.mod
tools/rosetta/go.sum
tools/rosetta/Makefile
Makefile
- name: tests
if: env.GIT_DIFF
run: |
make test-rosetta
cd tools/rosetta
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb_build' ./...
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: tools/rosetta/

test-collections:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Ref: https://keepachangelog.com/en/1.0.0/

* (x/group, x/gov) [#17109](https://github.com/cosmos/cosmos-sdk/pull/17109) Let proposal summary be 40x longer than metadata limit.

* (rosetta) [#16276](https://github.com/cosmos/cosmos-sdk/issues/16276) Rosetta migration to standalone repo.

## [v0.50.0-beta.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.0-beta.0) - 2023-07-19

### Features
Expand Down
22 changes: 1 addition & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,13 @@ $(BUILDDIR)/:
cosmovisor:
$(MAKE) -C tools/cosmovisor cosmovisor

rosetta:
$(MAKE) -C tools/rosetta rosetta

confix:
$(MAKE) -C tools/confix confix

hubl:
$(MAKE) -C tools/hubl hubl

.PHONY: build build-linux-amd64 build-linux-arm64 cosmovisor rosetta confix
.PHONY: build build-linux-amd64 build-linux-arm64 cosmovisor confix


mocks: $(MOCKS_DIR)
Expand Down Expand Up @@ -366,11 +363,6 @@ test-sim-profile-streaming:

.PHONY: test-sim-profile test-sim-benchmark

test-rosetta:
docker build -t rosetta-ci:latest -f contrib/rosetta/rosetta-ci/Dockerfile .
docker-compose -f contrib/rosetta/docker-compose.yaml up --abort-on-container-exit --exit-code-from test_rosetta --build
.PHONY: test-rosetta

benchmark:
@go test -mod=readonly -bench=. $(PACKAGES_NOSIMULATION)
.PHONY: benchmark
Expand Down Expand Up @@ -489,15 +481,3 @@ localnet-start: localnet-stop localnet-build-env localnet-build-nodes
localnet-debug: localnet-stop localnet-build-dlv localnet-build-nodes

.PHONY: localnet-start localnet-stop localnet-debug localnet-build-env localnet-build-dlv localnet-build-nodes

###############################################################################
### rosetta ###
###############################################################################
# builds rosetta test data dir
rosetta-data:
-docker container rm data_dir_build
docker build -t rosetta-ci:latest -f contrib/rosetta/rosetta-ci/Dockerfile .
docker run --name data_dir_build -t rosetta-ci:latest sh /rosetta/data.sh
docker cp data_dir_build:/tmp/data.tar.gz "$(CURDIR)/contrib/rosetta/rosetta-ci/data.tar.gz"
docker container rm data_dir_build
.PHONY: rosetta-data
Loading

0 comments on commit ed0198a

Please sign in to comment.