Skip to content

Codec Module#493

Merged
jmank88 merged 4 commits into
developfrom
codec-module
Jul 7, 2026
Merged

Codec Module#493
jmank88 merged 4 commits into
developfrom
codec-module

Conversation

@jmank88

@jmank88 jmank88 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

This PR creates a separate, top-level module codec, which contains the relayer/codec and relayer/chainreader/loop packages. This new module has ~100 less dependencies than the main module. The old packages are deprecated but remain compatible by forwarding to the new module.

Supports:

TODO:

  • Does CI run the unit tests in their new location?
  • Split into two PRs to satisfy CI check for non-default branch commit hashes circle back to remove relative replaces

Comment thread .github/workflows/go-all.yml Fixed
Comment thread .github/workflows/go-all.yml Fixed
Comment on lines +41 to +65
runs-on: ubuntu-latest
steps:
- name: Check Lint results
env:
GOLANGCI_RESULT: ${{ needs.lint-mod.result }}
run: |
if [[ "${GOLANGCI_RESULT}" == "success" ]]; then
echo "All 'Lint' matrix jobs succeeded."
exit 0
fi

if [[ "${GOLANGCI_RESULT}" == "cancelled" ]]; then
echo "'Lint' jobs were cancelled."
exit 1
fi

if [[ "${GOLANGCI_RESULT}" == "failure" ]]; then
echo "'Lint' matrix jobs had failures."
exit 1
fi

test:
name: Tests
if: ${{ always() }}
needs: test-mod
Comment thread .github/workflows/go-all.yml Outdated
Comment on lines +12 to +23
strategy:
matrix:
modules: ['.','codec']
name: Lint (${{ matrix.modules }})
runs-on: ubuntu-latest
steps:
- name: Linting Go
uses: smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/v4
with:
golangci-lint-version: v2.4.0
golangci-lint-version: v2.12.2
golangci-lint-args: --timeout 5m
test:
name: Tests
test-mod:
Comment on lines +24 to +42
strategy:
matrix:
modules: ['.','codec']
name: Tests (${{ matrix.modules }})
runs-on: ubuntu-latest
steps:
- name: Install Aptos CLI
uses: aptos-labs/actions/install-aptos-cli@528ef7ad9427a8c0720ea3eea790a9190d6e377d # 2026-04-09
with:
CLI_VERSION: 9.1.0
- name: Build and test
uses: smartcontractkit/.github/actions/ci-test-go@ci-test-go/v1
with:
use-go-cache: true

lint:
name: Lint
if: ${{ always() }}
needs: lint-mod
@jmank88 jmank88 marked this pull request as ready for review July 7, 2026 21:24
@jmank88 jmank88 requested review from a team as code owners July 7, 2026 21:24
@jmank88 jmank88 enabled auto-merge (squash) July 7, 2026 21:42
@jmank88

jmank88 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

The 10 linter issues were pre-existing in code that was copied, and so can be ignored. The failure validates the matrix logic though 🙌

@jmank88 jmank88 merged commit 5036bbc into develop Jul 7, 2026
23 of 26 checks passed
@jmank88 jmank88 deleted the codec-module branch July 7, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants