Skip to content

Commit 3983797

Browse files
authored
test(scenario): relocate legacy ucs03_zkgm test packages to an ignore/ directory and exclude them (#199)
* refactor: move legacy scenario tests to ignore directory * chore: exclude test packages in ignore directories
1 parent 4942fb7 commit 3983797

103 files changed

Lines changed: 7 additions & 2 deletions

File tree

Some content is hidden

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

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- id: packages
3232
run: |
33-
pkgs=$(find gno.land/p/onbloc gno.land/r/onbloc -name gnomod.toml 2>/dev/null | sort | sed 's|gnomod.toml||' | sed 's|^|./|' | jq -R -s -c 'split("\n") | map(select(length > 0))')
33+
# Exclude packages under any ignore/ directory (scratch/scenario realms
34+
# that are not part of the first-party test suite). Mirrors USER_GNO_PKGS
35+
# in the Makefile.
36+
pkgs=$(find gno.land/p/onbloc gno.land/r/onbloc -name gnomod.toml 2>/dev/null | grep -v '/ignore/' | sort | sed 's|gnomod.toml||' | sed 's|^|./|' | jq -R -s -c 'split("\n") | map(select(length > 0))')
3437
echo "matrix=$pkgs" >> "$GITHUB_OUTPUT"
3538
3639
# Test each package in parallel

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ COVERAGE_DIR := coverage
9393

9494
# First-party gno packages. Third-party mirrors under gno.land/p/{aib,gnoswap,nt,onbloc}
9595
# and gno.land/r/aib are dependency inputs only, so local and CI tests skip them.
96-
USER_GNO_PKGS := $(patsubst %/gnomod.toml,./%/,$(shell find gno.land/p/onbloc gno.land/r/onbloc -name gnomod.toml | sort))
96+
# Packages under any ignore/ directory are excluded too (scratch/scenario realms
97+
# that are not part of the first-party test suite).
98+
USER_GNO_PKGS := $(patsubst %/gnomod.toml,./%/,$(shell find gno.land/p/onbloc gno.land/r/onbloc -name gnomod.toml | grep -v '/ignore/' | sort))
9799
TEST_GNO_PKGS := $(if $(PKG),$(addprefix ./,$(patsubst ./%,%,$(PKG))),$(USER_GNO_PKGS))
98100
GNO_TEST_FLAGS := -v$(if $(RUN), -run "$(RUN)")
99101

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/attacker/attacker.gno renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/attacker/attacker.gno

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/attacker/gnomod.toml renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/attacker/gnomod.toml

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/attacker/recv_auth_test.gno renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/attacker/recv_auth_test.gno

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/bootstrap_nil/gnomod.toml renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/bootstrap_nil/gnomod.toml

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/bootstrap_nil/z1_bootstrap_nil_impl_filetest.gno renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/bootstrap_nil/z1_bootstrap_nil_impl_filetest.gno

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/e2e/gnomod.toml renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/e2e/gnomod.toml

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/e2e/helpers.gno renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/e2e/helpers.gno

File renamed without changes.

gno.land/r/onbloc/ibc/union/apps/ucs03_zkgm/testing/e2e/mock_lc.gno renamed to gno.land/r/onbloc/ibc/scenario/ignore/testing/e2e/mock_lc.gno

File renamed without changes.

0 commit comments

Comments
 (0)