Should obtain SA token from token secret

This tool does not seem to work on Openshift, as it attempts to obtain the SA token from the Openshift registry image pull secret. This is an automated secret created for all SA in Openshift clusters. I think the algorithm to find the correct secret (containing a token) must be improved.
$ proxy-kubeconfig-generator --kubeconfig-secret-key kubeconfig --namespace erikbo --server 'https://capsule-proxy.capsule-system.svc:9001' --server-tls-secret-namespace capsule-system --server-tls-secret-name capsule-proxy --serviceaccount gitops-reconciler
panic: secret gitops-reconciler-dockercfg-qv5nr does not contain a token

goroutine 1 [running]:
main.main()
        /home/erikbo/go/pkg/mod/github.com/maxgio92/proxy-kubeconfig-generator@v0.1.0/main.go:68 +0x434

Ref. https://capsule.clastix.io/docs/guides/flux2-capsule/#the-recipe

Hi @erikgb, thank you for reporting this.
TL;DR this tool doesn't support as of now Kubernetes 1.24.
From Kubernetes 1.24 Service Account token are no longer automatically generated, when a Service Account is created (docs)
This tool instead assumes a Service Account token exists as a Secret object, related to the ServiceAccount object.
I'm sorry this is not stated clearly in the readme.
Anyway, we can think of a better way to manage this situation, if possible, without introducing breaking changes.

In any case, this is a bug, as it should not panic, thank you.

From Kubernetes 1.24 Service Account token are no longer automatically generated, when a Service Account is created (docs) This tool instead assumes a Service Account token exists as a Secret object, related to the ServiceAccount object.

Even if Kubernetes stopped generating SA token secrets, OpenShift still do. We are on OpenShift 4.12 (Kubernetes 1.25). The secret with the token is there, but there is another secret that seems to confuse the tool. I think it should be fixed by looking for the correct secret containing the token. And if no such secret exists, it should error out - of course.

If it looks for secrets of the correct type (kubernetes.io/service-account-token), this should be fixed:
kind: Secret
apiVersion: v1
metadata:
  name: gitops-reconciler-token-hsglk
  namespace: erikbo
  annotations:
    kubernetes.io/created-by: openshift.io/create-dockercfg-secrets
    kubernetes.io/service-account.name: gitops-reconciler
    kubernetes.io/service-account.uid: 8d649e38-54dd-413c-811a-8530b950f4a1
data:
  token: ...
type: kubernetes.io/service-account-token

I wasn't aware of OpenShift logics, but if this tool can support OpenShift, that's good :-)
You're right. I just opened an issue to track this other bug.

Hey @erikgb, in the meantime, I just released a v0.1.1 that addresses the minor issues you highlighted above.
You can also use it in-container.
And for both check either SBOMs and signatures.

Hi, @maxgio92! It still doesn't do the job. You seem to have fixed the panic, but still not able to do the job correctly - since it is trying to obtain the token from the wrong secret.
$ proxy-kubeconfig-generator --kubeconfig-secret-key kubeconfig --namespace erikbo --server 'https://capsule-proxy.capsule-system.svc:9001' --server-tls-secret-namespace capsule-system --server-tls-secret-name capsule-proxy --serviceaccount gitops-reconciler

error generating kubeconfig from service account: secret gitops-reconciler-dockercfg-q46sx does not contain a token

Thanks for reporting it @erikgb

Just released v0.1.2 @erikgb :-)

Still no luck, I will take a look at the code. ;-)
$ proxy-kubeconfig-generator --kubeconfig-secret-key kubeconfig --namespace erikbo --server 'https://capsule-proxy.capsule-system.svc:9001' --server-tls-secret-namespace capsule-system --server-tls-secret-name capsule-proxy --serviceaccount gitops-reconciler
error generating kubeconfig from service account: secret of type service-account-token not found

@erikgb is the secrets field of the ServiceAccount gitops-reconciler filled by the bindings to the Secrets?
Would you mind running:
kubectl get serviceaccount -n erikbo gitops-reconciler -o=yaml

I am pretty sure that is the problem. This field is not supposed to be used for this, at least as I read the API docs: https://github.com/kubernetes/api/blob/dc63998f1312927aa27e36e646ddf504470afd14/core/v1/types.go#L4965-L4973


Fixed the link

Hi,
I saw that a link does not redirect to the right website, due to how GitHub handles this (i.e. without the https:// part, the link does not redirect to a proper website).
Hope you enjoy such a simple Pull Request :-)
Cheers, Richel Bilderbeek

Thanks @richelbilderbeek!
Btw, you may be interested in the new package I'm working on called echoplot. It's meant to replaceggLocusZoom as part of the echoverse suite

Hi @bschilder, thanks for accepting my PR and the heads up echoplot. I predict I will see it in my GitHub feed :-)


Use specific lodash library instead of underscore

Currently, the component is using the full underscore. Would it be possible to remove the unnecessary functions and only use and import the specific functions from lodash instead?
Maybe only throttle would be needed.

That seems sensible, would definitely be down for that improvement!
On Sun, Apr 17, 2016 at 1:43 PM Tommy<EMAIL_ADDRESS>wrote:

Currently, the component is using the full underscore. Would it be
possible to remove the unnecessary functions and only use and import the
specific functions from lodash instead?
Maybe only throttle would be needed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/tommoor/emojione-picker/issues/20

I moved to importing the specific modules from lodash - I'm not overly interested in changing all of these to native methods at this time, code readability is more important particularly as lodash is faster than that native implementations in a number of cases.
closed by 457f5aad7a6a3fcfed7d8194da96a448b010e2f5

Hey @tommoor, great you moved to lodash.. But could you change the imports to use the specific utils instead of the global lodash? Or maybe use the babel plugin for lodash?
https://github.com/lodash/babel-plugin-lodash

Hey @tleunen - this should already be done, eg: https://github.com/tommoor/emojione-picker/blob/master/src/picker.jsx

Yep, but you're using the syntax import {throttle, each, map, compact} from 'lodash', so the entire "lodash" library is loaded, which is a bit overkill for only 4 functions used.
Instead, you could use import throttle from 'lodash/throttle', ... for every functions. Or use the babel plugin as I specified.

Ah, interesting - no problem, I'll make that change for the next release.
On Tue, Aug 16, 2016 at 7:21 PM, Tommy<EMAIL_ADDRESS>wrote:

Yep, but you're using the syntax import {throttle, each, map, compact}
from 'lodash', so the entire "lodash" library is loaded, which is a bit
overkill for only 4 functions used.
Instead, you could use import throttle from 'lodash/throttle', ... for
every functions. Or use the babel plugin as I specified.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tommoor/emojione-picker/issues/20#issuecomment-240296062,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXP8sBgWbMehnD8uOS4eBNyyTJZawuKks5qgnAsgaJpZM4IJQZ-
.

--
Tom Moor
http://tommoor.com
http://twitter.com/tommoor


An error in console when selecting the Bond Tool after closing the 'Enhanced Stereochemistry' window

Steps to Reproduce

Create a structure with stereobonds (e.g. select any template with stereobonds from the Template library).
In the structure select any stereocenter.
Click the 'Stereochemistry button'.
Close the 'Enhanced Stereochemistry' dialog.
Click the canvas.

Expected behavior
The stereocenter from step 2 is not selected.
Actual behavior
The stereocenter selection remains unchanged.

Select any bond tool.

Expected behavior
The bond tool is selected.
Actual behavior
An error in the console appears.
Screenshots

Desktop :

OS: Windows 10
Browser: Chrome, Version 98.0.4758.82

Ketcher version: v2.4.1-99-g81423737

Regression re-checked in build 2.5 - OK


anti-captcha infinite loop

