From 44dcb6ef7340c8b5ced07f5d52f4de1ad051ddd8 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Fri, 30 Oct 2026 11:10:48 +0100 Subject: [PATCH 1/2] CI: Remove CircleCI config --- .circleci/config.yml | 256 ------------------------------------------- 1 file changed, 256 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 556de1d7..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,256 +0,0 @@ ---- -version: 2.1 - -commands: - # Required for testing the `rust_server` implementation - setup-rust-toolchain: - steps: - - run: - name: Installing rustup - command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - - run: - name: Setup custom Rust environment variables - command: | - echo 'export PATH=$HOME/.cargo/bin:$PATH' >> $BASH_ENV - echo "export RUST_BACKTRACE=1" >> $BASH_ENV - echo "export CARGO_INCREMENTAL=0" >> $BASH_ENV - - setup-uv: - steps: - - run: - name: Installing uv - # To update: - # 1. Pick a release from https://github.com/astral-sh/uv/releases/ - # 2. Download the checksum. - # 3. Replace the version in `UV_VERSION` with the selected version. - # 4. Replace the checksum in `UV_SHA256` with the checksum from the downloaded file. - command: | - cd /tmp - UV_SHA256=6681d691eb7f9c00ac6a3af54252f7ab29ae72f0c8f95bdc7f9d1401c23ea868 - UV=uv-x86_64-unknown-linux-gnu - UV_VERSION=0.11.7 - URL="https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/${UV}.tar.gz" - curl -sfSL --retry 5 -o "${UV}.tar.gz" "${URL}" - echo "${UV_SHA256} *${UV}.tar.gz" | shasum -a 256 -c - - tar -xf "${UV}.tar.gz" - mv ./${UV}/* ~/.local/bin/ - - run: - name: Set path for local binaries - command: | - echo 'export PATH=.:$HOME/.local/bin:$PATH' >> $BASH_ENV - - test-start: - steps: - - checkout - - run: - name: Install glean_parser - command: CC=broken_compiler uv sync - - test-min-requirements: - steps: - - run: - name: Install minimum requirements - command: | - uv sync --resolution lowest-direct - - setup-go: - steps: - - run: - name: Installing Go - # The Ubuntu-default Go available via apt in cimg/python is too - # old for the cloud.google.com/go/pubsub dependency chain (needs - # Go 1.24+). Install a newer release directly. - # To update: pick a release from https://go.dev/dl/ and bump - # GO_VERSION below. - command: | - cd /tmp - GO_VERSION=1.26.3 - GO_TARBALL=go${GO_VERSION}.linux-amd64.tar.gz - curl -sfSL --retry 5 -o "${GO_TARBALL}" "https://go.dev/dl/${GO_TARBALL}" - sudo rm -rf /usr/local/go - sudo tar -C /usr/local -xf "${GO_TARBALL}" - - run: - name: Set Go path - command: | - echo 'export PATH=/usr/local/go/bin:$PATH' >> $BASH_ENV - - test-python-version: - steps: - - run: - name: Install required native dependencies - command: | - sudo apt update -q - sudo apt install \ - --yes --no-install-recommends \ - openjdk-11-jdk-headless \ - ruby - make install-kotlin-linters - - setup-go - - setup-rust-toolchain - - run: - name: Test - command: make test-full - - lint: - steps: - - run: - name: Lint - command: make lint - - license-check: - steps: - - run: - name: License check - command: | - uv run pip-licenses --fail-on 'GNU General Public License v3 (GPLv3)' --ignore-packages yamllint - -jobs: - build-39: - docker: - - image: cimg/python:3.9-node - steps: - - test-start - - test-python-version - - build-39-min: - docker: - - image: cimg/python:3.9-node - steps: - - setup-uv - - test-start - - test-min-requirements - - test-python-version - - build-310: - docker: - - image: cimg/python:3.10-node - steps: - - test-start - - test-python-version - - build-311: - docker: - - image: cimg/python:3.11-node - steps: - - test-start - - test-python-version - - build-312: - docker: - - image: cimg/python:3.12-node - steps: - - test-start - - test-python-version - - run: - name: Build docs - command: | - make docs - touch docs/_build/html/.nojekyll - - persist_to_workspace: - root: docs/_build - paths: html - - build-313: - docker: - - image: cimg/python:3.13-node - steps: - - test-start - - test-python-version - - lint: - docker: - - image: cimg/python:3.12 - steps: - - test-start - - lint - - license-check: - docker: - - image: cimg/python:3.12 - steps: - - test-start - - license-check - - docs-deploy: - docker: - - image: node:8.10.0 - steps: - - checkout - - add_ssh_keys: - fingerprints: - - "9b:25:aa:bf:39:b6:4a:e7:c3:52:cf:ab:23:81:3d:52" - - attach_workspace: - at: docs/_build - - run: - name: Install gh-pages - command: | - npm install -g --silent gh-pages@2.0.1 - git config user.email "glean-ci@nowhere.com" - git config user.name "glean-ci" - - run: - name: Deploy docs - command: | - gh-pages --dotfiles --message "[ci skip] updates" --dist docs/_build/html - - pypi-deploy: - docker: - - image: cimg/python:3.9 - steps: - - checkout - - run: - name: Release package on PyPi - # Requires that the UV_PUBLISH_TOKEN environment variable - # is configured in CircleCI's environment variables. - command: | - make release - -workflows: - version: 2 - build: - jobs: - - lint: - filters: - tags: - only: /.*/ - - license-check: - filters: - tags: - only: /.*/ - - build-39: - filters: - tags: - only: /.*/ - - build-39-min: - filters: - tags: - only: /.*/ - - build-310: - filters: - tags: - only: /.*/ - - build-311: - filters: - tags: - only: /.*/ - - build-312: - filters: - tags: - only: /.*/ - - build-313: - filters: - tags: - only: /.*/ - - docs-deploy: - requires: - - build-312 - filters: - branches: - only: main - - pypi-deploy: - requires: - - build-39 - filters: - branches: - ignore: /.*/ - tags: - only: /v[0-9]+(\.[0-9]+)*/ From 0638e97a99fb96053ce68dddcab159bd188c9115 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Fri, 30 Oct 2026 13:44:20 +0100 Subject: [PATCH 2/2] CI: Fix up env variable --- .github/workflows/publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bcb108c9..e0cc26d3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,8 +33,6 @@ jobs: - name: Release package on PyPi run: - # Requires that the UV_PUBLISH_TOKEN environment variable - # is configured in CircleCI's environment variables. make release env: - PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}