Skip to content

Commit

Permalink
Add HogQL version check to backend CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Oct 9, 2023
1 parent a3acd89 commit d194a3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-hogql-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
needs: check-version
# if: github.ref == 'refs/heads/master' TODO: Only build on master once the containers build on ARM
runs-on: ${{ matrix.os }}
timeout-minutes: 120 # The Linux ARM builds are painfully slow
timeout-minutes: 30
strategy:
matrix:
# As of October 2023, GitHub doesn't have ARM Actions runners… and ARM emulation is insanely slow
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
sudo apt-get update
sudo apt-get install libxml2-dev libxmlsec1 libxmlsec1-dev libxmlsec1-openssl
- name: Install python dependencies
- name: Install Python dependencies
if: steps.cache-backend-tests.outputs.cache-hit != 'true'
run: |
cd current
Expand Down Expand Up @@ -166,6 +166,18 @@ jobs:
antlr | grep "Version"
npm run grammar:build && git diff --exit-code
- name: Check if hogql-parser versions are in sync
shell: bash
run: |
local=$(python hogql_parser/setup.py --version)
required=$(grep 'hogql-parser' requirements.txt | cut -d "=" -f3)
if [[ "$required" == "$local" ]]; then
echo "Version $required of hogql-parser specified in requirements.txt is not the same as $local in hogql_parser/setup.py"
echo "This needs to be resolved before this PR is merged"
echo "If $local is not yet available on PyPI, wait for the \"Release hogql-parser\" workflow to finish"
exit 1
fi
check-migrations:
needs: changes
if: needs.changes.outputs.backend == 'true'
Expand Down

0 comments on commit d194a3a

Please sign in to comment.