Hi, me again :P
So I was trying to use anti-captcha.com with cloudscraper, but I have an issue
When I run my python script, it never exit, I have to stop it with CTRL+C. And the problem is that it seems that anti-captcha.com resolved the captcha, but the script is trying again and again...
Here you can see that it is resolved, and all the captcha after this one were created in the same run (so the script tried 7 times, and then I stoped it)
https://i.imgur.com/9QrqRMZ.png
When I stopped it, the output was:
^CTraceback (most recent call last):
  File "test.py", line 5, in <module>
    return cf.get(urlpage)
  File "/usr/local/lib/python3.5/dist-packages/requests-2.21.0-py3.5.egg/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 231, in sendChallengeResponse
    return self.request(resp.request.method, resp.url, **original_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 229, in sendChallengeResponse
    self.request(resp.request.method, submit_url, **cloudflare_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 157, in request
    resp = self.sendChallengeResponse(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/__init__.py", line 198, in sendChallengeResponse
    params['g-recaptcha-response'] = reCaptcha.dynamicImport(self.recaptcha.get('provider').lower()).solveCaptcha(resp, self.recaptcha)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/reCaptcha/__init__.py", line 48, in solveCaptcha
    return self.getCaptchaAnswer(ret.url, site_key, reCaptchaParams)
  File "/usr/local/lib/python3.5/dist-packages/cloudscraper-1.1.19-py3.5.egg/cloudscraper/reCaptcha/anticaptcha.py", line 38, in getCaptchaAnswer
    job.join()
  File "/usr/local/lib/python3.5/dist-packages/python_anticaptcha/base.py", line 46, in join
    time.sleep(SLEEP_EVERY_CHECK_FINISHED)
KeyboardInterrupt

I am trying with this code
import cloudscraper

cf = cloudscraper.create_scraper(interpreter='nodejs', recaptcha={'provider': 'anticaptcha', 'api_key': 'XXXXXXXXXXXXXXXXXXXXXX'})

cf.get("https://pro-src.com/")

But maybe it is related to this issue https://github.com/VeNoMouS/cloudscraper/issues/54 !!!

If you need an anti-captcha API key, I can give you one @VeNoMouS :)

This is def a bug ... but its a weird bug, its caused by the cipher being used.. I will def address this , but i cant for a couple days ... due to well... LIFE ;P the 1.1.20 push I'm sending through now should solve the reCaptcha 403 issue in the mean time, I'm sorry I cant resolve this loop for you straight away, but I have marked it as a bug and will address as fast as i can


Update MD file on new branch 2017-12-05_13-35-53

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Index Server Initial Implementation

Added indexing functionality to the secondary server.
Added index, unindex, and search verbs to the secondary server.

Stale - closing


Identifier?

Not sure this identifier needs to be here... and even worse, you may really not want it here.
Just FYI
https://github.com/downie/playlate/blob/f1c0495c804781969dbb6af39a8c24fa7ae4aeba/.nova/Tasks/Playdate Simulator.json#L7

That's a good callout. I don't actually know what this identifier is. I'll ask in the forums.
I'm not worried about it being public. This isn't my ID, but one that ships with the Playdate SDK.  You can see for yourself in PlaydateSDK/Examples/Game Template.

Asked in the forums: https://devforum.play.date/t/whats-the-significance-of-the-uuid-identifier-in-the-nova-folder/3927

Yup, it's fine. It sounds like it helps Nova disambiguate between multiple tasks in a project. https://devforum.play.date/t/whats-the-significance-of-the-uuid-identifier-in-the-nova-folder/3927/2
Again, thanks for checking. 👍🏻


Connection reset by peer

Whenever i'm trying to get a rev shell, the connection is closed.
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Any suggestions how to resolve the issue ?

Hard to say without more information. First ensure that the sleep payload works if you haven't tested that already.


Conflict between EVNP L3 multicast and EVPN L2 multicast

Issue Summary
Hi,
Context :

1x Mcast VRF with 10x SVI/VLANs (210 to 219)
1 mcast underlay group for Mcast VRF
1x underlay groups for just one vlan (210)
Issue :
The generated configuration is the following :

interface vxlan 1
...
vxlan vlan 210 multicast group <IP_ADDRESS>
vxlan vrf MCAST multicast group <IP_ADDRESS>
...
router bgp 65101
...
  vlan 210
      rd <IP_ADDRESS>:10210
      route-target both 10210:10210
      redistribute igmp
      redistribute learned
   vrf MCAST
      rd <IP_ADDRESS>:21
      evpn multicast
      route-target import evpn 21:21
      route-target export evpn 21:21
      router-id <IP_ADDRESS>
      redistribute connected

According to the TOI => https://www.arista.com/en/support/toi/eos-4-25-1f/14670-multicast-evpn-irb the VLAN:

redistribute igmp should not be configured  in the control-plane because there is an SVI associated to that vlan
for the data-plane, there is 2 options :

vxlan vlan 210 multicast group <IP_ADDRESS> => will take precedence over the VRF mcast group for OISM+BUM
vxlan vlan 210 flood group <IP_ADDRESS> => for optimizing BUM traffic only

Can you confirm and fix it eventually in the model ?
Best Regards,
Christophe
Which component(s) of AVD impacted
eos_designs
How do you run AVD ?
Ansible CLI (with virtual-env or native python)
Steps to reproduce
tenants:
  # Definition of tenants. Additional level of abstraction to VRFs
  - name: Tenant-A
    evpn_l2_multicast:
       underlay_l2_multicast_group_ipv4_pool: <IP_ADDRESS>/20
       underlay_l2_multicast_group_ipv4_pool_offset: 1
    evpn_l3_multicast:
      evpn_underlay_l3_multicast_group_ipv4_pool: <IP_ADDRESS>/20
      evpn_underlay_l3_multicast_group_ipv4_pool_offset: 1
...
    l2vlans:
    vrfs:
...
      - name: MCAST
        vrf_id: 21
        vrf_vni: 21
        vtep_diagnostic:
          loopback: 21
          loopback_description: vtep_diagnostic
          loopback_ip_range: <IP_ADDRESS>/24
        evpn_l3_multicast:
          enabled: true
          evpn_peg:
            - nodes: [ dc1-blm1a-mrv356, dc1-blm1b-mrv357 ]
              # transit: true
        svis:
          - id: 210
            name: Flow_Multicast
            profile: GENERIC
            tags: [MCAST]
            evpn_l2_multicast:
              enabled: true
            ip_address_virtual: <IP_ADDRESS>/24
            ipv6_address_virtuals: ["fc00:100:20:210::1/64"]

Relevant log output
No response
Contributing Guide

[X] I agree to follow this project's Code of Conduct

#2031 was split into 2 features, we are interested in #2033

Thank you for reporting this.
It is not clear to me if this is actually a bug or a request to get support for flood groups. Please update the issue accordingly. Thanks!
If this is in fact a request to get #2033 implemented, please comment on that issue instead and close this one. We do stretched thin these days, so we will need volunteers to take on implementation of flood groups.

Hey Claus,
Thank you for your feedback !
I think there is multiple subjects here :

having redistribute igmp for a svi/vlan belonging to a VRF with evpn multicast is an issue because it could cause conflicts in the control-plane as far I know.
the flood group or multicast group for a specific VLAN/VXLAN is a data-plane optimisation is order to optimise the core
IHMO, the n:1 mapping model for a VRF is suboptimal, we have to propose M:N model as described here => https://www.arista.com/en/support/toi/eos-4-29-1f/16546-multicast-evpn-irb-multiple-underlay-groups

I'll have cycles beginning February to discuss about this.
Cheers,
/cc


Add workflow to publish docs

Purpose

Add workflow to publish docs

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


dry-run flag

It would be nice being able to run brew bundle dump --force --dry-run and get an output of the diff between the current file and what would be written
I know I could write a little brew-bundle-diff that outputted the current state to a tmp file and did a diff for me but having that built in would be nice :)

I don't think --force --dry-run makes sense. To get a similar diff I have my Brewfile in a git repository and use git diff.

--force was just there as that as what I used brew bundle with last - --dry-run could be used without it.
I understand that you can get it by storing your file in git, but I am not. I'll just stick to using --file to /tmp and do a local diff -u against my main file.


For gme, viz.eps_ft does not work for 'abs'-initialized reciprocal lattice.

Can you please provide more details, i.e. what code you're running and elaborate on what "does not work?"

Closing as the author has deleted their initial comment.


Remove network dependency from typical-workflow-context.rst

I've noticed this doctest being flakey, and it's probably because of:
>>> import urllib.request
>>> data_url = "https://raw.githubusercontent.com/opendp/opendp/sydney/teacher_survey.csv"

We should check if the file exists locally, and download if not available. (ie, someone has copy and pasted the code and tried to run it.)
In notebooks we have this idiom:
![ -e data.csv ] || wget ...

adapt?

That line was removed some time ago. Nothing needs to be done.


Running core edition of powershell under ssh from windows results in broken UX

From @vors on June 9, 2016 20:25

Steps to reproduce

From windows box, open inbox powershell
ssh to a linux VM. Use ssh that comes with windows version of git from command line

C:\Program Files\Git\usr\bin\ssh.exe

Follow instructions to install powershell
Everything works fine up to this point
Run powershell
Try to do something

Expected behavior
You should be able to work
Actual behavior
Console UX is broken:
half of commands are entered at the top of the screen, overriding the buffer

Environment data

v0.4.0
Copied from original issue: PowerShell/PowerShell#1088

From @vors on June 9, 2016 20:28

From @vors on July 27, 2016 20:56
Workaround: use putty as ssh client

From @vors on June 9, 2016 20:30
Same for running from inbox cmd

From @Jaykul on July 31, 2016 4:22
This problem also affects PowerShell running within Bash on Ubuntu on Windows whether directly in the bash console or in ConEmu. As soon as I start typing, the cursor moves to column 0 ...  and if the prompt past line 10, it goes back to line 0.

From @mwrock on August 15, 2016 0:15
I'm experiencing this as well. Makes the linux experience nearly unusable. Putty is a pretty undesirable workaround.

From @joeyaiello on July 27, 2016 20:56
@vors: thanks

From @mwrock on August 15, 2016 0:46
I typically use the mingw ssh that ships with git. Note that in SSH my TERM is set to cygwin I just thought I'd try ssh from the Bash on Ubuntu on Windows. This is a much better experience. A few little glitches but workable. TERM is set to xterm here.

From @MathiasMagnus on August 19, 2016 8:10
Same here. I wanted to try PS on an Ubuntu 16.04 remote cluster node, but the console got really messed up. I tried both ssh.exe that ships with Git for Windows, and also the one from bash.exe (upgraded to Ubuntu 16.04). Neither worked properly. Arrow keys not working properly to move inline and in history, in some places backspace doesn't work... not glitched, but broken.
The few commands that worked got the expected results, so anticipation is not lost, but grew even more. Very eager to try a fixed version, or even start tweaking with a hotfix, but Putty really is not an elegant workaround.

From @MathiasMagnus on August 22, 2016 8:47
I found this tutorial on PowerShell Core and SSH remoting, but it does not work, at all. The installed PS Core <IP_ADDRESS> fails to ping not just the host, but even itself.
Microsoft PowerShell:
PS C:\Users\Matty> Test-Connection <IP_ADDRESS>

Source        Destination     IPV4Address      IPV6Address                              Bytes    Time(ms)
------        -----------     -----------      -----------                              -----    --------
MATTY-Z50-75  <IP_ADDRESS>       <IP_ADDRESS>    ::1                                      32       0
MATTY-Z50-75  <IP_ADDRESS>       <IP_ADDRESS>    ::1                                      32       0
MATTY-Z50-75  <IP_ADDRESS>       <IP_ADDRESS>    ::1                                      32       0
MATTY-Z50-75  <IP_ADDRESS>       <IP_ADDRESS>    ::1                                      32       0

PowerShell Core:
PS C:\Kellekek\Microsoft\PowerShell\<IP_ADDRESS>> Test-Connection <IP_ADDRESS>
Test-Connection : Az ügyfél nem tud kapcsolatot létesíteni a kérelemben megadott célhellyel.  Ellenőrizze, hogy a célhelyen a szolgáltatás fut és kész kérések fogadására. Tekintse meg a célhelyen futó WS-Management szolgáltatás (általáb
an az IIS vagy a Rendszerfelügyeleti webszolgáltatások) naplóját és dokumentációját. Ha a célhely a Rendszerfelügyeleti webszolgáltatás, a következő parancs azon történő futtatásával elemezheti és konfigurálhatja a Rendszerfelügyeleti w
ebszolgáltatásokat: "winrm quickconfig".
At line:1 char:1
+ Test-Connection <IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Test-Connection], CimException
    + FullyQualifiedErrorId : TestConnectionException,Microsoft.PowerShell.Commands.TestConnectionCommand

(Translation: the client cannot establish a connection with the required remote client...) Am I doing something wrong? New-PSSession says:
PS C:\Kellekek\Microsoft\PowerShell\<IP_ADDRESS>> $session = New-PSSession -HostName ...
New-PSSession : [<hostname here>] An error has occurred which Windows PowerShell cannot handle. A remote session might have ended.
At line:1 char:12
+ $session = New-PSSession -HostName <hostname here> -UserName ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingDataStructureException
    + FullyQualifiedErrorId : PSSessionOpenFailed

