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

run test cases for any specific file if mentioned #175

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
79cb538
run test cases for any specific file if mentioned
gunnalahema Nov 12, 2024
22df1bd
Add centos 10 for testing
gunnalahema Nov 13, 2024
215ed9b
testing centos 10
gunnalahema Nov 13, 2024
19a1894
create local s3 bucket for testing to push packages
gunnalahema Nov 16, 2024
13252c1
testing centos 10
gunnalahema Nov 17, 2024
1d77dd8
remove centos 10 parameter
gunnalahema Nov 17, 2024
f8fbaa5
revert back changes , s3 bucket details
gunnalahema Nov 17, 2024
a7838d5
testing for amazonlinux 2023
gunnalahema Nov 17, 2024
6082ca2
update centos 8 ami and testing centos 8
gunnalahema Nov 18, 2024
c38aa3c
add local s3 bucket
gunnalahema Nov 18, 2024
269fc25
add production and staging availability false
gunnalahema Nov 18, 2024
da74d9c
ci: updated session name
voorepreethi Nov 18, 2024
5a06e64
update session name
gunnalahema Nov 18, 2024
7e68740
update s3 bucket region
gunnalahema Nov 18, 2024
4779785
remove sign_suse_package condition from run_e2e_tests_prerelease
gunnalahema Nov 18, 2024
f2d0581
revert back changes
gunnalahema Nov 19, 2024
10f4971
test sles_15.3
gunnalahema Nov 20, 2024
8ec6bd6
test sles and amazonlinux 2023
gunnalahema Nov 20, 2024
8829e97
add sign_suse_packages back and test amazonlinux 2023
gunnalahema Nov 20, 2024
07f5a12
revert back availability value and remove sign_suse_packages dep
gunnalahema Nov 20, 2024
7d77271
staging availability tag false
gunnalahema Nov 20, 2024
425b9bd
add Configure AWS credentials from OIDC step in Publish linux package…
gunnalahema Nov 20, 2024
1d9ae2b
remove aws config step
gunnalahema Nov 20, 2024
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
20 changes: 12 additions & 8 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:
make schemas/generateSchemas;
gh release upload ${{ env.PRE_RELEASE_NAME }} schemas/generated-linux-schema-staging.yaml --repo newrelic/fluent-bit-package
gh release upload ${{ env.PRE_RELEASE_NAME }} schemas/generated-linux-schema-production.yaml --repo newrelic/fluent-bit-package

- name: Print linux_and_windows_matrix value
run: |
echo "linux_and_windows_matrix: ${{ needs.setup_environment.outputs.linux_and_windows_matrix }}"

# Downloads all Fluent Bit packages that are officially supported, preferably from the New Relic Infrastructure Agent
# repository (Linux packages, already re-signed by NR) or Logging's S3 bucket (Windows packages, already packaged for the NRIA).
Expand Down Expand Up @@ -193,7 +197,7 @@ jobs:

# Runs E2E tests using the packages available in the tmp-pr-#PR prerelease
run_e2e_tests_prerelease:
needs: [ setup_environment, sign_suse_packages, upload_official_packages_to_prerelease ]
needs: [ setup_environment, upload_official_packages_to_prerelease ]
name: Run E2E tests by installing NRIA from Production and installing Fluent Bit from the PR pre-release
uses: ./.github/workflows/run_e2e_tests.yml
with:
Expand All @@ -216,15 +220,15 @@ jobs:
repo_name: "newrelic/fluent-bit-package"
schema: "custom"
schema_url: "https://github.com/newrelic/fluent-bit-package/releases/download/${{ env.PRE_RELEASE_NAME }}/generated-linux-schema-staging.yaml"
aws_access_key_id: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
aws_secret_access_key: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}
aws_s3_bucket_name: "nr-downloads-ohai-staging"
aws_s3_lock_bucket_name: "onhost-ci-lock-staging"
aws_access_key_id: ${{ secrets.HEMA_LOGGING_AWS_ACCESS_KEY_ID}}
aws_secret_access_key: ${{ secrets.HEMA_LOGGING_AWS_SECRET_ACCESS_KEY_ID}}
aws_s3_bucket_name: "hema-testing-e2e-fluent-bit"
aws_s3_lock_bucket_name: "hema-onhost-ci-lock-staging-testing"
access_point_host: "staging"
run_id: ${{ github.run_id }}
aws_region: "us-east-1"
aws_role_session_name: ${{ secrets.OHAI_AWS_ROLE_SESSION_NAME_STAGING }}
aws_role_arn: ${{ secrets.OHAI_AWS_ROLE_ARN_STAGING }}
aws_region: "us-east-2"
aws_role_session_name: "hema-testing-session-name"
aws_role_arn: ${{ secrets.HEMA_AWS_ROLE_ARN}}
# used for signing package stuff
gpg_passphrase: ${{ secrets.OHAI_GPG_PASSPHRASE }}
gpg_private_key_base64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded
Expand Down
7 changes: 7 additions & 0 deletions versions/centos_10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
osDistro: centos
osVersion: 10
packages:
- arch: x86_64
ami: ami-011d59a275b482a49
- arch: aarch64
ami: ami-008dee3b597bad5c2
2 changes: 1 addition & 1 deletion versions/centos_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ packages:
- arch: x86_64
ami: ami-0af29b92a1457bf87
- arch: aarch64
ami: ami-0dce27ea07b1afb8f
ami: ami-09f3af140f3b989cf
12 changes: 10 additions & 2 deletions versions/strategyMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,18 @@ def read_distro_packages(distro_file):

def list_distro_files():
try:
# if specific_file is not None:
# # Check if the specified file exists and has the correct extension
# if (specific_file.endswith(".yml") or specific_file.endswith(".yaml")) and os.path.isfile(specific_file):
# return [specific_file]
# else:
# print(f"Specified file {specific_file} does not exist or has an invalid extension.")
# return []

return [
filename
for filename in os.listdir(".")
if (filename.endswith(".yml") or filename.endswith(".yaml"))
if (filename.startswith("amazonlinux_2023"))
and filename != "common.yml"
]
except Exception as e:
Expand All @@ -211,7 +219,7 @@ def add_availability_flags(matrix):
if "nrStagingPackageUrl" in pkg:
url = pkg["nrStagingPackageUrl"]
response = requests.head(url)
pkg["isStaging"] = True if response.status_code == 200 else False
pkg["isStaging"] = False


if __name__ == "__main__":
Expand Down
Loading