Skip to content

Commit

Permalink
feat: Removing worker build (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhousley authored Oct 17, 2023
1 parent 44b0ece commit 15f801b
Show file tree
Hide file tree
Showing 47 changed files with 199 additions and 2,780 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ module.exports = {
// Ignore JIL code since it is being replaced with WDIO
'tools/jil/**/*',
'tests/browser/**/*',
'tests/functional/**/*',
'tests/worker/**/*'
'tests/functional/**/*'
],
parser: '@babel/eslint-parser',
parserOptions: {
Expand Down
7 changes: 0 additions & 7 deletions .github/actions/size-diff/report-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,5 @@ export const reportSettings = {
{ name: 'loader', fileNameRegex: createRegExpFn('spa-polyfills', 'loader') },
{ name: 'async-chunk', fileNameRegex: createRegExpFn('spa-polyfills') }
]
},
worker: {
statsFileNameTemplate: 'nr-worker{{version}}.stats.json',
assetFileNameTemplates: [
{ name: 'loader', fileNameRegex: createRegExpFn('worker', 'loader') },
{ name: 'async-chunk', fileNameRegex: createRegExpFn('worker') }
]
}
}
29 changes: 0 additions & 29 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,6 @@ jobs:
collection: functional
secrets: inherit

jil-workers:
name: JIL Test - workers
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Build agent
run: npm run build:all
- name: Run JIL Tests
run: |
find ./tests/worker -regex ".*.test.js" | xargs node --max-old-space-size=8192 ./tools/jil/bin/cli.js \
-f merged \
-s \
-b '*@*' \
--concurrent 30 \
-t 85000 \
${{ runner.debug && '-v -L -D -d' || '' }}
verify-ab-assets:
name: Verify A/B Assets
timeout-minutes: 60
Expand Down
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
"loaders/micro-agent": [
"dist/types/loaders/micro-agent.d.ts"
],
"loaders/worker-agent": [
"dist/types/loaders/worker-agent.d.ts"
],
"features/ajax": [
"dist/types/features/ajax/index.d.ts"
],
Expand Down Expand Up @@ -81,11 +78,6 @@
"require": "./dist/cjs/loaders/micro-agent.js",
"default": "./dist/esm/loaders/micro-agent.js"
},
"./loaders/worker-agent": {
"types": "./dist/types/loaders/worker-agent.d.ts",
"require": "./dist/cjs/loaders/worker-agent.js",
"default": "./dist/esm/loaders/worker-agent.js"
},
"./features/ajax": {
"types": "./dist/types/features/ajax/index.d.ts",
"require": "./dist/cjs/features/ajax/index.js",
Expand Down
21 changes: 0 additions & 21 deletions src/cdn/worker.js

This file was deleted.

1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export { Agent } from './loaders/agent'
export { BrowserAgent } from './loaders/browser-agent'
export { WorkerAgent } from './loaders/worker-agent'
export { MicroAgent } from './loaders/micro-agent'

export { Ajax } from './features/ajax'
Expand Down
24 changes: 0 additions & 24 deletions src/loaders/worker-agent.js

This file was deleted.

39 changes: 0 additions & 39 deletions tests/assets/instrumented-worker.html

This file was deleted.

38 changes: 0 additions & 38 deletions tests/assets/worker/classic-worker.html

This file was deleted.

14 changes: 0 additions & 14 deletions tests/assets/worker/js/classic-worker.js

This file was deleted.

16 changes: 0 additions & 16 deletions tests/assets/worker/js/module-worker.js

This file was deleted.

18 changes: 0 additions & 18 deletions tests/assets/worker/js/shared-worker.js

This file was deleted.

37 changes: 0 additions & 37 deletions tests/assets/worker/module-worker.html

This file was deleted.

38 changes: 0 additions & 38 deletions tests/assets/worker/shared-worker.html

This file was deleted.

Loading

0 comments on commit 15f801b

Please sign in to comment.