Skip to content

Commit 9b6fb78

Browse files
authored
fix(build): add workaround to fix github actions due to microsoft signing bug. (#14993)
This is a temporary workaround due to an invalid InRelease file published to the Microsoft Debian repository used by Ubuntu 22.04 (see microsoft/linux-package-repositories#130). The build jobs fail because apt-get update fails. TODO: Revert this when the issue is fixed
1 parent f7a2f56 commit 9b6fb78

11 files changed

+94
-23
lines changed

.github/actions/python/setup/action.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ runs:
1414
- shell: bash
1515
run: |
1616
if [[ "${OSTYPE}" =~ "linux" ]]; then
17+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
18+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
1719
sudo apt-get update
1820
sudo apt-get install -y --no-install-recommends libsystemd-dev
1921
fi

.github/workflows/app-test-build-deploy.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ jobs:
6161
with:
6262
node-version: '18.19.0'
6363
- name: 'install udev'
64-
run: sudo apt-get update && sudo apt-get install libudev-dev
64+
run: |
65+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
66+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
67+
sudo apt-get update && sudo apt-get install libudev-dev
6568
- name: 'set complex environment variables'
6669
id: 'set-vars'
6770
uses: actions/github-script@v6
@@ -116,7 +119,10 @@ jobs:
116119
run: make --version
117120
- name: 'install libudev and libsystemd'
118121
if: startsWith(matrix.os, 'ubuntu')
119-
run: sudo apt-get update && sudo apt-get install libudev-dev
122+
run: |
123+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
124+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
125+
sudo apt-get update && sudo apt-get install libudev-dev
120126
- name: 'set complex environment variables'
121127
id: 'set-vars'
122128
uses: actions/github-script@v6
@@ -247,7 +253,10 @@ jobs:
247253
run: make --version
248254
- name: 'install libudev and libsystemd'
249255
if: startsWith(matrix.os, 'ubuntu')
250-
run: sudo apt-get update && sudo apt-get install libudev-dev
256+
run: |
257+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
258+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
259+
sudo apt-get update && sudo apt-get install libudev-dev
251260
- name: 'set complex environment variables'
252261
id: 'set-vars'
253262
uses: actions/github-script@v6
@@ -423,7 +432,10 @@ jobs:
423432
with:
424433
node-version: '18.19.0'
425434
- name: 'install udev'
426-
run: sudo apt-get update && sudo apt-get install libudev-dev
435+
run: |
436+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
437+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
438+
sudo apt-get update && sudo apt-get install libudev-dev
427439
- name: 'set complex environment variables'
428440
id: 'set-vars'
429441
uses: actions/github-script@v6

.github/workflows/components-test-build-deploy.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
4444
with:
4545
node-version: '18.19.0'
4646
- name: 'install udev for usb-detection'
47-
run: sudo apt-get update && sudo apt-get install libudev-dev
47+
run: |
48+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
49+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
50+
sudo apt-get update && sudo apt-get install libudev-dev
4851
- name: 'cache yarn cache'
4952
uses: actions/cache@v3
5053
with:
@@ -77,7 +80,10 @@ jobs:
7780
with:
7881
node-version: '18.19.0'
7982
- name: 'install udev for usb-detection'
80-
run: sudo apt-get update && sudo apt-get install libudev-dev
83+
run: |
84+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
85+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
86+
sudo apt-get update && sudo apt-get install libudev-dev
8187
- name: 'cache yarn cache'
8288
uses: actions/cache@v3
8389
with:
@@ -175,7 +181,10 @@ jobs:
175181
node-version: '18.19.0'
176182
registry-url: 'https://registry.npmjs.org'
177183
- name: 'install udev for usb-detection'
178-
run: sudo apt-get update && sudo apt-get install libudev-dev
184+
run: |
185+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
186+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
187+
sudo apt-get update && sudo apt-get install libudev-dev
179188
- name: 'setup-js'
180189
run: |
181190
npm config set cache ./.npm-cache

.github/workflows/g-code-testing-lint-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ jobs:
4646
with:
4747
fetch-depth: 0
4848
- name: 'install udev'
49-
run: sudo apt-get update && sudo apt-get install libudev-dev
49+
run: |
50+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
51+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
52+
sudo apt-get update && sudo apt-get install libudev-dev
5053
- uses: 'actions/setup-node@v3'
5154
with:
5255
node-version: '18.19.0'

.github/workflows/js-check.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ jobs:
5454
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`)
5555
buildComplexEnvVars(core, context)
5656
- name: 'install libudev for usb-detection'
57-
run: sudo apt-get update && sudo apt-get install libudev-dev
57+
run: |
58+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
59+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
60+
sudo apt-get update && sudo apt-get install libudev-dev
5861
- name: 'cache yarn cache'
5962
uses: actions/cache@v3
6063
with:

.github/workflows/ll-test-build-deploy.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353
git fetch -f origin ${{ github.ref }}:${{ github.ref }}
5454
git checkout ${{ github.ref }}
5555
- name: 'install libudev for usb-detection'
56-
run: sudo apt-get update && sudo apt-get install libudev-dev
56+
run: |
57+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
58+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
59+
sudo apt-get update && sudo apt-get install libudev-dev
5760
- name: 'cache yarn cache'
5861
uses: actions/cache@v3
5962
with:
@@ -93,7 +96,10 @@ jobs:
9396
with:
9497
node-version: '18.19.0'
9598
- name: 'install libudev for usb-detection'
96-
run: sudo apt-get update && sudo apt-get install libudev-dev
99+
run: |
100+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
101+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
102+
sudo apt-get update && sudo apt-get install libudev-dev
97103
- name: 'cache yarn cache'
98104
uses: actions/cache@v3
99105
with:
@@ -133,7 +139,10 @@ jobs:
133139
with:
134140
node-version: '18.19.0'
135141
- name: 'install libudev for usb-detection'
136-
run: sudo apt-get update && sudo apt-get install libudev-dev
142+
run: |
143+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
144+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
145+
sudo apt-get update && sudo apt-get install libudev-dev
137146
- name: 'cache yarn cache'
138147
uses: actions/cache@v3
139148
with:
@@ -176,7 +185,10 @@ jobs:
176185
with:
177186
node-version: '18.19.0'
178187
- name: 'install udev for usb-detection'
179-
run: sudo apt-get update && sudo apt-get install libudev-dev
188+
run: |
189+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
190+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
191+
sudo apt-get update && sudo apt-get install libudev-dev
180192
- name: 'set complex environment variables'
181193
id: 'set-vars'
182194
uses: actions/github-script@v6

.github/workflows/opentrons-ai-client-test-build-deploy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ jobs:
4848
with:
4949
node-version: '18.19.0'
5050
- name: 'install udev'
51-
run: sudo apt-get update && sudo apt-get install libudev-dev
51+
run: |
52+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
53+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
54+
sudo apt-get update && sudo apt-get install libudev-dev
5255
- name: 'set complex environment variables'
5356
id: 'set-vars'
5457
uses: actions/github-script@v6

.github/workflows/pd-test-build-deploy.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353
with:
5454
node-version: '18.19.0'
5555
- name: 'install udev for usb-detection'
56-
run: sudo apt-get update && sudo apt-get install libudev-dev
56+
run: |
57+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
58+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
59+
sudo apt-get update && sudo apt-get install libudev-dev
5760
- name: 'cache yarn cache'
5861
uses: actions/cache@v2
5962
with:
@@ -99,7 +102,10 @@ jobs:
99102
node-version: '18.19.0'
100103
- name: 'install udev for usb-detection'
101104
if: startsWith(matrix.os, 'ubuntu')
102-
run: sudo apt-get update && sudo apt-get install libudev-dev
105+
run: |
106+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
107+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
108+
sudo apt-get update && sudo apt-get install libudev-dev
103109
- name: 'cache yarn cache'
104110
uses: actions/cache@v3
105111
with:
@@ -135,7 +141,10 @@ jobs:
135141
with:
136142
node-version: '18.19.0'
137143
- name: 'install udev for usb-detection'
138-
run: sudo apt-get update && sudo apt-get install libudev-dev
144+
run: |
145+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
146+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
147+
sudo apt-get update && sudo apt-get install libudev-dev
139148
- name: 'cache yarn cache'
140149
uses: actions/cache@v3
141150
with:
@@ -176,7 +185,10 @@ jobs:
176185
with:
177186
node-version: '18.19.0'
178187
- name: 'install udev for usb-detection'
179-
run: sudo apt-get update && sudo apt-get install libudev-dev
188+
run: |
189+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
190+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
191+
sudo apt-get update && sudo apt-get install libudev-dev
180192
- name: 'set complex environment variables'
181193
id: 'set-vars'
182194
uses: actions/github-script@v6

.github/workflows/react-api-client-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
with:
4242
node-version: '18.19.0'
4343
- name: 'install libudev for usb-detection'
44-
run: sudo apt-get update && sudo apt-get install libudev-dev
44+
run: |
45+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
46+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
47+
sudo apt-get update && sudo apt-get install libudev-dev
4548
- name: 'cache yarn cache'
4649
uses: actions/cache@v3
4750
with:

.github/workflows/shared-data-test-lint-deploy.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ jobs:
8080
fetch-depth: 0
8181
- name: 'install udev for usb-detection'
8282
if: startsWith(matrix.os, 'ubuntu')
83-
run: sudo apt-get update && sudo apt-get install libudev-dev
83+
run: |
84+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
85+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
86+
sudo apt-get update && sudo apt-get install libudev-dev
8487
- uses: 'actions/setup-node@v1'
8588
with:
8689
node-version: '18.19.0'
@@ -117,7 +120,10 @@ jobs:
117120
with:
118121
node-version: '18.19.0'
119122
- name: 'install udev'
120-
run: sudo apt-get update && sudo apt-get install libudev-dev
123+
run: |
124+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
125+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
126+
sudo apt-get update && sudo apt-get install libudev-dev
121127
- name: 'cache yarn cache'
122128
uses: actions/cache@v3
123129
with:
@@ -159,7 +165,10 @@ jobs:
159165
with:
160166
node-version: '18.19.0'
161167
- name: 'install udev for usb-detection'
162-
run: sudo apt-get update && sudo apt-get install libudev-dev
168+
run: |
169+
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved
170+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
171+
sudo apt-get update && sudo apt-get install libudev-dev
163172
- uses: 'actions/setup-python@v4'
164173
with:
165174
python-version: '3.10'

0 commit comments

Comments
 (0)