@@ -127,6 +127,10 @@ local testPreparation(platform) =
127
127
};
128
128
platform_map[platform];
129
129
130
+ local make_clickable_link(link) = "echo -e '\\ e]8;;" + link + "\\ e\\\\ " + link + "\\ e]8;;\\ e\\\\ '" ;
131
+ local echo_running_on = ["echo running on ${DRONE_STAGE_MACHINE}" ,
132
+ make_clickable_link("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:search=:${DRONE_STAGE_MACHINE};v=3;$case=tags:true%5C,client:false;$regex=tags:false%5C,client:false;sort=desc:launchTime" )];
133
+
130
134
local Pipeline(branch, platform, event, arch="amd64" , server="10.6-enterprise" , customBootstrapParams="" , customBuildEnvCommandsMapKey="" ) = {
131
135
local pkg_format = if (std.split (platform, ":" )[0 ] == "rockylinux" ) then "rpm" else "deb" ,
132
136
local init = if (pkg_format == "rpm" ) then "/usr/lib/systemd/systemd" else "systemd" ,
@@ -182,7 +186,7 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
182
186
183
187
"aws s3 sync " + result + " s3://cspkg/" + branchp + eventp + "/" + server + "/" + arch + "/" + result + " --only-show-errors" ,
184
188
'echo "Data uploaded to: ' + publish_pkg_url + '"' ,
185
-
189
+ make_clickable_link(publish_pkg_url),
186
190
"rm -rf " + result + "/*" ,
187
191
],
188
192
},
@@ -327,7 +331,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
327
331
MTR_FULL_SUITE: "${MTR_FULL_SUITE:-false}" ,
328
332
},
329
333
commands: [
330
- "echo running on ${DRONE_STAGE_MACHINE}" ,
331
334
prepareTestStage(getContainerName("mtr" ), result, true ),
332
335
"docker cp mysql-test/columnstore mtr$${DRONE_BUILD_NUMBER}:" + mtr_path + "/suite/" ,
333
336
execInnerDocker("chown -R mysql:mysql " + mtr_path, getContainerName("mtr" )),
@@ -367,7 +370,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
367
370
image: "docker" ,
368
371
volumes: [pipeline._volumes.docker, pipeline._volumes.mdb],
369
372
commands: [
370
- "echo running on ${DRONE_STAGE_MACHINE}" ,
371
373
reportTestStage(getContainerName("mtr" ), result, "mtr" ),
372
374
],
373
375
when: {
@@ -387,7 +389,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
387
389
REGRESSION_REF_AUX: branch_ref,
388
390
},
389
391
commands: [
390
- "echo running on ${DRONE_STAGE_MACHINE}" ,
391
392
// compute branch.
392
393
'echo "$$REGRESSION_REF"' ,
393
394
'echo "$$REGRESSION_BRANCH_REF"' ,
@@ -445,7 +446,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
445
446
},
446
447
},
447
448
commands: [
448
- "echo running on ${DRONE_STAGE_MACHINE}" ,
449
449
execInnerDocker("mkdir -p reg-logs" , getContainerName("regression" ), "--workdir /mariadb-columnstore-regression-test/mysql/queries/nightly/alltest" ),
450
450
execInnerDocker("bash -c 'sleep 4800 && bash /save_stack.sh /mariadb-columnstore-regression-test/mysql/queries/nightly/alltest/reg-logs/' & " ,
451
451
getContainerName("regresion" )),
@@ -596,7 +596,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
596
596
name: "submodules" ,
597
597
image: "alpine/git" ,
598
598
commands: [
599
- "echo running on ${DRONE_STAGE_MACHINE}" ,
600
599
"git submodule update --init --recursive" ,
601
600
"git config cmake.update-submodules no" ,
602
601
"git rev-parse --abbrev-ref HEAD && git rev-parse HEAD" ,
@@ -611,8 +610,8 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
611
610
SERVER_REMOTE: "${SERVER_REMOTE:-" + server_remote + "}" ,
612
611
SERVER_SHA: "${SERVER_SHA:-" + server + "}" ,
613
612
},
614
- commands: [
615
- "echo running on ${DRONE_STAGE_MACHINE}" ,
613
+ commands: echo_running_on +
614
+ [
616
615
"echo $$SERVER_REF" ,
617
616
"echo $$SERVER_REMOTE" ,
618
617
"mkdir -p /mdb/" + builddir + " && cd /mdb/" + builddir,
@@ -645,13 +644,13 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
645
644
//SCCACHE_ERROR_LOG: '/tmp/sccache_log.txt',
646
645
//SCCACHE_LOG: 'debug',
647
646
},
648
- commands: [
649
- "echo running on ${DRONE_STAGE_MACHINE}" ,
650
- "mkdir /mdb/" + builddir + "/" + result,
651
- get_sccache,
652
- ]
653
- + customEnvCommands(customBuildEnvCommandsMapKey, builddir) +
654
- [
647
+ commands:
648
+ [
649
+ "mkdir /mdb/" + builddir + "/" + result,
650
+ get_sccache,
651
+ ]
652
+ + customEnvCommands(customBuildEnvCommandsMapKey, builddir) +
653
+ [
655
654
'bash -c "set -o pipefail && bash /mdb/' + builddir + "/storage/columnstore/columnstore/build/bootstrap_mcs.sh " +
656
655
"--build-type RelWithDebInfo " +
657
656
"--distro " + platform + " " +
@@ -714,7 +713,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
714
713
SERVER_REMOTE: "${SERVER_REMOTE:-" + server_remote + "}" ,
715
714
},
716
715
commands: [
717
- "echo running on ${DRONE_STAGE_MACHINE}" ,
718
716
"cd /mdb/" + builddir,
719
717
'echo "engine: $DRONE_COMMIT" > buildinfo.txt' ,
720
718
'echo "server: $$(git rev-parse HEAD)" >> buildinfo.txt' ,
@@ -733,19 +731,6 @@ local Pipeline(branch, platform, event, arch="amd64", server="10.6-enterprise",
733
731
] +
734
732
[pipeline.publish("cmapi build" )] +
735
733
[pipeline.publish()] +
736
- [
737
- {
738
- name: "publish pkg url" ,
739
- depends_on: ["publish pkg" ],
740
- image: "alpine/git" ,
741
- commands: [
742
- "echo -e '\\ e]8;;" + publish_pkg_url + "\\ e\\\\ " + publish_pkg_url + "\\ e]8;;\\ e\\\\ '" ,
743
- "echo 'for installation run:'" ,
744
- "echo 'export OS=" + result + "'" ,
745
- "echo 'export PACKAGES_URL=" + packages_url + "'" ,
746
- ],
747
- },
748
- ] +
749
734
(if (event == "cron" ) then [pipeline.publish("pkg latest" , "latest" )] else []) +
750
735
[pipeline.smoke] +
751
736
[pipeline.smokelog] +
0 commit comments