From 2c6546f9a424fc169d1560ab8cbfe9ddfd13ec96 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:53:04 +0000 Subject: [PATCH 1/7] chore(main): release 0.10.3 --- CHANGELOG.md | 7 +++++++ icon_governance/config.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd08e39..7fd7887 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.10.3](https://github.com/sudoblockio/icon-governance/compare/v0.10.2...v0.10.3) (2024-10-06) + + +### Bug Fixes + +* cps test ([eff79b8](https://github.com/sudoblockio/icon-governance/commit/eff79b89718a4c2f0262cf5fdebd578866ca8177)) + ## [0.10.2](https://github.com/sudoblockio/icon-governance/compare/v0.10.1...v0.10.2) (2024-10-06) diff --git a/icon_governance/config.py b/icon_governance/config.py index db25ad2..3ed54df 100644 --- a/icon_governance/config.py +++ b/icon_governance/config.py @@ -5,7 +5,7 @@ class Settings(BaseSettings): NAME: str = "governance" - VERSION: str = "v0.10.2" # x-release-please-version + VERSION: str = "v0.10.3" # x-release-please-version NETWORK_NAME: str = "mainnet" From 994a260770bf69af18a6c27c7ad1c56e1be25038 Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Fri, 11 Oct 2024 14:16:04 +0530 Subject: [PATCH 2/7] fix: capitalise router tags --- icon_governance/api/v1/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icon_governance/api/v1/router.py b/icon_governance/api/v1/router.py index 9273168..562d60a 100644 --- a/icon_governance/api/v1/router.py +++ b/icon_governance/api/v1/router.py @@ -8,7 +8,7 @@ stats, ) -api_router = APIRouter(tags=["governance"]) +api_router = APIRouter(tags=["Governance"]) api_router.include_router(preps.router) api_router.include_router(delegations.router) api_router.include_router(proposals.router) From b7a8bd43e72c2672dda81a5b3a4d5e5cc5235c9e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 08:46:40 +0000 Subject: [PATCH 3/7] chore(main): release 0.10.4 --- CHANGELOG.md | 7 +++++++ icon_governance/config.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fd7887..e72927f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.10.4](https://github.com/sudoblockio/icon-governance/compare/v0.10.3...v0.10.4) (2024-10-11) + + +### Bug Fixes + +* capitalise router tags ([994a260](https://github.com/sudoblockio/icon-governance/commit/994a260770bf69af18a6c27c7ad1c56e1be25038)) + ## [0.10.3](https://github.com/sudoblockio/icon-governance/compare/v0.10.2...v0.10.3) (2024-10-06) diff --git a/icon_governance/config.py b/icon_governance/config.py index 3ed54df..450c170 100644 --- a/icon_governance/config.py +++ b/icon_governance/config.py @@ -5,7 +5,7 @@ class Settings(BaseSettings): NAME: str = "governance" - VERSION: str = "v0.10.3" # x-release-please-version + VERSION: str = "v0.10.4" # x-release-please-version NETWORK_NAME: str = "mainnet" From 79e9626f4b191266e2a3ec86ae801525558aeef9 Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Mon, 14 Oct 2024 14:30:23 +0530 Subject: [PATCH 4/7] fix: ci runner image version --- .github/workflows/pr-test.yml | 2 +- .github/workflows/push-main.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 7f2ff67..4d195fb 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -10,7 +10,7 @@ on: jobs: docker: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index 2cac308..0d09bf9 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -7,7 +7,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v2 @@ -32,7 +32,7 @@ jobs: # fail_ci_if_error: true docker: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: test outputs: tag: ${{ steps.source.outputs.TAG }} @@ -80,7 +80,7 @@ jobs: tags: sudoblock/icon-governance-worker:latest, sudoblock/icon-governance-worker:${{ steps.source.outputs.TAG }} push_refs: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: docker strategy: max-parallel: 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bd852d..dd40210 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: release_created: ${{ steps.release-please.outputs.release_created }} steps: @@ -20,7 +20,7 @@ jobs: icon_governance/config.py test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: release if: ${{ needs.release.outputs.release_created }} steps: @@ -47,7 +47,7 @@ jobs: # fail_ci_if_error: true docker: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: test if: ${{ needs.release.outputs.release_created }} outputs: @@ -96,7 +96,7 @@ jobs: tags: sudoblock/icon-governance-worker:latest, sudoblock/icon-governance-worker:${{ steps.source.outputs.TAG }} push_refs: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: docker if: ${{ needs.release.outputs.release_created }} strategy: From 845f5a9e1aad80f14c15e83c594b699c71e0475d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 09:00:50 +0000 Subject: [PATCH 5/7] chore(main): release 0.10.5 --- CHANGELOG.md | 7 +++++++ icon_governance/config.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e72927f..8f4415d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.10.5](https://github.com/sudoblockio/icon-governance/compare/v0.10.4...v0.10.5) (2024-10-14) + + +### Bug Fixes + +* ci runner image version ([79e9626](https://github.com/sudoblockio/icon-governance/commit/79e9626f4b191266e2a3ec86ae801525558aeef9)) + ## [0.10.4](https://github.com/sudoblockio/icon-governance/compare/v0.10.3...v0.10.4) (2024-10-11) diff --git a/icon_governance/config.py b/icon_governance/config.py index 450c170..629768a 100644 --- a/icon_governance/config.py +++ b/icon_governance/config.py @@ -5,7 +5,7 @@ class Settings(BaseSettings): NAME: str = "governance" - VERSION: str = "v0.10.4" # x-release-please-version + VERSION: str = "v0.10.5" # x-release-please-version NETWORK_NAME: str = "mainnet" From 8a2b0bc69cff04a326cc18b0ae2930dbdead6f31 Mon Sep 17 00:00:00 2001 From: Rob Cannon Date: Thu, 14 Nov 2024 18:14:33 +0700 Subject: [PATCH 6/7] fix: rm echo in db and add pool --- icon_governance/db.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/icon_governance/db.py b/icon_governance/db.py index 672216f..f5e737d 100644 --- a/icon_governance/db.py +++ b/icon_governance/db.py @@ -22,7 +22,13 @@ logger.info(f"Connecting to server: {settings.POSTGRES_SERVER} and {settings.POSTGRES_DATABASE}") -async_engine = create_async_engine(ASYNC_SQLALCHEMY_DATABASE_URL, echo=True, future=True) +async_engine = create_async_engine( + ASYNC_SQLALCHEMY_DATABASE_URL, + echo=False, + future=True, + pool_size=10, + max_overflow=5, +) # Run onetime if we want to init with a prebuilt table of attributes @@ -32,14 +38,14 @@ async def init_db(): async def get_session() -> AsyncSession: - async_session = sessionmaker(async_engine, class_=AsyncSession, expire_on_commit=False) + async_session = sessionmaker( + async_engine, + class_=AsyncSession, + expire_on_commit=False, + ) async with async_session() as session: yield session -try: - engine = create_engine(SQLALCHEMY_DATABASE_URL) - session_factory = sessionmaker(bind=engine) -except Exception as e: - logger.error(f"Database connection dropped: {str(e)}") - raise e +engine = create_engine(SQLALCHEMY_DATABASE_URL) +session_factory = sessionmaker(bind=engine) From 97e9e34c7f726050aa64b0a5a0b990637c1c481b Mon Sep 17 00:00:00 2001 From: Rob Cannon Date: Wed, 8 Jan 2025 10:27:29 -0800 Subject: [PATCH 7/7] ci: change targets --- .github/workflows/push-main.yml | 16 +++++++++++++--- .github/workflows/release.yml | 8 ++++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index 0d09bf9..05e5df1 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -87,13 +87,23 @@ jobs: matrix: include: - - cluster: prod-ams + - cluster: prod-sng network_name: mainnet network_version: v2 - - cluster: prod-ams + - cluster: prod-sng network_name: lisbon network_version: v2 - - cluster: prod-ams + - cluster: prod-sng + network_name: berlin + network_version: v2 + + - cluster: cluster2 + network_name: mainnet + network_version: v2 + - cluster: cluster2 + network_name: lisbon + network_version: v2 + - cluster: cluster2 network_name: berlin network_version: v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd40210..3e96613 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,17 +103,17 @@ jobs: max-parallel: 1 matrix: include: - - - cluster: prod-sng + - cluster: cluster1 network_name: mainnet network_version: v2 - - cluster: prod-sng + - cluster: cluster1 network_name: lisbon network_version: v2 - - cluster: prod-sng + - cluster: cluster1 network_name: berlin network_version: v2 + steps: - name: Checkout charts repo uses: actions/checkout@v2