Skip to content

Commit 1ee675d

Browse files
feat: Update agent internals in early preparation for new features (#532)
1 parent 229b8ed commit 1ee675d

File tree

83 files changed

+3276
-751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+3276
-751
lines changed

.eslintrc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'tests/assets/frameworks/**/*',
99
'tests/assets/js/internal/**/*',
1010
'tests/assets/js/vendor/**/*',
11+
'tests/assets/scripts/**/*',
1112
'tests/assets/test-builds/**/*',
1213
'tests/assets/modular/js-errors/js/vendor/**/*',
1314

@@ -18,7 +19,8 @@ module.exports = {
1819
// Ignore JIL code since it is being replaced with WDIO
1920
'tools/jil/**/*',
2021
'tests/browser/**/*',
21-
'tests/functional/**/*'
22+
'tests/functional/**/*',
23+
'tests/worker/**/*'
2224
],
2325
parser: '@babel/eslint-parser',
2426
parserOptions: {

.github/workflows/tests-worker.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Workers Test
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Runs every day at 3AM
7+
- cron: '0 4 * * *'
8+
9+
env:
10+
BUILD_NUMBER: event-${{ github.event.number }}-job-${{ github.run_number }}-attempt-${{ github.run_attempt }}
11+
12+
jobs:
13+
chrome:
14+
runs-on: ubuntu-latest
15+
container:
16+
image: ubuntu:latest
17+
defaults:
18+
run:
19+
shell: bash
20+
21+
env:
22+
NEWRELIC_ENVIRONMENT: ci
23+
JIL_SAUCE_LABS_USERNAME: ${{ secrets.JIL_SAUCE_LABS_USERNAME }}
24+
JIL_SAUCE_LABS_ACCESS_KEY: ${{ secrets.JIL_SAUCE_LABS_ACCESS_KEY }}
25+
NEW_RELIC_LICENSE_KEY: ${{ secrets.JIL_NODE_NEW_RELIC_LICENSE_KEY }}
26+
27+
steps:
28+
- name: Setup Container
29+
run: apt update && apt install -y git
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-node@v3
32+
with:
33+
node-version: lts/*
34+
- name: checkout and build
35+
uses: ./.github/actions/test-setup
36+
- name: run tests
37+
run: node --max-old-space-size=8192 ./tools/jil/bin/cli.js -f merged -b '*@*' -t 85000 tests/worker/**/*.test.js --concurrent=30

.github/workflows/tests.yml

-25
Original file line numberDiff line numberDiff line change
@@ -415,28 +415,3 @@ jobs:
415415
- name: run tests
416416
run: node --max-old-space-size=8192 ./tools/jil/bin/cli.js -P -b ie@* -s -t 85000 --concurrent=5 --unit-only
417417

418-
check-failures:
419-
if: contains(github.event.pull_request.labels.*.name, 'safe to test') && ${{ !failure() }} # final check if each needed test either pass or cancelled (special circumstance) and didn't outright fail
420-
needs: [chrome-functional, chrome-unit, firefox-functional, firefox-unit, safari-functional, safari-unit, edge-functional, edge-unit, ios-functional, ios-unit, android-functional, android-unit, ie-functional, ie-unit]
421-
continue-on-error: true
422-
runs-on: ubuntu-latest
423-
container:
424-
image: ubuntu:latest
425-
defaults:
426-
run:
427-
shell: bash
428-
429-
env:
430-
NRQL_API_KEY: ${{ secrets.NRQL_API_KEY }}
431-
432-
steps:
433-
- name: Setup Container
434-
run: apt update && apt install -y git
435-
- uses: actions/checkout@v3
436-
- uses: actions/setup-node@v3
437-
with:
438-
node-version: lts/*
439-
- name: checkout and build
440-
uses: ./.github/actions/test-setup
441-
- name: check failed tests
442-
run: node --max-old-space-size=8192 ./tools/jil/util/get-failed-tests.js

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ packages/browser-agent-core/cjs
2525
**/cdn/webpack-analysis-worker.html
2626
./docs-website
2727
/temp
28-
tests/assets/test-builds/**/*
28+
tests/assets/test-builds/**/*
29+
tests/assets/scripts/**/*

0 commit comments

Comments
 (0)