Truffle test failed on BancorConverter.js

 1) verifies that getReturn returns the same amount as buy -> sell when converting between 2 connectors

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0x9922fbcd5d56028a14c6d09094e2edb38a3608cb)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------
    2) verifies that Conversion event returns conversion fee after buying

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0x75d4b0406c8dbea9b61f8820bc832b376a800ce4)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    ConversionFeeUpdate(_prevFee: 0, _newFee: 3000)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------
    3) verifies that Conversion event returns conversion fee after selling

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0xddf8a1bf88017f519cbad90a21612354ebfdb815)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    ConversionFeeUpdate(_prevFee: 0, _newFee: 3000)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------
    ✓ should throw when attempting to get the return with an invalid from token adress (1092ms)
    ✓ should throw when attempting to get the return with an invalid to token address (999ms)
    ✓ should throw when attempting to get the return with identical from/to addresses (1058ms)
    ✓ should throw when attempting to get the purchase return while the converter is not active (860ms)
    ✓ should throw when attempting to get the purchase return with a non connector address (1080ms)
    ✓ should throw when attempting to get the purchase return while purchasing with the connector is disabled (1055ms)
    ✓ should throw when attempting to get the sale return while the converter is not active (892ms)
    ✓ should throw when attempting to get the sale return with a non connector address (1096ms)
    4) verifies that convert returns a valid amount

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0x3e5f689628b8620880ee8ed4765e3a70983abda7)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------
    5) verifies that selling right after buying does not result in an amount greater than the original purchase amount

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0xc9f04e42e8f58b42c14c310c607c06e94bd85beb)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------
    6) verifies that buying right after selling does not result in an amount greater than the original sale amount

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0x85d1a0e795475ede38071f386e5d0bd94cc81bb1)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)

    ---------------------------
    ✓ should throw when attempting to convert with an invalid from token adress (1217ms)
    ✓ should throw when attempting to convert with an invalid to token address (1232ms)
    ✓ should throw when attempting to convert with identical from/to addresses (1174ms)
    ✓ should throw when attempting to convert with 0 minimum requested amount (1342ms)
    ✓ should throw when attempting to convert when the return is smaller than the minimum requested amount (1309ms)
    7) verifies balances after buy

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0xd9b31e216aa710d484b948a183dcb881fe87d217)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------
    ✓ should throw when attempting to buy while the converter is not active (1027ms)
    ✓ should throw when attempting to buy with a non connector address (1251ms)
    ✓ should throw when attempting to buy while the purchase yields 0 return (1189ms)
    ✓ should throw when attempting to convert while conversions are disabled (1348ms)
    ✓ should throw when attempting to buy with gas price higher than the universal limit (1194ms)
    ✓ should throw when attempting to buy with 0 minimum requested amount (1241ms)
    ✓ should throw when attempting to buy while the connector purchases are disabled (1333ms)
    ✓ should throw when attempting to buy without first approving the converter to transfer from the buyer account in the connector contract (1052ms)
    8) verifies balances after sell

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0x108a5bad907b99f4b1c258c85d98eb42275fa25f)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)

    ---------------------------
    ✓ should throw when attempting to sell while the converter is not active (891ms)
    ✓ should throw when attempting to sell with a non connector address (1201ms)
    ✓ should throw when attempting to sell while the sale yields 0 return (1121ms)
    ✓ should throw when attempting to sell with amount greater then the seller balance (1136ms)
    ✓ verifies that getReturn returns the same amount as getCrossConnectorReturn when converting between 2 connectors (1181ms)
    9) verifies that getCrossConnectorReturn returns the same amount as convert between 2 connectors

    Events emitted during test:
    ---------------------------

    NewSmartToken(_token: 0xbfddd6bf1849e0dd12f123ce4ca5c7486b914709)
    FeaturesAddition(_address: <indexed>, _features: 1)
    Issuance(_amount: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 20000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 5000)
    Transfer(_from: <indexed>, _to: <indexed>, _value: 8000)
    OwnerUpdate(_prevOwner: <indexed>, _newOwner: <indexed>)
    Approval(_owner: <indexed>, _spender: <indexed>, _value: 500)

    ---------------------------

  79 passing (1m)
  9 failing

  1) Contract: BancorConverter
       verifies that getReturn returns the same amount as buy -> sell when converting between 2 connectors:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  2) Contract: BancorConverter
       verifies that Conversion event returns conversion fee after buying:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  3) Contract: BancorConverter
       verifies that Conversion event returns conversion fee after selling:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  4) Contract: BancorConverter
       verifies that convert returns a valid amount:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  5) Contract: BancorConverter
       verifies that selling right after buying does not result in an amount greater than the original purchase amount:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  6) Contract: BancorConverter
       verifies that buying right after selling does not result in an amount greater than the original sale amount:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  7) Contract: BancorConverter
       verifies balances after buy:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  8) Contract: BancorConverter
       verifies balances after sell:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  9) Contract: BancorConverter
       verifies that getCrossConnectorReturn returns the same amount as convert between 2 connectors:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

It seems that all these tests have convert ops.
e.g.
let convertRes = await converter.convert(connectorTokenAddress, connectorTokenAddress2, 500, 1);
        let returnAmount2 = getConversionAmount(convertRes);


Error: 260002: password is empty

Provider Version
0.74.0
Terraform Version
Terraform v1.6.1
on windows_amd64

provider registry.terraform.io/hashicorp/aws v5.21.0
provider registry.terraform.io/snowflake-labs/snowflake v0.74.0

