Skip to content

Commit

Permalink
Merge pull request #722 from taskcluster/snd-aloop-support
Browse files Browse the repository at this point in the history
Enable snd-aloop on ubuntu staging pools
  • Loading branch information
petemoore authored Jun 5, 2024
2 parents cb6f8d9 + 4665737 commit 4ceaea9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 7 deletions.
12 changes: 6 additions & 6 deletions config/imagesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ generic-worker-ubuntu-22-04-staging:
workerTypeMetadata:
machine-setup:
maintainer: [email protected]
script: https://github.com/taskcluster/community-tc-config/blob/57ccdf5713c6a2c21347766d20573ab03ec0420a/imagesets/generic-worker-ubuntu-22-04-staging/bootstrap.sh
script: https://github.com/taskcluster/community-tc-config/blob/b3e50f8ed9183004d09d8bee580d3eec4dd95006/imagesets/generic-worker-ubuntu-22-04-staging/bootstrap.sh
aws:
amis:
us-west-1: ami-06d678f87c927043f
us-west-2: ami-0202f4ee7ef139f2a
us-east-1: ami-009c61af7137461ed
us-east-2: ami-0c8d7969c60f073fd
us-west-1: ami-02f23432aba7edcca
us-west-2: ami-039b85caf48c37f51
us-east-1: ami-0f3a0feab0eb10c08
us-east-2: ami-01e3315c847fd8dbe
gcp:
image: projects/community-tc-workers/global/images/generic-worker-ubuntu-22-04-staging-e2llq65q0cwj2t0y606b
image: projects/community-tc-workers/global/images/generic-worker-ubuntu-22-04-staging-rszh12fn6kb34d5a3e4t
generic-worker-win2022:
workerImplementation: generic-worker
aws:
Expand Down
11 changes: 11 additions & 0 deletions config/projects/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ fuzzing:
instanceTypes:
g4ad.xlarge: 1
g4ad.2xlarge: 1
bugmon-pernosco-staging:
owner: [email protected]
emailOnError: false
imageset: generic-worker-ubuntu-22-04-staging
cloud: aws
minCapacity: 0
maxCapacity: 10
instanceTypes:
m5d.metal: 1
securityGroups:
- docker-worker
bugmon-pernosco:
owner: [email protected]
emailOnError: false
Expand Down
8 changes: 8 additions & 0 deletions config/projects/taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ taskcluster:
maxCapacity: 1
workerConfig:
genericWorker:
# files:
# - description:
# |-
# core dump file settings - eqivalent to `sysctl -w kernel.core_pattern=core`
# format: file
# encoding: base64
# path: /proc/sys/kernel/core_pattern
# content: 'Y29yZQo='
config:
# While iterating on the image building process for this worker
# pool, useful for workers not to die immediately...
Expand Down
13 changes: 13 additions & 0 deletions imagesets/generic-worker-ubuntu-22-04-staging/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ cat > /etc/modprobe.d/kvm-backdoor.conf << "EOF"
options kvm enable_vmware_backdoor=y
EOF

# configure core dumps to be in the process' current directory with filename 'core'
# (required for 3 legacy JS engine fuzzers)
echo 'core' > /proc/sys/kernel/core_pattern

# create group for running snap
groupadd snap_sudo
echo '%snap_sudo ALL=(ALL:ALL) NOPASSWD: /usr/bin/snap' | EDITOR='tee -a' visudo
Expand Down Expand Up @@ -153,6 +157,15 @@ system_info:
renderers: [ 'netplan', 'eni', 'sysconfig' ]
EOF

# snd-aloop support
echo 'options snd-aloop enable=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 index=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31' > /etc/modprobe.d/snd-aloop.conf
echo 'snd-aloop' >> /etc/modules
# apt-get install -y linux-generic
# sed -i 's/GRUB_DEFAULT=.*/GRUB_DEFAULT="1>2"/' /etc/default/grub
# sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="splash"/' /etc/default/grub
# sed -i 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="debug g"/' /etc/default/grub
# update-grub

end_time="$(date '+%s')"
echo "UserData execution took: $(($end_time - $start_time)) seconds"

Expand Down
2 changes: 1 addition & 1 deletion imagesets/generic-worker-ubuntu-22-04-staging/gcp_filters
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--image-family=ubuntu-2204-lts --image-project=ubuntu-os-cloud --boot-disk-size=10GB --boot-disk-type=pd-standard
--image-family=ubuntu-2204-lts --image-project=ubuntu-os-cloud --boot-disk-size=20GB --boot-disk-type=pd-standard

0 comments on commit 4ceaea9

Please sign in to comment.