Add "k list"

There should be a way to list all commands in project.json by using something like:

k list

If I write for example:

k something

I get:

Unable to load application or execute command 'something'. Available commands: web.

Apparently, a list of available commands exists, and I would prefer to get that list by using the list command.

@MikaelSoderstrom Let us know if the new built-in support for grunt in VS meets your needs.


Specify the queue / pipe for a handler

How do we specify what queue / pipe the handler should go in?
I was thinking something simple like?
<?php namespace Locality\Handlers\Events;

use Locality\Events\LocationWasSaved;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldBeQueued;

class GeocodeLocation implements ShouldBeQueued {

	use InteractsWithQueue;

        var $queue = 'geocode';

	/**
	 * Create the event handler.
	 */
	public function __construct()
	{
		//
	}

	/**
	 * Handle the event.
	 *
	 * @param  LocationWasSaved  $event
	 * @return void
	 */
	public function handle(LocationWasSaved $event)
	{
		//
	}

}

Has anyone got anything to say about this? If not, it will eventually get closed.

Well can it be implemented????

We're open to PRs, but I'm not able to accept proposals. Taylor is in charge.

Looking through the code it looks like that if you have a queue() method on your handler you can control how the job is added to the queue? I couldn't find any documentation for this, do you know anything about it?

Well, can't you just do Queue::pushOn($pipe, $handler)?

@onbjerg That's not use if you're not dealing with the queue manually, say for example, async events.


model_validator() with model_copy() bug

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I want to automatically modify a value after validation. Because I am using frozen models and relying on multiple fields, I am using model_validator(mode='after'). This works as expected if the class is nested, but not if the class is standalone, which feels like a bug.
Example Code
import pydantic

class Child(pydantic.BaseModel):
    model_config = pydantic.ConfigDict(frozen=True)

    name: str

    @pydantic.model_validator(mode="after")
    def decorate_name(self):
        return self.model_copy(update={"name": f"--{self.name}->"})

class Parent(pydantic.BaseModel):
    model_config = pydantic.ConfigDict(frozen=True)

    name: str
    child: Child

# validator works for nested model:
#
# > parent = Parent(name="Freddy", child=Child(name="Teddy"))
# > print(repr(parent))
# Parent(name='Freddy', child=Child(name='--Teddy->'))
#
# > print(repr(parent.child))
# Child(name='--Teddy->')

# but not for stand-alone model
# > child = Child(name="Eddy")
# > print(repr(child))
# Child(name='Eddy')

Python, Pydantic & OS Version
pydantic version: 2.6.4
        pydantic-core version: 2.16.3
          pydantic-core build: profile=release pgo=false
               python version: 3.9.18 (main, Feb  1 2024, 15:55:13)  [Clang 15.0.0 (clang-15<IP_ADDRESS>.5)]
                     platform: macOS-14.2.1-arm64-arm-64bit
             related packages: mypy-1.9.0 typing_extensions-4.10.0
                       commit: unknown

@qhelix7,
Thanks for the report. This looks like a duplicate of https://github.com/pydantic/pydantic/issues/7252. Closing this as such, and I've added the original issue to our current milestone to make sure that we address this bug!


create cli version of the app

hey @PaulSayantan i would love to work on this issue . I have made a similar thing before for a hackathon rofitube . Here's a video link . I think i will be able to complete this .

Hey @PaulSayantan , i wanted to ask where i should store the script at  ? Since the master branch is dedicated towards go version of this program , should i opt for a separate branch for the cli or should i make a directory containing the cli version code for the master branch .

Hey @ashish-patwal, just a heads up. Are you still doing the cli-version ?

hey @PaulSayantan , right now i am very busy with my exams and project work . Originally i have done some work on the script but it's far from complete . I can probably start working on the script after december only . However if you feel to give this issue to someone else due to time constraint , i wouldn't mind . Thanks again !!


Patch systemd-networkd-wait-online when using primary-network-config

The state of the bridge interface is stuck in "Configuring" which locks up the multi-user target for 2 minutes.
With this patch, multi-user does not wait at all for the interface. This might be a bit brutal, so beware!

Does provisioning still work with this change, because Aktualizr primary will only wait 10s for a secondary to be online?

After a full test this morning, it indeed didn't work directly after boot:
Mar 29 07:53:44 qemux86-64 aktualizr[306]: Sending UDP discovery packet to ::ffff:<IP_ADDRESS>:9031
Mar 29 07:53:44 qemux86-64 aktualizr[306]: Waiting 10s for discovery responses...
Mar 29 07:53:44 qemux86-64 systemd-networkd[261]: enp0s3: Gained IPv6LL
Mar 29 07:53:45 qemux86-64 kernel: e1000: enp0s4 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Mar 29 07:53:45 qemux86-64 kernel[268]: [   13.102486] e1000: enp0s4 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Mar 29 07:53:45 qemux86-64 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp0s4: link becomes ready
Mar 29 07:53:45 qemux86-64 kernel[268]: [   13.106568] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s4: link becomes ready
...
Mar 29 07:53:54 qemux86-64 aktualizr[306]: Received 0 sockets, not using socket activation for main service
Mar 29 07:53:54 qemux86-64 aktualizr[306]: Listening on :::9030


Feature/event

In this milestone, I implemented the event for the Math app

Thank you, Zawadi.
Please find the Readme file on the Math directory or folder. It has been there since the first project. Thanks a lot

Thank you, Zawadi.
Please find the Readme file on the Math directory or folder. It has been there since the first project. Thanks a lot

Thanks for tell us, but I'm afraid the readme and the folders inside math could be on root project in place inside a folder, please, fix this before to ask another code review again. Good luck! 🐶


[Question]:

请提出你的问题
The code runs through, but no results are returned during runtime. What to say? The tag is empty

please provide the code for reproducing the results


Migrate primary branch from master to main

See https://github.com/Senzing/stream-loader/issues/283

Pull requests:

https://github.com/Senzing/compressedfile/pull/26


Feature to invite users

It would be amazing to have a feature where you could invite users to signup when signups are disabled. This way you can both give a way to your friends to track their statistics and also "compete" with your friends.
You could do this by enabling signups but if you were to do that other people could also signup.

Great idea! Will add this as a feature request.

Easiest would be to wait for the next release (probably some time next week). Otherwise you could also build and run your own Docker image from source.

Still found two minor issues (as usual when I push code late at night), which I want to correct later today.

Awesome! I will wait for the next release because I am very new to docker and don't want to mess anything up on my "production server" xD
Again, thank you very much!

No worries at all!

Available now!


Send sign-ups that identify as having 11+ employees back to Classic.

Coming from here.
Background

We’ve been working diligently for months on releasing the HybridApp. We’ve done that, so now switching between the NewDot experience and the OldDot experience in-app is seamless.
We’ve started redirecting new sign-ups on web/mweb to NewDot if they identify as a company with <10 employees, as that’s our current focus.
In NewDot, we have an onboarding modal that has a step for employee count.

Problem
When all mobile sign-ups are put in the OldDot experience, it causes us to miss out on ~20% of new sign-up traffic, which prevents us from better understanding and optimising NewDot conversion on mobile.
Solution
Let’s start putting all new native mobile sign-ups in the NewDot experience by default. From there, we’ll send any 11+ leads back to Classic. For consistency, we’ll do this for NewDot Web sign-ups as well. How that looks is as follows:
HybridApp

Download the Expensify app
Land in the NewDot experience (note: This requires the hybridAppRedirect beta, but the code exists to put new native mobile sign-ups in the newDot experience).
Choose any 11+ option in the employee count step of the onboarding modal
User is switched to the Inbox page of the OldApp experience
tryNewDot.classicRedirect.dismissed is set to true.

Web/mWeb

Sign-up on new.expensify.com
Choose any 11+ option in the employee count step of the onboarding modal
User is redirected to expensify.com/inbox in the same browser tab
tryNewDot.classicRedirect.dismissed is set to true.

Asking SWM about taking this one. It has a HybridApp element to it, and I suspect we will need a backend PR for updating the tryNewDot.classicRedirect.dismissed NVP to true on redirect when a 11+ option is selected.

Hi! I'll handle this issue 👌

Dope, thanks!

I have a question regarding logic mentioned in the description. What about Try New Expensify(OD) and Switch to Expensify Classic Buttons(ND) buttons, should those buttons be visible all time for both cases <= 11 and 11+?
Another question related to hybridAppRedirect beta. What is the state of this beta? Is it ready?

Yeah, AFAIK it's ready. I have it on the @trj.chat domain if you want to test creating an account with any variation of<EMAIL_ADDRESS>But yes, that beta should put you in the NewDot experience on HybridApp on sign-up and set tryNewDot.classicRedirect.dismissed to false.
CC: @AndrewGable as well as he built it. :)

Sounds good!


Instructions for installation on localhost

I ran the Ansible playbook locally in a VM. To do this, I did the following:

I cloned your git repo in /usr/local/code. Given that your repo is named Faasm, this yielded /usr/local/code/Faasm (notice the capital F)
I then changed provision_bench_host.sh to have the following line:

ansible-playbook --connection=local -i inventory/benchmark.yml benchmark.yml

I then ran /usr/local/code/Faasm/bin/provision_bench_host.sh. The generated a distinct directory usr/local/code/faasm.

I'm an Ansible novice, and I understand that this tool is typically used for remote systems, but I wonder if it might be useful to support a local installation as above. Just wanted to mention this workflow in case it generates any workflow improvement ideas.

You're right, the provision_bench_host.sh script is meant for remote hosts and will, among other localhost-unfriendly things, check out the code (hence the new directory created at /usr/local/code/faasm).
The instructions for local development can be found at local_dev.md, which describes a localhost-friendly Ansible playbook.
I'm tidying this up as part of #117 which I'll merge soon, at which point it should be in a better state.
Cheers!


Prefix or regex lookups for annotations

We've received numerous requests for prefix lookups or even regex matching for annotations when looking up traces. This would allow users to match a prefix to a memcache key for example.

Closing due to lack of activity.


Fix recurring event example feed

This PR resolves #279.
Looking at the commit history for the v4.0 release, at some point, the recurrent event example feed was replaced with a duplicate of the detour example. This PR restores/re-implements the recurrent event example in WZDx v4.0.

Thanks for addressing this so quickly @j-d-b. My main comment has to do with the dates - the dates referenced throughout the example are for around Jan. 1, 2010, but the feed update date is for June 2020. Since dates are pretty important for the recurring example, should the feed level update dates be reset to Jan 2010?

