when network is set to "none", rancher ignores "hostname" parameter

I have a new service I set up using docker-compose or the UI. If I set networking to "none", but add a custom hostname, Rancher ignores the custom hostname setting and instead uses the container ID as the hostname in the host.
This is not a docker issue. I tried running a container directly using docker --net=none --hostname=myhostname and it respects the hostname, setting it correctly in /etc/hostname.

There was an error in v0.56.x with hostname that's being corrected in the next release. I will look into whether or not it's relevant to this issue.
https://github.com/rancher/rancher/issues/3414

Thanks. If you need testing/validation/etc let me know.

Verified in v0.58.0-rc2 that this is a bug.
If it's not allowed, then the UI should not allow you to select "None" for network and pick your hostname.

If it's not allowed, then the UI should not allow you to select "None" for network and pick your hostname

I don't understand the above. Network "none" should always be an option, and hostname matters and is allowed, even if network=none

@deniseschannon if the fix is needed, most likely it has to be made on python-agent side. The field gets set correctly in the API

Fixed. To test:

Create container in rancher UI

Set network mode to "none"
Set host name to something.

Verify

Container should have no IP in rancher ui
Exec into container and run hostname. Should display what was set in the rancher UI
You can also look at the docker inspect for the container and view the Hostanme field

Tested with latest build from master:
Created container in rancher UI with network mode set to "none" and host name set .
Container does not show any IP in rancher ui  and its hostname is set to hostname provided when creating the container.
Docker inspect for the container shows hostname set to hostname set.
With in the container , we see hostname being set.
``
root@testmehost:/# cat /etc/hostname
testmehost
root@testmehost:/# hostname
testmehost
root@testmehost:/#


Build fails on Mac when using openssl feature

On Mac OS, when compiling with feature openssl and even though openssl is installed and in path, the compilation fails with this error:
error: failed to run custom build command for `grpcio-sys v0.4.4`
process didn't exit successfully: `/Users/xxx/EnvService/target/release/build/grpcio-sys-1332b109695cb7c9/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=grpc_wrap.cc
cargo:rerun-if-changed=grpc
cargo:rerun-if-env-changed=GRPCIO_SYS_USE_PKG_CONFIG
cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
running: "cmake" "/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.4/grpc" "-DgRPC_INSTALL=false" "-DgRPC_BUILD_CSHARP_EXT=false" "-DgRPC_BUILD_CODEGEN=false" "-DgRPC_BENCHMARK_PROVIDER=none" "-DgRPC_SSL_PROVIDER=package" "-DEMBED_OPENSSL=false" "-DCMAKE_INSTALL_PREFIX=/Users/xxx/EnvService/target/release/build/grpcio-sys-f542edf1349bcba1/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -stdlib=libc++ -DTSI_OPENSSL_ALPN_SUPPORT=0 -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
-- Configuring incomplete, errors occurred!
See also "/Users/xxx/EnvService/target/release/build/grpcio-sys-f542edf1349bcba1/out/build/CMakeFiles/CMakeOutput.log".
See also "/Users/xxx/EnvService/target/release/build/grpcio-sys-f542edf1349bcba1/out/build/CMakeFiles/CMakeError.log".
--- stderr
CMake Warning at cmake/protobuf.cmake:48 (message):
  gRPC_PROTOBUF_PROVIDER is "module" but PROTOBUF_ROOT_DIR is wrong
Call Stack (most recent call first):
  CMakeLists.txt:140 (include)
CMake Error at /usr/local/Cellar/cmake/3.14.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.14.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.14.3/share/cmake/Modules/FindOpenSSL.cmake:413 (find_package_handle_standard_args)
  cmake/ssl.cmake:45 (find_package)
  CMakeLists.txt:141 (include)
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
build script failed, must exit now', /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.38/src/lib.rs:813:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

