text:
Seemingly unsolvable state caused by wrong webhook configuration

Describe the bug:
I've reached an (seemingly) frozen state in my cert-manager deployment. At first I noticed that my ArgoCD applications went into an "Unknown" state due to a cert-manager webhook issue, causing me to investigate the situation further. During the debugging process I've made a mistake by applying the helm chart manually to my Kubernetes cluster. The error I made was that "RELEASE-NAME" was not yet replaced by the correct naming in the templates. I've been able to remove all cert-manager CRD's from the cluster by removing their finalizers and deleting them normally. However, the clusterissuers.cert-manager.io CRD does not allow me to edit it and remove its finalizers (after saving the updated file without the finalizer it does not do anything and the cli remains stuck untill using an escape).
I figured there may be some ClusterIssuer resource left on my cluster, but when querying for them it returns this message:
$ kubectl get clusterissuer -A
Error from server: conversion webhook for cert-manager.io/v1alpha2, Kind=ClusterIssuer failed: Post "https://RELEASE-NAME-cert-manager-webhook.default.svc:443/convert?timeout=30s": service "RELEASE-NAME-cert-manager-webhook" not found

Here it seems that the webhook now uses the wrong naming (with "RELEASE-NAME"). I get the same message when attempting to delete all current ClusterIssuers with kubectl delete clusterissuer --all -A.
Expected behaviour:
I expect to be able to edit the CRD, but this does not work.
Steps to reproduce the bug:
Template Helm chart using this values.yaml:
cert-manager:
  installCRDs: true
  prometheus:
    enabled: false

