Separate scripts fail when canceling one running wandb

Describe the bug

I am running a training script that has one wandb run. When running multiple slurm jobs that run the same script, when I scancel one job all other jobs using wandb fail with the error below. I noticed this only happens when the separate jobs are running on the same node. I made sure that wandb was using separate IDS and WANDB_DIR for each slurm job, but this failed. I also made sure that wandb was being closed gracefully using signal handlers, but to no avail.

...

 with wandb.init(
        project="<project-name>",
        dir=os.environ.get("WANDB_DIR"),
        name=f"{name}_tune",
        group=name,
        config=dict(config),
        tags=[
            slurm_id,
            config.dataset,
            config.model_type,
            config.layer_type,
            str(config.target_percentage),
        ],
        id=os.environ.get("WANDB_RUN_ID"),
        reinit=True,
        mode=WANDB_MODE,
    ) as wandb_run:
        # additional training code ...

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1620, in pid_exists
  File "/opt/conda/lib/python3.10/site-packages/psutil/_common.py", line 711, in open_binary
FileNotFoundError: [Errno 2] No such file or directory: '/proc/4159629/status'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
  File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
  File "/opt/conda/lib/python3.10/site-packages/wandb/__main__.py", line 3, in <module>
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1078, in main
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 783, in invoke
  File "/opt/conda/lib/python3.10/site-packages/wandb/cli/cli.py", line 108, in wrapper
  File "/opt/conda/lib/python3.10/site-packages/wandb/cli/cli.py", line 292, in service
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/server.py", line 118, in serve
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 423, in loop
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 421, in loop
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 407, in _loop
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 403, in _check_orphaned
  File "/opt/conda/lib/python3.10/site-packages/psutil/__init__.py", line 1392, in pid_exists
  File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1629, in pid_exists
  File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1597, in pids
FileNotFoundError: [Errno 2] No such file or directory: b'/proc'
Exception in thread FileStreamThread:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
  File "/opt/conda/lib/python3.10/threading.py", line 953, in run
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 502, in _thread_except_body
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 496, in _thread_except_body
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 452, in _thread_body
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 542, in _send
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 636, in request_with_retry
  File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
  File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
  File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
  File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 459, in send
  File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 262, in cert_verify
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /opt/conda/lib/python3.10/site-packages/certifi/cacert.pem
Exception in thread StreamThr:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1620, in pid_exists
  File "/opt/conda/lib/python3.10/site-packages/psutil/_common.py", line 711, in open_binary
FileNotFoundError: [Errno 2] No such file or directory: '/proc/4159629/status'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 49, in run
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/internal.py", line 150, in wandb_internal
  File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/internal.py", line 411, in is_dead
  File "/opt/conda/lib/python3.10/site-packages/psutil/__init__.py", line 1392, in pid_exists
  File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1629, in pid_exists
  File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1597, in pids
FileNotFoundError: [Errno 2] No such file or directory: b'/proc'

Additional Files
No response
Environment
WandB version: 0.17.5
OS: Linux
Python version: Python 3.10
Versions of relevant libraries:
Additional Context
No response

Hello @elilaird , thank you for writing in and happy to help. Could you also please send the debug.log and debug-internal.log. These files are under your local folder wandb/run-<date>_<time>-<run-id>/logs in the same directory where you’re running your code.

debug-internal.log
debug.log
@JoanaMarieL Here are my debug files! Thank you for the help!

Hi @elilaird , thank you for providing the logs, can you please  try again if this is still the case?

@JoanaMarieL Sorry for the late response. I can try again. Is there a particular branch/update I should pull to test again?

debug-internal.log
debug.log
I tested running my script again (two instances of the script on the same slurm node). Here are the logs ^.
I'm using the 0.17.5 version as before from: wandb-0.17.5-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Here is the error:
`Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1620, in pid_exists
File "/opt/conda/lib/python3.10/site-packages/psutil/_common.py", line 711, in open_binary
FileNotFoundError: [Errno 2] No such file or directory: '/proc/2870178/status'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
File "/opt/conda/lib/python3.10/site-packages/wandb/main.py", line 3, in
File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1157, in call
File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1078, in main
File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 783, in invoke
File "/opt/conda/lib/python3.10/site-packages/wandb/cli/cli.py", line 108, in wrapper
File "/opt/conda/lib/python3.10/site-packages/wandb/cli/cli.py", line 292, in service
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/server.py", line 118, in serve
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 423, in loop
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 421, in loop
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 407, in _loop
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 403, in _check_orphaned
File "/opt/conda/lib/python3.10/site-packages/psutil/init.py", line 1392, in pid_exists
File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1629, in pid_exists
File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1597, in pids
FileNotFoundError: [Errno 2] No such file or directory: b'/proc'
RUN: TUNE | Epoch: 274 Loss: 0.172218  lr: 0.004147 wd: 0.008259 mm: 0.999174 Avg Time: 0.386784 s:  27%|██▋       | 274/1000 [01:50<04:57,  2.44it/s]
RUN: TUNE | Epoch: 274 Loss: 0.172218  lr: 0.004147 wd: 0.008259 mm: 0.999174 Avg Time: 0.386784 s:  28%|██▊       | 275/1000 [01:50<04:51,  2.48it/s]
RUN: TUNE | Epoch: 275 Loss: 0.172240  lr: 0.004141 wd: 0.008247 mm: 0.999175 Avg Time: 0.386242 s:  28%|██▊       | 275/1000 [01:50<04:51,  2.48it/s]
RUN: TUNE | Epoch: 275 Loss: 0.172240  lr: 0.004141 wd: 0.008247 mm: 0.999175 Avg Time: 0.386242 s:  28%|██▊       | 276/1000 [01:50<04:48,  2.51it/s]Exception in thread FileStreamThread:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
File "/opt/conda/lib/python3.10/threading.py", line 953, in run
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 502, in _thread_except_body
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 496, in _thread_except_body
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 452, in _thread_body
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 542, in _send
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/file_stream.py", line 636, in request_with_retry
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 459, in send
File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 262, in cert_verify
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /opt/conda/lib/python3.10/site-packages/certifi/cacert.pem
Exception in thread StreamThr:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1620, in pid_exists
File "/opt/conda/lib/python3.10/site-packages/psutil/_common.py", line 711, in open_binary
FileNotFoundError: [Errno 2] No such file or directory: '/proc/2870178/status'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/service/streams.py", line 49, in run
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/internal.py", line 150, in wandb_internal
File "/opt/conda/lib/python3.10/site-packages/wandb/sdk/internal/internal.py", line 411, in is_dead
File "/opt/conda/lib/python3.10/site-packages/psutil/init.py", line 1392, in pid_exists
File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1629, in pid_exists
File "/opt/conda/lib/python3.10/site-packages/psutil/_pslinux.py", line 1597, in pids
FileNotFoundError: [Errno 2] No such file or directory: b'/proc'`

Hi @elilaird , thank you for providing these. We suggest to add this line wandb.require(“core”) after wandb import.. and  you can see more details about wandb core here for reference: https://github.com/wandb/wandb/tree/main/core. Let us know how it goes :)

@JoanaMarieL I tested again while using wandb-core and the same issue and errors are still happening. It seems that when one wandb job is canceled it shuts down some background process that both jobs are sharing.

Thank you for sharing @elilaird , may we request to share with us your Slurm script so that we can try to reproduce the issue on our side as well.

Hi @elilaird , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!


Error on Startup.

Trying to start a server from BisectHosting and had them install the pack for me and it refuses to start. I was told to contact the Pack author saying it's their error.
http://pastebin.com/xrSDjgZG
This is the console from me trying to start the server and it crashing.

I need a crash report please. The server log does not give me the information to figure out what they are doing wrong.
As multiple servers are running the pack without issue, including our official server. So that suggests user error.

No follow up. Closing.


⚠ Bofrost.fr has degraded performance

In 32eb537, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1643 ms

Resolved: Bofrost.fr performance has improved in cc2a8fe after 6 minutes.


In read we should changed desired_datasets to desired_groups

This was fixed with the merge of PR #39!


Train 129

High Level Description

1229 exhibitor: make sure that JNA library is included for ZK subprocesses
1231 bump marathon to v1.4.0-RC8

Related Issues
See PRs linked above.
Checklist for all PR's

