Commit 4b756de
authored
ci: extract mobile CI status gate (#29619)
## **Description**
This PR extracts the final Mobile CI status gate into a composite action
while preserving the existing `Check all jobs pass` status check name.
Why:
- The final gate decides whether the workflow should pass after standard
CI, E2E build/test jobs, fork-only skips, and merge queue skips
complete.
- Keeping that logic in a dedicated action makes the workflow easier to
maintain and keeps the pass/fail decision consistent.
What changed:
- Added `.github/actions/ci-status-gate`.
- Updated `.github/workflows/ci.yml` so `Check all jobs pass` calls the
composite action.
- Removed the intermediate `All jobs pass` job.
- Preserved current handling for failed jobs, cancelled jobs, skipped
E2E jobs, fork PR skips, merge queue skips, and E2E readiness blocking.
- Added a step summary table that explains each job result evaluated by
the gate.
## **Changelog**
CHANGELOG entry: null
## **Related issues**
No public issue: CI maintenance refactor.
## **Manual testing steps**
Validated the workflow files locally:
```bash
actionlint -color -config-file .github/actionlint.yaml .github/workflows/ci.yml
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/ci.yml"); YAML.load_file(".github/actions/ci-status-gate/action.yml")'
git diff --check
```
Validated extracted gate behavior in the public test fork:
https://github.com/consensys-test/metamask-mobile-test
- Non-ignorable app-code PR with `pr-not-ready-for-e2e`: `Check all jobs
pass` failed as expected because `block_merge_for_e2e_readiness=true`.
- PR: consensys-test#3
- Gate:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25321128954/job/74237306086
- Locale-only PR without readiness blocking: E2E build/test jobs
skipped, and the final gate accepted those skips.
- PR: consensys-test#2
- Gate:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25318425027/job/74223723784
- Locale-only PR with `pr-not-ready-for-e2e`: E2E jobs stayed skipped
and `Check all jobs pass` passed.
- PR: consensys-test#2
- Gate:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25321510460/job/74234336146
- Standard CI failure: `Check all jobs pass` failed when a required
standard CI job failed.
- PR: consensys-test#4
- Gate:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25321403908/job/74233562352
- E2E job failure: `Check all jobs pass` failed when an E2E smoke job
failed.
- PR: consensys-test#6
- E2E job:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25328925239/job/74257209475
- Gate:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25328925239/job/74259419260
- Build job failure: `Check all jobs pass` failed when an E2E build job
failed.
- PR: consensys-test#5
- Build job:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25331281786/job/74265395383
- Gate:
https://github.com/consensys-test/metamask-mobile-test/actions/runs/25331281786/job/74267776538
## **Screenshots/Recordings**
### **Before**
N/A
### **After**
N/A
## **Pre-merge author checklist**
- [x] I've followed MetaMask Contributor Docs and MetaMask Mobile Coding
Standards.
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using JSDoc format if applicable
- [x] I've applied the right labels on the PR if applicable.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR where applicable.
- [ ] I confirm that this PR addresses the described change and includes
the necessary testing evidence.1 parent 9348a74 commit 4b756de
2 files changed
Lines changed: 182 additions & 96 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | 940 | | |
996 | 941 | | |
997 | | - | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
998 | 945 | | |
999 | 946 | | |
1000 | 947 | | |
1001 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
1002 | 956 | | |
1003 | 957 | | |
1004 | 958 | | |
1005 | 959 | | |
1006 | | - | |
1007 | | - | |
1008 | 960 | | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
1045 | 966 | | |
1046 | | - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
1047 | 975 | | |
1048 | 976 | | |
1049 | 977 | | |
| |||
0 commit comments