Skip to content
Closed
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8cf7c8e
make sure versioned assets exist
metal-messiah Jun 17, 2026
ef464c9
fix name
metal-messiah Jun 17, 2026
226d7bc
improve ci for released asset
metal-messiah Jun 17, 2026
58b6769
append branch name for dev for clarity
metal-messiah Jun 17, 2026
2eeb3ce
apply to subversion
metal-messiah Jun 18, 2026
c8d2d12
clean up
metal-messiah Jun 18, 2026
aaad12c
full deployment re-work
metal-messiah Jun 18, 2026
a2ee191
resolve merge conflicts
metal-messiah Jun 18, 2026
7b42502
clean up
metal-messiah Jun 18, 2026
c7883e6
add env for clarity
metal-messiah Jun 18, 2026
d60b060
simplify deploy flow
metal-messiah Jun 19, 2026
c2faf54
ensure it always runs
metal-messiah Jun 19, 2026
20a1438
keep as failures
metal-messiah Jun 19, 2026
2c1967e
only try js-agent not staging-js-agent
metal-messiah Jun 23, 2026
4ee6b99
also use local build to avoid fetch and cache busting requirements
metal-messiah Jun 23, 2026
52e876b
quick-fix
metal-messiah Jun 23, 2026
d95739e
rebase with main
metal-messiah Jun 23, 2026
1243a49
fix deploy order to match company standard
metal-messiah Jun 23, 2026
2c0330e
remove unneeded portion of postamble
metal-messiah Jun 23, 2026
bc4d04d
remove usage of staging-js cdn for caching reasons
metal-messiah Jun 23, 2026
0b96989
consolidate and ensure consistency
metal-messiah Jun 24, 2026
6a60042
consolidate and ensure consistency
metal-messiah Jun 24, 2026
e9bf51f
fix inconsistencies
metal-messiah Jun 24, 2026
71e3582
undo last changes for simpler
metal-messiah Jun 24, 2026
dd75b82
ensure nrdb publish uses same build as NR1 deploy
metal-messiah Jun 24, 2026
c378a2a
ensure that publish nrdb can succeed with local build
metal-messiah Jun 25, 2026
1962104
address fuzzy staging upload issues
metal-messiah Jun 29, 2026
953e441
address var mismatches
metal-messiah Jun 29, 2026
385697e
simplify
metal-messiah Jun 29, 2026
8cae22e
simplify
metal-messiah Jun 29, 2026
3839354
simplify
metal-messiah Jun 29, 2026
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
11 changes: 0 additions & 11 deletions .github/actions/internal-promotion/templates/postamble.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
// Reset config values back to released
window.NREUM.loader_config.agentID = '{{{args.appId}}}'
window.NREUM.loader_config.applicationID = '{{{args.appId}}}'
window.NREUM.loader_config.licenseKey = '{{{args.licenseKey}}}'
window.NREUM.info.applicationID = '{{{args.appId}}}'
window.NREUM.info.licenseKey = '{{{args.licenseKey}}}'
window.NREUM.init.proxy = {}
window.NREUM.init.session_replay.enabled = true
window.NREUM.init.session_trace.enabled = true
window.NREUM.init.user_actions = { elementAttributes: ['id', 'className', 'tagName', 'type', 'ariaLabel', 'alt', 'title'] }

// Session replay entitlements check
try {
var xhr = new XMLHttpRequest()
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/internal-promotion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,11 @@ jobs:

# Step 2: Deploy to Staging
deploy-staging:
# Only run for workflow_dispatch on main or release-please branches
# Only run for workflow_dispatch (on main or release-please branches) or release-please PRs
if: |
github.event_name == 'workflow_dispatch' &&
(github.ref_name == 'main' || startsWith(github.ref_name, 'release-please--'))
(github.event_name == 'workflow_dispatch' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release-please--'))) ||
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release-please--'))
# Requires manual approval via environment protection rules
needs: [resolve-version, deploy-dev]
# use the hosted runner with white-listed IPs to ensure we can access internal NR1 staging environment for asset publishing for copy/paste loader update.
runs-on: Browser-Agent-Assigned-IP-Linux
Expand Down Expand Up @@ -286,8 +287,8 @@ jobs:
dem_platform_ops_channel_url: ${{ secrets.SLACK_DEM_PLATFORM_OPS_WEBHOOK_URL }}
message: ":rocket: New Browser Agent version promoted to \\`staging\\` environment. See <https://github.com/newrelic/newrelic-browser-agent/actions/runs/${{ github.run_id }}|workflow run>."

# Step 3: Deploy to Japan Production
deploy-jp-prod:
# Step 3: Deploy to EU Production
deploy-eu-prod:
needs: [resolve-version, deploy-staging]
runs-on: ubuntu-latest
environment: nr1-jp-prod
Comment thread
metal-messiah marked this conversation as resolved.
Outdated
Expand Down Expand Up @@ -368,9 +369,9 @@ jobs:
dem_platform_ops_channel_url: ${{ secrets.SLACK_DEM_PLATFORM_OPS_WEBHOOK_URL }}
message: ":rocket: New Browser Agent version promoted to \\`jp-prod\\` environment. See <https://github.com/newrelic/newrelic-browser-agent/actions/runs/${{ github.run_id }}|workflow run>."

# Step 4: Deploy to EU Production
deploy-eu-prod:
needs: [resolve-version, deploy-jp-prod]
# Step 4: Deploy to Japan Production
deploy-jp-prod:
needs: [resolve-version, deploy-eu-prod]
runs-on: ubuntu-latest
environment: nr1-eu-prod
timeout-minutes: 30
Expand Down Expand Up @@ -452,7 +453,7 @@ jobs:

# Step 5: Deploy to US Production
deploy-us-prod:
needs: [resolve-version, deploy-eu-prod]
needs: [resolve-version, deploy-jp-prod]
runs-on: ubuntu-latest
environment: nr1-us-prod
timeout-minutes: 30
Expand Down
2 changes: 1 addition & 1 deletion tools/webpack/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default async (env) => {
case 'staging':
PATH_VERSION = ''
SUBVERSION = 'STAGING'
PUBLIC_PATH = 'https://staging-js-agent.newrelic.com/staging/'
PUBLIC_PATH = 'https://js-agent.newrelic.com/staging/'
VERSION = `${VERSION}-rc`
break
case 'jp-prod':
Expand Down
Loading