[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

Ready for review.

Discussed with @lingmann: https://github.com/dcos/dcos/pull/1169 is also ready to board once he tweaks his review.


Reset peer store after stop

Clear up has/get to accept PeerInfo for parity
Clear peer store after stop, to avoid lingering peers upon reconnect
Add tests

Clear peer store after stop, to avoid lingering peers upon reconnect

What's the reasoning for clearing peers here? We are currently working on a large update to the PeerStore, https://github.com/libp2p/js-libp2p/issues/582, which is planned to land in the next few weeks in 0.28. Part of this work includes PeerStore persistence, as it can greatly reduce the time to reconnect to new peers. I'd like to understand why you don't want to keep a record of peers on restart.

Oh I see, interesting. I use TCP and mdns modules, and had issues with peers not being rediscovered properly upon reconnection. As I understand it, the libp2p peer discovery is using the existing peerStore to filter discovery events.
One particular pain point was that if peer B goes offline and online again, peer A was notified of an old address (in my case - it was the old port number, which fails to connect). When the working address arrives seconds later, it didn't emit a second discovery event necessary to establish a connection. My workaround was to manipulate the peerStore manually, by removing peers that failed connection, so that they could be rediscovered and inserted properly.
I guess that the high level goals that I'm trying to achieve in my application are:

All peers should be persistently connected to one another as soon as they are present.
...using a single connection (I have a duplex client/server RPC muxer). autoDial establishes two connections so I can't use that. There are also edge cases e.g. what constitutes a full connection – is it valid if only one connection is established?
And they should be eventually be disconnected if they disappear. I currently use a custom ping message with a timer. (Node's Socket.setKeepAlive doesn't work well at all and don't disconnect properly)

There's definitely room for a design that works for both cases -- I don't know exactly how to fit it with your ongoing plans yet. Do you think my goals are general enough to be supported either automatically or with some manual logic around?

There's definitely room for a design that works for both cases -- I don't know exactly how to fit it with your ongoing plans yet. Do you think my goals are general enough to be supported either automatically or with some manual logic around?

Yes I do. I think this aligns with the Topology registration system we are creating. It still needs better integration with the connection manager but you can see the interface and general usage at https://github.com/libp2p/js-libp2p-interfaces/tree/master/src/topology.

My workaround was to manipulate the peerStore manually, by removing peers that failed connection, so that they could be rediscovered and inserted properly.

The PeerStore emits a change:multiaddrs event whenever a peers multiaddrs change. So you could listen for this event instead of the peer discovery event. We should probably be checking for changes when we do an update to an existing peer and emit the discovery again if a change did happen. cc @vasco-santos
libp2p.peerStore.on('change:multiaddrs', ({ peerInfo, multiaddrs }) => {
  // ...
})

There are also edge cases e.g. what constitutes a full connection – is it valid if only one connection is established?

Are you hitting edge cases? A single connection should be all that's needed. We try to avoid creating multiple connections to a peer, but we currently don't have any protocol for converging on a single connection if two are simultaneously created, as often happens with mdns.

And they should be eventually be disconnected if they disappear. I currently use a custom ping message with a timer. (Node's Socket.setKeepAlive doesn't work well at all and don't disconnect properly)

I think this could be valuable to add to Connection Manager once the priority of Topology peers is being handled. We could automatically ping priority peers we have connections to in order to maintain them and track disconnects better.

We should probably be checking for changes when we do an update to an existing peer and emit the discovery again if a change did happen. cc @vasco-santos

I am not sure we should go this way. If the peer was already discovered and in the PeerStore, I would not expect to listen a new peer:discovery event. We could add a peer:changed event though, if users do not care about what changed, just that something is new.

I think this could be valuable to add to Connection Manager once the priority of Topology peers is being handled. We could automatically ping priority peers we have connections to in order to maintain them and track disconnects better.

This would be nice to add. We should create an issue tracking all the things we would like to achieve with the { ConnectionManager, Registrar, Topology }, so that someone can work on this in the future

The PeerStore emits a change:multiaddrs event whenever a peers multiaddrs change. So you could listen for this event instead of the peer discovery event.

I wasn't aware, so I should definitely try that before moving forward.
But nevertheless there's still one piece of the puzzle that isn't solved: I still need to connect to the old peers when the libp2p bundle is restarted.
Either

I manually traverse libp2p.peerStore and attempt connecting to each peer, or
I manually clear the libp2p.peerStore, or
I recreate the libp2p bundle altogether

If it helps, in my case the network interface may have changed in-between, yielding all previous peers irrelevant. So (2) or (3) is going to be more reliable.

We try to avoid creating multiple connections to a peer, but we currently don't have any protocol for converging on a single connection if two are simultaneously created, as often happens with mdns.

Ooh interesting, then you might be interested in this workaround that I've been using:
libp2p.on('peer:discovery', async (other) => {
  if (other.id.toB58String() > me.id.toB58String) {
      return // Other has right of way
  }
  ..
}

This has been very reliable for me and I've tested on all major OS:s. However, I'm using an interval so it'd need to be tested with a less chatty approach.

I think this aligns with the Topology registration system we are creating.

It looks promising, but an example would really help. I'm not completely sure I'm affected by it (which wouldn't necessarily be a bad thing).

But nevertheless there's still one piece of the puzzle that isn't solved: I still need to connect to the old peers when the libp2p bundle is restarted.

Do you mean when you do libp2p.stop() and then libp2p.start()?

Yes.

When a node is started, it will try to dial the peers from the peerstore according to the autodial configuration:
https://github.com/libp2p/js-libp2p/blob/master/src/index.js#L425-L428
The same should happen in 0.28: https://github.com/libp2p/js-libp2p/blob/0.28.x/src/index.js#L430-L433

Maybe I should reconsider autoDial then. Do you think we can solve the issue of duplicate connections, e.g. by introducing an asymmetry like in the comment above?

Maybe I should reconsider autoDial then. Do you think we can solve the issue of duplicate connections, e.g. by introducing an asymmetry like in the comment above?

@betamos sorry totally missed this!
I do not understand what you mean with the asymmetry like suggestion. Can you explain me?
Also, the new PeerStore work is available in 0.28.0-rc.0. Let me know if this is working as you were expecting

Closing this as we iterated on the Peerstore in<EMAIL_ADDRESS>@betamos if you still have a problem, please open an issue so that we discuss it there.


Difficult to grab thumb on Android device

Hi
On my Motorola E6 Plus, it's extremely diffiicult to grab the thumb in both Slider and RangeSlider.
I tried crossingAllowed={false} (thanks for that, btw!) and slideOnTap={false}, and I tried to increase the thumb size, add additional margin, etc but this doesn't yield any improvement. I think something is wrong with the touchable area of the thumbs...

Try this: <Slider style={{ margin: 15 }} />
The responder view is not the thumb or the track, but the slider itself.

If this solves your issue, I will add a default style that includes this margin

Hmm. Like I said: changing margins doesn't help, sorry. At least not on my device. But any way, maybe, if it's not a lot of work, you could add some animated response to the thumbs when selecting them (e.g. the Android native ripple and/or ios opacity change). Because I even don't know if it is caused by not being able to select the thumbs are not being able to move them. Often, I can move them once after hot reloading but then they seem to get stuck and I cannot move them at all.

Interesting... I need to check what happens to the responder view. Do you have the issue with the snack I provided? I'll try it on my phone this week-end. I'm sure i can fix this.

Ow! Of course! I know the cause: my sliders are inside a vertical scrollview. This probably is a hard one to solve :/

And yes, the snack example works

I received some messages, but you seem to have deleted them.
So, what is the current situation? Is there still an issue?

For a brief moment, I was convinced that it was caused by the ScrollView container, but clearly it isn't. The minimal example with one slider and margin works. I've been trying to figure out what's breaking my screen with multiple sliders by gradually adding props and more sliders to the screen, but I can't figure it out (yet). Since your sliders don't use a native Android/iOS implementation I started thinking that it could be a general performance issue, but the performance monitor doesn't show frame drops.

Omg. Instead of adding vertical margin, I had to add vertical padding and now it works!

If you don't mind, could you add touch feedback similar to the callstack slider? So, for example, if you tap the thumb, the thumb's size increases. That would be great

This could be achieved by making the thumbSize responding to the onSlidingStart and onSlidingComplete props.
So, <Slider style={{ paddingTop: 10, paddingBottom: 10 }} /> solved the issue? Can you show the code that exactly solved the issue?

Oh yes, great.
Yeah, simply add style={{ paddingVertical: 10 }} to the slider

For the range slider, I cannot change the size of a single thumb. So maybe, the Android-like UX could be something you could still add.


Add glitch API to Front-End weather project.

Pre-Submission Checklist

[ ] Your pull request targets the staging branch of freeCodeCamp.
This fix is not for the staging branch. This fix is for backup/master.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open (closed for beta site, but this is needed for current website) issue: Closes #15598 for current site (master)

Description

This will add the glitch weather API to the weather project challenge in the Front-End API projects section. This means that users can get the weather without using an API key and using a HTTP Secure connection.

@MiloATH thanks once again! :clap:


Fix compatibility with click >= 8.1.0

Import get_terminal_size from shutil instead of click

@KAction, thanks!


Add a port number guard and use that in the checks instead of range

I talked about it at the end of #145 although it's a micro-optimization.
I didn't know where to put it, I could put it as a private guard in the headers module? Or somewhere else?

This is an extremely hot path (one of the hottest), so though it's a micro optimization it's an important one!

I've been playing around with another micro-optimization for this module. Another PR and benchmarks incoming when this is merged.


[BUG] Unable to use a variable multiple times times in a message.yml line

What is the bug?
Title, what happens when I try to do it is it completely fails to rendedr the value and instead just puts %s.
Expected Behaviour
I expect to be able to put %s twice in a message,  without it malfunctioning.
How to Reproduce
Set invite.invite in message.yml to || You have been invited to join %s, use [/team join %s]. to join!
Fails to work
Error message
No response
Output of /teama version
Command doesnt work for some reason
Additional Information
No response

This feature has been implemented and will be included in the next update. Thank you for the suggestion.


Drive Selection

Got it to work on my laptop, however I need to move it from C drive to D Drive. Is the an option to select drives?
Would be  #handy./
Cheers

Currently, no option exists, but you should be able to just move the directory around and then update the taskbar links, but I can add an option for it in next release

Closed it with the new release: https://github.com/BenHerbst/Dalaix/releases/tag/v1.1.0
Have fun with it!

Thanks mate. I will give it a try and let you know how it goes
On Mon, 3 Apr 2023, 12:23 am Ben Herbst, @.***> wrote:

I think about an option like: Install directory. You can then install it
anywhere, even in sub directories etc.
—
Reply to this email directly, view it on GitHub
https://github.com/BenHerbst/Dalaix/issues/5#issuecomment-1493317989,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A63DQ7PE4FKTZAKTJECBS63W7FVUFANCNFSM6AAAAAAWPUYEUI
.
You are receiving this because you authored the thread.Message ID:
@.***>

It clogged my C drive, even though I chose a different drive. Is there any way to stay within the drive I specified?
Btw, Why install Visual studio, even outdated? Even though I already have all the dependencies. Or at least install only the build sdk? Why do not use prebuild binary for llama?

0 bytes free, I think it's a success.

It clogged my C drive, even though I chose a different drive. Is there any way to stay within the drive I specified? Btw, Why install Visual studio, even outdated? Even though I already have all the dependencies. Or at least install only the build sdk? Why do not use prebuild binary for llama?

This uses Dalai. Dalai uses Visual Studio and no binary, this app here is just kinda an installer for Dalai


net/http: can't read 301 response without a Location header

What version of Go are you using (go version)?

$ go version
go version go1.17.2 darwin/arm64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="arm64"
GOOS="darwin"

What did you do?

I am trying to use net/http to send a request to https://example.s3.us-west-1.amazonaws.com/ and read the response in order to get the actual bucket location (the correct AWS region). This response is missing a Location header, so net/http just returns an error.
package main

import (
	"errors"
	"fmt"
	"net/http"
)

func getBucketRegion(bucket string) (string, error) {
	// Construct client that makes one request and does not follow redirects
	client := &http.Client{
		CheckRedirect: func(req *http.Request, via []*http.Request) error {
			return http.ErrUseLastResponse
		},
	}
	resp, err := client.Get("https://" + bucket + ".s3.us-west-1.amazonaws.com/")
	if err != nil {
		return "", err // <-- function will return here
	}

	if resp.StatusCode == 200 {
		return "us-west-1", nil
	} else if resp.StatusCode == 404 {
		return "", errors.New("Bucket does not exist.")
	}

	return resp.Header.Get("x-amz-bucket-region"), nil
}

func main() {
	region, err := getBucketRegion("test")
	fmt.Printf("region: %s\n", region)
	fmt.Printf("err: %v\n", err)
}

This does not run on play.golang.org because there is no network access. https://play.golang.org/p/BiEmt_5iEvJ
Output will be:
region:
err: Get "https://example.s3.us-west-1.amazonaws.com/": 301 response missing Location header

It is impossible to get the response to read the x-amz-bucket-region header and get the actual region. One could argue that S3 does not conform to HTTP specs by returning a 301 response code without a Location header. But Go's refusal to give me back the response means that I'm not able to request and handle this particular case.
It would be nice to just return the request in this case, since there is no redirect to follow.
https://cs.opensource.google/go/go/+/master:src/net/http/client.go;l=643-646;drc=aa4e0f528e1e018e2847decb549cfc5ac07ecf20
			if loc == "" {
				resp.closeBody()
				return nil, uerr(fmt.Errorf("%d response missing Location header", resp.StatusCode))
			}

A little bit below that, there's a place where both a response and an error is returned (the comment says that it is to maintain Go 1 compatibility). Perhaps a similar handling could be added here?
Something like:
			if loc == "" {
				return resp, uerr(fmt.Errorf("%d response missing Location header", resp.StatusCode))
			}

This is just an idea, I'm sure there may be a better way!
What did you expect to see?
$ curl -v https://example.s3.us-west-1.amazonaws.com/
[...]

< HTTP/1.1 301 Moved Permanently
< x-amz-bucket-region: us-east-1
[...]

I want the ability to get x-amz-bucket-region: us-east-1 header from the response. But since the Location header is missing it is not possible to use net/http to get it.
What did you see instead?
Get "https://example.s3.us-west-1.amazonaws.com/": 301 response missing Location header

You could use http.Transport.Roundtrip directly or add one that modifies the response to suit your needs

cc @neild

RFC 7231 says that "the server SHOULD generate a Location header field in the response" for a 301 or 302. I'm not sure why we're treating it as an error for the Location header to be missing, since it is not required.
My first thought is that we should just return the response with no error for any 3xx status with no Location header.

@neild It seems like this exact issue has occurred in the past with status codes 307 and 308 as referenced in issue #17773.
https://cs.opensource.google/go/go/+/master:src/net/http/client.go;l=524-532;drc=76fbd6167364fb98e3ebe946cfc16b5b84d4240e
		if resp.Header.Get("Location") == "" {
			// 308s have been observed in the wild being served
			// without Location headers. Since Go 1.7 and earlier
			// didn't follow these codes, just stop here instead
			// of returning an error.
			// See Issue 17773.
			shouldRedirect = false
			break
		}

Couldn't this be applied to the 301, 302, and 303 status codes as well?

I just tested the fix using gotip and it works great. Thanks!


Recurring Error

After following the steps above. I keep on getting the following error:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope>

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

ID: 736b2dd2-dd03-fe6a-9227-be6969434e0d
Version Independent ID: ac863201-9d5f-95f4-1b62-e6cbe6678e4b
Content: SubmitGenerateReport Service Operation - Reporting - Microsoft Advertising
Content Source: Advertising/bingads-13/reporting-service/submitgeneratereport.md
Service: bing-ads-reporting-service
GitHub Login: @eric-urban
Microsoft Alias: eur

@jamie556apps please consider posting the repro steps, including SOAP request and response (without credentials) via the developer forum or contact support for additional assistance.


net/http: guarantee that the Transport dial functions are respected in js/wasm

The net/http package has a documented contract that if DialContext, DialDLSContext, Dial or DialTLS are specified in an instance of Transport, that they will be used to set up the connection. If they are not specified, then a reasonable fallback is made (e.g. using the net package).
This is ordinarily true, except for when compiling for the js/wasm target, where the browser's Fetch API is preferred in all cases (except for when it is undefined/unavailable) and therefore the dial functions are all ignored. As a result, the http.Transport implementation under js/wasm doesn't meet that contract.
This PR updates the RoundTrip behaviour of http.Transport so that if DialContext, DialTLSContext, Dial or DialTLS are specified, they are used as expected. The Fetch API will be used as a fallback if they are not specified.
Fixes #27495

@googlebot I signed it!


Support grouping by select alias

Just scribbling down a couple of notes that were still lying around my desk

Description
Since Hibernate 5.4.10 (HHH-9301) Hibernate supports grouping by select aliases - similar to ordering by select aliases - for dialects that support it (AFAIK H2, MySQL and PostgreSQL).
It would be nice if we could pass these aliases through for combinations of dialects and ORMs that do support it. Do we already allow aliases from the select clause in the order by clause?
A complicating factor here might be the nullability and uniqueness checks derived from the group by expressions. This case should probably be treated specially.

Expected behavior

Actual behavior

Steps to reproduce

Environment

Version:
JPA-Provider:       Hibernate 5.4.10
DBMS:               PostgreSQL, H2, MySQL
Application Server:

We already support select aliases for order by, yes. There are a few things for this we have to take care of though. The implicit group by generation should obviously also make use of aliases if possible. We have a de-duplication in place for group bys which should probably also work on expression level rather than alias level.

I am getting back into TimescaleDB again, so I am considering to pick this issue up.
Any pointers for classes I should have a look at? (i.e. where the same behaviour for order by is currently implemented?)

com.blazebit.persistence.impl.OrderByManager#buildOrderBy is handling the rendering to aliases, but it's a bit involved 😅
You'd have to implement something similar for com.blazebit.persistence.impl.GroupByManager#buildGroupBy)


Update action to work with user/organization sites

@rossjrw This action currently does not work with organization or user sites. Since the format for user/org sites is different from project sites, it will attempt to deploy to ORG_NAME.github.io/ORG_NAME.github.io/UMBRELLA_FOLDER which just redirects to ORG_NAME.github.io. I added some logic to check whether the repo belongs to an org/user site & create the pagesurl var accordingly. Otherwise it will use the current sed command to create the pagesurl var.

@rossjrw do you need me to make this change from not-a-fork and resubmit? Saw the CI failed.

@rossjrw no worries! Thanks for you hard work making this, absolute lifesaver 😊

Hope this merge soon


Add lint for checking that server certificates do not contain any OUs in the Subject

Add lint for checking that server certificates do not contain any OUs in the Subject

I am correcting test data and will open a new pull request.


Deprecating libxsmm_prefetch_type

libxsmm_prefetch_type should be renamed to libxsmm_gemm_prefetch_type with a typedef to libxsmm_prefetch_type, however we should drop libxsmm_prefetch_type in 2.0.

Quick note: the rename op. has already happened a few days ago, and it will be merged asap.
---- Alexander Heinecke schrieb ----
libxsmm_prefetch_type should be renamed to libxsmm_gemm_prefetch_type with a typedef to libxsmm_prefetch_type, however we should drop libxsmm_prefetch_type in 2.0.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/hfp/libxsmm/issues/92, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGb3tUVEtINSwMZx9uZIr0FFezltTmg9ks5qc4txgaJpZM4Jd-oq.
Intel Semiconductor AG
Registered No. 020.30.913.786-7
Registered Office: Badenerstrasse 549, 8048 Zurich, Switzerland

yes, I know as several codes break:-( there is now a typedef with the old name to make these codes work again.

Moved this issue to https://github.com/hfp/libxsmm/wiki/Development#longer-term-issues.


Bug: QA Module - Test Types

Location: QA Module - All Test Types
For both Test Data and QA Cert and TEE
Issue:

Aria Label for first level tables is "Datatable Aria label missing" instead of a unique label (observed on all test types)

Label: Test Summary Data for the selected Test Type Group

Testing complete, all tables now have the correct aria label


Android arm64 target

Or armeabi-v7a is enough?

What's the actual question? Can you add some details?

It is worth compiling also for arm-x64 target architecture in android examples?

Not sure. Is that Windows on ARM? If so, I'm not sure if that supports Vulkan at all.

Not sure. Is that Windows on ARM? If so, I'm not sure if that supports Vulkan at all.

Android


Create a docset for Dash or similiar tools

I use Dash a lot to browse documentation locally and even offline. It makes sense to provide these for people using documentation browsing tools.
Reference: Docset Generation Guide

This might better be a seperate repository.
https://kapeli.com/docsets#setUpFolderStructure


Bluetooth OBD2 Connectivity issue

I'm also trying with Kiwi 3, and no luck so far. It'd be great to have a screen in the app to connect/check status of Bluetooth OBD2 adapter connectivity. Checked the code, it looks for device name contains "obd", tried to rename the device, still nothing. Maybe a video on troubleshooting OBD2 device connection? If users cannot pass this mandatory first phase, it will quickly undershadow the value and sophistication of the entire solution and they will easily give up.

Agreed!! The app needs a 'select obd device screen'. Currently the app tells me. It can't find mine, but another app finds it straight away.
Just needs a little polish

Hi, thank you for your suggestion,
you can use OBD simulator or try to develop this and make Pull Request
it's out of scope of this proof of concept project
I personally use cheep OBD devices from AliExpress and it works


[BUG] proxy 类生成错误

Execute the command and paste the result below.
Command: uname -a && php -v && composer info | grep hyperf && php --ri swoole
Linux 517c963ed36c 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 Linux
PHP 8.2.13 (cli) (built: Nov 27 2023 22:54:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies
    with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans
96qbhy/hyperf-auth                 v3.1.2    hyperf 的 auth 组件
hyperf/amqp                        v3.1.9    A amqplib for hyperf.
hyperf/cache                       v3.1.0    A cache component for hyperf.
hyperf/code-parser                 v3.1.4    A code parser component for Hyperf.
hyperf/codec                       v3.1.4    A codec component for Hyperf.
hyperf/collection                  v3.1.6    Hyperf Collection package which come from illuminate/collections
hyperf/command                     v3.1.2    Command for hyperf
hyperf/conditionable               v3.1.0    Hyperf Macroable package which come from illuminate/conditionable
hyperf/config                      v3.1.2    An independent component that provides configuration container.
hyperf/context                     v3.1.0    A coroutine/application context library.
hyperf/contract                    v3.1.2    The contracts of Hyperf.
hyperf/coordinator                 v3.1.0    Hyperf Coordinator
hyperf/coroutine                   v3.1.1    Hyperf Coroutine
hyperf/database                    v3.1.5    A flexible database library.
hyperf/db-connection               v3.1.5    A hyperf db connection handler for hyperf/database.
hyperf/devtool                     v3.1.5    A Devtool for Hyperf.
hyperf/di                          v3.1.6    A DI for Hyperf.
hyperf/dispatcher                  v3.1.0    A HTTP Server for Hyperf.
hyperf/engine                      v2.10.4   Coroutine engine provided by swoole.
hyperf/engine-contract             v1.9.1    Contract for Coroutine Engine
hyperf/event                       v3.1.0    an event manager that implements PSR-14.
hyperf/exception-handler           v3.1.5    Exception handler for hyperf
hyperf/framework                   v3.1.0    A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
hyperf/guzzle                      v3.1.0    Swoole coroutine handler for guzzle
hyperf/http-message                v3.1.0    microservice framework base on swoole
hyperf/http-server                 v3.1.6    A HTTP Server for Hyperf.
hyperf/logger                      v3.1.0    A logger component for hyperf.
hyperf/macroable                   v3.1.0    Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                      v3.1.0    An independent component that use to operate and manage memory.
hyperf/model-listener              v3.1.0    A model listener for Hyperf.
hyperf/paginator                   v3.1.2    A paginator component for hyperf.
hyperf/pipeline                    v3.1.0    Hyperf Macroable package which come from illuminate/pipeline
hyperf/pool                        v3.1.0    An independent universal connection pool component.
hyperf/process                     v3.1.0    A process component for hyperf.
hyperf/redis                       v3.1.0    A redis component for hyperf.
hyperf/resource                    v3.1.0    A api resource component for hyperf.
hyperf/serializer                  v3.1.0    A serializer component for Hyperf.
hyperf/server                      v3.1.2    A base server library for Hyperf.
hyperf/stdlib                      v3.1.0    A stdlib component for Hyperf.
hyperf/stringable                  v3.1.0    Hyperf Stringable package which come from illuminate/support
hyperf/support                     v3.1.0    A support component for Hyperf.
hyperf/tappable                    v3.1.0    Hyperf Macroable package which come from illuminate/tappable
hyperf/testing                     v3.1.3    Testing for hyperf
hyperf/translation                 v3.1.0    An independent translation component, forked by illuminate/translation.
hyperf/utils                       v3.1.0    A tools package that could help developer solved the problem quickly.
hyperf/validation                  v3.1.0    hyperf validation
hyperf/view                        v3.1.10   A view library for Hyperf.
hyperf/view-engine                 v3.1.10

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 5.0.3
Built => Nov 29 2023 08:37:53
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 3.0.12 24 Oct 2023
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
c-ares => 1.19.1
zlib => 1.2.13
brotli => E16777225/D16777225
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

Description:
Controller方法里面包含一个匿名类的定义时，生成的proxy类有问题。

Steps To Reproduce:

只是 IDE 报错还是运行也报错？

运行时会报错

只是 IDE 报错还是运行也报错？

无解，和之前的需求冲突了https://github.com/hyperf/hyperf/issues/2560

你在Component 父类里随便Inject 注入个东西，就行了


pipenv lock --keep-outdated Exited with code 2

Are you certain it's a bug?

[X] Yes, I'm using the latest plugin release

Is there an existing issue for this?

[X] I have searched existing issues, it hasn't been reported yet

Issue description
After upgrading serverless-python-requirements from version 5.4.0 to 6.0.0 serverless fails during deploy.
I can't seem to reproduce the issue locally, this error happens in a build agent.
 × Stack XXXXXX failed to deploy (1s)
 25hEnvironment: linux, node 14.20.1, framework 3.22.0 (local), plugin 6.2.2, SDK 4.3.2
Credentials: Local, environment variables
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: `pipenv lock --keep-outdated` Exited with code 2
    at ChildProcess.<anonymous> (/tmp/build/31b3a43a/serverless-project/node_modules/child-process-ext/spawn.js:38:8)
    at ChildProcess.emit (events.js:400:28)
    at ChildProcess.emit (domain.js:475:12)
    at maybeClose (internal/child_process.js:1088:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)

1 deprecation found: run 'serverless doctor' for more details

Relevant versions:

serverless-python-requirements: 6.0.0
pipenv (tried multiple versions all have the same issue: 2022.12.19, 2022.11.5, 2021.11.23)
-serverless 3.22.0
-pip 22.3.1
node: v14.20.1
npm: 6.14.17

In my Pipfile, I have the primary source pointed to a private nexus url.
[[source]]
url = "https://{private_nexus_url}/repository/pypi-all/simple"
verify_ssl = true
name = "nexus"

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

Do you have any suggestions on what may be happening or extra debug steps I can perform/enable?
Service configuration (serverless.yml) content
plugins:
  - serverless-python-requirements
  - serverless-plugin-stage-variables
  - serverless-binary-cors

custom:
    pythonRequirements:

      dockerizePip: true

      slim: true
      slimPatterns:
         # remove the "**/*.egg-info/*" and "**/tests/*" in dependency packages
         - '**/*.egg-info/*'
         - '**/tests/*'
      usePipenv: true
      pipCmdExtraArgs:
         - --extra-index-url
         - https://{private_nexus_url}/repository/pypi-all/simple
      noDeploy: []

Command name and used flags
serverless deploy
Command output
Packaging
2Generating requirements.txt from Pipfile

 × Stack XXXXXXX failed to deploy (1s)
 25hEnvironment: linux, node 14.20.1, framework 3.22.0 (local), plugin 6.2.2, SDK 4.3.2
Credentials: Local, environment variables
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: `pipenv lock --keep-outdated` Exited with code 2
    at ChildProcess.<anonymous> (/tmp/build/31b3a43a/serverless-project/node_modules/child-process-ext/spawn.js:38:8)
    at ChildProcess.emit (events.js:400:28)
    at ChildProcess.emit (domain.js:475:12)
    at maybeClose (internal/child_process.js:1088:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)

1 deprecation found: run 'serverless doctor' for more details
Terminating Docker daemon.
Waiting for Docker daemon to exit...
Docker exited after 1 seconds.

Environment information
Framework Core: 3.22.0 (local)
Plugin: 6.2.2
SDK: 4.3.2

Other plugins:
{
  "dependencies": {
    "serverless": "^3.22.0",
    "serverless-binary-cors": "0.0.1",
    "serverless-plugin-stage-variables": "^1.10.1",
    "serverless-python-requirements": "^6.0.0"
  }
}

Is there any update on this? I am seeing the same error.

Hello @gmetzker, thanks a lot for reporting and sorry you've run into trouble. I will try to reproduce the issue you're running into.
@riyadparvez - Could you share more details about your setup?

I am on Apple M1 Mac Pro.
serverless framework
Framework Core: 3.10.0 (local) 3.1.1 (global)
Plugin: 6.2.0
SDK: 4.3.2

pipenv version
pipenv, version 2022.12.19

Uninstalling and installing seemed to resolve the issue for me.
serverless plugin uninstall -n serverless-python-requirements
serverless plugin install -n serverless-python-requirements

So I discovered what was causing this issue on CI system.  It was caused by the presents of a PIPENV_VERSION environment variable.
I started up the build container and tried to run the serverless deploy manually.  I kept getting ``pipenv lock --keep-outdated Exited with code 2.
At some point I happened to type pipenv -h and got this error:
Error: Invalid value for '--version': '2022.12.19' is not a valid boolean.
After a little searching I found others having issues when a PIPENV_VERSION environment variable is set.  Sure enough our docker build had this set.
Here is the git hub issue over in the pipenv repo.
All we had to do is rename the envar and all of a sudden pipenv started working.  Sorry for the confusion I thought this was related to the version of pipenv vs serverless-python-requirements, and it is for certain cases.  But you can get the same Exited with code 2 error by simply having a PIPENV_VERSION envar.


Add support for has_one :x, polymorphic: true

Although this PR is covered in #274, I'm resubmitting because the last few merges caused lots of conflicts.

Sorry for jumping the line with the last PRs, and thanks for resubmitting.

@lgebhardt Thanks for merging!


Need a new function named getTestCaseBugs

I need a function get bugID for a testcase, I found testlink already have function named getTestCaseBugs in version 1.9.14, you can see https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/1.9.14/lib/api/xmlrpc/v1/xmlrpc.class.php

Excellent @lijie-advantech ! Will try to include it in the next release. Patches/pull requests welcome as well, should you have time :-)
Last development cycle I had, I had to postpone changes since there was a bug preventing TL 1.9.15 (IIRC) from working correctly. Might try a release around new year's eve, or somewhere in January.

@kinow  Thank you for your reply. I'm not good at this, sorry for that.
#81 also need several new parameters, I'd be glad if you would try a release with this function as well, Thank you very much

Not a problem @lijie-advantech having someone to test the release is already a great help :-) thanks


Fix optimization build settings

Default build settings were inadvertantly changed so that optimization was always disabled. This PR fixes that mistake and updates debug build configuration to guarantee that optimization is disabled.

coverage: 81.346%. remained the same
when pulling d05cae850e202d629913990d2367ca98a5411a18 on hawkinsw:fix_optimization_build_settings
into 5aabbcaefbb9741040cf210d094d80d05a83cb57 on iovisor:main.

coverage: 81.346%. remained the same
when pulling cf4227d54385929ada8a1a50f96934dc945e95b0 on hawkinsw:fix_optimization_build_settings
into 7e1d3cb1f637ffcddf356e47d664baf1cd846176 on iovisor:main.


'required' validation not working

https://github.com/NewOldMax/react-form-validator-core/blob/10347666389d78ad4c6660ee86903a29e80e0d50/src/ValidatorComponent.jsx#L35
validate() is never called with includeRequired , and
https://github.com/NewOldMax/react-form-validator-core/blob/10347666389d78ad4c6660ee86903a29e80e0d50/src/ValidatorForm.jsx#L38
never validates required

You can call it manually for now
<TextValidator
   ref={(r) => { this.input = r; }}
   ...
/>

onHandleSomeValue(value) {
    this.input.validate(value, true);
}

But if you specify in the validators e.g. validators={['required']}, it won't work.

Yes, it's 'by design', because people don't expect that they will see required error always

Sorry, I'm not quite following.
According to the documentation, I can set a field to be required by setting the validators to include 'required'. If a field is not mandatory, then I don't set required in the validators. What is the use case that a field is mandatory but we don't show required error?
If we do
onHandleSomeValue(value) {
    this.input.validate(value, true);
}

is it validating outside the default behavior? Even though, I think we should still allow to set 'required' in the validator if we want to always validate a required field.
What we have now is always ignoring 'required' in the validators, which doesn't seem right.

@ariesxje required validation isn't ignored, it's called in submit case
It's more logical for common users to see required validation message only on input, not on every time edit

@NewOldMax Do you mean you want to isolate the required validation to only happen on submit even the instanceValidation is set to true?

You can create a PR for it if you have time

Cool. Will do it soon. Nice work by the way.

implemented in 0.2.0


Ending Timer to ADD_Sleep - Lovelace Buttons

I'm able to start a timer using the "switch.NAME_last_time" entity but am having issues ending and logging the activity. My test trying to log sleep with the ADD_Sleep service, see below. Since i'm using the "switch.NAME_last_timer" button, it just deletes the previous timer.
          - type: button # to start the timer, this works correctly.
            tap_action:
              action: toggle
            entity: switch.NAME_last_timer

          - type: button # Looking to stop the previous timer and log sleep.
            type_action:
              action: call-service
            service: add_sleep
            entity: switch.NAME_last_timer
            timer: true

You shouldn't be toggling the switch. You just call the service with the active switch entity.

That works!
Thanks for the help.
        - type: button
            tap_action:
              action: call-service
              service: babybuddy.add_sleep
              service_data:
                timer: true
              target:
                entity_id: switch.NAME_last_timer
            icon: mdi:sleep
            name: Add Sleep
            show_state: false

Any chance we can reopen this?
Tried dozens of variations of this:
type: button tap_action:   action: call-service   service: babybuddy.add_sleep   service_data:     timer: true   target:     entity_id: switch.finley_ondejko_timer #this is the only switch I have entity: sensor.finley_ondejko_last_timer #the "last timer" is a sensor, not a switch icon: mdi:power-sleep name: Start/Stop Sleep Timer

I think you have the nesting incorrect. Should be more like this:
tap_action:
  action: call-service
  service: babybuddy.add_sleep
  service_data:
    target:
      entity_id: switch.name_last_timer
    data:
      timer: true

Now I get an error about extra keys:

My first answer is probably incorrect. I am in front of my PC now and able to play with HA.
Are you trying to create a button on Lovelace dashboard? If so, it uses a GUI editor, which is nice and simple. Outputs this YAML:
type: button
tap_action:
  action: call-service
  service: babybuddy.add_sleep
  service_data:
    timer: true
  target:
    entity_id: switch.finley_ondejko_timer

Im having a bit of a hard time wrapping my head around this process of this. When I want to start logging, do I set the timer and then when I want to end logging - I call the add sleep service?

Yes.

Yes.

Awesome, thanks for the quick response


An exception occurred while executing event SessionInitializeEvent for subscriber org.geysermc.geyser.event.GeyserEventSubscriber

Using Geyser version 2.4.1-b632 (git-master-95c6f7c), GeyserConnect appears to no longer be functional, as instead of loading into the GeyserConnect menu, Geyser attempts to connect to a (non-existent) Java server.
Looking at the Geyser log, I see two errors related to org.geysermc.geyser.event.GeyserEventSubscriber, one occuring when starting Geyser and one occuring whenever I attempt to connect to GeyserConnect. I copied the latest.log file immediately after I attempted to connect to Geyser, and I uploaded its contents here: https://mclo.gs/WPyjSZ2

Fixed in https://github.com/GeyserMC/GeyserConnect/commit/9374f914653f5dea4c042fe4a89d3a722eef2183


GRPC Descriptor Key Error

Version Information
userwatch-python 0.0.4
Python 3.9.6
Steps to reproduce
Install package: pip install userwatch-python
Import userwatch: from userwatch import userwatch
Error
https://github.com/upollo/userwatch-python/blob/main/src/google/type/postal_address_pb2.py#L21
  File "/app/*****/views/login.py", line 29, in <module>
    from userwatch import userwatch
  File "/app/venv/lib/python3.9/site-packages/userwatch/userwatch.py", line 3, in <module>
    from userwatch import userwatch_shepherd_pb2
  File "/app/venv/lib/python3.9/site-packages/userwatch/userwatch_shepherd_pb2.py", line 17, in <module>
    from userwatch import userwatch_public_pb2 as userwatch_dot_userwatch__public__pb2
  File "/app/venv/lib/python3.9/site-packages/userwatch/userwatch_public_pb2.py", line 17, in <module>
    from google.type import postal_address_pb2 as google_dot_type_dot_postal__address__pb2
  File "/app/venv/lib/python3.9/site-packages/google/type/postal_address_pb2.py", line 21, in <module>
    _POSTALADDRESS = DESCRIPTOR.message_types_by_name['PostalAddress']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

Hi @itzedu, thanks for raising the issue.
This looks like an internal protobuf error when importing the proto via our library. Im sorry your getting that.
It seems like it might be related to these two issues proto-10075 & proto-10151. There people are saying they get it if they import the library twice and can fix it by removing one of the imports. Does that work for you?
Also which version of protobuf do you have installed, it might be used by something else in your project.
You can check what version you have like ..
python3
>>> print(google.protobuf.__version__)
4.21.5

Also, there was a recent issue fixed in the last version of protobuf that sounds like it might be related. Could you please try updating.
https://github.com/protocolbuffers/protobuf/releases/tag/v21.5
Thanks
Stephen

Upgrading to protobuf==3.20.1 allowed me to import the package!
I got this specific version from the example link found here: https://github.com/upollo/examples/blob/main/end_to_end_demo/server_python/requirements.txt

Thats great, thanks @itzedu.
I'll remove that from the requirements.txt, Its not needed there because its a transitive dependency.


Fix OS X 10.10 compatibility issue

In current version of OS X 10.10 Yosemite beta, Apple took the name htonll for their new macro, zookeeper ruby client fails to build.
To fix this issue, I replaced every occurence of htonll by zk_htonll from the sources and header files in zkc-3.4.5.tar.gz. More specifically, these files were changed to fix this issue:

c/include/recordio.h
c/src/recordio.c
c/src/zookeeper.c
c/tests/ZKMocks.cc

Hope this little modification helps others who are using OS X 10.10 beta.

merged in 07ca3a7


tests_require syntax error

Guys, in the last days in the docker images (python:2.7) that we use for CD, I started to get the following error when running a pip install .:
Complete output from command python setup.py egg_info:
    error in <package> setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers; Unordered types are not allowed

Is this a bug or there were non-backwards compatible changes in the last versions of Python?
This is my tests_require section in setup.py:
tests_require={
        'pytest',
        'doctest',
        'pytest-cov',
        'pytest-pylint',
        'pytest-xdist'
    },

The setup.py works correctly locally on my Mac Book Pro with last Macports python2.7 installed.
  python27 @2.7.14_0 (active)

python -V
Python 2.7.14 (default, Sep 22 2017, 00:06:07)

I think you need to replace your { with [ -- we just had a Debian update, which would have trickled down to a rebuild here, which probably pulled in a newer version of setuptools.  Googling the error message, I found several similar reports from other projects related to setuptools version.

Nice catch. I'm probably overly dumb since I looked on Google a lot before coming here and asking.
Sorry about bothering you!
For reference, the change was introduced in setuptools  v38.0.0


Bot

The issue is from login. Even though you scan per 30 seconds, it will ultimately be kicked off by the system and need to re-login. If the login events are too much, the IP address will be banned forever. We just checked this morning that two servers are still being banned by the AIS system.
U resolve this ?
How fast it's scan ?

How frequently u scan ?


refuses to do more than one cell

Describe the issue in detail here. Attach any relevant screenshots or files. The section below was automatically generated. Remove any information that you do not wish to include in the report.

Debug Data

Property
Value

Name
"Wolfram/Chatbook"

Version
"1.0.0"

EvaluationEnvironment
"Session"

FrontEndVersion
"Desktop: 13.2 for Mac OS X x86 (64-bit) (January 30, 2023)"

KernelVersion
"13.2.1 for Mac OS X x86 (64-bit) (January 27, 2023)"

SystemID
"MacOSX-x86-64"

Notebooks
True

DynamicEvaluation
False

SynchronousEvaluation
False

TaskEvaluation
False

Settings

Property
Value

ChatDrivenNotebook
True

LLMEvaluator
"PlainChat"

Stack Data
EvaluateChatInput
throwFailure
trimURL

Failure Data
<|
  "Evaluation" :> Wolfram`Chatbook`FrontEnd`rootEvaluationCell[CellObject["2df6481a-4f3b-480a-b7a7-159a11c25558", "a99c73ce-3908-4c3e-920a-bf6f92c8a822"], $Failed]
  "Arguments" -> {}
|>

Failure["Chatbook::Internal", <|"MessageParameters" :> {
Hyperlink[
"Report this issue »",
"https://github.com/WolframResearch/Chatbook/issues/new?title=\
Insert+Title+Here&labels=bug&body=Describe+the+issue+in+detail+here.+
Attach+any+relevant+screenshots+or+files.+The+section+below+was+
automatically+generated.+Remove+any+information+that+you+do+not+wish+
to+include+in+the+report.%0A%0A%3Cdetails%3E%0A%3Csummary%3EDebug+
Data%3C%2Fsummary%3E%0A%0A%7C+Property+%7C+Value+%7C%0A%7C+---+%7C+---
+%7C%0A%7C+Name+%7C+%60%60%22Wolfram%2FChatbook%22%60%60+%7C%0A%7C+
Version+%7C+%60%60%221.0.0%22%60%60+%7C%0A%7C+EvaluationEnvironment+%
7C+%60%60%22Session%22%60%60+%7C%0A%7C+FrontEndVersion+%7C+%60%60%
22Desktop%3A+13.2+for+Mac+OS+X+x86+%2864-bit%29+%28January+30%2C+2023%
29%22%60%60+%7C%0A%7C+KernelVersion+%7C+%60%60%2213.2.1+for+Mac+OS+X+
x86+%2864-bit%29+%28January+27%2C+2023%29%22%60%60+%7C%0A%7C+SystemID+
%7C+%60%60%22MacOSX-x86-64%22%60%60+%7C%0A%7C+Notebooks+%7C+%60%
60True%60%60+%7C%0A%7C+DynamicEvaluation+%7C+%60%60False%60%60+%7C%0A%
7C+SynchronousEvaluation+%7C+%60%60False%60%60+%7C%0A%7C+
TaskEvaluation+%7C+%60%60False%60%60+%7C%0A%0A%23%23+Settings%0A%0A%
7C+Property+%7C+Value+%7C%0A%7C+---+%7C+---+%7C%0A%7C+
ChatDrivenNotebook+%7C+%60%60True%60%60+%7C%0A%7C+LLMEvaluator+%7C+%
60%60%22PlainChat%22%60%60+%7C%0A%0A%23%23+Stack+Data%0A%60%60%60%
0AEvaluateChatInput%0AthrowFailure%0AtrimURL%0A%60%60%60%0A%0A%23%23+
Failure+Data%0A%0A%60%60%60%0A%3C%7C%0A++%22Evaluation%22+%3A%3E+
Wolfram%60Chatbook%60FrontEnd%60rootEvaluationCell%5BCellObject%5B%
222df6481a-4f3b-480a-b7a7-159a11c25558%22%2C+%22a99c73ce-3908-4c3e-
920a-bf6f92c8a822%22%5D%2C+%24Failed%5D%0A++%22Arguments%22+-%3E+%7B%
7D%0A%7C%3E%0A%60%60%60%0A%0A%0A%3C%2Fdetails%3E"], <|
"Evaluation" :> Wolfram`Chatbook`FrontEnd`rootEvaluationCell[
CellObject[
"2df6481a-4f3b-480a-b7a7-159a11c25558",
"a99c73ce-3908-4c3e-920a-bf6f92c8a822"], $Failed],
"Arguments" -> {}|>}, "MessageTemplate" :>
MessageName[Wolfram`Chatbook`Chatbook, "Internal"]|>]

Hi, can you run PacletFind["Chatbook"] and let us know what Paclets it says are installed?

I managed to partially fix it by starting each chat cell with a ‘
I will continue my explorations and get back to you

On 19 Aug 2023, at 3:03 am, Avery Davis @.***> wrote:
Hi, can you run PacletFind["Chatbook"] and let us know what Paclets it says are installed?
—
Reply to this email directly, view it on GitHub https://github.com/WolframResearch/Chatbook/issues/325#issuecomment-1684194770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATKYXS2YMDU3KIQPC5EYNTXV6N4LANCNFSM6AAAAAA3VCPYZM.
You are receiving this because you authored the thread.

Duplicate of #187


System level intrinsics from Objective-C source file

I'm looking to port some Objective-C macOS code that uses SSE2 intrinsics (such as _mm_loadu_si128 and _mm_storeu_si128. The files are compiling just fine, but for every intrinsic call, I'm getting an LNK2019 unresolved external symbol during the linking process.
I'm wondering if system level intrinsics are supported within ObjC source files, or if I'm going to have to re-write these in C++.

@adammika apologies for the delay.  Yes, not all intrinsics would work with clang unfortunately.  You can however move these to a .cpp file and add them to the project as clcompile - in fact, we do that in the accelerate framework. You may have to manually edit the project file like this.

@rajsesh-msft Thanks for the response. Just tried out your suggestion, and it works just fine for our needs. Thank you so much!


how to visualize the system

It would be nice to visually inspect the prepared system to answer some basic questions.

Is the protein complete?
Is it centered in the box and surrounded by water molecules?
Is the box shape the one I chose?

Which software to use, which files to open?
Maybe there is a chimera one-liner, but I don't know it.
The tutorial doesn't mention anything about that.
I suspect that visualizing the network of hydrogen bonds before and after minimization
of the system might be an interesting visual check.

Tutorials exist for all major visualization software, so I do not feel it necessary or even in the scope of these GROMACS tutorials to devote space to addressing those topics. I think it would become far too overwhelming for new users to try to develop all of these skills at once.

None of the renderings I use are that simple. Visualization skills are separate from what I’m presenting here and I think it’s appropriate to keep it that way.

Hello,
I think I am on this list by mistake.
James
Sent from my iPhone
On 24 Sep 2024, at 02:21, François Bérenger @.***> wrote:

If there is a pymol or a chimera one-liner, it might be enough.
—
Reply to this email directly, view it on GitHubhttps://github.com/jalemkul/gmx_tutorials_livecoms/issues/12#issuecomment-2369914872, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2EIHSCFVEQS7ETRNI45QTLZYC5DDAVCNFSM6AAAAABOUA7ZISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRZHEYTIOBXGI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
Please be advised that the following email has been sent from a sender outside of your organisation. Exercise caution and use discretion when interacting with the content of this message if you are unfamiliar with the sender.


Load config explicit

We stick with implicit version, we want to create config in the simplest way.


Document Validation Schema

as from version 3.2 MongoDB supports natively document validation
https://docs.mongodb.com/manual/core/document-validation/
is this currently supported or is there a plan to add it?

+1

any update on this?

Also interested in knowing if this is implemented

+1

Why was this closed? I am looking for this feature as well but I can't see it in the docs.
Sorry if it is a dumb question, I am new to this package.

I think all you need is https://github.com/suren1986/laravel-mongo-model-schema read also
https://packagist.org/packages/suren/laravel-mongo-model-schema

I think all you need is https://github.com/suren1986/laravel-mongo-model-schema read also
https://packagist.org/packages/suren/laravel-mongo-model-schema

Thank you very much @Modex987

Thank you very much @Modex987


Inconsistent reporting of variable "Policy Cost|Consumption Loss"

For some mode/scenario combinations, this seems to be computed based on discounted, for other on undiscounted consumption losses relative to the given baseline scenario.

Thank you @nroming for identifying this issue.
This variable is included as reported by the modelling team, and the variable definition (see below) is actually not explicit on how to compute the value.

Policy Cost|Consumption Loss:
consumption loss in a policy scenario compared to the corresponding baseline (losses should be reported as negative numbers) (billion US$2010/yr)

I'm not sure how to fix this issue without re-collecting all variables from all modelling teams.

One could add a new variable ("Harmonized Policy Cost"?) (or even replace the existing one) applying the same methodology based on discounted consumption pathways.

Hi Daniel, Niklas,
unfortunately I find even more issues with the "policy cost|*" variables. I am currently browsing through these variables.
Regarding Niklas's proposal. It is not so many modeling teams that have submitted policy costs. It should be possible to make a request.
For the case of REMIND: we report current values (i.e. not discounted).
Best
Nico


Check Security of Source Code

Scan source code for vulnerabilities.
Source Repository:
https://github.com/securego/gosec

gosec added to linter in PR #2416


temp hp damage calculation

fixed temp hp

Fixes https://github.com/foundryvtt-starfinder/foundryvtt-starfinder/issues/848

Converted to draft as I might delete the +Max UI field and it's functionality completely from the damage calculation.

We'll need to think about removing tempmax from actors via a world migration/a script on the alien-archives


Either as a lattice, Maybe as a lattice

Add (Lattice a, Lattice b) => Lattice (Either a b) instance constructed by considering all minimal elements of b greater than all maximal elements of a
Add Lattice a => Lattice (Maybe a) instance constructed by using Nothing as 0 element

There're Levitated and Dropped, as picking one over other for Maybe is arbitrary (cf Sum and Product Monoids in base)
That instance for Either is not a coproduct in the category of partial orders, so I'd also have a different type for it (c.f. instance for (a,b) and Lexicographic).

To clarify, I'd not object having a type isomorphic to Either which is:
data SomeName a b = Upper a | Lower b

which your instance, but not for Either.

Thanks for insightful comments. I think I get the point and general spirit of the library now.
As for Either instance, in the spirit of Levitated and Dropped I would propose Stacked.
Regarding Maybe I would propose conversion functions from Maybe to Dropped and Lifted.
All these as part of the other PR #99.


running on windows8 wrapper function's second argument file's property modName is full path of the file

running on windows8 wrapper function's second argument file's property modName is full path of the file.
please help.
thank you!

I can't get your problem. Can you show me your code? And tell me what results you want.

my code as follows:
        let appReg = /^(\/)*app\/[^\/]+\//i;
        let dir = process.cwd();
        return gulp.src(globs)
            .pipe(templateFilters)
            .pipe(plugins.handlebarsCompiler())
            .pipe(plugins.wrapFile({
                wrapper: function (content, file) {
                    let moduleName = file.modName;
                    if(moduleName.indexOf(dir) > -1){
                        moduleName = moduleName.replace(dir,'');
                        moduleName = moduleName.replace(/\\/g,'/');
                    }
                    moduleName = moduleName.replace(appReg, '');
                    return '    templates["' + moduleName + '"] = template(' + content + ');';
                }
            }))
            .pipe(templateFilters.restore)
            .pipe(partialFilters)
            .pipe(plugins.handlebarsCompiler())
            .pipe(plugins.wrapFile({
                wrapper: function (content, file) {
                    let moduleName = file.modName;
                    if(moduleName.indexOf(dir) > -1){
                        moduleName = moduleName.replace(dir,'');
                        moduleName = moduleName.replace(/\\/g,'/');
                    }
                    moduleName = moduleName.replace(appReg, '');
                    return '    Handlebars.registerPartial("' + moduleName + '", Handlebars.template(' + content + '));';
                }
            }))

I do not want to add the additional code to get the file.modName
                  if(moduleName.indexOf(dir) > -1){
                        moduleName = moduleName.replace(dir,'');
                        moduleName = moduleName.replace(/\\/g,'/');
                    }

You can try add truncatePrefixLen for config. Such like the whole modName is c:/mycode/src/index. And if you set truncatePrefixLen to be 2, you will get modName like src/index.

I had the same issue. Obviously, the truncatePrefixLen function won't work well for most people since it's not dynamic. If your root directory is put into a different location, it's easily possible that you won't be getting the end of the string any more, but some other part you don't expect. So I used this and it works well on windows (though it would have to be split on / on Linux/mac.
file.modName.split('\\').slice(-1)[0]


[SPARK-49155][SQL][SS] Use more appropriate parameter type to construct GenericArrayData

What changes were proposed in this pull request?
Referring to the test results of GenericArrayDataBenchmark, using an Array of Any to construct GenericArrayData is more efficient compared to other scenarios:
https://github.com/apache/spark/blob/master/sql/catalyst/benchmarks/GenericArrayDataBenchmark-results.txt
OpenJDK 64-Bit Server VM 17.0.11+9-LTS on Linux 6.5.0-1018-azure
AMD EPYC 7763 64-Core Processor
constructor:                              Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
arrayOfAny                                            6              6           0       1620.1           0.6       1.0X
arrayOfAnyAsObject                                    6              6           0       1620.1           0.6       1.0X
arrayOfAnyAsSeq                                     155            155           1         64.7          15.5       0.0X
arrayOfInt                                          253            254           1         39.6          25.3       0.0X
arrayOfIntAsObject                                  252            253           1         39.7          25.2       0.0X

So this pr optimizes some processes of constructing GenericArrayData in Spark code:

In ArraysZip#eval and XPathList#nullSafeEval, the originally defined arrays of specific types are changed to data of type AnyRef to avoid additional collection copying when constructing GenericArrayData. This is because the Array[AnyRef] type can also match the case array: Array[Any] => array branch in the following code:

https://github.com/apache/spark/blob/af70aafd330fdbb6ce0d5b3efbcb180cda488695/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/GenericArrayData.scala#L42-L48

In HistogramNumeric#eval, an IndexedSeq[InternalRow] was originally used to construct GenericArrayData. Since the length of the collection is known, it can be refactored to use Array[AnyRef] to construct GenericArrayData.

For other cases, when constructing GenericArrayData, the current input parameter is ${input}.toArray now. It is changed to ${input}.toArray[Any] to avoid another collection copy during the construction of GenericArrayData.

Why are the changes needed?
Using an Array of Any|AnyRef to construct GenericArrayData can improve performance by reducing collection copying.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass GitHub Actions
Was this patch authored or co-authored using generative AI tooling?
No

Merged to master for Apache Spark 4.0.0-preview2.

Thanks @dongjoon-hyun


Implementation of reduction without any limit in the number of dimensions

Follows structure of the kernels to compute std & var.

nice!


[GBI-744] Penalize missbehaving LP

Hello @manfioLP looks like your changes are not passing the unit test. Please, take a look.

hey @ricardo-iov thanks for checking, I belive they're fixed now!

hey @ricardo-iov thanks for checking, I belive they're fixed now!

Test are working good now. Thanks :)


test(linter/no-unused-vars): enable now-passing tests

Un-comment tests that are now passing. This PR does not change rule behavior; these have been passing for a while now, but were not getting run.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#6558
#6557
#6556  👈
#6555
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @DonIsaac and the rest of your teammates on  Graphite

Merge activity

Oct 14, 3:19 PM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
Oct 14, 3:19 PM EDT: A user added this pull request to the Graphite merge queue.


Remove 'Welcome Back'

Change 'Welcome Back' greeting on card.component.tsx to something that will also cover first time users, per user research.

fixed


CSS Module localIdentName

Problem
Currently react uses [filename]\_[classname]\_\_[hash] for localIdentName when using CSS Modules. This causes an issue if the filename contains a period, since a period is not a valid character in css class names.
Example
Filename: product.drawer.module.css
ClassName: .SomeClass {}
Generated ClassName: product.drawer_SomeClass_[hash]
Suggestion

Remove the period from the class name (Allowing for period filenames)
Or, clarify in the docs that filenames should not contain invalid css class name characters such as periods.

in the new version, I am not able to use the CSS module
Layout.module.css
.Content {
  margin-top: 16px;
}

Layout.js
`import React from "react";
import Aux from "../../hoc/Aux";
import styles from "./Layout.module.css";
const Layout = props => {
console.log(styles.Content);
return (

Toolbar,SideDrawer,Backdrop
{props.children}

);
};
export default Layout;
`
here {styles.Content} is not working

What is the value of styles is it undefined? @para27rsh


flake: do not check packages marked as broken

We possibly plan to actually introduce a package marked broken.
So this is a precursor change.
We manually tested this by marking a single package with meta.broken = true and indeed nix flake show listed it under packages yet not under hydra jobs or checks.

Yeah, I had this in mind, too, see this commit from 2023-08-24 which I never PRed: https://github.com/ngi-nix/ngipkgs/commit/a0d4d942a95186688ec70f909c0cc31884d65ce6
Do we agree that a new issue should be created whenever a package is marked broken to discuss how to handle the breakage?

Do we agree that a new issue should be created whenever a package is marked broken to discuss how to handle the breakage?

Sounds right.


[BugFix] Fix bug of pushing down Iceberg table In-List predicate

For Iceberg tables, if there is implicit conversion in the predicate In-List, it should not be pushed down.
testing:

add end_2_end tests

Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[x] Yes, this PR will result in a change in behavior.
[ ] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

 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.LPL seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


base64 Private key conversion suibase <> chrome wallets

How do I go from my Suibase required base64 private key to
TS SDK required pvt key which is the same as the pvt key in the chrome wallets.
const keypair = Ed25519Keypair.fromSecretKey(Buffer.from(privateKey, 'base64'));

The pvt key from the chrome wallets don't work on a regen.
Thx

I did a quick test with latest and it did work for me ... so lets keep digging to find the difference/bug.
===
Please try this test key in your ~/suibase/workdirs/localnet/suibase.yaml:
add_private_keys:
  - 0x4d45fcbfb15f15ca068d87055ee32f130c9ae57cc058c5f79b4d2d2bd36fd4a5

This was taken from latest suiet 2.5.2 on Chrome.
After 'localnet regen' you should see the following public key:
0xc86169fd08606e2edd73f1914945c707763315d335bba6b44d218e607e145906
Works for me on Ubuntu.
In meantime I will be working on adding this as an automated test case and verify on MacOS later today.

It seems there is may be two question/issue in your post.
base64 in suibase.yaml (and sui.keystore) context are for keypair with an extra leading byte to store the type. These are the 33 bytes Mysten Labs specific encoding.
The TS SDK you have here expect a 32 bytes base64.
More info here: https://suibase.io/cookbook/code/keypairs.html
You can go from 33<->32 bytes encoding with the sui keytool.
===
I am thinking to write an utility that you can feed "anything in" and convert to relevant alternatives in a way easy to parse/understand (it is almost all done within Suibase code already, just have to make it a nice standalone script).
Something like:
$ keyinfo 0x4d45fcbfb15f15ca068d87055ee32f130c9ae57cc058c5f79b4d2d2bd36fd4a5
web wallet public key : 0xc86169fd08606e2edd73f1914945c707763315d335bba6b44d218e607e145906
web wallet private key: 0x4d45fcbfb15f15ca068d87055ee32f130c9ae57cc058c5f79b4d2d2bd36fd4a5
sui.keystore keypair  : "AE1F/L+xXxXKBo2HBV7jLxMMmuV8wFjF95tNLSvTb9Sl"

$ keyinfo AE1F/L+xXxXKBo2HBV7jLxMMmuV8wFjF95tNLSvTb9Sl
web wallet public key : 0xc86169fd08606e2edd73f1914945c707763315d335bba6b44d218e607e145906
web wallet private key: 0x4d45fcbfb15f15ca068d87055ee32f130c9ae57cc058c5f79b4d2d2bd36fd4a5
sui.keystore keypair  : "AE1F/L+xXxXKBo2HBV7jLxMMmuV8wFjF95tNLSvTb9Sl"

$ keyinfo run orient life curious antique major snake amused cruel labor bubble dizzy
web wallet public key : 0xc86169fd08606e2edd73f1914945c707763315d335bba6b44d218e607e145906
web wallet private key: 0x4d45fcbfb15f15ca068d87055ee32f130c9ae57cc058c5f79b4d2d2bd36fd4a5
sui.keystore keypair  : "AE1F/L+xXxXKBo2HBV7jLxMMmuV8wFjF95tNLSvTb9Sl"

Hi,
That tool could be useful. Yes, during my tests, the typescript error mentioned that the function was expecting a 32-byte base64 pvt key.
My challenge is indeed that there are 2 versions of the same base64 private key:
33 bytes used in keystore and suibase
32 bytes used in TS and Ethos
It seems that the private keys in the chrome wallets are:
Ethos: base64 32bytes, HEX missing 0x, UInt8Array
Suiet: HEX missing 0x
Sui: HEX including 0x

More info here: suibase.io/cookbook/code/keypairs.html

:+1:

Maybe useful for in the cookbook:
import { Ed25519Keypair } from<EMAIL_ADDRESS>import dotenv from 'dotenv';
dotenv.config();

// Ethos chrome wallet: PRIVATE_KEY_BASE64_32BYTES, PRIVATE_KEY_HEX_0X_REMOVED
// Suiet chrome wallet: PRIVATE_KEY_HEX_0X_REMOVED
// Sui chrome wallet: HEX including 0x --> remove the 0x manually to get PRIVATE_KEY_HEX_0X_REMOVED
// keystore file: PRIVATE_KEY_BASE64_33BYTES
// Suibase: PRIVATE_KEY_BASE64_33BYTES or HEX including 0x

const keypair = Ed25519Keypair.fromSecretKey(Buffer.from(process.env.PRIVATE_KEY_BASE64_32BYTES as string, 'base64'));
const keypair = Ed25519Keypair.fromSecretKey(Buffer.from(process.env.PRIVATE_KEY_BASE64_33BYTES as string, 'base64').slice(1,33));
const keypair = Ed25519Keypair.fromSecretKey(Buffer.from(process.env.PRIVATE_KEY_HEX_0X_REMOVED as string, 'hex'));

const publicKey= keypair.getPublicKey().toSuiAddress();

NOT REQUIRED ANYMORE:
import { fromB64 } from "@mysten/bcs";

Great. Please go ahead with this contribution to the cookbook (can conveniently be done with the "edit this page on github" link), and by the way, you are very welcome to edit a lot more if you want to :smile:
I assume at this point you are all set with the initial issue (and you can load the private key in suibase).
I will leave the case open so I can attach the following enhancement later:

New automated regression test
Support mnemonics in suibase.yaml
Support 32 bytes variations (hex or base64) in suibase.yaml. That way the user can specify "anything" and it will "just work".
New "keyinfo" utility (using same code that process the suibase.yaml).


largest-series-product corner cases

As part of the work to have consistency between tracks as in https://github.com/exercism/todo/issues/104 and https://github.com/exercism/todo/issues/13.

I think all the perl maintainers have drifted away. I'm going to go ahead and merge this.


Sometimes iproxy will stay in memory, causing iOS debug to be blocked.

Sometimes iproxy will stay in memory, causing iOS debug to be blocked.
It is recommended to automatically delete the remaining iproxy process in the memory before downloading the debug.
Automatically kill iproxy, so that iOS debug does not need to re-plug the USB data line.
killall iproxy
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build

Hi @zxl777,
Can you provide flutter doctor -v. There was a similar fix made and merged in master. You may check that for reference and see if it helps.
Thanks.

[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G73, locale zh-Hans-CN)
    • Flutter version 1.20.3 at /Users/sky/development/flutter
    • Framework revision 216dee60c0 (3 days ago), 2020-09-01 12:24:47 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/sky/Library/Android/sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.48.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.0

[✓] Connected device (1 available)
    • X-Sky (mobile) • 9c56a3b9bab16635643815edc811b4997a2f6d9a • ios • iOS 13.6.1

@zxl777, did you try to switch to latest master per the fix and see if it is resolved there ?
Thanks.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.