sshd service: Default to INFO logLevel (upstream default)

Motivation for this change
This brings NixOS in line with upstream and other Linux distributions, and reduces log spam on servers due to bruteforcing botnets.
The previous justification (added in #40692) for using VERBOSE is incorrect, because OpenSSH does use level INFO to log "which key was used to log in" for sccessful logins, see:
https://github.com/openssh/openssh-portable/blob/6247812c76f70b2245f3c23f5074665b3d436cae/auth.c#L323-L328
I've verified it; sshd logs with VERBOSE look like:
sshd: Connection from <IP_ADDRESS> port 45668 on <IP_ADDRESS> port 22 rdomain ""
sshd: Accepted key RSA SHA256:Cabc123abc123abc12/abc123abc123abc123abc123 found at /etc/ssh/authorized_keys.d/root:1
sshd: Postponed publickey for root from <IP_ADDRESS> port 45668 ssh2 [preauth]
sshd: Accepted key RSA SHA256:Cabc123abc123abc12/abc123abc123abc123abc123 found at /etc/ssh/authorized_keys.d/root:1
sshd: Accepted publickey for root from <IP_ADDRESS> port 45668 ssh2: RSA SHA256:Cabc123abc123abc12/abc123abc123abc123abc123
sshd: pam_unix(sshd:session): session opened for user root by (uid=0)
systemd-logind: [🡕] New session 12 of user root.

and with INFO look like:
sshd: Accepted publickey for root from <IP_ADDRESS> port 45694 ssh2: RSA SHA256:Cabc123abc123abc12/abc123abc123abc123abc123
sshd: pam_unix(sshd:session): session opened for user root by (uid=0)
systemd-logind: [🡕] New session 12 of user root.

As shown, the fingerprint for the successful login is still printed with INFO.
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

CC @bjornfor @volth @Izorkin from #40692.
CC recent sshd committers @aanderse @Infinisil @jeaye
CC @eelco @lovek323 @fpletz as fail2ban maintainers, and @c0bw3b @Baughn as recent fail2ban service committers.

I got the bit about fail2ban from https://wiki.archlinux.org/index.php/fail2ban#Custom_SSH_jail which says:

It may be necessary to set LogLevel VERBOSE in /etc/ssh/sshd_config to allow full fail2ban monitoring as otherwise password failures may not be logged correctly.

Also try adding to fail2ban service this variant  - services.openssh.logLevel = mkDefault "VERBOSE";

Also try adding to fail2ban service this variant - services.openssh.logLevel = mkDefault "VERBOSE";

@Izorkin This looks like a nice idea, I implemented that.
I'll wait another half-a-month in case more feedback arrives, after that I'll probably merge it.

I fixed the merge conflicts and squashed the commits, as they better fit into one.

Thanks @nh2!


Allow TransformAction to clone options

When the client is used to query different graph
sources the transform action passed to
CreateFromConfig can be used to manipulate the
keys sent. However the changes are applied to the
global options and doesnt reset after the client
has finished its query.
By introducing a behaviour it is possible to
dictatate if the developer wants to be able to
apply the transformation on a clone of the
options.
The default behaviour is that the current behavior where the options are global.

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


weights and cfg file for Hand Gesture Recognition

Send weights and cfg file for Hand Gesture Recognition

https://drive.google.com/drive/folders/1hun3F4YdwpgCSk_bDeCC2azYs6bUjHEh?usp=sharing


Clusterability

This would go hand in hand with the etcd/serf/consul issue, I think. The biggest problem with clustering goiardi now is with search, since search is currently inside goiardi.
Possibilities include supporting using solr, splitting the goiardi search into its own separate program, or having the goiardi processes communicate amongst each other about updates that need indexing.

This might actually work now if you run goiardi with the pg-search. Worth testing.

Here just  to report that I have successfully running goiardy server in "cluster mode" in AWS ECS. It is working well as multiple docker containers behind ALB.
Setting used for better clusterability is:
GOIARDI_CONVERT_SEARCH = true
GOIARDI_PG_SEARCH = true
GOIARDI_USE_POSTGRESQL= true
GOIARDI_USE_S3_UPLOAD = true

Works for me. Thanks for the report.


introduce import template from glance

This role is meant to be used by the automation infra in which:

import disks from glance as templates
add nic to the templates
copy the template's disks to the destination domains defined.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

The commiter is not a member of organization nor whitelist. Please contact maintainer for patch verification.

this is a very specific scenario ... i am not sure it is a role material.
close for now


Signing user out or clearing session if there is a custom parameter in authorization request

I have a requirement to log the user out if there is a parameter present in the authorisation request. To explain it a bit better, I use an encrypted value at authorization request to authenticate user using a custom remote authentication handler. The issue is that if the user is already authenticated and there is a new authorization request with a different encrypted value , IdentityServer skips the handler and returns a new authorization code. I need to intercept this and clear user session, etc and go through the authentication handler.
It’s quite a big task to implement AuthorizeEndpoint and probably not a good idea. I tried signing out the user in AuthorizeInteractionResponseGenerator. ProcessInteractionAsync but it still returns the code and does not go through the handler.
Does anyone have a solution to this?

I actually fixed it myself. I created a custom AuthorizeInteractionResponseGenerator and added to IdentityServer
identityServerBuilder.AddAuthorizeInteractionResponseGenerator<MyCustomAuthorizeInteractionResponseGenerator>();
I created an override of the below method.
`public override async Task ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse consent = null)
{
var isAuthenticated = request.Subject.IsAuthenticated();
var url = contextAccessor.HttpContext.Request.Path;
if (isAuthenticated && url.Equals("/connect/authorize", StringComparison.InvariantCultureIgnoreCase))
{
            if (SomeOtherSpecificConditions) //e.g. existence of a query string parameter or cookie
            {
                await contextAccessor.HttpContext.SignOutAsync("MyScheme");
                return new InteractionResponse() { IsLogin = true };
            }
        }
        return await base.ProcessInteractionAsync(request);

    }`

I had tested by either signing out or returning Interaction response and neither of them were working on their own and I had to do both.


fix(react-email): command not found error

related to https://github.com/resendlabs/react-email/issues/248#issuecomment-1407272929
<EMAIL_ADDRESS>raises "command not found" error.
I created a branch to reproduce it. Please check out this and run
yarn --force
yarn workspace repro-command-not-found dev

cause:
dist/index.js is not published.
https://www.npmjs.com/package/react-email/v/1.7.7?activeTab=explore

This is understandable because build command generate dist/source/index.js instead of dist/index.js.
You can see it through executing yarn turbo build --scope=react-email and then ls packages/react-email/dist manually.
I don't know dist/index.js had been published until 1.7.6 but it must be cache

I found the directory structure of dist has changed since I set resolveJsonModule: true in #387
I'm so sorry... (but this PR fix the problem)
https://www.npmjs.com/package/react-email/v/1.7.4?activeTab=explore

No worries @m-shaka, thanks for taking a look and fixing.


Cluster loggin upgrade changes for 4.6

Related JIRA: https://issues.redhat.com/browse/OSDOCS-1785

I see this is labeled for 4.6 but it's against a 4.5 branch. Is that correct/intentional?
Also, I don't see a preview build to review. I need to get used to checking Managed content! :smile:

@ahardin-rh  Yes, the 4.5/4.6 discrepancy is intentional. Thanks for checking, and also thanks for the feedback :)

/cc @RiRa12621

This PR has been migrated to OpenShift docs repo here: https://github.com/openshift/openshift-docs/pull/30174.
Please continue adding your feedback in the new PR. This PR is now closed.


feat: adapting spiaccesscheck to remotesecrets

What does this PR do?
Extends SPIAccessCheck's functionality.
The CheckAccess first tries to find SPIAccessToken to construct a client and determine if a repository is accessible.
If no SPIAccessToken is found, this PR comes into play. We find all RemoteSecrets in the same namespace as SPIAccessCeck with the label appstudio.redhat.com/sp.host and filter this list of RemoteSecrets so that only those that satisfy these conditions are kept:

has Data Obtained Condition
has secret.type == kubernetes.io/basic-auth
has target in the same namespace as SPIAccessCheck (and the RemoteSecret itself)

From these, we preferentially pick an RS that contains the repository name (from SPIAccessCheck ) in  appstudio.redhat.com/sp.repo.
We then use the RemoteSecret's Secret to construct an authenticated client and determine whether repository is accessible.
The SPIAccessCheck CRD is extended with the field:
status:
  credentials:
    remoteSecret: __name of remote secret__
    secret: __name of secret__

Screenshot/screencast of this PR

GitHub

Quay

GitLab

What issues does this PR fix or reference?

https://issues.redhat.com/browse/SVPI-564
How to test this PR?

Deploy SPI and RemoteSecret
SPIO_IMG=quay.io/pbaran/spio:SVPI-564-spiaccesscheck
RUN SCRIPT
https://github.com/xbaran4/spi-scripts/blob/master/test-access.sh
I have created a script where you can fill out your tokens and names of public/private repositories, and it tests three scenarios for each service provider:

SPIAccessCheck with no tokens for a public repository
SPIAccessCheck with SPIAccessToken for a private repository
SPIAccessCheck with RemoteSecret for a private repository

GitHub

