Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

fix(deps): update rust crate napi to v2.16.13 - autoclosed #592

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 7, 2024

This PR contains the following updates:

Package Type Update Change
napi dependencies patch 2.16.2 -> 2.16.13

Release Notes

napi-rs/napi-rs (napi)

v2.16.13

Compare Source

What Changed

  • fix(napi): needless cast to CString before call napi_create_string_utf8

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.13

v2.16.12

Compare Source

What Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.12

v2.16.11

Compare Source

What Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.11

v2.16.10

Compare Source

What Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.10

v2.16.9

Compare Source

What Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.9

v2.16.8

Compare Source

What Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.8

v2.16.7

Compare Source

What changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.7

v2.16.6

Compare Source

What's Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.16.6

v2.16.5

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[@​napi-rs/cli](https://redirect.github.com/napi-rs/cli)[@​2](https://redirect.github.com/2).16.4...[@​napi-rs/cli](https://redirect.github.com/napi-rs/cli)[@​2](https://redirect.github.com/2).16.5

v2.16.4

Compare Source

What's Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[@​napi-rs/cli](https://redirect.github.com/napi-rs/cli)[@​2](https://redirect.github.com/2).16.3...[@​napi-rs/cli](https://redirect.github.com/napi-rs/cli)[@​2](https://redirect.github.com/2).16.4

v2.16.3

Compare Source

What's Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[@​napi-rs/cli](https://redirect.github.com/napi-rs/cli)[@​2](https://redirect.github.com/2).16.2...[@​napi-rs/cli](https://redirect.github.com/napi-rs/cli)[@​2](https://redirect.github.com/2).16.3


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

github-actions bot commented May 7, 2024

🚨 Rust Panic Audit: 342 Potential Panic Points Detected 🚨

Crate: ``

📊 Total Usages: 240

  • 🚨 panic usages: 7
  • 🔢 array_index usages: 32
  • 🔎 expect usages: 37
  • 🎁 unwrap usages: 164

Crate: federation_query_planner

📊 Total Usages: 53

  • 🚨 panic usages: 3
  • 🎁 unwrap usages: 32
  • 🔢 array_index usages: 10
  • 🔎 expect usages: 8

Crate: common

📊 Total Usages: 11

  • 🎁 unwrap usages: 10
  • 🔢 array_index usages: 1

Crate: telemetry

📊 Total Usages: 9

  • 🔢 array_index usages: 5
  • 🎁 unwrap usages: 4

Crate: cloudflare_worker

📊 Total Usages: 8

  • 🎁 unwrap usages: 5
  • 🚨 panic usages: 1
  • 🔎 expect usages: 2

Crate: engine

📊 Total Usages: 7

  • 🎁 unwrap usages: 6
  • 🔎 expect usages: 1

Crate: tracing

📊 Total Usages: 6

  • 🎁 unwrap usages: 5
  • 🔎 expect usages: 1

Crate: conductor

📊 Total Usages: 5

  • 🔎 expect usages: 3
  • 🚨 panic usages: 1
  • 🎁 unwrap usages: 1

Crate: config

📊 Total Usages: 3

  • 🎁 unwrap usages: 2
  • 🚨 panic usages: 1

📌 Expected Annotations

Crate: engine

📊 Total Expected Usages: 2

expand details
  1. Reason: "if we are unable to construct the endpoints and attach them onto the gateway's http server, we have to exit"
  • Code: Err(e) => panic!("failed to construct endpoint: {:?}", e),
  • Location: ./libs/engine/src/gateway.rs:158
  1. Reason: "we can safely index here, it's inside a test with constant defined fixtures."
  • Code: ConductorGateway::execute(request, &gw.routes[0].route_data).await
  • Location: ./libs/engine/src/gateway.rs:190

Crate: conductor

📊 Total Expected Usages: 2

expand details
  1. Reason: "we need to exit the process, if the logger can't be correctly set."
  • Code: let _guard = tracing::subscriber::set_default(subscriber);
  • Location: ./bin/conductor/src/lib.rs:37
  1. Reason: "we need to exit the process, if the provided configuration file is incorrect."
  • Code: panic!("Failed to initialize gateway: {:?}", e);
  • Location: ./bin/conductor/src/lib.rs:76

Crate: cloudflare_worker

📊 Total Expected Usages: 4

expand details
  1. Reason: "it panics only if the header name is not valid, and we know it is."
  • Code: .unwrap()
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:20
  1. Reason: "it panics only if the URL source is not valid, and it's already validated before."
  • Code: let url = req.url().unwrap();
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:23
  1. Reason: "it only panics if we are not running in a CF context, should be safe."
  • Code: let cf_info = req.cf().unwrap();
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:27
  1. Reason: "unwraps only in special cases where "data:text" is used."
  • Code: let http_host = url.host().unwrap().to_string();
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:36

Crate: napi

📊 Total Expected Usages: 1

expand details
  1. Reason: "we need this"
  • Code: panic!("Exited process!")
  • Location: ./libs/napi/src/lib.rs:18

Crate: jwt_auth

📊 Total Expected Usages: 1

expand details
  1. Reason: "if initiating an http client fails, then we have to exit."
  • Code: let client = wasm_polyfills::create_http_client().build().unwrap();
  • Location: ./plugins/jwt_auth/src/jwks_provider.rs:49

Crate: ``

📊 Total Expected Usages: 22

expand details
  1. Reason: "if we are unable to construct the endpoints and attach them onto the gateway's http server, we have to exit"
  • Code: Err(e) => panic!("failed to construct endpoint: {:?}", e),
  • Location: ./libs/engine/src/gateway.rs:158
  1. Reason: "we can safely index here, it's inside a test with constant defined fixtures."
  • Code: ConductorGateway::execute(request, &gw.routes[0].route_data).await
  • Location: ./libs/engine/src/gateway.rs:190
  1. Reason: "we're parsing a statically defined constant, we know it works ;)"
  • Code: .unwrap()
  • Location: ./libs/common/src/graphql.rs:31
  1. Reason: "we need this"
  • Code: panic!("Exited process!")
  • Location: ./libs/napi/src/lib.rs:18
  1. Reason: "part of development docgen CLI"
  • Code: .expect("Failed to serialize json schema for config file!");
  • Location: ./libs/config/src/generate-json-schema.rs:50
  1. Reason: "part of development docgen CLI"
  • Code: .expect("Failed to write the json schema to the file system!");
  • Location: ./libs/config/src/generate-json-schema.rs:54
  1. Reason: "👇"
  • Code: let raw_contents = read_to_string(file_path)
  • Location: ./libs/config/src/lib.rs:815
  1. Reason: "👇"
  • Code: panic!("Failed to interpolate config file, please resolve the above errors");
  • Location: ./libs/config/src/lib.rs:847
  1. Reason: "👇"
  • Code: parse_config_from_json(&config_string).expect("Failed to parse JSON config file")
  • Location: ./libs/config/src/lib.rs:854
  1. Reason: "👇"
  • Code: parse_config_from_yaml(&config_string).expect("Failed to parse YAML config file")
  • Location: ./libs/config/src/lib.rs:858
  1. Reason: "👇"
  • Code: _ => panic!("Unsupported config file extension"),
  • Location: ./libs/config/src/lib.rs:875
  1. Reason: "👇"
  • Code: None => panic!("Config file has no extension"),
  • Location: ./libs/config/src/lib.rs:878
  1. Reason: "statically defined regex pattern, we know it works ;)"
  • Code: .unwrap();
  • Location: ./libs/config/src/interpolate.rs:18
  1. Reason: "we need to exit the process, if the logger can't be correctly set."
  • Code: let _guard = tracing::subscriber::set_default(subscriber);
  • Location: ./bin/conductor/src/lib.rs:37
  1. Reason: "we need to exit the process, if the provided configuration file is incorrect."
  • Code: panic!("Failed to initialize gateway: {:?}", e);
  • Location: ./bin/conductor/src/lib.rs:76
  1. Reason: "it panics only if the header name is not valid, and we know it is."
  • Code: .unwrap()
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:20
  1. Reason: "it panics only if the URL source is not valid, and it's already validated before."
  • Code: let url = req.url().unwrap();
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:23
  1. Reason: "it only panics if we are not running in a CF context, should be safe."
  • Code: let cf_info = req.cf().unwrap();
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:27
  1. Reason: "unwraps only in special cases where "data:text" is used."
  • Code: let http_host = url.host().unwrap().to_string();
  • Location: ./bin/cloudflare_worker/src/http_tracing.rs:36
  1. Reason: "if initiating an http client fails, then we have to exit."
  • Code: let client = wasm_polyfills::create_http_client().build().unwrap();
  • Location: ./plugins/jwt_auth/src/jwks_provider.rs:49
  1. Reason: "if the provided VRL code in the config file can't compile, we have to exit."
  • Code: panic!("failed to compile vrl program");
  • Location: ./plugins/vrl/src/plugin.rs:129
  1. Reason: "states is a non-user provided variable"
  • Code: .expect("can't merge states when states is an empty vector!")
  • Location: ./plugins/vrl/src/plugin.rs:146

Crate: vrl

📊 Total Expected Usages: 2

expand details
  1. Reason: "if the provided VRL code in the config file can't compile, we have to exit."
  • Code: panic!("failed to compile vrl program");
  • Location: ./plugins/vrl/src/plugin.rs:129
  1. Reason: "states is a non-user provided variable"
  • Code: .expect("can't merge states when states is an empty vector!")
  • Location: ./plugins/vrl/src/plugin.rs:146

Crate: config

📊 Total Expected Usages: 9

expand details
  1. Reason: "part of development docgen CLI"
  • Code: .expect("Failed to serialize json schema for config file!");
  • Location: ./libs/config/src/generate-json-schema.rs:50
  1. Reason: "part of development docgen CLI"
  • Code: .expect("Failed to write the json schema to the file system!");
  • Location: ./libs/config/src/generate-json-schema.rs:54
  1. Reason: "👇"
  • Code: let raw_contents = read_to_string(file_path)
  • Location: ./libs/config/src/lib.rs:815
  1. Reason: "👇"
  • Code: panic!("Failed to interpolate config file, please resolve the above errors");
  • Location: ./libs/config/src/lib.rs:847
  1. Reason: "👇"
  • Code: parse_config_from_json(&config_string).expect("Failed to parse JSON config file")
  • Location: ./libs/config/src/lib.rs:854
  1. Reason: "👇"
  • Code: parse_config_from_yaml(&config_string).expect("Failed to parse YAML config file")
  • Location: ./libs/config/src/lib.rs:858
  1. Reason: "👇"
  • Code: _ => panic!("Unsupported config file extension"),
  • Location: ./libs/config/src/lib.rs:875
  1. Reason: "👇"
  • Code: None => panic!("Config file has no extension"),
  • Location: ./libs/config/src/lib.rs:878
  1. Reason: "statically defined regex pattern, we know it works ;)"
  • Code: .unwrap();
  • Location: ./libs/config/src/interpolate.rs:18

Crate: common

📊 Total Expected Usages: 1

expand details
  1. Reason: "we're parsing a statically defined constant, we know it works ;)"
  • Code: .unwrap()
  • Location: ./libs/common/src/graphql.rs:31

Copy link

github-actions bot commented May 7, 2024

🐋 This PR was built and pushed to the following Docker images:

Docker Bake metadata
{
"conductor": {
  "buildx.build.provenance": {
    "buildType": "https://mobyproject.org/buildkit@v1",
    "materials": [
      {
        "uri": "pkg:docker/[email protected]?platform=linux%2Famd64",
        "digest": {
          "sha256": "a92ed51e0996d8e9de041ca05ce623d2c491444df6a535a566dabd5cb8336946"
        }
      },
      {
        "uri": "pkg:docker/[email protected]?platform=linux%2Famd64",
        "digest": {
          "sha256": "83101f6985c93e1e6501b3375de188ee3d2cbb89968bcc91611591f9f447bd42"
        }
      }
    ],
    "invocation": {
      "configSource": {
        "entryPoint": "Dockerfile"
      },
      "parameters": {
        "frontend": "dockerfile.v0",
        "args": {
          "label:org.opencontainers.image.authors": "The Guild <[email protected]>",
          "label:org.opencontainers.image.description": "Conductor is a robust GraphQL Gateway.",
          "label:org.opencontainers.image.docs": "https://the-guild.dev/graphql/gateway",
          "label:org.opencontainers.image.licenses": "MIT",
          "label:org.opencontainers.image.revision": "0ee7bc9a90107aceb7f6ad0fefdef4609087c55e",
          "label:org.opencontainers.image.source": "https://github.com/the-guild-org/conductor",
          "label:org.opencontainers.image.title": "Conductor",
          "label:org.opencontainers.image.url": "https://the-guild.dev/graphql/gateway",
          "label:org.opencontainers.image.vendor": "The Guild",
          "label:org.opencontainers.image.version": ""
        },
        "locals": [
          {
            "name": "context"
          },
          {
            "name": "dockerfile"
          }
        ]
      },
      "environment": {
        "platform": "linux/amd64"
      }
    }
  },
  "buildx.build.ref": "builder-766e5b87-baf2-4dfb-bf9b-a581372b1db3/builder-766e5b87-baf2-4dfb-bf9b-a581372b1db30/gk59j340hiphejq1tlqb8e9tm",
  "containerimage.config.digest": "sha256:390cf30c9d4b8b9ba078f81743af646ff7c46f6a05666bb43261e8b2ada28683",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
    "digest": "sha256:95c3ec241e916f799befdbcc5390aeacf83bc6ef6c89d69217cec98ec83d8f4c",
    "size": 902,
    "platform": {
      "architecture": "amd64",
      "os": "linux"
    }
  },
  "containerimage.digest": "sha256:95c3ec241e916f799befdbcc5390aeacf83bc6ef6c89d69217cec98ec83d8f4c",
  "image.name": "ghcr.io/the-guild-org/conductor/conductor:0ee7bc9a90107aceb7f6ad0fefdef4609087c55e"
}
}

