Timeout Connecting to SQL Server instance from Linux

Steps to reproduce
Repository with code sample
The issue
Using the sample db structure from : https://docs.efproject.net/en/latest/platforms/aspnetcore/existing-db.html
Run the code on windows, works just fine. Set connection string to connect to a SQL Server 2008 db instance using username / password.
Run the code on Linux, gives the following error:
Exception message:  System.Data.SqlClient.SqlException: Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=51; handshake=170; [Login] initialization=8; authentication=8; [Post-Login] complete=14036;  ---> System.ComponentModel.Win32Exception: Unknown error 258
Stack trace:
      An exception occurred in the database while iterating the results of a query.
      System.Data.SqlClient.SqlException: Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=51; handshake=170; [Login] initialization=8; authentication=8; [Post-Login] complete=14036;  ---> System.ComponentModel.Win32Exception: Unknown error 258
         --- End of inner exception stack trace ---
         at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
         at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
         at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
         at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
         at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
         at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
         at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
         at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
         at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
         at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
         at System.Data.SqlClient.SqlConnection.Open()
         at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open()
         at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.MoveNext()
         at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_ShapedQuery>d__3`1.MoveNext()
         at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__15`2.MoveNext()
         at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
      ClientConnectionId:ae33e5f2-793c-4b08-bc3a-05f520f04dee
      Error Number:-2,State:0,Class:11
System.Data.SqlClient.SqlException: Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=51; handshake=170; [Login] initialization=8; authentication=8; [Post-Login] complete=14036;  ---> System.ComponentModel.Win32Exception: Unknown error 258
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open()
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_ShapedQuery>d__3`1.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__15`2.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
ClientConnectionId:ae33e5f2-793c-4b08-bc3a-05f520f04dee
Error Number:-2,State:0,Class:11
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HKT56JQKSVNH": An unhandled exception was thrown by the application.
System.Data.SqlClient.SqlException: Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=51; handshake=170; [Login] initialization=8; authentication=8; [Post-Login] complete=14036;  ---> System.ComponentModel.Win32Exception: Unknown error 258
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open()
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_ShapedQuery>d__3`1.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__15`2.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   at Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter.WriteObject(TextWriter writer, Object value)
   at Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter.<WriteResponseBodyAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResultAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResultFilterAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAllResultFiltersAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResourceFilterAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Swashbuckle.SwaggerUi.Application.SwaggerUiMiddleware.<Invoke>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Swashbuckle.SwaggerUi.Application.RedirectMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Swashbuckle.Swagger.Application.SwaggerMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Frame`1.<RequestProcessingAsync>d__2.MoveNext()

Further technical details
EF Core version: 1.0.0 RTM
Operating system: Linux - CentOS 7

Hi , perhaps have you solved ? Also I am in the same situation (SQL 2005)

Just verified, this problem does not affect SQL Server 2012. Only 2008 and below it seems. I don't have a 2008 R2 server around to test that with.

Maybe this: https://github.com/dotnet/corefx/issues/6467

Possibly related. I'll see if I can install the patch and see if that fixes it.

Server was running SQL Server 2008 Service Pack 3, I've updated it to Service Pack 4, and that's resolved the issue. Maybe this should be documented somewhere as a known issue that SQL Server 2008 SP4 is a minimum requirement for Linux.

@seiggy Thanks ,your answer help me resolve my problem

I get the same error with a SQL Azure connection, from a Linux container running .net core 2.2 (on AKS).

I get the same error with a SQL Azure connection, from a Linux container running .net core 2.2 (on AKS).

And I have the same in a Linux container (base image mcr.microsoft.com/dotnet/core/runtime:2.2-stretch-slim) running on Azure Container Instance.

I got the same problem with SQL Server 2008 R2 SP1. Got second instance with SQL Server 2008 R2 SP3 and it works.

Server was running SQL Server 2008 Service Pack 3, I've updated it to Service Pack 4, and that's resolved the issue. Maybe this should be documented somewhere as a known issue that SQL Server 2008 SP4 is a minimum requirement for Linux.

thanks @seiggy

Maybe setting MARS to False helps: https://github.com/dotnet/SqlClient/issues/422


com.telerik.afnetworking offline

The plugin cannot be installed because npm package com.telerik.afnetworking is offline
Error: Failed to fetch plugin com.telerik.afnetworking via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.telerik.afnetworking

@ligaz do you have any idea why that npm package was removed perhaps?

Any news on this? I couldn't work on my app all weekend because I couldn't setup my dev env.

@dfilip It's only the iOS dependencies are offline, so If you are only developing for Android you are good to go (just make sure that you havent' added iOS as a cordova platform)

Forgot to update: this has been fixed a few weeks ago in this changeset


Update database-schema-conversion-toolkit.md

Updates for DSCT v0.4

#sign-off

@tdoshin
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Errors are not detected in iftype branches.

I've found that errors are not being properly detected for iftype branches (or their else branches). Take the following example:
primitive B
primitive C

actor Main
  new create(env: Env) =>
    try
      not_partial[C]()
      if false then error end
    else
      env.out.print("The not_partial function raised an error!")
    end

  fun not_partial[A: (B | C)]() =>
    iftype A <: C then
      error
    end

This is obviously unsound.

Marking this as priority: low only because this is not an officially released feature yet.


CORS issue in deployment

After deploy to TEST, we saw a CORS problem that block the api call from frontend to backend in TEST.

The manual solution is go to the API Gateway for TEST, select the top level "/", and from the "Actions" dropdown, select "Enable CORS", and put test frontend url "https://fam-tst.nrs.gov.bc.ca" to the "Access-Control-Allow-Origin*" field, and click "Enable CORS and replace existing CORS headers". Then from "Actions" select "Deploy API", and select "V1" to redeploy the API.

We tried to add the allow_origin config for the API Gateway to include the frontend url, but it didn't work. We still need to manually add that in API Gateway and do the redeployment of api in API Gateway.

:)

Just a comment/note on the fact that 'We tried to add the allow_origin config for the API Gateway to include the frontend url, but it didn't work.'=> 'TEST' that time seems to be in a strange state. The value in 'allow_origin' terraform was run but did not see the value reflected on TEST. Also that same day when both Catherine and Ian experimenting on things that deployed terraform to TEST the subsequent deployment should have overridden previous deployment but it did not happen.
On  27th, we decided to destroy TEST backend and redeploy and it looks the CORS issue is gone for now.
Also there is a PR#447 (was added during that time trying to fix CORS) which restricts allowed origin is a good enhancement for security (for PROD). Should later be merged but needs discussion => Is it only for AWS frontend 'domain', or also 'localhost', how about the 'cognito debugger'? Note! Terraform (or Cognito) does not seem to allow multiple string values when setting this up (as Catherine tried that before but did not work).

It is possible that Terraform applied the changes to API gateway, but they weren't 'made live' which is a manual operation in AWS. Similar to RDS where changing certain parameters won't go into effect until database maintenance / restart.


[Bug]: Local development not closes the app properly with Actix and Static folders

What happened?
After stopping my local API process, hitting Ctrl+C an error occurred. After that, I can't start the local environment using the same port. Also, I am not able to stop it on my system. Here are the errors.
cargo shuttle run
    Building /home/piny4man/DEV/github/power-scouter
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/piny4man/DEV/github/power-scouter/front/Cargo.toml
workspace: /home/piny4man/DEV/github/power-scouter/Cargo.toml
   Compiling prost-build v0.11.8
   Compiling rustix v0.36.11
warning: value assigned to `coeff` is never read
  --> shared/src/helpers/calculations.rs:13:13
   |
13 |     let mut coeff: [f64; 3] = [0.0, 0.0, 0.0];
   |             ^^^^^
   |
   = help: maybe it is overwritten before being read?
   = note: `#[warn(unused_assignments)]` on by default