Create Github Personal Access Token (classic) (https://github.com/settings/tokens) repo scope should suffice
Create (GitHub) RemoteSecret:

cat <<EOF | kubectl apply -f -
apiVersion: appstudio.redhat.com/v1beta1
kind: RemoteSecret
metadata:
  name: test-remote-secret
  namespace: default
  labels:
    appstudio.redhat.com/sp.host: github.com
spec:
  secret:
    type: kubernetes.io/basic-auth
    generateName: secret-from-remote-
  targets:
    - namespace: default
EOF

Create UploadSecret:

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
  name: test-remote-secret-secret
  labels:
    appstudio.redhat.com/upload-secret: remotesecret
  annotations:
    appstudio.redhat.com/remotesecret-name: test-remote-secret
type: kubernetes.io/basic-auth
stringData:
  password: "_your GitHub PAT_"
EOF

Create SPIAccessCheck with repoUrl referencing your private repo:

cat <<EOF | kubectl apply -f -
apiVersion: appstudio.redhat.com/v1beta1
kind: SPIAccessCheck
metadata:
  name: spiaccesscheck-sample
  namespace: default
spec:
  repoUrl: "https://github.com/xbaran4/private"
EOF

You should see SPIAccessCheck similar to the state in the screenshot

Quay

Create Quay robot token. Make sure it has permission (write) to access your private registry
Create (Quay) RemoteSecret:

cat <<EOF | kubectl apply -f -
apiVersion: appstudio.redhat.com/v1beta1
kind: RemoteSecret
metadata:
  name: test-remote-secret
  namespace: default
  labels:
    appstudio.redhat.com/sp.host: quay.io
spec:
  secret:
    type: kubernetes.io/basic-auth
    generateName: secret-from-remote-
  targets:
    - namespace: default
EOF

Create UploadSecret:

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
  name: test-remote-secret-secret
  labels:
    appstudio.redhat.com/upload-secret: remotesecret
  annotations:
    appstudio.redhat.com/remotesecret-name: test-remote-secret
type: kubernetes.io/basic-auth
stringData:
  username: "pbaran+test" #replace with your robot name
  password: "_your robot token_"
EOF

Create SPIAccessCheck with repoUrl referencing your private repo:

cat <<EOF | kubectl apply -f -
apiVersion: appstudio.redhat.com/v1beta1
kind: SPIAccessCheck
metadata:
  name: spiaccesscheck-sample
  namespace: default
spec:
  repoUrl: "https://quay.io/pbaran/private-test" # replace with your private reg
EOF

You should see SPIAccessCheck similar to the state in the screenshot

GitLab

Create GitLab Personal Access Token (https://gitlab.com/-/profile/personal_access_tokens) api scope should suffice
Create (GitLab) RemoteSecret:

cat <<EOF | kubectl apply -f -
apiVersion: appstudio.redhat.com/v1beta1
kind: RemoteSecret
metadata:
  name: test-remote-secret
  namespace: default
  labels:
    appstudio.redhat.com/sp.host: gitlab.com
spec:
  secret:
    type: kubernetes.io/basic-auth
    generateName: secret-from-remote-
  targets:
    - namespace: default
EOF

Create UploadSecret:

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
  name: test-remote-secret-secret
  labels:
    appstudio.redhat.com/upload-secret: remotesecret
  annotations:
    appstudio.redhat.com/remotesecret-name: test-remote-secret
type: kubernetes.io/basic-auth
stringData:
  password: "_your GitLab PAT_"
EOF

Create SPIAccessCheck with repoUrl referencing your private repo:

cat <<EOF | kubectl apply -f -
apiVersion: appstudio.redhat.com/v1beta1
kind: SPIAccessCheck
metadata:
  name: spiaccesscheck-sample
  namespace: default
spec:
  repoUrl: "https://gitlab.com/xbaran4/test"
EOF

You should see SPIAccessCheck similar to the state in the screenshot

quay.io/redhat-appstudio/pull-request-builds:spi-controller-#
quay.io/redhat-appstudio/pull-request-builds:spi-oauth-#

Script test passed:
Checking access to public repositories without any tokens...
Checking repository: https://github.com/xbaran4/remote-secret
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-public-test" deleted
Checking repository: https://gitlab.com/xbaran4/public-test
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-public-test" deleted
Checking repository: https://quay.io/pbaran/rs
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-public-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-public-test" deleted
Done.

Creating SPIAccessTokens for each provider to test private repo...
spiaccesstoken.appstudio.redhat.com/test-access-token-github.com created
spiaccesstoken.appstudio.redhat.com/test-access-token-gitlab.com created
spiaccesstoken.appstudio.redhat.com/test-access-token-quay.io created
Done.

Checking access to private repositories with SPIAccessToken...
Checking repository: https://github.com/xbaran4/testing
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-private-test" deleted
Checking repository: https://gitlab.com/xbaran4/test
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-private-test" deleted
Checking repository: https://quay.io/pbaran/private-test
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-private-test" deleted
Done.

Removing SPIAccessTokens...
spiaccesstoken.appstudio.redhat.com "test-access-token-github.com" deleted
spiaccesstoken.appstudio.redhat.com "test-access-token-gitlab.com" deleted
spiaccesstoken.appstudio.redhat.com "test-access-token-quay.io" deleted
Done.

Creating RemoteSecrets and UploadSecrets for each provider to test private repo...
remotesecret.appstudio.redhat.com/test-remote-secret-github.com created
secret/test-remote-secret-secret created
remotesecret.appstudio.redhat.com/test-remote-secret-gitlab.com created
secret/test-remote-secret-secret created
remotesecret.appstudio.redhat.com/test-remote-secret-quay.io created
secret/test-remote-secret-secret created
Done.

Checking access to private repositories with RemoteSecret...
Checking repository: https://github.com/xbaran4/testing
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-private-test" deleted
Checking repository: https://gitlab.com/xbaran4/test
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-private-test" deleted
Checking repository: https://quay.io/pbaran/private-test
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test created
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com/spiaccesscheck-private-test condition met
spiaccesscheck.appstudio.redhat.com "spiaccesscheck-private-test" deleted
Done.

Removing RemoteSecrets...
remotesecret.appstudio.redhat.com "test-remote-secret-github.com" deleted
remotesecret.appstudio.redhat.com "test-remote-secret-gitlab.com" deleted
remotesecret.appstudio.redhat.com "test-remote-secret-quay.io" deleted
Done.

TEST: PASSED


2803 feat force typests generation before committing

Description
When a user goes to check in code now we're running a quick and dirty check against Types.ts.  If there originally was no Types.ts we generate the file and fail the check so that the user can ensure that there are no breaking changes on the front end. If Types.ts was generated we take a hash of the file and run the generation again to see if there are any changes. If there are again we fail the check.

As @chris-dickson pointed out the performance on this check may not be great and will slow down the commit process. We may want to sit on this one or discuss post-hackathon


YARN-11425. [Hotfix] Modify Expiration Time Unit error.

Description of PR
YARN-11425. [Hotfix] Modify Expiration Time Unit error.
During the completion of YARN-11425, the functionality of cleaning up expired sub-clusters was implemented in the Router. However, when performing expiration time conversion, the unit was set incorrectly. The expiration time default unit is milliseconds, and the conversion should be performed in milliseconds.
How was this patch tested?
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m  1s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
40m 36s

trunk passed

+1 :green_heart:
compile
0m 34s

trunk passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
compile
0m 30s

trunk passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
checkstyle
0m 36s

trunk passed

+1 :green_heart:
mvnsite
0m 39s

trunk passed

+1 :green_heart:
javadoc
0m 43s

trunk passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javadoc
0m 30s

trunk passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
spotbugs
1m 13s

trunk passed

+1 :green_heart:
shadedclient
26m 11s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 22s

the patch passed

+1 :green_heart:
compile
0m 24s

the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javac
0m 24s

the patch passed

+1 :green_heart:
compile
0m 21s

the patch passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
javac
0m 21s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 16s

the patch passed

+1 :green_heart:
mvnsite
0m 22s

the patch passed

+1 :green_heart:
javadoc
0m 23s

the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javadoc
0m 19s

the patch passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
spotbugs
0m 55s

the patch passed

+1 :green_heart:
shadedclient
24m 44s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
0m 27s

hadoop-yarn-server-router in the patch passed.

+1 :green_heart:
asflicense
0m 36s

The patch does not generate ASF License warnings.

104m 26s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5712/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/5712

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 6ff998f5b6a4 4.15.0-206-generic #217-Ubuntu SMP Fri Feb 3 19:10:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / b681ba2d20879f85b883420546e0490815f9a0e7

Default Java
Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5712/1/testReport/

Max. process+thread count
536 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5712/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

We usually call this addendum. Not really a hotfix going on here.

We usually call this addendum. Not really a hotfix going on here.

@goiri Thank you very much for your explanation! Thank you for helping to review the code.

@goiri Thank you for helping to review the code!


pgvector DropTables() fails because collectionTable dropped before embeddingTable

The pgvector vectorstore has a DropTables(ctx) function that drops the collectionTableName Table, and then drops the embeddingTable Table.
Running this function causes the error:
ERROR: cannot drop table "Collections" because other objects depend on it (SQLSTATE 2BP01)
In order to resolve this, you simply have to change the order of dropping so that the embeddingTableName Table is dropped first.
i.e. Simply change the function to this:
	if _, err := s.conn.Exec(ctx, fmt.Sprintf(`DROP TABLE IF EXISTS %s`, s.embeddingTableName)); err != nil {
		return err
	}
	if _, err := s.conn.Exec(ctx, fmt.Sprintf(`DROP TABLE IF EXISTS %s`, s.collectionTableName)); err != nil {
		return err
	}

	return nil

Fixed in #441


[Bug] Crashlytics requiring iOS build support when usingAndroid platform

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.3.21f1
Firebase Unity SDK version: 8.3.0
Source you installed the SDK: Unity Package Manager (.unitypackage or Unity Package Manager)
Problematic Firebase Component: Crashlytics (Auth, Database, etc.)
Other Firebase Components in use: Auth,Database, (Auth, Database, etc.)
Additional SDKs you are using: none (Facebook, AdMob, etc.)
Platform you are using the Unity editor on: Windows (Mac, Windows, or Linux)
Platform you are targeting: Android (iOS, Android, and/or desktop)
Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)

[REQUIRED] Please describe the issue here:
When loading unity with Crashlytics package installed (generated from .tgz file) I get this error when I don't have iOS enabled build support enabled which should not be required.
For Android platform, iOS build support should not really be required.
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc)
What happened? How can we make the problem occur?
Error: Could not load signature of Firebase.Crashlytics.Editor.iOSPostBuild:SetupGUIDForSymbolUploads due to: Could not load file or assembly 'UnityEditor.iOS.Extensions.Xcode, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:UnityEditor.iOS.Extensions.Xcode, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null type: member:(null) signature:
Relevant Code:
None needed. Just try to open Unity with Crashlytics package installed.

Hi @snorrsi,
In order to use Crashlytics in your project, you have to import the .tgz files for both the External Dependency Manager and Firebase App as seen here. Could you verify if you have you have imported these files as well?

@paulinon apologies for late reply.. but yes, everything was included.
What I mean is that Crashlytics seems to be referencing Unity iOS specific classes which requires iOS build support in Unity even if building for Android project.
I was saving space on my device and was trying to skip installing iOS build support as building for Android and then up came this error.

I am experiencing the same issue. Building something for Quest, I dont have iOS support installed (why would I need it) with this Unity instance


🐞 [BUG] - Background of courses dropdown menu is transparent and creating visibility problem.

Description

Background of courses  dropdown menu is transparent creating visibility issue.
About us link directing nowhere.I also want to improve that problem.

Current behaviour
Background of dropdown is transparent.
Expected behaviour
a good background color that distinct foreground and background and solve visibility problem.
Reproduction steps
1. Go to 'HomePage'
2. Hover on Courses in navigation bar'
3. Scroll down to Our Mission section.
4. See background color of Courses i.e. transparent and due to that difficulties in reading Mission section text.