From @Jaykul on August 22, 2016 2:31
By the way guys, if you install PowerShell core on your windows box, you can use PowerShell remoting to the Ubuntu box (over SSH). That seems to be working fine (with the exception that at least with ConEmu in the way, the Ctrl+C/Ctrl+V don't work in PSReadLine).

Hey @lzybkr, I just hit this issue with a different scenario.
Ubuntu 16.04 with docker and a modified build of Shell-in-a-Box (all I added was a POSH application value that could be used to docker run microsoft/powershell). When I browse to https://<IP_ADDRESS>/ps (my shortcut to the POSH application, which auto-logs in for testing), I get the PowerShell prompt, but any commands I type show up at the top of the terminal window. I can still run them (somewhat, seems clunky this way and I've seen some weird behaviour once I run a few commands), but I want to type/run inline, like I would with a native prompt.
Can you offer pointers on where the bug might be here if someone wanted to fix this?

I'm not sure where I'd start to be honest, I guess maybe setting a breakpoint in the .Net code that moves the cursor.

This appears to be a problem with Git's cygwin based ssh.exe as well as TERM not being set to something powershell uses.  See the original issue https://github.com/PowerShell/PowerShell/issues/1088, this doesn't appear to be a PSReadline issue.

OK, closing since the original issue was reactivated.


What is PSN info?

Can someone explain me this feature, i had no other better place to ask

Nothing appear in PSN info :(


Fixing typos in documentation

What is the best way to submit typo corrections for the documentation?
I hope typos don't have to be reported 1 by 1...
When using OpenSSL this can done by the including the -addtrust emailProtection parameter when creating the certificate.
should be
When using OpenSSL this can be done by including the -addtrust emailProtection parameter when creating the certificate.

The best way is to submit a pull request on the 5.x branch with all typos you found fixed.

Right!
(How blind of me to miss the doc folder... :grin:)


missing token images

Describe the bug
some tokens, dont have their token image.

What are the names or contracts of these logos?

@Velua updated the names to original text

done


Onepanel syncer - tries syncing if already syncing?

If we are syncing a lot of files, and the timer is set to a low enough value, does the syncer retry the sync action while one is already going?
Need to test this, and if it does happen, stop it.

This has actually already been fixed as part of the v0.13.0 release.


Invalid Secp256k1 pubkey length (compressed): 0

When trying to create a multisig address using https://multisig.confio.run/saga/create :
I get this error message:
Invalid Secp256k1 pubkey length (compressed): 0
Additional browser console output:
Access to fetch at 'https://rpc-saga.keplr.app/' from origin 'https://multisig.confio.run' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
rpc-saga.keplr.app/:1

       Failed to load resource: net::ERR_FAILED
create:1 Access to fetch at 'https://saga-mainnet-rpc.autostake.com/' from origin 'https://multisig.confio.run' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
saga-mainnet-rpc.autostake.com/:1

       Failed to load resource: net::ERR_FAILED
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Failed to create multisig: Error: Invalid Secp256k1 pubkey length (compressed): 0
    at ep (_app-fab72fd75982dedc.js:1:57844)
    at ey (_app-fab72fd75982dedc.js:1:58045)
    at _app-fab72fd75982dedc.js:1:67945
    at Array.sort (<anonymous>)
    at ef (_app-fab72fd75982dedc.js:1:67898)
    at s (28-bed7607b75d4c8fc.js:1:11032)
    at P (create-e00a699a23c81075.js:1:6523)
    at Object.eU (framework-5866cead997b9ace.js:9:14910)
    at eH (framework-5866cead997b9ace.js:9:15064)
    at framework-5866cead997b9ace.js:9:33370
P @ create-e00a699a23c81075.js:1
create-e00a699a23c81075.js:1 Object

Both addresses I'm adding to the 2-of-2 multisig were generated using Keplr wallet. Browser is Brave (Chromium-based) for MacOS.

Thank you for the report. The issue is most likely caused by the pubkey not being on the chain (and the error handling failing). Could you try using the May Account  page (top right) to see the public keys and construct the multisig with pubkeys instead of addresses?

Improved the multisig creation in #213 and the multisig error handling in #214


Unable to 'list all my secrets'

Summary
I cannot see secrets I've inserted. Running gopass like described in the features documentation just brings up some kind of interactive mode:
$ gopass
gopass>

Also gopass show behaves differently:
$ gopass show

Error: Usage: gopass show [name]

I've seen gopass ls, but it only lists directories, e.g. if I have secrets foo/bar/a and foo/bar/b the output is
$ gopass ls
gopass
└── foo
    └── bar

Steps To Reproduce

Install gopass on Fedora 32 following the setup guide
Set up gopass with gopass init --path /home/username/.password-store (replacing username with the user's name)
Insert the secrets from the summary
Try to list the secrets using gopass or gopass show or gopass ls

Expected behavior
As described in the features documentation, gopass should list the secrets in a tree-view.
Environment

OS: Fedora 32
OS version: 5.8.4-200.fc32.x86_64
gopass Version: 1.10.1
Installation method: dnf

Additional context

Sorry, I can't reproduce this with 1.10.1.
You might want to try GOPASS_DEBUG_LOG=/tmp/logfile to get a debug log.
The documentation still needs to be updated to cover the interactive mode.

Thanks for the response. I can't see anything suspicious in the log file. I'm attaching it (time stamp 13:23 is the log for gopass show and 13:28 for gopass ls), maybe there is something obvious I'm overlooking here. I appreciate the help.
gopass.log

This is strange since your logfile seems to indicate that Gopass found 2 secrets in your store.
It should display:
gopass
└── money/
    └── ing/
        └── cards/
            ├── giro
            └── visa

Your config seems sane, I don't see what could cause an issue.
What exact commands are you running and what is the output exactly?

That's what I'd expected to be displayed. The commands and steps to reproduce are described in the opening post. The actual output of gopass ls is:
$ gopass ls
gopass
└── money
    └── ing
        └── cards

But, as you already pointed out, the secrets are there:
$ tree ~/.password-store/
.password-store/
└── money
    └── ing
        └── cards
            ├── giro.gpg
            └── visa.gpg

3 directories, 2 files

I think this is related to #1628 and solved by #1651
Closing since it should be solved.

I think this is related to #1628 and solved by #1651
Closing since it should be solved.


Fix ParentNode interface

Fixes https://github.com/Microsoft/TypeScript/issues/14246

@zhengbli Can you add the feature to remove the interfaces?


Changed all occurrences of .execute to .execute_statement

Changes
Replaced the .execute calls to the .execute_statement call as present in the StatementExecutionAPI
Replacements have been made in the following files:

grants/get_effective_tables.py
shares/update_shares.py
shares/update_tables.py
statement_execution/execute_shares.py
statement_execution/execute_tables.py
tables/get_tables.py

@caffeinelover1012 can you re-implement the https://github.com/databricks/databricks-sdk-go/blob/dd2802a246d8a2ac0689031cc93e15d97b486df8/service/sql/utilities.go#L11-L55 and add mixins, the same way as we have for clusters.

@nfx I just started going through this sdk and may need some more context. I will try to add those changes, but as I am an independent contributor and current college student, I may have some doubts along the way.

@mgyucht Got it, making that mixin and changes.


Menu cannot show labels that contain ( or ) when they also have chords

VSCode Version: 1.11.2
OS Version: Microsoft Windows [Version 10.0.15063]

Steps to Reproduce:

Open Visual Studio Code
Click on "File" menu

In "en-US" locale, you can see "Save All" with a "l" shortcut.

In "zh-TW" locale, you can see the "l" shortcut is gone.  All others menu items's shortcuts are still exists.  Hope to add it back to keep consistent user experience.

Also notice same behavior happening to menu "Open Folder..." and "Close Folder...", they all have hotkey assigned correctly in loc strings actually in resources as well as accelerator key combination, but hotkeys don't show up on screen. For fareast languages, the handling of hotkey localization is appending the English one at the end of UI string, embraced in parenthesis. This case looks hotkey assignment conflicts to accelerator and the latter wins.
E.g. "Save All..." menus.nls.resx.lcl
  <Item ItemId=";miSaveAll" ItemType="0;.resx" PsrId="211" Leaf="true">
    <Str Cat="Text">
      <Val><![CDATA[Save A&&ll]]></Val>
      <Tgt Cat="Text" Stat="Loc" Orig="New">
        <Val><![CDATA[全部儲存(&&L)]]></Val>
      </Tgt>
    </Str>
    <Disp Icon="Str" />
  </Item>

@dbaeumer, can you reroute?

@bpasero can you have a look. The translation correctly contains (&&L) but that information is removed from the menu entry. Is this because of us adding the short cuts to the end of the label if that are cords ?

We support mnemonics as long as you use "&&" in the string (e.g. see here https://github.com/Microsoft/vscode/blob/master/src/vs/code/electron-main/menus.ts#L665), so I suspect something goes wrong when resolving the NLS string.
Why are we using & in the string, for Electron it should just be "&".

Discussed with @bpasero. Moving back.

Loc string follows source pattern. '&&' interpreted to '&&' in loc format

I updated the issue, not NLS related.


Add more tests for Bigquery

... and add some common testing infrastructure at the same time.
(No production code changes.)

Self-merging - very low risk.


Add support for Keyboard and Mouse

#39 takes care of the mouse support. There is still the need for a generic keyboard input


install, puppet: Handle RabbitMQ node name changes

Change the configured node name only when there are no running RabbitMQ processes. Also in case of a node name change restart the RabbitMQ service after the fact, since by that time RabbitMQ would have been installed and started.

Automated message from Dropbox CLA bot
@femnad, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here.

Automated message from Dropbox CLA bot
@femnad, thanks for signing the CLA!

This didn’t work for me because rabbitmq-env.conf wasn’t created early enough. See #2376 for a replacement.

@andersk Thanks for the update, I'll look into it and check your patch too.

Closed in favor of #2376 (which was just merged).  Thanks @femnad for working on this, though!  Your initial version was helpful for developing #2376.


feedback BUG：camera.grab() Resolution error

My system has set a zoom of 150%. My original resolution was 2560x1600, but your command reduced the resolution by 50% to 1707x1067
Please fix the bug quickly！

My installation method for dxcam is to pip install dxcam. Once you fix the bug, please synchronize it to Python

I fixed this bug at https://github.com/eiyooooo/DXcam/commit/88d189246f083787d383bd46fe8bc5fe72067485
You can download the code and use by placing the "dxcam" folder into your project

@eiyooooo @ra1nty Can this make it into a PR?

Can this make it into a PR?

PR at #89, also at #70


rootless: skip check fo /etc/containers/registries.conf

the warning can be confusing when used in rootless mode as the
unprivileged user has no way for setting it up.
Closes: https://github.com/containers/libpod/issues/2955
Signed-off-by: Giuseppe Scrivano<EMAIL_ADDRESS>

Do we have a local version of the file? If not, I think it might still make sense to retain it, because a lot of functionality seems to break without having registries defined

ideally we would never NOT have that file ...

Well you would NOT have the file if the podman was installed/built locally in your homedir.  For the most part users seeing this are probably on distributions that did not ship a registries.conf

Do we have a local version of the file? If not, I think it might still make sense to retain it, because a lot of functionality seems to break without having registries defined

yes, I've amended the code to also look for the user conf file.

LGTM

@mheon @baude @TomSweeneyRedHat @vrothberg PTAL
Lets get this merged.

/lgtm


Lavamoat node errors if there is a shebang at the top of the entrypoint

I wanted to try to run gatsby using the lavamoat-node runtime but it won't run because the entrypoint has a #!/usr/bin/env node shebang at the top of the file.
LavaMoat - Error evaluating module "/home/raoul/code/raoulmillais/gatsby-theme-parity-website/node_modules/gatsby-cli/lib/index.js" from package "gatsby-cli"
[SyntaxError: Invalid or unexpected token]

Are there plans to support files which have a shebang?  Or are you able to give me a pointer as to where I can look to add support for ignoring the shebang?

@raoulmillais hmm we should be handling this here https://github.com/LavaMoat/LavaMoat/blob/289e50124419738930be7469e74aa16603649c70/packages/node/src/kernel.js#L106-L110

@raoulmillais im not sure what the issue is. idk what version you're using but the code seems like something we should be able to handle https://npmfs.com/package/gatsby-cli/3.4.1/lib/index.js
I need to at least improve the error output there


Replace kubernetes_service.py with the observability_libs equivalent

Enhancement Proposal
Replace kubernetes_service.py with the observability_libs equivalent

@lucabello seems like you've already switched out the local file in favor of the lib. can you please delete the file from the src folder as well so we can close this?

The v0 file of kubernetes_service_patch.py had already been deleted a long time ago, even with charms using it, hence why I was pressed to update them to v1 :)
Closing this ticket!

Oh nevermind, you meant in this repo: will do!


Display the associated Data Manager Log ID with the failed job on the Job Details page.

What is the motivation for adding/enhancing this feature?
Enhance user visibility by displaying the associated Data Manager Log ID alongside failed job details on the Job Details page, improving troubleshooting efficiency.
What are the acceptance criteria?

[ ] ...

Can you complete this feature request by yourself?

[ ] YES
[ ] NO

Additional information

https://docs.google.com/document/d/1oNuOPSQafWHLvXCQZ145vZdZtEUB3wMaXUx37OruVW0/edit?usp=sharing
UI doc for this feature

Badge color needs to be as follows:

Found one issue  - On clicking the 'View Details' button, the Import Logs page opens as expected. However, when changing the product store, the Import Logs page remains open.


app.js path should be absolute

If someone call a subpage directly the app breaks because app.js is tried to loaded from subpages path e.g. /about/app.js
this could be fixed by adding output.publicPath to webpack.config

Thanks for spotting this! :beers:

Thanks for spotting this! :beers:


Tensorflow Build for Alpine on Multiple Architectures

Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.5.0
Custom code
No
OS platform and distribution
Linux Alpine 3.18
Mobile device
No response
Python version
3.11.10-r1
Bazel version
6.5.0
GCC/compiler version
12.2.1_git20220924-r10
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Expected behavior: Successful build.
Actual behavior: A python related error is printed to the console and the build fails.
I'm trying to build Tensorflow 2.15.0 on Alpine Linux 3.18. My objective is to build Alpine compatible wheels for x86 and Arm64.
To do this I plan to dow a build inside docker:
1/ Install Python 3.11.10-r1, along with any dependencies,
2/ Download Bazel 6.5.0 , do a bootstrap build, using scripts/bootstrap/compile.sh,
3/ Trigger the Tensorflow build using Bazel,
4/ Export the wheel that has been built.
The first two steps are working fine, however I'm getting an error that I don't understand from Bazel when building Tensorflow.
From what I understand Bazel bunks down to system processes for the python components, so I have verified that the packages that it appears to be failing on are available on Alpine by downloading and installing them outside of Bazel.
I would be grateful if anyone could help me with the following questions:
a) Increase the debug output from Bazel,
b) Explain how Bazel and Tensorflow specifically uses pipy,
c) And hence explain the error above?
Any help would be gratefully received.
 No such file or directory
