Skip to content

Commit 4921ec9

Browse files
damiannolancharleenfeiseantkingcrodriguezvegachatton
authored
chore: merge latest main into 04-channel-upgrades branch (#1788)
* docs: msg types for fee middleware (#1572) * fix broken link * fix: rm AllowUpdateAfter... check (#1118) * update code & test * update proto and adr026 * update CHANGELOG * update cli docs * update broken milestone link * updated docs * update re: comments * nits: adding inline comments Co-authored-by: Sean King <sean@seking.dev> * chore: adding module name to incentivized packet events (#1580) * docs: adding events to fee middleware docs (#1578) * adding fee distribution docs for relayer operators * adding validation information and basic cli examples * removing unnecessary whitespace * updating definitions * adding ics29 fee middleware events docs * cleanup Co-authored-by: Sean King <seantking@users.noreply.github.com> * docs: adding End Users section to ics29 docs (#1579) * docs: adding End Users section to ics29 docs * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update docs/middleware/ics29-fee/end-users.md Co-authored-by: Damian Nolan <damiannolan@gmail.com> * chore: add link Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Damian Nolan <damiannolan@gmail.com> * feat: emitting an event when handling a client upgrade proposal (#1570) * feat: emitting an event when handling a client upgrade proposal * refactor: only emit event if err is nil * refactor: idiotmatic go: * docs: nits (#1595) * docs: document that version string can be empty as argument of RegisterInterchainAccount (#1582) Co-authored-by: Carlos Rodriguez <crodveg@gmail.com> * docs: add upgrade client proposal event (#1596) * Consolidate usage of NewErrorAcknowledgement (#1565) * docs: adding line about module accounts / invariants (#1597) * docs: adding line about module accounts / invariants * Update docs/middleware/ics29-fee/fee-distribution.md Co-authored-by: Damian Nolan <damiannolan@gmail.com> * Update docs/middleware/ics29-fee/fee-distribution.md Co-authored-by: Damian Nolan <damiannolan@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com> * follow up nits to #1565 (#1598) * delete test files and add error to transfer types * review comments * build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#1616) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.7.5...v1.8.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: bump go package version to v4 (#1564) * chore: bump go package version to v4 * update go.mod * fix alignment * fix build * review comments * build fixes * deps: bumping go version 1.18 (#1627) * bumping go version 1.18 * updating broken workflow setup * add backport to v4.0.x and remove backports to v1 (EoL) (#1629) * delete unused 04-channel version functions (#1636) * delete unused code and associated tests * Update CHANGELOG.md * build(deps): bump github.com/cosmos/cosmos-sdk from 0.45.5 to 0.45.6 (#1615) * build(deps): bump github.com/cosmos/cosmos-sdk from 0.45.5 to 0.45.6 Bumps [github.com/cosmos/cosmos-sdk](https://github.com/cosmos/cosmos-sdk) from 0.45.5 to 0.45.6. - [Release notes](https://github.com/cosmos/cosmos-sdk/releases) - [Changelog](https://github.com/cosmos/cosmos-sdk/blob/main/CHANGELOG.md) - [Commits](cosmos/cosmos-sdk@v0.45.5...v0.45.6) --- updated-dependencies: - dependency-name: github.com/cosmos/cosmos-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update CHANGELOG.md * copying part of codeql workflow to try to make it pass Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Carlos Rodriguez <crodveg@gmail.com> * update mergify.yml with new release branches (#1654) * Script to dynamically generate list of e2e tests (E2E #1) (#1644) * Add GitHub actions for e2e tests (E2E #2) (#1646) * Remove crossings hello (#1317) * remove crossing hellos from ChanOpenTry * remove crossing hellos testcase * revert single connectionHops check * add comment in MsgChannelOpenTry tx proto about deprecate field * Update proto/ibc/core/channel/v1/tx.proto Co-authored-by: Aditya <adityasripal@gmail.com> * minor fixes && UPDATE CHANGELOG.md * Update proto/ibc/core/channel/v1/tx.proto Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * Update proto/ibc/core/channel/v1/tx.proto Co-authored-by: Damian Nolan <damiannolan@gmail.com> * apply remaining changes for crossing hello removal Deprecate previous channel id with proto tag Remove unnecessary test cases from 04-channel Remove crossing hello check in transfer application and the associated test case * remove previous channel check in WriteChannelOpenTry * regenerate proto files * update documentation * add migration documentation * remove unnecessary doc * remove crossing hello notion from ChanOpenAck * apply review suggestions Co-authored-by: Aditya <adityasripal@gmail.com> Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Damian Nolan <damiannolan@gmail.com> Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com> Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com> * docs: update roadmap (#1678) * update roadmap * update roadmap * Update roadmap.md Co-authored-by: Carlos Rodriguez <crodveg@gmail.com> * refactor: remove crossing hellos from 03-connection (#1672) * remove crossing hello check from ConnOpenTry and ConnOpenAck * remove unnecessary test cases and fix build * fix tests and add migration docs * fix connection version check in conn open ack * add changelog entry * Update modules/core/03-connection/keeper/handshake.go Co-authored-by: Aditya <adityasripal@gmail.com> * remove unnecessary testing function * improve migration documentation as per review suggestion Co-authored-by: Aditya <adityasripal@gmail.com> * (core/23-commitment/types) doc: fix typo (#1694) * remove spurious `TestABCICodeDeterminism` tests (#1695) ## Description Thanks @colin-axner for noticing this. closes: #XXXX --- Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why. - [x] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. - [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md). - [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing) - [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`) - [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code). - [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md` - [x] Re-reviewed `Files changed` in the Github PR explorer - [ ] Review `Codecov Report` in the comment section below once CI passes * update bug report issue template (#1693) * fix codeowners for 02-client (#1696) ## Description Thanks again @colin-axner for signaling this! closes: #XXXX --- Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why. - [x] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. - [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md). - [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing) - [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`) - [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code). - [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md` - [x] Re-reviewed `Files changed` in the Github PR explorer - [ ] Review `Codecov Report` in the comment section below once CI passes * build(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 (#1699) Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.47.0 to 1.48.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.47.0...v1.48.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: update middleware documentation (#1639) * docs: update middleware documentation * remove old text and add func keyword * alignment * fix alignment * Update develop.md * review comments * remove empty line * docs: add links in middleware docs to fee middleware implementation (#1641) * docs: add links in middleware docs to fee middleware implementation * add extra line for better readability * fix typos * Adding github action to run goimports (#1673) * Add E2ETestSuite Type (E2E #3) (#1650) * Separate go mod for e2e (E2E #4) (#1701) * put back module name in event (#1681) * fix typo * Extracting e2e tests into two separate workflows (#1719) * add categories * Add fee middleware test suite functions (E2E #5) (#1710) * Build local image to run tests with make e2e-test (#1722) * Remove leftover crossing hello tests in connection handshake (#1724) * remove leftover crossing hello tests in connection handshake * fix bug in tests * chore: adding environment variable to specify go relayer image (#1727) * Thomas/1584 update docs apps (#1675) * restructure content according to outline, fix image and syntax highlighting, fix titles and prepare for content updates * rewrite bind port section * restructure applications doc into folder structure * add keeper section, make some minor corrections in bind ports, custom packet and implmenent IBC module sections * update ibcmodule interface to encorporate the simpliefied handshake callbacks and version negotiation * fix broken links * fix remaining broken link * fix some nits, correct for removal of crossing hellos and add some more explanation on portIDs * update middleware docs to resolve merge confilicts * update fee mw docs, add formating, fix typos, increase readability (#1665) * update fee mw docs, add formating, fix typos, increase readability * fix broken link * Apply suggestions from code review (De)capitalize headings and references to headings for consistency Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * resolving merge conflict * split the CLI commands and small typo correction Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * chore: remove @fedekunze from CODEOWNERS (#1733) * Test for AsyncSingleSender (E2E #6) (#1682) * fix: running e2e-fork for dependabot PRs (#1745) * Adding manual triggering of e2e via workflow dispatch (#1749) * chore: denom traces migration handler (#1680) * update code & test * register migrator service * add changelog entry for #1680 * add issue templates for epics and releases (#1702) * add issue templates for epics and releases * remove text Co-authored-by: Carlos Rodriguez <crodveg@gmail.com> * fix typo * fix typo * feat: allow governance to update the TrustingPeriod of the 07-tendermint light client (#1713) * initial commit * format imports * update docs * update CHANGELOG * update upgrade dev docs * update re: pr comments * E2E Test: TestMsgPayPacketFeeSingleSender (#1756) * move entry to right place * build(deps): bump docker/build-push-action from 3.0.0 to 3.1.0 (#1743) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@e551b19...1cb9d22) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Rodriguez <carlos@interchain.io> * chore: Update makefile (#1770) * remove unused tools, remove incorrect import formatting * uncomment command in makefile * add version matrix (#1767) * add pseudocode to handle empty version string in OnChanOpenInit * fix broken link (#1776) * add item to update the version matrix after a release (#1775) * E2E Test: TestMsgPayPacketFeeSingleSenderTimesOut (#1751) * Move scripts from .github directory into cmd (#1787) Co-authored-by: Charly <charly@interchain.berlin> Co-authored-by: Sean King <sean@seking.dev> Co-authored-by: Sean King <seantking@users.noreply.github.com> Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Carlos Rodriguez <crodveg@gmail.com> Co-authored-by: Cian Hatton <cian@interchain.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: vuong <56973102+vuong177@users.noreply.github.com> Co-authored-by: Aditya <adityasripal@gmail.com> Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com> Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com> Co-authored-by: rene <41963722+renaynay@users.noreply.github.com> Co-authored-by: tmsdkeys <98807841+tmsdkeys@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
1 parent b052d5b commit 4921ec9

File tree

494 files changed

+7864
-3762
lines changed

Some content is hidden

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

494 files changed

+7864
-3762
lines changed

.github/CODEOWNERS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@
1313

1414
# CODEOWNERS for the core IBC module
1515

16-
/modules/core/ @colin-axner @fedekunze @AdityaSripal
17-
/proto/ibc/core/ @colin-axner @fedekunze @AdityaSripal
16+
/modules/core/ @colin-axner @AdityaSripal
17+
/proto/ibc/core/ @colin-axner @AdityaSripal
1818

1919
## CODEOWNERS for core/02-client
2020

21-
/modules/core/02-client @seantking @damiannolan
22-
/proto/ibc/core/client @seantking @damiannolan
21+
/modules/core/02-client @colin-axner @AdityaSripal @seantking @damiannolan
22+
/proto/ibc/core/client @colin-axner @AdityaSripal @seantking @damiannolan
2323

2424
# CODEOWNERS for the light-clients
2525

26-
/modules/light-clients/ @colin-axner @fedekunze @AdityaSripal @seantking @damiannolan
27-
/proto/ibc/lightclients/ @colin-axner @fedekunze @AdityaSripal @seantking @damiannolan
26+
/modules/light-clients/ @colin-axner @AdityaSripal @seantking @damiannolan
27+
/proto/ibc/lightclients/ @colin-axner @AdityaSripal @seantking @damiannolan
2828

2929
# CODEOWNERS for ICS 20
3030

31-
/modules/apps/transfer/ @colin-axner @fedekunze @AdityaSripal
32-
/proto/ibc/applications/transfer/ @colin-axner @fedekunze @AdityaSripal
31+
/modules/apps/transfer/ @colin-axner @AdityaSripal
32+
/proto/ibc/applications/transfer/ @colin-axner @AdityaSripal
3333

3434
# CODEOWNERS for interchain-accounts module
3535

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ through the appropriate channels won't receive any bounty.
2020

2121
<!-- Concisely describe the issue -->
2222

23+
## Expected Behaviour
24+
25+
<!-- What is the expected behaviour? -->
26+
2327
## Version
2428

2529
<!-- git commit hash or release version -->
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
name: Epic Tracker
3+
about: Create an issue to track feature epic progress
4+
5+
---
6+
7+
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
8+
v ✰ Thanks for opening an issue! ✰
9+
v Before smashing the submit button please review the template.
10+
v Word of caution: poorly thought-out proposals may be rejected
11+
v without deliberation
12+
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
13+
14+
## Requirements document
15+
16+
<!-- Link to requirements document -->
17+
18+
## IBC spec
19+
20+
<!-- Link to specification -->
21+
22+
## ADRs
23+
24+
<!-- Links to ADRs related to this epic -->
25+
26+
## Milestones
27+
28+
<!-- Links to alpha, beta, RC milestones -->
29+
30+
## Implementation issues
31+
32+
<!-- Links to specific issues, thematically/logically grouped -->
33+
34+
## QA scenarios
35+
36+
<!-- Lists of manual QA tests that need be performed -->
37+
38+
## Automated e2e tests
39+
40+
<!-- List of automated e2e tests that need be added to CI -->
41+
42+
## Pre-releases
43+
44+
<!-- Links to alpha, beta, RC tags/releases -->
45+
46+
## Checklist
47+
48+
<!-- Remove any items that are not applicable. -->
49+
50+
- [ ] Internal audit(s)
51+
- [ ] External audit(s)
52+
- [ ] Documentation
53+
- [ ] Swagger
54+
- [ ] Integration with relayers:
55+
- [ ] Hermes
56+
- [ ] Rly
57+
58+
____
59+
60+
#### For Admin Use
61+
62+
- [ ] Not duplicate issue
63+
- [ ] Appropriate labels applied
64+
- [ ] Appropriate contributors tagged/assigned
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Release tracker
3+
about: Create an issue to track release progress
4+
5+
---
6+
7+
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
8+
v ✰ Thanks for opening an issue! ✰
9+
v Before smashing the submit button please review the template.
10+
v Word of caution: poorly thought-out proposals may be rejected
11+
v without deliberation
12+
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
13+
14+
## Milestones
15+
16+
<!-- Links to alpha, beta, RC or final milestones -->
17+
18+
### IBC spec compatibility
19+
20+
<!-- Version of the IBC spec that this release is compatible with -->
21+
22+
### QA
23+
24+
#### Backwards compatibility
25+
26+
<!-- List of tests that need be performed with previous
27+
versions of ibc-go to guarantee that no regression is introduced -->
28+
29+
- [ ] Fungible token transfers over a non-incentivised channel works with a counterparty chain running each previous major version.
30+
- [ ] Fungible token transfers over an incentivised channel works with a counterparty chain running each previous major version that supports ICS-29 Fee Middleware.
31+
- [ ] Interchain Accounts over a non-incentivised channel works with a counterparty chain running each previous major version that supports ICS-27 Interchain Accounts over non-incentivised channels.
32+
- [ ] Interchain Accounts over an incentivised channel works with a counterparty chain running each previous major version that supports ICS-27 Interchain Accounts over incentivised channels.
33+
34+
### Migration
35+
36+
<!-- Link to migration document -->
37+
38+
## Checklist
39+
40+
<!-- Remove any items that are not applicable. -->
41+
42+
- [ ] Bump [go package version](https://github.com/cosmos/ibc-go/blob/main/go.mod#L3).
43+
- [ ] Change all imports starting with `github.com/cosmos/ibc-go/v{x}` to `github.com/cosmos/ibc-go/v{x+1}`.
44+
- [ ] Branch off main to create release branch in the form of `release/vx.y.z`.
45+
- [ ] Add branch protection rules to new release branch.
46+
- [ ] Add backport task to [`mergify.yml`](https://github.com/cosmos/ibc-go/blob/main/.github/mergify.yml)
47+
- [ ] Upgrade ibc-go version in [ibctest](https://github.com/strangelove-ventures/ibctest).
48+
- [ ] Check Swagger is up-to-date.
49+
50+
## Post-release checklist
51+
52+
- [ ] Update [`CHANGELOG.md`](https://github.com/cosmos/ibc-go/blob/main/CHANGELOG.md)
53+
- [ ] Update the table of supported release lines (and End of Life dates) in [`RELEASES.md`](https://github.com/cosmos/ibc-go/blob/main/RELEASES.md).
54+
- [ ] Update [version matrix](https://github.com/cosmos/ibc-go/blob/main/RELEASES.md#version-matrix) in `RELEASES.md`.
55+
- [ ] Update docs site:
56+
- [ ] Add new release branch to [`docs/versions`](https://github.com/cosmos/ibc-go/blob/main/docs/versions) file.
57+
- [ ] Add `label` and `key` to `versions` array in [`config.js`](https://github.com/cosmos/ibc-go/blob/main/docs/.vuepress/config.js#L33).
58+
- [ ] After changes to docs site are deployed, check [ibc.cosmos.network](https://ibc.cosmos.network) is updated.
59+
60+
____
61+
62+
#### For Admin Use
63+
64+
- [ ] Not duplicate issue
65+
- [ ] Appropriate labels applied
66+
- [ ] Appropriate contributors tagged/assigned

.github/mergify.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,67 +18,67 @@ pull_request_rules:
1818
commit_message_template: |
1919
{{ title }} (#{{ number }})
2020
{{ body }}
21-
- name: backport patches to v1.3.x branch
21+
- name: backport patches to v2.1.x branch
2222
conditions:
2323
- base=main
24-
- label=backport-to-v1.3.x
24+
- label=backport-to-v2.1.x
2525
actions:
2626
backport:
2727
branches:
28-
- release/v1.3.x
29-
- name: backport patches to v1.4.x branch
28+
- release/v2.1.x
29+
- name: backport patches to v2.2.x branch
3030
conditions:
3131
- base=main
32-
- label=backport-to-v1.4.x
32+
- label=backport-to-v2.2.x
3333
actions:
3434
backport:
3535
branches:
36-
- release/v1.4.x
37-
- name: backport patches to v1.5.x branch
36+
- release/v2.2.x
37+
- name: backport patches to v2.3.x branch
3838
conditions:
3939
- base=main
40-
- label=backport-to-v1.5.x
40+
- label=backport-to-v2.3.x
4141
actions:
4242
backport:
4343
branches:
44-
- release/v1.5.x
45-
- name: backport patches to v2.1.x branch
44+
- release/v2.3.x
45+
- name: backport patches to v2.4.x branch
4646
conditions:
4747
- base=main
48-
- label=backport-to-v2.1.x
48+
- label=backport-to-v2.4.x
4949
actions:
5050
backport:
5151
branches:
52-
- release/v2.1.x
53-
- name: backport patches to v2.2.x branch
52+
- release/v2.4.x
53+
- name: backport patches to v3.0.x branch
5454
conditions:
5555
- base=main
56-
- label=backport-to-v2.2.x
56+
- label=backport-to-v3.0.x
5757
actions:
5858
backport:
5959
branches:
60-
- release/v2.2.x
61-
- name: backport patches to v2.3.x branch
60+
- release/v3.0.x
61+
- name: backport patches to v3.1.x branch
6262
conditions:
6363
- base=main
64-
- label=backport-to-v2.3.x
64+
- label=backport-to-v3.1.x
6565
actions:
6666
backport:
6767
branches:
68-
- release/v2.3.x
69-
- name: backport patches to v3.0.x branch
68+
- release/v3.1.x
69+
- name: backport patches to v3.2.x branch
7070
conditions:
7171
- base=main
72-
- label=backport-to-v3.0.x
72+
- label=backport-to-v3.2.x
7373
actions:
7474
backport:
7575
branches:
76-
- release/v3.0.x
77-
- name: backport patches to v3.1.x branch
76+
- release/v3.2.x
77+
- name: backport patches to v4.0.x branch
7878
conditions:
7979
- base=main
80-
- label=backport-to-v3.1.x
80+
- label=backport-to-v4.0.x
8181
actions:
8282
backport:
8383
branches:
84-
- release/v3.1.x
84+
- release/v4.0.x

.github/scripts/go-imports.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
formatted_files="$(docker run -v "$(pwd)":/ibc-go --rm -w "/ibc-go" --entrypoint="" cytopia/goimports goimports -l -local 'github.com/cosmos/ibc-go' /ibc-go)"
3+
4+
exit_code=0
5+
for f in $formatted_files
6+
do
7+
# we don't care about formatting in pb.go files.
8+
if [ "${f: -5}" == "pb.go" ]; then
9+
continue
10+
fi
11+
exit_code=1
12+
echo "formatted file ${f}..."
13+
done
14+
15+
if [ "${exit_code}" == 1 ]; then
16+
echo "not all files were correctly formated, run the following:"
17+
echo "make goimports"
18+
fi
19+
20+
exit $exit_code

.github/workflows/codeql-analysis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,25 @@ jobs:
5656
# By default, queries listed here will override any specified in a config file.
5757
# Prefix the list here with "+" to use these queries and those in the config file.
5858
# queries: ./path/to/local/query, your-org/your-repo/queries@main
59+
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality
5960
if: env.GIT_DIFF
61+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
62+
# If this step fails, then you should remove it and run the build manually (see below)
6063

61-
- run: make build
64+
- name: Autobuild
65+
uses: github/codeql-action/autobuild@v2
66+
if: env.GIT_DIFF
67+
68+
# ℹ️ Command-line programs to run using the OS shell.
69+
# 📚 https://git.io/JvXDl
70+
71+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
72+
# and modify them (or add more) to build your code if your project
73+
# uses a compiled language
74+
75+
#- run: |
76+
# make bootstrap
77+
# make release
6278

6379
- name: Perform CodeQL Analysis
6480
uses: github/codeql-action/analyze@v2

.github/workflows/e2e-fork.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tests / E2E Fork
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- docs/**
9+
10+
jobs:
11+
# dynamically build a matrix of test/test suite pairs to run
12+
build-test-matrix:
13+
if: ${{ github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }}
14+
runs-on: ubuntu-latest
15+
outputs:
16+
matrix: ${{ steps.set-matrix.outputs.matrix }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-go@v3
20+
with:
21+
go-version: 1.18
22+
- id: set-matrix
23+
run: echo "::set-output name=matrix::$(go run cmd/build_test_matrix/main.go)"
24+
25+
e2e:
26+
env:
27+
SIMD_TAG: latest
28+
SIMD_IMAGE: ibc-go-simd-e2e
29+
if: ${{ github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }}
30+
needs:
31+
- build-test-matrix
32+
runs-on: ubuntu-latest
33+
strategy:
34+
fail-fast: false
35+
matrix: ${{ fromJSON(needs.build-test-matrix.outputs.matrix) }}
36+
steps:
37+
- uses: actions/checkout@v3
38+
- name: Docker Build
39+
run: docker build . -t "${SIMD_IMAGE}:${SIMD_TAG}"
40+
- name: Setup Go
41+
uses: actions/setup-go@v3
42+
with:
43+
go-version: 1.18
44+
- name: Run e2e Test
45+
env:
46+
# see images here https://github.com/cosmos/relayer/pkgs/container/relayer/versions
47+
RLY_TAG: "v2.0.0-rc2"
48+
run: |
49+
cd e2e
50+
make e2e-test suite=${{ matrix.suite }} test=${{ matrix.test }}

0 commit comments

Comments
 (0)