Skip to content

Commit 326263c

Browse files
authored
feat: Trigger enterprise testing on commit (#2298)
* add webhook job * inspect params * fix json * target feature branch * announce circle_branch env var * quote escape CIRCLE_BRANCH * echo envvars * revert * test fail workflow * rename * trigger on merge * lint * change param name
1 parent c194501 commit 326263c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.circleci/continue_config.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,30 @@ jobs:
207207
name: Run tests
208208
command: make engine-docker-test
209209
no_output_timeout: 15m
210+
211+
trigger_private_tests:
212+
docker:
213+
- image: cimg/base:2021.11
214+
resource_class: small
215+
steps:
216+
- run:
217+
name: Trigger private tests
218+
command: |
219+
curl --request POST \
220+
--url $TOBIKO_PRIVATE_CIRCLECI_URL \
221+
--header "Circle-Token: $TOBIKO_PRIVATE_CIRCLECI_KEY" \
222+
--header "content-type: application/json" \
223+
--data '{
224+
"branch":"main",
225+
"parameters":{
226+
"run_main_pr":false,
227+
"run_sqlmesh_commit":true,
228+
"sqlmesh_branch":"'"$CIRCLE_BRANCH"'",
229+
"sqlmesh_commit_author":"'"$CIRCLE_USERNAME"'",
230+
"sqlmesh_commit_hash":"'"$CIRCLE_SHA1"'",
231+
"sqlmesh_commit_pr":"'"$CIRCLE_PULL_REQUEST"'"
232+
}
233+
}'
210234
211235
workflows:
212236
main_pr:
@@ -233,5 +257,12 @@ workflows:
233257
branches:
234258
only:
235259
- main
260+
- trigger_private_tests:
261+
requires:
262+
- style_and_slow_tests
263+
filters:
264+
branches:
265+
only:
266+
- main
236267
- ui_style
237268
- ui_test

0 commit comments

Comments
 (0)