@mark-mockett great idea, I updated all the dates to be more realistic (and years to be more recent, to give it a newer feel).


ALB pod logs show credentials in plain text

We found in our service that the log of ALB controller pod show the credentials in plain text:
kubectl -n kube-system logs alb-controller-757b79b8c5-v44gd  --since 30m -f

...

Hi, thanks for reporting this.
To temporarily mitigate this issue, you can set "-v=1" at controller's flags.
Will cut a new release with fix today.


Vickel: Watch<PHONE_NUMBER>70

Vickel requests the watch of the watch_number<PHONE_NUMBER>70. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by tripleee in Charcoal HQ


Total number of IOTA / SMR tokens transferred

Add an /api/analytics/v2/token-transfers endpoint that works as follows:
curl "[...]/api/analytics/v2/token-transfers?start_timestamp=1657619455&end_timestamp=1657619456" | jq

The response should look something like this:
{
  "count": 1534,
  "totalValue":<PHONE_NUMBER>25474600,
  "averageValue":<PHONE_NUMBER>25993.9
}

Ping @msarcev.

This has been closed by #529 using the /outputs endpoint.


"No routes" error while using mobile builder

I am attempting to register a new number as a mobileBuilder using the code snippet below. However, I am encountering a "no_routes" error from the registration phase ("/code").
I have tried multiple prepaid numbers from the same provider in Cyprus, but the issue persists.
I'm using numbers that never had a WhatsApp account installed on them if it is relevant.
I can get the SMS using an actual device, so the problem isn't the number itself, I think.
Am I doing something wrong?
Thanks!
Code:
Whatsapp api = Whatsapp.mobileBuilder()
        .newConnection()
        .unregistered()
        .verificationCodeMethod(VerificationCodeMethod.SMS)
        .verificationCodeSupplier(() -> {
            System.out.println("Enter OTP: ");
            var scanner = new Scanner(System.in);
            return CompletableFuture.completedFuture(scanner.nextLine());
        })
        .register(357XXXXXXL)
        .join();

Error:
 Exception in thread "main" java.util.concurrent.CompletionException:
 it.auties.whatsapp.exception.RegistrationException:
 VerificationCodeResponse[number=357XXXXXXX,
 			lid=0, status=ERROR, errorReason=NO_ROUTES, method=null,
 			codeLength=0, notifyAfter=0, retryAfter=3600,
 			voiceLength=0, voiceWait=0, smsWait=0, whatsappOtpWait=0,
 			flashType=0, oldWait=0, securityCodeSet=false,
 			whatsappOtpEligible=false, imageCaptcha=null,
 			audioCaptcha=null]

This is normal. Due to WhatsApp’s risk control, an Authorization parameter is missing in the request header.

Bro, I solved Authorization but it's still 1 hour.
Can we talk? https://t.me/Zqrow


showing feedback when switching connections

we should print a message using the display.py module when switching connections:
In [1]: %load_ext sql

In [2]: %sql duckdb:// --alias one

In [3]: %sql duckdb:// --alias two

In [4]: %sql --connections
Out[4]:
Active connections:
+---------+-----------+-------+
| current |    url    | alias |
+---------+-----------+-------+
|         | duckdb:// |  one  |
|    *    | duckdb:// |  two  |
+---------+-----------+-------+

In [5]: %sql one # NO MESSAGE DISPLAYED!

In [6]: %sql --connections
Out[6]:
Active connections:
+---------+-----------+-------+
| current |    url    | alias |
+---------+-----------+-------+
|    *    | duckdb:// |  one  |
|         | duckdb:// |  two  |
+---------+-----------+-------+

I can see what I can do. Where is the code that currently outputs stuff?

Nevermind just found it

is the text that you have in the issue currently what it outputs? or what you want to be outputted?

currently, there's no output so we should print something like
``
Switching to connection {connection name}


#366 [babel-plugin-fela] Resolve css prop on HTML nodes

closes #366

👍  * 100
This is my favorite API in glamorous, emotion, etc.
Will this be subject to the same optimizations that createComponent gets from the babel-plugin?

The first version won't really benefit from the optimizations, but further versions will do!

Any estimation on when this is going to land?

Pretty sure this will land in November, but not exactly sure how fast I get it done.


Remove unshare fs type mount argument

The fs type is not needed when updating the mount propagation.
Remove it from the config and replace with a None/NULL.

@bzld Checked this after your hint. Thanks.


Update Wiki please

You can update the functions in the wiki, I found it very useful, thanks a lot

OK

Waiting for you to update the wiki I encountered a problem with "@vignette @adjust hue"
This is my config string :
"@adjust sharpen 0 @adjust brightness 0 @adjust contrast 1 @vignette 1 0.15 @adjust hue 0 @adjust saturation 1"
float intensity = mCurrentAdjust.calcIntensity(progress / 100.0f);
mImageGLSurfaceView.setFilterIntensityForIndex(intensity, mCurrentAdjust.indexConfig, true);
But @vignette and @adjust hue notworking, pls tell me why, and how can i fix it
Sorry, my bad E
Thanks u so much

Hi, you can download https://github.com/wysaid/cge-tools
Then the rule string can be tested by the checker
@vignette 1 0.15 is just nothing. Change to @vignette 0.5 0.15 and try again.
@adjust hue 0 is nothing too. hue 0 is the origin image.


[Bug]: install.sh fails silently on step Docker

Error Message and Logs
There was no error message. but i dug into the script and found it.
Source code: https://github.com/coollabsio/coolify/blob/main/scripts/install.sh

---------------------------------------------
| Operating System  | ubuntu 24.10
| Docker            | 26.0
| Coolify           | 4.0.0-beta.360
| Helper            | 1.0.2
| Realtime          | 1.0.3
---------------------------------------------

1. Installing required packages (curl, wget, git, jq).
2. Check OpenSSH server configuration.
 - OpenSSH server is installed.
 - SSH PermitRootLogin is enabled.
3. Check Docker Installation.
 - Docker is not installed. Installing Docker. It may take a while.

root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# export DOCKER_VERSION=26.0
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# curl -s https://releases.rancher.com/install-docker/${DOCKER_VERSION}.sh | sh >/dev/null 2>&1
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# docker ps
Command 'docker' not found, but can be installed with:
snap install docker         # version 24.0.5, or
apt  install docker.io      # version 26.1.3-0ubuntu1
apt  install podman-docker  # version 5.0.3+ds1-5ubuntu1
See 'snap info docker' for additional versions.
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# curl -s https://releases.rancher.com/install-docker/26.0.sh | sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu oracular stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
INFO: Searching repository for VERSION '26.0.2'
INFO: apt-cache madison docker-ce | grep '26.0.2' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3

ERROR: '26.0.2' not found amongst apt-cache madison results

root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~#
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# curl -s https://get.docker.com | sh -s -- --version ${DOCKER_VERSION}
# Executing docker install script, commit: 6d51e2cd8c04b38e1c2237820245f4fc262aca6c
+ sh -c apt-get -qq update >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
+ sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu oracular stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get -qq update >/dev/null
INFO: Searching repository for VERSION '26.0'
INFO: apt-cache madison docker-ce | grep '26.0' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3

ERROR: '26.0' not found amongst apt-cache madison results

Steps to Reproduce

Fresh VPS from Digitalocean
run curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
coffee
silence

Example Repository URL
No response
Coolify Version
main
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.10
Additional Information
No response

installing docker is no problem.
#!/bin/bash

# Update the package index
sudo apt-get update

# Install required packages
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common

# Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

# Set up the stable Docker repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Update the package index again
sudo apt-get update

# Install Docker Engine
sudo apt-get install -y docker-ce docker-ce-cli containerd.io

# Add current user to the docker group to run Docker without sudo
sudo usermod -aG docker $USER

# Start and enable Docker service
sudo systemctl start docker
sudo systemctl enable docker

# Install Docker Compose
sudo apt-get install -y docker-compose-plugin

root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# docker -v
Docker version 27.3.1, build ce12230

running the script again was successfull.

same issue here

The problem is that Docker does not support Ubuntu 24.10, so you have to install it manually to make it work. I do not recommend using 24.10 as 24.10 is not LTS so not recommended for production usage, please use the latest LTS release 24.04.


Pod memory hog chaosschedule not working in istio enabled namespace.

Hi team, While running the pod memory hog with chaosscheduler, the helper pods created by the litmus are running into the error state. We noticed this happening for namespace with istio injection enabled. There are option to add annotations to runner pod such that we can disable the istio proxy for chaos runner pods , however I can not find any configuration such that I can add annotations to helper pods as well, can you please help if we can configure the annotations for helper pods created by litmus chaos test as well?
Or if there is any other way we can make the pod memory hog chaosschedule work with istio side car containers.
Following is my chaosschedule configurations:
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosSchedule
metadata:
name: schedule-pod-memory-hog
namespace: default
spec:
engineTemplateSpec:
annotationCheck: "false"
appinfo:
appkind: deployment
applabel: app=productpage
appns: default
chaosServiceAccount: pod-memory-hog-sa
engineState: active
experiments:
- name: pod-memory-hog
spec:
components:
env:
- name: STRESS_IMAGE
value: alexeiled/stress-ng:latest-ubuntu
- name: MEMORY_CONSUMPTION
value: "500"
- name: TOTAL_CHAOS_DURATION
value: "60"
jobCleanUpPolicy: delete
schedule:
repeat:
properties:
minChaosInterval:
minute:
everyNthMinute: 2
scheduleState: active
Following is the error log seen in the litmus chaos helper pods:
level=fatal msg="helper pod failed, err: Get "https://<IP_ADDRESS>:443/api/v1/namespaces/default/pods/productpage-v1-5fcf699874-rc4kp\": dial tcp <IP_ADDRESS>:443: connect: connection refused"
Here productpage-v1-5fcf699874-rc4kp is the application under test for chaos.

Hi @pawanphalak ,
Please follow this FAQ, it should solve your issue - https://litmuschaos.github.io/litmus/experiments/troubleshooting/experiments/#experiment-failed-for-the-istio-enabled-namespaces