Screenshots

Logs
No response
Browsers
Chrome
OS
Mac
Are you contributing for a program ?
Other
Code of Conduct

[X] I have read and agree to the Contributing Guidelines of this project.

go ahead !!

@Ja3mamtora look at it. I have done correction.


SITL integration tests

WIP, supersedes #1803

Updated integration tests based on MAVROS integration.
Modified commander to arm automatically when offboard setpoints arrive
Also contains a helper class that is able to verify if the copter stays on a predefined flight path with specifiable radius and visual indicator in Gazebo.

Issues that should get fixed before demo tests can be completed:

PX4/euroc_simulator/issues/11
PX4/euroc_simulator/issues/9 (not necessarily)

Wiki pages that go along with this PR, also WIP:

https://pixhawk.org/dev/ros/sitl_testing
https://pixhawk.org/dev/ros/sitl_ci_setup

TODO:

resolve arming issue, then cleanup tests (2 things: controller creating in euroc and cmd support in mavlink)
move mavros nodes to root

Nice to have:

gtest demo test
attitude/velocity setpoint demo test

Awesome, thanks!


Expose endpoints for listing available actions, processes, events and their schemas

Add endpoint(s) for Driver's to access the available actions, processes, and events for a given community. Expose the jsonschemas if available.
These can then be used by PolicyKit to add hints to the policy editor –– like listing available actions + processes, along with their input and output types. PolicyKit could also use the jsonschemas to generate forms for no-code policy authoring.

Done with https://github.com/metagov/metagov-prototype/commit/02d17368b6bb7162fde7c46a21aea5a718820009 and https://github.com/metagov/metagov-prototype/commit/fd4d5a6fbed71e4c6867fe5fa26d50937c267d81


menu shaders incompatibility

when the mod is installed and the menu shaders mod is in the background, it turns inverted or something.

I dmed you on discord. can you send me the shader you're using there?

@Ikszyon did you message 0m3ga6400 or om3ga6400 because i dont have any messages

mine is with a zero

ye ok i dmed the correct one now

bro leave me alone I don want dis 😭🙏
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: om3ga @.>
Sent: Saturday, September 28, 2024 4:37:15 PM
To: Ikszyon/MegaHack-Recolor @.>
Cc: Subscribed @.***>
Subject: Re: [Ikszyon/MegaHack-Recolor] menu shaders incompatibility (Issue #4)
@Ikszyonhttps://github.com/Ikszyon did you message 0m3ga6400 or om3ga6400 because i dont have any messages
—
Reply to this email directly, view it on GitHubhttps://github.com/Ikszyon/MegaHack-Recolor/issues/4#issuecomment-2380712000, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3JVZV4DRFQIA3UAJHGRWBLZY3EKXAVCNFSM6AAAAABPABDJDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQG4YTEMBQGA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

bro leave me alone I don want dis 😭🙏
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: om3ga @.>
Sent: Saturday, September 28, 2024 4:37:15 PM
To: Ikszyon/MegaHack-Recolor @.>
Cc: Subscribed @.***>
Subject: Re: [Ikszyon/MegaHack-Recolor] menu shaders incompatibility (Issue #4)
@Ikszyonhttps://github.com/Ikszyon did you message 0m3ga6400 or om3ga6400 because i dont have any messages
—
Reply to this email directly, view it on GitHubhttps://github.com/Ikszyon/MegaHack-Recolor/issues/4#issuecomment-2380712000, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3JVZV4DRFQIA3UAJHGRWBLZY3EKXAVCNFSM6AAAAABPABDJDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQG4YTEMBQGA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

?????

???

???


Revert "CPKAFKA-4948: Make ssl.client.auth for REST consistent with Kafka (#175)"

This reverts commit f0f0f3f

@rigelbm Thanks for the review, merging to 5.5.x and master.


Old CSS Colors not deleted

Potential solutions:
Find out how to delete them properly,
Add !important to the end of our colors(unsure if this is safe or not.)

Extension wasn't loading. Fixed.

Now it's fixed


getQuery could not get the right value immediately after transitionTo has been called

I think thansitionTo should change query that getQuery accessed?
The scene is I want to use the newest query that thansitionTo set.

Thanks for your question!
We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.
Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-router? https://stackoverflow.com/questions/ask?tags=react-router.
We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.


Drop support for Python 3.6

This pull request removes support for Python 3.6 which has been EOL since 2021-12-23 (per  discussion and consensus on the mailing list).

Codecov Report

Merging #1811 (a171818) into trunk (25a9fe3) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head a171818 differs from pull request most recent head 6f910ac. Consider uploading reports for the commit 6f910ac to get more accurate results

@@           Coverage Diff           @@
##            trunk    #1811   +/-   ##
=======================================
  Coverage   83.41%   83.41%
=======================================
  Files         394      394
  Lines       87680    87680
  Branches     9261     9261
=======================================
  Hits        73135    73135
  Misses      11386    11386
  Partials     3159     3159

Continue to review full report at Codecov.

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


Add HAProxy service

First of all thanks for all the hard work on this package so far.
Is there any chance you will be able to add HAProxy support?
I know this is a tall ask due to the complexity of HAProxy, but this would open some amazing opportunities.

Hey!
Thanks for the request. This was requested quite a bit a while back (#10) but the project was not far enough along where it was a feasible request. In brief, the plan is to focus on pfSense core services until the majority of use cases have been met; then open it up to add-on packages. That being said, I believe we are very close to that point now. Service Watchdog and HAproxy are the two I've planned to do first. However, an addition to the API framework needs to be written first that can indicate which endpoints interact with an add-on package and also verify that the package is installed before accepting requests. As of right now there has been no progress towards that, but it should not be a difficult task. Afterward, development for package based endpoints like HAproxy can be done more reliably.
I'll keep this open as a feature request and update this issue as progress is made. It's unlikely this will make v1.4.0 but potentially v1.5.0.
Thanks again!

Hey @jaredhendrickson13
Thanks for a great package.
Just wanted to check on whether HAProxy is still on the roadmap.
Thanks

@sherif-fanous There's been a bit of a freeze for a few months on new endpoints and features due to the large refactor required for v1.6.0 in order to support pfSense 2.7.0 and pfSense Plus 23.01+; so there's no immediate plans for work on an HAProxy endpoint. After v1.6.0 it might be picked up again, but the priority will be attempting to get this package in a suitable state to be merged into pfSense's repos.
PRs are also welcome for anyone willing to take on the task.

HAProxy endpoints are available in the latest dev build of v2. I am still working on tests for these endpoints. If you're able, please test these endpoints and report any issues so they can be fixed and included in automated testing before v2 enters beta.
Thanks!

i am trying to use api/v2/services/haproxy/backend and have an issue with balance
❯ curl -X 'POST' \
  'https://domain.com/api/v2/services/haproxy/backend' \
  -H 'accept: application/json' \
  -H 'Authorization: KeyAuth 1234' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "test",
  "servers": [
    {
      "name": "test",
      "status": "active",
      "address": "<IP_ADDRESS>",
      "port": "80",
      "weight": 1,
      "ssl": false,
      "sslserververify": false
    }
  ],
  "balance": "",
  "connection_timeout": 30000,
  "server_timeout": 30000,
  "check_type": "none"
}'
{"code":400,"status":"bad request","response_id":"FIELD_EMPTY_NOT_ALLOWED","message":"Field `balance` cannot be empty.","data":[]}

❯ curl -X 'POST' \
  'https://domain.com/api/v2/services/haproxy/backend' \
  -H 'accept: application/json' \
  -H 'Authorization: KeyAuth 1234' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "test",
  "servers": [
    {
      "name": "test",
      "status": "active",
      "address": "<IP_ADDRESS>",
      "port": "80",
      "weight": 1,
      "ssl": false,
      "sslserververify": false
    }
  ],
  "balance": "none",
  "connection_timeout": 30000,
  "server_timeout": 30000,
  "check_type": "none"
}'
{"code":400,"status":"bad request","response_id":"FIELD_INVALID_CHOICE","message":"Field `balance` must be one of [, roundrobin, static-rr, leastconn, source, uri]","data":[]}

is it not possible to set "none" option.

shouldn't api/v2/services/haproxy/frontends return all available frontends?
current state:

❯ curl -X 'GET' \
  'https://domain.com/api/v2/services/haproxy/frontends?limit=0&offset=0' \
  -H 'accept: application/json' \
  -H 'Authorization: Basic 12345' | jq .

{
  "code": 200,
  "status": "ok",
  "response_id": "SUCCESS",
  "message": "",
  "data": [
    {
      "id": "item",
      "name": null,
      "descr": null,
      "status": "active",
      "a_extaddr": null,
      "max_connections": null,
      "type": null,
      "ha_acls": null,
      "a_actionitems": null,
      "backend_serverpool": null,
      "socket_stats": false,
      "dontlognull": false,
      "dontlog_normal": false,
      "log_separate_errors": false,
      "log_detailed": false,
      "a_errorfiles": null,
      "client_timeout": 30000,
      "forwardfor": null,
      "httpclose": "http-keep-alive",
      "advanced_bind": null,
      "advanced": null
    }
  ]
}

@KristijanL

i am trying to use api/v2/services/haproxy/backend and have an issue with balance
❯ curl -X 'POST' \
  'https://domain.com/api/v2/services/haproxy/backend' \
  -H 'accept: application/json' \
  -H 'Authorization: KeyAuth 1234' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "test",
  "servers": [
    {
      "name": "test",
      "status": "active",
      "address": "<IP_ADDRESS>",
      "port": "80",
      "weight": 1,
      "ssl": false,
      "sslserververify": false
    }
  ],
  "balance": "",
  "connection_timeout": 30000,
  "server_timeout": 30000,
  "check_type": "none"
}'
{"code":400,"status":"bad request","response_id":"FIELD_EMPTY_NOT_ALLOWED","message":"Field `balance` cannot be empty.","data":[]}

❯ curl -X 'POST' \
 'https://domain.com/api/v2/services/haproxy/backend' \
 -H 'accept: application/json' \
 -H 'Authorization: KeyAuth 1234' \
 -H 'Content-Type: application/json' \
 -d '{
 "name": "test",
 "servers": [
   {
     "name": "test",
     "status": "active",
     "address": "<IP_ADDRESS>",
     "port": "80",
     "weight": 1,
     "ssl": false,
     "sslserververify": false
   }
 ],
 "balance": "none",
 "connection_timeout": 30000,
 "server_timeout": 30000,
 "check_type": "none"
}'
{"code":400,"status":"bad request","response_id":"FIELD_INVALID_CHOICE","message":"Field `balance` must be one of [, roundrobin, static-rr, leastconn, source, uri]","data":[]}