00:21:54  #15 55.33 ) error code: '1'
00:21:54  #15 55.33 ERROR: /tmp/tensorflow-2.15.0/WORKSPACE:70:13: fetching whl_library rule //external:pypi_packaging: Traceback (most recent call last):
00:21:54  #15 55.33 	File "/root/.cache/bazel/_bazel_root/96fc12a8fd07b4bb0604d61746db3a5b/external/rules_python/python/pip_install/pip_repository.bzl", line 596, column 13, in _whl_library_impl
00:21:54  #15 55.33 		fail("whl_library %s failed: %s (%s) error code: '%s'" % (rctx.attr.name, result.stdout, result.stderr, result.return_code))
00:21:54  #15 55.33 Error in fail: whl_library pypi_packaging failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/root/.cache/bazel/_bazel_root/96fc12a8fd07b4bb0604d61746db3a5b/external/python_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
00:21:54  #15 55.33 ) error code: '1'
00:21:54  #15 55.33 INFO: Repository org_brotli instantiated at:
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/WORKSPACE:84:14: in <toplevel>
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/tensorflow/workspace2.bzl:928:21: in workspace
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/tensorflow/workspace2.bzl:874:20: in _tf_repositories
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/third_party/repo.bzl:136:21: in tf_http_archive
00:21:54  #15 55.33 Repository rule _tf_http_archive defined at:
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/third_party/repo.bzl:89:35: in <toplevel>
00:21:54  #15 55.33 INFO: Repository stablehlo instantiated at:
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/WORKSPACE:84:14: in <toplevel>
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/tensorflow/workspace2.bzl:921:28: in workspace
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/tensorflow/workspace2.bzl:88:14: in _initialize_third_party
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/third_party/stablehlo/workspace.bzl:11:20: in repo
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/third_party/repo.bzl:136:21: in tf_http_archive
00:21:54  #15 55.33 Repository rule _tf_http_archive defined at:
00:21:54  #15 55.33   /tmp/tensorflow-2.15.0/third_party/repo.bzl:89:35: in <toplevel>
00:21:54  #15 55.38 INFO: Repository com_google_absl instantiated at:
00:21:54  #15 55.38   /tmp/tensorflow-2.15.0/WORKSPACE:84:14: in <toplevel>
00:21:54  #15 55.38   /tmp/tensorflow-2.15.0/tensorflow/workspace2.bzl:921:28: in workspace
00:21:54  #15 55.38   /tmp/tensorflow-2.15.0/tensorflow/workspace2.bzl:63:9: in _initialize_third_party
00:21:54  #15 55.38   /tmp/tensorflow-2.15.0/third_party/absl/workspace.bzl:39:20: in repo
00:21:54  #15 55.38   /tmp/tensorflow-2.15.0/third_party/repo.bzl:136:21: in tf_http_archive
00:21:54  #15 55.38 Repository rule _tf_http_archive defined at:
00:21:54  #15 55.38   /tmp/tensorflow-2.15.0/third_party/repo.bzl:89:35: in <toplevel>
00:21:54  #15 55.40 ERROR: /tmp/tensorflow-2.15.0/tensorflow/python/framework/BUILD:299:18: //tensorflow/python/framework:framework depends on @pypi_packaging//:pkg in repository @pypi_packaging which failed to fetch. no such package '@pypi_packaging//': whl_library pypi_packaging failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/root/.cache/bazel/_bazel_root/96fc12a8fd07b4bb0604d61746db3a5b/external/python_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
00:21:54  #15 55.40 ) error code: '1'
00:21:54  #15 55.43 ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted:
00:21:55  #15 55.46 INFO: Elapsed time: 51.759s
00:21:55  #15 55.46 INFO: 0 processes.
00:21:55  #15 55.46 FAILED: Build did NOT complete successfully (147 packages loaded, 515 targets configured)
00:22:03  #15 ERROR: process "/bin/sh -c export PYTHON_BIN_PATH=\"$(which python)\"     && export TF_PYTHON_VERSION=\"$(${PYTHON_BIN_PATH} --version | sed -E -e 's/Python //' -e 's/.[0-9]+//')\"     &&cd /tmp/tensorflow-${TENSORFLOW_VERSION}     && bazel clean --expunge     && bazel build -c opt --define=no_tensorflow_py_deps=true --verbose_failures //tensorflow/tools/pip_package:build_pip_package" did not complete successfully: exit code: 1
00:22:03  ------
00:22:03   > [12/15] RUN export PYTHON_BIN_PATH="$(which python)"     && export TF_PYTHON_VERSION="$(${PYTHON_BIN_PATH} --version | sed -E -e 's/Python //' -e 's/.[0-9]+//')"     &&cd /tmp/tensorflow-2.15.0     && bazel clean --expunge     && bazel build -c opt --define=no_tensorflow_py_deps=true --verbose_failures //tensorflow/tools/pip_package:build_pip_package:
00:22:03  55.38   /tmp/tensorflow-2.15.0/third_party/absl/workspace.bzl:39:20: in repo
00:22:03  55.38   /tmp/tensorflow-2.15.0/third_party/repo.bzl:136:21: in tf_http_archive
00:22:03  55.38 Repository rule _tf_http_archive defined at:
00:22:03  55.38   /tmp/tensorflow-2.15.0/third_party/repo.bzl:89:35: in <toplevel>
00:22:03  55.40 ERROR: /tmp/tensorflow-2.15.0/tensorflow/python/framework/BUILD:299:18: //tensorflow/python/framework:framework depends on @pypi_packaging//:pkg in repository @pypi_packaging which failed to fetch. no such package '@pypi_packaging//': whl_library pypi_packaging failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/root/.cache/bazel/_bazel_root/96fc12a8fd07b4bb0604d61746db3a5b/external/python_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
00:22:03  55.40 ) error code: '1'
00:22:03  55.43 ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted:
00:22:03  55.46 INFO: Elapsed time: 51.759s
00:22:03  55.46 INFO: 0 processes.
00:22:03  55.46 FAILED: Build did NOT complete successfully (147 packages loaded, 515 targets configured)
00:22:03  ------
00:22:03  WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
00:22:03  Dockerfile:109
00:22:03  --------------------
00:22:03   108 |     # --local_resources ${LOCAL_RESOURCES}
00:22:03   109 | >>> RUN export PYTHON_BIN_PATH="$(which python)" \
00:22:03   110 | >>>     && export TF_PYTHON_VERSION="$(${PYTHON_BIN_PATH} --version | sed -E -e 's/Python //' -e 's/.[0-9]+//')" \
00:22:03   111 | >>>     &&cd /tmp/tensorflow-${TENSORFLOW_VERSION} \
00:22:03   112 | >>>     && bazel clean --expunge \
00:22:03   113 | >>>     && bazel build -c opt --define=no_tensorflow_py_deps=true --verbose_failures //tensorflow/tools/pip_package:build_pip_package
00:22:03   114 |
00:22:03  --------------------
00:22:03  ERROR: failed to solve: process "/bin/sh -c export PYTHON_BIN_PATH=\"$(which python)\"     && export TF_PYTHON_VERSION=\"$(${PYTHON_BIN_PATH} --version | sed -E -e 's/Python //' -e 's/.[0-9]+//')\"     &&cd /tmp/tensorflow-${TENSORFLOW_VERSION}     && bazel clean --expunge     && bazel build -c opt --define=no_tensorflow_py_deps=true --verbose_failures //tensorflow/tools/pip_package:build_pip_package" did not complete successfully: exit code: 1