Handle history on exit correctly (fixes #63)

The candidates which should get added to history need to be inserted into the minibuffer. This PR also handles adding multi selections to history.

I checked out this fix & can confirm that with it, selectrum saves the correct history items now.


"Closes: #1" Updated validations.py python script

Updated validations.py python script
Fixed the behavior of validate_user function in validations.py
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


Fix default parameter parsing in the aliases parser

This pull request fixes alias parser so it correctly parses the default values and works if param stream is empty.
Previously format_stream was depended on the alias_stream, which means that if param_stream was empty, we would end up in an infinite loop and never parse the alias_stream. That's not the desired behavior, since we want to parse and use the default param values even if the param_stream is empty.

so much voodoo ...
+1


setting cluster information uri to /cluster/info

The cluster uri in the cluster() method from desktop/libs/hadoop/src/hadoop/yarn/resource_manager_api.py redirects to cluster/info for information about cluster. In this fix we set uri to 'cluster/info' to avoid redirect failing on standby resourcemanager.

Thanks for the PR!
These 2 urls are normally the same:
http://hadoop.apache.org/docs/r2.6.0/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_Information_API
To be sure we understand correctly, you are are saying that the HA redirect does not work properly on /cluster but we should try to talk to /cluser/info?

We have been using Hue packaged without this commit: 20a6d2c0c71bcdb0e30b0f4c55ff676e980a40bd and in this case calling /cluster/info resolved problem with HA redirect.
/cluster/info and /cluster results in the same content but /cluster/info is not redirected by filter: https://github.com/apache/hadoop/blob/master/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebAppFilter.java#L89
With current Hue code in master this pull request can be dropped.

Ha I see!
/cluster/info seems more obvious than /cluster so it is still fine to change it

And it is indeed pretty useful: https://groups.google.com/a/cloudera.org/forum/#!topic/hue-user/oAG1zmsCKWY


fix: make injectQuery idempotent

Description
This fixes the following issue with the injectQuery util:
injectQuery('/foo?import', 'import');
// -> '/foo?import&import'

I ran into this because we're experimenting with using Vite for Remix. Remix injects a script tag in the HTML from the server to load all the JS modules for the current route before running the app, e.g.:
<script type="module" async="">
import * as route0 from<EMAIL_ADDRESS>import * as route1 from<EMAIL_ADDRESS>window.__remixRouteModules = {"root":route0,"routes/_index":route1};

import("/@fs/path/to/app/entry.client.tsx");
</script>

However, this fails in Vite when using MDX routes since the Vite dev server responds with the raw MDX content.
<script type="module" async="">
import * as route0 from<EMAIL_ADDRESS>import * as route1 from<EMAIL_ADDRESS>// <-- THIS IS AN ERROR 😭
window.__remixRouteModules = {"root":route0,"routes/mdx":route1};

import("/@fs/path/to/app/entry.client.tsx");
</script>

To fix this, I appended ?import to the route module URLs in the Remix manifest in dev mode so that the Vite dev server responds with the compiled JS. This ensures that module URLs in the Remix manifest are valid JS modules, even when using other file formats. This means the injected script tag is now correct:
<script type="module" async="">
import * as route0 from<EMAIL_ADDRESS>import * as route1 from "/@fs/path/to/app/routes/mdx/route.mdx?import"; // <-- THIS WORKS! 🎉
window.__remixRouteModules = {"root":route0,"routes/mdx":route1};

import("/@fs/path/to/app/entry.client.tsx");
</script>

However this causes issues when these URLs are imported within Remix library code because Vite transforms the import statement to use injectQuery which turns the query string into ?import&import.
To fix this, I've updated injectQuery to detect whether the queryToInject argument is already present in the search params and that it has a blank value, and if so, first delete any values for queryToInject from the search params to avoid adding it again.
What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the PR Title Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[x] Ideally, include relevant tests that fail without this PR but pass with it.

@bluwy Thanks for the feedback! I've made the changes you've asked for, let me know what you think.

I think it would be ok to accept the performance hit to injectQuery, but IIUC, last time we got confronted with this issue, we decided to avoid pushing for the use of ?import in downstream projects (as it may be removed at one point in the future). And as a temporal patch, we got the extension added to our harcoded list of known JS sources here:

https://github.com/vitejs/vite/pull/10679

Maybe mdx should be added too for now?

Hmm if that works I'm also ok with that. I thought there would be more to the MDX processing done, but so far I've only seen MDX always being treated as JS, so it should be fine.

I think we can add mdx to the known types.

I appended ?import to the route module URLs in the Remix manifest in dev mode

Is this by hand or by a transform hook in a plugin? Would calling viteServer.transformIndexHtml or viteServer.transformRequest before/after injecting the script tag work?

I'm just coming back to this now that we've merged the unstable Vite support PR into Remix. I'm not sure what changed but I'm finding that the ?import&import query string is not causing issues for us anymore. I'm closing this since nobody else was asking for this. Thanks for the help!


Signing prop page

Add support to show the Signing property page and implement InterceptedProjectPropertiesProvider (allows to write a single property value provider to validate and/or transform a property value)
Fixes #265
NOTE: This PR depends on bunch of source and test changes from @natidea's PR https://github.com/dotnet/roslyn-project-system/pull/283/ - I have just cloned these files for now. Once that PR has been merged in, I'll remove the cloned copies in my branch.

Tagging @dotnet/project-system for review

I have pushed a commit addressing the PR feedback.
Additionally, can someone take a look at VSO PR for a trivial fix in SigningPropPage here

@dotnet-bot retest this please

@dotnet/project-system I have merged latest sources and deleted the cloned code. Can you please take another look so I can unblock @srivatsn ?

Ping?

👍


Should use the locally install Dart SDK for – everything

Perhaps with the option of downloading.
All other tools will be using the installed SDK. We want to avoid users having two different SDKs with perhaps inconsistent behavior.

+1 to this.
To be fair, I don't know how easy this would be, though. Might want to chat with Bazel team.

We want to hold on this for a while. Dealing with variances in locally installed SDK adds a complexity we don't want until we're stable in other areas.

It would be a nice --define flag though, to make sure this is supported, i.e.
--define DART_SDK=local

Just to clarify, what problem are we solving? Download time? It should only ever be downloaded once then cached. HD space? The SDK's pretty small by 2016 storage space standards.
The problem with allowing a user-specified SDK is that the rules are pretty SDK-dependent. We've been broken more times than I can count due to a small changes to SDK tool behaviour.

The bazel caching isn't nearly as aggressive as we'd hope. You can end up redownloading it multiple times. It also get a copy per workspace which can start to add up.
In any case you're right that the version variances make this something we aren't going after anytime soon.

Do you have repro instructions on how to trigger a re-download?


Please support for ES 5.x

Hello,
It works with Elastic-search  2.x so well but can not work ES 5.x
Thanks,

Thank you for using the project - we are very glad it works well for you! :)
We are definitely going to add support for ES5.x and Kafka 0.10.x - but it will take a few weeks to get there.
Stay tuned!

Hi
I am waiting for support for ES 5.x as well

it's coming .... just slowly :)

ES5.x is now supported!


VaList struct might not have foreign-function safe representation

Currently when I do:
extern crate va_list;

extern {
    fn foo(args: va_list::VaList);
}