warning: value assigned to `coeff` is never read
  --> shared/src/helpers/calculations.rs:62:13
   |
62 |     let mut coeff: [f64; 4] = [0.0, 0.0, 0.0, 0.0];
   |             ^^^^^
   |
   = help: maybe it is overwritten before being read?

warning: 2 warnings emitted

   Compiling tonic-build v0.8.4
   Compiling is-terminal v0.4.5
   Compiling clap v4.1.11
   Compiling opentelemetry-proto v0.1.0
   Compiling opentelemetry-otlp v0.11.0
   Compiling shuttle-common v0.14.0
   Compiling shuttle-service v0.14.0
   Compiling shuttle-proto v0.14.0
   Compiling shuttle-static-folder v0.14.0
   Compiling shuttle-runtime v0.14.0
   Compiling shuttle-actix-web v0.14.0
   Compiling power-scouter v0.2.0 (/home/piny4man/DEV/github/power-scouter)
    Finished dev [unoptimized + debuginfo] target(s) in 10.97s
These static folders can be accessed by power-scouter
╭─────────╮
│ Folders │
╞═════════╡
│ static  │
╰─────────╯

    Starting power-scouter on http://<IP_ADDRESS>:8000

2023-04-20T19:01:03.986947180Z  INFO actix_server::builder: starting 4 workers
2023-04-20T19:01:03.986994790Z  INFO actix_server::server: Tokio runtime found; starting in existing Tokio runtime
^C

This is the error just after the process should be stopped.
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: SendError((End, ""))', /home/piny4man/.cargo/registry/src/github.com-1ecc6299db9ec823/shuttle-runtime-0.14.0/src/alpha/mod.rs:323:79
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Version
v0.14.0
Which operating systems are you seeing the problem on?
Linux
Which CPU architectures are you seeing the problem on?
x86_64
Relevant log output
cargo shuttle run
    Building /home/piny4man/DEV/github/power-scouter
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/piny4man/DEV/github/power-scouter/front/Cargo.toml
workspace: /home/piny4man/DEV/github/power-scouter/Cargo.toml
   Compiling prost-build v0.11.8
   Compiling rustix v0.36.11
warning: value assigned to `coeff` is never read
  --> shared/src/helpers/calculations.rs:13:13
   |
13 |     let mut coeff: [f64; 3] = [0.0, 0.0, 0.0];
   |             ^^^^^
   |
   = help: maybe it is overwritten before being read?
   = note: `#[warn(unused_assignments)]` on by default

warning: value assigned to `coeff` is never read
  --> shared/src/helpers/calculations.rs:62:13
   |
62 |     let mut coeff: [f64; 4] = [0.0, 0.0, 0.0, 0.0];
   |             ^^^^^
   |
   = help: maybe it is overwritten before being read?

warning: 2 warnings emitted

   Compiling tonic-build v0.8.4
   Compiling is-terminal v0.4.5
   Compiling clap v4.1.11
   Compiling opentelemetry-proto v0.1.0
   Compiling opentelemetry-otlp v0.11.0
   Compiling shuttle-common v0.14.0
   Compiling shuttle-service v0.14.0
   Compiling shuttle-proto v0.14.0
   Compiling shuttle-static-folder v0.14.0
   Compiling shuttle-runtime v0.14.0
   Compiling shuttle-actix-web v0.14.0
   Compiling power-scouter v0.2.0 (/home/piny4man/DEV/github/power-scouter)
    Finished dev [unoptimized + debuginfo] target(s) in 10.97s
These static folders can be accessed by power-scouter
╭─────────╮
│ Folders │
╞═════════╡
│ static  │
╰─────────╯

    Starting power-scouter on http://<IP_ADDRESS>:8000

2023-04-20T19:01:03.986947180Z  INFO actix_server::builder: starting 4 workers
2023-04-20T19:01:03.986994790Z  INFO actix_server::server: Tokio runtime found; starting in existing Tokio runtime
^C

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: SendError((End, ""))', /home/piny4man/.cargo/registry/src/github.com-1ecc6299db9ec823/shuttle-runtime-0.14.0/src/alpha/mod.rs:323:79
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Duplicate declaration

[X] I have searched the issues and there are none like this.

Hey! We are working on resolving this bug, and the fix should be included in a release early next week. We forgot to open an issue for this bug ourselves, sorry about that!

Thanks @oddgrd !


Fix port closing

Overview

The SILS port of the I2C emulated components is not closed properly.
If the CommunicationBase class is copied, double freeing of memory can occur.

Details
Description

In the destructor of ObcI2cTargetCommunicationBase for SILS test, the function CloseComPort for UART is used when the function I2cCloseComPort for I2C should be used.
In UART and I2C CommunicationBase, memory is freed in the destructor. If CommunicationBase class is copied, double freeing of memory can occur.

Conditions of occurrence

This occurs when performing a SILS test with I2C emulated components.
This happens when the UART or I2C CommunicationBase class is copied.

Additional information
files, link, etc, if any.
Task

[x] Fix destructor in ObcI2cTargetCommunicationBase
[x] Add copy constructor

Scope of influence
The behavior of CommunicationBase will be change.
Supplement
NA
Note

Write a conclusion when closing the issue.

対応PRがマージされたのでCLOSEします。


Not possible to use the siunitx package

As the title suggests:
When I try to use the package siunitx, which is a package to display the SI units of physics (in my case I'd like to display the decibel sign)  it gives the following error: "command \unit already defined" pointing to the fact that the \unit command included in the Siunitx package can also be found in the chronology.sty file.
Any ideas on how to remedy to the issue?
Thanks a bunch

As a workaround, I'd try to do \let\unit\relax before loading the package. It often works for me in these cases, but of course there's a chance that there are unwanted consequences, I don't know what the chronology package does, I'll try to investigate.


Random code is shown in cypress report and screenshots are not embedded

Environment
- OS: MAC
- Node: latest
- cypress-mochawesome-reporter: latest (3.2.0)
- cypress: 10 , 11, 12 (tried with all)

What happened?
Screenshots stopped getting attached in the reports when I changed the cypress-cucumber-processor to @badeball/cypress-cucumber-preprocessor and random code is shown under every test case under report
Config file
const { defineConfig } = require('cypress')
const createBundler = require("@bahmutov/cypress-esbuild-preprocessor");
const preprocessor = require("@badeball/cypress-cucumber-preprocessor");
const createEsbuildPlugin = require("@badeball/cypress-cucumber-preprocessor/esbuild");

module.exports = defineConfig({
  chromeWebSecurity: false,
  video: false,
  defaultCommandTimeout: 12000,
  execTimeout: 60000,
  pageLoadTimeout: 60000,
  requestTimeout: 15000,
  responseTimeout: 15000,
  projectId: 'ov3y5h',
  retries: 1,
  screenshotOnRunFailure: true,
  reporter: 'cypress-mochawesome-reporter',

  reporterOptions: {

      charts: true,
      reportPageTitle: 'My Test Suite',
      embeddedScreenshots: true,
      inlineAssets: true,

  },
  e2e: {

    setupNodeEvents(on, config) {

      preprocessor.addCucumberPreprocessorPlugin(on, config);
      require('cypress-mochawesome-reporter/plugin')(on);

      on(
        "file:preprocessor",
        createBundler({
          plugins: [createEsbuildPlugin.default(config)],
        })
      );

      return config;
    },
    baseUrl: 'https://application.com',
    excludeSpecPattern: [
      '**/cucumber-tests/**/*[!*.feature]',
      '**/common/**',
      '**/assets/**',
      '**/utils/**',
      '*.md',
    ],
    specPattern: 'cypress/e2e/**/*.feature',
    supportFile: false,
  }

})

Relevant log output
No response
Anything else?

I'm not familiar with cypress-cucumber-preprocessor, but if you provide a repo with the issue I can try to have a look

Unfortunately, I wouldn't be able to provide the repo details!

Hey! Thanks for getting back. Here's the repo https://github.com/KiranmaiLL/DemoProject

having the same issue, using the webpack-flavour version of the same preprocessor. I think it is something to do with source maps, but the few threads I could find all seem to be waiting on something else.
to be clear, where the report lists code, I expect to see the Cucumber source code, e.g.
  When I visit the page
  Then I should see the title
  And I should see a link

actual: as on the screenshot above.

Hi, @samwatts98 maybe it can help you... I forgot to add import 'cypress-mochawesome-reporter/register'; to cypress/support/e2e.ts and suddenly it started working.

@Radik24 Hello mate,
Appreciate the time to respond :) However I'm currently doing that, and still getting the same result:
cypress/support/e2e.ts:

As well as setting up the hooks as mentioned in step 2 of the set up here: https://www.npmjs.com/package/cypress-mochawesome-reporter
Yet still the reports that are produced include the Cucumber internals rather than details of the Cucumber scenario:

@Radik24 Are you able to get these reports with the @badeball/cypress-cucumber-preprocessor then?

I'm currently having the same issue, any updates yet?
It seems like an error from the @badeball/cypress-cucumber-preprocessor

I'm currently having the same issue, any updates yet?

Just adding another comment to this, experiencing exactly the same issue

Hey everyone, sorry for the very late response.
Thank you @KiranmaiLL for providing the demo repo, I tried to find a solution for this issue, but the problem is with the file:preprocessor hook, as it changes the code that cypress use then pass the code to the reporter.
If in some way we can link between the test that cypress is running and the code before the transformation we can probably override the code that you see in the final report.
Other then that, I cant think of a solution to this issue, feel free to explore more and if someone comes up with something I will be more then happy to help make it work.

Any update on this issue ?

Hi Everyone,
I've just updated two of my Cypress test repositories with 'cypress-mocha-awesome' version 3.5.1 and I'm no longer seeing any of the extra js code appearing in the reports.
My versions are:
Cypress v12.14.0 and v12.17.1,
Mochawesome v7.1.3
I also updated my reporter options to the below (not sure if it makes much of a difference though):
reporterOptions: {
charts: true,
reportTitle: "UI Test Report",
reportPageTitle: "UI Test Report",
reportDir: "cypress/reports",
reportFilename: "myReport",
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
charts: true,
code: false,
showPassed: true,
showFailed: true,
showPending: false,
showSkipped: false,
},
Hopefully it works for you guys too

I am having this issue still, is there any update?

@LironEr can you please reopen this issue ? I have made some progress and I think a solution is possible.
Currently I am able to modify @badeball/cypress-cucumber-preprocessor/dist/browser-runtime.js and pass the Cucumber source to Mochawesome via addTestContext.
cy.addTestContext({
    title: 'Cucumber source',
    value: pickleSteps
        .map(step => step.text)
        .join('\n'),
});

here https://github.com/badeball/cypress-cucumber-preprocessor/blob/7cdb1feb03239f11ec14907b819be78c0f32d19d/lib/browser-runtime.ts#L447
This way the cucumber source is available inside the report.
There some work left to do :

apply this modification without having to modify the node_modules (perhaps ask cypress-cucumber-preprocessor to add some kind of hook)
conditionally hide the actual source code (I have a mix of .feature and .cy.ts files so I cannot just set code: false
handle more complex Cucumber code like Data Table and Outlines


not working, Gray box returns

Hello I have a problem with this.
I put "this.ng2ImgToolsService.compress([file], 2).subscribe" in my code but it return only gray box and I lose the original image. I dont know what is happend.
Thanks.

Hey there @narbelys
Could you please provide the Image you are compressing so that I can reproduce the issue?

thanks @bergben
this is the image

and this happend with all my image (with size > 2MB)

I will check it out ASAP, probably in the next 2 days :)

Sorry for the late answer @narbelys
I have tried it now and it seems to work fine in my app. I can't reproduce the issue in a plunker either:
http://plnkr.co/edit/Y8JzvhYPJvcN2CJPhWDk?p=preview
Please try it in the plunker yourself or ideally provide me a plunker that reproduces the issue, thanks!
Note: The plunkr uses ng2-img-max instead of ng2-img-tools, but ng2-img-max is the library that ng2-img-tools uses to compress images :)

Thanks for your answer.
I'm going to try this :)

Any news on this? Otherwise I will close this issue.

Hi @bergben now this compresses the image perfectly thanks. But I have a question for you, I am trying to process the image and once compressed I can not detect the position through its metadata to be able to put it in the correct position. Does the library do something to this information in the metadata?
Thanks :)

Hey @narbelys :) What do you mean by position?


Enable tile/slice parallelism and -qpa will cause mismatch between reconstructed YUV and decoded YUV.

--preset fast -qpa 1 -f 33 -t -1 -s 960x540 -fr 30 --EnablePicPartitioning 1 --TileColumnWidthArray 10  --qp 28 -o rec.yuv  -b str.bin -i input.yuv

VVenC version: v1.3.0

Indeed. Thanks for reporting. We'll provide a fix soon.


Code works properly, but an error occurred when I tried to run it in gramine.