@els8482,
I request you to take a look at this https://github.com/tensorflow/tensorflow/issues/62899 where a similar issue has been proposed and it is still open. Also I request to follow the similar issue which has been proposed to have the updates on the similar issue. Thank you!


SecretStr cannot be idempotently passed if annotated using Field

Initial Checks

[X] I have searched GitHub for a duplicate issue and I'm sure this is something new
[X] I have searched Google & StackOverflow for a solution and couldn't find anything
[X] I have read and followed the docs and still think this is a bug
[X] I am confident that the issue is with pydantic (not my code, or another library in the ecosystem like FastAPI or mypy)

Description
Pydantic previously had a bug where SecretStr objects were not able to be idempotently passed into a SecretStr field on a model.
I'm using SecretStr to implement an annotated API key type where the length of the key is known, and I found I am unable to pass SecretStr objects into a model if it has been annotated. Only regular strings will work.
>>> from typing_extensions import Annotated
>>> from pydantic import BaseModel, Field, SecretStr
>>> class Test(BaseModel):
...     api_key: Annotated[SecretStr, Field(min_length=4, max_length=4)]
...
>>> Test(api_key="abcd")
Test(api_key=SecretStr('**********'))
>>> Test(api_key=SecretStr("abcd"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pydantic\main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Test
api_key
  str type expected (type=type_error.str)

Example Code
from typing_extensions import Annotated
from pydantic import BaseModel, Field, SecretStr

class Test(BaseModel):
    api_key: Annotated[SecretStr, Field(min_length=4, max_length=4)]

Test(api_key="abcd")
Test(api_key=SecretStr("abcd"))

Python, Pydantic & OS Version
$ poetry run python -c "import pydantic.utils; print(pydantic.utils.version_info())"
             pydantic version: 1.10.4
            pydantic compiled: True
                 install path: C:\Users\karam\dev\github.com\buildarr\buildarr\.venv\Lib\site-packages\pydantic
               python version: 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
                     platform: Windows-10-10.0.22621-SP0
     optional deps. installed: ['email-validator', 'typing-extensions']

Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

Subclassing SecretStr instead of using Annotated appears to give better results.
This makes me think that it is related to the fact that the model is not expecting a regular SecretStr, and passing it a normal SecretStr doesn't satisfy the conditions.
from typing_extensions import Annotated
from pydantic import BaseModel, Field, SecretStr

class ApiKey(SecretStr):
    min_length = 4
    max_length = 4

class Test(BaseModel):
    api_key: ApiKey

Test(api_key=ApiKey("abcd"))

Subclassing SecretStr instead of using Annotated appears to give better results.

but does this actually apply length validation?
I suspect that truth is we won't be able to make many changes to this in V1 at this point without risking breaking existing behaviour, but we should be able to get it right for V2 which is nearing completing at the moment.

but does this actually apply length validation?

Thanks for your comment. Just gave this a quick test and it appears to validate it correctly.
>>> from pydantic import BaseModel, SecretStr
>>> class ApiKey(SecretStr):
...     min_length = 4
...     max_length = 4
...
>>> class Test(BaseModel):
...     api_key: ApiKey
...
>>> Test(api_key=ApiKey("abcdef"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pydantic\main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Test
api_key
  ensure this value has at most 4 characters (type=value_error.any_str.max_length; limit_value=4)

Great, pleased you found a work around.

Since there is a work around, and it's already working on V2, I'll be closing this issue. 🙏

This doesn't seem to work for regex patterns
class StringParam(SecretStr):
    pattern = r"a"

class Test(BaseModel):
    test: StringParam

Test(test="b")
#Test(test=StringParam('**********'))


Use jdk 16 instead of 13

@andreoss thanks!

@andreoss/z this pull request is too small, just 2 lines changed (less than 10), there will be no formal code review, see §53 and §28; in the future, try to make sure your pull requests are not too small; @yegor256/z please review this and merge or reject

Job gh:cqfn/eo#454 is not assigned, can't get performer


Optimize sort on compact numeric types

Q: select x from tcompact order by x limit 20
C: 10
| Version |         Mean ±    Stdev |        Min |     Median |         Q3 |        Max |
|   V1    |      121.071 ±  107.928 |     64.200 |     85.127 |     98.467 |    449.265 |
|   V2    |       78.311 ±   81.615 |     38.068 |     51.800 |     58.837 |    329.839 |
├---------┴-------------------------┴------------┴------------┴------------┴------------┘
|               -  42.89%                           -  48.68%
There is a 99.82% probability that the observed difference is not random, and the best estimate of that difference is 42.89%
The test has statistical significance

retest this please
flaky test (will be fixed with https://github.com/crate/crate/pull/16511)


feat: return model and adapter when batch-enforce with modelId

fix: https://github.com/casbin/casdoor/issues/2420

Replaced by: https://github.com/casbin/casdoor/commit/a42594859fa3cfe72532a071a46357d6da8bb974


Run builds in travis on xenial

Switching to xenial since it's a newer base and has support for the
addons needed to run chef integration testing.
bionic doesn't yet appear to be added to the approved list of resources
for the apt addon:

https://github.com/travis-ci/apt-source-safelist/tree/master/keys

Additionally switched package from chefdk to chef-workstation to stay up
to date with what's maintained. Same tools, different name.
--
Purpose
Update the base platform used for travis builds.
Known Compatibility Issues
None

Saw failures like this: https://travis-ci.org/sensu/sensu-go-chef/jobs/624832661
Small attempt to fix these

@majormoses Don't know why appveyor started failing here

is rspec not in chef-workstation? https://travis-ci.org/sensu/sensu-go-chef/jobs/624854826#L257

is rspec not in chef-workstation? https://travis-ci.org/sensu/sensu-go-chef/jobs/624854826#L257

My vault, just used wrong bin path

@cwjohnston or @derekgroh maybe can comment on windows failures here. I don't think I can do much about those.

Thinking a bit more on #59 and this change, could we move testing to Travis.ci for both platforms? Anyone have experience with breaking down the logic for Travis.ci now that Windows support is more supported?

@derekgroh I'm open to that option and doing some of that work if it's agreeable.
Think it's reasonable we do that instead of merging this as is and just ignoring appveyor failures?


Remove Sized constraint on Readers and Writers

All of the top-level methods for saving/loading a DXF file take a Read or Write by reference, so you can relax the Sized bound. This means if you already have a &mut Read (i.e. trait object), you don't need to pass a reference to it to Drawing::load(). This adds an extra level of indirection and feels kinda odd.
My particular use case looks something like this:
fn load(&self, mut reader: &mut Read) -> Result<Drawing> {
    let raw = dxf::Drawing::load(&mut reader)    // actually passing &mut &mut Read here
        .chain_err(|| "Unable to load the DXF")?;

    ...
}

Thank you for your contribution!

Any chance you can do a 0.2.1 patch release?

Sure thing.  Published crate version 0.2.1 and added the appropriate source tag.


Add license to init files.

Fixes the jenkins failures.

Rat check: Summary over all files. Unapproved: 2, unknown: 2, generated: 0, approved: 197 licenses.

R: @robertwb

LGTM, though I don't know if an empty file (or its position in a source tree) is technically copyright-able :).


hive-ms: merge meta data

after branch has been merged to master, if schema was changed we need a way to merge the changes from the branch hive-ms to master hive-ms

Hey @chaimt,
Thank you for opening this issue!
In order to further understand the issue it would be very helpful if you'll share with us what you would expect to get merged as a result of the merge process.
If you can also share a diff between schemas, and a desired result that would be awesome!
Thanks!


feat: setup compilation, testing and linting in CI

👋🏽 hi team
What
This PR sets up compilation, testing and linting CI. This PR builds on top of the changes proposed in https://github.com/1Password/srp/pull/34
What approach did you choose and why?
I enabled all linters by default and removed those that resulted in too much noise. I then applied the fixes automatically by running golangci-lint run -fix.
For compilation and testing I rely on go build and go test.
I configured CI to run on every commit and for all Go versions from the one supported by srp till the latest one.
What should reviewers focus on?
On the changes applied automatically by golangci-lint.
If something goes wrong, what are the mitigation strategies?
maybe there are public projects in which I could vendor this latest SHA to sanity check?
Performance Impact
None
Observability
N/A

closing as I'll be upstreaming these changes


Filter not working correctly

the filters aren't working when they have empty fields and get a server error.
You can't create separate filters for the same model as all of them combined.

You will need to elaborate

sure in the demo imagine if i want to filter some orders based on the date only, if i set the correct dates i will get an error because the other fields are empty, and i can't for example remove the other fields because maybe i need sometimes to use them.

Fixed in #293


Refactor Serval API to use IJob and IEngine interfaces

This is to prepare to add a word alignment (and also aqua enhanced word alignment) engine.  Adding the engines will be a separate PR.

This change is

@ddaspit - I spent some time reviewing domain driven design and when it is most effective to be used: https://learn.microsoft.com/en-us/previous-versions/msp-n-p/ee658117(v=pandp.10).  Here is a key idea that I found: "While Domain Driven Design provides many technical benefits, such as maintainability, it should be applied only to complex domains where the model and the linguistic processes provide clear benefits in the communication of complex information, and in the formulation of a common understanding of the domain.".
As I have reviewed the architecture, here are a few observations:

The "different meanings for the same word" occurs less - it is not like "meter" in the example used.  Mostly it occurs when the data is transferred from one layer to another, not in a separate domain.
I am assuming that any processes foreseeably implemented in Serval will have these characteristics:

There will be a collection of data arranged in a corpora and processed to create a reusable engine or to get immediate results (or both).
This processing will be fairly intensive, which is why it is not done locally.

The "plumbing" of Serval is not really domain specific, especially the management of engines, jobs and the gathering of results.  Each one may have an extra field here or there, or an extra routine (needs to be extensible), but the core job running and processing data on a built engine is the same.

Therefore, I think the following Serval plumbing can be shared with all engine types:

Message outbox (in process)
Webhooks for job status (in process)
Management of engines, jobs and results in the database (implemented here)
Creating, and managing Hangfire and ClearML jobs (not done yet)
Old file cleanup

These would then be the unique things needed for each job:

Definitions for all the parameters and Job options for engine and Job creation
Hosting the engine in the engine server for live inferencing (or on Modal or somewhere else in the future for NMT jobs)
Pre- and post- processing job routines
Main build job
Extensions to query the build model (translate, get alignment, etc.)

I think changing Serval from "welcome all microservices" to the "one pipeline with multiple types of data" will end up easing the addition of more types of processing with minimal effort.


Bare URLs in Markdown don't get made into links

E.g. in the IS-04 "Overview" source doc, http://jt-nm.org/ is rendered as a link.* That's nice.
But in the IS-04 "Overview" rendered doc, that text is not rendered as a link. That's a shame.
*This is a "GitHub Flavor" Markdown extension, I believe.

@garethsb-sony in your example the source should have used http://jt-nm.org/ -- linters tend to complain about bare URLs.  I didn't know that three years ago when that was written though.
This could be sorted by fix-link.sh, but better to fix the source in the next point release?

Um, say again, what should the source have used... it looks like you typed the bare URL above,  but I'm guessing you didn't!? 😃

:) I typed "< h t t p:.... >"


fixed some typos

fixed some typos

Thanks for your PR!
We are in the process of archiving this repo and are no longer accepting new PRs. Please see https://github.com/kubernetes/org/issues/1563 for more details. Thanks again!


Emit Performance Data on same line as ServiceOutput if LongServiceOutput is empty

Currently the behavior is to emit Performance Data metrics after LongServiceOutput, but for plugins which do not generate additional information (or perhaps place it behind a --verbose flag) having the output trail the one-line (ServiceOutput) summary is perhaps not as intuitive as I expected it might be.
Instead, make the behavior dynamic based on whether LongServiceOutput is provided. If not, emit metrics on the same line as ServiceOutput content.

It looks like much of this logic is already in place.
One change might be to trim any trailing whitespace in es.ServiceOutput before emitting performance data.


RS485 on new JK inverter BMS JKPB2A16SXXP

Hi, in regards to
https://github.com/syssi/esphome-jk-bms/pull/409
and
https://github.com/syssi/esphome-jk-bms/issues/390
it seems to be (also) about converting a RS485 signal to read data from the new JK inverter bms (JKPB2A16SXXP). The old JK-BMS, as in the readme, using "The UART-TTL (labeled as RS485) socket of the BMS can be attached to any UART pins of the ESP" DIRECTLY.
I´m just wondering why the RS232 Port on the new BMS is not possible to use for a configuration without a RS485 converter module?
I would also be very keen to find a detailed description which parts need to be connected in which way for the new bms and what are the UART settings of the bms are helpfull for (if not to connect something to the RS232 port).
Spent the last 10 hours to follow the description in the readme to find out in the end that attaching my new JK bms needs to happen in a different way ;)
thank you for any insights

Hi!!
You could try this one:
https://github.com/txubelaxu/esphome-jk-bms
Regards
El El sáb, 6 jul 2024 a las 14:50, holle75 @.***>
escribió:

Hi, in regards to
#409 https://github.com/syssi/esphome-jk-bms/pull/409
and
#390 https://github.com/syssi/esphome-jk-bms/issues/390
it seems to be (also) about converting a RS485 signal to read data from
the new JK inverter bms (JKPB2A16SXXP). The old JK-BMS, as in the readme,
using "The UART-TTL (labeled as RS485) socket of the BMS can be attached to
any UART pins of the ESP" DIRECTLY.
I´m just wondering why the RS232 Port on the new BMS is not possible to
use for a configuration without a RS485 converter module?
I would also be very keen to find a detailed description which parts need
to be connected in which way for the new bms and what are the UART settings
of the bms are helpfull for (if not to connect something to the RS232 port).
Spent the last 10 hours to follow the description in the readme to find
out in the end that attaching my new JK bms needs to happen in a different
way ;)
thank you for any insights
—
Reply to this email directly, view it on GitHub
https://github.com/syssi/esphome-jk-bms/issues/517, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFHIJMD33RKLGGXE6XQDKOTZK7RYHAVCNFSM6AAAAABKOM7DH2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TGNJVGA4TEMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thank you guys. This one from txubelaxu is about connection via RS485. Thats a viable way to do it. Thanks for that.
Just out of curiosity: why the RS232 port (and the settings behind) can´t be used for a direct connection without the serial to RS485 converter?
Should have asked the initial question in the discussions area. Sorry for that.

it seems to be (also) about converting a RS485 signal to read data from the new JK inverter bms (JKPB2A16SXXP). The old JK-BMS, as in the readme, using "The UART-TTL (labeled as RS485) socket of the BMS can be attached to any UART pins of the ESP" DIRECTLY.

It's hard to explain but I will give it a try. :-) If you disassemble the initial/old hardware model and trace the wires of the RS485 port you will find an optical isolator + the microcontroller. Let's ignore the optical isolator. In other words: The RS485 port is labeled "RS485" but it's directly connected to the UART port of the microcontroller. The logic level is 3.3V this is why we are talking about UART-TTL here.
If you want to interface the BMS with another RS485 device you have to convert the signal first using the Dongle of the manufacturer: https://github.com/syssi/esphome-jk-bms/blob/main/images/rs485-adapter/001.jpg
Interfacing the old BMS would look like this:
[JK-BMS JK-BD/JK-B] <-- UART-TTL --> [OEM RS485 Dongle] <-- RS485-Signal --> [RS485 port of another device]

I´m just wondering why the RS232 Port on the new BMS is not possible to use for a configuration without a RS485 converter module?

Let's talk about your BMS model now. And be careful there is a important difference between RS232 & RS485.

If we disassemble your BMS model there will be a RS485 converter on the mainboard of the BMS. The microcontroller will be attached the this RS485 converter and the converter is attached to the RS485 of the BMS. The RS485 transforms the UART-TTL signal of the microcontroller to an differential signal with a new voltage level (-7V / +12V).
The ESP cannot handle RS485 signals directly. A RS485 converter is needed to transform the signal back to the 3.3V logic level (UART-TTL).
The sample applies for RS232. A RS232 (MAX3232) converter board is needed if you want to talk devices using RS232.
Did this answer your question?

Ah, the (not only) voltage Thing ;)
I´m no expert, Probably thats why i was confused. Thank you very much syssi for taking the time to explain (and thank you very much for the whole project).
I will first try the BT way now. Cabling is no fun at all in the place where my battery is stored. I hope it´s stable enough.
... a little side question where i couldn´t find any answer on the Net: In the settings of the new inverter BMS you can set different protocols for UART1 and UART2. I´m wondering for which port exactly are those for?

Another important thing is that in RS232 can be only one (slave) BMS. In a
RS485 network can be multiple (slave) BMSs connected.
RS232 has a length limit of about 12m. RS485 has a higher limit.
I tried with RS232 multiple times and I got nothing from that port.
El El dom, 7 jul 2024 a las 10:36, Sebastian Muszynski <
@.***> escribió:

If we disassemble your BMS model there will be a RS485 converter on the
mainboard of the BMS. The microcontroller will be attached the this RS485
converter and the converter is attached to the RS485 of the BMS. The RS485
transforms the UART-TTL signal of the microcontroller to an differential
signal with a new voltage level (-7V / +12V).
The ESP cannot handle RS485 signals directly. A RS485 converter is needed
to transform the signal back to the 3.3V logic level (UART-TTL).
The sample applies for RS232. A RS232 (MAX3232) converter board is needed
if you want to talk devices using RS232.
Did this answer your question?
—
Reply to this email directly, view it on GitHub
https://github.com/syssi/esphome-jk-bms/issues/517#issuecomment-2212371099,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFHIJMHIL6MNVWIAJTBW263ZLD4YXAVCNFSM6AAAAABKOM7DH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGM3TCMBZHE
.
You are receiving this because you commented.Message ID:
@.***>

... a little side question where i couldn´t find any answer on the Net: In the settings of the new inverter BMS you can set different protocols for UART1 and UART2. I´m wondering for which port exactly are those for?

Good question. I don't know it. This is how it looks like at the windows application:

May be @txubelaxu is able to answer the question. This is my guess:
UART2 is attached to the RS485 and cannot be changed because the Modbus Protocol is expected here (always!).
UART1 is attached to the RS232 and you can change the protocol here. If you choose the GPS protocol you have to use this YAML example. If you choose Modbus here too you have to use this YAML example and you have to attach a RS232 converter to your ESP.

i would be interested too in a clarification. But it seems the RS232 port won´t give any advantages in using instead of RS485.

It depends what you try to achieve and on the complexity of your setup. Where are you from?

The solar plant (Studer innotec) is in italy. Small test plant 2.4kwp|7KWh battery| 24V ... i´m planning on a bigger one and thats why i got into LiFePo and the technical challenges around. After a lot of initial hickups making the plant talk to the battery and especially working well together (switched a first tried seplos to the JK) now i´m at a point where i can start to optimize. Last little problem is Current reduction when end of charge is around the corner. When i can read the cell voltages (especially max cell voltage) i can set charge current via fhem on the solar charger.

If you have multiply battery banks they will communicate via RS485 probably. One BMS will be the Modbus master and it will collect periodically data from the slaves. @txubelaxu solution is able to sniff this communication and expose the data as sensor entities. Because the ESP isn't the Modbus Master in this setup listening only is allowed/possible here.
If you want to change the settings of your BMS remotely some day you will attach an ESP to the RS232 port probably because you are allowed to act as Modbus Master here.

Ok, RS232 became interesting again ;)