I get the following message from rustc:
% cargo build
   Compiling ffi-play v0.1.0 (file:///Users/fklock/Dev/Rust/ffi-play)
src/lib.rs:4:18: 4:33 warning: found struct without foreign-function-safe representation annotation in foreign module, consider adding a #[repr(C)] attribute to the type, #[warn(improper_ctypes)] on by default
src/lib.rs:4     fn foo(args: va_list::VaList);
                              ^~~~~~~~~~~~~~~

At first I took this as a sign that this crate merely needs to add #[repr(C)] attribute(s) in appropriate places.
However, eddyb on IRC pointed out that this might not suffice: https://botbot.me/mozilla/rust-internals/2016-02-16/?msg=60150124&page=4
In any case, it seems like the compiler warning is going to (perhaps rightfully) scare off users of this crate.  So you may want to address it.

Working with va_args is always going to be very unsafe. It relies on the particular implementation of the va_* macros. I've been through the implementation and I'm pretty sure this warning is a false-positive.

Fixed with dac37e7 (hopefully for all architectures)


fix CfgFileTestCase to not connect to hibernate.org

Linux Build 5835 is now running using a merge of 3affb851c335a9cbfee228df2be7677f05fff645

Windows Build 944 is now running using a merge of 3affb851c335a9cbfee228df2be7677f05fff645

Linux with security manager Build 820 is now running using a merge of 3affb851c335a9cbfee228df2be7677f05fff645

Linux with security manager Build 820 outcome was SUCCESS using a merge of 3affb851c335a9cbfee228df2be7677f05fff645
Summary: Tests passed: 839, ignored: 316 Build time: 0:05:07

Linux Build 5835 outcome was SUCCESS using a merge of 3affb851c335a9cbfee228df2be7677f05fff645
Summary: Tests passed: 2921, ignored: 312, muted: 1 Build time: 0:49:29

Windows Build 944 outcome was FAILURE using a merge of 3affb851c335a9cbfee228df2be7677f05fff645
Summary: Tests failed: 1 (1 new), passed: 2921, ignored: 312 Build time: 1:02:43
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.integration.ejb.stateful.passivation.PassivationTestCase.testPassivationMaxSize: javax.ejb.EJBException: java.lang.IllegalStateException: WFLYCLEJBINF0008: Stateful session bean {[59, 117, 11, -64, 113, 33, 74, -47, -83, 115, -62, 121, -74, -125, 8, -49]} refers to an invalid bean group 1b8e28a5-1705-4569-88d7-618808959cd8
	at org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanFactory.createBean(InfinispanBeanFactory.java:76)
	at org.wildfly.clustering.ejb.infinispan.InfinispanBeanManager.findBean(InfinispanBeanManager.java:266)


x64 large files problem

Hello,
Version: 1.43.0 (user setup)
Commit: 78a4c91400152c0f27ba4d363eb56d2835f9903a
Date: 2020-03-09T19:47:57.235Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363
I was trying to open a 1GB file in vscode with "files.maxMemoryForLargeFilesMB": 11000
but i get :
the file is not displayed in editor because its too large.
Does this issue occur when all extensions are disabled?: Yes
you mentioned that there is no file limit for x64 build.

I searched previous errors in github, but there is no fix. how to fix this ?

@ymg2006 I guess the file has a lot of lines?

@rebornix  of course it has a lot of lines.


Retool data source approval: check for duplicates

Context
Follows #74
We have a retool interface for data source intake. Generally, we're taking steps to reduce the number of duplicates that make it into this pipeline. However, if one makes it in, I'd like to save the reviewer time.
Requirements

[ ] check whether the URL is a duplicate using our endpoint; if it is, add a text label saying "Duplicate URL(s) found with <status, status> status"
[ ] it would then be incumbent upon the checker to locate the other source(s) and see if any new information has been added. but, information is power!

Open questions

Does this make the workflow notably slower? Can we do it in the background with a little "checking for duplicates..." message?

So I've found myself with an interesting dilemma: the unique url checker was designed to check for unique urls already in the database. The issue, at least right now, with the data source intake form is that anything in the intake form is, by definition, already in the database -- just not approved.
Now there can be some workarounds to this -- I could, for example, add a filter to check only for ones which are approved or rejected, and make that customizable.
So that if the user wants this checked against all data sources, they can have that. But if they only want it checked against approved data sources, they can have that as well.
 I suppose that retool could just ignore anything returned with an intake status? I don't think we the filter—that sounds a little fancy.

@josh-chamberlain Well, that took less time than I thought it would. Done! It's a bit challenging to test right now just because there are so many entries pending approval, so I'd consider this to be in an incomplete state of done-ness, as yet.

@maxachis excellent, thank you!


Simplify test which is problematic on 32bit watch

I can't reproduce the issue but thinking this might help the 32bit watch a bit...

@swift-ci please smoke test and merge


kubeconfig context is not changing after kconnect to command

After setting up the alias for different clusters and trying to use the kconnect to  name, the KUBECONFIG has not updated , as a result the correct cluster is not connected after successful command execution.
The KUBECONFIG context should have updated with current alias name.
Steps to reproduce:
kconnect-kconnect-saml-eks-XX-YY-us-east-1@kconnect-eks-XX-YY-us-east-1:default) XXXXXXXX@MACLB193610   kconnect to AAA-us-east-2
INFO[0000] kconnect - the kubernetes cli (0.1.1)
INFO[0000] authenticating user                           command=to provider=saml
INFO[0000] cached creds expired or force enabled, renewing  command=to provider=saml
INFO selected role: arn:aws:iam::ZZZZZ:role/ZZZZZ
INFO Requesting AWS credentials using SAML
INFO[0004] getting cluster arn:aws:eks:us-east-2:ZZZZ:cluster/AAA-AAA-us-east-2 using eks provider  command=to
INFO[0004] getting EKS cluster with id: arn:aws:eks:us-east-2:XXXXXX:cluster/AAA-AAA-us-east-2  command=to provider=eks
INFO kubeconfig updated:                           package=kubeconfig
(⎈ |kconnect-kconnect-saml-eks-XXX-XXX-us-east-1@kconnect-eks-XXX-XX-us-east-1:default
the last list should have been (expected result:)
(⎈ |kconnect-kconnect-saml-eks-AAA-AAA-us-east-1@kconnect-eks-AAA-AAA-us-east-1:default

Thanks @gseshagirirao . That should set the current context by default....i'll investigate.

Hi @richardcase , I believe this is because kconnect is checking if the aws credentials are expired, and if not then it won't prompt for new credentials. This also happens when reconnecting to the same region before credentials have expired. I think that even if credentials aren't expired, kconnect should renew the token, and prompt for role selection every time kconnect is run. Say for example a user wanted to connect to the same cluster with a different IAM role (eks), at the moment this would be quite difficult to do. Thoughts?

@seankelly001 - if we use a unique profile name for provider/region/role would that be enough so that we can then use the cache credentials? Or as you say is it easier if we just never use cached credentials and ask for the username/password every time?

HI Richard, I actually commented on the wrong issue, apologies.. I was referring to issue #108


Rational.equals very slow for LongRational

Comparing two LongRational using equals/==/=== is much slower than it has to be.
Here is a little benchmark that compares == to a "fastEquals" method
Rational primitive operations benchmark Integer 12345 67890
Benchmark for a == b (20 calls in 311.3 ms)
  Time:    58.94 ns   95% CI 58.29 ns - 59.58 ns   (n=20)
  Garbage: 0.1907 ns   (n=1 sweeps measured)
Benchmark for a fastEquals b (20 calls in 495.0 ms)
  Time:    5.889 ns   95% CI 5.852 ns - 5.925 ns   (n=20)

And here is the "fastEquals" method:
def fastEquals(a:Rational, b:Rational) = (a, b) match {
  case (LongRational(an,ad), LongRational(bn, bd)) ⇒
    an == bn && ad == bd
  case _ ⇒
    a == b
}

I think the current equals method is less than optimal since it uses RationalLike
override def equals(that: Any): Boolean = that match {
  case that: Real => this == that.toRational
  case that: Algebraic => that == this
  case that: RationalLike => num == that.num && den == that.den // <= this is boxing
  ...
}

Overriding equals for LongRational to check rhs for LongRational should fix this.

Sounds like an easy win. :+1:


Refactoring for excluding redundant BottomNavigation setups in fragments

Is your feature request related to a problem? Please describe.
After #2983 bottom navigation for all the fragments is setup only once in the MainActivity only but there is still code which sets it up in those fragments [ homeFragment,OfflineEditFragment ... more ] redundently once they are swooped in the MainActivity.
Describe the solution you'd like
All those code sections should be refactored or removed!!

@LuGO0 Since you reported, are you working already on this ?

Yeah Im on it


doc: polish http/upgrades documentation

Signed-off-by: spacewander<EMAIL_ADDRESS>
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Commit Message: polish http/upgrades documentation
Additional Description:
Risk Level: N/A
Testing: N/A
Docs Changes: Yes
Release Notes: N/A
Platform Specific Features: N/A
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

Diff:

Diff:


[Modal] Modal triggers click on elements detached from DOM

I'm using the search module inside a modal and everything's working fine if I use the keyboard to select one of the search results, but if I select it using the mouse the modal closes together with the search dropdown.
This is how I initialize the search module:
$('.searchTeam').search(
    {
        type : 'standard',
        source : customers,
        searchFields : [
            'title',
            'description'
        ],
        onSelect : function(result, response)
        {
            $scope.callback({recipient : result});
        }
    }
)

And this is how I initialize the modal:
$('#modalMessages')
    .modal({
        onApprove : function() { return false; }
    })
    .modal('show');

Can you create a test case I can use to help debug. There's a jsfiddle to fork in the readme

I'll try to create a test case ASAP.

http://jsfiddle.net/cspeer/q2pb0qkd/2/
In the search box all possible results start with an A. Make sure to select a result by using your mouse!
Thanks :)

@cspeer Thank you so much for providing a test case, I really had no time to do that.

Regardless of where you put the sidebar you will need to wrap the "pushable content" in an element with the class "pusher"
The init script is forgiving and will create it for you but it's a huge performance drop to modify DOM on page load

@siannone sure :)
Any idea what's causing this @jlukic and/or a quick workaround?

It looks like search results are removed from dom before click bubbles to dimmer causing this check to fail.

Hmm,
I "worked around" it by setting the modal to be non-closable. That fixes my problem for now.
Thanks a lot for your awesome work @jlukic !

Fixed in next.
You could try using the source from next for now, or wait for it to come out.
There's also another option to overwrite internal methods per-module that i never really discussed anywhere but could be used here.
$('.modal').modal('internal', 'event click', function(event) {
  var
    $target   = $(event.target),
    isInModal = ($target.closest($module).length > 0),
    isInDOM   = $.contains(document.documentElement, event.target)
  ;
  if(!isInModal && isInDOM) {
    module.debug('Dimmer clicked, hiding all modals');
    if( module.is.active() ) {
      module.remove.clickaway();
      if(settings.allowMultiple) {
        module.hide();
      }
      else {
        module.hideAll();
      }
    }
  }
});

@jlukic Thank you for your amazing job!


feat(nav): add support for nested nav

Description
Updated dynamic plugin configuration data type to include a menuItems field for navigation customization.
Which issue(s) does this PR fix

Fixes RHIDP-3649
This PR depends on this backstage-plugins PR.

PR acceptance criteria
Please make sure that the following steps are complete:

[ ] GitHub Actions are completed and successful
[x] Unit Tests are updated and passing
[ ] E2E Tests are updated and passing
[x] Documentation is updated if necessary (requirement for new features)
[x] Add a screenshot if the change is UX/UI related

Todo

Fix e2e tests
Add unit tests

How to test changes / Special notes to the reviewer

Config for testing.
dynamicPlugins:
  rootDirectory: dynamic-plugins-root
  frontend:
    janus-idp.backstage-plugin-rbac:
      appIcons:
      - name: rbacIcon
        importName: RbacIcon
        module: RbacPlugin
      dynamicRoutes:
      - path: /rbac
        module: RbacPlugin
        importName: RbacPage
      menuItems:
        rbac:
          parent: admin
          icon: rbacIcon
          priority: 0
        admin:
          title: Administration
          icon: adminIcon
          priority: 1
    janus-idp.backstage-plugin-metrics:
      dynamicRoutes:
        - path: /metrics/users
          importName: MetricsUsersPage
        - path: /metrics/usage
          importName: MetricsUsagePage
      menuItems:
        metrics:
          title: Metrics
          parent: admin
          icon: queryStats
          priority: -1
        admin:
          title: Administration
          icon: adminIcon
          priority: 1
        users:
          parent: metrics
          title: Users
        usage:
          parent: metrics
          title: Usage
    janus-idp.backstage-plugin-ocm:
      appIcons:
      - name: ocmIcon
        importName: OcmIcon
      dynamicRoutes:
      ...
      menuItems:
        favorites:
          title: Favorites
          icon: dashboard
          priority: 0
        ocm:
          parent: favorites
          priority: 0
      mountPoints:
      ...
    backstage.plugin-techdocs:
      routeBindings:
        ...
      dynamicRoutes:
      ...
      menuItems:
        favorites:
          title: Favorites
          priority: 0
        docs:
          parent: favorites
          priority: 1
      mountPoints:
      ...
    backstage.plugin-lighthouse:
      appIcons:
      - name: lighthouse
        importName: LighthouseIcon
      dynamicRoutes:
      - path: /lighthouse
        importName: LighthousePage
        menuItem:
          icon: lighthouse
          text: Lighthouse
      ...
    internal.plugin-todo-list:
      dynamicRoutes:
      - path: /todolist
        importName: TodoListPage
      menuItems:
        todolist:
          icon: list
          title: Todo List
    backstage.plugin-bazaar:
      dynamicRoutes:
        - path: /bazaar
          importName: BazaarPage
      menuItems:
        bazaar:
          icon: store_front
          title: Bazaar