This is an error message
It seems that the program wants to download the model, but I have already downloaded the model before. Does anyone know how to solve this problem
Downloading: "https://download.pytorch.org/models/vgg19-dcbb9e9d.pth" to /root/.cache/torch/hub/checkpoints/vgg19-dcbb9e9d.pth
./checkpoint/1024/2/epoch_78-best-acc_0.8823530077934265.pth
Traceback (most recent call last):
File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1418, in connect
super().connect()
File "/usr/lib/python3.8/http/client.py", line 922, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.8/socket.py", line 787, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./Get_feature.py", line 59, in
model = Load_model(opt.model_path)
File "./Get_feature.py", line 31, in Load_model
model = vgg_model.VGG19()
File "/vgg_model.py", line 8, in init
self.features = models.vgg19(pretrained=True).features
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 142, in wrapper
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 228, in inner_wrapper
return builder(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 485, in vgg19
return _vgg("E", False, weights, progress, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 105, in _vgg
model.load_state_dict(weights.get_state_dict(progress=progress))
File "/usr/lib/python3/dist-packages/torchvision/models/_api.py", line 89, in get_state_dict
return load_state_dict_from_url(self.url, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 746, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 611, in download_url_to_file
u = urlopen(req)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 27, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 36, in
apt_pkg.init_system()
apt_pkg.Error: E:Error reading the CPU table
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1418, in connect
super().connect()
File "/usr/lib/python3.8/http/client.py", line 922, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.8/socket.py", line 787, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./Get_feature.py", line 59, in
model = Load_model(opt.model_path)
File "./Get_feature.py", line 31, in Load_model
model = vgg_model.VGG19()
File "/vgg_model.py", line 8, in init
self.features = models.vgg19(pretrained=True).features
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 142, in wrapper
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 228, in inner_wrapper
return builder(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 485, in vgg19
return _vgg("E", False, weights, progress, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 105, in _vgg
model.load_state_dict(weights.get_state_dict(progress=progress))
File "/usr/lib/python3/dist-packages/torchvision/models/_api.py", line 89, in get_state_dict
return load_state_dict_from_url(self.url, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 746, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 611, in download_url_to_file
u = urlopen(req)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

It seems that the program wants to download the model, but I have already downloaded the model before.

Looks like the model is downloaded under /root/.cache/torch/hub/checkpoints/vgg19-dcbb9e9d.pth. Are you sure you specified this path/file in the Gramine manifest file? Probably Gramine simply doesn't "know" about this directory/file because you didn't expose them in the manifest.

socket.gaierror: [Errno -3] Temporary failure in name resolution

This error probably happens because you didn't expose the DNS logic in Gramine manifest. Please add it as described here: https://gramine.readthedocs.io/en/stable/manifest-syntax.html#domain-names-configuration

i add "/root/.cache/torch/hub/checkpoints/vgg19-dcbb9e9d.pth" in trusted_files and
[sys]
enable_extra_runtime_domain_names_conf = true
in manifest
I meet a new error.It seems to be a certificate authentication issue. Should I add any more information to the manifest
Downloading: "https://download.pytorch.org/models/vgg19-dcbb9e9d.pth" to /root/.cache/torch/hub/checkpoints/vgg19-dcbb9e9d.pth
./checkpoint/1024/2/epoch_78-best-acc_0.8823530077934265.pth
Traceback (most recent call last):
File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1425, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1131)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./Get_feature.py", line 59, in
model = Load_model(opt.model_path)
File "./Get_feature.py", line 31, in Load_model
model = vgg_model.VGG19()
File "/vgg_model.py", line 8, in init
self.features = models.vgg19(pretrained=True).features
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 142, in wrapper
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 228, in inner_wrapper
return builder(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 485, in vgg19
return _vgg("E", False, weights, progress, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 105, in _vgg
model.load_state_dict(weights.get_state_dict(progress=progress))
File "/usr/lib/python3/dist-packages/torchvision/models/_api.py", line 89, in get_state_dict
return load_state_dict_from_url(self.url, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 746, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 611, in download_url_to_file
u = urlopen(req)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1131)>
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 27, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 36, in
apt_pkg.init_system()
apt_pkg.Error: E:Error reading the CPU table
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 1425, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1131)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./Get_feature.py", line 59, in
model = Load_model(opt.model_path)
File "./Get_feature.py", line 31, in Load_model
model = vgg_model.VGG19()
File "/vgg_model.py", line 8, in init
self.features = models.vgg19(pretrained=True).features
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 142, in wrapper
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/_utils.py", line 228, in inner_wrapper
return builder(*args, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 485, in vgg19
return _vgg("E", False, weights, progress, **kwargs)
File "/usr/lib/python3/dist-packages/torchvision/models/vgg.py", line 105, in _vgg
model.load_state_dict(weights.get_state_dict(progress=progress))
File "/usr/lib/python3/dist-packages/torchvision/models/_api.py", line 89, in get_state_dict
return load_state_dict_from_url(self.url, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 746, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/usr/lib/python3/dist-packages/torch/hub.py", line 611, in download_url_to_file
u = urlopen(req)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1131)>

It looks like you'll need to also expose the root certificates directory to Gramine. You can do loader.log_level = "trace" and see what your application tries to do. It will probably try to open some system-wide directory with certificates that is not mentioned in your manifest file.
But also -- if you already downloaded the model, then your application shouldn't even try to download it once more. Which means that you won't need all the stuff I mentioned above. You just need to understand what is missing from your manifest file that makes your app think that there is no model available on your file system and to download it again.

yes, i add "/root/.cache/torch/hub/checkpoints/vgg19-dcbb9e9d.pth" in [fs]mount,trusted_files and allowed_filee.then it work.
thank you !
thank you very much !


Add persist storage to prometheus

I would like to use the persistent storage for the prometheus, so my metrics data does not disappear after the prometheus restart.

Hi @yacut. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

We should be enhancing https://github.com/istio/installer/tree/master/istio-telemetry/prometheus-operator rather than changing this here. We are not supporting changes to these helm charts

@yacut: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-security-k8s-tests_istio
82afd0f877f76f32fad75cc5fdd786e60755c15f
link
/test integ-security-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Floating point exception with local PQ Overture files

Sourcing from Overture's S3 release for July doesn't have any issues:
COPY (
    SELECT h3_cell_to_boundary_wkt(
                h3_latlng_to_cell(bbox.ymax, bbox.xmax, 5))::geometry geom,
            COUNT(*)
    FROM read_parquet('s3://overturemaps-us-west-2/release/2024-07-22.0/theme=addresses/type=address/*.parquet')
    WHERE country = 'CA'
    group by 1
) TO 'addresses.ca.gpkg'
    WITH (FORMAT GDAL,
          DRIVER 'GPKG',
          LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES');

But running the same on their files locally raises a floating point exception:
$ aws s3 --no-sign-request sync \
    s3://overturemaps-us-west-2/release/2024-07-22.0/theme=addresses/type=address \
    ./addresses
$ cd addresses
$ ~/duckdb # v1.0.0 1f98600c2c

COPY (
    SELECT h3_cell_to_boundary_wkt(
                h3_latlng_to_cell(bbox.ymax, bbox.xmax, 5))::geometry geom,
            COUNT(*)
    FROM read_parquet('*.parquet')
    WHERE country = 'CA'
    group by 1
) TO 'addresses.ca.2.gpkg'
    WITH (FORMAT GDAL,
          DRIVER 'GPKG',
          LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES');

Floating point exception

This might also relate to another JSON decoding issue over S3 vs local https://gist.github.com/marklit/3a0d57a0558a80cd387e5da7be4dce96#gistcomment-5129094

I'm now seeing the issue on S3 with August's data. I'm using v1.0.0 1f98600c2c
COUNTRY=US

echo "COPY (
          SELECT h3_cell_to_boundary_wkt(
                      h3_latlng_to_cell(bbox.ymax, bbox.xmax, 5))::geometry geom,
                  COUNT(*)
          FROM read_parquet('s3://overturemaps-us-west-2/release/2024-08-20.0/theme=addresses/type=address/*.parquet')
          WHERE country = '$COUNTRY'
          group by 1
      ) TO 'addresses.2024.08.$COUNTRY.gpkg'
          WITH (FORMAT GDAL,
                DRIVER 'GPKG',
                LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES')" | ~/duckdb

 13% ▕███████▊                                                    ▏ Floating point exception

The issue is probably happening outside of the Spatial extension, I raised this instead: https://github.com/duckdb/duckdb/issues/13504


Publish a list of sprites

Hi,
I cannot seem to get it to run.
I have a list of sprites which I want to be displayed vertical and the user should be able to scroll through vertically.
var startX = this.fHeader.x;
	var startY = this.fHeader.y + this.fHeader.height;

	var sprites = [];
	this.highscores.forEach(function(highscore) {
		var sprite = game.add.sprite(startX, startY, 'spriteKey');
		startY += sprite.height;
		sprites.push(sprite);
	}, this);

	var bounds = new Phaser.Rectangle(0, 0, 1000, 2000);
	var options = {
		direction : 'y',
		overflow : 100,
		padding : 10
	};

	var listView = new PhaserListView.ListView(game, this, bounds, options);

	var newItem = game.add.group(this);
	listView.addMultiple(sprites);
	newItem.nominalHeight = 120;

	listView.add(newItem);

This is actually taken from the example, but the line
listView.addMultiple(sprites);
causes issues: updateTransform of children[i] is not a function. When I add the sprites directly to the group "newItem", then I won't get any error, but therefore I see nothing (I mean, the listview nowhere).
So I ask myself, how to actually do it?

Hi sorry for the late reply, missed this one. addMultiple expects many arguments for each child, not an array. The example shows ...sprites which splats the array into args. Hope this helps!


Create option for Jobs to not run at certain times

Either do this through a "default time" (or date) for Jobs to run, or "blackout hours" during which a Job won't automatically be run. Both of these could be temporarily overridden by an SSH/Slack run [Job name].
@rshorey, @paultag, preference on which I implement?

I would probably do a default time, probably because what happens if it tries to go during blackout hours seems like a confusing question to me.

Hurm, interesting idea. What's the motivation? I'd love to understand the problem :)

This is more or less addressed by my PR that switched Moxie to Cron scheduling (instead of just using an interval). Basically, for Open States and municipal OCD scrapers we don't want jobs to run automatically during local business hours.
But you could also apply this to other situations. Say you know your company's server will be down for an hour each night and want to avoid runs during that time. Or you have a stock market analysis tool that needs to run hourly only during the market's active hours.

But I think Cron fixes this issue!


Is the training data private?

Hi @bfelbo ,
Is the tweets dataset that the model was trained on available somewhere?

I would love to, but can't share it. Please the README:

We sadly cannot release our large Twitter dataset of tweets with emojis due to licensing restrictions.


[BUG] TypeError: unsupported operand type(s) for |: 'type' and 'type'

Try Instagrapi SaaS with a free trial https://hikerapi.com/p/5GBWznd3
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Provide a piece of code to reproduce the problem.
Traceback
Show your full traceback so that it is clear where exactly the error occurred.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Ubuntu 21.04]
Python version [e.g. 3.8.3]
instagrapi version [e.g. 1.9.3, not "latest"]
moveipy version if used
imagemagick version if used

Additional context
Add any other context about the problem here.
Hello, I was testing your package and got this error.
from instagrapi import Client
cl = Client()
USERNAME = "abc"
PASSWORD = "sdeerre"
cl.login(USERNAME, PASSWORD)
Error: Traceback (most recent call last):
File "f:\Python\ins.py", line 1, in
from instagrapi import Client
File "~\Python\Python39\lib\site-packages\instagrapi_init_.py", line 7, in
from instagrapi.mixins.account import AccountMixin
File "~\Python\Python39\lib\site-packages\instagrapi\mixins\account.py", line 8, in
from instagrapi.extractors import extract_account, extract_user_short
File "~\Python\Python39\lib\site-packages\instagrapi\extractors.py", line 6, in
from .types import (
File "~\Python\Python39\lib\site-packages\instagrapi\types.py", line 130, in
class Media(BaseModel):
File "~\Python\Python39\lib\site-packages\instagrapi\types.py", line 131, in Media
pk: str | int
TypeError: unsupported operand type(s) for |: 'type' and 'type'

instad-web-1  | Traceback (most recent call last):
instad-web-1  |   File "/app/app.py", line 10, in
instad-web-1  |     from UserInfo import UserInfo
instad-web-1  |   File "/app/UserInfo.py", line 5, in
instad-web-1  |     from instagrapi import Client
instad-web-1  |   File "/usr/local/lib/python3.9/site-packages/instagrapi/init.py", line 7, in
instad-web-1  |     from instagrapi.mixins.account import AccountMixin
instad-web-1  |   File "/usr/local/lib/python3.9/site-packages/instagrapi/mixins/account.py", line 8, in
instad-web-1  |     from instagrapi.extractors import extract_account, extract_user_short
instad-web-1  |   File "/usr/local/lib/python3.9/site-packages/instagrapi/extractors.py", line 6, in
instad-web-1  |     from .types import (
instad-web-1  |   File "/usr/local/lib/python3.9/site-packages/instagrapi/types.py", line 130, in
instad-web-1  |     class Media(BaseModel):
instad-web-1  |   File "/usr/local/lib/python3.9/site-packages/instagrapi/types.py", line 131, in Media
instad-web-1  |     pk: str | int
instad-web-1  | TypeError: unsupported operand type(s) for |: 'type' and 'type'
I have the same issue

I had the same issue. switching to python 3.11 works for me

Switch to python 3.10

Hey guys, the issue comes from types.py in /Python/3.9/lib/python/site-packages/instagrapi/types.py. In line 125 the old union operator is used. change line 2 to from typing import List, Optional, Union and change line 25 to pk: Union[str, int]. repeat the same process anytime | is used. hope that makes sense lol.


parallel parameters for ode instances?

In running the example on your Github exactly as written (copied and pasted into Spyder), I get the following error:
Traceback (most recent call last):
File ~/opt/anaconda3/envs/torch/lib/python3.8/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
exec(code, globals, locals)
File ~/.spyder-py3/temp.py:22
jit_solver = torch.jit.script(solver)
File ~/opt/anaconda3/envs/torch/lib/python3.8/site-packages/torch/jit/_script.py:1286 in script
return torch.jit._recursive.create_script_module(
File ~/opt/anaconda3/envs/torch/lib/python3.8/site-packages/torch/jit/_recursive.py:476 in create_script_module
return create_script_module_impl(nn_module, concrete_type, stubs_fn)
File ~/opt/anaconda3/envs/torch/lib/python3.8/site-packages/torch/jit/_recursive.py:542 in create_script_module_impl
create_methods_and_properties_from_stubs(concrete_type, method_stubs, property_stubs)
File ~/opt/anaconda3/envs/torch/lib/python3.8/site-packages/torch/jit/_recursive.py:393 in create_methods_and_properties_from_stubs
concrete_type._create_methods_and_properties(property_defs, property_rcbs, method_defs, method_rcbs, method_defaults)
RuntimeError: type INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/jit/ir/ir.h":1488, please report a bug to PyTorch.
The other question I had is not an issue: Is it possible to have a tensor of parameters for the system of differential equations? I.e. the functional form of the ODE is the same for each sample but the parameters are different. I see in your example that the initial conditions can be different and the evaluation time points can be different, but given where the term is defined, is it possible for f(t,x) to be replaced with F(alpha) which returns f(t,x; alpha), and then one would pass in tensors for alpha, initial conditions and time points? I could, of course, put dummy equations with vanishing derivatives for any parameters and then pass them in as initial values that will just stay constant, but that does not seem very graceful.
Thank you.

Hey, thanks for trying torchode! Unfortunately, the code in the readme works for me and I cannot reproduce the problem, so I cannot help you with that. pytorch's JIT compiler is pretty finicky in my experience and if you want to use it more heavily, you will not get around dealing with and debugging these kind of errors, because they can be very specific to your setup. First thing I would try would be a more recent python version but it could be something else completely.
Regarding your second question, I have added a page on passing extra arguments to the documentation. I hope that answers your question. Otherwise, please feel free to follow up.


Bug

Describe the bug:

Link to the blitz that caused the error
https://stackblitz.com/github/webpack/webpack.js.org/tree/master/examples/getting-started?file=webpack.config.js&terminal=
Steps to reproduce:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior:

Version of webcontainer:
Hash: 70a1ff62a0f0131ac0df3c30faf487fef744ac90
Screenshots:

Desktop (please complete the following information):
Browser name  = Chrome
Full version  = 93.0.4544.0
Major version = 93
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4544.0 Safari/537.36 Edg/93.0.936.0
performance.memory = {
  "totalJSHeapSize": 74566356,
  "usedJSHeapSize": 70636560,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}

Additional context:

Closing this issue as it's unclear what goes wrong and none of the required details are filled in. Feel free to open a new issue and fill in all the necessary details so we have enough information to have a look ourselves. The more information we have, the better we can help you 🙏 .


Create full website with Routes and Styles

This PR contains a full website for the Math Magicians app with Routing and Styles

A website for all fans of mathematics.

Highlights:

Home page with a description
Calculator page with a functional Calculator
Quote page
Navbar with functional routes
General project improvements

Your review is welcome. 😃

Thanks a lot, @elyor-doniyorov for approving my PR. 🙏🏾


add maxBytes and minBytes limit

Codecov Report

Merging #54 (cc1e10e) into main (42a5f17) will increase coverage by 0.09%.
The diff coverage is 43.47%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   59.79%   59.89%   +0.09%
==========================================
  Files          12       12
  Lines        1082     1102      +20
==========================================
+ Hits          647      660      +13
- Misses        348      353       +5
- Partials       87       89       +2

Impacted Files
Coverage Δ

pkg/kafsar/offset_helper.go
50.00% <0.00%> (-21.43%)
:arrow_down:

pkg/kafsar/kafka_impl.go
49.16% <31.81%> (-0.56%)
:arrow_down:

pkg/utils/pulsar_util.go
65.11% <65.00%> (+6.88%)
:arrow_up:

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 0bf357f...cc1e10e. Read the comment docs.


Introduce tools to use - APIOps 101

From @kyyberi on October 15, 2015 5:56
We need to give some insight to tools people can use in Design First driven process.
Copied from original issue: APIOps/portal#10

This could be "APIOps 101" style series of blog entries

This issue was moved to APIOps/apiops-meetup#20

@kyyberi could you please list those tools? I will find logos and links to them.

For RAML

http://raml.org/projects/projects

Swagger:

https://www.npmjs.com/package/swagger-js-api-generator
https://www.npmjs.com/package/swagger-tools
https://github.com/swagger-api/swagger-codegen

API Blueprint
https://apiblueprint.org/ -> Tooling


(juniper/open-nti:latest ) container generates lots of core files

Hi,
I noticed that the open-nti (juniper/open-nti:latest ) container generates lots of core files under the root folder.
What could be the reason for having those files.
-rw-------.  1 root root 677945344 Jun 20 07:35 core.1569
-rw-------.  1 root root 366907392 Jun 19 04:53 core.16115
-rw-------.  1 root root 387551232 Jun 19 18:17 core.1794
cheers
Al

Hi,
Do you have more information (syslog/environment description/backtrace), or something?
Regards

Hi,
How do I fetch those data for you?
I noticed  open-nti container creates these core files quite often and that was the reason it was crashing from time to time.
I had to mount the /root as an external volume to make it won't crash
here it is how big it is right now
[root@xxxxxxxx root]# pwd
/opt/main/open-nti/chroot/open-nti/root
[root@xxxxxxxx root]# du -sch  .
32G     .
32G     total
[root@xxxxxxxx root]#
cheers
Al

HI,
I guess you will have to instruct me which logs you wanna see. I just deleted couple of core files which are generated under the root folder.
and it saved me couple of disk space.
from:
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   75G   63G   13G  84% /
devtmpfs                  16G     0   16G   0% /dev
[root@xxxxxxxx root]# pwd
/opt/main/open-nti/chroot/open-nti/root
[root@xxxxxxxx root]# ls
core.12206  core.14685  core.18393  core.24105  core.26855  core.30566  core.40262  core.47315  core.7392  core.9968
core.12277  core.15331  core.19247  core.24142  core.27208  core.33959  core.41051  core.47702  core.7716
core.1352   core.1577   core.19431  core.26068  core.27440  core.35331  core.42751  core.49093  core.7988
core.14026  core.1647   core.22140  core.26110  core.27515  core.39560  core.44036  core.5714   core.8712
core.14559  core.16567  core.23247  core.26289  core.30006  core.39702  core.45443  core.7184   core.8948
to:
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   75G   21G   55G  28% /
devtmpfs                  16G     0   16G   0% /dev
BR
Al


update sam installation instructions

This is a now outdated PR due to changes in this workshop. Thanks for this submission, but closing.


p2p is running, but in tray it looks like isn't installed.

it appeared after the update p2p on my machine
OS Win10

logs_12.txt
logs_13.txt

In CC it shows also p2p isn't running.


Fix and optimize star-tree unit tests

The old star-tree unit tests have a bug and run both test and comparison query using star-tree operator
Fix this issue so that the tests compare results from star-tree with non-star-tree
Also clean-up and merge tests into SumStarTreeIndexTest to reduce the test set-up time
TODO: the backward-compatibility test never worked, should try to fix it

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@276f633). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1762   +/-   ##
=========================================
  Coverage          ?   65.81%
=========================================
  Files             ?      865
  Lines             ?    41902
  Branches          ?     5517
=========================================
  Hits              ?    27579
  Misses            ?    12450
  Partials          ?     1873

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 276f633...17fbf8a. Read the comment docs.


implement "difference" operator in TutorialD

I simply missed the TutorialD parse implementation by mistake or laziness.

I am mistaken. In TutorialD, difference is called "minus".


Create accordion components in kodiak ui

Summary
Create Accordion components in Kodiak UI including:
<Accordion>
  <AccordionItem>
    <AccordionHeader/>
    <AccordionBody/>
    <AccordionFooter/>
  </AccordionItem>
</Accordion>

This mirrors the DialogHeader, DialogContent, DialogFooter
Design from email verification epic

Main Story: ch51882
:vertical_traffic_light: Acceptance criteria

[x] The components can all work fully controlled
[x] A sample of a flipped Icon is given
[x] aria-expanded property of the header reflects if the AccordionContent is expanded
[x] aria-controls and aria-label can be added to the header
[x] aria-labelled-by on the content refers to the header id
[x] headers can be tabbed to
[x] 'Enter' and 'Space' on the header fire the toggle event

Implementation Tasks

Deployment
Before merge to master
Note: Code merged to master should be safe to automatically deploy to production as-is.

[ ] [QA] User-testing/quality assurance done

After merge to master

Oh also, let's move the React imports. They aren't needed.

Oh also, let's move the React imports. They aren't needed.

I tried to pull it out but typescript gives the dreaded:

The inferred type of 'Accordion' cannot be named without a reference to 'theme-ui/node_modules/@types/react'. This is likely not portable. A type annotation is necessary.ts(2742)


Add semi-colon to gRPC service definition for consistency

Per the following documentation, it's acceptable to terminate the service definition code with a semi-colon:
https://developers.google.com/protocol-buffers/docs/reference/proto3-spec#service_definition
Since semi-colons are used elsewhere in the proto file, this PR applies one in the service definition for the sake of consistency in the template.

Seems reasonable to me but I don't know much about Grpc, @JunTaoLuo is a better bet.

I discussed a similar change in our docs with @JamesNK. Perhaps he can look too.


Where is the sample project?

[Enter feedback here]
None of the code in the sample works as it is.
When attempting to simply GetGrain<[interface]>(...), an exception "Could not find an implementation for interface .[interface]"
When consulting StackOverflow for a resolution to the Exception it was recommended to include:
Microsoft.Orleans.CodeGenerator.MSBuild
When including that package, a new exception occurs during build.
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3073	The command ""dotnet" "C:\Users\XXXX.nuget\packages\microsoft.orleans.codegenerator.msbuild\3.7.1\build..\tasks\Orleans.CodeGenerator.MSBuild.dll" SourceToSource "C:\Projects\SpacTrac\SpacTrac.Core\obj\Debug\net7.0\SpacTrac.Core.orleans.g.args.txt"" exited with code 3.	SpacTrac.Core	C:\Users\XXXX.nuget\packages\microsoft.orleans.codegenerator.msbuild\3.7.1\build\Microsoft.Orleans.CodeGenerator.MSBuild.targets	123
Which is as close to useless as possible.
When running dotnet in console:
Exc level 0: System.InvalidOperationException: Unable to find type with metadata name "Orleans.CodeGeneration.CopierMethodAttribute".
It would be helpful to have an actual working project to compare against rather than snippets of code that seem to be written without ever being tested in a real project.
What I am looking for is the NuGet packages used in which projects.   Is there a breaking bug in a recent release?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 49b6fdcd-e49a-9791-2688-871a77a7acb9
Version Independent ID: 0edd7616-7564-7c75-8174-432922ea8a71
Content: Unit testing sample project - .NET
Content Source: docs/orleans/tutorials-and-samples/testing.md
Product: dotnet-orleans
GitHub Login: @IEvangelist
Microsoft Alias: dapine

6+ months later and STILL a problem...
2>------ Rebuild All started: Project: ListenTogether.Application, Configuration: Debug Any CPU ------ 2>Orleans.CodeGenerator - command-line = SourceToSource C:\repos\GitHub\dotnet-podcasts\src\Services\ListenTogether\ListenTogether.Application\obj\Debug\net8.0\ListenTogether.Application.orleans.g.args.txt 2>-- Code Generation FAILED -- 2> 2>Exc level 0: System.InvalidOperationException: Unable to find type with metadata name "Orleans.CodeGeneration.CopierMethodAttri
 https://github.com/microsoft/dotnet-podcasts.git  - With update to .net 8.0 and all latest packages..

I found the solution: Newly you have to reference Microsoft.Orleans.Sdk in your grains project.


Add Discussion Feature to this Fork

Describe your suggested feature
The discord linked is for the official Tachiyomi. I have some questions, but I don't want to put issues for them. I think this would be a good solution.
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version 1.8.5.
[X] I will fill out all of the requested information in this form.

There is a SY channel in the Tachiyomi discord, feel free to ask there.


adding arabic

I believe they can solve the whole RTL thing in css

Thanks @mahmoudyusof! Much appreciated! I'll tag this for release (probably later today) and will version bump vue-formulate and the docs to reflect it. Thanks!


Suggestion: Add CMake option to use SDK location for glslang library

A CMake option was added (#49) to allow using the vulkan headers from the installed SDK instead of the ones shipped with Anvil, which is great, but Anvil still always uses the shipped version of glslang instead of the SDK version.
Since the glslang library is part of the vulkan SDK anyway, I think the CMake option should probably also make it so the SDK version is used instead of the shipped version, or there should be an additional CMake option for that.
// Edit:
In fact, it's a bit of a source of confusion right now. I originally assumed that ANVIL_USE_BUILT_IN_VULKAN_HEADERS referred to ALL headers from the SDK (including glslang and spirv-tools), so I linked against the SDK versions of those libraries. Since the SDK version differed from the Anvil version, that didn't go so well.

Addressed internally. Anvil's CMake file now includes a new ANVIL_USE_BUILT_IN_GLSLANG option which is enabled by default. If it is disable, a new ANVIL_GLSLANG_PATH option will allow apps to specify an alternative location to use as glslang's root directory.

Fixed in the latest version.


Keyboard (Gboard) misbehaving with TextField

Steps to Reproduce

Run the following code.

https://user-images.githubusercontent.com/59223300/115220162-dbe4d100-a125-11eb-93c7-438fc46d099e.mp4
See the topBar in gboard.
Code

code sample

/// Flutter code sample for TextField
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

/// This is the main application widget.
class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: _title,
      home: MyStatefulWidget(),
    );
  }
}

/// This is the stateful widget that the main application instantiates.
class MyStatefulWidget extends StatefulWidget {
  const MyStatefulWidget({Key key}) : super(key: key);

  @override
  _MyStatefulWidgetState createState() => _MyStatefulWidgetState();
}

/// This is the private State class that goes with MyStatefulWidget.
class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  TextEditingController _controller;

  @override
  void initState() {
    super.initState();
    _controller = TextEditingController();
    _controller.addListener(() {
      final String text = _controller.text.toLowerCase();
      _controller.value = _controller.value.copyWith(
        text: text,
        selection:
            TextSelection(baseOffset: text.length, extentOffset: text.length),
        composing: TextRange.empty,
      );
    });
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: TextField(
          controller: _controller,
          onSubmitted: (String value) async {
            await showDialog<void>(
              context: context,
              builder: (BuildContext context) {
                return AlertDialog(
                  title: const Text('Thanks!'),
                  content: Text(
                      'You typed "$value", which has length ${value.characters.length}.'),
                  actions: <Widget>[
                    TextButton(
                      onPressed: () {
                        Navigator.pop(context);
                      },
                      child: const Text('OK'),
                    ),
                  ],
                );
              },
            );
          },
        ),
      ),
    );
  }
}

Hi @ProblematicDude
I'm not sure if this is an issue with Flutter (I can't see any interaction with the app in the image above), can you please provide the steps to reproduce this keyboard issue?
I noticed that your code must use the text formatter API if you goal is to mutate the text entered in the text field, see https://master-api.flutter.dev/flutter/services/TextInputFormatter-class.html.

It's highly recommended to NOT modify the composing region. See the class documentation of https://master-api.flutter.dev/flutter/widgets/TextEditingController-class.html:

Modifying the composing region from within a listener can also have a bad interaction with some input methods. Gboard, for example, will try to restore the composing region of the text if it was modified programmatically, creating an infinite loop of communications between the framework and the input method.

The solution will be keeping the composing region as is when you are lowercasing the input text. But I would expect your code to work correctly on the current master.


Error: TOML parse error at line 3, column

What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
zsh 5.9 (arm-apple-darwin21.3.0)
yazi --debug output
Error: TOML parse error at line 3, column 1
  |
3 | [[manager.keymap]]
  | ^^^^^^^^^^^^^^^^^^
missing field `run`

Did you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (yazi --debug) to the nightly that I tried
Describe the bug
When I try to run yazi, i get the following output:
Error: TOML parse error at line 3, column 1
  |
3 | [[manager.keymap]]
  | ^^^^^^^^^^^^^^^^^^
missing field `run`

Minimal reproducer
❮ yazi
Error: TOML parse error at line 3, column 1
|
3 | [[manager.keymap]]
| ^^^^^^^^^^^^^^^^^^
missing field run
Anything else?
ProductName:            macOS
ProductVersion:         14.6
BuildVersion:           23G80

exec has been replaced by run in newest release: https://github.com/sxyazi/yazi/issues/1046
just search and replace the instances across your configuration files

Yeah @t-ober is right, this is a breaking change in Yazi 0.3, see https://github.com/sxyazi/yazi/issues/1046


Fix variable name in config_context_{list, _hash}

Fix a typo in the variable name used in the code for both config_context_list and config_context_hash.
Without the fix, when I try to use these methods in strict mode, I get the following error:
Mixlib::Config::UnknownConfigOptionError:
 Reading unsupported config value symbol.

The included tests can reproduce the error if you revert the changes in lib/mixlib/config.rb

Duplicate of #57

The fix is released in 2.2.8


Why does Vue core recommend using this instead of jest-vue-preprocessor?

Hello,
I'm working on integrating vue-test-utils into my existing project which uses jest and jest-vue-preprocessor.
The vue-test-utils docs say to use this jest-vue package, but I don't understand why I would use one over the other. I'm sure there are significant differences I don't understand.
I'd appreciate any help you can give!
Thanks!

When the docs were written, jest-vue supported source maps and vue-jest didn't. Now they both support source maps, so there isn't a huge difference.


Better support for modules per BUILD

We have a growing monorepomostly in Java, Scala and kotlin with many independent services and clientes. I just started using bazel intellij plugin and it seems to create a single workspace module with all targets on it. When I'm using auto complete, it brings names from all possible targets. In other words, it does not follow BUILD file target dependencies.
What's proper way to use this plugin if I want to make sure dependencies in BUILD file must be respected?

https://github.com/bazelbuild/intellij/issues/179


Fix website build with required Python dependency

Motivation
Website build is currently failing because one Python dependency is missing when trying to generated the PDoc documentation.

run java8 tests
run integration tests


Not found: 'python/cv2/gapi/.*.py'

python install running to this error:
Not found: 'python/cv2/gapi/.*.py'

Can you reinstall opencv-python with pip ?


Error: invalid moduleId when trying to stub a module dependency ES6

I have created 2 files add.js and server.js. The files are as follows
add.js
const add = () => {
    return 10
}

export { add }

server.js
import { add } from './add.js'

function print() {
    console.log(add())
}

export {print}

I have written a unit test file for server.js as follows
import { expect } from 'chai'
import esmock from 'esmock'
import sinon from 'sinon'

describe('server.js', () => {
    const addStub = sinon.stub()
    const m = esmock('../server.js', {
        ['./add.js']: {
            add: addStub
        }
    })

    it ('should work', () => {
        console.log(m)
        m.print()
        expect(2).be.equal(2)
    })
})

I have used a library called esmock which works similarly to proxyquire. But when I ran the test using mocha. I got the following error
 Error: invalid moduleId: "./add.js"
I am wondering what could be the issue here. Is the problem related to the path specified in esmock or the way I am acquiring the import?
FYI: esmock with same syntax works well for standard imports from npm like axios or aws-sdk
I was hoping someone could help me figure out whats the problem. Thanks in advance!

@umakanth-pendyala try this. Also, ff server.js and add.js are in the same directory, define the mock definition on "../add.js" (same location as "../server.js"),
    const m = esmock('../server.js', {
-        ['./add.js']: {
+        '../add.js': {
            add: addStub
        }
    })

Tried that, no luck.

Awesome. When that error is thrown, the full path is shortened. If the error showed the full path, it would have been easier to see the path wasn't right.
Maybe the full path should be printed.

Thanks for using esmock and for opening this issue


Issue with downloading Azure Module

Hello,
When I want to download Azure Module:
go get github.com/gruntwork-io/terratest/modules/azure

I'm getting:
go: downloading github.com/Azure/azure-sdk-for-go v50.2.0+incompatible
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/frontdoor/mgmt/frontdoor<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/mysql/mgmt/mysql<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/resources<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/sql/mgmt/sql<EMAIL_ADDRESS>
stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/preview/cosmos-db/mgmt/documentdb<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/preview/preview/monitor/mgmt/insights<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/preview/sql/mgmt/sql<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-07-01/compute<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-11-01/containerservice<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/keyvault/auth<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-09-01/network<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-10-01/resources<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web<EMAIL_ADDRESS>stream error: stream ID 1; NO_ERROR; received from peer

@Chivolta  you need to use go get -v -u github.com/gruntwork-io/terratest instead of the relevant submodule. Otherwise, go does not detect terratest's go.mod file, and won't respect the transient dependency requirements.
This means that go will proceed to pull in the latest versions of all the referenced dependencies in the azure module, which is probably why you ran into this error.


Qiime taxa collapse-problem?

Hi all!
I have a problem with qiime taxa collapse script..
I honestly cannot find the reason why..
I am running this on Mac Qiime 2,
Here is the script that I am running:
qiime taxa collapse
--i-table dada2_trial/table.qza
--i-taxonomy 99_otu_classifier_trial.qza
--p-level 7
–-o-collapsed-table table_trial.qza
I made sure my taxonomy file is the one from Greengene Database classifier
and the Error Msg seems to be related to –-o-collapsed-table ???
Here is the error msg:
(1/2) Missing option '--o-collapsed-table'. ("--output-dir" may also be
used)
(2/2) Got unexpected extra argument ( )
/var/lib/slurmd/job2224692/slurm_script: line 22: –-o-collapsed-table: command not found
My script includes the Missing option...so I don't understand why it doesn't recognize it????
Can anyone tell??? what's wrong??
I am using this script to create OTU table..which we need for running analysis on Galaxy/Metagenassist..on different platform.

Hi @Sammijiyoung! We provide user support over at https://forum.qiime2.org - please post your question over there and someone will be with you soon.


Windows error in the root directory

Due to the direct use of fs.lstat, in acquiring similar D: \ when the file, Windows system folder "System Volume Information" method would result in an exception.

Perhaps you can first use fs.readdir list all the files, then use fs.lstat to get detailed information and filter list.
So even if some files wrong, it will not affect the normal display other files.

shameless self-promotion alert:this feature is fixed in my @warren-bank/serve fork of serve


SAM Local testing doesn't work for source inside a folder

Description:
I have set up a Lambda-API project using AWS SAM. My directory structure for the code is as follow -
Project
-src
--index.js
-template.yml
-buildspec.yml

My template.yml has the following serverless function
  DummyFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: src/index.helloWorld
      Runtime: nodejs6.10
      Role:
        Fn::ImportValue:
          !Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
      Events:
        GetEvent:
          Type: Api
          Properties:
            Path: helloworld
            Method: post

This function runs perfectly when I deploy it in AWS. But while using SAM Local I am facing an issue. I get the following error -
   Unable to import module 'src/index': Error
    at Function.Module._resolveFilename (module.js:469:15)

If I move the index.js to the main root folder and change my template.yml to
Project
-index.js
-template.yml
-buildspec.yml
    Properties:
      Handler: index.helloWorld

then I am able to run the api using SAM local.
I don't want to put all my functions in the same file and I am trying to split my functions and keep them inside src folder.

Can you try with latest release - https://github.com/awslabs/aws-sam-cli/releases/tag/v0.3.0? This should be fixed AFAIK

Closing due to no response

@sharji2322
You will need to user CodeUri to define src location and handler to define lambda function file. So as per your example you will need something like this. Note values for CodeUri and Handler.
    Type: AWS::Serverless::Function
    Properties:
      Handler: index.helloWorld
      CodeUri: ./src
      Runtime: nodejs6.10
      Role:
        Fn::ImportValue:
          !Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
      Events:
        GetEvent:
          Type: Api
          Properties:
            Path: helloworld
            Method: post```


Make Autocomplete Center Map on Place Changed

Currently, it is necessary to click the "Search" button to center the map around the Autocompleted location. Instead of this, make the center change automatically when a place is selected.
Additionally, try to get the appropriate Zoom level for the place. I'm not sure how this works, but if they select "Ohio", we would want to zoom out to see all of Ohio. If they select "Hyland Software Building 3", it should zoom in so that all of Building 3 is visible, but not much else. There may be a Zoom level associated with a PlaceResult, I'm not sure.

Something like this - I believe we would want to replace the searchClick function with
autocomplete.addListener("places_changed", () => {
  // stuff here
});

This was fixed at some point, not sure when, but it's all good now!


DjvuPage.BuildImage dimension mismatches for foreground, background and mask are not compensated for

In function which constructs final image by blending data from background, foreground and mask in the case width and height of images is not exactly same AccessViolotaionException is thrown.

Issue resolved with commit f9cd2f2


Only show Hub button in navbar if enabled in config

What does this PR do?

This PR removes the big "Go to Hub Dashboard" button from the navigation bar at the top if the feature is not enabled in the configuration.
Motivation

The button is very prominently placed in the navigation bar for something that people aren't necessarily going to use. In fact, lots of people (myself included) find this button pretty annoying and too "in your face" (as evidenced by the number of comments and :+1:  reactions on #9108). That's why I decided to create this PR, which only shows the button when people actually want to use this feature.
More

[ ] Added/updated tests
[ ] Added/updated documentation

Additional Notes

As explained here: https://github.com/traefik/traefik/issues/9108#issuecomment-1170519502
We will decline your PR.

Figured this would happen, guess the "time to reconsider" hasn't come yet :smile:


Mentions - Permanent, unbreakable and text changeable mentions for users, posts etc.

Is your feature request related to a problem? Please describe.
If I have understand right the slug of a user is used to store its identity in a comment or somewhere else. Therefore the link is breakable if the user changes its name. This is inakzeptable in my opinion, because it destroys important information.
Describe the solution you'd like
Using the users ID would make this link unbreakable, even when the user changes its name. And like on Discord a users ID or even the picture should show up in the dropdown, if you type the @‚ to distinguish between users with the same name.
Describe alternatives you've considered
I can not think of an other solution at the moment …

Yeah we should use the ids as the source of trough for slugs when saved. Then we relate them while parsing the content. Like we did already with link previews.


1.0.7

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

No valid build backend found for Python recipe for package pysumreg using pip. Python recipes using pip need to explicitly specify a build backend in the host section. If your recipe has built with only pip in the host section in the past, you likely should add setuptools to the host section of your recipe.
PyPI default URL is now pypi.org, and not pypi.io. You may want to update the default source url.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found some lint.
Here's what I've got...
For recipe/meta.yaml:

requirements: host: setuptools >= 64.0 should not contain a space between relational operator and the version, i.e. setuptools >=64.0

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.