is it not possible to set "none" option.

The none option is set as an empty string in the config. The balance field was missing the allow_empty attribute that allows the field to be empty I added a fix for this in the latest dev build.

shouldn't api/v2/services/haproxy/frontends return all available frontends?
current state:

❯ curl -X 'GET' \
  'https://domain.com/api/v2/services/haproxy/frontends?limit=0&offset=0' \
  -H 'accept: application/json' \
  -H 'Authorization: Basic 12345' | jq .

{
  "code": 200,
  "status": "ok",
  "response_id": "SUCCESS",
  "message": "",
  "data": [
    {
      "id": "item",
      "name": null,
      "descr": null,
      "status": "active",
      "a_extaddr": null,
      "max_connections": null,
      "type": null,
      "ha_acls": null,
      "a_actionitems": null,
      "backend_serverpool": null,
      "socket_stats": false,
      "dontlognull": false,
      "dontlog_normal": false,
      "log_separate_errors": false,
      "log_detailed": false,
      "a_errorfiles": null,
      "client_timeout": 30000,
      "forwardfor": null,
      "httpclose": "http-keep-alive",
      "advanced_bind": null,
      "advanced": null
    }
  ]
}

The config path for the frontends just needed to be adjusted slightly, should also be fixed in the latest dev build.
Thanks!

whats the correct way to update to latest dev version?
the pfsense-restapi update throws error
Fatal error: Uncaught Error: Call to undefined function RESTAPI\Core\Tools\get_pfsense_version() in /usr/local/pkg/RESTAPI/.resources/scripts/manage.php:303
Stack trace:
#0 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(453): update()
#1 {main}
  thrown in /usr/local/pkg/RESTAPI/.resources/scripts/manage.php on line 303
PHP ERROR: Type: 1, File: /usr/local/pkg/RESTAPI/.resources/scripts/manage.php, Line: 303, Message: Uncaught Error: Call to undefined function RESTAPI\Core\Tools\get_pfsense_version() in /usr/local/pkg/RESTAPI/.resources/scripts/manage.php:303
Stack trace:
#0 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(453): update()
#1 {main}

there is an issue with the api/v2/services/haproxy/frontend/acl the name doesn't have to be unique, as sometimes you want to match multiple stuff to the same backend
curl -X 'POST' \
  'https://domain.com/api/v2/services/haproxy/frontend/acl' \
  -H 'accept: application/json' \
  -H 'x-api-key: 12345' \
  -H 'Content-Type: application/json' \
  -d '{
  "parent_id": 1,
  "name": "app_acl",
  "expression": "host_matches",
  "value": "some-domain.com",
  "casesensitive": false,
  "not": false
}'

{
  "code": 400,
  "status": "bad request",
  "response_id": "FIELD_MUST_BE_UNIQUE",
  "message": "Field `name` must be unique. Value is in use by object with ID `6`.",
  "data": []
}

@KristijanL Some of the package's update components were broken until the latest dev build. You should be able to run the update command going forward, but you'll need to enable the 'Allow pre-releases' option in the REST API settings for the package to consider pre-release versions as an acceptable update candidate.
As for the unique constraint on names, it was added that way because it must be unique for automatic field relations on the frontend to work. I can rework some things to remove the constraint and get that working correctly. Thanks for pointing that out!


[UNDERTOW-1748] add comment line to predicates

Issue: https://issues.redhat.com/browse/UNDERTOW-1748

CI failure is known unstability.

@fl4via please review


Update tapir-akka-http-server, ... to 1.2.8

Updates

com.softwaremill.sttp.tapir:tapir-akka-http-server
com.softwaremill.sttp.tapir:tapir-enumeratum
com.softwaremill.sttp.tapir:tapir-json-circe
com.softwaremill.sttp.tapir:tapir-swagger-ui-bundle

from 1.0.6 to 1.2.8.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #440.


Question: what is the purpose of kCdiStatusAdapterDuplicateEntry ?

Two processes can successfully instantiate an adapter for the same IP address, why isn't it possible within a single process?

Creating multiple instances of the same adapter within a single process doesn't make sense due to the additional resources required such as a poll thread, standard memory for buffers and huge page memory for adapter level packet buffers. Multiple connections can be established using a single adapter. See comments and logic in the CDI-SDK code here.
Please let us know if there is a specific need or reason to use multiple instances of the same adapter within a single process.

Hey @mhhen I have implemented simple GStreamer wrappers around this API, and in trying to make them as flexible as possible this was a clear issue I encountered.
Basically, GStreamer can be used in a very dynamic way, adding and removing sink (~ exit nodes) elements during the whole lifecycle of a process, and the size of the adapter to request isn't known in advance, let's take a simple example:
You start by creating a connection with one video endpoint, and reserve an adapter with space for one frame for the format that gets negotiated (depending on resolution / pixel format / etc ..).
Streaming starts, then after a while you want to add a new video endpoint with an entirely different format, for the sake of discussion let's say frames for that stream are actually larger.
How do you recommend I solve this problem in a simple and generic way?

ping @mhhen :)

If you don't want to interrupt the existing flow, you need to reserve enough memory to hold the largest frame format that you need to dynamically support. The only other option is to tear-down the existing endpoint and related adapter and recreate using the new required buffer size.

Right, that is the specific need I have to use multiple instances of an adapter within a single process, I don't want to interrupt data flow and I can't know the "largest frame format I need to support" in advance, by definition, as I am writing generic elements for other applications to make use of.
Besides, sharing the adapter space for a single frame between multiple sink elements (~ endpoints) isn't exactly ideal, in the future I would like to implement buffer pools, but then again one adapter per sink would make things much much easier.

I still think this should probably be re-opened, the code you linked to doesn't actually explain the rationale behind the limitation @mhhen :)


Exported async function should be parsed as function declaration

Fix #1692

Current coverage is 100% (diff: 100%)

Merging #1695 into master will not change coverage

@@           master   #1695   diff @@
=====================================
  Files           1       1
  Lines        3993    3996     +3
  Methods         0       0
  Messages        0       0
  Branches      696     698     +2
=====================================
+ Hits         3993    3996     +3
  Misses          0       0
  Partials        0       0

Powered by Codecov. Last update 54bc040...07c6ff6


Source code for extension

Can you provide the source code for the extension.js?
I want to learn how to implement the fsprovider.
Thanks.

Hi
The source code of the extension come from this repo
https://github.com/microsoft/vscode-web-playground
I know the repo is archived, but vscode teams still use it to test the web version of vscode

Thank you very much.


does this support sub accounts?

This project looks like exactly what I was looking for. We however have multiple sub accounts, can the parent account details be supplied for it to pull stats from all sub accounts?

@abelal83 Sorry for the late reply! 🙏 We cannot pull the stats of sub-accounts even if you use the parent account's credential due to the SendGrid's spec. We need to run an exporter for each sub-account.


HC throws NullReferenceException after updating from 13.7.0 to 13.8.1

Is there an existing issue for this?

[X] I have searched the existing issues