Screen recording:
https://github.com/user-attachments/assets/6ff1347e-fff3-4260-99b7-150902b8c68f

@ciiay thank you for implementing this!
A quick note: The padding between the buttons in the expanded area seems a bit too large. Could we adjust it to match the design specifications?

/test e2e-tests

Thank you @ciiay , looks good to me!
To clarify, we'd like to keep the sub-navigation under the "Administration" button, which currently includes the RBAC and Plugins pages, but exclude the "Metrics" button since it hasn't been implemented yet. We'll add the "Licensing" feature there as well once it's implemented (Figma).

Thank you @ciiay , looks good to me! To clarify, we'd like to keep the sub-navigation under the "Administration" button, which currently includes the RBAC and Plugins pages, but exclude the "Metrics" button since it hasn't been implemented yet. We'll add the "Licensing" feature there as well once it's implemented (Figma).

Hi @ShiranHi , thanks for the information. The Metrics menu item is there only for a display of 3rd level menu item. And it's coming from only the configuration, nothing from the code, so no worries 😄

/retest

/cherrypick 1.3.x

/cherrypick 1.3.x


feat: add poethepoet tasks :sparkles:

coverage: 85.207%. remained the same
when pulling 694116efe3e3f92dd555bb80196d5500eb9fd36b on feature/128-poethepoet
into 45bf94fb254d2feb2505999361e58a08c3f3db60 on main.


missing docs

hi where is all the documentation regarding classes and JSON structures returned by your various javascript functions for ConnectyCube ?
for example  Retrieve Users By Full Name --->
const searchParams = { full_name: 'Marvin Samuel' };
// JS SDK v2
ConnectyCube.users
.get(searchParams)
.then(result => {})
.catch(error => {});
what is the result? cannot see how anybody can build a system without this info.

You can find detailed information on the site: https://developers.connectycube.com/?id=getting-started
JS SDK:  https://developers.connectycube.com/js/authentication-and-users?id=retrieve-users
Server API:  https://developers.connectycube.com/server/users?id=retrieve-users-by-full-name

Hi @krisbaum74
if it helps  - the JS SDK is a simple wrapper around REST API,
so anything is returned via REST API - is the same what JS SDK returns to a user
The REST API response format can be found here https://developers.connectycube.com/server/users
Please let me know if you need any help

@krisbaum74 thank you that you have pointed on some missunderstands regarding our docs. We will add links to the REST API's response for each method.

im also getting bugs on the  chat.dialog endpoint its not returning all my dialogs, it just returns 1 and repeats it, plus the 'name' is not correct.
can also you please point me to some live actual working websites of people using this ConnectyCube system?
the API documentation is also incomplete. it doesnt detail filters, all the responses, or much info on the parameters required for each call..

Hi @krisbaum74
if it helps - the JS SDK is a simple wrapper around REST API,
so anything is returned via REST API - is the same what JS SDK returns to a user
The REST API response format can be found here https://developers.connectycube.com/server/users
Please let me know if you need any help

thankyou. Are you actually using ConnectyCube or do you work for them?

https://developers.connectycube.com/js/authentication-and-users?id=retrieve-users


update Activiti/activiti-cloud-connectors to develop

UpdateBot pushed version changes from the source code in repository: Activiti/activiti-cloud-connectors ref: develop

UpdateBot commands:
updatebot push --ref develop https://github.com/Activiti/activiti-cloud-connectors.git


Is there a way to add the user's profile picture?

Is there a way to add the user's profile picture?

looks good, would you mind implement it and submit a pull request?
would be amazing!
simon :heart:

@SuperboltStudios see the documentation here: https://developers.google.com/places/web-service/details#PlaceDetailsResponses

@SuperboltStudios I know how to do it, can you come up with a nice way for me returning an html structure, which is highly customizable for somebody who knows enough css?

1 month passed without an answer.


Support of Swift Package Manager

Adds Package.swift file which enables usage with SPM and closes #57.
Note, that the most correct usage with SPM will be possible only when there is new release that includes Package.swift. Until then, dependency can be added by branch or commit hash which is not allowed in published packages.

Thanks a lot @TwoDollarsEsq for your contribution


Bump k8s and tools

Supersedes the dependabot PRs.

/hold
controller-runtime v0.18.5 is incompatible with<EMAIL_ADDRESS>


Add an option to flatten all anonymous structs in map

Flatten anonymous structs in map without write struct:",flatten" everywhere by enable FlattenAnonymous

Coverage remained the same at 100.0% when pulling 4a82dbb3ba61afa20b4054789455dc8120f977e2 on yiplee:flatten_anonymous into ebf56d35bba727c68ac77f56f2fcf90b181851aa on fatih:master.

Coverage remained the same at 100.0% when pulling 4a82dbb3ba61afa20b4054789455dc8120f977e2 on yiplee:flatten_anonymous into ebf56d35bba727c68ac77f56f2fcf90b181851aa on fatih:master.

Hi,
Unfortunately, I'm archiving this project and will no longer maintaining it. For more information, please read my blog post: Taking an indefinite sabbatical from my projects.
Thanks for the feedback and contribution.


ibc: prevent invalid Height from being deserialised

Change revision_height from u64 to NonZeroU64 to make invalid heights
(ones where revision_height is zero) impossible to represent.  This
makes borsh and serde deserialisation fail when given invalid height
(while in the past they would construct an invalid object).

PR author checklist:

[x] Added changelog entry, using unclog.
[x] Added tests.
[x] Linked to GitHub issue.
[x] Updated code comments and documentation (e.g., docs/).
[ ] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

@Farhad-Shabani

Thanks for the PR @mina86.
We intend to change this behavior via #603. To summarize, ics-02 allows zero for heights. It is the ics-07 (tmclient) that doesn't allow zero for heights. Hence this validation should be client specific.


Raise error while throw=False

I hope I will find my issue and close this issue myself but I post already the issue.
I use dx.diffeqsolve and lx.linear_solve to integrate a geodesic equation. In both function I set throw=False and I check solution.result to handle the error on my side. However it still raise errors as shown below.
More details: I use dx.ODETerm, dx.Dopri5, dx.PIDController, lx.JacobianLinearOperator, lx.AutoLinearSolver(well_posed=False)
2024-01-11 18:10:46.719440: W external/xla/xla/service/gpu/runtime/support.cc:58] Intercepted XLA runtime error:
INTERNAL: CpuCallback error: EqxRuntimeError: The linear solver returned non-finite (NaN or inf) output. This usually means that the
operator was not well-posed, and that the solver does not support this.

If you are trying solve a linear least-squares problem then you should pass
`solver=AutoLinearSolver(well_posed=False)`. By default `lineax.linear_solve`
assumes that the operator is square and nonsingular.

If you *were* expecting this solver to work with this operator, then it may be because:

(a) the operator is singular, and your code has a bug; or

(b) the operator was nearly singular (i.e. it had a high condition number:
    `jnp.linalg.cond(operator.as_matrix())` is large), and the solver suffered from
    numerical instability issues; or

(c) the operator is declared to exhibit a certain property (e.g. positive definiteness)
    that is does not actually satisfy.

At:
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/equinox/_errors.py(70): raises
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(262): _flat_callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(53): pure_callback_impl
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(192): _callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/mlir.py(2367): _wrapped_callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py(1151): __call__
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/profiler.py(336): wrapper
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py(2806): call
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(538): call
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(566): cpp_call_fallback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(569): __call__
  /home/mgeiger/git/test/train_regression.py(241): train
  /home/mgeiger/git/test/train_regression.py(274): <module>

2024-01-11 18:10:46.719782: E external/xla/xla/pjrt/pjrt_stream_executor_client.cc:2732] Execution of replica 0 failed: INTERNAL: Failed to execute XLA Runtime executable: run time error: custom call 'xla.gpu.custom_call' failed: CpuCallback error: EqxRuntimeError: The linear solver returned non-finite (NaN or inf) output. This usually means that the
operator was not well-posed, and that the solver does not support this.

If you are trying solve a linear least-squares problem then you should pass
`solver=AutoLinearSolver(well_posed=False)`. By default `lineax.linear_solve`
assumes that the operator is square and nonsingular.

If you *were* expecting this solver to work with this operator, then it may be because:

(a) the operator is singular, and your code has a bug; or

(b) the operator was nearly singular (i.e. it had a high condition number:
    `jnp.linalg.cond(operator.as_matrix())` is large), and the solver suffered from
    numerical instability issues; or

(c) the operator is declared to exhibit a certain property (e.g. positive definiteness)
    that is does not actually satisfy.

At:
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/equinox/_errors.py(70): raises
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(262): _flat_callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(53): pure_callback_impl
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(192): _callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/mlir.py(2367): _wrapped_callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py(1151): __call__
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/profiler.py(336): wrapper
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py(2806): call
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(538): call
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(566): cpp_call_fallback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(569): __call__
  /home/mgeiger/git/test/train_regression.py(241): train
  /home/mgeiger/git/test/train_regression.py(274): <module>
; current tracing scope: custom-call.54; current profiling annotation: XlaModule:#hlo_module=jit_update,program_id=773#.
Traceback (most recent call last):
  File "/home/mgeiger/git/test/train_regression.py", line 274, in <module>
    with open(logfile, "at") as fhandle:
^^^^^^^
  File "/home/mgeiger/git/test/train_regression.py", line 241, in train

  File "/home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py", line 569, in __call__
    return self._call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py", line 566, in cpp_call_fallback
    outs, _, _ = Compiled.call(params, *args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py", line 538, in call
    out_flat = params.executable.call(*args_flat)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py", line 2806, in call
    return self.unsafe_call(*args)  # pylint: disable=not-callable
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/profiler.py", line 336, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py", line 1151, in __call__
    results = self.xla_executable.execute_sharded(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jaxlib.xla_extension.XlaRuntimeError: INTERNAL: Failed to execute XLA Runtime executable: run time error: custom call 'xla.gpu.custom_call' failed: CpuCallback error: EqxRuntimeError: The linear solver returned non-finite (NaN or inf) output. This usually means that the
operator was not well-posed, and that the solver does not support this.

If you are trying solve a linear least-squares problem then you should pass
`solver=AutoLinearSolver(well_posed=False)`. By default `lineax.linear_solve`
assumes that the operator is square and nonsingular.

If you *were* expecting this solver to work with this operator, then it may be because:

(a) the operator is singular, and your code has a bug; or

(b) the operator was nearly singular (i.e. it had a high condition number:
    `jnp.linalg.cond(operator.as_matrix())` is large), and the solver suffered from
    numerical instability issues; or

(c) the operator is declared to exhibit a certain property (e.g. positive definiteness)
    that is does not actually satisfy.

At:
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/equinox/_errors.py(70): raises
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(262): _flat_callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(53): pure_callback_impl
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/callback.py(192): _callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/mlir.py(2367): _wrapped_callback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py(1151): __call__
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/profiler.py(336): wrapper
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/interpreters/pxla.py(2806): call
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(538): call
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(566): cpp_call_fallback
  /home/mgeiger/git/test/.venv/lib/python3.11/site-packages/jax/_src/stages.py(569): __call__
  /home/mgeiger/git/test/train_regression.py(241): train
  /home/mgeiger/git/test/train_regression.py(274): <module>
; current tracing scope: custom-call.54; current profiling annotation: XlaModule:#hlo_module=jit_update,program_id=773#.

Ok I can see in https://github.com/google/lineax/blob/main/lineax/_solve.py#L234 that it comes from the jvp rule. I guess it's hard/impossible to properly handle errors in the backward pass :/
I understand why you did like that, that's kind of neat

Yeah, unfortunately there's no good place to pipe errors to if they occur in the backward pass.
(Unrelatedly, if you have an equinox.filter_jit up at the top level, then I think it should filter out a lot of the noise in that error message.)


onyo mv of an asset results in a suboptimal error message

When I attempt to onyo mv a file to a new file name without the use of --rename (see also #38), it results in the following error:
❱ onyo mv groups/dp/aqw/laptop_lenovo_T490.abc123 groups/dp/aqw/laptop_lenovo_T490.abc1234
ERROR:onyo:laptop_lenovo_T490.abc123 -> laptop_lenovo_T490.abc1234 no renaming allowed.

The error message is vague, and merely states "no renaming allowed". Renaming of what? I can successfully rename directories, so I think onyo means that onyo assets are not allowed to be renamed without the use of the --rename flag.
A more helpful message would be to error, stating that onyo assets should not be renamed in normal operation. If you need to change one of the type, make, model, or serial fields, you should use the onyo set key=value command. If you know what you're doing and want to rename the file anyways, you can force the rename by using the --rename flag.

I like this message much better.
The only thing that I note as missing (which is a matter of taste), is the note about onyo set key=value .
Just my 2 cents. Overall it LGTM.

For future reference I created a comment in #15 to add this when implementing onyo set. For now I will not add it to the output, to not confuse users when onyo will be tested.


add LocalRpcMonitorMap serving local history

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
@havardpe please review

The map might not need to keep an extra service mapping object (the managed rpc server also has this information, but would need to be always present)

@havardpe Please take another look now


JS: AJAX in JavaScript

Description

Creating a tutorial on AJAX in Javascript and discussing the following:

What is AJAX?
How does AJAX Work?
AJAX - The XMLHttpRequest Object
Fetch API

Directory

Javascript/Topics/13.AJAX
Domain
JavaScript
Type of Contribution

[x] Documentation
[ ] Video
[ ] Audio

Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

@paramsiddharth pls assign me this issue 🙂

I wanted to add the section of AJAX XML and AJAX Applications. please assign it to me.
/assign

I wanted to add the section of AJAX XML and AJAX Applications. please assign it to me. /assign

@Surbhi-sinha Please note that a PR for documentation has already been merged. Either extend it, or contribute in another format in your PR. Good luck!

I wanted to add the section of AJAX XML and AJAX Applications. please assign it to me. /assign

@Surbhi-sinha Please note that a PR for documentation has already been merged. Either extend it, or contribute in another format in your PR. Good luck!

I would definitely extend it. @paramsiddharth

@paramsiddharth please this to me

can you guide me how to submit my documentation @paramsiddharth

Of course, @deepak089 ! Please tag me in the General channel for JS in Discord. I'll help you out.


mac-6, mac-9, mac-27 and mac-29 lost external connection from phone device.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
mac-6, mac-9, mac-27 and mac-29 lost external connection from phone device.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Rebooting all machines above to restore all connections.


Compiler warnings with recent gcc

Hi!
The checkcall.hpp shows a lot of compiler warnings if you compile it with a recent gcc version.
checkcall.hpp:182:13: warning: mangled name for 'auto cppc::callChecked(Callable&&, Args&& ...) [with R = cppc::IsNotNullptrReturnCheckPolicy; E = OpenSSLExceptionErrorPolicy; Callable = evp_pkey_ctx_st* (&)(evp_pkey_st*, engine_st*) noexcept; Args = {evp_pkey_st*&, std::nullptr_t}]' will change in C++17 because the exception specification is part of a function type [-Wnoexcept-type]
 inline auto callChecked(Callable&& callable, Args&&... args) {

Plx fix :D

How recent is "recent"? Do you maybe see this gcc bug [1]?
With GCC 8.2.1 I cannot reproduce this. I've tried with std=c++14 and std=c++17. In the first case, my gcc will not even detect the noexcept (as expected) and in the latter case it will simply compile without issue.
Tested with:
GCC 8.2.1
-Wall -Wextra -Wnoexcept-type
Please reopen with more info* an a mwe.
*More info is:

compiler version
precise compiler flags needed to reproduce
minimal working example

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77369

Recent was not so recent, it's gcc 7.3.0 ;)
Thanks for pointing this out!


bug(navigation): swipe back stuck

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
[x] 3.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
In some pages, when swiping to go back, if not swiping all of the way, it is just stuck, showing half of the page you want to close, and half of the parent page. Very odd, especially when it happens only for some pages (consistently for those pages)
Expected behavior:
Transition can never be stuck. either close the page, or show the page, never half and half
Steps to reproduce:
I don't know
Other information:
I have a video showing the issue in one case, but I can't share it publicly. Is there a way to share it with devs only?
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
    Cordova CLI: 6.5.0
    Ionic Framework Version: 3.0.0-beta.3
    Ionic CLI Version: 3.0.0-beta.5
    ios-deploy version: Not installed
    ios-sim version: Not installed
    OS: Windows 10
    Node Version: v6.9.1
    Xcode version: Not installed

Hey, thanks for opening an issue with us! You can share the video to<EMAIL_ADDRESS>but if you can provide a repo we could use to reproduce the issue that would be even better (:

@jgw96 Did you get my emails with the videos?
This specific issue is quite horrible for UX


fix(hive): Update _latest_partition_from_df in HiveEngineSpec to work on tables with multiple indexes

SUMMARY
Fix #14301
DataFrame.ix is deprecated so I replaced it with .iloc.
Since Hive return partition in form ds={partition name}/ds={partition name} for table with multiple indexes, I also change the logic to make it work for this case.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:

AFTER:
No more error
TEST PLAN

Choose a Hive partitioned table by multiple indexes.
Check if /superset/extra_table_metadata return correct result with latest value of indexes.

I tested this in Spark Thrift Server but should also be similar in Hive.

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@dpgaspar Test added.  Seems this time I need approval for workflow to run.

Can you add a test please

Test added. Please let me know if there is anything else I can do.

Thank you for the pointer. I have fixed formatting to pass black. Hope CI will green now.

CI failing with:
superset/models/dashboard.py:174:0: W0125: Using a conditional statement with a constant value (using-constant-test)
seems not related to this PR.

I rebased to master to try make CI green.

@dpgaspar Sorry for direct tag.
Would you mind taking a look at this. I think the test failed is not related to this PR.
Thank you.

@codenamelxl sorry for the delayed review, but I agree with the proposed change here. Would you mind rebasing this PR so we can get it merged?

Thank for the rebase. Sorry for the late reply.


Translate README.md to languages

The problem
We have right now a Chinese version, we could have more at least to populate search results in a number of languages.
Suggestions
Translate to

[ ] Spanish
[ ] German
[ ] Dutch
[ ] Portuguese
[ ] French
[ ] Japanese

I placed the first italian translation of the readme, and backlinked in the official readme.

Thanks!

@terceranexus6 is working on the Japanese translation.

@antoniogamiz and @elenamerelo will be working on the Spanish translation.

I can do a German translation.

Please do that!

Ok, I will do the translation into German.

Hey! I can do the french Readme, i'm not French but i know a little bit of that language and I have a few friends who could help me with the translation, since they study this language.
Do you want me to do it?

Please do it! Thanks a lot.
Or better
S'il vous plait, vous les faites. Merci beaucoup.
And that's the full extent of my knowledge of French...

nohighlight runs htmlify.p6, which needs node and graphviz. Mojolicious run
the local website, which is run from make run. And yes, make html has all
those dependencies.


Code obfuscation prevents decompilation about Avalonia+.netcore3.1

Hi,Do you know any free software that prevents decompilation,or Code obfuscation .
Now i complete my work(Avalonia+.netcore3.1),but it need to do somethig for safe.Considering that it is not very useful, I only need to do low-level shell treatment. i have used confuserEx,but it did not work.
Can you give me a way to do it for free?

CoreRT does a pretty good job on removing MSIL.

CoreRT does a pretty good job on removing MSIL.

thank you ,i will learn and try it.


properly setup mithril with some light webpack building things

Closing because actually, I don't think I want any nodejs dependencies on the project.


autocomplete w/ import breaks when node modules export starts with string

VSCode Version: 1.29.1 (1.29.1)
OS Version: OSX 10.12.6

Steps to Reproduce:

create a node typescript project
npm install querystring
type let m = new Map<string,

Expected:
I would have a Map with string key.  No autocomplete would be preformed since I already have a valid statement
Result:
When you type the , vscode will autocomplete to let spMap = new Map<stringify, and add an import for import { stringify } from 'querystring';.
I haven't tested this with other primitive types, so I only know for sure that it fails with string.

Does this issue occur when all extensions are disabled?: Yes

I can't repo this. What suggestion are shown when you type out string? Is stringify selected?

Ok... I narrowed it down and reproduced it in the insiders build.  It only seems to break when passing a generic param inside a function.

Same thing with a with a custom generic  interface:

This was done without a project open (new window -> new file), but you can see it's auto-completing to String instead of string.


Warnings in HA 2021.12 beta

Version of home_assistant
2021.12.0b3

Version of the custom_component
v1.2.16

Describe the bug
Warnings in HA Startup log
Debug log

2021-12-08 08:46:28 WARNING (MainThread) [homeassistant.helpers.entity] Entity weather.dwd_weather_wuerzburg (<class 'custom_components.dwd_weather.weather.DWDWeather'>) implements device_state_attributes. Please report it to the custom component author.

Just a warning (yet).
See also:
https://community.home-assistant.io/t/2021-12-new-configuration-menu-the-button-entity-and-gorgeous-area-cards/365680/317

Same here with Home Assistant 2021.12.7 stable.

Thanks for the notification! I'll look into this in the next days.


Title

Value: $11,000.00Closes: Thursday, April 19, 2018Location: Clearwater Some in-person work requiredOpportunity DescriptionBackAcceptance CriteriaACHow to ApplyGo to the Opportunity Page, click the Apply button above and submit your proposal by 16:00 PST on Thursday, April 19, 2018.We plan to assign this opportunity by Thursday, April 19, 2018 with work to start on Thursday, April 19, 2018.Proposal Evaluation CriteriaPEC123

This was a test.


Add info about newer servers

The PowerShell and .NET Framework section mentions older server versions, but does not provide guidance about 2016 or 2019, please add something to confirm that they include the necessary software

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

ID: 06faa428-c7b6-ca5c-271e-3f98d9536d4f
Version Independent ID: 63adb39a-c4fa-92bb-480d-59bee8e2dc24
Content: Azure AD Connect: Prerequisites and hardware
Content Source: articles/active-directory/hybrid/how-to-connect-install-prerequisites.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@DeanGross
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@DeanGross
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

Thank for submitting this. I have created a work item for it and will reviewing this in the coming weeks. I am not sure what the timeline will be, so I am going to close this for now. But once I have an update I will drop it in here and let you know.
Thank you!
Bill
#please-close


Get DefaultBranch instead of master

A lot of Github repos are changing their default branch from master to main or other names and so this changes the hard coded branch master to the DefaultBranch returned from the github api.
JIRA
N/A
Overview

[x] Bumped up the version in VERSION file

Testing
Rollout
N/A

@rgarcia friendly ping

thanks! Sorry for the delay. Was on parental leave

@rgarcia no worries. Thank you for the merge. Any chance we can do another release for 0.0.24 ? 😄

@nitrocode just released as v0.0.25


Added code-translation-benchmark

@googlebot I signed it!

@sbmaruf We are now requesting that task authors please include an explicit section in the README.md file called "data source", listing exactly where you got your data from (or explicitly state that you made it up yourself). Many thanks!

@jaehlee are one of the assigned reviewers for this task.  Please provide feedback and be sure to notify me with a formal accept or does not meet criteria by Tuesday June 22 (if you have not already done so).

@gdemelo are one of the assigned reviewers for this task.  Please provide feedback and be sure to notify me with a formal accept or does not meet criteria by Tuesday June 22 (if you have not already done so).

Dear reviewers, please let us know if you find any issue with the dataset so that we can cooperate in case you find any issues.
Just to add a small note, we were not able to provide a larger version of the dataset because of the size limitation of 50k samples per dataset. Since we are providing samples for  210 language pair, we tried to cover as much as possible.
We are always available for any suggestion and modification.
Waiting for your reviews.

Hello, I'm one of the reviewers of the task. Before doing the full review I had few questions that stood out as I looked over the task.

Could the authors expand a bit more on the data acquiring process? README.md indicates the data is from publicly available codes or Codeforces. It would be good to know more details of why this data in particular contains correct / interesting data for code translation tasks.  In particular, I’m slightly concerned about permission and licensing? Did the authors explicitly reach out to owners of Codeforces for the usage?

It seems like the task are auto-generated. I see unnecessary entries both in input and target. e.g. "input": "/**\n * Created by vol on 9/18/14. ... or in target field author id, email and verdict etc. There's personal email address which could be problematic and unnecessary for the task.

What’s the role of the “comment” field in the json with the hash?

Has the authors tried few evaluation on available HuggingFace GPT models or tried Task Testing Notebook to see if the task makes sense to the humans?

Since looking at few examples doesn't seem correct input/target pair, how do the authors or anyone interested in this task make sure they are indeed matching input/target?

The amount of tasks we received this round is tremendous.  With so many tasks to review we have decided to extend the review period to Tuesday, June 29.
Reviewers: if the submitter has made revisions please be sure to notify me with a formal ”accept” or ”does not meet criteria” by Tuesday, June 29  (if you haven't already done so).
this is an automated message

@googlebot I signed it!

@googlebot I consent.

@jaehlee
Thank you for your review.
Here are the answers to your findings following the order in which you responded.

We tried to contact with Codeforces's data owner several times in the last one year. After your review we tried aggressively and finally reached him. He told us to wait for some time, he is very busy at the moment. Though we would like to mention that there are some scrapped codes available in the internet such as in Kaggle, and in Yandex.
Keeping code comments serves the purpose for translation (documentation, or explanations regarding the code which can help the translation task at hand). Table 6 in appendix C of this paper Unsupervised Translation of Programming Languages also suggested that keeping comments can help improve translation quality. So we decided to keep the comments. Considering this the issue becomes process comments to identify problematic comments. The issue of  "processing comments" transforms to identifying the meaning of code comments which seems another big task. Thus we did nothing about the comments in source code.
We sincerely thank you for this finding. We put a hash in the comments from our metadata of processing the task. But accidentally we put the hash object directly instead of the hash digest. We will fix it very soon.
Recently we got access to davinci API from OpenAI. We list the findings and changes in the change log.
We defined two codes as equivalent if they produce same output when provided with same input. Here same input/output means exact string match. Thus the input-target pairs may look quite different.

Change log

We found that stop=["<sample-sep>"] is a critical argument for the api. So we have updated stop_string argument in our task as <sample-sep>.
We have changed the few-shot separator from <sep> to <sample-sep> since it works with the API.
We have updated the "example_input_prefix"="\n{input language}:", and "example_output_prefix"="\n{target language}:". This is done following the code translation example in davinci API.
big-bench pytest passed.

A sample python code that we used for testing prompt format.
import openai

openai.api_key = "{{hidden}}"

prompt = """Python 3:
n=int(input())\r\nl=list(map(int,input().split()))\r\nc=1\r\nm=1\r\nfor i in range(1,n):\r\n    if(l[i]>l[i-1]):\r\n        c=c+1\r\n        if(c>m):\r\n            m=c\r\n    else:\r\n        c=1\r\nprint(m)\r\n
<sample-sep>
Javascript:
var stdin = \"\";\nprocess.stdin.resume();\nprocess.stdin.setEncoding(\"ascii\");\nprocess.stdin.on(\"data\", function(data) {\n  stdin += data;\n});\nprocess.stdin.on(\"end\", function() {\n  main(stdin);\n});\n\n// const stdin = `5\n// 1 7 2 11 15`;\n// main(stdin);\n\n/////////////// ignore above this line ////////////////////\n\nfunction main(stdin) {\n  const sequence = readLine(stdin, 1);\n  const sequenceArray = sequence.split(\" \").map(n => Number(n));\n  let arrays = [];\n  let i = 1;\n  let prev = 0;\n  while (sequenceArray[i]) {\n    const curr = sequenceArray[i - 1];\n    const next = sequenceArray[i];\n\n    if (curr >= next) {\n      arrays.push(sequenceArray.slice(prev, i));\n      prev = i;\n    }\n\n    i++;\n\n    if (!sequenceArray[i]) {\n      arrays.push(sequenceArray.slice(prev, i));\n    }\n  }\n\n  // console.log(arrays);\n  console.log(\n    arrays.reduce((acc, el) => {\n      return el.length > acc ? el.length : acc;\n    }, 1)\n  );\n}\n\nfunction readLine(str, line) {\n  return str.split(/\\r?\\n/).filter(s => Boolean(s.trim()))[line];\n}\n
<sample-sep>
Javascript:
const readline = require('readline');\r\nconst rl = readline.createInterface({\r\n  input: process.stdin,\r\n  output: process.stdout,\r\n  terminal: false\r\n});\r\nlet c = 0;\r\n\r\nrl.on('line', (d) => {\r\n  if (c === 0) {\r\n    c++;\r\n    return;\r\n  }\r\n\r\n  const arr = d.split(' ').map(Number);\r\n  let best = 1;\r\n  let curr = 1;\r\n  let v = arr[0];\r\n\r\n  for (let i = 1; i < arr.length; i++) {\r\n    if (arr[i] > v) {\r\n      curr++;\r\n    }\r\n    else {\r\n      curr = 1;\r\n    }\r\n\r\n    best = Math.max(curr, best);\r\n    v = arr[i];\r\n  }\r\n\r\n  console.log(best);\r\n\r\n  c++;\r\n});\r\n\r\nrl.on('close', () => {\r\n\r\n});\r\n
<sample-sep>
Python 3:
def lift(k, lst):\r\n    result = 0\r\n    for i in range(len(lst) - 1, -1, -k):\r\n        result += 2 * (sorted(lst)[i] - 1)\r\n    return result\r\n\r\n\r\nN, K = [int(j) for j in input().split()]\r\na = [int(z) for z in input().split()]\r\nprint(lift(K, a))\r\n
<sample-sep>
Javascript:
"""

completion = openai.Completion.create(
    engine="davinci",
    n=1,
    max_tokens=1000,
    stop=["<sample-sep>"],
    prompt=prompt,
    temperature=0.5,
    top_p=1,
    presence_penalty=0,
    frequency_penalty=0,
)
choice = completion["choices"][0]
print("[choice object]", choice)
print("[choice text]", choice["text"])

Thanks for the detailed reply and reaching out to owners of Codeforce.
While I agree that the comments could provide useful information for code translation, I'm still unsure about having identifiable information within the benchmark. Various comments I see also doesn't seem to directly be useful for understanding the code either. Considering that there maybe issues with the data, wouldn't it be better to start with benchmark without any comments and have informative comments only when there's a way to process the comments?
Regarding the validity of the input/target pair, does Codeforce platform guarantee two code pairs produce the same input/output? I wasn't sure if all examples in the benchmark is correct, so was wondering if there's automated way to test pair of code produces same outputs.
Also thanks for evaluating the task using OpenAI's davinchi API. I don't seem to see what a typical output of language model is from the given prompt. Also do you have a sense of what the blue score would be on a typical pair language of translation tasks? It would be good to provide what's the status of currently available LM's performance on current task is, if it mostly produce a close to random score.

@jaehlee
Thank you for your astute observations. We appreciate that you have carefully considered the various perspectives of this benchmark. Here are the replies.

While I agree that the comments could provide useful information for code translation, I'm still unsure about having identifiable information within the benchmark. Various comments I see also doesn't seem to directly be useful for understanding the code either. Considering that there maybe issues with the data, wouldn't it be better to start with benchmark without any comments and have informative comments only when there's a way to process the comments?

Reply : After reading your comments, have considered a few tools and methods to remove comments.  Replacing/Removing a comment segment with various heuristic methods sometimes randomly creates further issues on the code being not able to compile. We are in the process of creating an API that can compile and run all these codes automatically with given inputs. In that case, we can confidently apply heuristics methods in the comments and de-anonymize parts of code that may contain personal information. But at this moment I am afraid we don't have the necessary tool to perform de-anonymization but make sure that the codes are compilable. One of the major properly of this benchmark is that all of the codes are compilable and produce the same input for the same output. we don't want to remove this feature from this benchmark.

Regarding the validity of the input/target pair, does Codeforce platform guarantee two code pairs produce the same input/output? I wasn't sure if all examples in the benchmark is correct, so was wondering if there's automated way to test pair of code produces same outputs.

Reply: All the codes are submitted in online judge based on some specific problem. For each of the problems, the online judge has numerous test cases. If all the test cases pass, then the code is marked as "Accepted". We only take the "Accepted" code and pair the same problem's code across languages. So it is ensured that the code produces the same output given the same input.

Also thanks for evaluating the task using OpenAI's davinchi API. I don't seem to see what a typical output of language model is from the given prompt.

Reply: Here is the output of the above code segment from da-vinci API.
const readline = require('readline'); newcom
const rl = readline.createInterface({ newcom
input: process.stdin,
output: process.stdout,
terminal: false
});
let c = 0;
let arr = [];
let best = 1;
let curr = 1;
let v = arr[0];

for (let i = 1; i < arr.length; i++) {
if (arr[i] > v) { curr++; }else { curr = 1; }

}

let best = Math.max(curr, best);
v = arr[i];

console.log(best);

c++;

});

rl.on('close', () => {

});

Also do you have a sense of what the blue score would be on a typical pair language of translation tasks?

Reply: Great point. Actually, we have given a good amount of thought to this topic. In the current scenario, the only metric to evaluate this type of setup is the BLUE score. However, it is clear that the BLUE score is not sufficient (maybe relevant) to for this setup. After a lot of brainstorming, we have decided to add that. In the future, we plan to release an API for this dataset that can compile and run the model-generated code for a predefined input and calculate scores accordingly.

It would be good to provide what's the status of currently available LM's performance on the current task is, if it mostly produces a close to random score.

Reply: We understand your concern. Since we don't have unlimited access to that API we could not run many experiments. However, this is our observation,

Most of the time the model cannot generate compilable code.
Sometimes the code indeed doesn't make sense.
Most of the time generated code can track for loops, if-else conditions, prints but not the nested structure.
We indeed believe that a large model would not be able to perform "in-context" learning for this type of translation task.
We believe that this task would be considered an extremely hard (near unsolvable) few-shot task for language models. However, in future versions of language models and for larger code-language models, we believe that this task can be a good benchmark.

@jaehlee
Update:

It would be good to provide what's the status of currently available LM's performance on the current task is, if it mostly produces a close to random score.

We could not use GPT-neo since Big-Bench API doesn't support it. We use gpt2-xl.  However, we could not perform a few-shot (even 1-shot) inference with gpt2-xl since it doesn't support a longer sequence.
Tested here,
https://colab.research.google.com/drive/1dGVMn-LZRQod3U0fBGiEbQcwiBRGWxkp#scrollTo=-kzbDbWsQQej&uniqifier=1
We add an additional argument here  with shot_list=[1]
As mentioned here, https://github.com/google/BIG-bench/issues/228
Submission of tasks with a larger sequence lengths is also encouraged here.

I'm not a reviewer, but in doing some sanity checks I noticed that a few of the subtask directories have spaces in them. This will cause some issues with some of our tools, so if it's not a big deal, could you change these spaces to underscores in the directory names? Thanks very much for your help on this!

@ajslone Sorry for the delay. I have updated the folder names. Please have a look.

Thanks for all the efforts by the authors and responding to the concerns. Authors have definitely put a lot of thought and effort creating the task. I do believe that this code translation task is a very through, interesting as well as hard task for current large language models.
My main concerns on this task are still 1) permission from Codeforce 2) removing identifiable information in code. I believe the authors have path forward addressing these issues. I'd conditionally accept @chiafullo, given these are resolved. Also if the meta-reviewer believe these two issues are non-blocker for merging then I think this is excellent task as a part of benchmark.

@jaehlee  Thanks a lot for your astute review.

Hi @sbmaruf, thank you for your contribution! I'm the meta-reviewer for this task. Noting some minor issues here:

There appear to be a large number of duplicate examples for man of the subtasks (e.g. code-translation-Perl-to-FPC has 30 duplicate examples out of 238, code-translation-Perl-to-Scala has 18 duplicate examples out of 23.) Could you deduplicate these?
Could you change the task label to code_translation_benchmark? None of other tasks uses hyphens in their name, so this would make the naming fully consistent.
Is there a reason that the newlines are sometimes "\n" and sometimes "\r\n"? Would it be possible to normalize this?
Regarding the issue of identifiable information: it would be fairly involved to remove comments across languages while reliably ensuring there is no effect on code function, so we probably will just need to keep most of the code as-is. So the main question is whether this constitutes fair use of CodeForces code. @sbmaruf, have you heard back yet from them yet?

Hello @sbmaruf, we are trying to finalize tasks for the benchmark; please address the above issues by Wednesday, Aug 18, to have your task included in BIG-bench.  Thank you.

Hi! we are extremely sorry for the delay.
After having a month long disconnected communication, codeforces replied that, they don't like the idea of creating a dataset using their web site data and they don't have time (though we have mailed them a year ago) to take a deep look into the issue.. Nothing more or less.
I guess this is also a learning curve for us to familier with data permission issues.
I feel really bad at this point for the reviewers who spend their valuable time for this pull request. We apologies for the inconvenience caused by this.
I am closing the pull request since we haven't got any concrete reply from the codeforces.


issue when launch

I have this issue
I configured config.py
with for discord
discord_webhook = 'https://discord.com/api/webhooks/8395932854xxxxxxxxxxxx/MBB7FhOiGxJxxxxxxxxxxxxxxxx'
Do I need to configure something in main.py ?
Thanks
pi@raspberrypi:~/botdiscord/TradingView-Webhook-Bot $ python main.py Traceback (most recent call last):   File "main.py", line 46, in <module>     serve(app, host="<IP_ADDRESS>", port=80)   File "/home/pi/.local/lib/python3.8/site-packages/waitress/__init__.py", line 13, in serve     server = _server(app, **kw)   File "/home/pi/.local/lib/python3.8/site-packages/waitress/server.py", line 78, in create_server     last_serv = TcpWSGIServer(   File "/home/pi/.local/lib/python3.8/site-packages/waitress/server.py", line 244, in __init__     self.bind_server_socket()   File "/home/pi/.local/lib/python3.8/site-packages/waitress/server.py", line 361, in bind_server_socket     self.bind(sockaddr)   File "/home/pi/.local/lib/python3.8/site-packages/waitress/wasyncore.py", line 396, in bind     return self.socket.bind(addr) PermissionError: [Errno 13] Permission denied

please can you help me I didn't found the problem...

Hi there,
I have currently no time in helping open issues. Sorry about that.

As arrived, a VPN is required. Regardless of time I’m no supporting RPi setups.

ok thanks anyway for answering

I think I found the problem...I cannot use any port below 1024 without admin rights so I opened 8000 and it seems It works...


Add Alerting into 2.0

Disabled by default. Enabling will install Prometheus AlertManager
Support for basic out-of-box alert conditions (final list TBD)
Support for following notifiers (Slack, Email, PagerDuty, Webhooks)
Support for alert management including creating, deleting, disabling, and muting alerts
Support for out-of-box system alerts (system services, networking, etc.) that can be configured with a notifier
Support for selector labels on cluster and project-wide resources (pod, nodes, etc.)
Support for “Test” notifier feature
No support for “management” plane alerts (i.e Cluster 1 went down)

Version - 2.0 master 2/23
Verified added - bug will be entered separately from this issue.


Function scope

Depends on #13
The inlining done previously does not actually work - there is never a scope field.
Functions without an explicit scope would also not be parsed correctly at all.
For example:
function x()
end

Got parsed as:
program [0, 0] - [2, 0])
  ERROR [0, 0] - [1, 3])
    identifier [0, 9] - [0, 10])