Describe the bug
Snowflake provider error after update to 0.74.0 from 0.73.0. Using private key with no password, seems that the provider requires a password and is failing now.
│ Error: 260002: password is empty
│
│   with provider["registry.terraform.io/snowflake-labs/snowflake"],
│   on provider.tf line 29, in provider "snowflake":
│   29: provider "snowflake" {
│
Expected behavior
No error

Issue still present in 0.75.0

Can anyone fix this?
We connect to Snowflake using a private key and this is just breaking our CICD pipeline.
I could try to contribute to this, but I will need some guidance

Hello, sorry for the issue with provider configuration. We are working on a fix and will have this out ASAP. Thank you for your patience.

Hi @sfc-gh-swinkler thanks for the fix. I am still seeing this issue in v0.75.0. Do you need to recreate the tag or release a new version?

I seem to be getting this with 0.96.0 when using:
export SNOWFLAKE_USER="snowflake_username"
export SNOWFLAKE_PRIVATE_KEY_PATH="~/.ssh/snowflake_key.p8"
export SNOWFLAKE_PRIVATE_KEY_PASSPHRASE="snowflake_passphrase"

and
provider "snowflake" {
  role  = "ORGADMIN"
  alias = "orgadmin"
  account = "..."
}

There is also a warning about the deprecation of the SNOWFLAKE_PRIVATE_KEY_PATH argument and using file() instead. Possibly related?

Hi @joscha 👋
This field is deprecated but should work. Please take a look at solutions in another issue, and try using private_key instead of private_key_path.

try using private_key instead of private_key_path

I did that, but:
2024-09-20T13:43:47.763+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.opentofu.org/snowflake-labs/snowflake/0.96.0/darwin_arm64/terraform-provider-snowflake_v0.96.0 args=[".terraform/providers/registry.opentofu.org/snowflake-labs/snowflake/0.96.0/darwin_arm64/terraform-provider-snowflake_v0.96.0"]
2024-09-20T13:43:47.766+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.opentofu.org/snowflake-labs/snowflake/0.96.0/darwin_arm64/terraform-provider-snowflake_v0.96.0 pid=50709
2024-09-20T13:43:47.766+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.opentofu.org/snowflake-labs/snowflake/0.96.0/darwin_arm64/terraform-provider-snowflake_v0.96.0
2024-09-20T13:43:47.790+0200 [INFO]  provider.terraform-provider-snowflake_v0.96.0: configuring server automatic mTLS: timestamp="2024-09-20T13:43:47.790+0200"
2024-09-20T13:43:47.797+0200 [DEBUG] provider: using plugin: version=6
2024-09-20T13:43:47.797+0200 [DEBUG] provider.terraform-provider-snowflake_v0.96.0: plugin address: address=/var/folders/ym/n59zz1051yb2ls2t67k59mdm0000gn/T/plugin3346491303 network=unix timestamp="2024-09-20T13:43:47.797+0200"
2024-09-20T13:43:47.805+0200 [DEBUG] provider.terraform-provider-snowflake_v0.96.0: 2024/09/20 13:43:47 [DEBUG] No Snowflake config file found, returning empty config: open /Users/joscha/.snowflake/config: no such file or directory
2024-09-20T13:43:47.805+0200 [DEBUG] provider.terraform-provider-snowflake_v0.96.0: 2024/09/20 13:43:47 [DEBUG] Registering snowflake-instrumented driver
2024-09-20T13:43:47.805+0200 [ERROR] provider.terraform-provider-snowflake_v0.96.0: Response contains error diagnostic: tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-plugin-go@v0.22.2/tfprotov6/internal/diag/diagnostics.go:58 tf_proto_version=6.4 diagnostic_summary="260002: password is empty" tf_provider_addr=registry.terraform.io/Snowflake-Labs/snowflake tf_req_id=f66a1a72-f882-dc07-289c-3f098ef593fc @module=sdk.proto diagnostic_detail="" diagnostic_severity=ERROR timestamp="2024-09-20T13:43:47.805+0200"
2024-09-20T13:43:47.805+0200 [ERROR] vertex "provider[\"registry.opentofu.org/snowflake-labs/snowflake\"].orgadmin" error: 260002: password is empty
╷
│ Error: 260002: password is empty
│
│   with provider["registry.opentofu.org/snowflake-labs/snowflake"].orgadmin,
│   on /Users/joscha/dev/infrastructure/data_warehouse/provider_snowflake.tf line 19, in provider "snowflake":
│   19: provider "snowflake" {

with:
provider "snowflake" {
  role  = "ORGADMIN"
  alias = "orgadmin"
  private_key = file("~/.ssh/my.p8")
  account = "..."
}

SNOWFLAKE_PRIVATE_KEY_PATH is unset, SNOWFLAKE_USER and SNOWFLAKE_PRIVATE_KEY_PASSPHRASE still carry values.
There is a
[DEBUG] No Snowflake config file found, returning empty config: open /Users/joscha/.snowflake/config: no such file or directory

in the above, but I wouldn't think that should stop it from connecting?

Even:
provider "snowflake" {
  role  = "ORGADMIN"
  alias = "orgadmin"
  private_key = file("~/.ssh/snowflake_planeta.p8")
  private_key_passphrase = var.private_key_passphrase
  account = "..."
}

with the passphrase entered directly to make sure it's not an env issue, yields the same:
2024-09-20T14:10:32.446+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.opentofu.org/snowflake-labs/snowflake\"].orgadmin" references: [var.private_key_passphrase]

2024-09-20T14:10:32.491+0200 [ERROR] provider.terraform-provider-snowflake_v0.96.0: Response contains error diagnostic: @module=sdk.proto diagnostic_severity=ERROR tf_req_id=ed4f3012-ea92-496f-6d6a-fbbe89585c17 tf_rpc=ConfigureProvider diagnostic_detail="" diagnostic_summary="260002: password is empty" tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/Snowflake-Labs/snowflake @caller=github.com/hashicorp/terraform-plugin-go@v0.22.2/tfprotov6/internal/diag/diagnostics.go:58 timestamp="2024-09-20T14:10:32.491+0200"
2024-09-20T14:10:32.491+0200 [ERROR] vertex "provider[\"registry.opentofu.org/snowflake-labs/snowflake\"].orgadmin" error: 260002: password is empty
╷
│ Error: 260002: password is empty
│
│   with provider["registry.opentofu.org/snowflake-labs/snowflake"].orgadmin,
│   on /Users/joscha/dev/infrastructure/data_warehouse/provider_snowflake.tf line 19, in provider "snowflake":
│   19: provider "snowflake" {

Hey @joscha 👋
You can take a look at this: https://quickstarts.snowflake.com/guide/terraforming_snowflake/index.html#0 I believe your config may work now, but mentioned authenticator = "JWT" is missing.

but mentioned authenticator = "JWT" is missing.

Yes, I saw, but adding that consistently yields:
│ Error: open snowflake connection: 390144 (08004): JWT token is invalid. [8e4343f-4172-4b1a-a83b-79691d587503]
│
│   with provider["registry.opentofu.org/snowflake-labs/snowflake"].orgadmin,
│   on /Users/joscha/dev/infrastructure/data_warehouse/provider_snowflake.tf line 19, in provider "snowflake":
│   19: provider "snowflake" {

Did you generate it with those instructions: https://quickstarts.snowflake.com/guide/terraforming_snowflake/index.html#2? It may be invalid because you used other options to generate it.

This error is on the Snowflake side. Could you check if your key format is valid? Go to the official Snowflake documentation and search by error code (390144 in this case).

Did you generate it with those instructions: https://quickstarts.snowflake.com/guide/terraforming_snowflake/index.html#2? It may be invalid because you used other options to generate it.

Thank you for that. I did not create it after that exactly, I used: https://docs.snowflake.com/en/user-guide/key-pair-auth. I attached the private key (the same way as described) to an existing user. Will give creating a new user a try.

Did you generate it with those instructions: https://quickstarts.snowflake.com/guide/terraforming_snowflake/index.html#2? It may be invalid because you used other options to generate it.

Just for future reference. If you try to generate an encrypted private key with the options from the Quickstart above, you'll get:
│ Error: could not retrieve private key: could not parse encrypted private key with passphrase, only ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and des-ede3-cbc are supported err = pkcs8: only PBES2 supported

So you can only generate non-encrypted key that way - for encrypted keys and some more background, see here.

I got it to work eventually. There seems to be some funkiness with the regeneration of RSA_PUBLIC_KEY_FP after using:
ALTER USER "tf-snow" SET RSA_PUBLIC_KEY='MII [...] ==';

I tried to reproduce it but wasn't able to in a consistent manner. It possibly seems to be related to newlines and/or leading or trailing whitespace in the key input key, but sometimes the fingerprint is different / the last value.

Thank you, @joscha, for your input. @sfc-gh-jmichalak is currently working on improving the provider configuration. We will test those cases so they'll be handled better or documented clearly in the registry.


Example List of people using the starter

You found your way here, used this starter for your portfolio and you are interested to showcase it.
Then feel free to add a section in the readme with a link to your portfolio. I would like to display a small list as examples.

Please assign it to me @Knochenmark


cmd/go/internal/test: Documentation about "package's source root" is imprecise.

$ go version
1.21.4

In the documentation of test package, it is said

Tests that open files within the package's source root (usually $GOPATH) or that consult environment variables only match future runs in which the files and environment variables are unchanged.

However, is "the package's source root" really usually $GOPATH (e.g. ~/go)?

AFAICT this is internal documentation, so it's not really intended to be user-facing. I think this question is more appropriate for the golang-dev mailing list.
That being said, I'm not sure what the right thing here is. CC @bcmills
Closing this issue for now. Thanks for flagging this.

I think this issue is about the string displayed by go help test, not the package doc comment.

@your-diary, these days the package's source root is usually the module that contains it. (The comment is out of date.)


ci(wpt): add --run-by-dir

Docs: https://web-platform-tests.org/running-tests/command-line-arguments.html

@sadym-chromium This run has passed on the first try. Maybe just a coincidence? Should we submit it as an experiment?

I'll rebase to trigger another run.


Fix premature closing of AutoImportProviderProject for unbuilt monorepos

Discovered while working on something else: if an AutoImportProviderProject only knows about declaration files that will exist according to TS source files and compiler options, but do not actually exist on disk yet, it gets closed unnecessarily because hasRoots() only considers files that actually exist.

How'd you catch this out of curiosity?

I found it while testing https://github.com/microsoft/TypeScript/pull/40637


Sentry is not installed by composer in Laravel 6

I installed it on Friday in a project with Laravel 7 and everything worked perfectly, today I tried to install it in another project with Laravel 6 but it doesn't let me install it and that happens only when I run composer.

Hi @alexv96, you can try running this:
composer require sentry/sentry-laravel --update-with-dependencies

It seems like guzzlehttp/promises is locked in your composer.lock to a lower version than required by us, running the above allows composer to update that package if needed.
Let me know if that fixes it, if not it would be helpful if you could share your composer.json so we can investigate!

Hi
Now it works, it forced me to update the libraries I had installed, thank you very much :D


Document enableTimeouts option.

The option was added in 1.21.0, but it is not documented yet.

continue in mochajs/mochajs.github.io#7


Update README.md

Updated small typo in last paragraph

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Review Aave App

Review Aave app code for potential security risks or other improvements: https://github.com/mrdavey/gnosis-safe-app

@lukasschor All good 👍


Unexpected header color when theme primary color is set to grey.

Wave SDK Version, OS
0.20.0
Actual behavior
This makes the header pink:
ui.theme(name='grey_theme', primary='grey', text='#000000', card='#ffffff', page='#e2e2e2')
See --saturatedPrimary:

Expected behavior
Header color derivation needs work.

This impacts the side navigation bar too. Buttons with the primary attribute are the expected color.
Seems to only be impacting "grey" colors, I upon looking anything with blue, green, reds etc have the themePrimary and saturatedPrimary colors the same. But grey variations like 55555 and such are differing.

TLDR: This can be special-cased, but we should think about whether saturation for spectrum colors/header/sidebar is a good idea - cc @lo5
Long story
The reason this is happening for gray only is the fact the grayish colors HSL-wise have 0 hue, 0 saturation and only use lightness (to determine the shade of gray). What Wave does is:

Look at the saturation of primary color.
If it's > 50 (primary is a saturated color), decrease it by 30 to achieve desaturated color.
If it's <= 50 (primary is a desaturated color), increase it by 30 to achieve saturated color.
Use the primary color saturation for all the spectrum colors.

However, as depicted in the pic below, gray color has always hue 0 (color wheel angle) means 0°, which is red. Saturation (distance from the middle) is also 0, so we increase it by 30 and get light red as a result.

we should think about whether saturation for spectrum colors/header/sidebar is a good idea

Explicit color settings for the header/sidebar are fine, too.
As long as it's backwards-compatible.

Explicit color settings for the header/sidebar are fine, too.

They would be backward compatible, my only concern is that when people will be able to pick any arbitrary color, it might result in disaster considering they are usually not UI developers, but AI people.
What do you think about providing only primary/card/transparent color options without further saturation tweaks?

What do you think about providing only primary/card/transparent color options without further saturation tweaks?

Sure. What would the API look like (i.e. how would the author specify the colors)?

The API would be the same (union type) and the user would get exactly what they asked for (no saturation tweaks).
  /** Header background color. Defaults to 'primary'. */
  color?: 'card' | 'transparent' | 'primary'


Question: Compare JSON values

My prompts ask the IA for JSON objects. So what I want to compare with the values of them if they are correct.
The problem is that the “diff” that promptfoo offers (or at least what I find) is that it compares the whole object and the diff is the object itself.
When it shows the test as “fail” it shows me two objects, so it is difficult to see in which value is the error.
Isn't there a more specific diff? Whether it is JSON or not, promtfoo does not show the specific part where the difference is, it shows everything itself.
Maybe there is a functionality that I am not implementing well? or is it that promptfoo does not allow to do this?
Thank you in advance!

@devikcode can you please share a minimal config so I can reproduce your issue? Thanks!


Report Plugin: Ability to define and present definitions of categories and report types

Description
The scientists have described the need to customise the list of report categories on a per type basis (e.g. DetailedCircuit, Simulation).
Each of these categories should have a definition and this should be made visible in the user interface.
Acceptance Criteria

Fusion can be configured to trigger rendering of the report plugin for specific resource types.
For each supported types, there should be a list of categories to be presented to the user.
For each category, there should be a definition.
The user interface should show both the relevants categories and their respective definition.
The report categories are the same across all supported types.

TODO @loris-olivier add mockups
Not in scope

Loading of categories from ontology

I think these types get set quite early on in the process so not sure if a UI to expose and edit them is currently an option. Not with our current implementation anyway. I don't feel comfortable estimating since I'm not sure of the solution nor what the mocks look like.


ENOENT: no such file or directory, open '.svgo.yml'

Description
Having the ENOENT: no such file or directory, open '.svgo.yml' issue in an Electron app based on Vue CLI that is https://github.com/nklayman/vue-cli-plugin-electron-builder. It looks like a common issue for yarn clean. However, I don't run yarn clean, nor I have a .yarnclean file in my project that enables yarn clean automatically.
It looks like Electron builder cannot reference the .svgo.yml file from the following when using __dirname, nor yaml.safeLoad() is requiring the relevant file from their end. So, Electron builder is having trouble with this.
https://github.com/svg/svgo/blob/07ca9764f71fb946adc23f4ea9f19070d335305d/lib/svgo/config.js#L30
Fix proposal
Why do we use an .yml file for the configuration instead of a normal .js file so that we can simply require() the config file and let Node handles it? I am sorry if I am missing the point here. I understand that .yml file config might be a bit easier but for avoiding this issue, I believe having the .js config file is the best.
We can still simply return an object from the .js config like we do from .yml config file like the following way:
exports.plugins = [
    {'removeDoctype': true},
    'removeXMLProcInst',
    'removeComments',
    'removeMetadata',
    'removeXMLNS',
    'removeEditorsNSData',
    'cleanupAttrs',
    'inlineStyles',
    'minifyStyles',
    'convertStyleToAttrs',
    'cleanupIDs',
    'prefixIds',
    'removeRasterImages',
    'removeUselessDefs',
    'cleanupNumericValues',
    'cleanupListOfValues',
    'convertColors',
    'removeUnknownsAndDefaults',
    'removeNonInheritableGroupAttrs',
    'removeUselessStrokeAndFill',
    'removeViewBox',
    'cleanupEnableBackground',
    'removeHiddenElems',
    'removeEmptyText',
    'convertShapeToPath',
    'convertEllipseToCircle',
    'moveElemsAttrsToGroup',
    'moveGroupAttrsToElems',
    'collapseGroups',
    'convertPathData',
    'convertTransform',
    'removeEmptyAttrs',
    'removeEmptyContainers',
    'mergePaths',
    'removeUnusedNS',
    'sortAttrs',
    'sortDefsChildren',
    'removeTitle',
    'removeDesc',
    'removeDimensions',
    'removeAttrs',
    'removeAttributesBySelector',
    'removeElementsByAttr',
    'addClassesToSVGElement',
    'removeStyleElement',
    'removeScriptElement',
    'addAttributesToSVGElement',
    'removeOffCanvasPaths',
    'reusePaths'
];

This will also allow the defaults = Object.assign({}, yaml.safeLoad(FS.readFileSync(__dirname + '/../../.svgo.yml', 'utf8'))); with simply defaults = Object.assign({}, require('../../.svgo.js')); and it works for both Electron, Website, and as well as for the CLI.

Related https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/640 and https://github.com/zeit/node-file-trace/issues/48

While this is still an issue, I'm closing it since I found a workaround by excluding the svgo from Webpack externals that prevents bundling of certain imported packages and instead retrieve these external dependencies at runtime.
For Vue CLI vue.config.js
module.exports = {
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
      externals: ["svgo"]
    }
  }
};

For a traditional webpack.config.js:
module.exports = {
  externals: {
    svgo: 'svgo'
  }
};

@iamazik did you have to make any other changes than adding it to externals and making sure its not a devDependency? After I add it to externals I simply get svgo is not defined. Do I have to reference it in a different way or something?

No, I didn't need to modify anything else after adding svgo in the Webpack externals.

As a workaround, if you add full: true to your options object (e.g. options = { full: true, plugins: ... }) SVGO will skip trying to load the yaml file. Definitely agree things would be simpler if the file was a standard JS/JSON file (and would prevent having to ship an entire YAML package just for one file).

That's a huge tip @adamaveray, it solved my problem! I had solved my issue with electron following @iamazik tip, but I'm working on something else now that is web only and was trying to get SVGO to work. Your tip couldn't have come at a better time! Thanks!


crash when intercepting http and returning undefined

When I intercept the HTTP scheme, but do nothing (my handler returns undefined), electron crashes.  Here is the sample app that illustrates the crash.  When I comment out the javascript block of index.htm, the app does not crash, so it has something to do with how that file is loaded.
I build electron locally and ran the application, and I get a segfault in libchromiumcontent I think:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe1835700 (LWP 15919)]
net::URLRequestJob::ReadFilteredData (this=0xebf18e5500, bytes_read=0x7fffe1834134) at ../../net/url_request/url_request_job.cc:709
709	../../net/url_request/url_request_job.cc: No such file or directory.
(gdb) bt
#0  net::URLRequestJob::ReadFilteredData (this=0xebf18e5500, bytes_read=0x7fffe1834134) at ../../net/url_request/url_request_job.cc:709
#1  0x0000000000d35e32 in net::URLRequestJob::NotifyReadComplete (this=0xebf18e5500, bytes_read=2463) at ../../net/url_request/url_request_job.cc:552
#2  0x0000000000d324b9 in net::URLRequestHttpJob::OnReadCompleted (this=<optimized out>, result=0) at ../../net/url_request/url_request_http_job.cc:958
#3  0x0000000000bc41dc in Run (this=0xebf1e90b80, args=@0x2cfe51a00000000: <error reading variable>) at ../../base/callback.h:396
#4  tracked_objects::ScopedTracker::ExecuteAndTrackCallback<int>(tracked_objects::Location const&, base::Callback<void (int)> const&, int) (location=..., callback=..., p1=0)
    at ../../base/profiler/scoped_tracker.h:66
#5  0x0000000000c36086 in Run (this=0xebf1e90b40, args=<optimized out>) at ../../base/callback.h:396
#6  net::HttpCache::Transaction::DoCallback (this=<optimized out>, rv=<optimized out>) at ../../net/http/http_cache_transaction.cc:733
#7  0x0000000000c34bee in HandleResult (this=0xebf1da4a80, rv=<optimized out>) at ../../net/http/http_cache_transaction.cc:739
#8  net::HttpCache::Transaction::DoLoop (this=0xebf1da4a80, result=<optimized out>) at ../../net/http/http_cache_transaction.cc:1034
#9  0x0000000000c343a2 in net::HttpCache::Transaction::OnIOComplete (this=0xebf1dc0700, result=-511491788) at ../../net/http/http_cache_transaction.cc:3255
#10 0x0000000000bc41dc in Run (this=0xebf1e90b30, args=@0x2cfe51a00000000: <error reading variable>) at ../../base/callback.h:396
#11 tracked_objects::ScopedTracker::ExecuteAndTrackCallback<int>(tracked_objects::Location const&, base::Callback<void (int)> const&, int) (location=..., callback=..., p1=0)
    at ../../base/profiler/scoped_tracker.h:66
#12 0x0000000000bc4073 in Run (this=0xebf1e90af0, args=@0x2cfe51a00000000: <error reading variable>) at ../../base/callback.h:396
#13 disk_cache::InFlightBackendIO::OnOperationComplete (this=<optimized out>, operation=0xebf1e98b60, cancel=<optimized out>) at ../../net/disk_cache/blockfile/in_flight_backend_io.cc:578
#14 0x0000000000bc44a5 in disk_cache::InFlightIO::InvokeCallback (this=0xebf1da4708, operation=0xebf1e98b60, cancel_task=false) at ../../net/disk_cache/blockfile/in_flight_io.cc:109
#15 0x000000000255c25a in Run (this=<optimized out>) at ../../base/callback.h:396
#16 base::debug::TaskAnnotator::RunTask (this=<optimized out>, queue_function=<optimized out>, run_function=<optimized out>, pending_task=...) at ../../base/debug/task_annotator.cc:63
#17 0x0000000002575ad2 in base::MessageLoop::RunTask (this=0xebf1941d80, pending_task=...) at ../../base/message_loop/message_loop.cc:444
#18 0x0000000002575c69 in base::MessageLoop::DeferOrRunPendingTask (this=0xebf1941d80, pending_task=...) at ../../base/message_loop/message_loop.cc:454
#19 0x0000000002575f9b in base::MessageLoop::DoWork (this=0xebf1941d80) at ../../base/message_loop/message_loop.cc:566
#20 0x00000000025553a9 in base::MessagePumpLibevent::Run (this=0xebf1936cc0, delegate=0xebf1941d80) at ../../base/message_loop/message_pump_libevent.cc:232
#21 0x0000000002587790 in base::RunLoop::Run (this=0x7fffe1834848) at ../../base/run_loop.cc:55
#22 0x000000000257553a in base::MessageLoop::Run (this=<optimized out>) at ../../base/message_loop/message_loop.cc:303
#23 0x00000000015de436 in content::BrowserThreadImpl::IOThreadRun (this=0xebf1dc0700, message_loop=0x7fffe1834134) at ../../content/browser/browser_thread_impl.cc:218
#24 0x00000000015de5ae in content::BrowserThreadImpl::Run (this=0xebf17422d0, message_loop=0xebf1941d80) at ../../content/browser/browser_thread_impl.cc:253
#25 0x00000000025a64c4 in base::Thread::ThreadMain (this=0xebf17422d0) at ../../base/threading/thread.cc:239
#26 0x00000000025a2bbc in base::(anonymous namespace)::ThreadFunc (params=<optimized out>) at ../../base/threading/platform_thread_posix.cc:77
#27 0x00007ffff6a38182 in start_thread (arg=0x7fffe1835700) at pthread_create.c:312
#28 0x00007ffff071747d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Running electron 0.30.0 on ubuntu 14.04.

This might be related to https://github.com/atom/electron/issues/2261.

@zsalzbank the sample link seems to be broken, does the intercpeted request involve redirects ?

Sorry about that - I've updated the link and here it is too: https://gist.github.com/zsalzbank/505d3bda65318bae9740
From what I can tell, it does not - the javascript block involved loads google analytics from their servers.  When I make download the file locally and serve it that way, all is good.


ClientInterface::mGet phpdoc is misleading

It's documented to return array in all cases so the expectation is that when no data matches request - empty array is returned. But currently null is returned instead.

This is going to be fixed as soon as #456 is merged.

Fixes for this issue will be included with Predis v1.1.4 when it's released. Thank you.


Handle Faraday UA

Many Ruby gems use Faraday to make HTTP requests. The UA string looks like "Faraday v0.9.1". Currently, Browser always reads it as "Other", and each of the convenience methods returns false.

What do you suggest?


Namespace name 'SwaggerRequestParameter' could not be found

I am trying to implement Enrich RequestBody Metadata  described in documentation .But Visual studio showing bellow error.

I include bellow packages in my project
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.5.1" />
   <PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.5.1" />
   <PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="5.1.2" />
   <PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="5.5.1" />
   <PackageReference Include="Swashbuckle.AspNetCore.ReDoc" Version="5.5.1" />

Am I doing any thing wrong?

As stated in the docs you referenced, the attribute name is SwaggerRequestBody not SwaggerRequestParameter

As stated in the docs you referenced, the attribute name is SwaggerRequestBody not SwaggerRequestParameter


Basic Threefry support Added

In these commits, basic Threefry RNG support is added.

Looking good! I've added some review comments. Look them over and let me know what you think. Thanks!

It is possible for three_fry to generate other data types. You can look at how we dot his in ArrayFire: https://github.com/arrayfire/arrayfire/blob/devel/src/backend/opencl/kernel/random.cl


Helpline number added

Issue Reference
This PR addresses the Issue : Fixes #
Summarize
Please, describe what the PR does, the changes you have made.

Also, mention the key points if any to look into while code reviews

1077 ennu parayunnathu oru toll free code anu so athu avasyam undennu thonunilla


Get rid of this._bearing tests

Related to https://github.com/hyperknot/Leaflet/issues/2

You are right, we need those cases without being restricted to actual rotation being set. I was trying to optimise the performance by only using rotation dependent functions when the rotation is actually used, but you are right that a 0 - something - 0 rotation triggers this bug.


Where is the tags file store when generated ?

I wanna to config the SublimeText Ctag Package for look up the gemset tags file
"extra_tag_paths": [
        [["source.python", "windows"], "C:\\Python27\\Lib\\tags"]
    ],

One file in the root of each gem.


[staging-next] python3Packages.woob: fix eval

Motivation for this change
Drops python2 support, the package was freshly inited in #119215, so I don't expect there to be a significant userbase.
https://github.com/NixOS/nixpkgs/pull/119215#issuecomment-819487375
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Huh, eval still fails.
@GrahamcOfBorg eval

It also evaluates on the base branch or some issue like that, I think.  (it has to to estimate rebuilds)

FWIW staging is broken because of this as well, so I'd somewhat prefer to see this merged sooner rather than later in order to unbreak ofborg

Huh, eval still fails.
@GrahamcOfBorg eval

@ofborg eval

I'm sorry for the mess. I think @SuperSandro2000's fix is the right one: let's get rid of Python 2. Thank you for your work.


Avalonia control embedded in windows forms shows chrome

When embedding an Avalonia user control in a windows forms application using the WinFormsAvaloniaControlHost class, the chrome shows. Since it is a user control I would expect no chrome or some way of controlling the chrome.
Reproduction steps

Clone repo: https://github.com/Basnederveen/WinFormsAvaloniaHost
Run the windows forms project.

Expected behavior
Not seeing a chrome, being able to dock the control in its parent container.
Screenshots

Environment

OS: Windows 11

Looks like a regression.

I've looked in the source code and the problem is being caused by:
The _windowProperties property must be overridden in Avalonia.Win32.EmbeddedWindowImpl.
This is the base class 'WindowImpl':

Overriding it in EmbeddedWindowImpl fixes the problem.

It will be my first, but will try to create a PR


Error: "can’t multiply sequence by non-int of type “float”"

In REVIVIEcalc v24.2, Simulation tab, when hitting Simulate button, I am getting an error:
can’t multiply sequence by non-int of type “float"
This is occurring on both Mac and Windows versions of REVIVEcalc (Sonoma 14.7 and Windows 11).
Output folder structure is created, but no results are present after error.
(This happened during an attempt to basically replicate the steps in the tutorial videos.)

Additional info from the terminal window (on the Mac):
WARNING: Could not locate all outputs from resilience simulation.
WARNING: Could not locate all outputs from resilience simulation.
WARNING: Could not locate all outputs from annual simulation.
WARNING: Could not locate all outputs from annual simulation.
Process Process-6:
Traceback (most recent call last):
File "multiprocessing/process.py", line 315, in _bootstrap
File "multiprocessing/process.py", line 108, in run
File "simulate.py", line 173, in parallel_simulate
File "simulate.py", line 210, in simulate_with_gui_communication
File "simulate.py", line 1320, in collect_all_results
File "pandas/core/reshape/concat.py", line 382, in concat
File "pandas/core/reshape/concat.py", line 445, in init
File "pandas/core/reshape/concat.py", line 507, in _clean_keys_and_objs
ValueError: No objects to concatenate

I believe this is fixed in the new version, v24.2.1 - check back by EOD 12/4/24


Remote Explorer UI: UI consistency with Debug Viewlet

Test #85927

Notice that:

Debug has round corners. Remote Explorer UI has angled ones.
The description feel cramped to the left in the Explorer UI (Containers). Should give a few more pixels to the left, just like Debug Viewlet (Unit Tests)

Fixed by @misolori in https://github.com/microsoft/vscode/issues/86031


Show the first error message in repeat_with_success_at_least

Simply I stored failures information of a result and show the first one.
Fix #150

LGTM except one grammatical mistake.


Similar color in clouds

the blue aercloud and cold aercloud are very similar in color
The new style is great, but make the cold aercloud more white and the blue aercloud bluer
These are difficult to differentiate.

For reference, the left is cold aercloud and the right is blue aercloud.
These are distinct and easy to see.

I have adjusted colors and textures, someone should update this with opinions on current textures


Query new create data product ended up with error "HIVE_INVALID_METADATA: Hive metadata for table xxx is invalid: Table descriptor contains duplicate columns"

SYMPTOM
When query on a data product that was created around or after April 2023 or ingested data in this time frame, user will receive error message as below and the query fails.
HIVE_INVALID_METADATA: Hive metadata for table xxx is invalid: Table descriptor contains duplicate columns

This happens on both existing deployment and new deployment for release 1.1.0 and below.
CAUSE
AWS Glue Crawler has introduced some behaviour change in around April 2023 that the crawler will automatically creates Partition Index after it crawled the data and create a table in Glue DataCatalog. This resulted in the failure in this solution on a step that suppose to update the partition fields after the table is created by crawler. Therefore it rendered the data table invalid for Athena to query on.
SOLUTION
This issue has been resolved in Release v1.2.0. Upgrading existing deployment to Release v1.2.0 will solve the issue for new created data product. For existing data product, it might need to be removed and data re-imported after upgrading to Release v1.2.0.

Fixed in release 1.2.0


Monokai fixes

Used color picker and sublime to get accurate colors for most of the Monokai theme. Changed the this keyword to be italic, and removed the underlines from class names and class inheritance

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: rag4214 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Fulfils #55972

My second round of commits went through and changed all of the color pallets to match Sublime's. No more half changed colors. All of the token colors should now be consistent.

@rag4214 Thanks a lot for your efforts.
I'm hesitant to make color changes to the built-in themes as there are always users that got used to the current colors and will speak up on changes. There has been several rounds of tuning for the highlight colors so they all work well together that might be invalidated by changes.
Instead I'd suggest you to publish your theme on the Markertplace, so everyone has the choice.

@aeschli would it at least be possible to change this to italics and not have Class / Inheritance names underlines? If not I understand.

Sorry, I rather not start making changes.


org settings: Fix limited plan realm can change message_retention_days.

These changes should be included in bd9b74436c6f24425a284c1a366f355d3d7bdb6f,
as it makes sure that Zulip limited plan realm won't be able to change the
message_retention_days setting.

Merged, thanks @pragatiagrawal31!  @hackerkid FYI.

Yeah I was thinking check_realm_has_non_limited_plan should go somewhere else, but didn't have a good proposal.  Potentially zerver/models.py would be more appropriate.
@hackerkid do you just want to do a quick PR with these cleanups?


Restrict TreeMesh to hypercube domains

This fixes #1889

@ranocha shouldn't this be considered breaking? Elixirs that were setup with different domain lengths, will now throw an error.

I consider this to be a bugfix

The elixirs were not doing what they should have done anyway, so it's better to throw an error.


Choose path + protect routes

First of all, a big thanks for creating this package; it's insanely simple and useful at the same time.
I would love to request two improvements:

Having the ability to choose the base path where the routes are generated (in my case, I would use it for my admin, so I'd like to have "/admin" before to avoid "collusion" with other existing routes).
I'm wondering how I could add custom code to check if the user has rights to access those routes.

Thanks for your help 🙏

@luminous8 thanks a lot for your feedback!
I agree that those two features would be great to have so I will look into it and try to come up with something

I investigated a bit and for the first point, you should be able to use the following syntax to specify the base path for the middleware:
app.use("/admin/", prismaAutoCrud(prismaClient, options))

Could you please let me know if this fits your needs?

It does! Thanks
What kind of options prismaAutoCrud can take?

Thanks for checking!
Currenlty, the only option available is a boolean called readonly, which makes it so that Auto-CRUD only allows GET requests
I haven't documented this yet because it is quite new and might change in the future, especially considering your second request.
About which,  you can maybe try adding your own middleware before Auto-Crud as so
const customMiddleWare = (req: Request, res: Response, next: NextFunction) => {
  console.log("Hi")
  next()
}

app.use("/admin", customMiddleWare, prismaAutoCrud(prismaClient, options))

That's perfect, thanks! 🙏
The doing is bit a light at the moment, i was wondering if

It was possible there was a filtering option when doing a get (like get all posts that are published)? If yes what's the query would look like
When doing an patch, it was possible to update relation table like in this example?
Prevent some routes access like the relation tables or some specific tables

Sorry for all these questions 🙈

Good to hear!
For your first point, you can filter items using the following query:
GET /item?color=red

For now, this only works on string fields
When doing a patch, you need to update the field containing the foreign key of the relation. if it is a many-to-many relationship, just update the corresponding report in the junction table.
The last point is difficult as this would require lots of different options for granular control


Plugins defined in files sourced by .vimrc aren't auto-loaded

When doing something like this in .vimrc:
" Source a .vimrc.local file if it exists. Allows for machine-local configuration
if filereadable(glob("~/.vimrc.local"))
    source ~/.vimrc.local
endif

vim-plug recognizes the Plug statements in the .vimrc.local, but after installing the plugins, they're not automatically loaded when I open vim. I'm not sure if this is a vim thing or a vim-plug thing. It's not a big deal to load the plugin I want, but I'm wondering if there's a way to automatically load it.

It should work if you put that line between call plug#begin() and call plug#end()

Yes, as @vheon mentioned, plug#begin() ~ plug#end() block shouldn't appear more than once as plug#begin() will reset its internal data structures, so you lose all the Plug information added from the previous block.
call plug#begin('~/.vim/plugged')
" Global plugins
" ...

if filereadable(glob("~/.vimrc.local"))
    " Should not contain plug#begin or end
    source ~/.vimrc.local
endif

call plug#end()

Moving the block within the plug#begin() and plug#end() statements does the trick. Thanks!


Wave Sort

I will add Wave Sort using C++

@ankitapuri  Can I add the solution to this in JS and python?

@96RadhikaJadhav  do in Python


Add time zone to Java 8 datetime mappers

Unless I'm missing something this seems like a bug. I ran into it today while playing with JDBI.
Is there a good reason to keep around the default constructor? It looks like it is only used in tests right now. Those could easily pass an empty optional and get the same result, and that would have made this impossible to miss.

Coverage increased (+0.08%) to 84.605% when pulling 59c4d432cfd446b2997a17131c3ee118f95102fa on scottaj:add-timezone-to-java-8-types into 428e97a2136252b1d2598b764c7d81c316761160 on dropwizard:master.

Looks like so. Thanks for spotting and submitting the pull request.

Applied to 1.1.x as c360323582e6c5a1817a06fa47f43216990f110b


How to catch the uncaughtException

look at the image above,I get a uncaughtException, but I want try the uncaughtException ,how can I do?

I don't want the uncaughtException effect pm2，how can I do


syft: 1.11.1 -> 1.12.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/anchore/syft/releases.
meta.description for syft is: CLI tool and library for generating a Software Bill of Materials from container images and filesystems
meta.homepage for syft is: https://github.com/anchore/syft
meta.changelog for syft is: https://github.com/anchore/syft/releases/tag/v1.12.2
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.12.2 with grep in /nix/store/mcwd8zaxl2kd08jw4qg8aiaq2l8glfsb-syft-1.12.2
found 1.12.2 in filename of file in /nix/store/mcwd8zaxl2kd08jw4qg8aiaq2l8glfsb-syft-1.12.2

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

syft

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/mcwd8zaxl2kd08jw4qg8aiaq2l8glfsb-syft-1.12.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A syft https://github.com/r-ryantm/nixpkgs/archive/2f22292e446cbd37abb401ed86ea4c31ede41cd3.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/2f22292e446cbd37abb401ed86ea4c31ede41cd3#syft

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/mcwd8zaxl2kd08jw4qg8aiaq2l8glfsb-syft-1.12.2
ls -la /nix/store/mcwd8zaxl2kd08jw4qg8aiaq2l8glfsb-syft-1.12.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

syft

Maintainer pings
cc @developer-guy @06kellyjac @kashw2 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


wiki/doc: Say what BLAS stands for in FAQ

The wiki FAQ "What is OpenBLAS?" (and the project homepage) should say what "BLAS" means. Something like the first sentence on wikipedia would be also useful.
Advantages: (1) Developers coming across OpenBLAS while working through a list of dependencies would learn what it is for, take a mental note and maybe use it in a future project. (2) Relevant search queries would lead to your site.

By that same reasoning, it would seem necessary to explain "linear algebra" next ?!

No, if somebody cannot place "linear algebra" into the "matrices and maths" box they are unlikely to need something like OpenBLAS.
However, a developer needing an efficient library for linear algebra may never have heard about BLAS. It is rarely mentioned in computer science and mathematics classes. Foundational classes will require students to implement functions from scratch and more advanced classes will use something like Mathematica or R.
Googling a bit more, I also notice that OpenBLAS isn't in Wikipedia's List_of_numerical_libraries.
See also www.blas.ie for another meaning of blas.

And those 'advanced classes' fail to mention that R's matrix operations are built on BLAS/Lapack?

@jowagner , @martin-frbg , Thanks.
I just add an item at FAQ.
https://github.com/xianyi/OpenBLAS/wiki/Faq#whatblas
I am not sure it answers the question. I think anyone can edit the wiki :)

Thanks. I didn't edit the FAQ as I'm outside the dev team and I didn't want to force anything on you.
@kthohr Correct. The names of libraries or standards they conform to is not the topic of typical classes using R. Explanations like "it uses specialised libraries for efficiency" are sufficient.


Lab4 and 5: Numeronyms and Stringer

Fixes #78
Changes proposed in this PR:

Add the numeronyms code and unit test
Add the Stringer code and unit test

Codecov Report

Merging #83 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #83   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          11     16    +5
  Lines         170    217   +47
=====================================
+ Hits          170    217   +47

Impacted Files
Coverage Δ

04_numeronym/amitkrishna/numeronym.go
100% <100%> (ø)

05_stringer/amitkrishna/stringer.go
100% <100%> (ø)

04_numeronym/madhavansu/main.go
100% <0%> (ø)

05_stringer/madhavansu/main.go
100% <0%> (ø)

03_letters/madhavansu/main.go
100% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 290e700...19bffe2. Read the comment docs.


Undefined array key 1

Sail Version: ^1.0.1
Laravel Version: 9.x
PHP Version: 8.1.0
Host operating system: Windows  8.1 pro

Description:
Hello
My English is not good, but I hope I can express my meaning well
I have a problem since I use laravel-sail. The problem is that when an error occurs, the Laravel server process closes in the terminal.
This is error report:
Undefined array key 1
at \vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:308
304▕             : '/^[([^]]+)]/';
305▕
306▕         preg_match($regex, $line, $matches);
307▕
➜ 308▕         return Carbon::createFromFormat('D M d H:i:s Y', $matches[1]);
309▕     }
310▕
311▕     /**
312▕
Thankyou.
Steps To Reproduce:

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


Proposed Recipes for PyQG Subgrid Forcing (Ross et al. 2022)

Dataset Name
PyQG Subgrid Forcing
Dataset URL
No response
Description
For full details, see the official publication here: https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2022MS003258
(more info coming today)
License
Unknown
Data Format
Zarr
Data Format (other)
No response
Access protocol
Globus
Source File Organization
The files are arranged in the following heirarchical structure:
eddy/
    low_res.zarr
    high_res.zarr
    forcing1.zarr
    forcing2.zarr
    forcing3.zarr
jet/
    low_res.zarr
    high_res.zarr
    forcing1.zarr
    forcing2.zarr
    forcing3.zarr

Example URLs
Each of these files can be obtained by appending these paths to the Globus-based root path, which is https://g-402b74.00888.8540.data.globus.org/.
As an example:
https://g-402b74.00888.8540.data.globus.org/eddy/low_res.zarr

Authorization
None
Transformation / Processing
We may need a structure like that of DataTree to deal with the heirarchical structure if we want a single, unified structure. Since the top level is relatively simple though, it could also make sense to break it into two separate datasets with a simpler structure, obviating the need for a tree-like structure.
Target Format
Zarr
Comments
No response

Thanks for opening this, @cmdupuis3!

it could also make sense to break it into two separate datasets with a simpler structure, obviating the need for a tree-like structure

This is the easiest way to pursue this using the latests pangeo-forge-recipes release (which does not yet support DataTree). Multiple recipes can be specified in a single recipe.py module. Please let me know how I can help!


ssh via getting started with the raspberry pi zerso w without a monitor

I couldn't reach my Voice kit via mobil phone and my keyboard has a normal  usb..
Well, could this way work for getting network and ssh?
https://www.losant.com/blog/getting-started-with-the-raspberry-pi-zero-w-without-a-monitor
thank you for confirming.

The guideline on this link allows to setup wlan and ssh.


Base-level rules connot contains the parent-selector the parent-selector-referencing character '&'

Hello,
I am using boosted v4-alpha.6.
I'm trying to use boosted theme including the boosted.scss into my main scss file.
On compiling i got an issue in the file node_modules/boosted/scss/_o-buttons.scss:272.
It seems that there is a '&' without parent at the end of this file.
Not sure if it's an issue or if i do something wrong

Hello,
Have you got an idea when the 6.1 will be release ?

Hello,
I've no idea at time (maybe one or two weeks) we're working on core components.
But if you need the fix quickly, you can use the v4-dev tag instead of the v4-alpha.6. Which package manager did you use?

Ok thanks for the reply.
Actually i work on an orange project and discover this project. So i want to use v4 because it's corresponding on what we need.
I use npm as package manager.


Jssor slider uses 100% CPU during transitions on mobile

You claim ~4% CPU usage for slideshow. Real world test shows 100% CPU usage on ipad 4 during transition (simple fade) on safari, as well as in mobile hybrid app (webkit).
What's the secret to achieving 4% CPU in a slideshow??

Please leave an url of your simple fade slideshow.

I get high CPU visiting your demos even. I notice lots of DOM activity with this
script ....I will do more research.
On Sat, Jan 9, 2016 at 4:59 PM, jssor<EMAIL_ADDRESS>wrote:
Please leave an url of your simple fade slideshow.
—
Reply to this email directly or view it on GitHub
[https://github.com/jssor/slider/issues/177#issuecomment-170286053] .[https://github.com/notifications/beacon/ABlsMpKSGxRM1o491ahZdi_XOefHHBzRks5pYXpNgaJpZM4HBwXW.gif]

It's not a problem of the 'simple fade slideshow'. Note that our demo page runs so many stuff like google ad.
Please download the slider and run the simple demo on your ipad.


MLperf BERT training

This PR introduces MLPerf-compliant training loop for BERT.
 Now looking to dial in performance by running on a 4080 Super (will post weights and lm accuracy then too), which should be somewhat closer to a 7900XTX in FP32.
Only other thing that is left is multigpu support.

What's your discord? I'll add you to the "#tinybox-access" channel

Display name is eliulm and username is eliaaaaaaas.

@geohot Update: I am seeing a lot of python time with BERT training: 2  932.44 ms run,    1.22 ms fetch,  475.75 ms python,  455.47 ms CUDA,   10.90 loss, 0.000002 LR, 13.68 GB used,   6949.30 GFLOPS.
Currently doing runs test more aggressive LR schedules. Trying to get the training time down to 2-3 days on my 4080.

Is there a command that I can run to get the data, verify the data, and train the model? I am interested in testing this on a tinybox.

@chenyuxyz, here are the steps:

Download and Uncompress:
TRAIN_DOWNLOAD=1 VERIFY=1 python3 extra/datasets/wikipedia_download.py

Preprocessing for Training:

To preprocess and train on all samples, use:NUM_WORKERS=32 python3 extra/datasets/wikipedia.py pre-train all

To preprocess and train on a specific set (e.g., 0-500, which will have about 700,000 data samples each):python3 extra/datasets/wikipedia.py pre-train 0

Preprocessing for Evaluation:
python3 extra/datasets/wikipedia.py pre-eval

Training:

Note: Using HALF=1 currently results in NaN losses.
For batch size, I have not yet tested with the new scheduler.python3 examples/mlperf/model_train.py

is the processed data somewhere on tiny10? I would like to just to copy data to other tinybox instead of rerunning the processing job

@chenyuxyz Unfortunately, no. Only a few sets on tiny10.

fyi generating all training data will create too many files and eventually use all inodes

Yeah, I will write multiple instances to a file. Wanted to refactor the dataloaders anyway.

@chenyuxyz Datasamples are now saved in batches of 1000 to a file, and I finished refactoring the training script. To be 100% MLperf compliant, I have to do a few minor tweaks, but most of the work should be done. Also, since my last rebase, I noticed that training performance has more than halved. I will try to isolate the specific commit that caused the performance regression and see what I can do.

you can use DEFAULT_FLOAT= to specify the default float


Process for testing artefact

Is there a nightly build, or are people just compiling from master/HEAD locally? If the former is there a repository that can be used in Gradle builds? If the latter is there a standard policy of where to put the artefact for use with Gradle?

👍 for something like a CONTRIB.md. Please layout where to branch off for bugfixes or features. A lot of projects just use master, it seems this project uses release branches.

I tried to write down how you could contribute and how Git branching is used (or should be used) in this project. Let me know if something is unclear or missing or if you have other ideas. But let's use the forum for this discussion.


Add authorization rules

Blog app: add authorization rules

Limit access to web app resources based on authorization rules
Add authorization to app using CanCanCan
Add a role column to the users table using migration
Add delete authorisation for author of posts and comments
Implement delete functionality in Posts and Comments controller
Add authorisation for admin role

Thanks @afanimartin :+1:


Resolves #52 Change Census Response Expected Test Results to be Pretty Printed

Pretty-formatted expected output JSONs, and set pretty_print=True on calls to get_and_save_census_data.

Merge in main and the tests should pass now.


[Feature request] Allow overriding DRI_DEV in check-qsv

Idea
Current limitation
On a machine with two Intel render devices, only D128 is selected. Due to this, if a user has an i7-8700K and an Arc A750 (me), the image will always use the integrated graphics, and that kind of sucks when the discrete card is right there.
Where it can be fixed
It seems here is where this is forcefully hardcoded: https://github.com/jlesage/docker-handbrake/blob/6eb5567bcc29c2441507cb8cbd276293ec1790c8/rootfs/etc/cont-init.d/54-check-qsv.sh#L7
A Docker environment variable or so could help with the issue, or a user could pass the specific driver for their wanted hardware and the script can dynamically search this.
Expected outcome
In the event users have more than one render device (i.e. Intel iGPU and Arc), the end user has the option to select the obviously-better render device, allowing for more capabilities such as AV1 encodes and the like.
How a user can find the correct render device
The following was tested on Ubuntu 23.04 server. (I don't remember if I installed the firmware separately or it came with it from install.)
A user can find the correct device by running the following command:
ffmpeg -init_hw_device drm=hw:/dev/dri/renderD12X -init_hw_device vulkan@hw -v verbose

where X is a relevant render device, and observing that the output shows
[AVHWDeviceContext @ 0x56244f15f580] Device 0 selected: Intel(R) Arc(tm) A750 Graphics (DG2) (discrete) (0x56a1)

as opposed to
[AVHWDeviceContext @ 0x55978e413580] Device 1 selected: Intel(R) UHD Graphics 630 (CFL GT2) (integrated) (0x3e92)

That said, it seems this isn't the only solution to getting it working. I tried routing /dev/dri/renderD129:/dev/dri/renderD128, and ran into the same issue as https://github.com/jlesage/docker-handbrake/issues/259.

Note that check-qsv is informational only and is independent of what Handbrake will detect.


Create licence page

Overview (Required)

Create local html and read it.
Or is it better to use https://github.com/cookpad/license-tools-plugin ?

Links
https://github.com/konifar/droidkaigi2016/blob/master/app/src/main/assets/license.html

https://github.com/cookpad/license-tools-plugin

Screenshot

I am now using https://github.com/cookpad/license-tools-plugin to create a license page.
I forgot to turn it into In Progress.
I'm sorry.


Unsupported command --config. Must be one of init, run, --version

Upgraded to 3.2.0 and realise that the upgrade has dropped the config option! How do I pass the config.yaml file to letsencrypt_webfaction?
In my current workflow I have mutlitple domains with their own directories and configurations.
The command gives me the following error when I pass the --config flag.
   Unsupported command `--config`. Must be one of init, run, --version

The command I run is as following:
    PATH=$PATH:$GEM_HOME/bin:/usr/local/bin GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib ruby2.2 $HOME/.letsencrypt_webfaction/gems/bin/letsencrypt_webfaction --config $HOME/.letsencrypt_webfaction/mysite.yml

I just realised that things have moved. After reading the upgrade guide, which I did post upgrade process :), that now you have one toml file for the whole thing. Need to understand the new configuration before proceeding further.
Closing this issue as it's not relevant.

I'm glad you got that figured out! You may also want to look into WebFaction's new first-party support: https://blog.webfaction.com/2018/09/issue-lets-encrypt-ssl-certificates-with-the-control-panel/


Regression: New LOGICAL_DNS clusters do not populate

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
This appears to be a regression of https://github.com/istio/istio/issues/49315
LOGICAL_DNS clusters on new deployments for me aren't working.
The error in pilot is:
2024-11-26T12:30:48.088386056Z {"level":"info","time":"2024-11-26T12:30:48.088207Z","scope":"ads","msg":"Push Status: {\n    \"pilot_dns_cluster_without_endpoints\": {\n        \"outbound|443||api.checklyhq.com\": {\n            \"proxy\": \"platform-checkly-agent-56f9d7bc49-w6vhb.platform-checkly-agent\",\n            \"message\": \"LOGICAL_DNS cluster without endpoints outbound|443||api.checklyhq.com found while pushing CDS\"\n        },\n        \"outbound|80||api.checklyhq.com\": {\n            \"proxy\": \"platform-checkly-agent-56f9d7bc49-w6vhb.platform-checkly-agent\",\n            \"message\": \"LOGICAL_DNS cluster without endpoints outbound|80||api.checklyhq.com found while pushing CDS\"\n        }\n    },\n    \"pilot_eds_no_instances\": {\n        \"outbound|443||api.checklyhq.com\": {},\n        \"outbound|80||api.checklyhq.com\": {}\n    }\n}"}

And as per last time, switching the ServiceEntry from DNS_ROUND_ROBIN to DNS and back "fixes" it.
cc @howardjohn @ericvn @ram as you worked on the original
Version
1.23.1

Additional Information
No response

How can you reproduce this error

Yeah it was, that's why I think it's regressed.  The same steps reproduce it.

I cannot reproduce on my istio 1.24.1 cluster

Interesting, I'm on 1.23; I have a 1.24 cluster in testing, let me see if the same happens for me

OK today I can't reproduce it on 1.23 or 1.24, something odd is going on.  Leave it with me and i'll try and sus it out.

This happened again today when I deployed a service which rapidly:

deleted the associated resources
created them again

but i wasn't able to recreate it when i tried.
As i've been burned a few times now by LOGICAL_DNS, i think i'm going to revert back to DNS_ROUND_ROBIN

And this happened on 1.24.1?

Aye :'(
It's annoying me because I cannot find a reproduction!

I've managed to reproduce the issue many times following the below steps; although there are near-equal number of times the below doesn't manifest in any problems, so it definitely feels like a race somewhere
Given a workload with the below ServiceEntry present:
apiVersion: networking.istio.io/v1
kind: ServiceEntry
metadata:
  name: httpbin
spec:
  exportTo:
  - .
  hosts:
  - httpbin.org
  location: MESH_EXTERNAL
  ports:
  - name: http-port
    number: 80
    protocol: HTTP
    targetPort: 443
  - name: https-port
    number: 443
    protocol: HTTPS
  resolution: DNS_ROUND_ROBIN

The workload has clusters for httpbin.org:
$ istioctl proxy-config cluster -n monkeynetes monkeynetes-86f5f8bf49-m7w5v | grep httpbin
httpbin.org                                      80       -          outbound      LOGICAL_DNS      <unknown>
httpbin.org                                      443      -          outbound      LOGICAL_DNS      <unknown>

If I create an identical ServiceEntry to the above only changing metadata.name to httpbin-new and run the below (applying the new resource, and deleting the existing one in quick succession), it often results in the workload being without any clusters for httpbin.org:
kubectl apply -f serviceEntryNewName.yaml && kubectl delete serviceentry httpbin

$ istioctl proxy-config cluster -n monkeynetes monkeynetes-86f5f8bf49-m7w5v | grep httpbin

I have also seen occasions where only one of the two expected clusters (two ports in the SE definition) ends up existing:
$ istioctl proxy-config cluster -n monkeynetes monkeynetes-86f5f8bf49-m7w5v | grep httpbin
httpbin.org                                      443      -          outbound      LOGICAL_DNS      <unknown>

I will debug this more. Assigning to me
/assign


Give Commands Options

This introduces some breaking changes to try to simplify the interaction of CommandType and OptionsType:

Add a typealias Options: OptionsType to CommandType
Make ClientErrors conform to ErrorType
Parse options from OptionsTypes automatically
Change CommandType.run() to take Options instead of CommandMode
Don't make AnyCommand conform to CommandType
Add AnyCommand.usage()

This would greatly simplify something like #40 because options are no longer parsed by commands. It also removes a decent amount of boilerplate from commands.

You can see how these changes affect Carthage in https://github.com/Carthage/Carthage/pull/987.

I've tried the similar way and I couldn't reach to the goal at that time. :clap:
I really like the idea, but I understand the @NachoSoto's concern that AnyCommand which does not conforms to CommandType seems confusing or misleading. Here are other suggestions:

CommandWrapper
CommandRunner
CommandExecutor with public let execute
CommandInvoker with public let invoke

Since CommandType has func run, CommandRunner might be a good one.

I renamed AnyCommand to CommandWrapper, per @ikesyo's suggestion.

:+1:

Looks good! :sparkles:
I added some minor fixes and I'm gonna merge this. :bomb:


sample.bootloader.mcuboot.serial_recovery fails to compile

Describe the bug
Seen on PR https://github.com/zephyrproject-rtos/zephyr/runs/5139241363?check_suite_focus=true and fails locally.
To Reproduce
Run in zephyr dir: scripts/twister -c -T ../bootloader/mcuboot/boot/zephyr/
Expected behavior
Should compile.
Impact
Red CI.
Environment (please complete the following information):

b68bdf20cf17094801f2b42d6bd75ba6f67535a7

Fix in progress: https://github.com/mcu-tools/mcuboot/pull/1304


feat: Json CLOB support for Hibernate 6.x

Using
@Type(JsonType::class)
@Column(columnDefinition = "clob")

fails because java.sql.Blob is not assignable from instance of java.sql.Clob in https://github.com/vladmihalcea/hypersistence-utils/blob/bbb27c4417d3809c9bfe0ca44e6b8f52710a2d87/hypersistence-utils-hibernate-63/src/main/java/io/hypersistence/utils/hibernate/type/json/internal/JsonJavaTypeDescriptor.java#L166-L194
Also public <X> X unwrap(Object value, Class<X> type, WrapperOptions options)  fails.

Thanks, I merged it.


[FEATURE] Add Command to Set Environment Variable

Description:
I would like to request a feature that adds a new command to a .NET tool project, allowing users to set environment variables via the command-line interface (CLI). The command should accept two arguments:

The variable value (required).
An optional target specifying where the variable should be set (User or Machine scope).

The tool should apply the environment variable to the appropriate scope based on the input.
Why is this needed?
This feature would allow users to easily set environment variables through a .NET CLI tool, simplifying environment setup, especially in CI/CD pipelines or automated scripts. Having the ability to specify the target (User or Machine) will give flexibility based on the user's needs.
Suggested Implementation:

The command should set the environment variable for the current user or machine depending on the target specified.
If no target is specified, the environment variable should be set for the current user by default.

Example Command Usage:
dotnet mytool set-env MY_VARIABLE=my_value --target User

If --target is not provided, it will default to User.
Example Code:
using System;
using Microsoft.Win32;

public class EnvVarSetter
{
    public static void SetEnvironmentVariable(string variable, string value, string target = "User")
    {
        EnvironmentVariableTarget envTarget;

        if (string.Equals(target, "Machine", StringComparison.OrdinalIgnoreCase))
        {
            envTarget = EnvironmentVariableTarget.Machine;
        }
        else
        {
            envTarget = EnvironmentVariableTarget.User;
        }

        Environment.SetEnvironmentVariable(variable, value, envTarget);
        Console.WriteLine($"Environment variable '{variable}' set to '{value}' for {envTarget}.");
    }
}

// Usage example from the CLI
class Program
{
    static void Main(string[] args)
    {
        if (args.Length < 1)
        {
            Console.WriteLine("Usage: set-env VAR_NAME=value [--target User|Machine]");
            return;
        }

        string[] variableParts = args[0].Split('=');
        if (variableParts.Length != 2)
        {
            Console.WriteLine("Invalid format. Please use VAR_NAME=value.");
            return;
        }

        string variableName = variableParts[0];
        string variableValue = variableParts[1];
        string target = args.Length > 1 && args[1].StartsWith("--target") ? args[1].Split('=')[1] : "User";

        EnvVarSetter.SetEnvironmentVariable(variableName, variableValue, target);
    }
}

Additional Context:

This feature will only work on platforms where setting environment variables is allowed (e.g., Windows via EnvironmentVariableTarget).
The default behavior is to set the environment variable for the current user if no target is provided.

@guibranco can i work on this ?

Hi @Tharanishwaran ,
Thanks for picking this up! 🙌
You have been assigned the issue.
If you have any questions or need clarification along the way, feel free to ask.
Good luck and happy coding! 😊

Hi @guibranco ,
Thank you for assigning me! I'll start working on it and update you soon

Hi @Tharanishwaran 👋,
I hope all is well! I wanted to check in on the progress of this issue, as we haven’t received any updates or a pull request from you in over two weeks ⏳.
Are you still working on this? If you encounter any blockers or need help, please feel free to reach out—we're here to support you 💪. If there’s no progress or response within the next week, we may need to unassign you from this issue to ensure it can be addressed on time 🔄.
Thank you for your attention to this, and I look forward to hearing from you soon! 😊
Best,

Hi @guibranco,
I apologize for the delay in communication. Due to current commitments, I won't be able to work on this issue. Please feel free to assign it to someone else who can give it the attention it deserves.
Thank you for the opportunity and understanding.

Thanks for letting me know @Tharanishwaran!

Hey, do you need someone to work on this issue?

Hi @bc2026 ,
Yes, sure, if you feel comfortable picking this up, I will assign it to you! 😊
If you have any questions or need clarification along the way, feel free to ask.

I can take this

Hi @nicholasptran👋,
Thanks for picking this up! 🙌
You have been assigned the issue.
If you have any questions or need clarification along the way, feel free to ask.
Good luck and happy coding! 😊


Flake8 rule 'E261' and 'E202' reported an invalid point

Flake8 reported an invalid point for the rule E261, with the messge at least two spaces before inline comment.
Flake8 reported an invalid point for the rule E202, with the messge whitespace before ')'.
from PyQt5.QtWidgets import (QApplication, QPushButton, QVBoxLayout, QGroupBox, QGridLayout, QTextEdit, QRadioButton, QLabel, QMessageBox, QDesktopWidget, qApp, QWidget, QInputDialog)
Debug information:
Atom version: 1.16.0
Flake8 version: 2.5.5 (pep8: 1.5.7, mccabe: 0.2.1, hacking.core: 0.0.1, ProxyChecker: 0.0.1, pyflakes: 0.8.1) CPython 3.5.2 on Windows

Please try again after upgrading flake8.
If the problem is still there: Do you have any unicode characters in your file? There is currently a known bug with how those are handled (pycqa/flake8#306). It's fixed in their master branch and is just waiting on a release.

Closing due to a lack of response.


join() and getRoomState() resolve with raw /_/rooms/state object

While the documentation claims they resolve with a Room instance.
it's probably OK for getRoomState() to do this, but join() should resolve with a Room instance in v2.
documentation should be updated for v1.x regardless.

:package: 1.14.1


Production import error when using .scss file with styleUrls property

Hello,
I am using the following directory structure:
scripts

login
-- login.component.ts
-- login.scss
scss
variables.scss

Thing is when I compile my login.scss I need to import the variables so Im using:
@import("../../scss/variables")
If I dont use this import it returns an error during compile time of scss (every time I run "gulp build serve")
In development this works. But when I build for production the statement "@import("../../scss/variables")" returns 404.
My login.component.ts contains:
@Component({
selector: 'login',
templateUrl: './login.html',
styleUrls: ['./login.scss']
})

Node Version: 5.9.0
NPM Version: 3.7.3
Gulp CLI version: 0.4.0
Typings version: 0.7.9

Cool thanks for reporting it - I think it's related to the plugin gulp-inline-ng2-template but I need to investigate it further.

Yeah it looks like gulp-inline-ng2-template can't resolve variables.

I'll raise an issue with the team over there and see what they think.

I'm actually going to close this issue as it's not a bug, but a feature currently not supported by a third-party library.
You can see the feature request ticket here: https://github.com/ludohenin/gulp-inline-ng2-template/issues/28

Ok, thanks alot!

Okay cool - sorry I couldn't be of much help.


Provide information regarding end of life of operator

This is a request to provide end of life information for each version of operator and grafana.
If already documented somewhere please provide docs link, I have searched and unable to find them.

Version 4 is now only "supported" with critical bug fixes, no new features will be accepted.
We haven't decided for how long we will support version 4, but no longer than a year.
I will bring it up during our next meeting.

We haven't taken any decision on when end of life is, but as stated in our README, and it was updated in this PR https://github.com/grafana-operator/grafana-operator/pull/1156 we only support critical bug fixes for v4, and we recommend everyone to update as quickly as possible.
We will see how the migrate for the community goes and depending on that we will decide on end of life.

Hi @NissesSenap, I understand the recommendation that you've stated here to upgrade from v4 to v5 as quickly as possible.
However, the README and documentation is fairly vague and incomplete about expectations for users of the Grafana Operator.  The README on "master" branch for version 5 says.  The v5 README wording doesn't even limit bug fixes to only 'critical bugs'.

Version 5 is actively being developed with new features. The previous version 4 is only receiving bug fixes on the v4 branch.

The version 4 README after clicking on the link to the "v4 branch" says.

Version 5 of the operator is now located in the master branch of the operator. Version 4 is located in the v4 branch. For more information on how version 4 is supported, please look at the official documentation.

Clicking on the link to go to the official documentation doesn't seem to provide any information on how version 4 is supported from what I could find.


(Bug) Cant break or open chests in the wool rooms

Hi in the CTW maps i cant break blocks in the wool rooms and open chests.
http://prntscr.com/5zuiky: Map RFV2

I thought this was intentionally done in RFV2

Is an XML error, not the plugin.

Make sure you have the updated xml from maps.oc.tc.

ok sorry

It appears you cannot open chests in wool rooms that you can go in.

Can I see the XML?

maps.oc.tc

I know that maps.oc.tc exists, just want to see the XML of Wid Map.

@Alfalik Thats where the XML is .-.

https://maps.oc.tc/CTW/Standard/Race for Victory 2/map.xml this?

In publics you can, so the error is in the Plugin.
@twizmwazin You didn´t understand. nvm

I think the same happend on spawn points if they are protected on the xml, at least that happend on my RFV 2 and the XML is from maps.oc.tc.

This is the plugin, like 1 week ago the plugin allows you to enter to a wool, but you can enter to your own wool, but, with this update maybe the filter of the wools colapsed :P

1 week ago filter and the application of filters were not implemented @AngelCasillas01


Add all to tokenizer tests from css-parsing-tests

To ensure that our CSS3 tokenizer adheres to the CSS3 specifications, we should include all tests from the css-parsing-tests repo.
I have already added a lot of tests, and the tokenizer is passing them all, but it is best to add them all to ensure we are covering all bases.
I will add some here and there, but for the time being, I will focus on the CSS3 parser.
Writing tests should be simple. Here is an example of writing this test from css-parsing-test into our tests
Considering the tokenizer, we only interested in tests in component_value_list.json file

Are we copying / transforming these tests into our codebase? Or could we use the tests "as-is" and have our code transform anything? I would opt for the latter, as we don't want to clutter our codebase with other people's code too much.


⚠ Samsung has degraded performance

In be5b697, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2478 ms

Resolved: Samsung performance has improved in 56e65ca.


Display QR code without generating a new secret key

From @ShmuelLevine on August 23, 2016 15:30
Presently, I have not found any way to persuade google-authenticator to display the QR code for my user account without having to generate a new secret key.
I've just recently gotten a new phone and while trying to set up google authenticator on the new phone, I was looking for a way to simplify adding this account to the mobile app without changing the secret key (which would have caused my other devices to stop working properly).
I am well aware that I can obtain the secret key from the ~/.google-authenticator file.  However, given that there is already an interface with libqrencode and it works properly with a newly-generated key, I would like to see the same functionality made available to display an existing secret key as well.
Copied from original issue: google/google-authenticator#564

For now you can add this early in main and recompile:
displayQRCode("aaaaaaaaa", "label", 1, "issuer");

Marking this issue an enhancement to parse the config file and reprint. But this will only work for TOTP since I don't think the counter is part of the QR code that apps will read.

From @ShmuelLevine on August 23, 2016 23:22
For now, I've just typed in the secret code manually....
Having said that, having come across this situation, it occurred to me that this would be a rather useful feature.

I couldn't get the QR code to work without replacing the '?' between secret and issuer with '&'
e.g.: otpauth://totp/identifier?secret=abcdefghijklmnop&issuer=whoever

I was successful with the following, just copy and paste into terminal:
qrencode -t ansi "otpauth://totp/$(hostname)?secret=$(head -1 ~/.google_authenticator)&issuer=$(whoami)"

Thanks for the example.
This seems like a reasonable workaround. Closing.


how we can send sbyte[] in .net core socket? can you create example for send data by socket?

@myabdolmaleki there is an util in the code that help you move from sbyte to byte and vice-versa. Here it  https://github.com/Tochemey/NetCore8583/blob/master/NetCore8583/Util/ByteUtil.cs

Closing this issue since I have not seen any update. Feel free to reopen it.However this is not an issue.


add github ISSUE_TEMPLATE files

What is the change?

add bug_report.md to bug-report.yml to enable Github's form based issue template

https://youtu.be/qQE1BUkf2-s?t=23

add config.yml file to help direct users to the helpful pages

Motivation

encourage's bug reporter's to put more care into their bug report before submission
this may help maintainer's receive more detailed & higher quality bug report's
adds helpful tips for user's during the process of creating a bug/issue report

Demo of Change

this PR is similar to this one I created for remix-auth repo: https://github.com/sergiodxa/remix-auth/pull/87

Hey @cliffordfajardo, thanks for this PR!
I wasn't able to propose changes to your PR (it got me to a 404 page?), so I committed the changes directly and merged. I just removed most of the Remix bits and pieces and one of the form fields.
TIL about issue forms with GitHub! Thanks for that!  🥳