Skip to content

Commit fecd1c2

Browse files
authored
Merge branch 'master' into feature-mergify
2 parents 7cbc8bb + 80fe861 commit fecd1c2

File tree

127 files changed

+762
-3802
lines changed

Some content is hidden

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

127 files changed

+762
-3802
lines changed

.mergify.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,51 +27,46 @@ pull_request_rules:
2727
# From needs: review to needs: work - reviewers request
2828
- name: "label needs: work when changes were requested"
2929
conditions:
30-
- base~=feature-mergify
3130
# Reviewers
3231
- "#changes-requested-reviews-by>0"
3332
actions:
3433
label:
3534
add: ['needs: work']
36-
remove: ['needs: review']
35+
remove: ['needs: review', 'needs: CI']
3736

3837
# From needs: review to needs: work - CI failure
3938
- name: "label needs: work when travis-ci failed"
4039
conditions:
41-
- base~=feature-mergify
4240
# Travis failing
4341
- status-failure~=continuous-integration/travis-ci/pr
4442
actions:
4543
label:
4644
add: ['needs: work']
47-
remove: ['needs: review']
45+
remove: ['needs: review', 'needs: CI']
4846

4947
# From needs: review to needs: work - CI failure
5048
- name: "label needs: work when Jenkins CI failed - pr head"
5149
conditions:
52-
- base~=feature-mergify
5350
# Jenkins CI failing
5451
- status-failure~=continuous-integration/jenkins/pr-head
5552
actions:
5653
label:
5754
add: ['needs: work']
58-
remove: ['needs: review']
55+
remove: ['needs: review','needs: CI']
5956

6057
# From needs: review to needs: work - CI failure
6158
- name: "label needs: work when Jenkins CI failed - any of the pipeline"
6259
conditions:
63-
- base~=feature-mergify
6460
# Jenkins CI failing - any of the pipeline
6561
- status-failure~=^jenkins-ci
6662
actions:
6763
label:
6864
add: ['needs: work']
69-
remove: ['needs: review']
65+
remove: ['needs: review', 'needs: CI']
7066

7167
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
7268
- name: "label needs: CI when at least one reviewers approval"
7369
conditions:
74-
- base~=feature-mergify
7570
# Labels
7671
- "label!=needs: preceding PR"
7772

@@ -89,10 +84,18 @@ pull_request_rules:
8984
add: ['needs: CI']
9085
remove: ['needs: review', 'needs: work']
9186

87+
# Remove reviews after the branch is updated. This yet does not allow
88+
# any other action like labels, etc. See mergify-engine/issues/360
89+
- name: remove outdated reviews
90+
conditions: []
91+
actions:
92+
dismiss_reviews:
93+
approved: True
94+
changes_requested: True
95+
9296
# Conflict in the PR - needs: work and a comment to notify a user
9397
- name: "label needs: work when there is a conflict"
9498
conditions:
95-
- base~=feature-mergify
9699
- conflict
97100
actions:
98101
label:
@@ -104,7 +107,6 @@ pull_request_rules:
104107

105108
- name: "add label feature branch for feature branch additions"
106109
conditions:
107-
- base~=feature-mergify
108110
- base~=^feature
109111
actions:
110112
label:
@@ -113,7 +115,6 @@ pull_request_rules:
113115
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
114116
- name: label "ready for merge" when ready
115117
conditions:
116-
- base~=feature-mergify
117118
# Labels
118119
- "label!=do not merge"
119120
- "label=needs: CI"
@@ -136,7 +137,6 @@ pull_request_rules:
136137
# Clean-up after merge
137138
- name: remove ready for merge when merged
138139
conditions:
139-
- base~=feature-mergify
140140
- merged
141141
- "label=ready for merge"
142142
actions:
@@ -145,7 +145,6 @@ pull_request_rules:
145145

146146
- name: add "do not merge" label when WIP is in title
147147
conditions:
148-
- base~=feature-mergify
149148
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
150149
actions:
151150
label:
@@ -154,7 +153,6 @@ pull_request_rules:
154153
# Check if version label is applied
155154
- name: release version is a must for merged PRs
156155
conditions:
157-
- base~=feature-mergify
158156
- merged
159157
- -label~=^(release-version)
160158
actions:

TESTS/mbed_functional/callback/main.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,12 +695,28 @@ utest::v1::status_t test_setup(const size_t number_of_cases)
695695
}
696696

697697
Case cases[] = {
698+
#ifdef DO_BIG_TEST
699+
Case("Testing callbacks with 0 uint64s", test_dispatch0<uint64_t>),
700+
Case("Testing callbacks with 1 uint64s", test_dispatch1<uint64_t>),
701+
Case("Testing callbacks with 2 uint64s", test_dispatch2<uint64_t>),
702+
Case("Testing callbacks with 3 uint64s", test_dispatch3<uint64_t>),
703+
Case("Testing callbacks with 4 uint64s", test_dispatch4<uint64_t>),
704+
Case("Testing callbacks with 5 uint64s", test_dispatch5<uint64_t>),
705+
#elif DO_SMALL_TEST
706+
Case("Testing callbacks with 0 uchars", test_dispatch0<unsigned char>),
707+
Case("Testing callbacks with 1 uchars", test_dispatch1<unsigned char>),
708+
Case("Testing callbacks with 2 uchars", test_dispatch2<unsigned char>),
709+
Case("Testing callbacks with 3 uchars", test_dispatch3<unsigned char>),
710+
Case("Testing callbacks with 4 uchars", test_dispatch4<unsigned char>),
711+
Case("Testing callbacks with 5 uchars", test_dispatch5<unsigned char>),
712+
#else
698713
Case("Testing callbacks with 0 ints", test_dispatch0<int>),
699714
Case("Testing callbacks with 1 ints", test_dispatch1<int>),
700715
Case("Testing callbacks with 2 ints", test_dispatch2<int>),
701716
Case("Testing callbacks with 3 ints", test_dispatch3<int>),
702717
Case("Testing callbacks with 4 ints", test_dispatch4<int>),
703718
Case("Testing callbacks with 5 ints", test_dispatch5<int>),
719+
#endif
704720
};
705721

706722
Specification specification(test_setup, cases);

0 commit comments

Comments
 (0)