I was flashing the BT way in the meantime. Finding out the MAC address of the BMS was a bit complicated but i found information in one of the threads here how to do it.
This works pretty well. I´m amazed.
Now i have to make the ESP talk to MQTT in fhem.
There are some (minor) error messages in ESPHome:

11:21:23
[W]
[component:237]
Component esp32_ble took a long time for an operation (155 ms).

11:21:23
[W]
[component:238]
Components should block for at most 30 ms.

and some information (temperature_sensor_3, temperature_sensor_4) is missing. But hey, who´s interested in that.

The warning can be ignored.

Wow, MQTT autodetect in fhem works pretty fine. Now i have all info in fhem. This was a fast one. Let the game begin ;)

sensor_heating | ON
is reported wrongly.

How many temperature probes are attached to your BMS?

sensor_heating | ON
is reported wrongly.

Which protocol_version do you use?

... to be more precise
jk_bms_XXXXXXXX:jk-bms/binary_sensor/jk-bms_heating/state
is reported wrongly (also in ESPHome Dashboard)
there are 4 temperature probes attached to the bms and reported accurately in the APP
protocol_version: JK02_32S

Could you create an issue per finding? I would like to track each issue properly.

yes. see you there

Lets close this issue because the initial question is resolved.


Update Italian Localization for v0.961