Instead of:
program [0, 0] - [2, 0])
  function_statement [0, 0] - [1, 3])
    name: identifier [0, 9] - [0, 10])
    signature: function_signature [0, 10] - [0, 12])
      arguments: arguments [0, 10] - [0, 12])
    body: function_body [1, 0] - [1, 3])

I think I'm going to hold off on this one due to these issues
I think it was mentioned on matrix/gitter that there might be some syntax/semantic change related to this


cybran shield + hyves - bad eco bug

replay 34+ min https://content.faforever.com/faf/vault/replay_vault/replay.php?id=11372599
recorded video of issue: https://www.youtube.com/watch?v=Ph8BpAL7sDc&feature=youtu.be
description: hyves started to assist shield - doing nothing, shield was not upgraded by them nor healed, just a lot of build power with huge mass consumption for nothing.
If I had no paragon that would exhuast my eco in few seconds.

Dude, wrong repo, here are bugs, that belongs to client, not to game.

Dude, wrong repo, here are bugs, that belongs to client, not to game. Check fa repository (https://github.com/FAForever/fa)

I am sorry. created issue there.


[WIP] add zstd

I added it to the basic module, still need to check if seek/seeksend/send apply.

:+1:

@luizirber Any chance this basic support could be merged and seek / send / seeksend could come later?