Deploy the Helm output manually without replacing the "RELEASE-NAME" properly (using  kubectl apply -f helm-output.yaml. The delete this deployment using kubectl delete -f helm-output.yaml. In my case the ClusterIssuer CRD remains and cannot be editted.
Environment details::

Kubernetes version: 1.20.8-do.0
Cloud-provider/provisioner: DigitalOcean
cert-manager version: 1.4.2 (helm chart version)
Install method: Helm

Could my assumption be right (about remaining ClusterIssuer resources)? Is this a known issue/state? And most importantly, are there solutions to fully remove cert-manager (so that I can re-install using the correct configuration)?
Kind regards,
Jacco
/kind bug

Update: On another system I was able to remove the finalizer and the CRD was immediately removed. Haven't figured out why it worked on this different machine but as the problem is resolved I will close this issue.

I just found this issue. It seems that when you don't properly uninstall it when creating it with another release name, it might left behind some ValidatingWebhooks. I just made a cleanup of all of old resources by doing this, in my case the release was test:
sudo kubectl delete clusterrole test-ingress-nginx-admission
sudo kubectl delete clusterrole test-postgres-operator
sudo kubectl delete clusterrole test-postgres-operator-ui
sudo kubectl delete clusterrole test-cert-manager-controller-ingress-shim
sudo kubectl delete clusterrole test-cert-manager-view
sudo kubectl delete clusterrole test-cert-manager-controller-certificatesigningrequests
sudo kubectl delete clusterrole test-cert-manager-controller-approve:cert-manager-io
sudo kubectl delete clusterrole test-cert-manager-edit
sudo kubectl delete clusterrole test-cert-manager-cainjector
sudo kubectl delete clusterrole test-cert-manager-controller-certificates
sudo kubectl delete clusterrole test-cert-manager-controller-challenges
sudo kubectl delete clusterrole test-cert-manager-controller-clusterissuers
sudo kubectl delete clusterrole test-cert-manager-webhook:subjectaccessreviews
sudo kubectl delete clusterrole test-cert-manager-controller-orders
sudo kubectl delete clusterrole test-cert-manager-controller-issuers

sudo kubectl delete clusterRoleBinding test-cert-manager-cainjector
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-approve:cert-manager-io
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-certificates
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-clusterissuers
sudo kubectl delete clusterRoleBinding test-cert-manager-webhook:subjectaccessreviews
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-challenges
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-issuers
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-certificatesigningrequests
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-orders
sudo kubectl delete clusterRoleBinding test-cert-manager-controller-ingress-shim

sudo kubectl delete role test-cert-manager:leaderelection -n kube-system
sudo kubectl delete role test-cert-manager-cainjector:leaderelection -n kube-system

sudo kubectl delete RoleBinding test-cert-manager:leaderelection -n kube-system
sudo kubectl delete RoleBinding test-cert-manager-cainjector:leaderelection        -n kube-system

sudo kubectl delete MutatingWebhookConfiguration test-cert-manager-webhook
sudo kubectl delete ValidatingWebhookConfiguration test-cert-manager-webhook

authors: Sir-Jacques yevon

repo: cert-manager/cert-manager


text:
Root CA missing in tls.crt since migration from 1.2 to 1.6.1

In cert-manager 1.2,  in the secret, we see in tls.crt, the certifcate + root and ca (complete chain).
In version 1.6, we don't have the full chain, the root ca is missing.
If I look in Venafi, i see the complete chain.  When I download the certificate, I got all the chain but cert-manager don't seem to write the root ca in tls.crt.
Anything else we need to know?:
Environment details::

Kubernetes version: Openshift 4.8/ K8s 1.21
Cloud-provider/provisioner: AWS
cert-manager version: 1.6.1
Install method: static manifests

/kind bug

This is intentional, see the justification https://cert-manager.io/docs/faq/#why-isn-t-my-root-certificate-in-my-issued-secret-s-tls-crt
You should find the root ca in ca.crt

I agree with the majority of the points concerning certifiactes in this post.  However where I do not agree, is where ca.crt do not include both ca (root and sub), it should.  For me, ca store should contain both certificates.  We are using cert-util-operator to automate the management of our reencrypt route in our clusters, and this operator is sourcing ca.crt to inject certificates in caCertificate of the route.  It does not work with only the root certificate, it needs the full chain otherwise the route is rejected.
In our openshift installation with trafic coming form aws, the api gateway in aws, ask the presence of a root certificate authority and is not there anymore
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-extensions-integration-tls-config.html
Supported only for REST APIs. Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations

This is intentional, see the justification https://cert-manager.io/docs/faq/#why-isn-t-my-root-certificate-in-my-issued-secret-s-tls-crt
You should find the root ca in ca.crt

After doing some tests on our side, tls handshake does not work anymore.  When using cert-util-operator, since that change, it's not possible to have full chain (root & sub) in the same block in the route.   Now, we have root ca in caCertificate section and sub ca in certificate section.  This config does not work. The split of the root & sub ca brings problem.  If we bring manually the two ca certificate in caCertificate or certificate, it work.  Maybe the way it is configured in openshift haproxy but does not work.  So this change have consequences.

Maybe the way it is configured in openshift haproxy but does not work

I am not familiar wth openshift haproxy. It might make sense to clarify what doesn't work.
Is this an open source project, have you tried opening an issue there?
/cc @SgtCoDFish

Answering your question in https://github.com/redhat-cop/cert-utils-operator/issues/119 :

If I go further, why ca.crt does not contain both ca & sub certificate and tls.crt only signed certificate ? It would solve the problem. A question I should asked to jetstack team.

The reason tls.crt contains the leaf and the intermediate is because that's what is absolutely required to use the leaf certificate for TLS. You need the chain, and you need the leaf, but you don't need the root.
We also can't change this anyway because it'd be a huge breaking change, but that's besides the point - tls.crt and ca.crt are correct.
Put another way: roots are for trust stores. tls.crt is what's used for serving certificates. ca.crt is for trust stores.

For me, ca store should contain both certificates.

It's valid to put intermediates into trust stores, true - but it's brittle, and it's a code smell. In any properly configured environment this shouldn't be required because if the validator doesn't have the root CA in its trust store before it makes a connection, the connection by definition cannot be secure.
It follows that if the validator MUST have the root before the connection is made, then the intermediate is pointless.

We are using cert-util-operator to automate the management of our reencrypt route in our clusters, and this operator is sourcing ca.crt to inject certificates in caCertificate of the route. It does not work with only the root certificate, it needs the full chain otherwise the route is rejected.

I'd be interested in learning more about what "sourcing ca.crt to inject certificates in caCertificate of the route" means in practice.  What function does " caCertificate of the route" serve?
Caveat: I'm not familiar with OpenShift or with cert-utils-operator.

source: gharchive/issue

authors: SgtCoDFish irbekrm whitelion-github

license_type: permissive

license_source: bigquery


text:
Issuing breaks if PodSecurity is set to restricted

Since cert-manager create Pods in the namespace the Certificate object lives in, issuing certificates breaks if that namespace has PodSecurity label enforced (i.e. the namespace has the pod-security.kubernetes.io/enforce: restricted label). The following event/error is logged in such a configuration, and the solver Pod is prevented from being created and starting:
Error presenting challenge: pods "cm-acme-http-solver-rvt6g" is forbidden: violates PodSecurity "restricted:latest": unrestricted capabilities (container "acmesolver" must set securityContext.capabilities.drop=["ALL"]), seccompProfile (pod or container "acmesolver" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
The solver Pods should probably just generally have those restrictions. In my experience those aren't limiting to simple server processes and should just work.
Environment details::

Kubernetes version: 1.24.3
cert-manager version: 1.9.0
Install method: static manifest

/kind bug

Seems to be already fixed via cbb476929eb2fc336a76e703217f41b7133b4a18 / #5259 but barely missed the 1.9.0 release


text:
Add revision history limit Ingress annotation to set field on the Cer…

Closes #5188
Kind
feature
Addes revision history limit Ingress annotation to set field on the Certificate

/check-required-labels

/label release-note Addes revision history limit Ingress annotation to set field on the Certificate

/release-note-edit Addes revision history limit Ingress annotation to set field on the Certificate

/ok-to-test

/retest

/check-required-labels

unrelated flake
/test pull-cert-manager-e2e-v1-24

source: gharchive/pull-request


text:
Feature gates: promote StableCertificateRequestName and SecretsFilteredCaching to Beta

Based on our CI testing, we can be reasonably comfortable with enabling StableCertificateRequestName and SecretsFilteredCaching by default & promoting them to Beta (see "A Beta feature means:" https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/#feature-stages).
Kind
/kind feature
Release Note
Promoted the StableCertificateRequestName and SecretsFilteredCaching featureflags to Beta (enabled by default).

/retest

/retest

depends on https://github.com/cert-manager/cert-manager/pull/6299

/retest

depends on https://github.com/cert-manager/cert-manager/pull/6300

/retest

/retest

/retest

/test pull-cert-manager-master-make-test

/test pull-cert-manager-master-make-test

depends on https://github.com/cert-manager/cert-manager/pull/6028

/unhold

authors: SgtCoDFish inteon


text:
Normalize buttons

Normalize all landing buttons to be like the "Meet the team" one. We should also create a component to render a button.

This was solved in #571

license: MIT

license_source: github-api


text:
twojmax inconsistensy?

twojmax is equals to 5 in examples/snap/snap.jl, but it is equals to 2 in examples/snap/GaN.snapparam. Is this correct?

@rohskopf I think I just copied that from your code. Can we avoid duplicating the params since they are already given in GaN.snapparam?

authors: emmanuellujan vchuravy


text:
Recommend Ruby or Rails good tutorials

Leave a comment on good tutorials that have worked for you and maybe say .
Please also leave your twitter username in your comment for applaud

Tutorialspoint (ruby on rails)

Ruby on Rails Tutorial (Rails 5)

For Ruby without Rails that is you can check out Why's Poignant Guide to Ruby . Great book when you are just starting out.

Michael Hartl Ruby on rails tutorial happens to be the best resource I'd recommend to anyone getting started: https://www.railstutorial.org/book  The explanation of concepts is great. And also every single line of code you'll be writing is explained.

Best practice  before getting started with ruby on rails is to first learn Ruby the language. You can start by doing the ruby course on codecademy: https://www.codecademy.com/learn . You'll now find it easier when you learn ruby on rails

authors: UddeepaWijerathna cesswairimu champagnepappi mboya ogudah

repo: cesswairimu/GirlsGetGeeky


text:
Suggest --link-with-current-distribution on error

Taken from #6036.
We should probably suggest to the user that they can use the option --link-with-current-distribution to override errors of the type "ceylon run: Could not find module: ceylon.language/1.2.2 (invalid version?)" when running on an earlier version of Ceylon than that of the module being run.

Fixed by 	4d05237

repo: ceylon/ceylon


text:
static interfaces completely broken

This code results in backend errors:
class Foo {
    shared static interface Bar {}
    shared new() {}
}

Ceylon backend error: modifier static not allowed here

Perhaps the problem is that the backend is adding a static modifier, when that is implicit in Java.

I can't reproduce. That example works for me.

@FroMage Try in Eclipse.

Works for me in Eclipse with the 1.3.2 plugin.

I'm using the 1.3.3 snapshot.

I don't see how the IDE could have broken this between 1.3.2 and now. Especially when the backend works.

I'll try though, but it's super weird.

An additional data point: it only happens on clean builds, not on incremental builds.

That's even weirder.

I mean, it's self-contained, there's no other type to make incremental different.

My bad: to reproduce the bug it is necessary to have a .java source file somewhere in the project. Mine had no class defined in it, so I figured it was irrelevant. Stupid me.

OK let's try.

OK that makes a lot more sense then, I know where it can be.

fixed.

Thanks.

authors: FroMage gavinking


text:
problem where javac eliminates 'let' expression

Given this (redundant) code, which produces a typechecker warning:
shared void run() {
    {String*} stream = {"xx", "yy"};
    assert (is [String+] | [] result = stream.sequence());
    print(result);
}

The Java backend produces code with this let expression:
        .java.lang.Object result$0 = null;
        if (!(
            let
            {
                .java.lang.Object $ceylontmp$1 = result$0 = stream.sequence();
            }
            returning false;
        )) {
            result$2 = result$0;
        } else {
            throw new .ceylon.language.AssertionError("Assertion failed" + (.java.lang.System.lineSeparator() + "\tviolated " + "is [String+] | [] result = stream.sequence()") + .com.redhat.ceylon.compiler.java.Util.assertIsFailed(false, .com.redhat.ceylon.compiler.java.runtime.model.TypeDescriptor.union(.com.redhat.ceylon.compiler.java.runtime.model.TypeDescriptor.klass(.ceylon.language.Sequence.class, .ceylon.language.String.$TypeDescriptor$), .ceylon.language.Empty.$TypeDescriptor$), result$0));
        }

Javac actually eliminates the let, since it always evaluates to false, and so result$0 is never assigned.
Thus the code prints null.
(Problem noticed by @Zambonifofex, and simplified by me.)

I’m not sure if this is the same issue I was having; especially because I was running on JS. It seems to me that something different altogether, but whose code looks similar, just happens to happen on the JVM.
#7029 seems to be more representative of what I found.

Fixed, quite amazing we never noticed this before…

Thanks

authors: FroMage Zambonifofex gavinking


text:
Inline js comments

Hi, seems that the inline js comments within scripts added into the html are creating problems. The code underneath the comment is commented too. All of the content. There is no way to strip the js comments?

Per the docs, have you disabled inline JS minification in the settings?

No, no one ignore setting is enabled.

Try that first then. Known bug, per the docs.

Hi, sorry me but enabling the Ignore inline JavaScript option the js will not be minified.

That's right. But the rest of your HTML will be. You should minify your JS on your own end anyways.

Uhm, I don't think this is the best solution. Anyway thanks for your time. I'll try another way to minify the js.

This plugin is not designed to minify JS. Well formed inline JS can be safely minified, but you'd be far better off using Uglify.js or something like that. The primary goal here is to minify HTML, which it does.

Also, the docs clearly state in multiple places: "Inline JavaScript sometimes breaks when minified, so you may wish to exclude it from minification."

I understand that the plugin is not designed to minify the js, but this means I must minify my js even on my development version. The inline js may be used inside a php file, in that case will be problematic to maintain the code.

I understand. Honestly, you should be avoiding large chunks of inline JS anyways, so I think the impact of excluding it from minification is minimal.

authors: cferdinandi widoz

repo: cferdinandi/html-minify

license: mit


text:
Add language to registration page

This will notify people who sign up for an account, that we will use the email address to send notifications.
"The provided email address will be used to notify you of any HMDA related technology updates."
@awolfe76 @designlanguage we will need to find a spot for the language.

USWDS has a possible solution ... using something like The provided email address will be used to notify you of any HMDA related technology updates. below the  for the email input.

repo: cfpb/hmda-platform-auth


text:
2015 updates

Added placeholder object for revised 3-5 year ACS layers for 2015 layer
Updated default query parameter to 2015

LGTM despite Travis test failures. Merging and will circle back to this.

authors: sephcoster sleitner

repo: cfpb/mapusaurus


text:
[Point of Contact] Phone Number - Auto-formatting

The user will not need to input parentheses or hyphens

Looking forward to this in a future sprint! 👍

authors: billhimmelsbach shindigira

repo: cfpb/sbl-frontend


text:
🛑 Grafana is down

In 09ad1a5, Grafana ($GRAFANA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in f4b193c.

repo: cfsausgit/upptime


text:
disable spell checker

For some fields the spell checker (with the suggestions) should be disabled. I've now implemented this for the trackable code in the search and in the trackable logging action. Any further edit texts where this would be useful?

I'll try to do a short run-through tomorrow to find more places.

Search -> GCcode
Coordinates (standard type)
Cache details -> add waypoint -> distance

For Search -> GCcode I personally like to have the "spell checker" ( I think we are speaking about the selection-field which pops up...right ?).
I sometimes search for caches I have already searched for in the past, so the auto-complete is helpful.

I've left it as is for the GC code field, because otherwise it wouldn't suggest the previously used codes anymore, as written by lineflyer.

Currently I see only one place left: global search (in the search bar at the top). But that seems to be a lot more complicated as it needs a separate content provider implementation to disable the suggestions.
Closing.

authors: Bananeweizen Lineflyer YraFyra rsudev

repo: cgeo/c-geo-opensource


text:
🛑 Personal is down

In faf35fa, Personal (https://chadburrus.com) was down:

HTTP code: 521
Response time: 192 ms

Resolved: Personal is back up in f041f0a.

repo: chadburrus/upptime


text:
WIP: Use native modules for the Examples

This is just a placeholder since I don't know if it's ready for all browsers yet. It might be nice to migrate the examples to use native ES6 modules + nomodule fallback to the built versions.
I don't know the best approach to do this yet, but I am open to suggestions (or for someone to pick this up and finish the PR).
The live example is here: https://rawgit.com/chafey/cornerstone/native-modules-for-examples/example/jsminimal/index.html

Coverage increased (+0.09%) to 53.104% when pulling b61ea83546dde4705b88adda87d3634e6c4cda36 on native-modules-for-examples into 28477c2f733bfb0a2dfabe3c0c88a83708c5d220 on master.

Coverage increased (+0.09%) to 53.104% when pulling 4f975e09b1d8f94fbab1bdd428e8d5f5041aa5fb on native-modules-for-examples into 28477c2f733bfb0a2dfabe3c0c88a83708c5d220 on master.

authors: coveralls swederik

repo: chafey/cornerstone


text:
git push directly for performance

This is to avoid cloning the user's repository.

LGTM

authors: kmaehashi niboshi

repo: chainer/backport


text:
Loss Scaling

This PR adds a loss scaling feature: http://docs.nvidia.com/deeplearning/sdk/mixed-precision-training/index.html#lossscaling.
You can use the loss scaling feature by just setting the scaling factor using a method set_loss_scaling_factor() as below.
from chainer import training

training.set_loss_scaling_factor(1024.0)
trainer.run()

When the scaling factor is set and data type of parameters is fp16, a fp32 copy of parameters are created automatically and parameters are updated with fp32.
Please note that only StandardUpdater is supported for now. After some consensus is obtained that this API is OK, I will make the loss scaling available to other Updaters.

Thank you for the PR.
I think the loss calling should be a feature of backprop computation instead of framework-wide "mode". For example, if the feature can be implemented by adding loss_scale option to Variable.backward and chainer.grad, that's great. We may also want to make StandardUpdater support configuring that argument.
IMO, the fp32 update should be treated separately from the loss scaling setting (and thus it's better to split the PR itself as well). I recommend you to implement it as a feature of UpdateRule instead of Parameter.

I will split this PR to two PRs: one for fp32 update, the other for loss scaling.

I've just submitted a PR for fp32 update as #3708. Please review #3708 first.

The loss scaling feature was re-implemented as a feature of backprop as suggested and the fp32 update feature was removed from this PR.
A loss_scale option is added to Variable.backward and chainer.grad, so that you can use the loss scaling by adding the loss_scale option to Variable.backward or chainer.grad in your code like below.
loss = lossfunc(y, t)
loss.backward(loss_scale=1024)

When loss scaling factor is set, the gradient of the loss is scaled up (multiplied by the scaling factor), and the scaling factor is propagated to whole gradients of parameters in a computational graph along the backprop. The gradients of each parameter are scaled down (divided by the scaling factor) just before the parameter is to be updated, so that in principle the same result can be obtained as when loss scaling is not used.
The loss_scale option is also added to StandardUpdater, so if you use StandardUpdater, you can use loss scaling by adding the loss_scale option to StandardUpdater in your code like below.
updater = training.StandardUpdater(..., loss_scale=1024)

repo: chainer/chainer


text:
Move add to mathematical functions in docs

chainer.functions.add looks lonely by itself as the only "arithmetic" function. I think it fits better with "mathematical" functions.

chainer.functions.add looks lonely by itself as the only "arithmetic" function.

That's why I added the description here; https://github.com/chainer/chainer/commit/29a7d5195579aae01d4ad6868a3c5e7c838b0c67#diff-4801516dbf888a00ecf4b2b270ce2f83R38
I think add should not be categorized into activation function.

Ok. Re-reading the note, I understand the reason for the separate category. Closing PR.

authors: Crissman kmaehashi


text:
Override Link.forward in MNIST model parallel example

Extracted from #4730.

Jenkins CI test (for commit a9a56f5997cd0ddb597744a1b954c9ceaf7360bb, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

jenkins, test this please.

Jenkins CI test (for commit a9a56f5997cd0ddb597744a1b954c9ceaf7360bb, target branch master) succeeded!

authors: chainer-ci niboshi okuta


text:
[backport] Simplify batch normalization with cuDNN

Backport of #5568

Jenkins CI test (for commit 511f3cb5c3888c00df70f85b1d65fcf54e689d6f, target branch v5) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Jenkins, test this please.

Jenkins, test this please.

authors: chainer-ci takagi toslunar


text:
GradientLARS optimizer hook working with chainerx

Part of #7634

Jenkins, test this please.

Jenkins CI test (for commit 6d0fd1884c28a40ebddba1c58bbf978973c32e74, target branch master) succeeded!

LGTM.

authors: asi1024 chainer-ci emcastillo


text:
SSD single node training using "train.py" is much slower than using "train_multi.py"

hello, we found that using train.py for single node training is much slower than using train_multi.py.
It seems that it takes a long time in running chainer.iterators.MultiprocessIterator in train.py. Did you see similar issue on your site?
Be notice, even we use train_multi.py, only one node was used.

How did you investigate the duration of chainer.iterators.MultiprocessIterator? Perhaps, changing n_processes has some effect.

can we close this issue?

authors: Hakuyume knorth55 mingxiaoh

repo: chainer/chainercv


text:
Query strings in purls are not correctly encoded

When writing purls, the information in the qualifiers - the query string in the URL - is not correctly encoded. Plus signs are not encoded correctly, for example:
pkg:oci/static@sha256:[...]?arch=386&mediaType=application%2Fvnd.oci.image.manifest.v1+json&os=linux

The media type there should read:
mediaType=application%2Fvnd.oci.image.manifest.v1%2Bjson

This seems to be a bug in the purl library. A PR to fix this has been open since 2020: https://github.com/package-url/packageurl-go/pull/22

repo: chainguard-dev/apko


text:
[React][Dialog] The close animation does not work

Description
Hi,
The close animation on the Dialog component does not work anymore.
It should be related to the Presence API as the DOM nodes are removed before the close animation end.
The issue occurs both with and without lazy mounting.
Link to Reproduction
https://codesandbox.io/s/festive-smoke-zn3w2n?file=/src/App.js
Steps to reproduce

Click on the buttons to open the dialogs
When closing any of the dialogs, the close animation is not working

Ark UI Version
1.0.0
Framework

[X] React
[ ] Solid
[ ] Vue

Browser
Google Chrome 119
Additional Information
No response

Issue will be fixed with 1.0.1

authors: cschroeter fseglard

repo: chakra-ui/ark


text:
[vue] Slider props minStepsBetweenThumbs missing

Description
Slider does not have props minStepsBetweenThumbs, apparently this happened after combining RangeSlider and Slider
@ark-ui/vue v0.8.0
https://github.com/chakra-ui/ark/blob/c8177031497f2f725b7062eec64b1e36a167292a/packages/vue/src/range-slider/range-slider.props.ts#L44-L46
Link to Reproduction (or Detailed Explanation)
https://github.com/chakra-ui/ark/blob/main/packages/frameworks/vue/src/slider/stories/range-slider.story.vue
Steps to Reproduce
https://github.com/chakra-ui/ark/blob/14d369dad381632d4fbfa2b48c14ec60c3dbc076/packages/frameworks/vue/src/slider/stories/range-slider.story.vue#L121-L133
Ark UI Version
0.10.0
Framework

[ ] React
[ ] Solid
[X] Vue

Browser
No response
Additional Information
No response

Thanks for the notice! Fixed now


text:
[data-placement] isn't typed in useSelectContext().triggerProps

Description
I want to be able to pass the current select placement as data-placement for  Select.Content (so I can style it with tailwind). The main reason for that is to be able to decide the transform-origin of the presence animation.
In runtime, this part of code seems to work:
function SelectContent() {
  const { triggerProps } = useSelectContext();

  return (
    <Select.Content data-placement={triggerProps['data-placement']}>
      ...
    </Select.Content>
  );
}

The issue is with TypeScript when I'm trying to access [data-placement]:
Element implicitly has an 'any' type because expression of type '"data-placement"' can't be used to index type 'WithoutRef<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>'.
  Property 'data-placement' does not exist on type 'WithoutRef<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>'.(7053)

Link to Reproduction (or Detailed Explanation)
https://stackblitz.com/edit/vitejs-vite-fziyaa?file=src%2FApp.tsx&terminal=dev
Steps to Reproduce

Go to code
See reproduction

Ark UI Version
2.2.3
Framework

[X] React
[ ] Solid
[ ] Vue

Browser
Google Chrome
Additional Information
Probably off-topic, but in terms of performance, it would be great if I could react only to triggerProps rather than the entire select context (since I only want to react to what I need). For instance - const triggerProps = useSelectTriggerProps() or const triggerProps = useSelectContext(context => context.triggerProps).

Thanks for reporting this.
I think a more appropriate fix is to support data-placement at the Zag.js level. I've gone ahead to do this.
In the next release (or so), it'll be available and you won't need to rely on getTriggerProps just to read the placement


text:
Added brazilians  surnames, male names and female names support

defined the language name as "br".
My reference for Brazilian names and surnames was:
https://super.abril.com.br/sociedade/estes-sao-os-100-nomes-de-bebes-mais-populares-de-2017/
http://www.tiltedlogic.org/Familia/surnames-all.php?tree=

Basically the PR fails because you committed the package-lock.json by lack of attention (don't get me wrong). Are you still active to fix it or should I work on this ?

authors: FelipeFernandesLeandro VitorGultzgoff

repo: chancejs/chancejs


text:
about extensions.md in doc

Hi Hero:
Firstly, in this very thank yours project  to bring their own power. It's very cool. So I have example demo project base Sanic with vueJS + webpack and hope update to  extensions.md in doc.
    - [SanicCRUD-vue](https://github.com/boylegu/SanicCRUD-vue): A example demo base Sanic with vueJS + webpack

I hope pass thought this example demo project for Sanic to be a better promotion.
So may i can take it merge your extensions.md ?  Thanks.

I just added this to the wiki, soon the extensions.md file will be removed. Only Sanic core related info will be in docs.
https://github.com/channelcat/sanic/wiki/Extensions
😄

Awesome! Closing this for now

authors: boylegu seemethere stopspazzing

repo: channelcat/sanic


text:
Document synchronous response.write in streaming

The Streaming section of the docs was updated to make clear that a synchronous write should be used in the callback, but this section was not updated.

@subyraman is this correct?

Yes, it is strictly true that right now the write method is synchronous (it just basically wraps transport.write).
But I've been thinking that it should be changed to be asynchronous after reading this article, if we don't drain the transport after each write it could end up causing problems with Sanic. Give me a day to think about it :)

The intention of this PR is only to synchronise examples on two pages of the documentation.

I know, but I think it'd be best to actually make the response.write method asynchronous so each write can be drained from the buffer :) I'm coming up with a PR for that.

@r0fls you can go ahead and approve this. Dealing with backpressure would require a larger refactor since Sanic uses the raw Protocol class instead of a stream class.

authors: r0fls subyraman weargoggles


text:
Make sure tooltips point to headers

Currently not pointing at the text

Semantic UI is such a life saver

authors: cyrielo eggerdesigns

repo: chanzuckerberg/idseq-web


text:
Create standalone 'remove-labels' command for cellxgene-schema CLI

Add CLI command that removes portal-added labels from h5ads, so curators revising existing datasets may download them from the portal and re-submit them after curation without the manual step of removing all portal-added labels (which will fail validation)

cellxgene-schema CLI release candidate to test these changes against: https://drive.google.com/file/d/1o9unTUFV7qQEMpIhP6aZt-NPPEFcyE-G/view?usp=sharing

I downloaded the "Infant human neocortex cells" dataset from: https://cellxgene.cziscience.com/collections/e02201d7-f49f-401f-baf0-1eb1406546c0. And ran the 'remove-labels' on the 2.0.0 h5ad, and it correctly had logged saying that 2.0.0 is not supported, but then it resulted in a KeyError:

% cellxgene-schema remove-labels dropseq.h5ad dropseq_nolabels.h5ad
Loading dependencies
Loading h5ad from dropseq.h5ad
Schema version '2.0.0' is not supported. Current supported versions: '['3.0.0']'. Label removal cannot be performed.
Removing labels
Traceback (most recent call last):
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/bin/cellxgene-schema", line 8, in
sys.exit(schema_cli())
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/cellxgene_schema/cli.py", line 78, in remove_labels
anndata_label_remover.remove_labels()
File "/opt/anaconda3/envs/cellxgene_cli_3.0.0/lib/python3.8/site-packages/cellxgene_schema/remove_labels.py", line 59, in remove_labels
if "columns" in self.schema_def["components"][component_name]:
KeyError: 'components'

Updated to address this bug, sent you a message with the new release candidate

Checked the following:

removed appropriate fields from obs
removed appropriate fields from var
removed appropriate fields from raw.var

Looks good to me! :)

authors: jychien nayib-jose-gloria

repo: chanzuckerberg/single-cell-data-portal


text:
In prep for a schema migration, only bump schema version in cellxgene-schema CLI as part of an automated PR

The initial implementation for schema migration automation after a reference file bump includes steps for bumping the schema version + creating new release tags and pushing these changes directly to main as part of the workflow. This required loosening the branch protections on this repo, and Central Infra requested that we do not do so. Further, we open a PR as an output of this workflow anyway so it seems reasonable to just capture all schema bumps as part of the PR. For minor schema updates, the bump should be to the minor part of the semver, and for major schema updates to the major part.
This also means getting rid of this intermediate PyPI publish step in the workflow, which was initially included to start gating dataset uploads in the data portal to new schema validation rules even before migration occurs. But, in practice, we've realized this step is unnecessary and not particularly more useful than just publishing 1 PyPI package with the migration script + new validation rules at the same time.

@nayib-jose-gloria could I get a couple sentences' description here from you just to flesh out the precise issue

@danieljhegeman updated, thanks for the reminder

authors: danieljhegeman nayib-jose-gloria

repo: chanzuckerberg/single-cell


text:
Looking forward for your help and Question

Hi  Shengchao,
Thank you very much for your great work!
In your paper, you mentioned that "Yet, after confirming with the authors, certain mismatches exist between the 2D topologies and 3D conformations in Molecule3D."
Could you please explain this more? Do you mean that 2D topologies and 3D conformations can not match for every sample in Molecule3D?
Since I am using Molecule3D, I am really looking forward for your help!
Best,

Hi @AGTSAAA,
Thank you for your question.
Your understanding is correct, that few of the molecular graphs are not correct in Molecule3D, while PCQM4Mv2 does not have this issue.

I don't remember the exact details. Maybe you can ask the authors of Molecule3D.


text:
Not working with Sticky Note in Windows 10

Not working with Sticky Note in Windows 10

There are three hidden window buttons on the Sticky Notes, so you will need to click a bit to the left. Please check the attached picture for what I mean.

I followed the instructions correctly, sticky note was On top, but when I opened another window, then reopened the sticky note window, On top was disabled.

Thanks for the detailed feedback, especially the screen recording! I can't reproduce the problem on my computer (Windows 10, version 21H1). Both Sticky Notes and Calculator stay on top just fine. Mind sharing your Windows specifications? You can find them under Settings -> System -> About.
What I can confirm is this behavior occurs on some software that have their own always-on-top logic. For example, DeepL and OneNote. So basically CClose makes them always on top, and then those software later make themselves not. I will add a forceful mode in the future when I have some time.

I using Windows 10, version 21H1, OS build 19043.1151
Hope this information is useful to you.

authors: chaohershi ngtrian

repo: chaohershi/cclose


text:
METR-LA results is different than the paper

Hi,
Thank you for publishing the code. I am trying to reproduce the results for the METR-LA dataset. The loss I get is larger than the one reported in Table 1 of the paper. I just pulled the repository, added tqdm() wrapper, and ran the code with the provided commands. Following I copy the log at epoch 149 (lowest val loss):
 74%|███████▍  | 149/200 [4:50:29<1:38:08, 115.46s/it]Num of epoch: 149
2021-10-10 04:01:59,910 - INFO - epoch complete
2021-10-10 04:01:59,912 - INFO - evaluating now!
2021-10-10 04:02:05,843 - INFO - Epoch [149/200] (56250) train_mae: 8.1466, val_mae: 4.0258
2021-10-10 04:02:17,088 - INFO - Test: mae: 4.2664, mape: 0.1018, rmse: 7.6282
2021-10-10 04:02:17,089 - INFO - Horizon 15mins: mae: 2.9517, mape: 0.0785, rmse: 6.1336
2021-10-10 04:02:17,089 - INFO - Horizon 30mins: mae: 3.5871, mape: 0.1015, rmse: 7.6120
2021-10-10 04:02:17,090 - INFO - Horizon 60mins: mae: 4.4443, mape: 0.1349, rmse: 9.3053
2021-10-10 04:02:17,093 - INFO - Epoch [149/200] (56250) train_mae: 8.1466, test_mae: 4.2664, lr: 0.000005, 110.3s, 116.3s

and 153 ( when early stopping kicks in):
2021-10-10 04:09:59,141 - INFO - Epoch [153/200] (57750) train_mae: 8.1453, val_mae: 3.9499
2021-10-10 04:09:59,141 - WARNING - Early stopping at epoch: 153
 76%|███████▋  | 153/200 [5:00:18<1:32:15, 117.77s/it]

If there are issues with the hyperparameters, it would be great if you could update the .yaml files. Thank you.

Hi, thanks for your question. I quickly tested our code and run the model using the current yaml files. I could get the better results as shown below.
2021-10-11 02:17:18,755 - INFO - Epoch [55/200] (21000) train_mae: 2.8157, val_mae: 3.4930
2021-10-11 02:17:33,013 - INFO - Test: mae: 3.6760, mape: 0.0814, rmse: 6.1649
2021-10-11 02:17:33,013 - INFO - Horizon 15mins: mae: 2.6431, mape: 0.0678, rmse: 5.2074
2021-10-11 02:17:33,014 - INFO - Horizon 30mins: mae: 3.0388, mape: 0.0827, rmse: 6.2265
2021-10-11 02:17:33,014 - INFO - Horizon 60mins: mae: 3.4591, mape: 0.0992, rmse: 7.2568
I believe you could get better one after tuning the parameters about learning rate: base_lr, lr_decay_ratio and steps. If you have any question, please let me know. : )
Best.

Hi, thank you for your reply.
Can you please tell us the base_lr, lr_decay_ratio, and steps, you were using to get the results in the paper?

Hi, thanks for your message. I used the same parameters to get the results in the paper. Due to multiple rounds of updates, the performance might be influenced a little bit. However, as shown, the performance is still similar to the original performance. If I could spare more time to retune the model, I'd like to update the parameters later.

BTW, please note that we have updated the results in table 4, 5 and 6 with corresponding explanation in the appendix.

Ah I missed Appendix D. Thanks for pointing that out.

authors: aprbw chaoshangcs

repo: chaoshangcs/GTS


text:
update release handbook

Signed-off-by: Kevin Lumbard kmlumbard@gmail.com
Minor edits to the release process.

@klumb can we close this?

Yes I think is is deprecated.

authors: GeorgLink klumb

repo: chaoss/governance


text:
Add GSoC expectation to reference other's works

fix #86 by requesting microtasks in public repos. We do not accept plagiarism.

Works for me.

authors: GeorgLink germonprez


text:
Rename some directories, to simplify structure

The main reason is to use shorter names. The changes are:

example_implementations -> implementations
detail_metrics_methods -> metrics

This is already referenced in changes in #36, if possible please merge before it (but this is really independent from it).

Long folder and file names are one of my foibles.  This change is good, I vote to merge.

authors: jgbarah klumb

repo: chaoss/wg-gmd


text:
[BUG] no module named seleniumwire

Before submitting a bug report...

[X] This bug wasn't already reported.
(I have checked every bug report on GitHub)

Describe the bug
I installed selenium chrome browser and instructed on the main page and updated the farmer to latest commit that was published this morning. This is the error I get.
Copy and paste your error
C:\Users\gh0sti\Downloads\MRF 3.0.5>python main.py
Traceback (most recent call last):
File "C:\Users\gh0sti\Downloads\MRF 3.0.5\main.py", line 9, in
from src import Browser, DailySet, Login, MorePromotions, PunchCards, Searches
File "C:\Users\gh0sti\Downloads\MRF 3.0.5\src_init_.py", line 1, in
from .browser import Browser
File "C:\Users\gh0sti\Downloads\MRF 3.0.5\src\browser.py", line 9, in
import seleniumwire.undetected_chromedriver as webdriver
ModuleNotFoundError: No module named 'seleniumwire'
Screenshot of the bug
none
Value of dashboard variable
review error from cmd

You need to run again pip install -r requirements.txt

C:\Users\gh0sti\Downloads\MRF306>python main.py
Traceback (most recent call last):
File "C:\Users\gh0sti\Downloads\MRF306\main.py", line 9, in
from src import Browser, DailySet, Login, MorePromotions, PunchCards, Searches
File "C:\Users\gh0sti\Downloads\MRF306\src_init_.py", line 1, in
from .browser import Browser
File "C:\Users\gh0sti\Downloads\MRF306\src\browser.py", line 9, in
import seleniumwire.undetected_chromedriver as webdriver
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\undetected_chromedriver_init_.py", line 1, in
from .webdriver import Chrome, ChromeOptions
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 12, in
from seleniumwire.inspect import InspectRequestsMixin
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\inspect.py", line 7, in
from seleniumwire import har
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\har.py", line 12, in
from seleniumwire.thirdparty.mitmproxy.http import HTTPFlow
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\http.py", line 7, in
from seleniumwire.thirdparty.mitmproxy.net import http
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\http_init_.py", line 1, in
from seleniumwire.thirdparty.mitmproxy.net.http import http1, http2, multipart, status_codes
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\http\http1_init_.py", line 2, in
from .read import (connection_close, expected_http_body_size, read_body, read_request, read_request_head,
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\http\http1\read.py", line 7, in
from seleniumwire.thirdparty.mitmproxy.net.http import (headers, request,
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\http\request.py", line 8, in
from seleniumwire.thirdparty.mitmproxy.net.http import cookies, message, multipart
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\http\message.py", line 6, in
from seleniumwire.thirdparty.mitmproxy.net.http import encoding
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\http\encoding.py", line 12, in
import brotli
File "C:\Users\gh0sti\AppData\Local\Programs\Python\Python311\Lib\site-packages\brotli.py", line 8, in
import _brotli
ImportError: DLL load failed while importing _brotli: The specified module could not be found.

Maybe you're system is missing the visual c++ redistributable DLLs (though I think python itself should come with one).
Try to install the current "vc_redist.x64.exe" from this link
https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

That fixed it. I was on win 11 22h2. Would updating requirements.txt to include this potentially fix this issue in the future?

Unfortunately not with pip, will add it in the README for those who don't already installed it.

repo: charlesbel/Microsoft-Rewards-Farmer


text:
[BUG] Certificate Verify Failed

Before submitting a bug report...

[X] This bug wasn't already reported.
(I have checked every bug report on GitHub)

Title

[X] The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug
I git cloned the repo, made the venv and installed everything. I modified my accounts.json to one account without any proxy (keyvalue pair is omitted). Then running the program gets me this.
Python 3.11.4.
Copy and paste your error
see below
Screenshots

Value of dashboard variable
n/a

I managed to fix the above with this, but now I get this error:

I didn't have google chrome installed... oops (I have vivaldi)


text:
文档图片链接失效

简体中文版的 1. 仪表盘 图片链接失效

Sorry, 拼写错误了。已修复。

authors: Lookofsea charlestang

repo: charlestang/HexoPress


text:
Rule C416 broke some pandas code

This snippit:
import pandas as pd
obj = { k: v for k,v in pd.DataFrame.from_records([], columns=["foo", "bar", "baz"]).groupby("foo")}

Is rewritten to the following using the C416 rule (no unnecessary comprehensions):
import pandas pd
obj = dict(pd.DataFrame.from_records([], columns=["foo", "bar", "baz"]).groupby("foo"))

However that generates a TypeError when I run it. I filed a bug about this upstream (see pandas-dev/pandas#53287) but it makes me wonder if this rule is safe to apply. Current using ruff 0.0.262.

Huh, interesting. It's not immediately clear to me why / how those are different.

Interesting...

Thanks for reporting this issue. I looked online and apparently Python's dict() method checks for existence of the .keys() method.
https://stackoverflow.com/questions/40667093/what-is-a-mapping-object-according-to-dict-type
Unfortunately, in this case obj.keys returns a str, which is not callable.

ref https://github.com/pandas-dev/pandas/issues/53287#issuecomment-1553294794

authors: charliermarsh madkinsz wlach

repo: charliermarsh/ruff


text:
Implement PYI048 for flake8-pyi plugin

Summary
Adds PYI048 rule to flake8-pyi.
Open question is how to flag this. Rule currently triggers a violation for every offending line. Which clearly communicates the relevant lines but could lead to a lot of clutter for a large multi-line func. Alternatives considered were highlighting the function name or the last line of a given function, both felt a little unclear, if concise. Any input on this is welcome
Test Plan
Test files (both stub and non-stub) added. Scenarios with and without dosctrings considered to not overlap with PYI021: DocstringInStub as done in other rules and confirmed in: https://github.com/charliermarsh/ruff/pull/4634#issuecomment-1561419718

Open question is how to flag this. Rule currently triggers a violation for every offending line. Which clearly communicates the relevant lines but could lead to a lot of clutter for a large multi-line func. Alternatives considered were highlighting the function name or the last line of a given function, both felt a little unclear, if concise. Any input on this is welcome

I'd vote to use the name of the function. We have a utility for this (helpers::identifier_range(stmt, self.locator)), which will "do the right thing" if you pass in the function statement.

authors: charliermarsh qdegraaf


text:
Multiple OTP prompts and upload hang

When using pam-google-authenticator OTP and an authorized key, the user is prompted three times during the upload process.
The files then appear to transfer but the upload ultimately hangs at 100% without ever completing.
user@workstation:~/projects/repo$ GIT_TRACE=2 git push --set-upstream origin master
16:05:10.573101 git.c:460               trace: built-in: git push --set-upstream origin master
16:05:10.573289 run-command.c:655       trace: run_command: unset GIT_PREFIX; ssh server 'git-receive-pack '\''/home/git/repo.git'\'''
(user@server) Verification code:
16:05:22.553113 run-command.c:655       trace: run_command: .git/hooks/pre-push origin ssh://server/home/git/repo.git
16:05:22.554493 git.c:750               trace: exec: git-lfs pre-push origin ssh://server/home/git/repo.git
16:05:22.554515 run-command.c:655       trace: run_command: git-lfs pre-push origin ssh://server/home/git/repo.git
16:05:22.556992 trace git-lfs: exec: git 'version'
16:05:22.557981 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'remote' '-v'
16:05:22.558960 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'remote'
16:05:22.559848 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' 'HEAD' '--symbolic-full-name' 'HEAD'
16:05:22.560701 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' '--git-dir' '--show-toplevel'
16:05:22.561518 trace git-lfs: exec: git 'config' '--includes' '-l'
16:05:22.562318 trace git-lfs: exec: git 'rev-parse' '--is-bare-repository'
16:05:22.563110 trace git-lfs: exec: git 'config' '--includes' '-l' '--blob' ':.lfsconfig'
16:05:22.564046 trace git-lfs: exec: git 'config' '--includes' '-l' '--blob' 'HEAD:.lfsconfig'
16:05:22.565110 trace git-lfs: attempting pure SSH protocol connection
16:05:22.565130 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:05:22.565165 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
(user@server) Verification code:
16:05:33.742355 trace git-lfs: pre-push: refs/heads/master 3e8740d72016fea16b8ceb032cce5a77b47b2356 refs/heads/master 0000000000000000000000000000000000000000
16:05:33.742414 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'show-ref'
16:05:33.743591 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'ls-remote' '--heads' '--tags' '-q' 'origin'
(user@server) Verification code:
16:06:04.582142 trace git-lfs: attempting pure SSH protocol connection
16:06:04.582163 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.582204 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.598686 trace git-lfs: tq: running as batched queue, batch size of 100
16:06:04.598781 trace git-lfs: run_command: git rev-list --objects --ignore-missing --not --remotes=origin --stdin --
16:06:04.598788 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-list' '--objects' '--ignore-missing' '--not' '--remotes=origin' '--stdin' '--'
16:06:04.599056 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'cat-file' '--batch-check'
16:06:04.599268 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' '--git-common-dir'
16:06:04.604200 trace git-lfs: tq: sending batch of size 28
16:06:04.604224 trace git-lfs: api: batch 28 files
16:06:04.605897 trace git-lfs: tq: starting transfer adapter "ssh"
16:06:04.605923 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.605983 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.622881 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.622937 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.636722 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.636788 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.650699 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.650765 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.664993 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.665065 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.679556 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.679614 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
16:06:04.694323 trace git-lfs: run_command: ssh -oControlMaster=auto -oControlPath=/run/user/1000/git-lfs/sock-%C server git-lfs-transfer /home/git/repo.git upload
16:06:04.694389 trace git-lfs: exec: ssh '-oControlMaster=auto' '-oControlPath=/run/user/1000/git-lfs/sock-%C' 'server' 'git-lfs-transfer /home/git/repo.git upload'
Uploading LFS objects: 100% (28/28), 149 GB | 0 B/s

What version of Git LFS are you running? Could you reproduce this with the latest version of Git LFS?

authors: aymanbagabas joooshf

repo: charmbracelet/git-lfs-transfer


text:
feat(all)!: upgrade Slurm charms to Noble

This PR upgrades the Slurm charms to Noble from Jammy. We get several benefits from this such as access to a newer base and package versions + more recent hardware support.
BREAKING CHANGES:

The Slurm charms no longer use the PPA ppa:ubuntu-hpc/slurm-wlm-23.02 to install Slurm. Instead Slurm is pulled directly from the Ubuntu Archive. This enables us to use Slurm 23.11. Newer versions of Slurm should be published to the experimental PPA ppa:ubuntu-hpc/experimental rather than create a separate PPA for the Slurm packages.
Speeds up charm builds by using the charm-binary-python-paclages directive in charmcraft.yaml. This pulls in pre-built versions of Rust-based packages such as cryptography and pydantic rather than compile them from source with rustc. This should drastically reduce the amount of time it takes to run integration tests.
Deactivates mysql-router in the integration test suite. The mysql-router subordinate charm does not yet support Noble, so instead we integrate directly with the mysql charm in the integration tests. mysql-router supporting Noble will likely not come until after the 25.04 cycle.
charmcraft.yaml now uses the new base, platforms syntax that was introduced with charmcraft v3 for charms that support ubuntu@24.04 and greater.

Hmm... re-running doesn't seem to refresh the state, so I might need to manipulate the branch protection rules for a hot second.

+1 Nice!!!!

authors: NucciTheBoss jamesbeedy

repo: charmed-hpc/slurm-charms


text:
feat(SVG): support for viewport in SVG only providing width and height

For now a draft but this should outline what should be achieved. The charts scale without redrawing and rearranging. The drawback might be that fonts can get too small if no responsive options are used.
I do believe we could also smartly skip redraw in such cases until we hit a breakpoint.
Closes #1402

Sure, I just use a fork right now and needed it for Line-Charts. For sure it can be added to all types. I will update the PR within the next days.

@gionkunz the example I added it to is not too great though. Only thing missing are unit tests around the createSvg function.

@gionkunz In case you got some time please review. I would also like to create more PRs later on.

@gionkunz Quick reminder 😄

repo: chartist-js/chartist


text:
(During) a chart animation it prevent from loading a new chart using update('none')

Expected behavior
When I update a chart that is doing some animation, using update("none"), it should instantly stop the animation it is doing, and switch to the other chart.
Instead it just keep animating the preceding chart and discard the new data
Current behavior
If I animate a chart, and then directly update('none') to a second chart, it won't load the second chart unless you wait until the first chart animation is done
Reproducible sample
https://codepen.io/nicolas-keroack/pen/gOegxyK
Optional extra steps/info to reproduce
No response
Possible solution
Love to the chart.js devs, wish I will be to your programming level one day. For now I will keep learning but I can't provide to the project yet even if i'd love to :p
Context
I have a page system, and need to reload the chart directly sometimes and sometimes with the animations
chart.js version
3.8.0
Browser name and version
Chrome 103.0.5060.114
Link to your project
No response

@heavyStuff3000 can you try to stop the animation before updating by myChart.stop();?
function second_chart() {
  myChart.data.labels = ["äpple", "orange", "banana", "pear", "peach", "raisins"];
  myChart.data.datasets[0].data = [22, 1, 21, 23, 21, 45];
  myChart.stop(); // <-- stops if animation is running
  myChart.update('none');
}

function first_chart() {
  myChart.data.labels = ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"];
  myChart.data.datasets[0].data = [12, 19, 3, 5, 2, 3];
  myChart.update();
}

It worked! But is it considered a bug or is it intended to be like this? thanks a lot!

I don't know if it's working as design. I think the update could check if there is a running animation and stop it as first thing.
I think it's better do not close this issue in the meantime.

I´m not sure if my case here is related, however i think so because when i set animation duration to 0 then its not doing that strange flicker.
I´ve also tryed adding .stop as sugested.
https://user-images.githubusercontent.com/35345288/190192998-63dbdbb0-ff50-4850-a303-6a9b54ae618f.mp4

authors: BolverBlitz heavyStuff3000 stockiNail


text:
Chart resizing issues

When creating a graph that is placed on a resizable element the size alters each time. (here is a gif as it's hard to word)

fiddle where this was taken from

Woah, never seen that before. As an immediate work-around, setting a max-height style on the graph container should contain it.

I've noticed that circular charts move downwards as they are resized. Linear graphs (like bar, line) elongate downwards as they are resized. Even with a max-height attribute, it moves down within that container. This problem only occurs when maintainAspectRatio: false.

@zachpanz88 I'm guessing we are not accounting for padding / margin somewhere. When we resize, we resize to what we think the maximum size is. But if the padding on the container and margin on the canvas is not respected, the parent has to increase in size leading to this problem.
When maintainAspectRatio is true, the height is generated from the max width.

This is the exact problem I have.

I have a problem in Chrome (50.0.2661.102 64-bit), on OSX (10.10.5 ) where a bar-chart is correctly resized when increasing the window size whereas nothing happens when the window is made smaller.
The exact same scenario works perfect in Safari.
Is this a know issue?

Set the canvas CSS display property to 'block' as a work around

This may not be a bug. The containing div is slightly taller than the canvas because the div has some line height and canvas seems to be behaving like an inline element. helpers.getMaximumHeight in core.helpers.js gets the new height of the canvas from dom.parentNode.clientHeight, so the canvas constantly grows as the window is resized. Related on stackoverflow.
Possible solutions: display: block on the canvas as @etimberg suggests, or line-height: 0 on the containing div: fiddle. I can't find a clear explanation of whether canvas should be inline or block, but is there a reason not to to set display: block by default? Happy to submit a PR.

Fixed in v2.1.6. The canvas now defaults to block display. Updated fiddle: https://jsfiddle.net/e6tkspvn/1/

authors: brodiefairhall etimberg gustav-engdahl leighquince thebenedict zachpanz88


text:
Need help: Mix chart line with bar have two axis y

I want mix chart line with bar have two axis x look like this image

js link: https://jsfiddle.net/csgesxwz/
is there any solution for me. thanks!

You might want to try adding the option yAxisID to the dataset configuration and configure 2 y-axes.
var myChart = new Chart(ctx, {
    type: 'bar',
    data: {
        datasets: [{
            label: 'Total',
            data: [1854, 1995, 1968],
            backgroundColor: '#9BB958',
            borderColor: '#9BB958',
            yAxisID: 'y-axis-0'
        },
        {
            label: 'Deduct',
            data: [91, 100, 92],
            backgroundColor: '#A65A56',
            borderColor: '#A65A56',
            yAxisID: 'y-axis-0'
        },
        {
            label: '%',
            data: [15, 150, 200],
            // Changes this dataset to become a line
            type: 'line',
            yAxisID: 'y-axis-1'
        }],
        labels: ['1', '2', '3']
    },
    options: {
        scales: {
            yAxes: [
                {
                    id: 'y-axis-0',
                    type: 'linear'
                },
                {
                    id: 'y-axis-1',
                    type: 'linear',
                    position: 'right',
                    ticks: {
                        callback: function(value) {
                            return value.toString() + '%';
                        }
                    }
                }
            ]
        }
    }
});

thanks @jcopperfield so much.


text:
Grid lines and tooltip on top

I am trying to draw a radar chart without using transparencies for the filling colors. The result is that the grid lines and tick values are not visible in this way. See image below:

I found a walkaround by adding
ctx.globalCompositeOperation = 'destination-over';
to the Chart.bundle.js file, at the end of the draw method for LinearRadialScale.
This solve the issue with the grid lines, but I then cannot see the tooltips since them are draw below the filled areas. See image below:

Is there any way to force the grid to be drawn on the top of the chart without doing this kind of modifications? If there isn't, is there any way to stylish the tooltips and change their z-index or something similar?

Duplicate of #3957

Not exactly. I've solved the grid situation in some way, but not the tooltip one.
Besides, if you see the "duplicated" issue, you will see that it was me the only one giving an answering, so I obviously knew about that other issue.

I think its the same issue because the solution of using destination-over doesn't work well for the tooltip. I think a better solution is to have a way of doing https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L560-L562 after https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L568 and before https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L569

authors: adripanico etimberg


text:
"init is not a known dfm command"

[ynavott-gram@ynavott-gram-ubuntu: /usr/local/bin]$ ./dfm
Usage:
    dfm [options] <command> [<args>...]
    dfm help
    dfm sync
    dfm link <profile>
[ynavott-gram@ynavott-gram-ubuntu: /usr/local/bin]$ ./dfm init profile-main
init is not a known dfm command.
``` This is a fresh clone which installed totally fine (at least it seems like it). How come init doesn't exist? Have tried using `dfm -v init profie-main`, `dfm -v i profile-main`, `dfm i profile-main` and it also doesn't work.

Looks like somehow that command's code has gone missing. I'm fixing it now.

Fixed and pushed 7.4.1
I'm working on integration tests that will catch these issues automatically in the future. Thanks for the bug report.

authors: chasinglogic ynavott

repo: chasinglogic/dfm


text:
[BUG]  调用本机模型出现 Error communicating with OpenAI 的高频问题，希望开发大大能给一个方法

我在本地部署了一些开源模型，跑推理都是正常的，目前想有一个统一的前端入口实现知识库功能，但是在使用chatchat的过程中发现了一个高频问题，目前已经有很多人提交了相关issues，但是都没有一个解决办法，希望开发大佬能帮忙看看，万分感谢
以下是我的配置文件内容：
1、configs/model_config.py
llm_model_dict = {
    "baichuan-13b": {
        "local_model_path": "/data/LLM_Project/Baichuan-13B-Chat",
        "api_base_url": "http://172.17.27.158:8899/v1",
        "api_key": "EMPTY"
    },
    "baichuan2-13b": {
        "local_model_path": "/data/LLM_Project/Baichuan2-13B-Chat",
        "api_base_url": "http://172.17.27.158:8899/v1",
        "api_key": "EMPTY"
    },
    "tigerbot-13b": {
        "local_model_path": "/data/LLM_Project/Tigerbot-13b-chat-V2",
        "api_base_url": "http://172.17.27.158:8899/v1",
        "api_key": "EMPTY"
    },
    "gpt-3.5-turbo": {
        "api_base_url": "https://api.openai.com/v1",
        "api_key": os.environ.get("OPENAI_API_KEY"),
        "openai_proxy": os.environ.get("OPENAI_PROXY")
    },
}

LLM_MODEL = "baichuan2-13b"

2、configs/server_config.py
WEBUI_SERVER = {
    "host": DEFAULT_BIND_HOST,
    "port": 8501,
}

# api.py server
API_SERVER = {
    "host": DEFAULT_BIND_HOST,
    "port": 7861,
}

# fastchat openai_api server
FSCHAT_OPENAI_API = {
    "host": DEFAULT_BIND_HOST,
    "port": 8899,  # model_config.llm_model_dict中模型配置的api_base_url需要与这里一致。
}

3、报错截图

我也这样，很费解

+1，又跑不了了，哎

我此刻也这样。

我之前在模型那里自行启动api可以不出这个问题，最近更新之后也没用了

各位有解决思路嘛～会不会是哪个包没更新的问题

有没有解决思路呀。我现在调用本地模型也这样了

0.2.5重写了model_config.py，可以等0.2.5出来后更新代码看
其次，我们是把各种模型转换成fschat支持的模型后，在用chatopenai的端口调用，所以连不上openai是连不上本地模型这边的端口。
如果还有出现问题，请附上具体的启动步骤

repo: chatchat-space/Langchain-Chatchat


text:
修复使用Milvus存储，在点击知识库中文件信息的时候报错value ''xxx'' in list cannot be casted to Int64)的异常

背景：python3.9环境，master分支，使用pip install -r requirements_lite.txt安装依赖后，通过python startup.py -a --lite启动ChatChat。
问题：使用Milvus作为向量数据库，在向向量数据库中填充数据后，在查看数据时，会报错：

查看代码后发现sqlite数据库中的doc_id类型为字符串类型，但是Milvus的查询语句中需要的是int类型，所以导致报错，因此在使用doc_id进行查询前，需要先把doc_id的类型修改为int类型。
异常堆栈：
INFO:     127.0.0.1:59700 - "POST /knowledge_base/search_docs HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/applications.py", line 116, in call
await self.middleware_stack(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app
raise exc
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app
await app(scope, receive, sender)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 746, in call
await route.handle(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 75, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app
raise exc
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app
await app(scope, receive, sender)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 70, in app
response = await func(request)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 299, in app
raise e
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 294, in app
raw_response = await run_endpoint_function(
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 193, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/concurrency.py", line 35, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, args)
File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_doc_api.py", line 41, in search_docs
data = kb.list_docs(file_name=file_name, metadata=metadata)
File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 214, in list_docs
doc_info = self.get_doc_by_ids([x["id"]])[0]
File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_service/milvus_kb_service.py", line 28, in get_doc_by_ids
data_list = self.milvus.col.query(expr=f'pk in {ids}', output_fields=[""])
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/orm/collection.py", line 925, in query
return conn.query(
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 135, in handler
raise e from e
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 131, in handler
return func(*args, **kwargs)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 170, in handler
return func(self, *args, **kwargs)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 110, in handler
raise e from e
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 74, in handler
return func(*args, **kwargs)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/client/grpc_handler.py", line 1330, in query
check_status(response.status)
File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/client/utils.py", line 54, in check_status
raise MilvusException(status.code, status.reason, status.error_code)
pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=cannot parse expression: pk in ['447088899605816486'], error: value ''447088899605816486'' in list cannot be casted to Int64)>

没有遇到这个情况，我们没有合并这部分PR，但是会在对应代码处标注这个PR的位置

我也遇到这个问题。但是我用你的代码好像没有解决，冒出来别的问题了。

改了代码之后还提示这个错误：
INFO:     192.168.129.90:48710 - "POST /knowledge_base/search_docs HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/home/xx/miniconda3/envs/Langchain-Chatchat/lib/python3.11/site-packages/fastapi/encoders.py", line 322, in jsonable_encoder
data = dict(obj)
^^^^^^^^^
TypeError: 'numpy.float32' object is not iterable

背景：python3.9环境，master分支，使用pip install -r requirements_lite.txt安装依赖后，通过python startup.py -a --lite启动ChatChat。 问题：使用Milvus作为向量数据库，在向向量数据库中填充数据后，在查看数据时，会报错：
查看代码后发现sqlite数据库中的doc_id类型为字符串类型，但是Milvus的查询语句中需要的是int类型，所以导致报错，因此在使用doc_id进行查询前，需要先把doc_id的类型修改为int类型。 异常堆栈： INFO: 127.0.0.1:59700 - "POST /knowledge_base/search_docs HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call return await self.app(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in call await super().call(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/applications.py", line 116, in call await self.middleware_stack(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in call raise exc File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in call await self.app(scope, receive, _send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app raise exc File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app await app(scope, receive, sender) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 746, in call await route.handle(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 75, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app raise exc File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app await app(scope, receive, sender) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 70, in app response = await func(request) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 299, in app raise e File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 294, in app raw_response = await run_endpoint_function( File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 193, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/concurrency.py", line 35, in run_in_threadpool return await anyio.to_thread.run_sync(func, *args) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread return await future File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, args) File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_doc_api.py", line 41, in search_docs data = kb.list_docs(file_name=file_name, metadata=metadata) File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 214, in list_docs doc_info = self.get_doc_by_ids([x["id"]])[0] File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_service/milvus_kb_service.py", line 28, in get_doc_by_ids data_list = self.milvus.col.query(expr=f'pk in {ids}', output_fields=[""]) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/orm/collection.py", line 925, in query return conn.query( File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 135, in handler raise e from e File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 131, in handler return func(*args, **kwargs) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 170, in handler return func(self, *args, **kwargs) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 110, in handler raise e from e File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 74, in handler return func(*args, **kwargs) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/client/grpc_handler.py", line 1330, in query check_status(response.status) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/client/utils.py", line 54, in check_status raise MilvusException(status.code, status.reason, status.error_code) pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=cannot parse expression: pk in ['447088899605816486'], error: value ''447088899605816486'' in list cannot be casted to Int64)>

你只修改了那一个py文件解决的？

背景：python3.9环境，master分支，使用pip install -r requirements_lite.txt安装依赖后，通过python startup.py -a --lite启动ChatChat。 问题：使用Milvus作为向量数据库，在向向量数据库中填充数据后，在查看数据时，会报错：
查看代码后发现sqlite数据库中的doc_id类型为字符串类型，但是Milvus的查询语句中需要的是int类型，所以导致报错，因此在使用doc_id进行查询前，需要先把doc_id的类型修改为int类型。 异常堆栈： INFO: 127.0.0.1:59700 - "POST /knowledge_base/search_docs HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call return await self.app(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in call await super().call(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/applications.py", line 116, in call await self.middleware_stack(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in call raise exc File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in call await self.app(scope, receive, _send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app raise exc File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app await app(scope, receive, sender) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 746, in call await route.handle(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 75, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 55, in wrapped_app raise exc File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app await app(scope, receive, sender) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/routing.py", line 70, in app response = await func(request) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 299, in app raise e File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 294, in app raw_response = await run_endpoint_function( File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/fastapi/routing.py", line 193, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/starlette/concurrency.py", line 35, in run_in_threadpool return await anyio.to_thread.run_sync(func, *args) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread return await future File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, args) File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_doc_api.py", line 41, in search_docs data = kb.list_docs(file_name=file_name, metadata=metadata) File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 214, in list_docs doc_info = self.get_doc_by_ids([x["id"]])[0] File "/home/xxx/Documents/chatchat/Langchain-Chatchat/server/knowledge_base/kb_service/milvus_kb_service.py", line 28, in get_doc_by_ids data_list = self.milvus.col.query(expr=f'pk in {ids}', output_fields=[""]) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/orm/collection.py", line 925, in query return conn.query( File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 135, in handler raise e from e File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 131, in handler return func(*args, **kwargs) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 170, in handler return func(self, *args, **kwargs) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 110, in handler raise e from e File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/decorators.py", line 74, in handler return func(*args, **kwargs) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/client/grpc_handler.py", line 1330, in query check_status(response.status) File "/home/xxx/anaconda3/envs/chatchat/lib/python3.9/site-packages/pymilvus/client/utils.py", line 54, in check_status raise MilvusException(status.code, status.reason, status.error_code) pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=cannot parse expression: pk in ['447088899605816486'], error: value ''447088899605816486'' in list cannot be casted to Int64)>

你只修改了那一个py文件解决的？

是的

authors: AlexNilone luxinfeng zRzRzRzRzRzRzR


text:
bug: no actionable error message given for empty browser check script and other validation issues

Node.js version
v16.17.0
NPM version
v8.15.0
@checkly/cli version
v4.0.5
Steps to reproduce
Create a browser check with an empty script. This can be done in the boilerplate example by deleting the contents of __checks__/homepage.spec.ts, for example. Then run npx checkly test or npx checkly deploy.
What is expected?
There should be a clear error message that __checks__/homepage.spec.ts is empty. Or, the check could just pass.
What is actually happening?
This results in the following error message from the backend:
$ npx checkly test
Parsing your project... done

Unable to run checks: "checkRunJobs[1].script" is not allowed to be empty

With many checks, it will be very challenging for users to debug errors like this. Rather than checkRunJobs[<some index>], we should add the items logical ID.
Any additional comments?
We should add special error handling for the empty file case.
At the same time, though, there will always be the chance that the backend reports a validation error that the CLI didn't detect. We should also handle the more general case of a backend validation error, and make sure that the logical ID is reported rather than just an index.

Another case I just bumped into is when an environment variable is empty.
Unable to run checks: "checkRunJobs[8].group.environmentVariables[0].value" is required

It would be great if we could show the logical ID and the environment variable key that was missing.

IMO there's still work to do here.
@nahuelon added validation for the specific case of an empty browser check script. There will still be other cases, though, were Joi validation returns an error like this and we should find a way to make sure the logical ID is printed then.

I updated the backend validation to include the logical ID in the error message. I think that this will make debugging much easier if we come across any more Joi validation errors in large projects.
$ npx checkly test
Parsing your project... done

Unable to run checks: "logical ID __checks__/bar.spec.ts, checkRunJobs[0].script" is not allowed to be empty

repo: checkly/checkly-cli


text:
Code improvements and remove commented code

Resolves #46

Replace printf("%v", string(byteSlice)) with printf("%s", byteSlice)
Use t.Error in test cases instead of t.Fatal (t.Fail was giving an argument syntax error)
Change function description to avoid redundancy

Closed PR, gonna be handled in new PR #49

repo: checkly/checkly-go-sdk


text:
updated guides related to account & file mgmt.

Affected Components

[ ] Content & Marketing
[ ] Pricing
[ ] Test
[X ] Docs
[ ] Learn
[ ] Other

Pre-Requisites

[ X ] Code is linted (npm run lint)

^^^

adopted feedback from previous PR and adjusted here.

@ragog @modern-sapien can we close or merge this?

authors: modern-sapien tnolet


text:
disabling hipe option to fix the build issue on refresh env

Issue: https://github.com/habitat-sh/core-plans/issues/4376
Signed-off-by: Sangameshwar Mandakanalli smandaka@progress.com

We have decided to deprecate the erlnag16 package for refresh2022q2.
See more @ https://chefio.atlassian.net/jira/software/c/projects/HABP/boards/378?modal=detail&selectedIssue=HABP-80


text:
Docker not installing on Amazon Linux 2 with latest AMIs

Cookbook version
4.6.8
Chef-client version
13.6.4
Platform Details
Amazon Linux 2 (Latest AMIs)
Scenario:
Install docker
Steps to Reproduce:
Install docker
Expected Result:
Docker is installed
Actual Result:
Chef::Exceptions::Package: No candidate version available for docker
This is due to Amazon Linux moving docker packages away from the standard yum library to the Amazon Linux Extras library

Is this what is causing the install to fail?  I am using 4.8.0 and it still fails passing and doesn't even reference the version I'm passing as the package.
Error executing action create on resource 'docker_installation_package[default]'
================================================================================
Chef::Exceptions::Package
-------------------------
yum_package[docker-ce] (/var/cache/chef/cookbooks/docker/libraries/docker_installation_package.rb line 42) had an error: Chef::Exceptions::Package: Version ["18.06.1"] of ["docker-ce"] not found. Did you specify both version and release? (version-release, e.g. 1.84-10.fc6)

Resource Declaration:
---------------------
# In /var/cache/chef/cookbooks/wdpr_docker/recipes/docker.rb

 22: docker_installation_package 'default' do
 23:   package_name 'docker-ce'
 24:   package_version node['wdpr_docker']['version']
 25:   action :create
 26:   package_options %q|--force-yes -o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-all'|
 27: end
 28:

default['wdpr_docker']['version'] = '18.09.0-3.el7'

The docker packages aren't actually compatible with Amazon Linux 2. They don't have an Amazon specific repo and even if you setup the CentOS 7 repo it attempts to install packages using the amazon naming and then fails. There's no way around this until Docker officially supports Amazon Linux 2. Until then you'll want to use one of the other installation methods or switch to another platform.

As of writing this, amazon-linux-extras install docker will install docker. I execute it via the execute resource. Ugly but works.

FYI: 18.09 is not yet available on AL2:
$ sudo amazon-linux-extras list | grep -C 1 docker
 19  gimp                     available    [ =2.8.22 ]
 20  docker=latest            enabled      \
        [ =17.12.1  =18.03.1  =18.06.1 ]

repo: chef-cookbooks/docker


text:
docker_network should support ipv6, internal

Looks like the current resource is not on a par with the current docker cli:
https://github.com/chef-cookbooks/docker/blob/master/libraries/docker_network.rb#L9-L20
vs:
docker -v
Docker version 17.05.0-ce, build 89658be

docker network create --help

Usage:	docker network create [OPTIONS] NETWORK

Create a network

Options:
      --attachable             Enable manual container attachment
      --aux-address map        Auxiliary IPv4 or IPv6 addresses used by Network driver (default map[])
  -d, --driver string          Driver to manage the Network (default "bridge")
      --gateway stringSlice    IPv4 or IPv6 Gateway for the master subnet
      --help                   Print usage
      --ingress                Create swarm routing-mesh network
      --internal               Restrict external access to the network
      --ip-range stringSlice   Allocate container ip from a sub-range
      --ipam-driver string     IP Address Management Driver (default "default")
      --ipam-opt map           Set IPAM driver specific options (default map[])
      --ipv6                   Enable IPv6 networking
      --label list             Set metadata on a network
  -o, --opt map                Set driver specific options (default map[])
      --subnet stringSlice     Subnet in CIDR format that represents a network segment

Especially ipv6 and internal…

resolved via #889

authors: chasebolt rmoriz


text:
Migrate default install script from ruby to bash

Closes issue #135.
Ruby Homebrew installer is now deprecated and should be migrated to Bash.
Description
Install now works when using default values:
include_recipe 'homebrew'

Issues Resolved
Closes issue #135
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] Obvious Fix All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Thanks @bbros-dev

Resolved #135

authors: bbros-dev ehanlon tas50

repo: chef-cookbooks/homebrew