Copy link

github-actions bot commented May 7, 2024

✅ Benchmark Results

     data_received..................: 13 MB   221 kB/s
     data_sent......................: 22 MB   363 kB/s
     http_req_blocked...............: min=1µs      avg=2.89µs   med=2.13µs   max=1.56ms  p(95)=3.11µs   p(99)=7.8µs   
     http_req_connecting............: min=0s       avg=425ns    med=0s       max=1.53ms  p(95)=0s       p(99)=0s      
     http_req_duration..............: min=311.78µs avg=419.89µs med=381.19µs max=40.06ms p(95)=487.54µs p(99)=604.38µs
       { expected_response:true }...: min=311.78µs avg=419.89µs med=381.19µs max=40.06ms p(95)=487.54µs p(99)=604.38µs
     ✓ { scenario:rps_1000 }........: min=311.78µs avg=419.89µs med=381.19µs max=40.06ms p(95)=487.54µs p(99)=604.38µs
     http_req_failed................: 0.00%   ✓ 0          ✗ 60000
     ✓ { scenario:rps_1000 }........: 0.00%   ✓ 0          ✗ 60000
     http_req_receiving.............: min=10.05µs  avg=26.76µs  med=25.78µs  max=4.97ms  p(95)=35.17µs  p(99)=44.3µs  
     http_req_sending...............: min=6.35µs   avg=15.38µs  med=14.02µs  max=9.08ms  p(95)=23.68µs  p(99)=35.53µs 
     http_req_tls_handshaking.......: min=0s       avg=0s       med=0s       max=0s      p(95)=0s       p(99)=0s      
     http_req_waiting...............: min=276.66µs avg=377.74µs med=340.22µs max=40.02ms p(95)=446.63µs p(99)=547.42µs
     http_reqs......................: 60000   999.985202/s
     ✓ { scenario:rps_1000 }........: 60000   999.985202/s
     iteration_duration.............: min=383.2µs  avg=509.37µs med=468.74µs max=40.28ms p(95)=579.76µs p(99)=764.83µs
     iterations.....................: 60000   999.985202/s
     ✓ { scenario:rps_1000 }........: 60000   999.985202/s
     valid_graphql_response.........: 100.00% ✓ 60000      ✗ 0    
     ✓ { scenario:rps_1000 }........: 100.00% ✓ 60000      ✗ 0    
     valid_http_code................: 100.00% ✓ 60000      ✗ 0    
     ✓ { scenario:rps_1000 }........: 100.00% ✓ 60000      ✗ 0    
     vus............................: 0       min=0        max=2  
     vus_max........................: 200     min=200      max=200