Update Italian Localization for v0.961

Many thanks :)

you're welcome @Wyqer 👍


Support for arbitrary text in RowsIterator::iternext

When generating big XML via RowsIterator::iternext it would be nice to have a way to generate extra data to be appended right after each line. It can be useful in different cases:

add comment block associated with a row, e.x. with meta info

<row x="1" y="2" /> <!-- x: 1; y: 2 -->

In combination with indent => 0 it can help to product \n after each line to make document semi-readable. Or more important to force glibc to flush buffer when outputting XML to a socket. Thus receiver can read data in chunks without waiting when entire XML document generated.

I believe the best way to implement this is to return arbitrary text as 2nd argument in
            my $count = 0;
            *RowsIterator::iternext = sub {
                ..........
                return (\%row, "\n") unless $count % 100;
                return \%row;
            };

outdated


Compilation failed

undefined reference to `dhcps_set_dns'
sadly...

same on esp8266 nodemcu v3

I am also not going to


Unexpected keyword argument 'tone' when running custom reports

When finishing a research and trying to write custom reports, this error is being triggered:
File "/.../gpt_researcher/master/actions.py", line 431, in generate_report content = f"{generate_prompt(query, context, report_source, report_format=cfg.report_format, tone=tone, total_words=cfg.total_words)}"

TypeError: generate_custom_report_prompt() got an unexpected keyword argument 'tone'

The actions.py, indeed, is always passing tone:
if report_type == "subtopic_report":
        content = f"{generate_prompt(query, existing_headers, relevant_written_contents, main_topic, context, report_format=cfg.report_format, tone=tone, total_words=cfg.total_words)}"
else:
        content = f"{generate_prompt(query, context, report_source, report_format=cfg.report_format, tone=tone, total_words=cfg.total_words)}"

The problem is that prompts.py doesn't support that for 2 methods:
generate_custom_report_prompt() and generate_outline_report_prompt()
Is that intentional that these 2 doesn't have tone? It could make sense, being a custom and an outline.
I can make the PR, but wanna check if the check should consider these 2 types to not send the Tone, or if they should accept Tone as well.

Hey @pedrorocha-net thanks for this! Would love a PR for this, indeed custom should not receive tone since it's custom and any custom prompting should be on the developer to choose. Thanks for calling this out!

Also try pulling latest version this might have been fixed and latest versions

@assafelovic The parameter is also missing in generate_outline_report_prompt(): got an unexpected keyword argument 'tone'
Added PR for the missing parameter

Solved


When sending a large image, an exception of TypeError occurred. Can't read from request stream after response has been sent.

workers Real-time Logs:
……
  "exceptions": [
    {
      "name": "TypeError",
      "message": "Can't read from request stream after response has been sent.",
      "timestamp":<PHONE_NUMBER>685
    }
  ],
  "logs": [],
……

Small images, however, are normal.

Thanks for the report


[Feature Request/Question] Recurse into Prompt possibleValues

So just by looking at your demonstration (and a tiny bit into the code) it's unclear if your Prompt module has the ability to recurse into the possibleValues table. What I could see you doing with this is autofilling based on what exists within the prompt. Here's an example
possibleValues = {
  this = {
    is = {
      a = {
        "demo",
        "test"
      },
      "SPARTA"
    },
    "that"
  },
  hey = {
    "there",
    "dude",
    "foo"
  }
}

So when the user inputs t, pressing tab would fill in this. If they continued, and pressed i then tab, is would fill in. And so on.
An additional feature on top of this would be to provide an option to add a character in additional to pressing tab, in this case it would be nice to fill in   when the user tab-completes.

Right now possibleValues is expected to be a flat number indexed table. I’ll consider your idea but I’m not sure in which use case it would be helpful ? Additionally if you want a “ “ suffixes after a completion you can just add it to each possible values.

The use case that I was thinking of was to format things like _G/_ENV into whatever you come up with so that it could be used for autofill (possibly for croissant? 😉).
WRT suffixes: valid :P

Croissant does some completion based on the current token. More advanced completion requires to build an AST of the code in order to evaluate the correct expression before the cursor and search possible completion in it. In short, I’m on it :)


IOS notificationOpened event not trigger when user click the pushnotifications and the app is in background

when my IOS app is on the background and the user clicks the pushNotification the notificationOpened never triggers what event should I use when the app is on the background?
I know when the app needs to launch I should use NotificationsIOS.getInitialNotification() but the app now is only on the background so I can't use that one right? Thank you for your help

when my IOS app is on the background and the user clicks the pushNotification the notificationOpened never triggers what event should I use when the app is on the background?
I know when the app needs to launch I should use NotificationsIOS.getInitialNotification() but the app now is only on the background so I can't use that one right? Thank you for your help

I also faced this!!!

I also faced this!

same problem.
react-native-notifications: master
react-native: 0.61.5

confirmed working on v3 beta

@alexichristakis Sorry I try the v3 beta, however, the problem still exist on Ios

The same problem, still not working with react-native: 0.61.5

I've moved to react-native-firebase. very straightforward, works from the box, while with this library I had many issues with installation, setup and features (like the feature described in this issue, which does not work).


Not support OpenStack cloud provider on v2.3.6?

Not found OpenStack infrastructure provider when create cluster on version 2.3.6. I'm running rancher server by docker on a single node which is a OpenStack virtual machine.

You can manually open the Openstack driver.

Thansk!


Linked Developers Guide to Contributing doc

the CONTRIBUTING.md and DEVELOPERS_GUIDE.md need to cross reference.

? specifics ?

One file should acknowledge the existence of the other.
In other words, we should consider start writing proper Docs :-D

I'm not sure what is meant by "proper" docs but I do know that improvements to the documentation are a high priority and are in-flight. If you have specific suggestions please do post them.

? specifics ?

Most developers who work on GitHub projects will look to the CONTRIBUTING.md file for help on contributing (there's automatic tooling around this as well), without a link in that doc to your new DEVELOPERS_GUIDE.md file, folks are going to miss it :-).


MudPagination - option to hide page numbers

Feature request type
Enhance component
Component name
MudPagination
Is your feature request related to a problem?
MudPagination's page numbers cannot be hidden.
I previously used MudTablePager which has a property to allow hiding page numbers, and have since moved over to custom paging using MudPagination. However now I cannot hide the page numbers using MudPagination as this feature is not supported.
Describe the solution you'd like
Extend MudPagination component with a new property "HidePageNumber" and default this value to "false".
Wrap the component UI which generates the page numbers with an if argument as follows:
@if (!HidePageNumbers)
    {
        @foreach (var state in GeneratePagination())
        {
            var currentPage = state;
            if (currentPage == -1)
            {

                    <MudText<EMAIL_ADDRESS>

            }
            else if (currentPage == Selected)
            {

                    <MudButton Variant="@(Variant == Variant.Outlined ? Variant.Outlined : Variant.Filled)" Size="@Size" DisableRipple="true" Disabled="@Disabled" Color="@Color" aria-current="page" aria-label="@($"Current page {currentPage}")">@currentPage</MudButton>

            }
            else
            {

                    <MudButton OnClick="@(() => Selected = currentPage)" Variant="@Variant" Size="@Size" DisableRipple="true" Disabled="@Disabled" aria-label="@($"Page {currentPage}")">@currentPage</MudButton>

            }
        }

    }

Have you seen this feature anywhere else?
Yes, the MudTablePager already has this feature implemented.

Describe alternatives you've considered
NA
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Duplicate of #5536


Hidden directories in zip file cause failures on Windows

Apparently some unzippers don't include hidden directories by default (reported by @timsneath) and also anyone just copying-and-pasting the directory contents ends up not including hidden subdirectories.
Maybe we should just remove the hidden bit on all files?

What process generates the zip files that are leading to this issue?


Fix: missing , in telescope setup. Invalid init.lua, line #174

run into this after pulling new commits, lgtm

looks, like a duplicate PR, closing. ty


Avoid facter 4, breaks unit tests

Pull Request Checklist

Description

Seems puppetlabs pushed a facter 4.0.11 rubygem that breaks unit tests. No supported version of puppet-agent uses facter 4 and we use facterdb for unit test facts. This avoids facter 4.

Added commit to fix some strings formatting issues.  Seems newline is stripped if last item in line is backtick.


enhancement Unify sample alg

Proposed changes
To reduce error of ndv estimation of olap table's column
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Reduce Connection during Insert

Due to the limitation of jdbctemplate, currently each insertion will require a connection, and release it after insertion. It is not friendly to Metastore, and may exceed the max connection if many large batch insertions are used at the same time.

SimpleJdbcTemplate provides a function for batch inserting.

SimpleJdbcTemplate provides a function for batch insert, called batchUpdate. We can convert the objects to maps as a  parameter of this function.
This page describes the details of this function：https://docs.spring.io/spring/docs/2.5.x/javadoc-api/org/springframework/jdbc/core/simple/SimpleJdbcInsert.html#executeBatch(java.util.Map[])

Nice. Please connect your pull request with this issue.

Already done. Thanks @duzhen1996


I am getting spammed with errors

Could you post the steps to reproduce this issue?

Actually not really.. the only thing that i noticed is when i was switching back to that buffer from another

I'm going to close this since the error is thrown from Atom itself and I can't reproduce it.


110 add hideshow function to chat groupings

Add hide/show functionality to chats in sidebar
Today, Yesterday and prev 7 Days  are open by default.
A bit unsure of the use of reactive values in some functions, lmk if there is some downside with using a lot of them, will also  read up on that later.

This looks fantastic! 👏 Well done! Feel free to merge when the tests pass.

Thank you!! It was a great refactoring lesson! @eriklindgren


[Bug]: Issues with Eureka!'s S4 Astraeus Saving

I am currently getting an issue with Eureka!'s Stage 4 save files, where the save files are successfully made, but then it seems an error occurs when the automated garbage collection tries to close the files (which seem to have already been closed). I suspect this is a bug with Astraeus, but I am confused why this is only happening with Eureka!'s Stage 4. Any thought @kevin218?
Traceback:
Saving results
Finished writing to /Volumes/DataDrive/WASP-12b_WFC3/G102/visit11/Stage4/S4_2022-06-29_wfc3_run2/ap5_bg5/S4_wfc3_ap5_bg5_SpecData.h5
Finished writing to /Volumes/DataDrive/WASP-12b_WFC3/G102/visit11/Stage4/S4_2022-06-29_wfc3_run2/ap5_bg5/S4_wfc3_ap5_bg5_LCData.h5
Exception ignored in: <function CachingFileManager.__del__ at 0x180af74c0>
Traceback (most recent call last):
  File "/Users/tjbell1/miniconda3/envs/eureka/lib/python3.9/site-packages/xarray/backends/file_manager.py", line 244, in __del__
  File "/Users/tjbell1/miniconda3/envs/eureka/lib/python3.9/site-packages/xarray/backends/file_manager.py", line 222, in close
  File "/Users/tjbell1/miniconda3/envs/eureka/lib/python3.9/site-packages/h5netcdf/core.py", line 1125, in close
  File "/Users/tjbell1/miniconda3/envs/eureka/lib/python3.9/site-packages/h5py/_hl/files.py", line 525, in close
TypeError: bad operand type for unary ~: 'NoneType'
Exception ignored in: <function File.close at 0x180eceb80>
Traceback (most recent call last):
  File "/Users/tjbell1/miniconda3/envs/eureka/lib/python3.9/site-packages/h5netcdf/core.py", line 1125, in close
  File "/Users/tjbell1/miniconda3/envs/eureka/lib/python3.9/site-packages/h5py/_hl/files.py", line 525, in close
TypeError: bad operand type for unary ~: 'NoneType'`

