Skip to content

Commit 979cdaf

Browse files
authored
Merge pull request #20241 from mozilla/remove_ensure-glean-venv
fix: Remove ensure-glean-venv after Glean implementation
2 parents 87d7baa + 7ab9612 commit 979cdaf

2 files changed

Lines changed: 15 additions & 32 deletions

File tree

.circleci/config.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ executors:
8080
# step, and the saving the initial a workspace state.
8181
build-executor:
8282
docker:
83-
- image: mozilla/fxa-circleci:ci-builder-v7
83+
- image: mozilla/fxa-circleci:ci-builder-v8
8484
environment:
8585
NODE_ENV: development
8686
FIRESTORE_EMULATOR_HOST: localhost:9090
@@ -96,7 +96,7 @@ executors:
9696
default: medium
9797
resource_class: << parameters.resource_class >>
9898
docker:
99-
- image: mozilla/fxa-circleci:ci-test-runner-v7
99+
- image: mozilla/fxa-circleci:ci-test-runner-v8
100100
environment:
101101
NODE_ENV: development
102102
FIRESTORE_EMULATOR_HOST: localhost:9090
@@ -112,7 +112,7 @@ executors:
112112
default: large
113113
resource_class: << parameters.resource_class >>
114114
docker:
115-
- image: mozilla/fxa-circleci:ci-test-runner-v7
115+
- image: mozilla/fxa-circleci:ci-test-runner-v8
116116
- image: cimg/mysql:8.0
117117
command: --default-authentication-plugin=mysql_native_password
118118
- image: jdlk7/firestore-emulator
@@ -135,7 +135,7 @@ executors:
135135
default: xlarge
136136
resource_class: << parameters.resource_class >>
137137
docker:
138-
- image: mozilla/fxa-circleci:ci-functional-test-runner-v7
138+
- image: mozilla/fxa-circleci:ci-functional-test-runner-v8
139139
- image: redis
140140
- image: pafortin/goaws
141141
- image: cimg/mysql:8.0
@@ -190,7 +190,7 @@ executors:
190190
default: xlarge
191191
resource_class: << parameters.resource_class >>
192192
docker:
193-
- image: mozilla/fxa-circleci:ci-functional-test-runner-v7
193+
- image: mozilla/fxa-circleci:ci-functional-test-runner-v8
194194
environment:
195195
NODE_ENV: development
196196
CUSTOMS_SERVER_URL: none
@@ -300,26 +300,12 @@ commands:
300300
name: Wait for Customs
301301
command: yarn workspace fxa-customs-server start
302302

303-
ensure-glean-venv:
304-
steps:
305-
- run:
306-
name: Ensure Python venv has pip and glean_parser
307-
command: |
308-
set -euxo pipefail
309-
310-
rm -rf .venv
311-
python3 -m venv .venv
312-
. .venv/bin/activate
313-
314-
pip install --upgrade 'glean_parser~=14.5'
315-
316303
lint:
317304
parameters:
318305
nx_run:
319306
type: string
320307
default: run-many
321308
steps:
322-
- ensure-glean-venv
323309
- run:
324310
name: Linting
325311
command: npx nx << parameters.nx_run >> --parallel=1 -t lint
@@ -330,7 +316,6 @@ commands:
330316
type: string
331317
default: run-many
332318
steps:
333-
- ensure-glean-venv
334319
- run:
335320
name: Pre building shared libraries
336321
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx run-many -t build --projects=tag:scope:shared:lib --parallel=2 --verbose
@@ -444,7 +429,6 @@ commands:
444429
type: string
445430
default: run-many
446431
steps:
447-
- ensure-glean-venv
448432
- run:
449433
name: Build
450434
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx << parameters.nx_run >> -t build --parallel=2 --all --verbose
@@ -534,7 +518,7 @@ commands:
534518
docker build . \
535519
-f ./project/_dev/docker/ci/Dockerfile \
536520
--target << parameters.target >> \
537-
-t mozilla/fxa-circleci:ci-<< parameters.target >>-v7
521+
-t mozilla/fxa-circleci:ci-<< parameters.target >>-v8
538522
539523
create-fxa-ci-images:
540524
# Build CI images. Images are built on top of each other. Each is optimized for a specific task.
@@ -563,10 +547,10 @@ commands:
563547
name: Push CI Images and Extract Yarn Cache
564548
command: |
565549
docker login -u $DOCKER_USER_fxa_circleci -p $DOCKER_PASS_fxa_circleci
566-
.circleci/docker-copy-cache.sh mozilla/fxa-circleci:ci-builder-v7
567-
docker push mozilla/fxa-circleci:ci-test-runner-v7
568-
docker push mozilla/fxa-circleci:ci-functional-test-runner-v7
569-
docker push mozilla/fxa-circleci:ci-builder-v7
550+
.circleci/docker-copy-cache.sh mozilla/fxa-circleci:ci-builder-v8
551+
docker push mozilla/fxa-circleci:ci-test-runner-v8
552+
docker push mozilla/fxa-circleci:ci-functional-test-runner-v8
553+
docker push mozilla/fxa-circleci:ci-builder-v8
570554
wait
571555
572556
upload_to_gcs:
@@ -729,7 +713,6 @@ jobs:
729713
- git-checkout
730714
- restore-workspace
731715
- gcp-cli/setup
732-
- ensure-glean-venv
733716
- run:
734717
name: Build shared libs
735718
command: NODE_OPTIONS="--max-old-space-size=7168" npx nx run-many -t build --projects=tag:scope:shared:lib --parallel=2
@@ -869,7 +852,6 @@ jobs:
869852
sudo tee -a /etc/hosts \<<<'127.0.0.1 localhost'
870853
sudo cat /etc/hosts
871854
- wait-for-infrastructure
872-
- ensure-glean-venv
873855
- run:
874856
name: Start services for playwright tests
875857
command: ./packages/functional-tests/scripts/start-services.sh

_dev/docker/ci/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN sudo apt-get update && sudo apt-get install -y \
1111
WORKDIR /home/circleci
1212
COPY --chown=circleci:circleci project project
1313
WORKDIR /home/circleci/project
14+
RUN python3 -m venv .venv \
15+
&& .venv/bin/pip install 'glean_parser~=14.5'
1416
RUN git rev-parse HEAD > base_ref;
1517
RUN cp yarn.lock yarn.lock.base;
1618

@@ -25,10 +27,7 @@ WORKDIR /home/circleci/project
2527
ENV YARN_CHECKSUM_BEHAVIOR=throw
2628
ENV FXA_AUTO_INSTALL=0
2729
RUN _scripts/l10n/clone.sh
28-
RUN yarn install --immutable \
29-
&& rm -rf .venv \
30-
&& python3 -m venv .venv \
31-
&& .venv/bin/pip install 'glean_parser~=14.5'
30+
RUN yarn install --immutable
3231

3332
# Acts as an intermediate stage for adding the firefox install. Note,
3433
# that a yarn install must happen first to ensure the correct version
@@ -49,4 +48,6 @@ WORKDIR /home/circleci
4948
COPY --chown=circleci:circleci --from=playwright-install /home/circleci/.cache/ms-playwright .cache/ms-playwright/
5049
COPY --chown=circleci:circleci project project
5150
WORKDIR /home/circleci/project
51+
RUN python3 -m venv .venv \
52+
&& .venv/bin/pip install 'glean_parser~=14.5'
5253
COPY --chown=circleci:circleci install /usr/local/bin/

0 commit comments

Comments
 (0)