-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload and publish test results (#71)
* Add gh actions to publish pre-release's test results
- Loading branch information
1 parent
70d2ee2
commit 41584ad
Showing
21 changed files
with
538 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ansible/provision-and-execute-tests/roles/install_nr_fluent_bit_output/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Role Name | ||
========= | ||
|
||
This roles makes the infra agent use a specific version (plugin_arch) of the NR FB output plugin. | ||
|
||
Role Variables | ||
-------------- | ||
|
||
The role requires the following variables: | ||
- `plugin_arch`: The name of the plugin_architecture, matching the case of [the output plugin artifact names](https://github.com/newrelic/newrelic-fluent-bit-output/releases) | ||
(`arm64`, `amd64`, `386`) | ||
- `plugin_version`: The Fluent Bit package name to download from the [NR FB Output Plugin releases](https://github.com/newrelic/newrelic-fluent-bit-output/releases) |
25 changes: 25 additions & 0 deletions
25
ansible/provision-and-execute-tests/roles/install_nr_fluent_bit_output/tasks/linux.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- name: Load Linux variables | ||
ansible.builtin.include_vars: "linux.yml" | ||
|
||
- name: Stop newrelic-infra service | ||
ansible.builtin.service: | ||
name: newrelic-infra | ||
state: stopped | ||
become: true | ||
|
||
- name: Download NR FB Output Plugin | ||
ansible.builtin.get_url: | ||
url: "{{ nr_fb_output_plugin_url }}" | ||
dest: "{{ nr_fb_output_plugin_download_file_path }}" | ||
|
||
- name: Modify Infrastructure Agent config to point to downloaded NR FB Output Plugin | ||
ansible.builtin.lineinfile: | ||
path: "{{ infra_agent_config_file_absolute_path }}" | ||
line: 'fluent_bit_nr_lib_path: {{ nr_fb_output_plugin_download_file_path }}' | ||
become: true | ||
|
||
- name: Start again newrelic-infra service with new NR FB Output plugin | ||
ansible.builtin.service: | ||
name: newrelic-infra | ||
state: started | ||
become: true |
14 changes: 14 additions & 0 deletions
14
ansible/provision-and-execute-tests/roles/install_nr_fluent_bit_output/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: Check mandatory variables (all distros) | ||
assert: | ||
that: | ||
- plugin_arch is defined | ||
- plugin_version is defined | ||
|
||
- name: Install specific NR Fluent Bit output Linux plugin | ||
include_tasks: "linux.yml" | ||
when: ansible_system == 'Linux' | ||
|
||
- name: Install specific NR Fluent Bit output Windows plugin | ||
include_tasks: "windows.yml" | ||
when: ansible_system != 'Linux' |
22 changes: 22 additions & 0 deletions
22
ansible/provision-and-execute-tests/roles/install_nr_fluent_bit_output/tasks/windows.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
- name: Load Windows variables | ||
ansible.builtin.include_vars: "windows.yml" | ||
|
||
- name: Stop newrelic-infra service | ||
ansible.windows.win_service: | ||
name: newrelic-infra | ||
state: stopped | ||
|
||
- name: Download NR FB Output Plugin | ||
ansible.windows.win_get_url: | ||
url: "{{ nr_fb_output_plugin_url }}" | ||
dest: '{{ nr_fb_output_plugin_download_file_path }}' | ||
|
||
- name: Modify Infrastructure Agent config to point to downloaded NR FB Output Plugin | ||
community.windows.win_lineinfile: | ||
path: "{{ infra_agent_config_file_absolute_path }}" | ||
line: 'fluent_bit_nr_lib_path: {{ nr_fb_output_plugin_download_file_path }}' | ||
|
||
- name: Start again newrelic-infra service with new NR FB Output plugin | ||
ansible.windows.win_service: | ||
name: newrelic-infra | ||
state: started |
5 changes: 5 additions & 0 deletions
5
ansible/provision-and-execute-tests/roles/install_nr_fluent_bit_output/vars/linux.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
infra_agent_config_file_absolute_path: /etc/newrelic-infra.yml | ||
nr_fb_output_file_extension: 'so' | ||
nr_fb_output_plugin_artifact: 'out_newrelic-linux-{{ plugin_arch }}-{{ plugin_version }}.{{ nr_fb_output_file_extension }}' | ||
nr_fb_output_plugin_url: "https://github.com/newrelic/newrelic-fluent-bit-output/releases/download/v{{ plugin_version }}/{{ nr_fb_output_plugin_artifact }}" | ||
nr_fb_output_plugin_download_file_path: "/tmp/out_newrelic.{{ nr_fb_output_file_extension }}'" |
5 changes: 5 additions & 0 deletions
5
ansible/provision-and-execute-tests/roles/install_nr_fluent_bit_output/vars/windows.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
infra_agent_config_file_absolute_path: C:\Program Files\New Relic\newrelic-infra\newrelic-infra.yml | ||
nr_fb_output_file_extension: 'dll' | ||
nr_fb_output_plugin_artifact: 'out_newrelic-windows-{{ plugin_arch }}-{{ plugin_version }}.{{ nr_fb_output_file_extension }}' | ||
nr_fb_output_plugin_url: "https://github.com/newrelic/newrelic-fluent-bit-output/releases/download/v{{ plugin_version }}/{{ nr_fb_output_plugin_artifact }}" | ||
nr_fb_output_plugin_download_file_path: 'C:\Windows\Temp\out_newrelic.{{ nr_fb_output_file_extension }}' |
Oops, something went wrong.