Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: upgrade test-nearform_intel-ubuntu1604-x64-1 #3052

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ hosts:
user: admin
remote_env:
PATH: /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
intel-ubuntu1604-x64-1: {ip: 92.51.196.114, build_test_v8: yes}
intel-ubuntu1804-x64-1: {ip: 92.51.196.114, build_test_v8: yes, is_benchmark: yes}
intel-ubuntu1604-x64-2: {ip: 92.51.196.115}


Expand Down
1 change: 1 addition & 0 deletions ansible/playbooks/jenkins/worker/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

- hosts:
- test-*-ubuntu1604-x*
- test-*intel-ubuntu1804-x*
roles:
- linux-perf

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/baselayout/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ packages: {
],

ubuntu: [
'ccache,git,libfontconfig1,sudo,python3-pip',
'ccache,curl,git,libfontconfig1,sudo,python3-pip',
],

ubuntu1404: [
Expand Down
10 changes: 3 additions & 7 deletions ansible/roles/benchmarking/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@
args:
chdir: "/home/{{ server_user }}/wrk"

- name: Install Rscript repo | ubuntu1404
when: os == "ubuntu1404"
shell: echo "deb https://ftp.heanet.ie/mirrors/cran.r-project.org/bin/linux/ubuntu trusty/" > /etc/apt/sources.list.d/r.list

- name: Install Rscript repo | ubuntu1604
when: os == "ubuntu1604"
shell: echo "deb https://ftp.heanet.ie/mirrors/cran.r-project.org/bin/linux/ubuntu xenial/" > /etc/apt/sources.list.d/r.list
- name: Install Rscript repo | {{ os }}
when: os|startswith("ubuntu")
shell: echo "deb https://ftp.heanet.ie/mirrors/cran.r-project.org/bin/linux/ubuntu {{ ansible_distribution_release }}-cran40/" > /etc/apt/sources.list.d/r.list

- name: Add R key
apt_key:
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/benchmarking/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ packages:
- python-requests
- zlib1g-dev
- build-essential
- unzip
10 changes: 10 additions & 0 deletions ansible/roles/build-test-v8/tasks/partials/ubuntu1804.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

#
# Install packages for V8 builds.
#

- name: install httplib2
ansible.builtin.apt:
name: ['python-httplib2', 'python3-httplib2']
state: present
6 changes: 6 additions & 0 deletions ansible/roles/linux-perf/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

# sysctl handler

- name: update sysctl settings
ansible.builtin.command: sysctl -p /etc/sysctl.d/20-perf.conf
11 changes: 11 additions & 0 deletions ansible/roles/linux-perf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,14 @@
file:
state: absent
path: "{{ tmp_folder }}"

- name: Allow monitoring
ansible.builtin.lineinfile:
create: yes
dest: "/etc/sysctl.d/20-perf.conf"
line: "{{ item.line }}"
regexp: "{{ item.regexp }}"
notify: update sysctl settings
with_items:
- { regexp: "kernel.perf_event_paranoid", line: "kernel.perf_event_paranoid = 2" }
tags: linux_perf