@taylorbell57 Can you confirm that writeXR returns success = True after writing out each file?  Next, are you able to read in each file using readXR?  Finally, can you compare the Xarray Datasets from before writing and after loading to make sure they are identical?  If a parameter is missing, this might help us understand the issue.

I can confirm that it is returning success = True because it is printing the "Finished writing to "... messages which only happen if it was successful. I'll double-check reading and will try to compare the values before and after writing.

Very strange, I just realized that I don't get this issue with one conda environment (called eureka2) but I do with the other (eureka). I tried to compare the differences in the installed packages, but there were far too many for me to compare, so I tried just making a new conda environment (eureka3) and installing Eureka! from scratch using the pip install . method. In that new environment, I get a similar but different error message:
Saving results
Finished writing to /Volumes/DataDrive/WASP-12b_WFC3/G102/visit11/Stage4/S4_2022-07-01_wfc3_run7/ap5_bg5/S4_wfc3_ap5_bg5_SpecData.h5
Finished writing to /Volumes/DataDrive/WASP-12b_WFC3/G102/visit11/Stage4/S4_2022-07-01_wfc3_run7/ap5_bg5/S4_wfc3_ap5_bg5_LCData.h5
Exception ignored in: <function CachingFileManager.__del__ at 0x14a684310>
Traceback (most recent call last):
  File "/Users/tjbell1/miniconda3/envs/eureka3/lib/python3.9/site-packages/xarray/backends/file_manager.py", line 244, in __del__
  File "/Users/tjbell1/miniconda3/envs/eureka3/lib/python3.9/site-packages/xarray/backends/file_manager.py", line 222, in close
  File "/Users/tjbell1/miniconda3/envs/eureka3/lib/python3.9/site-packages/h5netcdf/core.py", line 1125, in close
  File "/Users/tjbell1/miniconda3/envs/eureka3/lib/python3.9/site-packages/h5py/_hl/files.py", line 445, in close
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5f.pyx", line 275, in h5py.h5f.get_obj_ids
  File "h5py/h5i.pyx", line 46, in h5py.h5i.wrap_identifier
ImportError: sys.meta_path is None, Python is likely shutting down
Exception ignored in: <function File.close at 0x14b1c5b80>
Traceback (most recent call last):
  File "/Users/tjbell1/miniconda3/envs/eureka3/lib/python3.9/site-packages/h5netcdf/core.py", line 1125, in close
  File "/Users/tjbell1/miniconda3/envs/eureka3/lib/python3.9/site-packages/h5py/_hl/files.py", line 445, in close
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5f.pyx", line 275, in h5py.h5f.get_obj_ids
  File "h5py/h5i.pyx", line 46, in h5py.h5i.wrap_identifier
ImportError: sys.meta_path is None, Python is likely shutting down

This new eureka3 environment differed only slightly from the eureka2 environment which worked without error, and I was able to figure out that the above error message is caused by having dask==2022.6.1 installed rather than dask==2022.6.0. I get the same behaviour if working with MIRI or WFC3 data. In the environment I was using that gave the error message from my first post here (eureka) had been setup using the environment.yml file a while ago and I had dask-core==2022.4.0 installed, but upgrading it didn't resolve that first error message. I tried doing a fresh environment.yml install (eureka4) and ended up with dask-core==2022.6.1 which gave me the same ImportError: sys.meta_path is None... error message as the eureka3 environment. Downgrading to dask-core==2022.6.0 with conda ends up giving me no error messages. Very confusingly, downgrading to dask-core==2022.4.0 ends up working fine without any error messages though. Similarly, in the eureka3 environment if I pip install dask==2022.4.0 I get no issues. To be clear, none of these upgrades/downgrades are changing the installed versions of other packages - just the dask version.
So in summary, my understanding is that at a minimum we need dask<2022.6.1 as a requirement for pip installs and dask-core<2022.6.1 for conda installs.
I'll try looking at the outputs from each of these different installs and see if they actually differ or if it's just an issue with marking the files as closed which is causing the error message.

Alright, it is confirmed that the outputs from the eureka environment which gives the TypeError: bad operand type for unary ~... message are exactly the same as those from the eureka3 environment which gives no errors. And changing eureka3 to use dask==2022.6.1 gives the ImportError: sys.meta_path is None... error message but gives the exact same outputs as the other runs with/without errors.
So in summary, there is no actual issue with saving the files, just with having them marked as closed so that the automated garbage collection doesn't try to close already closed files when the stage ends

And for some reason we only encounter this in Eureka!'s Stage 4 and none of the other stages...

Aha, the TypeError: bad operand type for unary ~... error comes up when I have pymc3 and starry related dependencies installed and I use the pymc3 branch of Eureka (but then the error message becomes the sys.meta_path error if I switch to the wfc3 branch of Eureka)... Comparing the differences, I found that pip installing dill==<IP_ADDRESS> (which changes no other packages) in my functional environment ends up reintroducing the error message, and uninstalling it in my environment with pymc3 and starry dependencies ends up removing the error message. With dill<=0.3.4 installed, the error message ends up becoming the TypeError: ... message again, and I tried every other version of dill and couldn't get it to run without that TypeError: ... message. Do you have any ideas how installing dill would cause things to break like this? Or should I just reach out to the folks in charge of xarray and/or dill?

It seems like others already know about this issue actually:
https://github.com/pydata/xarray/issues/4267
https://github.com/h5netcdf/h5netcdf/issues/50

Are we using h5netcdf version 0.12.0 or better? This seems to have fixed the issue for others.

Yeah, I have v1.0.1 of h5netcdf installed


Update URLs for Demo Generator Site

Reflect the change in branding from VSTS to Azure DevOps

@spncrgr Thank you for for fixing this. I am merging this PR and it should be live soon.


Fix story health residual statuscheck

e2e story health feature had a specific
scenario: Check cluster health

to check the cluster state and wait to execute the subsequent scenarios within the feature. This control was duplicated with the addition of a new step on a previous scenario to check if the cluster is running:
When checking that CRC is running

This PR removes the duplicated status check during the e2e.
PR passing downstream CI on macos14
PR passing downstream CI on windows10

Can one of the admins verify this patch?

/ok-to-test


Feature/now ordering page

So all the functionality is done?!?!?!?!

... I tested this morning to double check


Helm chart with test for helm 2 as well as helm 3.

Is there a way to create a  helm chart which (includes the tests) and it works in both helm v2 and helm v3.
Helm 2 officially support only helm.sh/hook: test-success or helm.sh/hook: test-failure
however
Helm 3 changed and it officially supports only hook to helm.sh/hook: test.
See doc: https://v2.helm.sh/docs/developing_charts/#chart-tests
I do not see any way how to check which version of helm renders the templates to generate the helm specific hook.

Would it be possible to officially support also the helm 2 hooks?

helm.sh/hook: test-success should continue to work for backwards compatibility reasons. Can you check and confirm?

https://github.com/helm/helm/blob/193850a9e2c509acf1a499d98e8d23c12c134f11/pkg/releaseutil/manifest_sorter.go#L65-L66

And would it be possible to officially document that it is supported e.g., in the docs, i.e., chart authors may rely on this fact?

Feel free

Ok, will try

The place to contribute is here: https://github.com/helm/helm-www

Hi, @alf009 - thanks for your documentation suggested. We have added it in https://github.com/helm/helm-www/pull/782 and I'm resolving this issue now. Please let us know if you have any more input!