Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

23.3 port of #269 source upload #279

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/release_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGRESSION_RESULTS_URL: altinity-build-artifacts/${{github.event.number}}/$GITHUB_SHA


on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -182,8 +183,9 @@ jobs:
- name: Build
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
mkdir -p "$TEMP_PATH/build_check/package_release"
cd .. && tar czf $TEMP_PATH/build_source.src.tar.gz ClickHouse/
cd $TEMP_PATH && tar xvzf $TEMP_PATH/build_source.src.tar.gz
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
Expand Down Expand Up @@ -661,7 +663,7 @@ jobs:
strategy:
fail-fast: false
matrix:
SUITE: [aes_encryption, aggregate_functions, atomic_insert, base_58, clickhouse_keeper, datetime64_extended_range, disk_level_encryption, dns, example, extended_precision_datatypes, kafka, kerberos, lightweight_delete, map_type, rbac, selects, ssl_server, tiered_storage, window_functions]
SUITE: [aes_encryption, aggregate_functions, atomic_insert, base_58, clickhouse_keeper, datetime64_extended_range, disk_level_encryption, dns, example, extended_precision_data_types, kafka, kerberos, lightweight_delete, map_type, part_moves_between_shards, rbac, selects, ssl_server, tiered_storage, window_functions]
needs: [regression_start]
runs-on: [self-hosted, stress-tester]
env:
Expand Down
12 changes: 12 additions & 0 deletions tests/ci/build_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,18 @@ def main():

print(f"::notice ::Log URL: {log_url}")

src_path = os.path.join(TEMP_PATH, "build_source.src.tar.gz")

if os.path.exists(src_path):
src_url = s3_helper.upload_build_file_to_s3(
src_path, s3_path_prefix + "/clickhouse-" + version.string + ".src.tar.gz"
)
logging.info("Source tar %s", src_url)
else:
logging.info("Source tar doesn't exist")

print(f"::notice ::Source tar URL: {src_url}")

create_json_artifact(
TEMP_PATH, build_name, log_url, build_urls, build_config, elapsed, success
)
Expand Down