From 8ab424b93ec35738f4b2bfd564b476c877e5b0bc Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Sat, 11 Nov 2023 02:13:13 +0900 Subject: [PATCH 1/6] fix buildkite CI --- .buildkite/pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 342b0a6f..849827e5 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,5 +1,6 @@ steps: - label: "HierarchicalEOM_CUDAExt" + branches: "main" plugins: - JuliaCI/julia#v1: version: "1" From 290036eb73984e9bdc69d3614586b00f1ceb2e41 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Sat, 11 Nov 2023 02:17:05 +0900 Subject: [PATCH 2/6] command if statement in buildkite CI --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 849827e5..496cbd75 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -18,4 +18,4 @@ steps: SECRET_CODECOV_TOKEN: "xPPS+qHx6R93hyaYefGl5Hj0ojomvcMvB0azWyK0LkOrhuHNT0OegnOvcDfckKkPAw3c3zDPZyO7ogBUSUw/R9JRXF8oQd3yOxySp1vcdjsNsMvazW8Nc9QS+Cbb7/yQmtRHtkPNc4pzI0HsGPqr6pKyX8GOZRdspQ6R6KCmP95AF2KPgvhW+t/I98Z0qz8ksKgE6OQvo0XMSLKlAQRthWIBmeYf1IgjSxpibhLZhb5OKYjOUElGvRWL79SFBmbVqIHAdAVOMaL8VVoRMfgqE89SvshYEiDLNBCenxNrLAYcOHEA4ElrhmUhlVDwsqYfq7ooxHRIEkaIZ5/sL348LA==;U2FsdGVkX1+pTkirGXYb1wl7BDHCxbkVqFTOLY0ciN8+3TKlwnrtGpP+PrBs+fqJTIch2eJndJfpvbAL2DAzyg==" timeout_in_minutes: 60 # Don't run Buildkite if the commit message includes the text [skip tests] - if: build.message !~ /\[skip tests\]/ \ No newline at end of file + # if: build.message !~ /\[skip tests\]/ \ No newline at end of file From 611bce9fb03b8d4fad794f0ef9a9e8386a7cf522 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang <44385685+ytdHuang@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:59:00 +0900 Subject: [PATCH 3/6] [fixCI] build for PR --- .buildkite/pipeline.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 496cbd75..e296d2c8 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,6 +1,5 @@ steps: - label: "HierarchicalEOM_CUDAExt" - branches: "main" plugins: - JuliaCI/julia#v1: version: "1" @@ -17,5 +16,9 @@ steps: GROUP: "HierarchicalEOM_CUDAExt" SECRET_CODECOV_TOKEN: "xPPS+qHx6R93hyaYefGl5Hj0ojomvcMvB0azWyK0LkOrhuHNT0OegnOvcDfckKkPAw3c3zDPZyO7ogBUSUw/R9JRXF8oQd3yOxySp1vcdjsNsMvazW8Nc9QS+Cbb7/yQmtRHtkPNc4pzI0HsGPqr6pKyX8GOZRdspQ6R6KCmP95AF2KPgvhW+t/I98Z0qz8ksKgE6OQvo0XMSLKlAQRthWIBmeYf1IgjSxpibhLZhb5OKYjOUElGvRWL79SFBmbVqIHAdAVOMaL8VVoRMfgqE89SvshYEiDLNBCenxNrLAYcOHEA4ElrhmUhlVDwsqYfq7ooxHRIEkaIZ5/sL348LA==;U2FsdGVkX1+pTkirGXYb1wl7BDHCxbkVqFTOLY0ciN8+3TKlwnrtGpP+PrBs+fqJTIch2eJndJfpvbAL2DAzyg==" timeout_in_minutes: 60 - # Don't run Buildkite if the commit message includes the text [skip tests] - # if: build.message !~ /\[skip tests\]/ \ No newline at end of file + if: | + # Don't run Buildkite if the commit message includes the text [skip tests] + build.message !~ /\[skip tests\]/ + && + # Only run Buildkite when new commits and PR are made to main branch + (build.branch =~ /main/ || build.pull_request.base_branch =~ /main/)) \ No newline at end of file From 5be7c538f4dc308c4f10f6c29ba56e618837c74c Mon Sep 17 00:00:00 2001 From: Yi-Te Huang <44385685+ytdHuang@users.noreply.github.com> Date: Sat, 11 Nov 2023 16:06:59 +0900 Subject: [PATCH 4/6] fix typos in CI --- .buildkite/pipeline.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index e296d2c8..50d3da55 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -18,7 +18,6 @@ steps: timeout_in_minutes: 60 if: | # Don't run Buildkite if the commit message includes the text [skip tests] - build.message !~ /\[skip tests\]/ - && # Only run Buildkite when new commits and PR are made to main branch - (build.branch =~ /main/ || build.pull_request.base_branch =~ /main/)) \ No newline at end of file + build.message !~ /\[skip tests\]/ && + (build.branch =~ /main/ || build.pull_request.base_branch =~ /main/) \ No newline at end of file From 643dfd3e190ca72048b6cf1ea6a9447397dd4474 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang <44385685+ytdHuang@users.noreply.github.com> Date: Sat, 11 Nov 2023 16:09:56 +0900 Subject: [PATCH 5/6] fix typo in buildkite CI --- .buildkite/pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 50d3da55..410b3600 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -17,7 +17,7 @@ steps: SECRET_CODECOV_TOKEN: "xPPS+qHx6R93hyaYefGl5Hj0ojomvcMvB0azWyK0LkOrhuHNT0OegnOvcDfckKkPAw3c3zDPZyO7ogBUSUw/R9JRXF8oQd3yOxySp1vcdjsNsMvazW8Nc9QS+Cbb7/yQmtRHtkPNc4pzI0HsGPqr6pKyX8GOZRdspQ6R6KCmP95AF2KPgvhW+t/I98Z0qz8ksKgE6OQvo0XMSLKlAQRthWIBmeYf1IgjSxpibhLZhb5OKYjOUElGvRWL79SFBmbVqIHAdAVOMaL8VVoRMfgqE89SvshYEiDLNBCenxNrLAYcOHEA4ElrhmUhlVDwsqYfq7ooxHRIEkaIZ5/sL348LA==;U2FsdGVkX1+pTkirGXYb1wl7BDHCxbkVqFTOLY0ciN8+3TKlwnrtGpP+PrBs+fqJTIch2eJndJfpvbAL2DAzyg==" timeout_in_minutes: 60 if: | - # Don't run Buildkite if the commit message includes the text [skip tests] - # Only run Buildkite when new commits and PR are made to main branch + // Don't run Buildkite if the commit message includes the text [skip tests] + // Only run Buildkite when new commits and PR are made to main branch build.message !~ /\[skip tests\]/ && (build.branch =~ /main/ || build.pull_request.base_branch =~ /main/) \ No newline at end of file From a27bd09ccaf3a8b024e475d826a19ba5f8e4e2c1 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang <44385685+ytdHuang@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:37:38 +0900 Subject: [PATCH 6/6] [fixCI] set conditions for PR draft --- .buildkite/pipeline.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 410b3600..4cff8e59 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -18,6 +18,8 @@ steps: timeout_in_minutes: 60 if: | // Don't run Buildkite if the commit message includes the text [skip tests] + // Don't run Buildkite for PR draft // Only run Buildkite when new commits and PR are made to main branch build.message !~ /\[skip tests\]/ && - (build.branch =~ /main/ || build.pull_request.base_branch =~ /main/) \ No newline at end of file + !build.pull_request.draft && + (build.branch =~ /main/ || build.pull_request.base_branch =~ /main/)