@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.5 fix(deps): update rust crate napi to v2.16.6 May 7, 2024
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from 876249c to 47fdd6a Compare May 7, 2024 13:35
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from 47fdd6a to 22d8376 Compare June 25, 2024 10:40
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.6 fix(deps): update rust crate napi to v2.16.7 Jun 25, 2024
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.7 fix(deps): update rust crate napi to v2.16.8 Jun 27, 2024
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from 22d8376 to 6adbf8b Compare June 27, 2024 14:17
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from 6adbf8b to bec2c8e Compare August 10, 2024 07:02
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.8 fix(deps): update rust crate napi to v2.16.9 Aug 10, 2024
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.9 fix(deps): update rust crate napi to v2.16.10 Sep 12, 2024
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from bec2c8e to a8d6b09 Compare September 16, 2024 11:56
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.10 fix(deps): update rust crate napi to v2.16.11 Sep 20, 2024
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from a8d6b09 to 75a1d6a Compare September 20, 2024 04:46
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.11 fix(deps): update rust crate napi to v2.16.12 Oct 13, 2024
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from 75a1d6a to 0e51bed Compare October 13, 2024 19:53
@renovate renovate bot force-pushed the renovate/napi-2.x-lockfile branch from 0e51bed to 0ee7bc9 Compare October 21, 2024 14:59
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.12 fix(deps): update rust crate napi to v2.16.13 Oct 21, 2024
@renovate renovate bot changed the title fix(deps): update rust crate napi to v2.16.13 fix(deps): update rust crate napi to v2.16.13 - autoclosed Nov 26, 2024
@renovate renovate bot closed this Nov 26, 2024
@renovate renovate bot deleted the renovate/napi-2.x-lockfile branch November 26, 2024 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants