Skip to content

Commit 1a7b4bb

Browse files
authored
Merge branch 'master' into dill21yu-patch-1
2 parents f8e6d1f + b8b9615 commit 1a7b4bb

File tree

162 files changed

+6142
-3853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+6142
-3853
lines changed

.circleci/config.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Python 3 ARM64 CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
hue-build-and-tests-arm64:
13+
name: Build and Test (Python 3.11, ARM64)
14+
# Use GitHub-hosted ARM64 runner
15+
runs-on: ubuntu-22.04-arm
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Check commit title format
24+
run: |
25+
./tools/ci/check_for_commit_message.sh
26+
27+
- name: Set up Python 3.11
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.11'
31+
32+
- name: Cache pip
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.cache/pip
36+
key: ${{ runner.os }}-arm64-py311-pip-${{ hashFiles('desktop/core/generate_requirements.py') }}
37+
restore-keys: |
38+
${{ runner.os }}-arm64-py311-pip-
39+
${{ runner.os }}-arm64-py311-
40+
${{ runner.os }}-arm64-
41+
42+
- name: Setup node 20 and cache npm
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
cache: 'npm'
47+
48+
- name: Build Hue
49+
run: |
50+
sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
51+
export DEBIAN_FRONTEND=noninteractive
52+
sudo apt-get update -y
53+
sudo apt-get install -y build-essential asciidoc libkrb5-dev libldap2-dev libsasl2-dev libxml2-dev libxslt-dev libsasl2-modules-gssapi-mit libsnappy-dev libncursesw5-dev libgdbm-dev
54+
55+
# Install Python 3.11 using deadsnakes PPA
56+
sudo add-apt-repository -y ppa:deadsnakes/ppa
57+
sudo apt-get install -y python3.11 python3.11-dev python3.11-venv python3.11-distutils
58+
59+
# Install pip for Python 3.11
60+
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.11
61+
62+
unset PIP_FIND_LINKS
63+
unset PIP_EXTRA_INDEX_URL
64+
65+
export PYTHON_VER=python3.11
66+
export SKIP_PYTHONDEV_CHECK=true
67+
export ROOT=$PWD
68+
make apps docs test_prep
69+
70+
- name: Run python lint check
71+
run: |
72+
PYTHONWARNINGS=always ./build/env/bin/hue runruff check
73+
74+
- name: Run unit tests
75+
run: |
76+
PYTHONWARNINGS=always ./build/env/bin/pytest
77+
78+
- name: Upload reports
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: hue-reports-arm64
82+
path: ./reports

.github/workflows/cleanup-cache.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v4
13-
13+
1414
- name: Cleanup
1515
run: |
1616
gh extension install actions/gh-actions-cache
17-
17+
1818
REPO=${{ github.repository }}
1919
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
2020
2121
echo "Fetching list of cache key"
2222
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
2323
24-
## Setting this to not fail the workflow while deleting cache keys.
24+
## Setting this to not fail the workflow while deleting cache keys.
2525
set +e
2626
echo "Deleting caches..."
2727
for cacheKey in $cacheKeysForPR
@@ -30,4 +30,4 @@ jobs:
3030
done
3131
echo "Done"
3232
env:
33-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/commitflow-frontend.yml

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,51 @@ name: Frontend CI
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
1212
hue-ui-checks-and-tests:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v4
15+
- name: Checkout
16+
uses: actions/checkout@v4
1717

18-
- name: Cache npm with setup node
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 20
22-
cache: 'npm'
18+
- name: Cache npm with setup node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: 'npm'
2323

24-
- name: Install npm dependencies
25-
run: npm ci
24+
- name: Install npm dependencies
25+
run: npm ci
2626

27-
- name: Run commit title format check
28-
run: ./tools/ci/check_for_commit_message.sh
27+
- name: Run commit title format check
28+
run: ./tools/ci/check_for_commit_message.sh
2929

30-
- name: Run npm version checker
31-
run: npm run check-pinned-versions
30+
- name: Run npm version checker
31+
run: npm run check-pinned-versions
3232

33-
- name: Run npm license checker
34-
run: npm run check-license
33+
- name: Run npm license checker
34+
run: npm run check-license
3535

36-
- name: Run npm absolute path detection
37-
run: npm run check-absolute-paths
36+
- name: Run npm absolute path detection
37+
run: npm run check-absolute-paths
3838

39-
- name: Run js lint check
40-
run: npm run lint
39+
- name: Run prettier check
40+
run: npm run prettier
4141

42-
- name: Run style lint check
43-
run: npm run style-lint
42+
- name: Run js lint check
43+
run: npm run lint
4444

45-
- name: Run js tests
46-
run: |
47-
# https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server
48-
sed -i 's/"test": "jest"/"test": "jest --runInBand"/g' package.json
45+
- name: Run style lint check
46+
run: npm run style-lint
4947

50-
npm run test
48+
- name: Run js tests
49+
run: |
50+
# https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server
51+
sed -i 's/"test": "jest"/"test": "jest --runInBand"/g' package.json
52+
53+
npm run test

0 commit comments

Comments
 (0)