It appears to be fixable this way: https://stackoverflow.com/questions/16248775/cmake-not-able-to-find-openssl-library but has to be done in grpc-sys/build.rs.
I am under the impression that #262 fixes this, provided that we change the feature requirement from openssl to openssl-vendored, but that the current crates.io version does not have this released.
Also, it would require us to have different Cargo.toml versions for those developping on mac and production (since we don't want to use openssl-vendored on production servers), and that is hard to manage.
How to make the build succeed without using openssl-vendored ? Maybe we could have an environment variable that enables us to set additional options in grpc-sys/build.rs, and/or one that acts like the "openssl-vendored" feature was enabled provided that the "openssl" feature was enabled ?

@overvenus Could u plz release something like a 0.5.0-alpha.2?

PTAL @BusyJay @nrc

Have you tried to specify OPENSSL_ROOT_DIR? Did you install the related openssl headers?

It works when specifying OPENSSL_ROOT_DIR. Thank you!


Remove static variables and references from JVM codegen package

Purpose
This PR removes static variables used in the jvm codegen package. To run things in parallel, these variables and their references should be removed.
Fixes #22855

Codecov Report

Merging #22934 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #22934   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1411     1411
  Branches      219      219
=======================================
  Hits          206      206
  Misses       1189     1189
  Partials       16       16

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 efcb688...b2de1f5. Read the comment docs.


Add tooltips to config checkboxes

Add tooltips to all checkboxes located in config tab (Sorry for creating so many pull requests, I really struggled at first trying to merge to the right branch)

Your modifications to winutil.ps1 will be overwritten when compiled. These changes need to be made in inputXML.xaml instead.

Oh, I had no idea @munkk01, should I close this pull request or just do the necessary changes?


Chrome 14.0.835 don't work

Hi. Thanks for your lib! But i have Chrome 14.0.835 and it sends some headers that your server doesn't support i think...  For example there is no Origin header but Sec-Websocket-Origin and there is no Sec-WebSocket-Key1 and Sec-WebSocket-Key2, only Sec-WebSocket-Key...  Will you update your server to match the latest Websocket drafts ? Thanks!

Hi there, i found update that works in chrome 14.
http://lemmingzshadow.net/386/php-websocket-serverclient-nach-draft-hybi-10/

Thanks for your link! Maybe I'll try later


Adding backend main domain instead of subdomain

Just wondering if there's any reason why adding the backend to the main domain e.g https://example.com/remark42 would not work?
So, this would be instead of using a subdomain for the backend e.g https://remark42.example.com.
The nginx.conf would then look something like:
  location /remark42/ {
    rewrite /remark42/(.*) /$1 break;
    proxy_pass http://<IP_ADDRESS>::8080/;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }

Doing it this way would make it easier for me to set up the self-signed certificates on my Vagrant VM.

Just wondering if there's any reason why adding the backend to the main domain e.g https://example.com/remark42 would not work?

I don't see a reason. Never tried like this, but should be working

I can confirm this does indeed work.
To configure it you just have to set the remark url like:
REMARK_URL=https://example.com/comments
And the nginx config:

  location /comments/ {
    rewrite /comments/(.*) /$1 break;
    proxy_pass http://example.com:8080/;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }

The frontend URL looks like this:
   s.src = 'https://example.com/comments/web/embed.js;
And you also need to slightly modify the callback URL for the social media login API's.
Facebook Valid OAuth Redirect URIs:
https://example.com/comments/auth/facebook/callback
Google Authorized redirect URIs:
 https://example.com/comments/auth/google/callback
Github Authorised callback URL:
https://example.com/comments/auth/github/callback

I have added this info to wiki


No implementation found for method getArtwork on channel boaventura.com.devel.br.flutteraudioquery

Hi,
I'm getting No implementation found for method getArtwork on channel boaventura.com.devel.br.flutteraudioquery exception while trying to get the image for songs.
This happens in getArtwork().
return ListTile(
      leading: FutureBuilder(
          future: audioQuery.getArtwork(type: ResourceType.SONG, id: song.id),
          builder: (_, snapshot) {
            if (snapshot.data == null)
              return CircleAvatar(
                child: CircularProgressIndicator(),
              );
            return CircleAvatar(
              backgroundColor: Colors.transparent,
              backgroundImage: MemoryImage(
                snapshot.data,
              ),
            );
          }),

What is your Android Version?
getArtwork() is currently only available for Android Version >= Q


Bug: NpmAuthenticateV0 all failing with ##[error]TypeError: Cannot read properties of undefined (reading 'retrieveSecret')

Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: NpmAuthenticateV0
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment

Server - Azure Pipelines or TFS on-premises?

If using TFS on-premises, provide the version:

If using Azure Pipelines, provide the account name, team project name, build definition name/build number: orionadvisor, OAT, 474196

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name:

If using private agent, provide the OS of the machine running the agent and the agent version:  Using win2022Image = "actions_virtual-environments_win22_20220828.1" from here https://github.com/actions/runner-images

Issue Description
[Include task name(s), screenshots and any other relevant details]
Bug: NpmAuthenticateV0 all failing with ##[error]TypeError: Cannot read properties of undefined (reading 'retrieveSecret')
Seems to have started between late yesterday and this morning. It's affecting every single pipeline that uses the task.
Task logs
[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
##[debug]SAVE_NPMRC_PATH=undefined
##[debug]Agent.BuildDirectory=/agent/_work/3
##[debug]testing directory '/agent/_work/3/npmAuthenticate'
##[debug]testing directory '/agent/_work/3'
##[debug]mkdir '/agent/_work/3/npmAuthenticate'
##[debug]set SAVE_NPMRC_PATH=/agent/_work/3/npmAuthenticate/fXwpO5
##[debug]Processed: ##vso[task.setvariable variable=SAVE_NPMRC_PATH;isOutput=false;issecret=false;]/agent/_work/3/npmAuthenticate/fXwpO5
##[debug]set NPM_AUTHENTICATE_TEMP_DIRECTORY=/agent/_work/3/npmAuthenticate
##[debug]Processed: ##vso[task.setvariable variable=NPM_AUTHENTICATE_TEMP_DIRECTORY;isOutput=false;issecret=false;]/agent/_work/3/npmAuthenticate
##[warning]Resource file haven't been set, can't find loc string for key: SavingFile
##[debug]Processed: ##vso[task.issue type=warning;]Resource file haven't been set, can't find loc string for key: SavingFile
##[debug]SavingFile /agent/_work/3/s/ApplicationSecurity/src/OAT.AuthenticationService/Web/ClientApp/.npmrc
##[debug]customEndpoint=undefined
##[debug]Getting Packaging service access points
##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/orionadvisor/
##[debug]System.ServerType=Hosted
##[debug]Getting credentials for local feeds
##[debug]Unable to get packaging URIs
##[debug]Cannot read properties of undefined (reading 'retrieveSecret')
##[debug]TypeError: Cannot read properties of undefined (reading 'retrieveSecret')
at Object.getEndpointAuthorization (/agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/node_modules/azure-pipelines-tasks-packaging-common/node_modules/azure-pipelines-task-lib/task.js:449:26)
at getSystemAccessToken (/agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/node_modules/azure-pipelines-tasks-packaging-common/locationUtilities.js:111:21)
at Object. (/agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/node_modules/azure-pipelines-tasks-packaging-common/locationUtilities.js:88:29)
at Generator.next ()
at /agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/node_modules/azure-pipelines-tasks-packaging-common/locationUtilities.js:8:71
at new Promise ()
at __awaiter (/agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/node_modules/azure-pipelines-tasks-packaging-common/locationUtilities.js:4:12)
at Object.getPackagingUris (/agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/node_modules/azure-pipelines-tasks-packaging-common/locationUtilities.js:77:12)
at /agent/_work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.214.2/npmauth.js:76:56
at Generator.next ()

Facing the same issue here:

Hi @dustinbrooks and @ramosjef we've rolled out the fix for this issue. As a temporary solution you could specify a previous version of the task (0.208.1) in the pipeline https://learn.microsoft.com/en-us/azure/devops/pipelines/process/tasks?view=azure-devops&tabs=yaml#task-versions

@Roman-Shchukin I forced the version in some of our more important pipelines, but how long does it take for a change to release? Or is it just cached on the build agents? We use a scale set, so I could just force a new set to come up.

Hi @dustinbrooks and @ramosjef we've rolled out the fix for this issue. As a temporary solution you could specify a previous version of the task (0.208.1) in the pipeline https://learn.microsoft.com/en-us/azure/devops/pipelines/process/tasks?view=azure-devops&tabs=yaml#task-versions

It worked! Thanks @Roman-Shchukin

@dustinbrooks  I can't say exactly how long it will take, but definitely a few days. I can post here when the update is done.

@Roman-Shchukin Okay, here is a situation, we still have some classic pipelines, is there a way to specify a minor version in classic? I'm not finding anything, which is unfortunate.

Seems like we have a lot of pipelines working again without changes, they appear to be pulling the older version automatically now.

Facing same issue in Release pipelines.

Hi @avram19. Could you please share more details about your issue? Are your release pipelines still automatically loading 0.214.2 version?

Yes @Roman-Shchukin ; still 0.214.2 being used. For now, I have disabled the authenticate and using the "npm" task runner with our .npmrc file and it is working fine.

@avram19 and @patrick-ruzand we are working on this issue

@avram19 and @patrick-ruzand could you please try to run your release pipeline?

@Roman-Shchukin it works. Many thanks for the follow-up.

@Roman-Shchukin its working on build pipelines with version 0.212.0, but release pipelines are still using 0.214.2.

@avram19 are you using self-hosted agent?

@Roman-Shchukin No, we are using the cloud hosted agents.

@avram19 try now please, everything should work

Hi @dustinbrooks and @avram19, closing this one, feel free to ask any other questions or let us know if it's still relevant for you.


ID was missing the signalR element

I'm  Trying to create a Signal R resource using the azure provider, but even though it got created, Pulumi throws an error.
Program.cs
static Task<int> Main()
    {
        return Deployment.RunAsync(() => {

            // Create an Azure Resource Group
            var resourceGroup = new ResourceGroup("resourceGroup");

            //Creates a Signal R service
            var SignalR= new Pulumi.Azure.SignalR.Service($"Signalrfoo-dev",new Pulumi.Azure.SignalR.ServiceArgs(){
                ResourceGroupName= resourceGroup.Name,
                Sku = new Pulumi.Azure.SignalR.Inputs.ServiceSkuArgs{
                    Capacity = 1,
                    Name = "Free_F1",
                }
            });

            return new Dictionary<string, object?>
            {
                {"SignalR:ConnectionString", SignalR.PrimaryConnectionString}
            };
        });
    }

Pulumi Version:

v1.11.1

Expected Behaviour:

Pulumi should not report any error and should return the connection string as an output as stated on the code

Actual Behaviour:

Pulumi creates the resource on azure, but returns this error:
* creating urn:pulumi:dev::Test-Pulumi-with-Git::azure:signalr/service:Service::signalrfoo-dev: ID was missing the signalR element

Steps to reproduce:

Create new Pulumi Project with azure-csharp template
Paste the code or create a Signal R Service
Run the command pulumi up and confirm or pulumi up --yes

Hi @dimm91
I ran your code and got
Do you want to perform this update? yes
Updating (dev):
     Type                           Name            Status
     pulumi:pulumi:Stack            azure-cs-dev
 +   ├─ azure:signalr:Service       Signalrfoo-dev  created

Outputs:
  + SignalR:ConnectionString: "Endpoint=https://signalrfoo-dev673ffb64.service.signalr.net;AccessKey=<redacted>=;Version=1.0;"

Resources:
    + 1 created
    1 changes. 2 unchanged

Duration: 4m19s

Are you sure this is the exact code that you used?

Hi @mikhailshilkov, I did and, the result was the same mentioned earlier, pretty weird that we have different results.
I'm attaching an image of the result.

Can be that we are using different versions?

I'm on
<ItemGroup>
    <PackageReference Include="Pulumi.Azure" Version="1.12.0-preview" />
  </ItemGroup>

You?

I'm on

  <ItemGroup>
    <PackageReference Include="Pulumi.Azure" Version="1.14.0-preview" />
  </ItemGroup>

A-ha... reproduced with 1.14! This appears to be this issue https://github.com/terraform-providers/terraform-provider-azurerm/issues/5715
It's going to be fixed in 2.0 of the provider (to be released soon).


Add the Castos Web Player to the referrers list

Hey @johnspurlock,
Thanks for your incredible work on this list.
I just added (hopefully correctly) the Castos Web Player to the referrers.
Also please let me know if there's anything I can do to help out with this more generally. I'm the engineering lead at Castos and this resource has been really helpful.

Hi Jesse, can you remove the pathname from the pattern?  Most browsers/sites just send the origin down in the referer header these days.
ie remove the "(player|playlist-player)/" bit at the end

👍 will update tomorrow.

@johnspurlock
Updated, thanks!

thanks!


When the state is changed, I would like to close and reconnect using the new state. How do I do that?

Hello,
I would like to close a socket connection when my this.state.chartSymbol changes, and reconnect with a new WS url using the new this.state.chartSymbol. The image attached is what I have so far, I know its wrong, but I dont know why.
Thank you

Hey,
When you call reconnect (which is a function btw), it reconnects to the existing / current URL. You need to recreate a new ws entirely by calling binanceSocket (or extracting the Sockette portion to a helper function).

binanceSocket is initially called in componentWillMount. Even when symbolChanger calls binanceSocket(), it maintains the old connection and the new connection. How do I stop the old connection.

This should do the trick for you 👍
Closing as it's not related to Sockette anymore, but lemme know how it goes~!
class Foobar extends Component {
	state = {
		symbol: ''
	};

	binanceSocket() {
		this.ws = new Sockette(`ws://.../ws/${this.state.symbol}@kline`, {
			// ...
		});
	}

	componentWillMount() {
		this.binanceSocket();
		// now `this.ws` exists
	}

	// You can also do this in:
	// - componentWillReceiveProps
	// - // etc, depends on your app
	componentDidUpdate(_, prev) {
		let now = this.state;
		if (prev.symbol !== now.symbol) {
			// We now have a NEW symbol; update the socket
			this.ws.close(); // graceful shutdown of old socket
			this.binanceSocket(); // NEW websocket is now created
		}
	}
}


Refactor modify address modal

Refactor address modal so that the validation logic is happening in background
Refactor page variable to also contain page's state when the state is important
fix https://github.com/DarkFlorist/TheInterceptor/issues/710

@coderabbitai review


Error using dylib instead of staticlib: "found no target"

I made a small project with a CMakeLists.txt file like this:
cmake_minimum_required(VERSION 3.19)
project(MyCoolProject LANGUAGES CXX)

include(FetchContent)

FetchContent_Declare(
    Corrosion
    GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
    GIT_TAG v0.2.1 # Optionally specify a commit hash, version tag or branch here
)

FetchContent_MakeAvailable(Corrosion)

corrosion_import_crate(MANIFEST_PATH ../test_lib/Cargo.toml)
include_directories("../test_lib/include")

add_executable(cpp-exe main.cpp)
target_link_libraries(cpp-exe PUBLIC test_lib)

In the Cargo.toml for test_lib, I have
[lib]
name = "test_lib"
crate_type = ["staticlib"]

When I run this on Windows from a VS Console, it builds as expected and runs:
mkdir build ; cd build
cmake -G "NMake Makefiles" ..
nmake

However, if I change the crate_type to "dylib", I get the following error from the cmake command:
CMake Error at build/_deps/corrosion-src/cmake/CorrosionGenerator.cmake:474 (message):
  found no target
Call Stack (most recent call first):
  build/_deps/corrosion-src/cmake/Corrosion.cmake:491 (_generator_add_cargo_targets)
  CMakeLists.txt:14 (corrosion_import_crate)

I have tried modifying the cmake command to cmake -G "NMake Makefiles" -DBUILD_SHARED_LIBS=ON .., but I get the same error.

You need to use "cdylib". dylib only works when linking with other rust crates.


The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions.

Describe the bug

I have a .Net8 Blazor Wasm website that I am trying to deploy to AWS from the Visual Studio "Publish to AWS" command.  During the deployment it gets a failure while running the Cloudformation Stack.
The Error is "Stack Deployments Failed: Error: The stack named XXXWebsite failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: ac2f1dd6-cf04-43f8-b18a-5e154cd48bfb)" (RequestToken: efec29a8-e202-1437-3835-9f2fe724910a, HandlerErrorCode: InvalidRequest)"
To Reproduce
Steps to reproduce the behavior

Create a new Blazor Wasm project in Visual Studio 2022
Build it and see that it runs locally
right click on the project and click "Publish to AWS ..."
During the deployment it will fail and rollback

Expected behavior

I expect the deployment to complete without errors
Screenshots

Toolkit Logs

Development System (please complete the following information):

Windows Version: Windows 11
Visual Studio Version: VS2022
AWS Toolkit for Visual Studio Version: <IP_ADDRESS>
SAM version: 1.110.0

Additional context

The website template.json file in the folder ".aws-dotnet-deploy/projects" recreates a *template.json file for the deploy and it has the nodejs version of 14.0x.  I believe the aws codegen is codegenning with an old value of nodejs that is no longer supported by AWS and so the cloudformation stack fails when trying to create the nodejs Lambda function  Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler

Here is the failing cloudformation stack template that shows its is trying to use nodejs14.x which causes the failure
blazorwasmCFTemplate.txt

If I kill a manual "dotnet aws deploy" after it has uploaded the files to S3 and before it tries to run the CF stack, and then

find the json file for the CloudFormation and download it, modify the nodesjs14.x to be nodejs16.x
re-upload this to S3
create a manual CF Stack using this updated file
run the CF stack

then it works.
NB. I tried using nodejs20.x and this failed.

I had the same problem。

This issue is also present in my case.
@alc-aardvark you seemed to have found an interesting workaround, but this should ideally work out of the box, right?

Thanks for reaching out. Work is currently in progress to update the Deploy Tool's Blazor recipe to use a newer CDK version that relies on Nodejs20.x: https://github.com/aws/aws-dotnet-deploy/pull/818. When this improvement becomes available in a future release of the deploy tool, we'll be able to onboard it to the Toolkit's Publish to AWS experience.

what is the accepted solution for this issue

We are not aware of a workaround for this issue today. As mentioned, we are tracking work to address this here: https://github.com/aws/aws-dotnet-deploy/pull/818 and will update the toolkit once it is fixed.

looks like an update is available in v 1.19.13
do the following from a command prompt to update

dotnet tool update -g aws.deploy.tools

I've re-opened this issue until we have the same deploy tool fix available within the Toolkit

We've recently released version <IP_ADDRESS> of the toolkit and you can now deploy Blazor projects without this issue.


Add shield badges to README.md

To improve communicating the good design of this repo, shield badge images should be added from https://shields.io. See the mypy repository's README.md for a good example.

Happy to add Python version, Ruff, MyPy, Docs Passing and Py-Cord version. Would you want anything else

Happy to add Python version, Ruff, MyPy, Docs Passing and Py-Cord version. Would you want anything else

Maybe the current project version? (defined in pyproject.toml), there was a project I saw that had one to emphasise that contributions are welcomed.

Got a version here: https://github.com/awsloth/TeX-Bot-Py-V2/blob/78-shield-badges/README.md
Should I reorder the badges or change the colour of any?

Oh yes I forgot to add the ruff badge. Should I make the python version static and we can then update it when python version goes up as this won't happen too often, or try to find a workaround to show the version in pyproject.toml.

Static sounds best for the python version as we'll manually need to update things for the new version, and updating this icon can be part of that pull request. Hopefully everything will still be 3.11 compatible, so we can do one of the multipart shields with 3.11 & 3.12.


About the dataset

Dear Author,
Could you please share the datasets used in your research "Traffic Control Gesture Recognition for Autonomous Vehicles." And I would like to ask could you please give me your new email. Thank you very much.
Best regards

Dear @abcLeoLee ,
thank you for the message. For dataset access, please follow the guidlines in the README, thank you!
Best regards
Julian

Closed.


Possible infinite loop in send_over_network()

Hi,
I've found a possible infinite loop in send_over_network().
  while(1) {
    int status = kill(child_pid, 0);
    if ((status != 0) && (errno == ESRCH)) break;
  }

The kill function is invoked with the signal 0 but I ran into a case where this was the first time kill was invoked, leading to an infinite loop and therefore a timeout. I was able to fix it by replacing 0 with SIGTERM.
The test was conducted using Open5GS, open5gs-nrfd to be more precise.
Noticed Behavior
$ ./aflnet/afl-fuzz -i in -o out tcp://<IP_ADDRESS>/8080 -P HTTP -D 10000 -q 1 -m 500 -t 20000+ open5gs/install/bin/open5gs-nrfd
...
[*] Spinning up the for server...
[+] All right - fork server is up.
[!] WARNING: Test case results in a timeout (skipping)

[-] PROGRAM ABORT : All test cases time out, giving up!
                      Location : perform_dry_run(), afl-fuzz.c:3768

AFLNet compilation
LLVM_CONFIG=llvm-config-12 CC=clang-12 make clean all

Opent5GS compilation
CC=/path/to/aflnet/afl-gcc meson build --prefix=`pwd`/install
ninja -C build

Environment
Ubuntu 22.04 (x86_64)

Thans @r4gus . I wrote this piece of code quite long time ago and according to the comment I added, it seems to me that using 0 as the argument is correct because "The kill() function shall send a signal to a process or a group of processes specified by pid. The signal to be sent is specified by sig and is either one from the list given in <signal. h> or 0. If sig is 0 (the null signal), error checking is performed but no signal is actually sent." In this case, we want to wait for a while without terminating the target. But I agree with you that it may lead to timeout.

But the only way ESRCH ("The target process or process group does not exist.") is true in the given case, if the process being fuzzed terminates by itself, or am I missing something.


Removing deprecated JFrog's java jdk and replace it with Adoptium's.

see issue https://github.com/flutter/flutter/issues/132470
Removing deprecated JFrog's java jdk and replace it with Adoptium's.
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

Closing this PR since it is empty.


Lazyload background image before Destroy

Hey @nolimits4web,
I'm running a destroy for mobile situation.
Is there a way to sneak in something like
mySwiper.lazy.load(); or mySwiper.lazy.loadInSlide(index); for all slides
before running
if (mySwiper !== undefined) mySwiper.destroy(true, true);
(function() {
  "use strict";

  // breakpoint where swiper will be destroyed
  const breakpoint = window.matchMedia("(max-width:992px)");

  // keep track of swiper instances to destroy later
  let mySwiper;

  const breakpointChecker = function() {
    if (breakpoint.matches === true) {

      // clean up old instances and inline styles when available
      if (mySwiper !== undefined) mySwiper.destroy(true, true);

      // or/and do nothing
      return;

    } else if (breakpoint.matches === false) {
      // fire large viewport version of swiper
      return enableSwiper();
    }
  };

  const enableSwiper = function() {
    mySwiper = new Swiper(".swiper-container", {
      lazy: true,
      loop: true
    });
  };

  // keep an eye on viewport size changes
  breakpoint.addListener(breakpointChecker);

  // kickstart
  breakpointChecker();
})();

Sorry, but no way to keep loading it after destroying since it can produce memory leaks and other unwanted side effects. Destroy means destroy, no more Swiper functionality can happen after destroying

@nolimits4web
What I'm trying to do is basically have a slideshow for desktop and each slide below each other on mobile. Is there a way to approach this?


chore(Python) : add Prime Number Checker

PR Checklist:

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is on refer on the language README.md file
[x] My addition does not have a spelling problem
[x] My submission has a proper and user-friendly description of the algorithm
[x] My submission has the time complexity of the algorithm
[x] My submission has sample input-output of the program (NOT FOR PYTHON)

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR

Other information:

Hi! @Arsenic-ATG, please review.


Ubuntu on raspberry pi needs linux-modules-extra-raspi Package

Hi,
Ubuntu on raspberry requires the package: linux-modules-extra-raspi
else the node will fail to get server certs:
 Waiting to retrieve agent configuration; server is not ready: https://<IP_ADDRESS>:6444/v1-k3s/serving-kubelet.crt: 503 Service Unavailable
INFO[0005] Waiting to retrieve agent configuration; server is not ready: failed to get CA certs: Get "https://<IP_ADDRESS>:6444/cacerts": EOF
INFO[0010] Waiting to retrieve agent configuration; server is not ready: https://<IP_ADDRESS>:6444/v1-k3s/serving-kubelet.crt: 503 Service Unavailable
INFO[0015] Waiting to retrieve agent configuration; server is not ready: https://<IP_ADDRESS>:6444/v1-k3s/serving-kubelet.crt: 503 Service Unavailable

So the proposed change would be to include the package linux-modules-extra-raspi in the playbook:
cat roles/raspberrypi/tasks/prereq/Ubuntu.yml
---
- name: install linux-modules-extra-raspi
  ansible.builtin.apt:
    name: linux-modules-extra-raspi
    update-cache: yes

Thanks and Kind regards,
Josef

Resolve with https://github.com/k3s-io/k3s-ansible/pull/204


hit cache isn't reset Session.statement

When I use cache to get and find operation, if hit the data, the statement isn't reset, and then I can't use this session for other operations.
I read the source code, when not hit data, xorm would call "session.queryRows", and this function call the "resetStatement" function to reset the statement.

@xux1217 I think #1375 fixed this?

yep, the bug has fixed, thanks.


Give the context function the location as an argument in the browser

In the browser createApp function, if a context generating function is passed, it will be given the new location descriptor as an argument whenever history.listen detects a change.
This mirrors the passing of the Node request object into the context generating function on the server side.
This means we can create context generating functions on the client-side (based on the location object) and the server-side (based on the Node request). These functions can perform the task of normalising the context presented to the application.
As an example use case, this allows integration with react-router-form (an isomorphic/universal form component). This form component handles submitting of the form in two ways:

When Javascript is not available, it will submit the form using normal HTTP with the following forming part of the HTTP request sent by the browser (as seen by Node):

request.method - the forms HTTP method
request.body - the forms content

When Javascript is available, it will change the location using history.push filling the location.state with the properties:

location.state.method - the forms HTTP method
location.state.body - the forms content

We can then make context normalising functions on the client and server to give a consistent view of the request to the application:
let client_context = function(loc) {
    return {
        request: {
            method: (loc.state === null) ? 'GET' : loc.state.method,
            body:   (loc.state === null) ? {}    : loc.state.body
        }
    }
}

let server_context = function(req) {
    return {
        request: {
            method: req.method || 'GET',
            body: req.body || {}
        }
    }
}

I think this change is general enough to be useful for a variety of other use cases. And presents a consistent interface (presenting request on the server-side, and it's analogue location on the client-side).
Thanks,
Dan

(The failing build seems to be unrelated - giving the same errors as Build #13)


[WIP] @orta => Credit Card Things

This deals with credit card things. Mainly the transition from Balanced to Stripe for payment processing. Also allows users to manually enter their expiry date year with two digits.
I'd like to add some tests, but would love feedback.
Fixes #422.
Related to #303.
Related to #333.

Ha, just noticed this was merged. I'm still writing tests!


Fix undefined user and enable atomic flake installs

A user running ansible-playbook playbook.yml -i inventory --ask-become-pass will encounter the error ansible_user is undefined. This PR changes ansible_user to a $USER lookup.
Additionally, the single quotes inside double quotes for the Nix feature flags makes them unreadable by Nix: they will be ignored given any Nix invocation. This also removes those single quotes.

I've also pushed a fix to #75, expanding the scope of this PR.

BTW, I just got an email confirming the CLA. Thanks! :+1:

@worldofgeese it seems that I don't have permission to push to your branch (unless I am missing something), could you please enable the option to allow maintainers to make edits?

I sent an invite to be a collaborator which should allow access?

I sent an invite to be a collaborator which should allow access?

Yep, got it, thanks.
Would you mind if I rewrote the git history and force-pushed to this branch? This would collapse all of my fixups and make the branch a bit easier to review.

Go for it! My (git repository) house is your house ☺

I launched a brand new Multipass Ubuntu 20.04.4 LTS VM, installed Ansible then ran
ansible-galaxy install -r requirements.yml --force
ansible-playbook playbook.yml -i inventory --ask-become-pass -e '{"nix_flakes": true}'

in from a freshly cloned https://github.com/worldofgeese/provision-ubuntu-on-wsl2.
I can confirm the run completes with no complaints! One remaining annoyance is that the user's shell must be exited after running the playbook before Nix is available on the user's command line.
Would it be useful to source if [ -e {{ nix_user_details.home }}/.nix-profile/etc/profile.d/nix.sh ]; then . /home/{{ nix_user_details.home }}/.nix-profile/etc/profile.d/nix.sh; fi at the end of the tasks block?

Yeah, unfortunately, I don't think there's any way to get around the fact that the user must restart their shell. However, we can at least document this, which I have done in a6e6b39.
@worldofgeese I'm going to go ahead and merge this PR. Does this mean that we can also close #75?

Ok, I've just merged #76, which was basically this branch but with a different origin, so this PR is no longer needed. Version 0.0.3 of this role was published a few minutes ago. Thanks a lot @worldofgeese for your contribution! :tada:


KeyError: 'answer'

File "/root/.local/lib/python3.12/site-packages/vlmeval/dataset/image_mcq.py", line 181, in evaluate
answer_map = {i: c for i, c in zip(meta['index'], meta['answer'])}
~~~~^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/frame.py", line 4090, in getitem
indexer = self.columns.get_loc(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc
raise KeyError(key) from err
KeyError: 'answer'
Hello, how to resolve this issue when eval on MME

I don't know why either, do u know what could be the reason throws key error? I deleted  previous download mme file still got same error, I do not have full check of vlmevalkit code, hard to investigate where (which) would be the reason for this but I got keep getting it.

I am uncertain of the cause as well. Do you have any knowledge regarding the reason that leads to a key error? I have deleted the previous downloaded mme file but still encounter the same error. I have not conducted a comprehensive inspection of the vlmevalkit code, making it challenging to investigate where or which element could be the cause of this, yet I continue to encounter it.

There are two things unusual according to the log

MME is recognized as ImageMCQDataset, but actually it belongs to the ImageYORNDataset.
The answer column is in the tsv file, but it says the answer column is missing.

Once again, I would like to emphasize that all data files used in VLMEvalKit should be automatically downloaded (for example, links of MME is in https://github.com/open-compass/VLMEvalKit/blob/main/vlmeval/dataset/image_yorn.py). Please make sure you are using data files downloaded from this link.

Yes, the MME are download automatically, so that the reason could possiably by recognized as ImageMCQDataset.
However, isn't this done by automatically in VLMEvalkit? I didn't do anything outside VLMEvalkit, how to make sure it was correctly treated?

Yes, the MME are download automatically, so that the reason could possiably by recognized as ImageMCQDataset.
However, isn't this done by automatically in VLMEvalkit? I didn't do anything outside VLMEvalkit, how to make sure it was correctly treated?

Would you please provide the exact command that triggers this error? Let me first try to reproduce it

I am not sure it can be reproduced or not. This is command:
eval_datasets='MMBench_DEV_CN MMStar ChartQA_TEST Q-Bench1_VAL MMMU_VAL POPE HallusionBench RealWorldQA MMBench_TEST_EN MMBench_TEST_CN MMBench_TEST_EN_V11 MMBench_TEST_CN_V11 MME'

 torchrun --nproc-per-node=$num_gpus --master-port=5699 run_vlmevalkit2.py --data $eval_datasets  --model llava_qwen_7b_lora --verbose

this always fail at MME so I put it at last. Everything else just fine.

def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('--data', type=str, nargs='+', required=True)
    parser.add_argument('--model', type=str, nargs='+', required=True)
    # Args that only apply to Video Dataset
    parser.add_argument('--nframe', type=int, default=8)
    parser.add_argument('--pack', action='store_true')
    parser.add_argument('--work-dir', type=str, default='./eval_results/', help='select the output directory')
    parser.add_argument('--mode', type=str, default='all', choices=['all', 'infer'])
    parser.add_argument('--nproc', type=int, default=4, help='Parallel API calling')
    parser.add_argument('--retry', type=int, default=None, help='retry numbers for API VLMs')
    parser.add_argument('--judge', type=str, default=None)
    parser.add_argument('--ignore', action='store_true', help='Ignore failed indices. ')
    parser.add_argument('--verbose', action='store_true')
    parser.add_argument('--rerun', action='store_true')

    args = parser.parse_args()
    return args

def main():
    logger = get_logger('RUN')

    args = parse_args()
    assert len(args.data), '--data should be a list of data files'

    if args.retry is not None:
        for k, v in supported_VLM.items():
            if hasattr(v, 'keywords') and 'retry' in v.keywords:
                v.keywords['retry'] = args.retry
                supported_VLM[k] = v
            if hasattr(v, 'keywords') and 'verbose' in v.keywords:
                v.keywords['verbose'] = args.verbose
                supported_VLM[k] = v

    rank, world_size = get_rank_and_world_size()
    if world_size > 1:
        torch.cuda.set_device(rank)
        dist.init_process_group(backend='nccl', timeout=datetime.timedelta(seconds=10800))

    for _, model_name in enumerate(args.model):
        model = None

        pred_root = osp.join(args.work_dir, model_name)
        os.makedirs(pred_root, exist_ok=True)

        for _, dataset_name in enumerate(args.data):
            dataset_kwargs = {}
            if dataset_name == 'MMBench-Video':
                dataset_kwargs['pack'] = args.pack

            # If distributed, first build the dataset on the main process for doing preparation works
            if world_size > 1:
                dataset = build_dataset(dataset_name, **dataset_kwargs) if rank == 0 else None
                dist.barrier()

            dataset = build_dataset(dataset_name, **dataset_kwargs)
            if dataset is None:
                logger.error(f'Dataset {dataset_name} is not valid,  will be skipped. ')
                continue

            result_file = f'{pred_root}/{model_name}_{dataset_name}.xlsx'
            if dataset_name in ['MMBench-Video']:
                packstr = 'pack' if args.pack else 'nopack'
                result_file = f'{pred_root}/{model_name}_{dataset_name}_{args.nframe}frame_{packstr}.xlsx'

            if osp.exists(result_file) and args.rerun:
                for keyword in ['openai', 'gpt', 'auxmatch']:
                    os.system(f'rm {pred_root}/{model_name}_{dataset_name}_{keyword}*')

            if model is None:
                model = model_name  # which is only a name

            # Perform the Inference
            if dataset_name == 'MMBench-Video':
                model = infer_data_job_video(
                    model,
                    work_dir=pred_root,
                    model_name=model_name,
                    dataset=dataset,
                    nframe=args.nframe,
                    pack=args.pack,
                    verbose=args.verbose,
                    api_nproc=args.nproc)
            else:
                model = infer_data_job(
                    model,
                    work_dir=pred_root,
                    model_name=model_name,
                    dataset=dataset,
                    verbose=args.verbose,
                    api_nproc=args.nproc,
                    ignore_failed=args.ignore)

            # Set the judge kwargs first before evaluation or dumping
            judge_kwargs = {
                'nproc': args.nproc,
                'verbose': args.verbose,
            }
            if args.retry is not None:
                judge_kwargs['retry'] = args.retry
            if args.judge is not None:
                judge_kwargs['model'] = args.judge
            else:
                if dataset.TYPE in ['MCQ', 'Y/N']:
                    judge_kwargs['model'] = 'chatgpt-0125'
                elif listinstr(['MMVet', 'MathVista', 'LLaVABench', 'MMBench-Video'], dataset_name):
                    judge_kwargs['model'] = 'gpt-4-turbo'
            if 'OPENAI_API_KEY_JUDGE' in os.environ and len(os.environ['OPENAI_API_KEY_JUDGE']):
                judge_kwargs['key'] = os.environ['OPENAI_API_KEY_JUDGE']
            if 'OPENAI_API_BASE_JUDGE' in os.environ and len(os.environ['OPENAI_API_BASE_JUDGE']):
                judge_kwargs['api_base'] = os.environ['OPENAI_API_BASE_JUDGE']

            if rank == 0:
                if dataset_name in ['MMMU_TEST']:
                    result_json = MMMU_result_transfer(result_file)
                    logger.info(f'Transfer MMMU_TEST result to json for official evaluation, json file saved in {result_json}')  # noqa: E501
                    continue
                elif 'MMT-Bench_ALL' in dataset_name:
                    submission_file = MMTBench_result_transfer(result_file, **judge_kwargs)
                    logger.info(f'Extract options from prediction of MMT-Bench FULL split for official evaluation (https://eval.ai/web/challenges/challenge-page/2328/overview), submission file saved in {submission_file}')  # noqa: E501
                    continue
                elif 'MLLMGuard_DS' in dataset_name:
                    logger.info('The evaluation of MLLMGuard_DS is not supported yet. ')  # noqa: E501
                    continue
                elif 'AesBench_TEST' == dataset_name:
                    logger.info(f'The results are saved in {result_file}. Please send it to the AesBench Team via<EMAIL_ADDRESS> # noqa: E501
                    continue

            if dataset_name in [
                'MMBench_TEST_CN', 'MMBench_TEST_EN', 'MMBench', 'MMBench_CN'
                'MMBench_TEST_CN_V11', 'MMBench_TEST_EN_V11', 'MMBench_V11', 'MMBench_CN_V11'
            ]:
                if not MMBenchOfficialServer(dataset_name):
                    logger.error(
                        f'Can not evaluate {dataset_name} on non-official servers, '
                        'will skip the evaluation. '
                    )
                    continue

            if rank == 0 and args.mode == 'all':
                eval_results = dataset.evaluate(result_file, **judge_kwargs)
                if eval_results is not None:
                    assert isinstance(eval_results, dict) or isinstance(eval_results, pd.DataFrame)
                    logger.info(f'The evaluation of model {model_name} x dataset {dataset_name} has finished! ')
                    logger.info('Evaluation Results:')
                if isinstance(eval_results, dict):
                    logger.info('\n' + json.dumps(eval_results, indent=4))
                elif isinstance(eval_results, pd.DataFrame):
                    if len(eval_results) < len(eval_results.columns):
                        eval_results = eval_results.T
                    logger.info('\n' + tabulate(eval_results))

if __name__ == '__main__':
    load_env()
    main()

the script just copy from git repo.
Can u identify is there anything wrong?
the tsv file I checked, it's looks normal, with answer field in header

@lucasjinreal Would you please try to reproduce this bug with the latest main branch of VLMEvalKit (with any officially supported VLM (that is recommended) or you can simply add the VLM you want to evaluate based on the latest main branch). I still can't not figure out what is the problem based on the provided log.
BTW, the log in your first comment seems not the full error log. Providing the full error log might also help.

Am using the latest, in fact, I tried all versions start from a certrain one, the error appears.

If any people can reproduce this error, please let me know. I can not reproduce the error with any officially supported command  / script, please let me know.

let me rerun this with a fresh enviroment.

Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc
    return self._engine.get_loc(casted_key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc
  File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'answer'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/data/mllm/run_vlmevalkit2.py", line 226, in <module>
    main()
  File "/data/mllm/run_vlmevalkit2.py", line 211, in main
    eval_results = dataset.evaluate(result_file, **judge_kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.12/site-packages/vlmeval/dataset/image_mcq.py", line 181, in evaluate
    answer_map = {i: c for i, c in zip(meta['index'], meta['answer'])}
                                                      ~~~~^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/frame.py", line 4090, in __getitem__
    indexer = self.columns.get_loc(key)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc
    raise KeyError(key) from err
KeyError: 'answer'

Got a simillar error:
>>> import vlmeval
vlmeval.Did not detect the .env file at /root/.local/lib/python3.12/site-packages/.env, failed to load.
>>> vlmeval.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'vlmeval' has no attribute '__version__'
>>> vlmeval.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'vlmeval' has no attribute '__version__'

Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc
    return self._engine.get_loc(casted_key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc
  File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'answer'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/data/mllm/run_vlmevalkit2.py", line 226, in <module>
    main()
  File "/data/mllm/run_vlmevalkit2.py", line 211, in main
    eval_results = dataset.evaluate(result_file, **judge_kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.12/site-packages/vlmeval/dataset/image_mcq.py", line 181, in evaluate
    answer_map = {i: c for i, c in zip(meta['index'], meta['answer'])}
                                                      ~~~~^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/frame.py", line 4090, in __getitem__
    indexer = self.columns.get_loc(key)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc
    raise KeyError(key) from err
KeyError: 'answer'

Got a simillar error:
>>> import vlmeval
vlmeval.Did not detect the .env file at /root/.local/lib/python3.12/site-packages/.env, failed to load.
>>> vlmeval.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'vlmeval' has no attribute '__version__'
>>> vlmeval.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'vlmeval' has no attribute '__version__'

Please tell me the exact command that caused the error so I can reproduce it.

I am runing MME as well. can u tell what could be going wrong from the log?
These error messages is very confusing to me, it doesn't tells what could be wrong, but definitly related to a certain dataset.
the command is:
torchrun --nproc-per-node=$num_gpus --master-port 2344 run_vlmevalkit2.py --data $eval_datasets  --model minigemini_qwen_7b --verbose
the script used was exactly same from git repo

I am runing MME as well. can u tell what could be going wrong from the log?
These error messages is very confusing to me, it doesn't tells what could be wrong, but definitly related to a certain dataset.
the command is:
torchrun --nproc-per-node=$num_gpus --master-port 2344 run_vlmevalkit2.py --data $eval_datasets --model minigemini_qwen_7b --verbose
the script used was exactly same from git repo
eval_datasets='MMBench_DEV_CN MMStar ChartQA_TEST Q-Bench1_VAL MMMU_VAL POPE HallusionBench RealWorldQA MMBench_TEST_EN MMBench_TEST_CN MMBench_TEST_EN_V11 MMBench_TEST_CN_V11 MME'
all the data produced result, except MME.

@MonolithFoundation
I cannot debug with run_vlmevalkit2.py and minigemini_qwen_7b
cuz they are not an officially provided script and models.  Would you please tell me if you can reproduce the error with the official run.py and an officially supported VLM?

Hi, the script is copied from github repo of https://github.com/open-compass/VLMEvalKit/blob/main/run.py without any modification.

Hi, the script is copied from github repo of https://github.com/open-compass/VLMEvalKit/blob/main/run.py without any modification. can u please don't use so large title to emphisis?  Just dicussion not blaim your code.

I just think I really need to emphasize it to save communications. For example, I also emphasized that I need an officially supported VLM to debug with, please provide me a name.

@kennymckormick Hi, the model used is this:

class LLaVA(BaseModel):

    INSTALL_REQ = True

    def __init__(self,
                 model_pth='liuhaotian/llava_v1.5_7b',
                 **kwargs):
        try:
            from llava.model.builder import load_pretrained_model
            from llava.mm_utils import get_model_name_from_path
        except Exception as e:
            import traceback
            trackback.print_exec()
            warnings.warn(f'Please install llava before using LLaVA {e}')
            sys.exit(-1)

        warnings.warn('Please install the latest version of llava from github before you evaluate the LLaVA model. ')
        assert osp.exists(model_pth) or splitlen(model_pth) == 2

        if model_pth == 'Lin-Chen/ShareGPT4V-7B':
            model_name = 'llava-v1.5-7b'
        elif model_pth == 'Lin-Chen/ShareGPT4V-13B':
            model_name = 'llava-v1.5-13b'
        else:
            model_name = get_model_name_from_path(model_pth)
        print(f'------> model_name: {model_name}')
        try:
            self.tokenizer, self.model, self.image_processor, self.context_len = load_pretrained_model(
                model_path=model_pth,
                model_base=None,
                model_name=model_name,
                device='cpu',
                device_map='cpu'
            )
            if self.tokenizer.pad_token_id == None:
                self.tokenizer.pad_token_id = self.tokenizer.eos_token_id
        except Exception as e:
            if 'ShareGPT4V' in model_pth:
                import llava
                warnings.warn(
                    'Please manually remove the encoder type check in '
                    f'{llava.__path__[0]}/model/multimodal_encoder/builder.py '
                    'Line 8 to use the ShareGPT4V model. ')
            else:
                warnings.warn(f'Unknown error when loading LLaVA model. {e}')
            exit(-1)

        self.model = self.model.cuda()
        # self.conv_mode = 'llava_v1'
        self.conv_mode = 'qwen'
        if 'llama-3' in model_pth or 'llama3' in model_pth:
            self.conv_mode = 'llama3'
        elif 'mistral' in model_pth.lower():
            self.conv_mode = 'mistral'

        kwargs_default = dict(do_sample=False, temperature=0, max_new_tokens=512, top_p=None, num_beams=1)
        kwargs_default.update(kwargs)
        self.kwargs = kwargs_default
        warnings.warn(f'Following kwargs received: {self.kwargs}, will use as generation config. ')

    def use_custom_prompt(self, dataset):
        assert dataset is not None
        if DATASET_TYPE(dataset) == 'MCQ':
            return True
        # return False
        return True

    def build_prompt(self, line, dataset=None):
        assert self.use_custom_prompt(dataset)
        assert dataset is None or isinstance(dataset, str)
        tgt_path = self.dump_image(line, dataset)

        question = line['question']
        hint = line['hint'] if ('hint' in line and not pd.isna(line['hint'])) else None
        if hint is not None:
            question = hint + '\n' + question

        options = {
            cand: line[cand]
            for cand in string.ascii_uppercase
            if cand in line and not pd.isna(line[cand])
        }
        for key, item in options.items():
            question += f'\n{key}. {item}'
        prompt = question

        if len(options):
            prompt += (
                '\n请直接回答选项字母。' if cn_string(prompt) else
                "\nAnswer with the option's letter from the given choices directly."
            )
        else:
            prompt += '\n请直接回答问题。' if cn_string(prompt) else '\nAnswer the question directly.'

        message = [dict(type='text', value=prompt)]
        message.extend([dict(type='image', value=s) for s in tgt_path])
        return message

    def generate_inner(self, message, dataset=None):
        from llava.mm_utils import process_images, tokenizer_image_token, KeywordsStoppingCriteria
        from llava.constants import (
            IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN)
        from llava.conversation import conv_templates, SeparatorStyle
        prompt, image_path = self.message_to_promptimg(message)
        image = Image.open(image_path).convert('RGB')
        args = abstractproperty()
        args.image_aspect_ratio = 'pad'
        image_tensor = process_images([image], self.image_processor, args).to('cuda', dtype=torch.float16)
        if self.model.config.mm_use_im_start_end:
            inp = DEFAULT_IM_START_TOKEN + DEFAULT_IMAGE_TOKEN + DEFAULT_IM_END_TOKEN + '\n' + prompt
        else:
            inp = DEFAULT_IMAGE_TOKEN + '\n' + prompt

        conv = conv_templates[self.conv_mode].copy()
        conv.append_message(conv.roles[0], inp)
        conv.append_message(conv.roles[1], None)
        prompt = conv.get_prompt()

        input_ids = tokenizer_image_token(
            prompt, self.tokenizer, IMAGE_TOKEN_INDEX, return_tensors='pt').unsqueeze(0).cuda()
        stop_str = conv.sep if conv.sep_style != SeparatorStyle.TWO else conv.sep2
        keywords = [stop_str]
        stopping_criteria = KeywordsStoppingCriteria(keywords, self.tokenizer, input_ids)
        with torch.inference_mode():
            output_ids = self.model.generate(
                # input_ids=input_ids, pixel_values=image_tensor, stopping_criteria=[stopping_criteria], **self.kwargs)
                input_ids, image_tensor, stopping_criteria=[stopping_criteria], **self.kwargs)

        output = self.tokenizer.batch_decode(output_ids, skip_special_tokens=True)[0].strip()
        return output

I opine that it is scarcely similar to Llava. I merely employed a name available on my end.
Could you have a look to determine if there is anything incorrect?
Please refrain from using head lines; you can employ bold for emphasis.

Personally I only help debug with officially supported features (models, benchmarks, etc. ). But I will keep the issue open to see if anyone can reproduce the bug with officially supported scripts and models, or there might be some community users that are willing to help.

@kennymckormick  Do u saw any wrong configration in I posted model file? (the llava like)


Quickfix benchmarking target paths

Codecov Report

Merging #636 into develop will decrease coverage by 5.28%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #636      +/-   ##
===========================================
- Coverage    49.95%   44.66%   -5.29%
===========================================
  Files          298      300       +2
  Lines        10754    11819    +1065
  Branches      5314     6287     +973
===========================================
- Hits          5372     5279      -93
- Misses         488      773     +285
- Partials      4894     5767     +873

Impacted Files
Coverage Δ

irohad/ametsuchi/impl/postgres_wsv_command.hpp
0% <0%> (-100%)
:arrow_down:

irohad/ametsuchi/impl/test_storage_impl.hpp
0% <0%> (-100%)
:arrow_down:

irohad/network/impl/block_loader_service.hpp
0% <0%> (-100%)
:arrow_down:

...ad/consensus/yac/impl/yac_crypto_provider_impl.hpp
0% <0%> (-100%)
:arrow_down:

irohad/model/execution/command_executor.hpp
0% <0%> (-100%)
:arrow_down:

irohad/network/impl/block_loader_impl.hpp
0% <0%> (-100%)
:arrow_down:

irohad/validation/impl/stateful_validator_impl.hpp
0% <0%> (-100%)
:arrow_down:

irohad/ametsuchi/impl/flat_file_block_query.hpp
0% <0%> (-100%)
:arrow_down:

...d/network/impl/peer_communication_service_impl.hpp
0% <0%> (-100%)
:arrow_down:

irohad/ametsuchi/impl/peer_query_wsv.hpp
0% <0%> (-100%)
:arrow_down:

... and 139 more

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 b00fb42...aa9a153. Read the comment docs.


kivy screen textiput focus

I  add three screen, every screen have inputext(set focus True) but change screen,  focus not working, why ?

Please post your question and provide example source code on any of the following communication channels:
User Group : https://groups.google.com/group/kivy-users
Email<EMAIL_ADDRESS>Chat Server : https://chat.kivy.org
This is a bug tracker, not a proper place to ask questions.


feat(tracing): Add tracestate header handling

This PR introduces handling of the tracestate header, as described in the W3C Trace Context spec and our own corresponding spec.
Key features:

Deprecation of from_traceparent in favor of continue_from_headers, which now propagates both incoming sentry-trace and incoming tracestate headers.
Propagation of tracestate value as a header on outgoing HTTP requests when they're made during a transaction.
Addition of tracestate data to transaction envelope headers.

Supporting changes:

New utility methods for converting strings to and from base64.
Some refactoring vis-à-vis the links between transactions, span recorders, and spans. See https://github.com/getsentry/sentry-python/pull/1173 and https://github.com/getsentry/sentry-python/pull/1184.
Moving of some tracing code to a separate tracing_utils file.

Note: tracestate handling  is currently feature-gated by the flag propagate_tracestate in the _experiments SDK option.

feedback: this PR is very hard to review. it appears to consist of already-reviewed PRs exclusively which have been reviewed by a different set of people sometimes. and now I can re-review 1.3k added lines at once
If we're going to release all of those changes at once I think it could be rather risky. It seems to me that we have not ever deployed any part of this into our own SaaS usage. I would suggest to split this PR back up into many PRs, merge those, run a (stable) release for each, deploy each release separately to SaaS. Otherwise I think the risk is too great.

rubberstamping. apparently this featurebranch has been deployed to saas already at one point, and there's not many ways to reduce risk afaict, unfortunately

We talked about this offline, but for posterity:
This was a feature branch, so yes, it's a bunch of already-reviewed PRs. But we did actually already deploy it, in our back and front ends (see https://github.com/getsentry/sentry/pull/24177 and https://github.com/getsentry/getsentry/pull/5192), at a point when 80-90 percent of the work had already been done.)
We can talk process for future work, but in the meantime, I'm going to merge this as agreed.


Clicking on linked user name in #social lead to Hmm... it's not here page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.51-3
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @mallenexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1729620191053449
Action Performed:

Sent to #social
Clicked on Michael's name
Clicked Message in RHP

Expected Result:
Chat to open with Michael
Actual Result:
Error screenshow
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Standalone
[ ] Android: HybridApp
[ ] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
https://github.com/user-attachments/assets/260e0065-4c17-4c77-b838-ab113ea7f561
logs-2024-10-22 17_44_00.359.txt

View all open jobs on GitHub

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

logs-2024-10-22 17_44_00.359 (1).txt

https://github.com/user-attachments/assets/f97717c9-a5df-4b98-aea8-02bbc51a1559

@getusha can you look at logs and details in the Slack thread to see if you have any idea what might be going on?
I thought there was a chance it had to do with Michal not being on the Expensify Chat policy but he was added this week and I'm still getting the error page when I click on his name then the Message button.

the report key changed somehow
@getusha can you elaborate on this, I'm not familiar with report keys.  I'm hesitant to log out/in cuz we shouldn't have bugs that require that.   I can reproduce the bug still now.  When I click on Michal's profile then click 'message' , i get the error screen.

I can log out/in if it helps you confirm your suspicion that the bug's related to something that's since been fixed (or that you'll have a better understanding of how to potentially fix)

Signing out/in fixed it, going to close. Comment if there's additional details and/or if there's a way to keep this from reoccurring.  Thx


iPhone X fixes

Use SafeAreaView in a few key places so padding is correct at top and bottom of the screen on iPhone Xish models:

Onboarding
Comments
Invite peers

There is also a layout issue for iPhone X with the sign up/in screens as well, but something wasn't straight forward about fixing it, so I bailed since we'll be getting rid of those screens soon with profiles coming.
@andrewxhill also mentioned a crash that happens in the sim sometimes when navigating back from the comments screen. Something about Unsupported layout animation createConfig property (null). I tinkered around and realized that might also be a real crash for people that use hardware/bluetooth keyboards. This PR fixes that crash.

After digging into the iPhone X layout issues, I figured out the general rule of thumb is this: react-navigation handles iPhone X whenever there is a navigation header and/or tab bar displayed (it uses SafeAreaView internally), but you need to consider wrapping your component in a SafeAreaView any time:

Your component reaches the top of the screen and there is no navigation header displayed
Your component reaches the bottom of the screen and there is no tab bar displayed AND your component renders a "footer"-like view at the bottom (avoiding the bottom "swipe up bar" area doesn't seem to be an issue for normal content like a FlatList of things).


CDK Migration

see #328

Current state is:

{
    "errorType": "AWSOrganizationsNotInUseException",
    "errorMessage": "Your account is not a member of an organization.",
    "code": "AWSOrganizationsNotInUseException",
    "message": "Your account is not a member of an organization.",
    "time": "2022-09-02T22:43:42.092Z",
    "requestId": "7e8604bc-ad76-4ee2-944b-fb9d25c98556",
    "statusCode": 400,
    "retryable": false,
    "retryDelay": 63.83174057769199,
    "stack": [
        "AWSOrganizationsNotInUseException: Your account is not a member of an organization.",
        "    at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:52:27)",
        "    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)",
        "    at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10)",
        "    at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:686:14)",
        "    at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)",
        "    at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)",
        "    at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10",
        "    at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)",
        "    at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:688:12)",
        "    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:116:18)"
    ]
}


[KIEGROUP/CHAIN-STATUS] Fix ISSUE-48: some entries are not shown on t…

Well, as I understand reading the docs we have to use those two properties just to force the overflow (we don't want to force, just to show with the "..." when the overflow occurs). @shubhbapna

Hi, I tried locally and it looks like the overflow is not shown.. I think it is because of <a> tag (as @shubhbapna highlighted). I found this https://stackoverflow.com/questions/16660506/use-text-overflow-ellipsis-on-an-anchor-tag that it seems it answer our doubt, maybe it is worth to give it a try.
@bacciotti maybe you can try to create a fake repo on your user to setup the chain-status and see if the fix really solve the issue

Guys, thanks for your contribution!
@shubhbapna  @lampajr
I added more properties to test and it worked well.
Our main concern is the fixed width. There are some options I tried but it didn't work, for instance using some relatives units like percentage (%), viewport width (vw) or viewport width maxsize (vmax). I considered even use the "em" unit but I had no success too.
I tried using a span or a paragraph inside the anchor but it didn't work.
With the current change it worked well, even with fixed width. I tested on different browsers and screen sizes, locally.
What do you think, guys?

This approach seems to work as well.
I'm just wondering if it could help to add an overlay with the full name when it is truncated, because consider the case when we have two jobs having the same long name except for the suffix (which could be a number or whatever) - in this case we might have the issue that we don't know to which one that record is referring to.
wdyt? @shubhbapna @bacciotti

Great idea! I can try something on this.

I inserted Tooltip component to show the complete label.
The point is that I could not set it to show only when overflowed. I tried many components and scripts on the last few days but with no further success. Maybe we define it as a future implementation?
For now, I think this improvement solve the main problem of this issue.

Hey @bacciotti ,

Maybe we define it as a future implementation?

I agree with you, do you mind to create a new issue?


Add .listenerCount to allow consumers to confirm a listener was setup.

While testing a consumer of capture-exit, you might want to confirm that an exit handler was setup properly.
This change adds a .listenerCount method which returns the number of handlers that are present. This is similar conceptually to EventEmitter.prototype.listenerCount (documented here).

+<EMAIL_ADDRESS>


Broken link for ucp-config

Broken link, update link or remove reference to link.

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit d3bbb80b3f946b6903a9f6293b9379048b03467f
https://deploy-preview-9009--docsdocker.netlify.com

@kavikat Thanks for spotting the broken link. However I think we should still keep a link in there but with the correct URL.
Do you mind swapping ../ucp-configuration-file/ to ./ucp-configuration-file/? Thanks :)

This is fixed in https://github.com/docker/docker.github.io/pull/9056.


ux: give focus to note field after tapping to add a note

ios wallet, v5.9-rc2, 99a2218
Almost every time I make a tx, I add a note for my records. When you tap to add a note, you then also have to tap in the text field to give it focus before typing. It's just a small thing but after 100 times, it grates. It also happens to be slightly off my screen so I have to scroll up first.
Would be a nice ux improvement for those of us who need to document our tx.

Thanks for the feedback, we will look into a fix.
I can understand how the frustration can build up.


FastifyContextConfig type error

The configuration of the route should have fastifyPrefix and routesPrefix optional, but we have set it mandatory.
interface FastifyContextConfig {
        metrics: {
            /** The id for this route that will be used for the label */
            routeId: string;
            /** Normalized fastify prefix for this route */
            fastifyPrefix: string;
            /** Normalized prefix of the routes */
            routesPrefix: string;
        };
    }

:tada: This issue has been resolved in version 2.0.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Rc1 changes

These changes take SecretManagement module to version 1.0 for an RC1 release.

Should the RC1 still be a prelease?  Shouldn't GA be version 1.0.0?


Removed code redundancy

since the gui and the mover run the same method, it is redundant to write it twice

It will increase complexity. If a user wants to use only the GUI version than he/she has to copy both files.


Commit offset error, because consume shutdown.

https://github.com/apache/rocketmq-streams/pull/207


Upload to Vimeo

Locked out by the automatic filter. Probably because of the music although it is copyleft and mentioned in the description.
The reporting mechanism is a bit of a pain. To contact them you must be logged-in but you can't do that because you are locked out 😄


Auto-import displayed and applied incorrectly in interactive window

Environment data

Language Server version: 2021.9.1 (pyright e804f324)
OS and version: macOS 10.15.7
Python version: 3.9.6

Expected behaviour
Pylance should display auto-import completions in the interactive window and apply them correctly (probably it can be applied inside the current interactive prompt). Or if this auto-import is not supported in the interactive window, it shouldn't be shown.
Actual behaviour

The description of an auto-import completion shows an error:

When accepting the suggestion, nothing happens.

Thanks for filing @matangover.
We'll discuss this in our next triage meeting.


[BuddyGPU] Add GPU infrastructure and implements end-to-end inference

This pull request does three following things, and is mainly for demonstration. It's better to split them into different PRs.
Adds two passes for replacing CPU allocations to GPU operations.
Make the GPU operations async by a dataflow analysis. (Still working on it)
Optimize linalg operators using transform dialect operations.
Apply the transformation process on an end-to-end inference module, then lower it for execution.
Notice: As this PR does not include the support for bf16 operations, it will not work on graphics cards with insufficient global memory. A newer operation gpu.dynamic_shared_memory is also used for lowering, yet it's not supported in Buddy's LLVM version.

is there any progress in this PR? when will this pr being merged into main stream


Bootstrap 3

Not having bootstrap 3 is making it hard to update the site.

I'm working on this in the new-theme branch.

We still need to:

fix the images on the journo tools page
link to the journo tools page
complete the homepage (there's lots we can remove or move into a separate projects page)
migrate over the individual projects page


Add a user feedback form & add backend.

For this can we do front end part in html and css and for backend in php ?

For this can we do front end part in html and css and for backend in php ?

no PHP, but you can use mongo or firebase with JS which is quite easier than PHP

For this can we do front end part in html and css and for backend in php ?

also same project with a lots of different backend things will be hectic ig.

do we need the frontend part also, if we need only backend then I will take this issue

do we need the frontend part also, if we need only backend then I will take this issue

yes you need to create a page containing the user feedback form with React or bootstrap and add a back-end to it

actually i was thinking that i will just create a form (without any css) and add required backend to it, then later the form styling can be done in some issue

ome issue

you can do that, if you do it I'll put another issue for it. you can go with just a boiler plate form and add backend, should i assign you now?

yaah I will take this

yaah I will take this

go ahead


✋ [MEMBER] - jbur6789

Why do you want to join?
I want to gain practical experience in the developer world. I am a new graduate and I want to continue to learn.
Which project(s) are you looking to contribute to?
I am unsure of the available projects but I am ready to figure out where I can make an impact.
Code of Conduct

[X] I agree to follow Django Commons's Code of Conduct

Thank you  for joining! You'll get an invite email from GitHub. You'll have one
week to accept that. If you don't mind, after accepting, can you set your
organization membership as public?
This helps Django Commons grow.


Anonymous rest parameters should be allowed on blocks

I believe #8253 is diagnosing the wrong thing as an error. Anonymous rest parameters are perfectly valid on blocks. E.g.
def demo()
  [[1, 2], [3, 4]].each do |first, *|
    p(first)
  end
end

demo()

All demos tested on ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin23].
What's actually illegal is attempting to forward that anonymous rest parameter as an anonymous splat argument. Changing p(first) above to p(first, *), we'd get a runtime SyntaxError:
unexpected `*` when the parent method is not forwarding
  3  def demo()
  4    [[1, 2], [3, 4]].each do |first, *|
> 5      p(first, *)
  6    end
  7  end
Untitled.rb:5: no anonymous rest parameter (SyntaxError)

If the enclosing def demo also had an anonymous rest parameter, that would be different syntax error. So the real problem is the attempt to forward an anonymous splat argument from a block that also declared an anonymous rest parameter.
def demo(*)
  [[1, 2], [3, 4]].each do |first, *|
    p(first, *) # This usage is what should be diagnosed.
  end
end

demo("this", "is", "what", "gets", "printed")

Originally posted by @amomchilov in https://github.com/sorbet/sorbet/pull/8253#pullrequestreview-2396277113
It looks like the rules are that a block is allowed to declare an anonymou
Input
→ View on sorbet.run
def demo()
  [[1, 2], [3, 4]].each do |first, *|
    p(first)
  end
end

demo()

Observed output

def demo()
  [[1, 2], [3, 4]].each do |first, *|
    p(first)
  end
end

demo()
editor.rb:2: Anonymous rest parameter in block args https://srb.help/3012
     2 |  [[1, 2], [3, 4]].each do |first, *|
                                           ^
  Note:
    Naming the rest parameter will ensure you can access it in the block
  Autocorrect: Use -a to autocorrect
    editor.rb:2: Insert _
     2 |  [[1, 2], [3, 4]].each do |first, *|
                                            ^
Errors: 1

Expected behavior
No errors.

Hey thanks, this was an intentional choice. For projects which don't want this behavior, the best way forward is to suppress the error code.
A few factors influenced this choice:

It's a lurking a footgun to have def foo(*) and do |*| in the same method, because you won't be able to use p(*) inside the blocks.
The workaround of simply changing |*| to |*_| with the included autocorrect did not seem particularly intrusive.
Reporting many errors for each usage of p(*) in the error cases is a worse than one error for the definition that causes the error, partly because the autocorrects for each error would step on each other.
It's substantially easier to implement it for all |*| definitions, rather than for only those inside method definitions which have def foo(*).

We would be willing to consider a change such that this error is still reported at the definition of the block |*| param, but only if the enclosing method definition has a def foo(*), still regardless of whether p(*) occurs in the method body—the moment that someone combines those two conflicting parameter lists, they should be told about the error at the definition of the block.
We did not do that because it was more work to implement, and in Stripe's codebase there were only a handful of violations from implementing it the simple way and the autocorrect was able to fix all of them.

For projects which don't want this behavior, the best way forward is to suppress the error code.

Just to save future readers a hunt, to disable this, you just need to add this line to sorbet/config:
--suppress-error-code=3012


Add unit tests for some box and validate functions.

Some simple tests, but I thought I'd add some while trying to understand the code.
I notice https://github.com/cemerick/clojurescript.test is deprecated and that repo recommends switching to cljs.test + https://github.com/bensu/doo. Is it likely that making that change to this repo would be considered useful?
Thanks.

Many thanks.


Ability to provision autopilot via automation

Is there any way to provision autopilot via some sort of automation means? ARM/Az Cli/Powershell??

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

ID: c5b2be67-25e0-a558-dae2-5fa149df2d96
Version Independent ID: e95519f3-80f7-37bf-e3fc-9ebbf5081f17
Content: Create Azure Cosmos containers and databases in autopilot mode.
Content Source: articles/cosmos-db/provision-throughput-autopilot.md
Service: cosmos-db
GitHub Login: @kirillg
Microsoft Alias: kirillg

@wahyuen We are checking this and will get back to you.

@wahyuen programmatic way to provision autopilot throughput is not yet available at this time, we will update the doc when the support is ready. in the meantime, you can submit a user voice request: https://feedback.azure.com/forums/263030-azure-cosmos-db
We will close this issue for now.
#please-close


Server Files

Is it possible to add or modify specific files for the server ?
I succeed to do it for client. In case of  the server.
the file main.js was replaced, when I regenerate the whole site.
Thank you for your help.

If you want to change something in server.js, then copy it into directory where is your .json input file, and into .json add "copy_files": [ { "source": "server.js", "dest": "SERVER_DIR" }], now your version of server.js will overwrite what kitchen generates.
(P.S. you cannot do it from GUI - you can do it only if you are using CLI).

BTW, SERVER_DIR is special string, leave it as is (don't write real path here - because this way, you don't need to edit .json if you move output directory).

ok, thanks
this is working, and I am using CLI.
Maybe another thing, i don't understand the example plugin, and I failed to generate files, because exemple1 is not present. Is it possible to have more explanations.


Problem with Laravel and VatCalculator autoloading

Hi,
there is an issue with the way that VatCalculatorServiceProvider binds the VatCalculator dependency in Laravel.
This is the registerVatCalculator method:
    /**
     * Register the application bindings.
     *
     * @return void
     */
    protected function registerVatCalculator()
    {
        $this->app->bind('vatcalculator', '\Mpociot\VatCalculator\VatCalculator');

        $this->app->bind('\Mpociot\VatCalculator\VatCalculator', function ($app) {
            $config = $app->make('Illuminate\Contracts\Config\Repository');

            return new \Mpociot\VatCalculator\VatCalculator($config);
        });
    }

Instead of using the special PHP VatCalculator::class constant which resolves to 'Mpociot\VatCalculator\VatCalculator'
the method is using:
'\Mpociot\VatCalculator\VatCalculator'
(note the leading slash)
In my vat_calculator.php config file I have the following config:
'business_country_code' => 'ES',
Which gets applied when creating a new instance of VatCalculator only if VatCalculator is loaded using the Laravel IoC Container.
The problem is that if anywhere in my code I declare VatCalculator as a dependency, Laravel (5.5 at least) doesn't use the binding provided by VatCalculatorServiceProvider, and creates the class with a $config = null.
In php artisan tinker:
>>> app('Mpociot\VatCalculator\VatCalculator')->getTaxRateForLocation('ES', null, true);
=> 0
>>> app('\Mpociot\VatCalculator\VatCalculator')->getTaxRateForLocation('ES', null, true);
=> 0.21

The solution would be to use the name without the leading slash in the registerVatCalculator method of the VatCalculatorServiceProvider (The best would be to use the ::class constant).
I could send you a PR if you are willing to accept it :)

I've just discovered there is a pending PR #85 to be merged. That would solve the issue @mpociot

While the pending PR gets merged I fixed it creating a new temporary ServiceProvider in Laravel:
class FixVatCalculatorServiceProvider extends ServiceProvider
{
    public function register()
    {
        $this->app->bind(VatCalculator::class, function ($app) {
            return $app->make('\Mpociot\VatCalculator\VatCalculator');
        });
    }
}

This seems to be merged and released already. Thanks

This seems to be merged and released already. Thanks

Yes, it was merged on 2 Jun 2020, thanks.

Yes, it was merged on 2 Jun 2020, thanks.


Added the Neo4j Integration with FastAPI

Description
Adding Neo4j Integration to FastAPI. This would allow the Data to be queried from a Graph Database and setup a Database Connection which can be tested and verified from an API Endpoint.
Issue Reference
The Jira Ticket is available here
Testing
Steps to run the Code:

Make a new Project on the Neo4j Desktop. Create a Database on it.

Specify the password for the Database. The user would be the default neo4j

Install all the Packages and run the Database.

Run the command: uvicorn main:app --reload

Go to the endpoint: /graph and you will see a message showing that the Database Connection is successful.

What should be the hostname? I tried updating it with "http://localhost:7687/" where my database was running.  But getting error decouple.UndefinedValueError: DATABASE_HOST not found. Declare it as envvar or define a default value.
Also there is a dependency on py2neo and i had to pip install it. So include it in reqirements.txt file

Hello @avinash010
Neo4j, by default, makes use of the Bolt Protocol for setting up the connections. Please try bolt://localhost:7687 instead of using an HTTPS connection. In future, we can add a Remote Host to this and it would be integrated with our Cloud Database.
I am pushing the py2neo dependency right now in the requirements.txt file.


Make all outputs default to 3.0.3 behavior

Still allows dictionary output via kwarg and tests have been added to
ensure the two outputs are the same. This should be considered a
candidate for 3.0.5 release.
Fixes #318
Fixes #316
cc: https://github.com/choderalab/openmmtools/issues/452#issuecomment-560135185
cc: @jaimergp @Lnaden @mrshirts @andrrizzi

Thanks so much, @Lnaden! We can go with a 3.0.5 release to fix this if we roll it out rapidly.

If this is everything you wanted for the 3.0.5, it should be ready to go. I don't think the Windows failures are because of the repo, and more because of conda and DLL linking in some of the recent versions. Also because Python 2 which we are dropping soonish anyways.

New release: https://github.com/choderalab/pymbar/releases/tag/3.0.5


Test storybook and the figma plugin

https://help.figma.com/hc/en-us/articles/360045003494-Storybook-and-Figma
Joan:
Simeon Cheeseman the figma plugin I found for storybook doesn't focus on component uploading to figma. What it does is show the figma component side-by-side with the storybook implementation. Have you found anything else that allows the single source of truth?
Simeon:
Nice, that figma plugin looks neat, definitely great for checking if we match the figma library. There seemed to be Figma → React type plugins out there and official support?, but unfortunately, it looks like Figma are insistent on Figma being the single source of truth to the degree that they encrypt their files so you can’t even read them as “source code”. Their API is also read-only (currently). Sketch was better in this sense as a sketch file is just an zip file of xml files so you could programatically work with that.
I think the best we could probably do is a script the other way that listens for changes to the figma library and raises MRs to tablekit repo (they have webhooks). Unless Figma magically support writing to their API anytime soon
It’d take a fair amount of work, and probably some minor structural/naming changes in tablekit to support auto-update. But I think we could do it, usage of custom jsDoc style comments or something + AST Parsers.

Originally I thought we were going to do similar to what Lehel used to do with Sketch in Figma, as it seems that they aren't going to catalogue all components in Figma I think this is probably not going to be of any use anymore. Our single source of truth would have to be the code because Figma doesn't cover all the cases.


[Pagination] Issue with pagination and status

Running the active learning tutorial, I've realized there's an issue in the Webapp
If I have 10 records with status default, after enabling the filter status=Default, with 1 per page, and I start labeling them one by one, there's point where I don't see more records because the pagination status gets updated with the current number of records satisfying that filter (which are less and less as I continue annotating). I prepared a video showing this:
I guess this is not an easy issue to tackle so let's discuss it for the next dev cycle.
https://user-images.githubusercontent.com/1107111/146407664-e73b82a4-f761-4bdc-b6f1-891a335e2195.mp4

Every time you validate a record in another status, you must refresh (refresh button) to see the changes. It's the common behaviour. Using the edge case with records per page == 1 and shortcut pagination, this behaviour is a consequence of how you are using filters and pagination.
This would not happen if you filter by status validated or default
Not sure it's an issue

Yes, I know why it happens. Having status default for annotation is what we recommend very often. It happens also with any page size, just it's less noticeable, but let's discuss it.

Yes, it's why we included the refresh buttom. It's an old discussion this records filter incongruity. The main thing is that we are changing an attribute that matches with configured filter.
We could have a similar situation with 2 users making annotations in the same dataset.
I think we can resolve that in a more specific annotation view. Or make more accessible the "refresh" button

Yes, let's keep this in mind for the focus mode which should replace the page size 1 and give a proper UX for sequential annotation. Closing this issue for now.


Add the VSL Library

Hey there,
Is it a possibility to add the VSL library?
https://github.com/lighthouse3d/VSL

We can’t reopen this issue until a PR is opened, unfortunately, consider making a pull request!


Adjusts some formatting aspects in template

Removes backticks from headings. It is better not to use backticks in headings.
Also removes the mini-TOCs .... these are shown in the sidebar

/build


sensu version updated to 1.2.0

@mvasilenko Thank you for your Pull Request.
Could you tell me why sleeping is necessary before run Redis and Uchiwa.

https://github.com/hiroakis/docker-sensu-server/pull/9/files#diff-813d18b234a158d8986224b22da73354R10
https://github.com/hiroakis/docker-sensu-server/pull/9/files#diff-813d18b234a158d8986224b22da73354R27

And then, could you remove unnecessary comment ? Such as https://github.com/hiroakis/docker-sensu-server/pull/9/files#diff-3254677a7917c6c01f55212f86c57fbfR47

yes, i've removed the comments
if i start uchiwa without sleeping, i've got such error
{"timestamp":"2017-12-13T16:10:10.9049385Z","level":"warn","message":"Loading the configuration file /etc/sensu/uchiwa.json"}
{"timestamp":"2017-12-13T16:10:10.9055383Z","level":"warn","message":"Uchiwa is now listening on <IP_ADDRESS>:3000"}
{"timestamp":"2017-12-13T16:10:10.9057287Z","level":"info","message":"Updating the datacenter Sensu"}
{"timestamp":"2017-12-13T16:10:10.9060588Z","level":"warn","message":"GET http://<IP_ADDRESS>:4567/stashes returned: dial tcp <IP_ADDRESS>:4567: getsockopt: connection refused"}
{"timestamp":"2017-12-13T16:10:10.9061163Z","level":"warn","message":"Connection failed to the datacenter Sensu"}

it seems to be that order of loading is important in this case,
and i don't know is there a way to delay or start specific service before or after another service in supervisord


Add timeouts update from spec

timeouts update - https://github.com/serverlessworkflow/specification/commit/53e932c0d883e66a771bbb11e078cdf011e615d3

done with the 3.0.0.Final release


User should not be able to deploy a retired API

Description
In APIM after we retire an API the deploy button still active and by clicking user can deploy the API to the gateway.
Steps to Reproduce

Create and publish an API in the publisher
Try to invoke the API and note down the access token.
Move the API to 'Deprecated' and then to 'Retired'
Now go to 'Overview' page, you will see that the deploy button is still active. Click on it and deploy it on the gateway.
Now invoke the api using curl or postman you will get the success response.

Expected behavior
After changing an API state to 'Retire', user should not be able to deploy the API.
Affected Component
Analytics
Version
4.2.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
bug

Progress update
11.01.2023 - Fixed the backend and created the PR: https://github.com/wso2/carbon-apimgt/pull/11761
12.01.2023 - Working on the publisher UI