Skip to content

Commit b34d4f6

Browse files
pratik-k2dependabot[bot]bizob2828mkotamiesmrickard
authored
Sync fork (#2)
* Bump fast-xml-parser and @aws-sdk/client-lambda Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) and [@aws-sdk/client-lambda](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-lambda). These dependencies needed to be updated together. Updates `fast-xml-parser` from 4.2.4 to 4.2.5 - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](NaturalIntelligence/fast-xml-parser@v4.2.4...v4.2.5) Updates `@aws-sdk/client-lambda` from 3.358.0 to 3.359.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.359.0/clients/client-lambda) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-type: indirect - dependency-name: "@aws-sdk/client-lambda" dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Bump protobufjs from 7.2.3 to 7.2.4 Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 7.2.3 to 7.2.4. - [Release notes](https://github.com/protobufjs/protobuf.js/releases) - [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md) - [Commits](protobufjs/protobuf.js@protobufjs-v7.2.3...protobufjs-v7.2.4) --- updated-dependencies: - dependency-name: protobufjs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * chore: added node 20 and drop node 14 in CI * chore: fixed deps with CVEs * test: skip Next.js 13.4.13 until we can fix the instrumentation * fix: updated instrumentation to skip registering middleware instrumentation as it runs in a worker thread now and our agent cannot properly track async context * chore: removes skipping of tests on 13.4.13 and above * chore: change node engine to 16 * Setting version to v0.6.0. * Adds auto-generated release notes. * chore: Edited CHANGELOG.md Signed-off-by: mrickard <[email protected]> * test: update versioned test helper to handle [email protected] changes * chore: update path for ritm * remove slack link as it is decommissioned * chore: updated peer dep to the unreleased version of agent that this instrumentation will now require * chore: updated agent to latest * Setting version to v0.7.0. * Adds auto-generated release notes. * chore: changelog edits * chore: updated @newrelic/test-utilities to latest * chore(deps): bump @babel/traverse Bumps and [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse). These dependencies needed to be updated together. Updates `@babel/traverse` from 7.17.3 to 7.23.2 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) Updates `@babel/traverse` from 7.20.0 to 7.23.2 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect - dependency-name: "@babel/traverse" dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * test: skip running Next 14+ versioned tests on Node 16 as support was dropped * fix: package.json & package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-AXIOS-6032459 * chore(deps-dev): bump follow-redirects from 1.15.3 to 1.15.4 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.3...v1.15.4) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * test: updated test assertions based on segment tree changes in 14.1.0 of Next.js * test: updated test assertions based on segment tree changes in 14.1.0 of Next.js * refactor: Updated instrumentation to construct spec objects at instrumentation * Setting version to v0.8.0. * Adds auto-generated release notes. * Update CHANGELOG.md * feat: Added a shim to externalize all 3rd party libraries the Node.js agent instruments * feat: Added a test suite for App Router. * chore(deps-dev): bump follow-redirects from 1.15.5 to 1.15.6 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * chore: Updated CI process for releases (newrelic#183) * chore: release v0.9.0 (newrelic#184) Co-authored-by: jsumners-nr <[email protected]> Co-authored-by: James Sumners <[email protected]> * ci: removed changelog.json file (newrelic#185) * ci: Removed `use_new_release` input from prepare release workflow (newrelic#186) * test: Added targets for compatibility reporting (newrelic#187) * chore: Enabled quiet mode for CI runs (newrelic#188) * docs: Updated targets to include minimum agent version for compatibility repo (newrelic#189) * docs: Added FAQs to assist with common issues with next.js instrumentation (newrelic#190) * chore: Made pre-commit hook require dependency changes (newrelic#191) * docs: updated FAQs and README with app router examples (newrelic#192) * fix: add missing quotation mark in faq docs (newrelic#202) * chore(deps-dev): bump @grpc/grpc-js from 1.9.9 to 1.10.9 (newrelic#203) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump braces from 3.0.2 to 3.0.3 (newrelic#204) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * security(deps): bump ws (newrelic#206) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: Added Node 22 to CI (newrelic#193) * chore: release v0.10.0 (newrelic#210) * chore: Fixed copy paste error in post release workflow (newrelic#2329) * fix: Pinned dependenices of node-gyp that dropped support for Node 16 in patch releases (newrelic#2333) * fix: Refactored benchmark tests to complete async functions (newrelic#2334) Signed-off-by: mrickard <[email protected]> * chore: Revert "fix: Pinned dependenices of node-gyp that dropped support for Node 16 in patch releases (newrelic#2333)" (newrelic#2335) * feat: Added support for account level governance of AI Monitoring (newrelic#2326) * test: Fixed recordMiddlewawre benchmark test (newrelic#2338) * chore: release v11.23.0 (newrelic#2340) Co-authored-by: jsumners-nr <[email protected]> Co-authored-by: James Sumners <[email protected]> * docs: Updated compatibility report (newrelic#2342) Co-authored-by: jsumners-nr <[email protected]> * fix: Updated redis v4 instrumentation to work with transactions(multi/exec) (newrelic#2343) * chore: release v11.23.1 (newrelic#2344) * docs: Updated compatibility report (newrelic#2345) Co-authored-by: bizob2828 <[email protected]> * chore: Always upload status logs in compat report CI (newrelic#2341) * ci: Updated `bin/create-docs-pr` to create an empty array if changelog.json is missing security (newrelic#2348) * ci: increase the limit of installs from 2 to a bigger number (newrelic#2346) * ci: Changed the default project idea for our org board (newrelic#2353) * ci: Changed the default project idea for our org board (newrelic#2355) * ci: Updated board workflow to use new graphql calls to add items to project board (newrelic#2357) * ci: Fixed issue with obtaining node id for issues in add-to-board (newrelic#2360) * ci: Fixed syntax issue with parsing jq (newrelic#2362) * test: Updated benchmark test results to output result files (newrelic#2350) Signed-off-by: mrickard <[email protected]> Co-authored-by: Bob Evans <[email protected]> * docs: Removed out of date ROADMAP_Node.md from root of project (newrelic#2367) * refactor: consolidated adding issue/pr to board and assigning the appropriate status into 1 step (newrelic#2368) * refactor: fixed syntax error with add to board workflow (newrelic#2370) * chore: fix board refactor (newrelic#2371) * ci: Added benchmark test GitHub Action (newrelic#2366) Signed-off-by: mrickard <[email protected]> * feat: Added support for fs.glob in Node 22+ (newrelic#2369) * test: Removed server.start in grpc tests as it is deprecated and no longer needed (newrelic#2372) * fix: Updated cassandra-driver instrumentation to properly trace promise based executions (newrelic#2351) * ci: Include date created when adding new issue/pr to board (newrelic#2374) * ci: Pin Node 22 to 22.4.1 (newrelic#2375) * fix: Updated aws-sdk v3 instrumentation to custom middleware last to properly get the external http span to add aws.* attributes (newrelic#2382) * chore: Reverted "ci: Pin Node 22 to 22.4.1" (newrelic#2383) * refactor: remove examples/api/ (newrelic#2381) * chore: release v11.23.2 (newrelic#2391) * docs: Updated compatibility report (newrelic#2392) * chore: Updated dashboard links in developer-setup.md (newrelic#2397) * refactor: Removed `Supportability/Features/ESM/UnsupportedLoader` as it is no longer applicable in Node.js 18+ (newrelic#2393) * feat!: Dropped support for Node.js 16 (newrelic#2394) * feat!: Updated `mongodb` instrumentation to drop support for versions 2 and 3 (newrelic#2398) * test: Updated minimum version of lesser used versions of 3rd party li… (newrelic#2399) * chore: Verified MySQL host:port metric is recorded (newrelic#2400) * feat!: Removed instrumentation for `director` (newrelic#2402) * chore: Add test configs for defined targets in the aws test suite (newrelic#2403) * feat!: Removed legacy context manager (newrelic#2404) * docs: Updated compatibility report (newrelic#2401) Co-authored-by: jsumners-nr <[email protected]> * feat!: Removed support for `redis` < 2.6.0 (newrelic#2405) * chore: Switch to using Node built-in test runner (newrelic#2387) * feat: Added `server.address` to amqplib spans (newrelic#2406) * refactor: Moved relevant nextjs instrumentation and rely on agent commons * chore: Added producer and consumer metrics to kafkajs instrumentation (newrelic#2407) * chore: Updated `@newrelic/native-metrics` to 11.0.0 * test: Removed mongodb-esm tests as they are not atomic and conflicting with mongodb tests in CI * chore: release v12.0.0 (newrelic#2418) * docs: Updated compatibility report (newrelic#2415) * docs: Updated examples to properly use specs (newrelic#2422) * fix: Pick log message from merging object in Pino instrumentation (newrelic#2421) * test: Updated custom test reporter to only log failed tests when there are failures (newrelic#2425) * fix: typo in doc header (newrelic#2433) * chore: Converted agent unit tests to node:test (newrelic#2414) * test: Restored mongodb-esm tests (newrelic#2434) * docs: Updated compatibility report (newrelic#2435) Co-authored-by: bizob2828 <[email protected]> * chore: Added entity relationship attributes to SQS segments (newrelic#2436) * test: Moved pkgVersion to collection-common to avoid a conflict with ESM tests (newrelic#2438) * chore: Limited superagent tests to avoid new breaking release (newrelic#2439) * chore: Fixed mongodb-esm tests in combination with security agent (newrelic#2444) * docs: Updated compatibility report (newrelic#2440) Co-authored-by: jsumners-nr <[email protected]> * chore: Remove promise resolvers from callback based agent unit tests (newrelic#2450) * chore: Added TLS verification for Redis (newrelic#2446) * test: Updated tls redis tests to work with older versions of redis v4 (newrelic#2454) * chore: release v12.1.0 (newrelic#2455) Co-authored-by: svetlanabrennan <[email protected]> Co-authored-by: Svetlana Brennan <[email protected]> Co-authored-by: Maurice Rickard <[email protected]> * docs: Updated compatibility report (newrelic#2452) Co-authored-by: svetlanabrennan <[email protected]> * fix: Updated the `kafkajs` node metrics to remove `/Named` from the name (newrelic#2458) * chore: Removed limit on superagent versioned testing (newrelic#2456) * docs: Updated compatibility report (newrelic#2460) Co-authored-by: bizob2828 <[email protected]> * refactor: Updated pino instrumentation to separate the wrapping of asJson into its own function (newrelic#2464) * fix: Updated redis instrumentation to parse host/port when a url is not provided (newrelic#2463) * fix: Updated amqplib instrumentation to properly parse host/port from connect (newrelic#2461) * chore: release v12.1.1 (newrelic#2472) Co-authored-by: svetlanabrennan <[email protected]> Co-authored-by: Svetlana Brennan <[email protected]> Co-authored-by: Bob Evans <[email protected]> * docs: Updated compatibility report (newrelic#2474) Co-authored-by: svetlanabrennan <[email protected]> * test: Skip `@koa/[email protected]` because of failures (newrelic#2478) * docs: Updated compatibility report (newrelic#2480) Co-authored-by: jsumners-nr <[email protected]> * feat: Added instrumentation support for Express 5 beta (newrelic#2476) This will be experimental until [email protected] is generally available * docs: Remove reference to @newrelic/next in README (newrelic#2479) * docs: Updated compatibility report (newrelic#2483) Co-authored-by: bizob2828 <[email protected]> * chore: Reverted to upstream require-in-the-middle (newrelic#2473) * chore: Updated aggregators unit tests to node:test (newrelic#2481) * fix: Updated koa instrumentation to properly get the matched route name and to handle changes in `@koa/[email protected]` (newrelic#2486) * docs: Updated compatibility report (newrelic#2487) Co-authored-by: bizob2828 <[email protected]> * chore: release v12.2.0 (newrelic#2492) Co-authored-by: svetlanabrennan <[email protected]> Co-authored-by: Svetlana Brennan <[email protected]> * ci: Updated codecov action sha to post coverage from forks. Added flag to fail ci if it fails to upload report (newrelic#2490) * chore: Updated test-utils dependency and added matrix-count only (newrelic#2494) * chore: Remove examples/shim (newrelic#2484) * chore: Fixed linting scripts (newrelic#2497) * fix: Improved AWS Lambda event detection (newrelic#2498) * docs: Updated compatibility report (newrelic#2493) Co-authored-by: svetlanabrennan <[email protected]> * feat: Added new API method `withLlmCustomAttributes` to run a function in a LLM context (newrelic#2437) The context will be used to assign custom attributes to every LLM event produced within the function * chore: Converted context-manager unit tests to node:test (newrelic#2508) Co-authored-by: Bob Evans <[email protected]> * test: Converted the api unit tests to `node:test` (newrelic#2516) * chore: release v12.3.0 (newrelic#2522) * docs: cleaned up formatting of api.js to properly inject example snippets when rendering on API docs site (newrelic#2524) * docs: Updated compatibility report (newrelic#2523) Co-authored-by: bizob2828 <[email protected]> * test: Convert db unit tests to node:test (newrelic#2514) * chore: Convert `config` to `node:test` (newrelic#2517) * test: Replace distributed tracing tests with `node:test` (newrelic#2527) * test: Convert grpc, lib, and utilization tests to `node:test` (newrelic#2532) * docs: Updated Next.js Otel cloud provider FAQ (newrelic#2537) * docs: Updated formatting of cloud-providers.md (newrelic#2538) * chore: Added a match function for tests (newrelic#2541) * fix: Fixed detection of REST API type payloads in AWS Lambda (newrelic#2543) * chore: release v12.3.1 (newrelic#2544) * docs: Updated compatibility report (newrelic#2545) * test: Migrated tests in `test/unit/instrumentation` to use `node:test` (newrelic#2531) * chore: Converted collector unit tests to node:test (newrelic#2510) * test: Converted `llm-events` tests to use `node:test` (newrelic#2535) * chore: Added CI for publishing agent as Azure site extension (newrelic#2488) Signed-off-by: mrickard <[email protected]> Co-authored-by: Svetlana Brennan <[email protected]> Co-authored-by: James Sumners <[email protected]> * chore: Converted errors unit tests to node:test (newrelic#2540) Co-authored-by: Bob Evans <[email protected]> * feat: Added Azure site extension installation scripts (newrelic#2448) Co-authored-by: James Sumners <[email protected]> * test: Migrated `test/unit/util` to use `node:test` (newrelic#2546) * chore: Disable express@5 in versioned tests (newrelic#2553) * docs: Updated compatibility report (newrelic#2554) Co-authored-by: jsumners-nr <[email protected]> * feat: Added support for `express@5` (newrelic#2555) * test: Migrated `test/unit/spans` to use `node:test` (newrelic#2556) * feat: Provided ability to disable instrumentation for a 3rd party package (newrelic#2551) * fix: Nuget pack generates packagName.semver and not packageName-semver (newrelic#2557) Signed-off-by: mrickard <[email protected]> * chore: Document emitted events (newrelic#2561) * chore: release v12.4.0 (newrelic#2560) Co-authored-by: jsumners-nr <[email protected]> Co-authored-by: James Sumners <[email protected]> Co-authored-by: Bob Evans <[email protected]> * docs: Updated compatibility report (newrelic#2562) Co-authored-by: jsumners-nr <[email protected]> * test: Convert `metric` and `metrics-recorder` tests to `node:test` (newrelic#2552) * fix: Ensured README displays for Azure site extension (newrelic#2564) Signed-off-by: mrickard <[email protected]> * chore: Updated serverless unit tests to node:test (newrelic#2549) * feat: Added utilization info for ECS (newrelic#2565) * chore: release v12.5.0 (newrelic#2567) Co-authored-by: jsumners-nr <[email protected]> Co-authored-by: James Sumners <[email protected]> * docs: Updated compatibility report (newrelic#2568) Co-authored-by: jsumners-nr <[email protected]> * chore: Reduce koa-router version to enable CI (newrelic#2573) * docs: Updated compatibility report (newrelic#2574) Co-authored-by: jsumners-nr <[email protected]> * chore: Migrate block of unit tests to `node:test` (newrelic#2570) * chore: Migrate second block of unit tests to `node:test` (newrelic#2572) * ci: Added workflow run trigger to Azure site extension publish job (newrelic#2575) Signed-off-by: mrickard <[email protected]> * test: Removed transitive deps from versioned tests as they will auto-install if required as peer deps (newrelic#2580) * test: Updated koa-router to tests to handle bug fixes from 13.0.1 (newrelic#2578) * test: Updated a missing `minSupported` in aws-sdk-v3 versioned tests (newrelic#2582) * docs: Updated compatibility report (newrelic#2581) * chore: Removed noisy test log (newrelic#2583) * test: Updated fastify versioned tests to work with `[email protected]` (newrelic#2584) * test: Fixed @koa/router tests. path-to-regex differs between @koa/router and koa-router now (newrelic#2587) * test: Updated how we handle the koa-router nuance of wildcard routes (newrelic#2588) * docs: Updated compatibility report (newrelic#2589) * test: Convert transaction* and urltils tests to `node:test` (newrelic#2585) * chore(deps): Udpated @newrelic/security-agent to v2.0.0 (newrelic#2594) * fix: Fixed handling of Pino merging object (newrelic#2600) * chore: release v12.5.1 (newrelic#2602) * chore: Migrate block of unit tests to node:test (newrelic#2593) * docs: Updated compatibility report (newrelic#2601) Co-authored-by: jsumners-nr <[email protected]> * test: Migrated `test/unit/shim` to `node:test` (newrelic#2599) * test: Migrated `test/versioned/express` to `node:test` (newrelic#2609) * chore: Migrate block of unit tests to `node:test` (newrelic#2607) * chore: Migrate block of unit tests to node:test (newrelic#2604) * test: Updated tests that relied on `tspl` by awating the `plan.completed` instead of calling `end` to avoid flaky tests (newrelic#2610) * test: Migrated `test/versioned/amqplib` to `node:test` (newrelic#2612) * test: Updated the mininum version of pg-native in pg-esm tests to align with the pg tests (newrelic#2616) * chore: Upgraded `import-in-the-middle` to work around a bug introduced in 1.11.1 (newrelic#2618) * docs: Updated compatibility report (newrelic#2614) * test: Migrated `aws-sdk-v2` and `aws-sdk-v3` tests to `node:test` (newrelic#2620) * test: Migrated last group of unit tests to `node:test` (newrelic#2624) * test: Migrated unit tests to `node:test` (newrelic#2623) * docs: Remove SECURITY.md (newrelic#2633) * docs: Updated match custom-assertion jsdoc (newrelic#2636) * test: Migrated bluebird versioned tests to `node:test` (newrelic#2635) * docs: Updated compatibility report (newrelic#2637) * chore: Migrate `fastify` tests to `node:test` (newrelic#2632) Co-authored-by: Bob Evans <[email protected]> * docs: Updated compatibility report (newrelic#2638) * chore: Migrate `bunyan`, `pino`, and `winston` tests to `node:test` (newrelic#2634) Co-authored-by: Bob Evans <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: mrickard <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bob Evans <[email protected]> Co-authored-by: Bob Evans <[email protected]> Co-authored-by: Mikko Kotamies <[email protected]> Co-authored-by: mrickard <[email protected]> Co-authored-by: mrickard <[email protected]> Co-authored-by: Jessica Lopatta <[email protected]> Co-authored-by: Naresh Nishad <[email protected]> Co-authored-by: bizob2828 <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: svetlanabrennan <[email protected]> Co-authored-by: Svetlana Brennan <[email protected]> Co-authored-by: James Sumners <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: jsumners-nr <[email protected]> Co-authored-by: Alisson Leal <[email protected]> Co-authored-by: Node Agent Bot <[email protected]> Co-authored-by: jsumners-nr <[email protected]> Co-authored-by: bizob2828 <[email protected]> Co-authored-by: Amy Chisholm <[email protected]> Co-authored-by: kmudduluru <[email protected]> Co-authored-by: Brian Hensley <[email protected]> Co-authored-by: Jamie Penney <[email protected]> Co-authored-by: Webrealizer <[email protected]> Co-authored-by: Sumit Suthar <[email protected]> Co-authored-by: Vaughn Woerpel <[email protected]>
1 parent 424a6cb commit b34d4f6

File tree

685 files changed

+46445
-50081
lines changed

Some content is hidden

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

685 files changed

+46445
-50081
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ module.exports = {
3434
parserOptions: {
3535
ecmaVersion: 2022
3636
},
37-
ignorePatterns: ['test/versioned-external'],
37+
ignorePatterns: [
38+
'test/versioned-external',
39+
'test/versioned/nextjs/app',
40+
'test/versioned/nextjs/app-dir'
41+
],
3842
overrides: [
3943
{
4044
files: ['**/*.mjs'],
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Azure Site Extension
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_run:
6+
workflows: ["Create Release"]
7+
types:
8+
- completed
9+
10+
env:
11+
SPEC_FILE_TEMPLATE: 'NewRelic.Azure.WebSites.Extension.NodeAgent.nuspec'
12+
13+
jobs:
14+
create_extension_bundle:
15+
runs-on: windows-latest
16+
if:
17+
(github.event.workflow_run && github.event.workflow_run.conclusion == 'success') ||
18+
(github.event_name == 'workflow_dispatch')
19+
20+
strategy:
21+
matrix:
22+
node-version: ['lts/*']
23+
arch: [ x64 ]
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Setup dotnet '6.0.x'
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: '6.0.x'
32+
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
architecture: ${{ matrix.arch }}
38+
39+
- name: Find agent version
40+
run: |
41+
$env:npm_agent_version = npm view newrelic version
42+
echo "AGENT_VERSION=$env:npm_agent_version" | Out-File -FilePath $env:GITHUB_ENV -Append
43+
44+
- name: Set package filename
45+
run: |
46+
echo "PACKAGE_FILENAME=NewRelic.Azure.WebSites.Extension.NodeAgent.${{env.AGENT_VERSION}}" | Out-File -FilePath $env:GITHUB_ENV -Append
47+
48+
- name: Verify environment vars # because we can't access GH env vars until the next step
49+
run: |
50+
echo "Agent version: ${{ env.AGENT_VERSION }}"
51+
echo "Package filename: ${{ env.PACKAGE_FILENAME }}"
52+
53+
- name: Install agent
54+
working-directory: cloud-tooling/azure-site-extension/Content
55+
run: |
56+
npm i --prefix . newrelic@${{ env.AGENT_VERSION }}
57+
echo "Agent installed"
58+
59+
- name: Configure package files
60+
working-directory: cloud-tooling/azure-site-extension
61+
run: |
62+
(Get-Content ${{ env.SPEC_FILE_TEMPLATE }}).Replace('{VERSION}', "${{ env.AGENT_VERSION }}") | Set-Content ${{ env.PACKAGE_FILENAME }}.nuspec
63+
64+
- name: Create bundle
65+
working-directory: cloud-tooling/azure-site-extension
66+
run: nuget pack "${{ env.PACKAGE_FILENAME }}.nuspec"
67+
68+
# This step is for us to check what's going to be published
69+
- name: Archive package for verification
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: azure-site-extension-test-${{ env.PACKAGE_FILENAME }}
73+
path: cloud-tooling/azure-site-extension/${{ env.PACKAGE_FILENAME }}.nupkg
74+
75+
- name: Publish site extension
76+
working-directory: cloud-tooling/azure-site-extension
77+
run: |
78+
dotnet nuget push "${{ env.PACKAGE_FILENAME }}.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source ${{ secrets.NUGET_SOURCE }}

.github/workflows/benchmark-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Benchmark Tests
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 10 * * 1'
7+
8+
env:
9+
# Enable versioned runner quiet mode to make CI output easier to read:
10+
OUTPUT_MODE: quiet
11+
12+
jobs:
13+
benchmarks:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
node-version: [18.x, 20.x, 22.x]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: Install Dependencies
28+
run: npm install
29+
- name: Run Benchmark Tests
30+
run: node ./bin/run-bench.js --filename=${{ github.base_ref || 'main' }}_${{ matrix.node-version }}
31+
- name: Verify Benchmark Output
32+
run: ls benchmark_results
33+
- name: Archive Benchmark Test
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: benchmark-tests-${{ github.base_ref || 'main' }}-${{ matrix.node-version }}
37+
path: ./benchmark_results
38+

.github/workflows/board.yml

Lines changed: 84 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ on:
1919
inputs:
2020
project_id:
2121
description: Id of Project in GitHub
22-
default: 5864688 # Node.js Engineering Board https://github.com/orgs/newrelic/projects/41
22+
default: 105 # Node.js Engineering Board https://github.com/orgs/newrelic/projects/105
2323
required: false
24-
type: number
24+
type: number
2525
todo_column:
2626
description: Name of the To-Do column in project
2727
default: 'Triage Needed: Unprioritized Features'
@@ -42,29 +42,97 @@ on:
4242

4343
jobs:
4444
assign_to_project:
45+
if: github.event_name == 'pull_request_target' || github.event_name == 'issues'
4546
env:
4647
# Cannot use `secrets.GITHUB_TOKEN` because the project board
4748
# exists at org level. You cannot add permissions outside the scope
4849
# of the given repo
4950
GITHUB_TOKEN: ${{ secrets.gh_token }}
5051
PROJECT_ID: ${{ inputs.project_id }}
51-
HEADER: "Accept: application/vnd.github.inertia-preview+json"
52+
TODO_COL_NAME: ${{ inputs.todo_column}}
53+
PR_COL_NAME: ${{ inputs.pr_column }}
5254
runs-on: ubuntu-latest
5355
name: Assign Issues and/or PRs to Project
5456
steps:
55-
- name: Assign PR to Project
56-
if: github.event_name == 'pull_request_target'
57+
- name: Get project information
5758
run: |
58-
PR_ID=${{ github.event.pull_request.id }}
59-
COLUMN=$(gh api -H "$HEADER" projects/$PROJECT_ID/columns --jq ".[] | select(.name == \"$COLUMN_NAME\").id")
60-
gh api -H "$HEADER" -X POST projects/columns/$COLUMN/cards -f content_type='PullRequest' -F content_id=$PR_ID
61-
env:
62-
COLUMN_NAME: ${{ inputs.pr_column}}
63-
- name: Assign Issue to Project
64-
if: github.event_name == 'issues'
59+
gh api graphql -f query='
60+
query($org: String!, $number: Int!) {
61+
organization(login: $org){
62+
projectV2(number: $number) {
63+
id
64+
fields(first:20) {
65+
nodes {
66+
... on ProjectV2Field {
67+
id
68+
name
69+
}
70+
... on ProjectV2SingleSelectField {
71+
id
72+
name
73+
options {
74+
id
75+
name
76+
}
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}' -f org=newrelic -F number=$PROJECT_ID > project_data.json
83+
# Save the values of project id, status field id and the todo and needs pr column ids
84+
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
85+
echo 'DATE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Date created") | .id' project_data.json) >> $GITHUB_ENV
86+
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
87+
echo 'TODO_OPTION_ID='$(jq -r --arg TODO_COL_NAME "$TODO_COL_NAME" '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .options[] | select(.name==$TODO_COL_NAME) |.id' project_data.json) >> $GITHUB_ENV
88+
echo 'PR_OPTION_ID='$(jq -r --arg PR_COL_NAME "$PR_COL_NAME" '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .options[] | select(.name==$PR_COL_NAME) |.id' project_data.json) >> $GITHUB_ENV
89+
echo 'DATE='$(date +"%Y-%m-%d") >> $GITHUB_ENV
90+
- name: Assign Issue/PR to Project
6591
run: |
66-
ISSUE_ID=${{ github.event.issue.id }}
67-
COLUMN=$(gh api -H "$HEADER" projects/$PROJECT_ID/columns --jq ".[] | select(.name == \"$COLUMN_NAME\").id")
68-
gh api -H "$HEADER" -X POST projects/columns/$COLUMN/cards -f content_type='Issue' -F content_id=$ISSUE_ID
92+
# Add Issue/PR to board depending on event type
93+
item_id="$( gh api graphql -f query='
94+
mutation($project:ID!, $id:ID!) {
95+
addProjectV2ItemById(input: {projectId: $project, contentId: $id}) {
96+
item {
97+
id
98+
}
99+
}
100+
}' -f project=$PROJECT_ID -f id=$ISSUE_OR_PR_ID --jq '.data.addProjectV2ItemById.item.id')"
101+
# Update the status to Triage Needed/Needs PR Review depending on event type
102+
# and update the date so it shows on top of column
103+
gh api graphql -f query='
104+
mutation (
105+
$project: ID!
106+
$item: ID!
107+
$status_field: ID!
108+
$status_value: String!
109+
$date_field: ID!
110+
$date_value: Date!
111+
) {
112+
set_status: updateProjectV2ItemFieldValue(input: {
113+
projectId: $project
114+
itemId: $item
115+
fieldId: $status_field
116+
value: {
117+
singleSelectOptionId: $status_value
118+
}
119+
}) {
120+
projectV2Item {
121+
id
122+
}
123+
}
124+
set_date_posted: updateProjectV2ItemFieldValue(input: {
125+
projectId: $project
126+
itemId: $item
127+
fieldId: $date_field
128+
value: {
129+
date: $date_value
130+
}
131+
}) {
132+
projectV2Item {
133+
id
134+
}
135+
}
136+
}' -f project=$PROJECT_ID -f item=$item_id -f status_field=$STATUS_FIELD_ID -f status_value=${{ github.event_name == 'pull_request_target' && env.PR_OPTION_ID || env.TODO_OPTION_ID }} -f date_field=$DATE_FIELD_ID -f date_value=$DATE --silent
69137
env:
70-
COLUMN_NAME: ${{ inputs.todo_column}}
138+
ISSUE_OR_PR_ID: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.node_id || github.event.issue.node_id }}

.github/workflows/ci-workflow.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
strategy:
9999
fail-fast: false
100100
matrix:
101-
node-version: [16.x, 18.x, 20.x, 22.x]
101+
node-version: [18.x, 20.x, 22.x]
102102

103103
steps:
104104
- uses: actions/checkout@v4
@@ -130,7 +130,7 @@ jobs:
130130
strategy:
131131
fail-fast: false
132132
matrix:
133-
node-version: [16.x, 18.x, 20.x, 22.x]
133+
node-version: [18.x, 20.x, 22.x]
134134

135135
steps:
136136
- uses: actions/checkout@v4
@@ -166,7 +166,7 @@ jobs:
166166
strategy:
167167
fail-fast: false
168168
matrix:
169-
node-version: [16.x, 18.x, 20.x, 22.x]
169+
node-version: [18.x, 20.x, 22.x]
170170

171171
steps:
172172
- uses: actions/checkout@v4
@@ -217,7 +217,7 @@ jobs:
217217
strategy:
218218
fail-fast: false
219219
matrix:
220-
node-version: [16.x, 18.x, 20.x, 22.x]
220+
node-version: [18.x, 20.x, 22.x]
221221

222222
steps:
223223
- uses: actions/checkout@v4
@@ -240,27 +240,37 @@ jobs:
240240

241241
strategy:
242242
matrix:
243-
node-version: [16.x, 18.x, 20.x, 22.x]
243+
node-version: [18.x, 20.x, 22.x]
244244

245245
steps:
246246
- uses: actions/checkout@v4
247247
- name: Download artifacts
248248
uses: actions/download-artifact@v4
249249
- name: Post Unit Test Coverage
250-
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
250+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
251251
with:
252+
fail_ci_if_error: true
252253
token: ${{ secrets.CODECOV_TOKEN }}
253254
directory: unit-tests-${{ matrix.node-version }}
254255
flags: unit-tests-${{ matrix.node-version }}
255-
- name: Post Integration Test Coverage
256-
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
256+
- name: Post Integration CJS Test Coverage
257+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
257258
with:
259+
fail_ci_if_error: true
258260
token: ${{ secrets.CODECOV_TOKEN }}
259-
directory: integration-tests-${{ matrix.node-version }}
260-
flags: integration-tests-${{ matrix.node-version }}
261+
directory: integration-tests-cjs-${{ matrix.node-version }}
262+
flags: integration-tests-cjs-${{ matrix.node-version }}
263+
- name: Post Integration ESM Test Coverage
264+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
265+
with:
266+
fail_ci_if_error: true
267+
token: ${{ secrets.CODECOV_TOKEN }}
268+
directory: integration-tests-esm-${{ matrix.node-version }}
269+
flags: integration-tests-esm-${{ matrix.node-version }}
261270
- name: Post Versioned Test Coverage
262-
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
271+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
263272
with:
273+
fail_ci_if_error: true
264274
token: ${{ secrets.CODECOV_TOKEN }}
265275
directory: versioned-tests-${{ matrix.node-version }}
266276
flags: versioned-tests-${{ matrix.node-version }}

.github/workflows/compatibility-report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
4747
# Upload generated artifacts for potential debugging purposes.
4848
- uses: actions/upload-artifact@v4
49+
if: always()
4950
with:
5051
name: status.log
5152
path: status.log
@@ -95,6 +96,7 @@ jobs:
9596
9697
# Upload generated artifacts for potential debugging purposes.
9798
- uses: actions/upload-artifact@v4
99+
if: always()
98100
with:
99101
name: docs-status.log
100102
path: docs-status.log

.github/workflows/post-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if:
4646
(github.event.workflow_run && github.event.workflow_run.conclusion == 'success') ||
4747
(github.event_name == 'workflow_dispatch' &&
48-
(inputs.repo_target == 'local' || inputs.repo_target == 'both'))
48+
(inputs.repo_target == 'docs' || inputs.repo_target == 'both'))
4949
steps:
5050
- uses: actions/checkout@v4
5151
with:

.github/workflows/smoke-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [16.x, 18.x, 20.x, 22.x]
19+
node-version: [18.x, 20.x, 22.x]
2020

2121
steps:
2222
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)