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

Release 20240627 2 #2462

Merged
merged 43 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
669e72a
Cacti Quickstart
RamanaReddy8801 Jun 18, 2024
d1bdc98
Merge branch 'release' into cacti-quickstart
RamanaReddy8801 Jun 18, 2024
62b4b76
Merge branch 'release' into cacti-quickstart
mdumpati Jun 19, 2024
0ae6be0
Updated review comments
RamanaReddy8801 Jun 19, 2024
149e572
feat: NVIDIA Jetson Integration
sjyothi54 Jun 20, 2024
f71578f
Merge pull request #2444 from RamanaReddy8801/cacti-quickstart
mdumpati Jun 24, 2024
da431a0
chore: generate UUID(s) [skip ci]
nr-opensource-bot Jun 24, 2024
a19c6eb
Merge branch 'release' into NR-282144
sjyothi54 Jun 24, 2024
78d2c6e
Updated the dashboard
sjyothi54 Jun 24, 2024
c101dc6
feat(NR-255799): Updated the nerldet info
bshankararamaya Jun 24, 2024
14433c0
Merge pull request #2452 from bshankararamaya/NR-255799
Jun 25, 2024
62b1f19
Merge branch 'release' into NR-282144
mdumpati Jun 25, 2024
74d36e4
Merge pull request #2447 from sjyothi54/NR-282144
mdumpati Jun 25, 2024
78e8e5e
chore: generate UUID(s) [skip ci]
nr-opensource-bot Jun 25, 2024
8260938
refactor: Pin actions/github-script to SHA
Jun 25, 2024
972a355
refactor: Pin actions/setup-node to SHA
Jun 25, 2024
d38d3e8
refactor: Use repo vars to pin action SHAs
Jun 25, 2024
40cde64
refactor: Update pr-merged workflow to pin actions SHAs
Jun 25, 2024
55f58a2
chore: Remove commented configs
Jun 25, 2024
f3f5f56
refactor: Interpolate SHA variables for actions
Jun 25, 2024
9366796
fix: Updated Temporal dashboard.
pkudikyala Jun 26, 2024
68875f7
Merge branch 'release' into temporal-logs
pkudikyala Jun 26, 2024
708cd88
Removed jmeter quickstart
sjyothi54 Jun 26, 2024
c99a855
refactor(actions): Remove variables from action versions
Jun 26, 2024
38b2132
feat: Remove generate-schema-docs scripts and job
Jun 26, 2024
fc15da7
feat: Remove branch protection related actions
Jun 26, 2024
01e6f18
chore: Remove commented code
Jun 26, 2024
7218c6e
Merge pull request #2457 from newrelic/andrew/NR-283000-actions-branc…
Jun 26, 2024
68445b8
Merge remote-tracking branch 'origin/release' into andrew/NR-282993-p…
Jun 26, 2024
52a0ad5
Merge pull request #2453 from newrelic/andrew/NR-282993-pin-actions-t…
Jun 26, 2024
0d15500
Updated the dashboard images.
pkudikyala Jun 27, 2024
b7188de
updated images
pkudikyala Jun 27, 2024
a7472af
update image
pkudikyala Jun 27, 2024
5e922c4
Merge branch 'release' into coredns-images
sjyothi54 Jun 27, 2024
790163d
Merge pull request #2458 from pkudikyala/coredns-images
sjyothi54 Jun 27, 2024
72bd99d
Merge branch 'release' into temporal-logs
RamanaReddy8801 Jun 27, 2024
4b9527b
Merge pull request #2454 from pkudikyala/temporal-logs
sjyothi54 Jun 27, 2024
b27dc8a
Merge branch 'release' into NR-284919
sjyothi54 Jun 27, 2024
ef6526d
Merge pull request #2455 from sjyothi54/NR-284919
pkudikyala Jun 27, 2024
36e86bb
feat: Remove c++ quickstart
Jun 27, 2024
c76b5e7
Merge pull request #2459 from newrelic/andrew/remove-cpp-qs
Jun 27, 2024
7fe2966
feat: Trigger release
Jun 27, 2024
b6ee862
Merge pull request #2461 from newrelic/andrew/trigger-release
Jun 27, 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
4 changes: 2 additions & 2 deletions .github/actions/add-commit-status/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
using: composite
steps:
- name: Add commit status
uses: actions/github-script@v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
env:
STATE: ${{ inputs.state }}
STATUS_CONTEXT: ${{ inputs.statusContext }}
Expand All @@ -36,4 +36,4 @@ runs:

const result = await github.rest.repos.createCommitStatus(args);

console.log("Result:", result)
console.log("Result:", result)
8 changes: 4 additions & 4 deletions .github/actions/bootstrap/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Bootstrap Workflow
description: Reusable action for setting up the repo
runs:
using: composite
steps:
steps:
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7
with:
node-version: 16

Expand All @@ -14,7 +14,7 @@ runs:
working-directory: utils
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -24,4 +24,4 @@ runs:

- name: Install dependencies
shell: bash
run: cd utils && yarn install --frozen-lockfile
run: cd utils && yarn install --frozen-lockfile
118 changes: 2 additions & 116 deletions .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
ref: "release"
fetch-depth: 0

- name: Setup workspace
uses: './.github/actions/bootstrap'
uses: "./.github/actions/bootstrap"

- name: Generate UUIDs for quickstarts
id: generate-uuids
run: cd utils && yarn generate-uuids

- name: Temporarily disable branch protections
id: disable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
script: |
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'release',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
required_pull_request_reviews: null
})
console.log("Result:", result)

- name: Commit changes
id: commit-changes
run: |
Expand All @@ -69,99 +51,3 @@ jobs:
- name: Push Commit
if: env.commit == 'true'
run: git push origin HEAD

- name: Re-enable branch protections
id: enable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
script: |
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'release',
required_status_checks: {
strict: true,
contexts: [
'Validation / Image count and extension compliance',
'Validation / Ensure icons exist',
'Validation / Install plan ids exist',
'Validation / Data source ids exist',
'Validation / Install plan schema compliance',
'Validation / Data source schema compliance',
'Validation / Quickstart id are unique',
'Validation / Validate Quickstart Schema',
'Validation / Quickstart dashboard name is unique'
]
},
restrictions: {
"users":[],
"teams":[],
"apps":[]
},
enforce_admins: true,
required_pull_request_reviews: {
dismiss_stale_reviews: true,
required_approving_review_count: 1,
dismissal_restrictions: {
users: [],
teams: []
}
}
})
console.log("Result:", result)

# get-pr-number:
# name: Get PR number
# runs-on: ubuntu-latest
# outputs:
# pr-number: ${{ steps.output_pr_number.outputs.pr-number }}
# steps:
# - name: Download artifact
# uses: dawidd6/action-download-artifact@v2
# with:
# workflow: submit_gate.yml
# run_id: ${{ github.event.workflow_run.id }}

# - name: Get PR number
# id: output_pr_number
# run: |
# export PR_NUMBER=$(cat artifact/pr_number_submit.txt)
# echo "pr-number=$PR_NUMBER" >> $GITHUB_OUTPUT

# staging:
# needs: [generate-uuid, get-pr-number]
# uses: ./.github/workflows/reusable.quickstart_submission.yml
# with:
# pr-number: ${{ needs.get-pr-number.outputs.pr-number }}
# dry-run: false
# secrets:
# nr-api-url: ${{ secrets.NR_API_URL_STAGING }}
# nr-api-token: ${{ secrets.NR_API_TOKEN_STAGING }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
# nr-license-key: ${{ secrets.NEW_RELIC_LICENSE_KEY }}

# production:
# needs: [staging, get-pr-number]
# uses: ./.github/workflows/reusable.quickstart_submission.yml
# with:
# pr-number: ${{ needs.get-pr-number.outputs.pr-number }}
# dry-run: false
# secrets:
# nr-api-url: ${{ secrets.NR_API_URL }}
# nr-api-token: ${{ secrets.NR_API_TOKEN }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
# nr-license-key: ${{ secrets.NEW_RELIC_LICENSE_KEY }}