Product
Hot Chocolate
Describe the bug
After updating HC from 13.7.0 to 13.8.1 a NullReferenceException is thrown on startup initialization.
The stacktrace (see relevant log output) shows MutationConventionTypeInterceptor.TryApplyInputConvention, for which changes were made in https://github.com/ChilliCream/graphql-platform/pull/6776/files.
So i suspect there was introduced a bug not checking for possible null values?
Steps to reproduce
https://github.com/jhpetersen/HC13.8_MutationConventionEnumIssue
Sadly i don't have any clue, from which type this exception actually gets thrown, so i can not provide a minimal repo to reproduce this, but reverting to HC 13.7.0 fixes this error.
I hope the stacktrace and the hint on the aforementioned PR6776 could assist enough to find the cause.
Relevant log output
Object reference not set to an instance of an object.
   bei HotChocolate.Types.EnumType.ParseValue(Object runtimeValue)
   bei HotChocolate.Types.InputFormatter.FormatValueLeaf(Object runtimeValue, ILeafType type, Path path)
   bei HotChocolate.Types.MutationConventionTypeInterceptor.TryApplyInputConvention(IResolverCompiler resolverCompiler, ObjectFieldDefinition mutation, Options options)
   bei HotChocolate.Types.MutationConventionTypeInterceptor.OnBeforeCompleteMutation(ITypeCompletionContext completionContext, ObjectTypeDefinition definition)
   bei HotChocolate.Configuration.TypeInitializer.MergeTypeExtensions()
   bei HotChocolate.Configuration.TypeInitializer.Initialize()
   bei HotChocolate.SchemaBuilder.Setup.InitializeTypes(SchemaBuilder builder, IDescriptorContext context, IReadOnlyList`1 types)
   bei HotChocolate.SchemaBuilder.Setup.Create(SchemaBuilder builder, LazySchema lazySchema, IDescriptorContext context)
   bei HotChocolate.Execution.RequestExecutorResolver.<CreateSchemaAsync>d__19.MoveNext()
   bei HotChocolate.Execution.RequestExecutorResolver.<CreateSchemaServicesAsync>d__18.MoveNext()
   bei HotChocolate.Execution.RequestExecutorResolver.<GetRequestExecutorNoLockAsync>d__14.MoveNext()
   bei HotChocolate.Execution.RequestExecutorResolver.<GetRequestExecutorAsync>d__13.MoveNext()
   bei HotChocolate.AspNetCore.Warmup.ExecutorWarmupService.<ExecuteAsync>d__5.MoveNext()
   bei Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNext()
   bei Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
   bei Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
   bei Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   bei Microsoft.AspNetCore.Builder.WebApplication.Run(String url)
   bei Program.<<Main>$>d__0.MoveNext()

Additional Context?
No response
Version
13.8.1

Can you create a small repro?

Hi, just a short ping: is the bug reproducible / can you confirm it with the provided repo?
(This is holding us back from being able to update to 13.8, because there seems to be no workaround without breaking existing schema..)

I am seeing this issue as well.
Hunting through the code, I believe the issue lies in HotChocolate.Configuration.TypeInitializer.CompleteType (below)
`    internal bool CompleteType(RegisteredType registeredType)
{
if (registeredType.Status is TypeStatus.Completed)
{
return true;
}
    if (!registeredType.IsExtension)
    {
        registeredType.Type.CompleteType(registeredType);
        registeredType.Status = TypeStatus.Completed;
    }

    return true;
}`

As far as I can tell, having registerdType.IsExtension == true is the only way that '_valueLookup' can be null.
Unfortunately, I don't understand what that if statement if for, and thus I have no guess as to what might be the correct condition for that if statement.
Alternately, that condition might be correct, but maybe EnumType should implement INamedTypeExtensionMerger as that is what .IsExtension keys on to be true or false.
Again, I don't know enough to say much more beyond that on what the correct fix is.

Hey @michaelstaib, it's now 4 month, could you please review this issue and either remove the investigate label or explain which information is still needed to get this fixed?
Thx 🙏

I have validated the issue and put it on the backlog for 14.


Cell and Grid shadow option doesn't work ?

Hi, ss I said on the topic, anyone met the same prob as mine ?
Thx a lot.

Looks like shadow={3} doesn't work, but the others seem to be fine.
You can see in this file we only accept a number from 0 to 6 (included): https://github.com/tleunen/react-mdl/blob/master/src/utils/shadows.js
Also, currently the prop value doesn't match the real shadow value, this should be improved (and add the missing values (see https://github.com/google/material-design-lite/blob/master/src/shadow/_shadow.scss)


Create workaround for kubelet stopped posting node status bug

What this PR does / why we need it:
Sometimes the kubelet suddenly starts to hang and the kubelet needs to be restarted, or even the node if there is no ssh access.
This pr adds a script to cloud init to check the kubelet logs periodically and restarts the kubelet if needed.
This is because of this bug in kubernetes: https://github.com/kubernetes/kubernetes/issues/87615
That will probably be fixed with the first kubernetes version that will use golang 1.16 (probably earliest version will be 1.21).
Which issue(s) this PR fixes (optional, in fixes #<issue number> format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
We have only tested this for ubuntu, flatcar and coreos.
It is possible that there are some issues with RHEL, SLES and centos.
If there are any e2e tests that should be extended as well then please let me know.
Optional Release Note:

automatically restart kubelets that stop posting node status

/assign @moelsayed

But what about /etc/systemd/system/kubelet-healthcheck.service and its /opt/bin/health-monitor.sh kubelet? I suppose we can modify health-monitor.sh instead of introducing new scripts (and wasting precious user-data space).

This PR is replaced by the #901


added workflow for closing old issues

Description
This feature aims to automate the process of managing old issues, ensuring that the repository remains organized and focused on relevant tasks. By automatically closing old issues, it reduces manual overhead for repository maintainers and helps keep the issue tracker tidy and up-to-date.
Fixes:  #716

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[X] I have made this from my own
[ ] I have taken help from some online resourses
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings

@huamanraj please review and merge this PR

@huamanraj please review and merge this PR
Also, please add labels to issue as well as PR

good work 👏


Change the default JSON schema version to v0.

This PR changes the default JSON schema version for event stream output to version 0 (the version documented in #479.) Previously, if a caller did not specify a version number for the event stream, it would default to encoding "snapshots" of various values from the testing library.
Xcode 16 Beta 1 uses this legacy format, so to continue supporting newer betas of Xcode 16 transitionally, this PR temporarily enables a "-1" JSON schema version that continues to emit snapshot encodings. This JSON schema version will be removed (along with the snapshots code in general) in a future update once Xcode has migrated.
Resolves #527.
Checklist:

[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test

@swift-ci please test

@swift-ci please test Linux

@swift-ci please test


Keep updating the part of what was already downloaded until the file opened in editor get to a maximum size of 2,56 MB

This is a improvement suggestion.
Keep updating the part of what was already downloaded until the file opened in editor get to a maximum size of 2,56 MB, as that is the default size of a file on Intellij;

I think this is no longer a good improvement, I am going to close it.


FEATURE creating table creates a migration for it?

Feature request : creating a table , generate/create migration for it .
it's useful when you are developing offline , then moving to production , so simply, running migration on the host  will create the whole database tables needed.

This is on our radar for a future release.  Building a migration is certainly not a small/simple task.  We're open for pull requests!

I did something like this in my current project. I may be able to create a pull request for this in the next days.

PR open :crossed_fingers: https://github.com/the-control-group/voyager/pull/2014

@fletch3555 can this issue be closed? @jeffochoa created a hook for this jeffochoa/voyager-bread-generator. Or do still want to add this to the core?
Might be useful to re-read this pr: #2014

That hook isn't the same as this.  This issue is for automatically creating a migration class that matches the table that was created.  That hook creates BREAD programmatically, but the table already exists.  The --migration flag just calls artisan make:migration, which only creates a stub file.

I just found out that the button already exists for this feature, so I will try to do an attempt in the next weeks/months.


Block edge 4.3.28

4.3.28 needs to be disabled:
2 clusters currently failing (15%),  3 gone (23%),and  7 successful (54%), out of 13 who attempted the update over 7d
Currently failing classification:
* Single master: 1
* Untriaged: 1

4.3.28 can be enabled again:
1 clusters currently failing ( 9%),  2 gone (18%),and  8 successful (73%), out of 11 who attempted the update over 7d
Currently failing classification:
* Single master: 1
* Untriaged: 1


add exercise protein-translation

Folks, this is the exercise for this week's 48in24. Can I get some eyes on it please?

Sorry - Erik's been off ill and I've been swamped. Approved blind. Merge if you feel it's right! :)


Remove deprecated package sources

From https://azure.github.io/azure-sdk/releases/deprecated/index.html#net, remove packages' sources including build definitions as needed to avoid scanning alerts e.g., Component Governance, as well as unnecessary build time.
Do so using a PR for each service directory to make it easy to revert should we ever have to service a deprecated package (unlikely).
### Tasks
- [x] sdk/applicationinsights (Microsoft.Azure.ApplicationInsights.Query)
- [x] sdk/attestation (Microsoft.Azure.Attestation)
- [x] sdk/containerregistry (Microsoft.Azure.ContainerRegistry)
- [x] sdk/eventgrid (Microsoft.Azure.EventGrid)
- [x] sdk/eventhub (Microsoft.Azure.EventHubs, Microsoft.Azure.EventHubs.Processor)
- [x] sdk/graphrbac (Microsoft.Azure.Graph.RBAC)
- [x] sdk/hybriddatamanager (Azure.ResourceManager.HybridData)
- [x] sdk/keyvault (Microsoft.Azure.KeyVault, Microsoft.Azure.KeyVault.Core, Microsoft.Azure.KeyVault.Cryptography, Microsoft.Azure.KeyVault.Extensions, Microsoft.Azure.KeyVault.WebKey)
- [x] sdk/operationalinsights (Microsoft.Azure.OperationalInsights)
- [x] sdk/purview (Azure.Analytics.Purview.Share)
- [x] sdk/search (Microsoft.Azure.Search)
- [x] sdk/servicebus (Microsoft.Azure.ServiceBus)
- [x] sdk/storsimple8000series (Microsoft.Azure.Management.StorSimple8000Series)
- [x] sdk/trafficmanager (Microsoft.Azure.Management.TrafficManager)
- [x] sdk/websites (Microsoft.Azure.Management.WebSites)

You can use https://gist.github.com/heaths/587f0ed4f928fb5bd539c4680a793013 to discover deprecated Azure SDK for .NET packages.

@heaths what's the common pattern of deprecation? Remove directly or move to another branch / repo?

@ArthurMa1978 remove entirely. There's no reason to keep it. It's always in git and reachable from main. Tagged sources (we tag when we release) are also reachable via their tag. Nothing is git is ever truly gone if reachable from a named object e.g., branches or tags.


Jest are faling with component, when are using another component with absolute path

When I removed WidgetTitle or I changed path to normal component, test will be ok, anyone know how to fix it? I would like to use only absolute path.
 FAIL  src/cockpit/components/Circle/tests/Circle.test.js
● Test suite failed to run

  ReferenceError: initialState is not defined

    12 | };
    13 |
  > 14 | export default function adal(state = initialState, action) {
       |                                      ^
    15 |   switch (action.type) {
    16 |     case FETCH_TOKEN_PENDING:
    17 |       return {

    at initialState (src/redux/reducers/adal.js:14:38)
    at node_modules/redux/lib/redux.js:372:24
        at Array.forEach (<anonymous>)
    at assertReducerShape (node_modules/redux/lib/redux.js:370:25)
    at combineReducers (node_modules/redux/lib/redux.js:435:5)
    at rootReducer (src/redux/reducers/rootReducer.js:17:28)
    at Object.<anonymous> (src/init.store.js:12:34)
    at Object.<anonymous> (src/redux/actions/adalAction.js:6:1)
    at Object.<anonymous> (src/services/AuthService.js:4:1)
    at Object.<anonymous> (src/redux/reducers/adal.js:2:1)
    at Object.<anonymous> (src/helpers/requestHelper.js:2:1)
    at Object.<anonymous> (src/redux/actions/cockpit/eventsViewerAction.js:1:1)
    at Object.<anonymous> (src/redux/reducers/cockpit/eventsViewer.js:1:1)
    at Object.<anonymous> (src/cockpit/components/EventViewerModal/EventViewerModal.js:4:1)
    at Object.<anonymous> (src/cockpit/components/EventViewerModal/index.js:1:1)
    at Object.<anonymous> (src/cockpit/components/index.js:3:1)
    at Object.<anonymous> (src/cockpit/components/Circle/Circle.js:5:1)
    at Object.<anonymous> (src/cockpit/components/Circle/tests/Circle.test.js:3:1)

Test Suites: 1 failed, 6 passed, 7 total
Tests:       7 passed, 7 total
Snapshots:   2 passed, 2 total
Time:        4.694s
Ran all test suites related to files matching /.\/src\/App.js|.\/src\/assets|.\/src\/cockpit|.\/src\/components|.\/src\/config|.\/src\/helpers|.\/src\/index.js|.\/src\/init.adal.js|.\/src\/init.ga.js|.\/src\/init.persistor.js|.\/src\/init.sentry.js|.\/src\/init.serviceWorker.js|.\/src\/init.store.js|.\/src\/pages|.\/src\/redux|.\/src\/services|.\/src\/setupTests.js|.\/src\/tests|.\/src\/types.js|\/Users\/kubaji1\/Documents\/Projects\/webgenie\/src\/cockpit\/components\/Circle\/Circle.js/i.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>test:staged: `cross-env CI=true NODE_PATH=src react-scripts test --findRelatedTests ./src/* "/Users/kubaji1/Documents/Projects/webgenie/src/cockpit/components/Circle/Circle.js"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>test:staged script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/kubaji1/.npm/_logs/2019-09-17T22_04_42_406Z-debug.log
husky > pre-commit hook failed (add --no-verify to bypass)

`import React from 'react';
import { shallow } from 'enzyme';
import { Circle } from '../Circle';
it('renders without crashing', () => {
shallow(
<Circle
isThousands={false}
data={{
Id: 1,
Title: 'NET SALES',
ValueObject: {
Id: 1,
Value: 0.06427775584193578,
Unit: 'Percent',
Digits: 1,
Sign: '%',
NA: false
},
ComparatorValueObject: {
Id: 1,
Value: 0.02881272397317172,
Unit: 'Signed Percent',
Digits: 1,
Sign: '% vs SP18',
NA: false
},
IconColor: 'GREEN'
}}
/>
);
});
`

`import React from 'react';
import { shallow } from 'enzyme';
import { Circle } from '../Circle';
it('renders without crashing', () => {
shallow(

);
});
`

import React from 'react';
import PropTypes from 'prop-types';
import { formatValueObject } from 'helpers/ValueFormatter';
import { ValuePropType, CockpitIconColor } from 'types';
import { WidgetTitle } from 'cockpit/components';
import './_Circle.scss';
export const Circle = ({ data: { ComparatorValueObject, IconColor, Title, Description, ValueObject, MarginPYValue, MarginSPValue }, isThousands }) => {
const mainValue = formatValueObject(ValueObject, isThousands);
const subValue = formatValueObject(ComparatorValueObject, isThousands);
return (

{Title} lol

{Description}
<div className={Circle-title ${mainValue.length >= 8 ? 'Circle-title--small' : ''}}>{mainValue}
{subValue}

{MarginPYValue && MarginSPValue && (

Margin:

{formatValueObject(MarginPYValue, isThousands)}  {formatValueObject(MarginSPValue, isThousands)}

)}

);
};

import React from 'react';
import { shallow } from 'enzyme';
import { Circle } from '../Circle';

it('renders without crashing', () => {
  shallow(
    <Circle
      isThousands={false}
    />
  );
});

The issue is Jest are going inside /components and there are also components connected with Redux, I will separate those components to container components by article https://daveceddia.com/react-project-structure/
But if someone found different solution, let me know.. thank you, have a nice day


Performance improvements & other code changes

The first major change is that chunk loading actors (biomeActors and terrainActors) are now created once instead of being created and destroyed for each chunk load.
In ChunkSettings there is now MAX_CHUNK_LOADING_ACTORS that determines how many actors will be created at game start, since there's two different actors this value is floor divided by two and that determines how many biome and terrain actors will be created respectively (so a value of 24 will create 12 biome actors and 12 terrain actors).
With this, a new configuration instance named ClientSettings is added in StarterPlayerScripts that currently holds one attribute called ChunkLoadingActors with a default value of 16 (This value behaves the same way as MAX_CHUNK_LOADING_ACTORS, so 16 is equal to 8 biome and terrain actors being used.). Changing the ChunkLoadingActors attribute in ClientSettings will have effect on the amount of actors being used at runtime. (There's also a ServerSettings in ReplicatedStorage, currently has nothing but could be useful for stuff like global max block reach)
The default.project.json file didn't have any instances that were required by scripts, and so building the project with Rojo resulted in a place file that errored on start. This was fixed.
ParallelScripts is now located in StarterPlayerScripts, the scripts themselves are also adjusted for their new location.
For whatever reason every script was using StarterPlayerScripts instead of the actual PlayerScripts inside LocalPlayer. Given that StarterPlayerScripts is pretty much a placeholder for the game to copy the scripts to the player, it was weird that the scripts were using said placeholder instead of the existing running scripts. This by itself didn't cause any issues, but it was still a pretty weird thing regardless so i fixed it.
There is also some small miscellaneous performance improvements, the most important one being that i've found that one part of the code was running FindFirstChild() every frame which was highly unnecessary.
I have also changed every function to a local one instead of a global one.
Now i know this might sound dumb but it's pretty important given that local functions are stored on the stack and are accessed quicker, so free performance isn't a bad thing. This maybe could  have already been optimized by the scripts that have --!native enabled on them, but either way i think it's good to have consistency between scripts.
Here are two video comparisons that demonstrate the performance improvement. My CPU is an Intel i7-7700 @ 4.00GHz and my GPU is an Nvidia GTX 1080Ti. (I couldn't get the videos to be longer because of the 10MB restriction)
Before:
https://github.com/mustafakhafaji/mineblox/assets/79317688/c3ac2655-e42b-48aa-a603-42207904b482
After:
https://github.com/mustafakhafaji/mineblox/assets/79317688/dccaddc4-c85f-42a3-8c91-73956ebf5646

This looks like a significant contribution, thank you so much for the support xolyne! :)
I'll be testing this out shortly and merging with the main branch.


Word of caution for older mini-lathes

In your readme you allude to lathe main board (speed controller) failure associated with a short to the case from the control panel.  I was, therefore, very careful never to run the lathe when the panel was 'floating'.  However - once the project was finished and everything was working perfectly (amazing, by the way - another post with pics of the finished article will follow) I gave in to the obvious temptation to 'see what it could do'  ie. took the lathe speed up to the max.  That is what blew up my (rather old) control board.  The mode of failure was interesting (a pair of diodes across the supply failed short circuit) but it had nothing to do with NanoELS it is just that I had almost never run the lathe at top speed and the ageing control electronics wasn't up to it.  Still, it was an interesting fault finding mission and I learned something about SCRs as high voltage DC speed controllers along the way.

Matt, great data point, thanks for sharing, hopefully your warning will save a few control boards.


EISDIR, Illegal operation on a directory, Read

I get this error when trying to authenticate an Australian account.
I have full read/write permissions to my file path i put.
NR running on docker (unraid)
Any assistance appreciated
Cheers

It needs a path to a file like ~/alexa-cookie.json not to a directory!

I have tried a path to a file like you mentioned.
Used ~/alexa.cookie.json , ~/cookie.txt
Both instances, i even created the file in the directory.
This is the error:
ENOENT: no such file or directory, open '~/cookie.txt'

It needs a path to a file like ~/alexa-cookie.json not to a directory!

Sorry to bring it uyp again after its closed but,
I have tried a path to a file like you mentioned.
Used ~/alexa.cookie.json , ~/cookie.txt
Both instances, i even created the file in the directory.
This is the error:
ENOENT: no such file or directory, open '~/cookie.txt'


To-do list for the remainder

Based on CoDaS-HEP lesson 2:

[x] Minimizing the objective function
[x] Epochs and mini-batches

[x] Maybe another exercise: optimizing the mini-batch size

[x] Feature selection and the "kernel trick"
[x] Under & overfitting
[x] Regularization: L1, L2, dropout

[x] Exercise: L1 & L2 regularization in TensorFlow Playground

[x] Hyperparameters, validation, and partitioning into training, validation, and test samples
[x] Goodness of fit metrics

And then

[x] The project

And finally, from CoDaS-HEP lesson 4:

[x] Unsupervised problems and problems beyond regression & classification
[x] Autoencoders (example of unsupervised)
[x] Convolutional neural networks (with the jet images)
[x] DeepSets (example of ragged data)

It's not clear how much I should get into these topics. Perhaps I should stop after these three and leave it open for others to add more.

Okay, now it's done.


fix(e2e): fix eth_getBalance e2e test case

update eth_getBalance test case no.4 and no.6, from "-32001" to "0x0"

What this PR does / why we need it:
fix "eth_getBalance" e2e test case.
Which issue(s) this PR fixes:

Fixes #
Which docs this PR relation:
Ref #434
Which toolchain this PR adaption:
No Breaking Change
Special notes for your reviewer:
CI Switch
ci-runs-only: [Chaos CI, Cargo Clippy, Coverage Test, E2E Tests, Code Format, Unit Tests]

Codecov Report

Merging #441 (d9a992c) into main (607babd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #441   +/-   ##
=======================================
  Coverage   35.94%   35.94%
=======================================
  Files         119      119
  Lines        8283     8283
=======================================
  Hits         2977     2977
  Misses       5306     5306


More fence tracking fixes

This series unhacks various weird things in fence handling.

@mark-lunarg any chance this can make it in before your 1.17 code freeze? The fence behavior is currently pretty broken in master.

Yeah, I'd love to get it in -- I have promised it to several folks on LunarXchange.  I was waiting for Tobin or Michael to take a look, but I'll run it through our build server and push it (if no problems or outside objections).  Has it already been through y'all's test-farm deal?

I checked this out today and ran it on android and LGTM 👍

Great!  Vetting it here and I'll push it shortly.

Cherry-picked and pushed to Master.
c8592f1 layers: Get rid of fence->swapchain link
6c87c6a layers: Untangle validate+update in QueuePresentKHR
f91af4d layers: Fix AcquireNextImageKHR handling of sync objects
5e92f3c layers: Add getSemaphoreNode helper
cdb1ea0 layers: Rework fence state tracking
d591291 tests: Add a test for broken CREATE_SIGNALED handling
6e9b1f8 tests: Exercise unbounded stack use in decrementResources
df1846b layers: Tidy decrementResources a bit
accf816 layers: use getFenceNode in decrementResources
49f6132 layers: Pass layer_data to verifyWaitFenceState
9b48b44 layers: use getFenceNode in verifyWaitFenceState
c759853 layers: Fix InvalidMemoryMapping not setting structure type
02fdfb7 layers: Remove some MT leftovers

Thanks @mark-lunarg, there will be at least one more batch of changes to follow for next release, but this deals with the worst of it.


[sjpeg] Add new port

Describe the pull request

What does your PR fix?
This adds a new port for sjpeg.

Which triplets are supported/not supported? Have you updated the CI baseline?
Not sure yet, Yes

Does your PR follow the maintainer guide?

Yes

What is the problem with windows dynamic?
ATM it installs man1 manual pages (i.e. for tools) but it doesn't install a tool (feature). (They are the "examples".)

What is the problem with windows dynamic?
ATM it installs man1 manual pages (i.e. for tools) but it doesn't install a tool (feature). (They are the "examples".)

It fails with the following linker error:
[12/13] cmd.exe /C "cd . && D:\vcpkg\downloads\tools\cmake-3.21.1-windows\cmake-3.21.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\utils.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1430~1.307\bin\Hostx64\x86\link.exe  CMakeFiles\utils.dir\examples\utils.cc.obj  /out:utils.dll /implib:utils.lib /pdb:utils.pdb /dll /version:0.0 /machine:X86 /nologo    /debug /INCREMENTAL  D:\vcpkg\installed\x86-windows\debug\lib\libpng16d.lib  D:\vcpkg\installed\x86-windows\debug\lib\zlibd.lib  D:\vcpkg\installed\x86-windows\debug\lib\jpeg.lib  opengl32.lib  D:\vcpkg\installed\x86-windows\debug\lib\freeglutd.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  && cd ."
FAILED: utils.dll utils.lib
cmd.exe /C "cd . && D:\vcpkg\downloads\tools\cmake-3.21.1-windows\cmake-3.21.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\utils.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1430~1.307\bin\Hostx64\x86\link.exe  CMakeFiles\utils.dir\examples\utils.cc.obj  /out:utils.dll /implib:utils.lib /pdb:utils.pdb /dll /version:0.0 /machine:X86 /nologo    /debug /INCREMENTAL  D:\vcpkg\installed\x86-windows\debug\lib\libpng16d.lib  D:\vcpkg\installed\x86-windows\debug\lib\zlibd.lib  D:\vcpkg\installed\x86-windows\debug\lib\jpeg.lib  opengl32.lib  D:\vcpkg\installed\x86-windows\debug\lib\freeglutd.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  && cd ."
LINK Pass 1: command "C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1430~1.307\bin\Hostx64\x86\link.exe CMakeFiles\utils.dir\examples\utils.cc.obj /out:utils.dll /implib:utils.lib /pdb:utils.pdb /dll /version:0.0 /machine:X86 /nologo /debug /INCREMENTAL D:\vcpkg\installed\x86-windows\debug\lib\libpng16d.lib D:\vcpkg\installed\x86-windows\debug\lib\zlibd.lib D:\vcpkg\installed\x86-windows\debug\lib\jpeg.lib opengl32.lib D:\vcpkg\installed\x86-windows\debug\lib\freeglutd.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\utils.dir/intermediate.manifest CMakeFiles\utils.dir/manifest.res" failed (exit code 1120) with the following output:
utils.cc.obj : error LNK2019: unresolved external symbol "public: void __thiscall sjpeg::EncoderParam::ResetMetadata(void)" (?ResetMetadata@EncoderParam@sjpeg@@QAEXXZ) referenced in function "class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl ReadJPEG(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int * const,int * const,struct sjpeg::EncoderParam * const)" (?ReadJPEG@@YA?AV?$vector@EV?$allocator@E@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@QAH1QAUEncoderParam@sjpeg@@@Z)

I did not further investigate this error since the library is missing dllexport annotations and a DEF file, so it is obviously not intended to be built as a dynamic library on Windows.

ATM it installs man1 manual pages (i.e. for tools) but it doesn't install a tool (feature). (They are the "examples".)

Good catch. I guess they should only get installed if the tools get installed, as well. Or should man pages never get installed?

Generally, man pages are not installed to vcpkg. If installed by upstream, we can remove the folder. You can see that there are many ports removing the man installation.
For the tool (examples in this port ), we can disable it via pass -DSJPEG_BUILD_EXAMPLES=OFF.
https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/maintainer-guide.md#do-not-build-testsdocsexamples-by-default
https://github.com/webmproject/sjpeg/blob/676de227d75877eb5863ec805ba0a4b97fc2fc6c/CMakeLists.txt#L24

I pushed a3e6f4a967f009bcbd2d23105426595c8834c457 which removes the man pages.

LGTM, thanks for adding this port. @chausner


Possibility to spin the wheel via drag and drop

Is it possible to spin the wheel via drag and drop? if no, would it be easy to implement it?

Drag and drop? You don't mean touch - i.e. pull wheel down with finger then release to spin?
Either way there are no built in options for these. I would think its not too difficult to implement this as you can add any javascript events you like to the canvas then use event handlers for these to alter the wheel including starting the spinning.


request for conda install

Hi @RemDelaporteMathurin
I am trying to make a conda package which makes use of plasma-boundaries as a dependency
Would it be possible to add this to conda-forge or another conda channel sometime. I was also thinking of making a new conda channel for a collection of fusion packages so perhaps that would be another option
I am able to do this if you like but I wanted to check with you first

@RemDelaporteMathurin I have had a quick go at this an if you are happy a PR can be made to conda forge staging recipes for their consideration
I have put the draft recipe here but we can move it anywhere you like

I think that once the remove_dagmc_tags and plasmaboundaries are on conda then a recipe for the paramak can be made :-)

Sorry I somehow missed the already existing package https://github.com/conda-forge/plasmaboundaries-feedstock


Compiling Error

I think I have the arm cross compiler toolchain set up correctly, but I always seem to be "that guy" when setting up dev environments...
I got the uspi cloned into the right directory and there's no error from gcc, but I am getting these errors:
/bin/sh: 1: [: 4: unexpected error

It looks to me as if this part of the makefile doesn't work:
kernel: pigfx.img
@if [ $(RPI) == 1 ]; then
cp pigfx.img bin/kernel.img;
elif [ $(RPI) == 2 ]; then
cp pigfx.img bin/kernel7.img;
elif [ $(RPI) == 3 ]; then
cp pigfx.img bin/kernel8-32.img;
else
cp pigfx.img bin/recovery7l.img;
fi;
But I have no idea why...

Compiling on Windows is completely different than on linux. The makefile isn't used at all on Windows. There's a batch file that handles compiling.

Interesting, my friend was able to compile on linux no problem. I tried downloading and compiling on my home pc, but the same error popped up. Is it possible its a toolchain issue?

I'm going to close this if you don't mind.


KAFKA-10798; Ensure response is delayed for failed SASL authentication with connection close delay

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@omkreddy Thanks for the review, merging to trunk.

Hello!
I'm not sure that the reason is still here, but we have exactly SASL authentication and the delay "still" doesn't work.
Our Kafka version is 3.3. We see in logs that it's definitely applied, but with no effect(
2023-04-17 14:58:36,322 INFO KafkaConfig values:
...
	connection.failed.authentication.delay.ms = 1000
...

Log shows nonstop authorization attempts. One per 10 milliseconds (log e.g. below). Errors rate for the same topic is kept at the 1-2k per minute.
2023-04-17 15:02:45,266 INFO Principal = User:same_user is Denied Operation = Describe from host = x.x.x.x(same_ip) on resource = Topic:LITERAL:same_topic for request = Metadata with resourceRefCount = 1 (kafka.authorizer.logger) [handler-0]
2023-04-17 15:02:45,268 INFO Principal = User:same_user is Denied Operation = Describe from host = x.x.x.x(same_ip) on resource = Topic:LITERAL:same_topic for request = Metadata with resourceRefCount = 1 (kafka.authorizer.logger) [handler-3]
2023-04-17 15:02:45,268 INFO Principal = User:same_user is Denied Operation = Describe from host = x.x.x.x(same_ip) on resource = Topic:LITERAL:same_topic for request = Metadata with resourceRefCount = 1 (kafka.authorizer.logger) [handler-10]
2023-04-17 15:02:45,269 INFO Principal = User:same_user is Denied Operation = Describe from host = x.x.x.x(same_ip) on resource = Topic:LITERAL:same_topic for request = Metadata with resourceRefCount = 1 (kafka.authorizer.logger) [handler-11]

Maybe there is still another config to make the delay work?


automate --all

To automate all services. Need to figure out how to show this in the UI and cli. and what it means for new services, and deleted services.

No need for an --except or --exclude flag, as if you want to keep a service at a version you could lock it.

When moving to gitsync, the commit will specify whether we automate all or not. I.e. HEAD vs. specific commit hash.

When moving to gitsync, the commit will specify whether we automate all or not. I.e. HEAD vs. specific commit hash.

This issue relates to automated image releases, rather than automated synchronisation.

@geoah Am I right to interpret what you're describing as a kind of automation on/off switch?
That's different to the original proposal, which was to have a shortcut to annotating all workloads with "flux.weave.works/automation: true" -- but it's also well-motivated and plausible as a feature.

Basically either force automation on/off and ignore the annotation.
Or alternatively set the default automation if the annotation os not set.

Any more movement on this?

Not a priority right now, but we accept PRs!

Flux v1 is in maintenance mode now, and is not adding any new features unless they are critical.
As Flux contrib efforts have been focused on Flux v2, the Flux project has moved to a new repo, fluxcd/flux2
In the interest of reducing the number of open issues not directly related to supporting Flux v1 in maintenance mode, and respecting you may have moved on already, I will go ahead and close out this issue for now.


⚠ Turnos 24x7 has degraded performance

In 1a6b81c, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 5683 ms

Resolved: Turnos 24x7 performance has improved in b8ea82e.


Dopdown is disappearing after searching  the results in react-map-gl-geocoder

In React Map GL Gecoder Package after searching the items from input box, the results are shown in the dropdown and i select the items from the dropdwon list.the dropdwon list is hangs in there and disappering so how to over come the issues?Can please help out.
Here is my code below
 handleGeocoderViewportChange(e)}
        mapboxApiAccessToken={TOKEN}
        position="top-right"
      />
  const handleViewportChange = useCallback((newviewport) => {
      setviewport(newviewport)
  },[]);
  const handleGeocoderViewportChange = useCallback((viewport) => {
    const geocoderDefaultOverrides = { transitionDuration: 1000 };
    return handleViewportChange({
      ...viewport,
      ...geocoderDefaultOverrides,
    });
  },[handleViewportChange]);

Hi @Maruthasalam. In order to avoid this, the value for onViewportChange needs to be memoized. In your example you are passing a new function to onViewportChange on every render which is causing the problem that you are having.
Try this:
<Geocoder
    mapRef={mapRef}
    onViewportChange={handleGeocoderViewportChange}
    mapboxApiAccessToken={TOKEN}
    position="top-right"
/>

I am having a similar problem. A). I only see one suggestion. B) The suggestion disappears when I click it. The map animates to the location. The Single suggestion then reappears.
I can get the suggestion to disappear if I focus the Input, then click away. If I move the map, the suggestion will reappear.
I am using nextJS, I overcame the "window is not defined", error.
I am using the container ref and the input is outside the box.
import { useState, useRef, forwardRef, useCallback } from 'react'
import ReactMapGL from 'react-map-gl'
import Geocoder from 'react-map-gl-geocoder'

const TOKEN = `foobar`

const Map = forwardRef(( props, ref) => {
  const state =  {
      width: '100%',
      height: '100%',
       latitude: 41.5868,
       longitude: -93.625,
      zoom: 13
  };
  const mapRef = useRef();
  const [view, setView] = useState(state);

  const handleViewportChange = useCallback((viewport) => {
    setView(viewport);
  });

    return (
      <ReactMapGL
        ref={mapRef}
        mapStyle="mapbox://styles/mapbox/streets-v9"
        mapboxApiAccessToken={TOKEN}
        onViewportChange={handleViewportChange}
        {...view}
      >
       <Geocoder
          mapRef={mapRef}
          onViewportChange={handleViewportChange}
          containerRef={ref}
          mapboxApiAccessToken={TOKEN}
          countries={'US'}
          proximity={{latitude:34.103729, longitude:-118.328613}}
          position="top-left"
        />

      </ReactMapGL>
    );
})

export default Map;

[Link to Example](https://firebasestorage.googleapis.com/v0/b/bronto-eff70.appspot.com/o/Logos%2FcomesBack.png?alt=media&token=83d558d2-e95d-4a03-93b4-6388f7612e98)

Hi @utb2017, you're missing the deps on your useCallback. You actually don't need the useCallback in your case. And your proximity value needs to be memoized or defined outside of the function. The mapbox geocoder gets re-initialized every time a reference to a non-primitive value changes.
import { useState, useRef, forwardRef, useCallback } from 'react'
import ReactMapGL from 'react-map-gl'
import Geocoder from 'react-map-gl-geocoder'

const TOKEN = `foobar`
const PROXIMITY = {latitude:34.103729, longitude:-118.328613}

const Map = forwardRef(( props, ref) => {
  const state =  {
      width: '100%',
      height: '100%',
       latitude: 41.5868,
       longitude: -93.625,
      zoom: 13
  };
  const mapRef = useRef();
  const [view, setView] = useState(state);

    return (
      <ReactMapGL
        ref={mapRef}
        mapStyle="mapbox://styles/mapbox/streets-v9"
        mapboxApiAccessToken={TOKEN}
        onViewportChange={setView}
        {...view}
      >
       <Geocoder
          mapRef={mapRef}
          onViewportChange={setView}
          containerRef={ref}
          mapboxApiAccessToken={TOKEN}
          countries={'US'}
          proximity={PROXIMITY}
          position="top-left"
        />

      </ReactMapGL>
    );
})

export default Map;

@SamSamskies Thank you!!


create an alert for an operator metric

upgrade counter and failed upgrade counter implemented alert included in the bundle fixed by #130


Fibers debug in Chisel

Hello
I'm trying to integrate ZIO into a circuit simulator to support parallel hardware simulations in Chisel.
I define some function inside my test class:
driveInputs (size:Int, channel:String):Unit

and call it twice for upper and lower channels . This works fine, but sequentially, see below

I then define a parallel block like this:
  val res = for {
    f0  <- IO.fail(driveInputs (xlen, "a")).fork
    f1  <- IO.succeed(driveInputs (ylen, "b")).fork

    //_ <- f0.join
    //_ <- f1.join
    fib  = f0 zip f1
    _ <- fib.join
  } yield(fib)

and get an interruption after the first defined method is joined, whatever I do:

The only way to see any activity on the bottom channel is to comment everything related to the upper channel and thus fiber f0.
Here's my top level method:
object GridMain extends App {

  val runtime = new DefaultRuntime {}

  def run(args: List[String]) =
    appmain.fold(_ => 1, _ => 0)
  val appmain = IO.succeed(iotesters.Driver.execute ( Array[String](""), () => new GridShell){
    c => new GridUnitTest(c)} )
  //val top  = runtime.unsafeRun(appmain)
}

Any ideas? How do I debug this?
Thanks,
Boris

If driveInputs contains side-effects, you must use Task(...) to delay them. Otherwise, It will be evaluated on the calling thread. Moreover, IO.succeed(driveInputs).fork will not actually perform any computations on a separate fiber as driveInputs would have already been evaluated.

Hi @iravid . Thanks for your advice, but that didn't work for me. I did the following:
val t0:Task[Unit]  = ZIO.effect(driveInputs (xlen, "a"))
val t1:Task[Unit]  = ZIO.effect(driveInputs (ylen, "b"))
...
  val res = for {
    f0  <- t0.fork
    f1  <- t1.fork

    //r0 <- f0.join
    //r1 <- f1.join
    fib  = f0 zip f1
    //_ <- fib.join
  } yield(fib)

The code above results in a ZERO output on my waveform. Seem like tasks were never launched.
If I try with the runtime, it works sequentially, as with the linear code:
  val runtime = new DefaultRuntime {}
  val t0:Task[Unit]  = ZIO.effect(driveInputs (xlen, "a"))
  val t1:Task[Unit]  = ZIO.effect(driveInputs (ylen, "b"))

  runtime.unsafeRun(t0)
  runtime.unsafeRun(t1)

Anything else to try ?
Boris

did you runtime.unsafeRun(res)?

@iravid Yes, my bad. Forgot about running it :). Now, results are interesting and require more thought.
Here's my code:
  val runtime = new DefaultRuntime {}
  val t0:Task[Unit]  = ZIO.effect(driveInputs (xlen, "a"))
  val t1:Task[Unit]  = ZIO.effect(driveInputs (ylen, "b"))

  // Run seqeuntially
  runtime.unsafeRun(t0)
  runtime.unsafeRun(t1)

  def runpar0 () = {
    val res = for {
      f0  <- t0.fork
      f1  <- t1.fork
      r0  <- f0.join
      r1  <- f1.join
    } yield(r0,r1)
    runtime.unsafeRun(res)
  }

  def runpar1 () = {
    val res = for {
      f0  <- t0.fork
      f1  <- t1.fork
      fib  = f0 zip f1
      r <- fib.join
    } yield(r)
    runtime.unsafeRun(res)
  }
  step (5)
  runpar0()
  step (5)
  runpar1()

As we see, runpar0() yields in a mess, where control signal length is random.
runpar1() outputs the same result, as for sequential compute.
What I expect to see is a nice overlap, as below:

Any more thoughts ?

@tampler you seem to be misusing / misunderstanding the usage of runtime and IO effect. Ideally the runtime.unsafeRun should be called at the edges / end of your program. Its execution is done synchronously, that's possibly why it's not overlapping as you expect (though I do not understand how this circuit thing that you're showing works).
Try to refactor your code to compose these par0 and par1 into one for comprehension, fork them, and then finally run this last one into the unsafeRun, doing that it might work as you expect to.
Something like:
val t0:Task[Unit]  = ZIO.effect(driveInputs (xlen, "a"))
val t1:Task[Unit]  = ZIO.effect(driveInputs (ylen, "b"))

val par0: Task[Unit] = ???
val par1: Task[Unit] = ???

val combine = for{
  _ <- par0.fork
  _ <- par1.fork
} yield ()

runtime.unsafeRun(combine)

@7robertodantas thank you for suggestion, still no cigar. I believe, joining threads is necessary to ensure a valid sync. See results below
  val t0:Task[Unit]  = ZIO.effect(driveInputs (xlen, "a"))
  val t1:Task[Unit]  = ZIO.effect(driveInputs (ylen, "b"))

  def runpar0 () = {
    val res = for {
      f0  <- t0.fork
      f1  <- t1.fork
      //r0  <- f0.join
      //r1  <- f1.join
    } yield()
    runtime.unsafeRun(res)
  }

  def runpar1 () = {
    val res  = t0 <&> t1
    runtime.unsafeRun(res)
  }

sequential ()
runpar0()
runpar1()

Other thoughts ?
Boris

After experimenting for a while with ZIO fibers, I came up with some conclusions. See the pic below to start with

I slightly refactored my code and let each function to actually return before executing the end-of-the-world.
I can't upload my code, since that's a commercial project and most of you won't mess with extra dependencies and set up.
But the generic principle is simple: I wanna run multiple fibers from a single-threaded Scala app. Here's my code:
  def driveA () = {

    for {
      i <- 0 until xlen
      j <- 0 until ylen
      } yield {
        poke (uut.adin(0).valid, 1)
        poke (uut.adin(0).bits.data, A.get(i,j).toInt)
        step(1)
    }
    poke (uut.adin(0).valid, 0)
    poke (uut.adin(0).bits.data, 0)

  }

  def driveB () = {

    for {
      i <- 0 until xlen
      j <- 0 until ylen
      } yield {
        poke (uut.adin(1).valid, 1)
        poke (uut.adin(1).bits.data, B.get(i,j).toInt)
        step(1)
    }
    poke (uut.adin(1).valid, 0)
    poke (uut.adin(1).bits.data, 0)

  }

  val runtime = new DefaultRuntime {}

  val t0:Task[Unit]  = ZIO.effect(driveA ())
  val t1:Task[Unit]  = ZIO.effect(driveB ())

  runtime.unsafeRun(t0)
  runtime.unsafeRun(t1)

  def runpar0 () = {

    val res = for {

      f0  <- t0.fork
      f1  <- t1.fork

      r0  <- f0.join
      r1  <- f1.join

    //} yield(f0.join, f1.join)
    } yield()

    res
  }

  def runpar1 () = {

    val res = for {

      f0  <- t0.fork
      f1  <- t1.fork

      fib  = f0 zip f1
      r <- fib.join

    } yield(r)

    res
  }

  def runpar2 () = {
    val res  = t0 race t1
    res
  }

  step (5)
  runtime.unsafeRun(runpar0())

  step (5)
  runtime.unsafeRun(runpar1())

  step (5)
  runtime.unsafeRun(runpar2())

If you check the picture, you'll see that the simulator indeed spawns two threads, but their synchronization is under the question.
The 2-nd beat shows that fiber sync can break the app logic, spreading computation over more than 4 cycles. The 3-d beat shows that fibers may be scheduled out-of-order, but both ZIO par and ZIO race methods schedule an eager execution, spawning the 2-nd fiber only after the first has returned.
Correct me if I'm wrong. I don't understand how to explain this scheduling behavior and looking for a help from ZIO community
Thank you,
Boris

You can control the behavior of forking by swapping the underlying Executor in the runtime. e.g. to pin every fiber to a separate thread you can create a cachedThreadPool with unlimited threads and set yieldOpCount in runtime to Long.MaxValue

Feel free to continue this conversation in the Gitter chatroom - closing this out for now.

Hey @iravid
I didn't grant you a permission to close my issues, since they are not yet solved.
I'm trying to innovate and solve a real world business problem with ZIO and need a community support. Your solution didn't work. So pls provide a better solution, if you can, or let other and smarter people to solve this issue and build new apps upon ZIO.
If you can't, reopen this issue and don't touch my tickets anymore, just because you can
Thank you,
Boris von Vladimirovich


ERROE:CS8600

Hello, how can I solve the error code of CS8600 when compiling?
The error position is in lines 16 and 68 of CachableMonoBehaviour

Try to use the latest Visual Studio 2019 ?

嘗試使用最新的Visual Studio 2019嗎？

Microsoft Visual Studio Community 2019
VER 16.7.7

Latest is 16.9.4 so as I said please update. This should solve this issue

Latest is 16.9.4 so as I said please update. This should solve this issue
In the past, I used offline installation, which caused the need to update manually
Thank you for your awareness

Latest is 16.9.4 so as I said please update. This should solve this issue
In the past, I used offline installation, which caused the need to update manually
Thank you for your awareness


Similarity plugin is broken due to jQuery dependency

Replace this with a generic "slider" response plugin.

fixed by #409