# eu-production:
# needs: [staging, get-pr-number]
# uses: ./.github/workflows/reusable.quickstart_submission.yml
# with:
# pr-number: ${{ needs.get-pr-number.outputs.pr-number }}
# dry-run: false
# secrets:
# nr-api-url: ${{ secrets.NR_API_URL_EU }}
# nr-api-token: ${{ secrets.NR_API_TOKEN_EU }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
# nr-license-key: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
5 changes: 2 additions & 3 deletions .github/workflows/pr-project-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
pull_request_target:
types: [opened]
paths:
- 'quickstarts/**'

- "quickstarts/**"

env:
GITHUB_TOKEN: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
Expand All @@ -15,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: Move PR to Project Board for triage
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: Setup workspace
uses: './.github/actions/bootstrap'
uses: "./.github/actions/bootstrap"

- name: Create preview links
id: links
Expand Down
98 changes: 2 additions & 96 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,112 +10,18 @@ env:
THIRD_PARTY_GIT_AUTHOR_NAME: nr-opensource-bot

jobs:
generate-schema-docs:
name: Generate GraphQL schema documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
ref: "main"
fetch-depth: 0

- name: Setup workspace
uses: './.github/actions/bootstrap'

- name: Generate schema docs for GraphQl
id: generate-schema
env:
NR_API_URL: ${{ secrets.NR_API_URL }}
NR_API_TOKEN: ${{ secrets.NR_API_TOKEN }}
run: cd utils && yarn generate-schema-docs

- name: Commit changes
id: commit-changes
run: |
git config --local user.email "${{ env.THIRD_PARTY_GIT_AUTHOR_EMAIL }}"
git config --local user.name "${{ env.THIRD_PARTY_GIT_AUTHOR_NAME }}"
git add ./docs/*
git diff-index --quiet HEAD ./docs/* || git commit -m 'chore: generate schema documentation [skip ci]'
echo "commit=true" >> $GITHUB_ENV

- name: Temporarily disable branch protections
id: disable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
script: |
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'main',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
required_pull_request_reviews: null
})
console.log("Result:", result)

- name: Push Commit
if: env.commit == 'true'
run: git push origin HEAD

- name: Re-enable branch protections
id: enable-branch-protection
if: always()
uses: actions/github-script@v6
with:
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
script: |
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'main',
required_status_checks: {
strict: true,
contexts: [
'Validation / Image count and extension compliance',
'Validation / Ensure icons exist',
'Validation / Install plan ids exist',
'Validation / Data source ids exist',
'Validation / Install plan schema compliance',
'Validation / Data source schema compliance',
'Validation / Quickstart id are unique',
'Validation / Validate Quickstart Schema',
'Validation / Quickstart dashboard name is unique'
]
},
restrictions: {
"users":[],
"teams":[],
"apps":[]
},
enforce_admins: true,
required_pull_request_reviews: {
dismiss_stale_reviews: true,
required_approving_review_count: 1,
dismissal_restrictions: {
users: [],
teams: []
}
}
})
console.log("Result:", result)

generate-third-party-notices:
runs-on: ubuntu-latest
steps:
# Checkout fetch-depth: 2 because there's a check to see if package.json
# was updated, and need at least 2 commits for the check to function properly
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
fetch-depth: 2

- name: Setup workspace
uses: './.github/actions/bootstrap'
uses: "./.github/actions/bootstrap"

- name: Install OSS CLI
working-directory: ./utils
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
steps:
- name: Test Default Branch
id: default-branch
uses: actions/github-script@v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
script: |
const data = await github.rest.repos.get(context.repo)
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
- name: Checkout Self
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Run Repolinter
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: newrelic/repolinter-action@v1
uses: newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb
with:
config_url: https://raw.githubusercontent.com/newrelic/.github/main/repolinter-rulesets/community-project.yml
output_type: issue
Loading
Loading