Update k8s monitoring checklist

This PR updates the kubernetes platform monitoring checklist with better notes and guidance.

[x] investigate impact of a single etcd member being down
[x] determine whether there's a good metric for etcd member(s) being down
[x] add note describing the impact of expired client certificates
[x] provide more actionable guidance for controller manager down
[x] add metric for CoreDNS down

These broken link failures all look to be coming from practices content pulled in from the main branch.

@zmb3 yup, wasn't holding up this PR because of that, I just saw you had two others listed for review, but if you're happy with it we can go head and merge :)

Yep, Rich reviewed and added updates so I think we’re good. 🚀


Cookie Settings?

Confirmation

[X] My issue isn't already found on the issue tracker.
[X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version
3.1.0
Affected resource(s)
cloudflare_access_application
Terraform configuration files
resource "cloudflare_access_application" "app" {
    account_id = var.account_id
    allowed_idps = var.allowed_idps
    auto_redirect_to_identity = false
    domain = var.hostname
    enable_binding_cookie = var.enable_binding_cookie
    name = var.name
    session_duration = var.session_duration
    dynamic "cors_headers" {
        for_each = length(var.cors_policy.allowed_origins) > 0 ? [{}]:[]
        content {
            allow_all_methods = var.cors_policy.allow_all_methods
            allowed_origins = var.cors_policy.allowed_origins
            allow_credentials = var.cors_policy.allow_credentials
            max_age = var.cors_policy.max_age
        }
    }

    ... cookie settings?

}

Debug output
n/a
Panic output
No response
Expected output
n/a
Actual output
n/a
Steps to reproduce
n/a
Additional factoids
I'm trying to set a same-site cookie policy on my access application, but there doesn't seem to be a configuration block for it on the provider, unless I'm looking in the wrong place?

How would I go about setting this?
References
No response

The API doesn't yet have public support for this so neither will Terraform. This won't be introduced until the public API and cloudflare-go have support.

Fair enough, thanks for the swift reply, will close this for now.


Do Laravel's model support $dateFormat property? If yes, why model's toArray method can't change the format

Laravel Version: #.#.#
PHP Version: #.#.#
Database Driver & Version:

Description:
Steps To Reproduce:

$dateFormat is meant to be used to format for databases.
For serializing to Array/JSON use the serializeDate() method:
https://laravel.com/docs/8.x/eloquent-serialization#date-serialization

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


Server produce gibberish output for some model

The issue is observed on a 4-bit quantized cognitivecomputations/dolphin-2.8-mistral-7b-v02 model.
Here's a curl request to reproduce the issue:
curl -X POST localhost:8080/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
            "messages":[
                  {
                        "role": "user",
                        "content": "Write a sentence of opening line for a dune-like movie"
                  }
            ],
            "max_tokens":500,
            "temperature":0.9
      }'

I would expect a response with the following line from the model
In a world of shifting sands and endless winds, a stranger's arrival sets off a chain of events that would determine the fate of a people and the land.

Here's the complete response that I received instead:
{
  "id": "chatcmpl-85aa4e55-521b-4d35-960b-a2a4333b68dc",
  "system_fingerprint": "fp_beaf8d29-15d9-4c27-b583-2817518b51a6",
  "object": "chat.completions",
  "model": "default_model",
  "created":<PHONE_NUMBER>,
  "choices": [
    {
      "index": 0,
      "logprobs": null,
      "finish_reason": "stop",
      "message": {
        "role": "assistant",
        "content": "||\b\ufffd\u00ab\ufffd{'What\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u02da\ufffd}}_\ufffd\ufffd\ufffd\u06d5\ufffd\u0635\ufffd\u0437<`\u0414\ud83d\ude44\u2800\ufffd\u00ab\ufffd}))\ufffdigent\u00b3\u0445\u0430\ufffd@@\ufffd.<`DF\u0010subseteq\ufffd\ufffd\ufffd\ufffd\ufffd\u00a7\ufffd';\u0151l\ufffd\u011bl\u06d9 Una\u6d32\ufffd\ufffd'+\u00b0\ufffd<'\u00f9 beskrevs^-POS\u2122',',',',',','\u25cf`,`,,,','=>-_;``\ud83d\ude04\u0336\ufffd]+\ufffd ERR\ufffdefore \u0412\u0438\u06fb\u06d9\u043d\u0435Wrapper\u30fc\ufffd'))\ufffd Kamp klassLENGTH\ufffd\ufffd\ufffd'_\ufffd\u0090\ufffd\u0433\u0440\u0430\u0444\u0456\ufffd\ufffd\ufffd\ufffd\ufffd nationale',',',',',',,`,',',',' False\ufffd\u00d8\ufffd\ufffd\ufffd\ufffd\u200f\ufffd\uad6c\ufffd\u201a\ufffd\ufffd\u00c6\ufffd'}\ufffd\ufffd\ufffd\u05d8\ufffd\u043b\u044f\u0440\ufffd fais\ufffd\ud83e\udd14\ufffd                \u0178\ufffd habitants'_\ufffd\u0098\ufffd bzw\ufffd\ufffd\u0178\ufffd\ufffd\u00e4l\ufffd\ufffd\ufffd\u00b9\ufffd waited\ufffd \u00b0 \u0420\u0435\u06f7\u0158\ufffdLOT\ufffd todas\ufffd\ufffd\u06be\ufffd\u1d1c\ufffdAMP"
      }
    }
  ],
  "usage": {
    "prompt_tokens": 22,
    "completion_tokens": 200,
    "total_tokens": 222
  }
}

I did a little bit of investigation,  I found out that changing the following line in the mlx_lm/server.py file fixed the issue:
# Original
prompt = TOKENIZER.apply_chat_template(
    body["messages"],
    tokenize=True,
    add_generation_prompt=True,
)

# Fixed
prompt = TOKENIZER.apply_chat_template(
    body["messages"],
    tokenize=False,
    add_generation_prompt=True,
)
prompt = TOKENIZER.encode(prompt)

The server produced the correct output:
{
  "id": "chatcmpl-66ce1b54-a470-4ac0-902c-3996dad943b8",
  "system_fingerprint": "fp_90f61b62-9612-4647-885c-1064a0788aac",
  "object": "chat.completions",
  "model": "default_model",
  "created":<PHONE_NUMBER>,
  "choices": [
    {
      "index": 0,
      "logprobs": null,
      "finish_reason": "stop",
      "message": {
        "role": "assistant",
        "content": "In a world of shifting sands and endless winds, a stranger's arrival sets off a chain of events that would determine the fate of a people and the land."
      }
    }
  ],
  "usage": { "prompt_tokens": 23, "completion_tokens": 34, "total_tokens": 57 }
}

I used both the mlx and mlx_lm development versions with the following details:

mlx_lm latest commit: 2bd64b78cf304387e8fea7cc20db684b3a5f8459
mlx latest commit: 0caf35f4b83eabaa85953f590f88f05455c0b746

After applying the change, I tested it with the following models:

zephyr-7b-beta 4-bit
mistral-7b-instruct-v0.2 4-bit
qwen1.5-7b-chat 4bit
tinyllama-1.1b-chat-v1.0
dolphin-2.8-mistral-7b-v02 4-bit

The change didn't break those models.
I'm happy to file a PR

It looks like something has changed in the transformers library, leading to this change in behavior. Could you try downgrading your transformers or add return_dict=False in theapply_chat_template call,  see if the issue gets fixed?
https://github.com/huggingface/transformers/commit/9d999481b2bb231de3c5980e407200bd0ce3ce4d#diff-85b29486a884f445b1014a26fecfb189141f2e6b09f4ae701ee758a754fddcc1

I tried using transformers version 4.39.3 and 4.38.0.
I'll look into it.

Update:

I tried adding return_dict=False to transformers version 4.38.0, 4.38.1, 4.38.2, 4.39.0, 4.39.1, 4.39.2, 4.39.3 and the model produced gibberish.
I tried downgrading the transformers to version 4.37.x and 4.36.x the model still produced gibberish.

That looks very strange, I will try to reproduce it on my local see if I can find anything.

The root cause is that the apply_chat_template disabled the special token (bos in this case) at https://github.com/huggingface/transformers/blob/main/src/transformers/tokenization_utils_base.py#L1805 and somehow the cognitivecomputations/dolphin-2.8-mistral-7b-v02 is very sensitive to that. Maybe we could report an issue in the transformers repository to see why it gets disabled, as the behavior of apply_chat_template(tokenize=True) is different from tokenizer.encode. In the meantime, we can apply the workaround suggested by @alwint3r.

Thank you @mzbac.
I'll submit the workaround PR.

@alwint3r or @mzbac not sure was there anything to fix in MLX server after this? It sounded like the chat template had an issue, was that the whole problem?

There shouldn't be an issue specifically with the MLX server. The model's chat template didn't work well with the apply_chat_template function from the transformers library.

Yeah, the model template was missing the bos token, I was thinking about to add it via tokenizer.encode method, but after reading the transformers docs. Seems it prefers to handle that in chat template.

@mzbac could you please provide an example of template with system, assistant, user roles? There's the lack of docs about template format.


Proposal to better navigation

I have downloaded your project. I found it very interesting. Having something like the concept of shell.
I have a situation where your project may be applied to achieve navigation.
But I need to have nested side menu items.
I will work to modify and then send a pull request.

Hello @FabricioGonzalez
Thanks for the input. I mainly took the idea from Xamarin/Maui Shell. As you see nested menu item is not supported by Xamarin too. I think you can simply ignore the menu item and create your own Menu user control and place it into the Side menu Contents.
Very rare possible you can find a sub-item in mobile apps.
What I suggest, is to think about what is the needs of it first and please share with me some ideas and if we need to improve it, why not.
Thanks again.

I will think. I am currently using the shell on windows. That is a good idea too. Changing the body of the side menu. That can do what I need for now.

It's a good idea to make avalonia take good ideas from other frameworks. I have used many UI frameworks from .net environment. And Avalonia was the one I most liked.
On functionalities, seems to be the best one. On visuals, I think Winui 3 is the best. but the way it work. Reminds me of UWP. and I really deslike  UWP. So, what we can do is to transform Avalonia on the best tool we can

Please see
https://github.com/buzzware/pelican_dev
for me ideas on mobile routing.
In particular;

most mobile routers make the mistake of requiring that all routing urls be declared up front when in fact potential route segments should be declared, and the route be constructed at runtime from segments.
each segment needs its own parameters (and I argue options)

Please see https://github.com/buzzware/pelican_dev for my ideas on mobile routing. In particular;

most mobile routers make the mistake of requiring that all routing urls be declared up front when in fact potential route segments should be declared, and the route be constructed at runtime from segments.
each segment needs its own parameters (and I argue options)
redirects, so that you can link buttons everywhere to /home, and redirect /home dynamically to somewhere else

Hello @buzzware ,
Long time pass from this request. As I do a cleanup in issue list, I answerting this comment as well.

Today, registrar service allow you to dynamically add, remove route registration
This one still not clear for me. But yes, each segment can has it own arguments.
This is possible today using attached property from Navigator.To

Overall, most of the functionality of shell can be easily replaced because it is based on strategy or abstract pattern.
Something else that I can help on this thread?


CAMEL-19840: camel-core-api - Warn when the key store cannot be found

Fixes https://issues.apache.org/jira/browse/CAMEL-19840 for 3.22
Motivation
If KeyStoreParameters are configured with an incorrect path for the key store file, at runtime, we end up with an error that can be more or less easy to understand depending on the underlying component for which SSL has been configured.
Modifications:

Add a warning when the key store file cannot be found

The failure is not related


Unable to publish results to dependency-track for report generated from gradle plugin in Jenkins

Hi there, I'm running a report (on Jenkins) using dependency check gradle plugin and it generates the reports just fine.
Here's my gradle setup, I'm using another job that downloads the NVD
dependencyCheck {
		autoUpdate = false
		format = 'XML'
		data {
			directory = 'dependency-check-data'
		}
	}

However, when it tries to publish reports to dependency track (using Jenkins dependency check plugin) - it failed with no error message:
[DependencyCheck] Collecting Dependency-Check analysis files...
[DependencyCheck] Searching for all files in /mnt/ubuntu/workspace/dependency-check that match the pattern **/dependency-check-report.xml
[DependencyCheck] Parsing 41 files in /mnt/ubuntu/workspace/dependency-check
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/build/reports/dependency-check-report.xml with 17 unique warnings and 0 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/1/build/reports/dependency-check-report.xml with 278 unique warnings and 17 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/2/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/3/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/4/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/5/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/6/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/7/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/8/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/9/build/reports/dependency-check-report.xml with 278 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/10/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/11/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/12/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/13/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/14/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/15/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/16/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/17/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/18/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/19/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/20/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/21/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/22/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/23/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/24/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/25/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/26/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/27/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/28/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/29/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/30/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/31/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/32/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/33/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/34/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/35/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/36/build/reports/dependency-check-report.xml with 279 unique warnings and 278 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/37/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/38/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/39/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyCheck] Successfully parsed file /mnt/ubuntu/workspace/dependency-check/40/build/reports/dependency-check-report.xml with 279 unique warnings and 279 duplicates.
[DependencyTrack] Publishing artifact to Dependency-Track
Build step 'Publish results to Dependency-Track' changed build result to FAILURE

Please assist.

I logged it and the log appears to be empty

Let me investigate more and get back, thank you for the prompt response

Received a different error now, I think it's permission (the jenkins slave doesn't have permission to publish to DependencyTrack)
ERROR: Build step failed with exception
java.lang.NullPointerException
	at hudson.tasks.Publisher.getDescriptor(Publisher.java:122)
	at hudson.tasks.Recorder.getDescriptor(Recorder.java:51)
	at org.jenkinsci.plugins.DependencyCheck.DependencyTrackPublisher.getDescriptor(DependencyTrackPublisher.java:205)
	at org.jenkinsci.plugins.DependencyCheck.DependencyTrackPublisher.upload(DependencyTrackPublisher.java:167)
	at org.jenkinsci.plugins.DependencyCheck.DependencyTrackPublisher.access$100(DependencyTrackPublisher.java:56)
	at org.jenkinsci.plugins.DependencyCheck.DependencyTrackPublisher$1.call(DependencyTrackPublisher.java:120)
	at org.jenkinsci.plugins.DependencyCheck.DependencyTrackPublisher$1.call(DependencyTrackPublisher.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
	at hudson.remoting.Request$2.run(Request.java:336)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
	at ......remote call to ec2-instance1 (i-xxxxxxxxxx)(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
	at hudson.remoting.Channel.call(Channel.java:830)
	at org.jenkinsci.plugins.DependencyCheck.DependencyTrackPublisher.perform(DependencyTrackPublisher.java:118)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
	at hudson.model.Run.execute(Run.java:1760)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:405)
Build step 'Publish results to Dependency-Track' marked build as failure

Ensure that the team containing the API Key you're using has the SCAN_UPLOAD and VIEW_PORTFOLIO permission. Initially, the VIEW_PORTFOLIO permission was not assigned to the 'automation' team by default. This was corrected in a later release, but for existing users, you'll just need to add the permission.

Great! Thank you!

This was an actual issue - reported here https://issues.jenkins-ci.org/browse/JENKINS-51053?workflowName=JNJira+%2B+In-Review&stepId=4


Add support for soft-deleting

In some applications, you don’t want to, or you are not allowed to permanently remove a record from the database. But you still need to remove or hide records which are no longer active. One example could be a user account which you want to keep because it is linked to other business objects which are still used.
Typical story: after an entity is marked with deleted=true, it should not be visible anywhere, except specially chosen places.
Something like
Users notDeletedUsers = Users.filter((u) -> u.DELETED.eq(false))
from(notDeletedUsers).select(notDeletedUsers.ID, notDeletedUsers.TYPE)

Equavalent code using Ktorm:
val notDeletedUsers = database.sequenceOf(Users).filterNot { it.deleted }
notDeletedUsers.filter { .. }.mapColumns { .. }


Laser IO crashing server

LaserIO version
1.4.2
Minecraft Version
1.18.2
Forge Version
No response
Modpack & Version
Direwolf20 1.18
Do you have optifine installed?
No
Describe the issue
Never found the main issue because the mod had to be removed sadly. Anytime we went into the chunk with it, the entire server would immediately crash.
Steps to reproduce
Sorry dunno but i have a log
Expected behaviour
energy to transfer from extreme reactors to charging station from mining gadgets. Worked for one user for a few days, second user crashes the server.
Screenshots

continues to line 445
Log files
https://mcpaste.io/d08b2d776c906e52
Additional information
Sorry I don't have more info. I used the lasers with upgrades for a few days, no issues. My friend started using them tonight and suddenly the whole server crashes whenever the chunk is loaded. We chose to remove the mod since the server only has daily backups and the last one was 13 hours ago. Thanks and hope there's a fix cause this mod is probably the best energy transfer in the pack.

I haven't seen any more reports of this bug and can't reproduce it, if you can find a way to make it happen again please let me know how :). Thank you!

Actually I did find this :) its now resolved, thank you


ErrorResponseException:

General Troubleshooting

[ ] I have checked for similar issues.
[ ] I have updated to the latest JDA version.
[ ] I have checked the branches or the maintainers' PRs for upcoming bug fixes.

Bug Report

Expected Behavior

Code Example or Reproduction Steps

Code for JDABuilder or DefaultShardManagerBuilder Used

Exception or Error

I've updated your issue to the right template, please fill it out.


jest config for mjs and cjs

Based on:
https://github.com/facebook/create-react-app/pull/8768/files


Remove requirement for specifying group owner

Specifying a group owner is not required by SharePoint when creating a group. It should therefore not be a requirement in the PNP Schema either. This will also allows group modifications without modifying the configured group owner already specified on the SharePoint group.
It requires changes to the provisioning engine, which has been implemented in PnP Core PR #2020

Hi, Thanks for your contribution. We need some internal discussion about this request.


Fixed possible IndexError in Function.get_*_at methods

Function.get_low_level_il_at and Function.get_lifted_il_at methods could raise an IndexError because proper checking was not performed on the index returned by the core method that retrieves the IL instruction index of the requested instruction. The methods now check this value to see if it is equal to the length of the IL function, and if so, returns None instead. The onus of checking for None will be on the user, but at least they shouldn't have to wrap this in a try/except block anymore.
Given that it was my PR that originally introduced this functionality, I take full responsibility for fixing it :)

This is a pretty simple patch, any reason why it can’t be accepted?

Wasn't accepted because it wasn't looked at basically. Sorry for the delay.


Are Nuitka compiled files actually binaries ?

Please just explain how does compilation works with Nuitka.
I thought binary file is just an array of<PHONE_NUMBER> but it seems like Nuitka just packs separate python files like Pyinstaller does. Like this one shown on ViRusTotal seems like whole my executables are consist of pyd files.
_hashlib.pyd
_ctypes.pyd
libffi-8.dll
libcrypto-1_1.dll
_uuid.pyd
So technically it is not binary at all but some archive of python bytecode files packed together ?
If so. What chances that Source Code of My program can be reverse engineered ??

The files you see there are DLLs and extension modules used for embedding Python, these are written in C, e.g. the hashlib module can use either a built-in module _hashlib or an external module. These are not using bytecode, and are just packaged by Nuitka.
Nuitka only compiles Python code to C code and therefore machine code itself. For some parts, it can use bytecode, e.g. the encodings are required to be bytecode when initializing the Python DLL, embedded statically or not, but user code is normally never bytecode.


Interop  and performance result for quicly

Can you share any interop  and performance result for quicly as shown in https://interop.seemann.io/?
At, https://interop.seemann.io/, I see all the automation testcases for quicly are failing. I also don't see any successful old result.

The quicly docker image is still speaking an older QUIC version than the one required by the interop runner. Hence all the failures.

As I assume you're not really looking for the raw results but rather the conclusions you can draw from them:
Historically speaking, quicly has done very well in the interop tests with other stacks, being actively maintained by several of the main contributors to the QUIC specification. It is one of the most feature-complete implementations you'll find.
Additionally, it is also a highly performant stack, using for example custom cryptographic optimizations, advanced kernel-level features and manual tuning. Much of that is discussed in this blogpost: https://www.fastly.com/blog/measuring-quic-vs-tcp-computational-efficiency.
Finally, inside the H2O webserver it is used to back Fastly's rollout of QUIC and HTTP/3. As such, you can be pretty sure it's (mostly) production ready.

Thanks @rmarx for your response. I like h2o's quicly pretty much from the beginning for some of the reasons as you have mentioned. We are also thinking to use H2O's HTTP implementation in our multiple products because of high performance.
At the same time, some raw result would help me to convince multiple different teams in our organization.

By when quicly is supposed to support RFC version 0x1?
Is there any plan to enable interop testing for quic?

I think they just need to rebuild their Docker image. @janaiyengar?

Is there any plan to enable interop testing for quic again (in https://interop.seemann.io/)?


 You haven't made a commit since October.

If you're still active I'll submit a pull request but your readme doesn't even work not sure if you're the right guy to run this repo.

Be nice.  See here: https://github.com/docker-solr/docker-solr

Wow, you're an a-hole @frangucc


Swap @angular/material for @material

Here are the components:
https://material-components-web.appspot.com
Most of them look nicer, but I want to be less dependent on Angular. Potentially gradually swapping away from it as I refactor the code base.

https://github.com/material-components/material-components-web/tree/master/demos

@material also struggles with @media print :(
Don't do this.


nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file

System Info
OS: Ubuntu 22.04.3 LTS.
Client: Docker Engine - Community
Cloud integration: v1.0.35-desktop+001
Server: Docker Desktop 4.22.0 (117440)
I've installed Nvidia Container Toolkit for Docker, and if run sudo docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.2.0-base-ubuntu22.04 nvidia-smi it returns:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.86.05              Driver Version: 535.86.05    CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3090        Off | 00000000:01:00.0  On |                  N/A |
|  0%   46C    P8              15W / 350W |    209MiB / 24576MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
+---------------------------------------------------------------------------------------+

Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
Execute the command:
docker run --gpus all --shm-size 1g -p 8080:80 -v "${PATH_DATA}:/data" ghcr.io/huggingface/text-generation-inference:1.0.1 --model-id meta-llama/Llama-2-7b-chat-hf

I get the error:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.
ERRO[0000] error waiting for container:

Expected behavior
Executing the same command works fine in Windows 11. I've installed Ubuntu today to test the same LLM under Ubuntu and I got that error. I don't have too much experience with Linux so I don't know if I need extra steps.

Seemslike a cuda version issue, you should be running 11.8 or above.

If I run:
sudo docker run --rm --gpus all nvidia/cuda:12.2.0-base-ubuntu22.04 nvidia-smi

It returns:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.86.05              Driver Version: 535.86.05    CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3090        Off | 00000000:01:00.0  On |                  N/A |
|  0%   46C    P8              15W / 350W |    209MiB / 24576MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
+---------------------------------------------------------------------------------------+

So I believe that my system is compatible with CUDA >11.8 and Nvidia Docker runtime is working.

Same error using sudo. I give up, I installed Ubuntu because people say that is "less problematic" than Windows but TGI worked fine and I didn't install any additional toolkit. So I will move again to Windows.

Stick to what you know.
Something was most likely wrong in your ubuntu setup but if you're not familiar it's not easy to understand/fix.
Cuda and docker are not the simplest things to install too :)


Ignore other people's branches pulled for code review

[X] I have searched the discussions
[X] I have searched the existing issues

Version
No response
Use Case
@Bouke when dealing with overwhelming output from git-stack

When reviewing other's PRs I typically create a local tracking branch. These typically shouldn't be altered by git-stack, as they are externally owned. I don't fancy having to mark each branch as protected, as that's something that will be overlooked. So maybe we should try and determine un-owned branches by committer name, ignoring those that don't have the last commit from us.

Split from #107
Requirements
No response
Possible Solutions
No response

We're intentionally not relying on hooks but this makes me realize I should call out that any detection we do should be based on the Committer rather than the Author (or both?) so changes in history cause us to re-evaluate.


Array field with MySQL

Hi,
I have a problem with a MySQL query and a field typed as an array.
My mapping is :
"partner_teams_ids" : {
"type": "long",
"index": "not_analyzed",
"include_in_all": false
},
I want a subquery result to be "translated" to an array
e.g. : SELECT x.a, (SELECT group_concat(y.b) from y where y.ext_id = x.id) as b from x;
With MySQL I have to use the group_concat() but the field is then a String and the import fails to convert the String ("1,2,3,4,5)" to an array of Long.
Any idea how to solve this problem ?
Thanks !
Xavier

I do not support MySQL with JDBC importer, group_concat is defined to return a string.
ES will index longs for you as you defined in the mapping, even if you pass strings, so there is not a big problem.
In most cases, you don't need constructs like group_concat, as JDBC importer is able to handle multi values for you.

Hi,
I think that it's not possible because  :

MySQL doesn't support subquery to return multi-values

When I use a group_concat() and return a String, with comma or not, there is an error during the import:
message [MapperParsingException[failed to parse [subjective_contact_ids]]; nested: NumberFormatException[For input string: "0 0 0"]; ]

MapperParsingException[failed to parse [subjective_contact_ids]]; nested: NumberFormatException[For input string: "632021842, 0, 0"]; ]

Taking your example, you can just do
SELECT x.a as _id, y.b as b from x, y where x.id = y.ext_id;

for JDBC importer to create a numeric array b, so there is no need for something like group_concat
BTW MySQL can do subqueries http://dev.mysql.com/doc/refman/5.7/en/subqueries.html but that does not matter here.

Whatever is the query format or driver, MySQL doesn't support to return multi-values for one field. One field => One value. That's why I have to use the group_concat(). Nevermind, I wrote my own importer and split the string when I need to.
What you can do is to add field params to inform your code that a field must split the input and convert to another format. (Look at Sphinx configuration : http://sphinxsearch.com/docs/latest/conf-sql-attr-multi.html)

JDBC importer supports multi-value select for all databases automatically, out of the box. The values can be string, integer, long, boolean etc.
This step is called row merging https://github.com/jprante/elasticsearch-jdbc/blob/master/src/main/java/org/xbib/elasticsearch/jdbc/strategy/standard/StandardSource.java#L781-L814 and an innovation of JDBC importer to overcome JDBC deficiencies. No need to instruct a database to return groups. lists, or something.

这是来自QQ邮箱的假期自动回复邮件。您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


DeepClustering incompatible with PyTorch on Windows

Description
Given PyTorch's lack of support for Python 2 on Windows systems, the DeepClustering module—or any module depending on PyTorch—cannot be imported alongside nussl.
Versions
Windows-10-10.0.17134
('Python', '2.7.15 |Anaconda, Inc.| (default, May  1 2018, 18:37:09) [MSC v.1500 64 bit (AMD64)]')
('NumPy', '1.15.2')
('SciPy', '1.1.0')
('librosa', '0.6.2')
('nussl', '0.1.6')

the py3-networks branch of nussl is all Python 3. Can you verify that this bug disappears when using the Python 3 version of nussl?

Sorry for the wait. I'm getting a FileNotFoundError:
FileNotFoundError: [Errno 2] No such file or directory: '/media/ext/models/deep_clustering_vocal_44k_long.model'

Hmm... a few things going on here.

Looks like the default value for model_path is set to '/media/ext/models/deep_clustering_vocal_44k_long.model'. This should probably be None because that value (or rather the previous one that was there) was a bandaid until the EFZ was up. @pseeth should probably remove that, because it looks like a path on cortex lol.

We have to figure out where the default storage directory should be on windows. For unix-based systems we look in ~/.nussl/ or /tmp/nussl/ but those places don't exist on windows. This seems like it's a different bug that warrants its own. I'll open an issue.

@maxrmorrison what happens when you specify a real directory for model_path?

The model path isn’t right anymore anyway. DeepClustering is in the middle
of an overhaul to make it more general and better. That overhaul just needs
documentation but it is in the py3-networks branch and the class is now
called DeepSeparation.
On Tue, Dec 4, 2018 at 8:53 PM Ethan Manilow<EMAIL_ADDRESS>wrote:

Hmm... a few things going on here.

Looks like the default value for model_path is set to
'/media/ext/models/deep_clustering_vocal_44k_long.model'. This should
probably be None because that value (or rather the previous one that
was there) was a bandaid until the EFZ was up. @pseeth
https://github.com/pseeth should probably remove that, because it
looks like a path on cortex lol.
2.
We have to figure out where the default storage directory should be on
windows. For unix-based systems we look in ~/.nussl/ or /tmp/nussl/
but those places don't exist on windows. This seems like it's a different
bug that warrants its own. I'll open an issue.
@maxrmorrison https://github.com/maxrmorrison what happens when you
specify a real directory for model_path?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/interactiveaudiolab/nussl/issues/126#issuecomment-444339906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAYr31ABIwJnW6iwX7Ie9oH5G0JBkRxks5u1zUWgaJpZM4XEcNa
.

Ah, so that's why you had me run the DeepSeparation script. That makes sense to me now. For reference, that script with DeepSeparation worked just fine on Windows, whereas DeepClustering causes the FileNotFoundError.

I'm going to leave this issue open until we merge the py3-networks branch into master, because the DeepSeparation class will supersede DeepClustering and it seems the issue isn't reproducible with the new DeepSeparation framework.
As it relates to #131, where does the model get stored locally?


add os-variant flag

os-variant flag is added in virt-install command for ISO based installation

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


SFTP upload repeats the tail of large files

upload of small files seems to work fine.
for some longer html I find the last few lines repeated on the uploaded file.
for a big zip file, 66.4Mb .... the uploaded version is 68.8Mb and won't unzip. But if I download it and manually truncate it at the correct length, it unzips and is 100% correct content.
so clearly it seems to be just repeating bytes to the tail during upload.
my upload is pretty basic
sftp.upload(data: data, remotePath: remote, permissions: .default)
so not sure how it can be something I'm doing wrong, but just in case, please let me know.
otherwise I'll download the source code and see if I can find out what's going on.

BTW... I also did try saving the data to a local file and using
sftp.upload(localURL: localURL, remotePath: remote, permissions: .default)
exactly the same problem, creating exactly the same remote file. 100% identical, including the same extra bytes at the end

code looks right (actually looks good too). stepping through ended with bytes sent being correct.
might be at the ISP end? so weird.
but if anyone has suggestions... thanks in advance


Warn when withIntent is called as function

I just hit an issue where calling withIntent returns a stateless (function) component and the Presenter thought it was a plain old view() method. That meant that withIntent never received proper context 😢.
Changes
withIntent displays a few nice warnings now:

Presenters always call React.createElement on their view.
This means that the new signature for a view method is:
view (model, context) {
  return <Component />
}

Generally, I would like to move away from using view as a method and always assign it as an inline property or getter. Having a view method that returns JSX has been a source of confusion when I solicit feedback about the abstraction.

Questions

Should we raise an exception instead of gracefully failing?
Is the Presenter tweak (calling createElement) a breaking change?

Coverage decreased (-0.2%) to 99.807% when pulling aafde47f3c95895af7556935d0e2dd5379bd9df0 on with-intent-warnings into 8016b85b931d523deefeae9a01384c827f6e8ab4 on master.

Coverage remained the same at 100.0% when pulling 1bf754f3a8b8c5519f7d357bdbd6a188a34458c2 on with-intent-warnings into 8016b85b931d523deefeae9a01384c827f6e8ab4 on master.

Coverage remained the same at 100.0% when pulling a31ef2596a3fef60a01d5df189a41d854a61a035 on with-intent-warnings into 92af2e62dbbddd9bbd726ea7a2c9197ad1f90be5 on master.


Issue with model.get not a function

Thanks for this addon!
I had an issue with activeRoute calling model.get() if model is present. For a model that is an Ember.RSVP.hash model, for example, this was failing. I added a line here to check if model has the get() function.
I see that you have filed an issue about this already, if this seems like a good solution, great.

Thanks for your contribution, this solution will suffice for now until I can come up with a better approach to detect single resources.


Update india.md

I have updated support contact numbers for India.

Rejecting PR. Updated #s are not authorized for Office 365 support.


Control selection state (selectedIds) outside of NodeRenderer

Is there any way to do this?

Yes, it's not documented very well, but you can attach a ref to the Tree component and access the TreeApi. All the methods listed here: https://github.com/brimdata/react-arborist#tree-prop
const tree = useRef()

useEffect(() => {
  tree.current.selectById("123")
}, [])

<Tree ref={tree} />


Engine Context

Summary
The main engine Context provides access to all other parts of the engine.  It is initialized at startup and is passed to any function that needs to interact with Wolf Engine.
System Design
Purpose
The main Context object stores and provides access to other context objects attached to it.  Context objects store engine state and provide access to tooling provided by the engine.
Goals

Provide a common access point for engine tooling and state.
Provide a way to initialize the engine and the main engine context.
Flexibility through swapping components out.

Non-Goals

Implement all of the states for specific systems.  It is up to those system to add themselves to the main state as they are created.

Overview
The main Context object stores and provides access to other context objects attached to it.  Context objects store engine state and provide access to tooling provided by the engine.
The main Context is composed of 1 of each context object.  The diagram below shows the relationship.

Implementation Details
The main Context is composed of many smaller objects, or "contexts," and it serves as a kind of a gateway to all components of the engine. Engine functionality and tools are provided by the attached contexts.  For example, if you want to change states, you do so through the state machine's context object, and if you want to render graphics you do so through the graphics context.
Little, if any functionality should be attached to the main Context.  It is acceptable to provide small helper functions for common functionality that is likely to be used by all games (quitting, pushing / polling events, ext.). Helper methods should not implement the functionality on their own, but instead, should delegate the action to one or more of the attached contexts.
Contexts
The main engine context is simply Context, while specific systems should be named using the following format {System}Context.  For example: StateMachineContext, GraphicsContext, ext.
The context accessors should be named plainly what the system is.  For example: state_machine(), graphics(), ext.
Creation
The Context object is created using a ContextBuilder.  The ContextBuilder takes all the settings for the engine, and returns a Context based on them.

It doesn't really make sense to have this as it's own issues / feature.  Other features are responsible for integrating with the Engine context on their own.


Create simplified Chinese Translation

Hello,
first of all,
thank you very much for making this launcher,
I feel this launcher is very good (especially the UI),
but see that you don't seem to have the translation in Simplified Chinese,
so I translated it for the time being,
there may be some places still a bit colloquial problem,
so for the time being can only be set to draft.

您好，
首先十分感谢您制作了这个启动器，
我感觉这个启动器非常好（特别是UI），
但是看见您似乎并没有简体中文的翻译，
所以我就暂时翻译了一下，
可能有些地方还有点口语化的问题，
所以暂时只能设置为草案。

在更新界面似乎并没有使用i18n中的文本（The update screen doesn't seem to use the text in i18n）
现阶段只找到了以上的问题，
如果过段时间后没有出现其他问题或者其他需要翻译的地方即可准备合并
（At this stage, only the above problems have been found, and if no other problems or other areas need to be translated after some time, then we can prepare to merge）

Hi, Thank you for your contribution on this project.
I will try to review this PR first and will get back to you later 😄

Hi there,
I've pushed some commits (including my local commit and fix for some i18n issues as mentioned).
Some changes are included in original localization file. You can use the reference below:
  "_Misc": {
    "ApplyingPatch": "Applying Patch",
    "Disabled": "Disabled",
    "Enabled": "Enabled",

    "BuildChannelPreview": "Preview",
    "BuildChannelStable": "Stable"
  },

  "_UpdatePage": {
    "PageTitle1": "UPDATE",
    "PageTitle2": "IS AVAILABLE!",
    "VerCurLabel": "Current Version:",
    "VerNewLabel": "New Version:",
    "VerChannelLabel": "Update Channel:",
    "VerDateLabel": "Compiled on:",
    "ReleaseNote": "Release Notes",
    "NeverShowNotification": "Never show me this update notification again",
    "RemindLaterBtn": "Remind me later",
    "UpdateNowBtn": "Update Now",
    "LoadingRelease": "Loading Release Notes...",
    "LoadingReleaseFailed": "Error while fetching Release Notes.\r\n{0}"
  }

For more info, please check on this commit.

Hi, Thank you for your contribution on this project.
I will try to review this PR first and will get back to you later 😄

Thanks! I will add these to the translation later o(≧▽≦)o

Thank you. Looking forward for the progress 😃

I don't know why,
but I can't see other language options in the settings,
only English is in the options,
and it shows switching to English at startup.
（But I think the updated translation is already OK (although I didn't look at the translated UI)）

Don't forget to set the Build Action to "Content" and Copy to Output Directory to "Copy Always" for your translation file in Visual Studio.
You can also try remove the AppLanguage key in App Config file located here:
C:\Users\<username>\AppData\LocalLow\CollapseLauncher\config.ini
On my side, Looks good to me. I think we can merge this PR tomorrow or wait If you have any additional edit for this PR.
Anyway, thank you for the contribution 👍

On my side, Looks good to me. I think we can merge this PR tomorrow or wait If you have any additional edit for this PR. Anyway, thank you for the contribution 👍

I think we are ready to merge this PR, and I confirmed that there are no more problems.
Thanks for developing this launcher!( ╹▽╹ )


use execute instead of executeQuery in getTableNamesFromDefaultDataSo…

Hi!
Similarly to what happened in #852, the usage of executeQuery when retrieving the tables metadata in MySQLShardingMetaDataHandler.getTableNamesFromDefaultDataSource broke the application startup when using c3p0 as thread pool.
Cheers!
Changes proposed in this pull request:

Use execute instead of executeQuery in MySQLShardingMetaDataHandler.getTableNamesFromDefaultDataSource

Codecov Report

Merging #995 into dev will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##              dev     #995      +/-   ##
==========================================
+ Coverage   54.93%   54.94%   +<.01%
==========================================
  Files         587      587
  Lines       12025    12025
  Branches     1895     1895
==========================================
+ Hits         6606     6607       +1
+ Misses       5024     5020       -4
- Partials      395      398       +3

Impacted Files
Coverage Δ

...metadata/dialect/MySQLShardingMetaDataHandler.java
0% <0%> (ø)
:arrow_up:

...ce/OrchestrationShardingDataSourceFactoryBean.java
66.66% <0%> (-11.12%)
:arrow_down:

...ngsphere/opentracing/sampling/SamplingService.java
89.65% <0%> (-10.35%)
:arrow_down:

.../internal/config/ConfigurationListenerManager.java
56.75% <0%> (+2.7%)
:arrow_up:

...ternal/state/instance/InstanceListenerManager.java
32.35% <0%> (+2.94%)
:arrow_up:

...al/state/datasource/DataSourceListenerManager.java
40% <0%> (+3.33%)
:arrow_up:

...tion/internal/config/ConfigMapListenerManager.java
61.9% <0%> (+4.76%)
:arrow_up:

...spring/datasource/SpringMasterSlaveDataSource.java
100% <0%> (+16.66%)
:arrow_up:

Continue to review full report at Codecov.

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

Thank you for contribute codes


Use separate kubeconfigs for SC api and bootstrap autoapprover

Fixes https://github.com/jim-minter/azure-helm/issues/11
@jim-minter ptal

great stuff!


Document differences from rc

Stops at the first found, instead of finding all and merging them.
Looks for package.json prop.
Loads JSON, YAML, and CommonJS.
A little more configurable (different file name expectations).
Built-in extends support.
Not as built for extension -- not such a low-level module.

Any others?

Looks really good. Looking forward to it.

Closed by ea874b9


Interactive matplotlib plot first gives an error and then grows infinitely

Describe the bug
When I run mo.mpl.interactive(ax), I first get an asyncio error:
Traceback (most recent call last):
  File "~/.virtualenvs/marimo-test/lib/python3.8/site-packages/marimo/_runtime/cell_runner.py", line 228, in run
    return_value = execute_cell(cell, self.glbls)
  File "~/.virtualenvs/marimo-test/lib/python3.8/site-packages/marimo/_ast/cell.py", line 394, in execute_cell
    return eval(cell.last_expr, glbls)
  File "/tmp/marimo_1632908/__marimo__cell_MJUe__output.py", line 3, in <module>
  File "~/.virtualenvs/marimo-test/lib/python3.8/site-packages/marimo/_plugins/stateless/mpl/_mpl.py", line 267, in interactive
    application = get_or_create_application()
  File "~/.virtualenvs/marimo-test/lib/python3.8/site-packages/marimo/_plugins/stateless/mpl/_mpl.py", line 215, in get_or_create_application
    asyncio.run(asyncio.sleep(0.02))
  File "/usr/lib/python3.8/asyncio/runners.py", line 33, in run
    raise RuntimeError(
RuntimeError: asyncio.run() cannot be called from a running event loop

The terminal from which I launched marimo also displays the following:
~/.virtualenvs/marimo-test/lib/python3.8/site-packages/jedi/inference/compiled/subprocess/__init__.py:220: RuntimeWarning: coroutine 'sleep' was never awaited
  inference_state_id = self._inference_state_deletion_queue.pop()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.8/sre_parse.py:433: RuntimeWarning: coroutine 'sleep' was never awaited
  return list(dict.fromkeys(items))
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

However, if I re-run the cell after this, the matplotlib figure appears, but starts growing infinitely. Here's a video of it happening:
https://github.com/marimo-team/marimo/assets/20118130/6e0477d0-96c1-4545-a3ae-8c2d825c40f1
This is in a fresh virtualenv where I have only done pip install marimo matplotlib tornado. Here's the full output of pip list:
Click to open
Package             Version
------------------- -----------
anyio               4.3.0
black               24.3.0
click               8.1.7
contourpy           1.1.1
cycler              0.12.1
docutils            0.20.1
exceptiongroup      1.2.0
fonttools           4.50.0
h11                 0.14.0
idna                3.6
importlib-metadata  7.1.0
importlib-resources 6.4.0
jedi                0.19.1
kiwisolver          1.4.5
marimo              0.3.3
Markdown            3.6
matplotlib          3.7.5
mypy-extensions     1.0.0
numpy               1.24.4
packaging           24.0
parso               0.8.3
pathspec            0.12.1
pillow              10.2.0
pip                 20.0.2
pkg-resources       0.0.0
platformdirs        4.2.0
pygments            2.17.2
pymdown-extensions  10.7.1
pyparsing           3.1.2
python-dateutil     2.9.0.post0
PyYAML              6.0.1
setuptools          44.0.0
six                 1.16.0
sniffio             1.3.1
starlette           0.37.2
tomli               2.0.1
tomlkit             0.12.4
tornado             6.4
typing-extensions   4.10.0
uvicorn             0.29.0
websockets          12.0
zipp                3.18.1

This is on Python 3.8, which I know is a bit old, but that is what I have available (Ubuntu 20.04). I'm using Firefox 123.0.1, but this also happens on Google Chrome 123.0.6312.58.
Environment
{
  "marimo": "0.3.3",
  "OS": "Linux",
  "OS Version": "5.15.0-100-generic",
  "Processor": "x86_64",
  "Python Version": "3.8.10",
  "Binaries": {
    "Chrome": "123.0.6312.58",
    "Node": "--"
  },
  "Requirements": {
    "black": "24.3.0",
    "click": "8.1.7",
    "jedi": "0.19.1",
    "pygments": "2.17.2",
    "pymdown-extensions": "10.7.1",
    "starlette": "0.37.2",
    "tomlkit": "0.12.4",
    "uvicorn": "0.29.0"
  }
}

Code to reproduce
import marimo

__generated_with = "0.3.3"
app = marimo.App()

@app.cell
def __():
    import marimo as mo
    import matplotlib.pyplot as plt
    return mo, plt

@app.cell
def __(mo, plt):
    ax = plt.figure().gca()
    ax.plot([1, 2, 3], [4, 5, 4])
    mo.mpl.interactive(ax)
    return ax,

if __name__ == "__main__":
    app.run()

Thanks for reporting; we'll look into it

Hi, thanks for fixing the asyncio error! However, looks like the infinitely growing plot issue is still not resolved in 0.5.1. The minimal code to reproduce it is a single cell
import marimo as mo
import matplotlib.pyplot as plt

mo.mpl.interactive(plt.figure().gca())

Here's the output of marimo env, after creating a fresh virtual environment and running pip install marimo matplotlib tornado:
{
  "marimo": "0.5.1",
  "OS": "Linux",
  "OS Version": "5.15.0-105-generic",
  "Processor": "x86_64",
  "Python Version": "3.8.10",
  "Binaries": {
    "Browser": "124.0.6367.201",
    "Node": "--"
  },
  "Requirements": {
    "click": "8.1.7",
    "importlib-resources": "6.4.0",
    "jedi": "0.19.1",
    "markdown": "3.6",
    "pymdown-extensions": "10.8.1",
    "pygments": "2.18.0",
    "tomlkit": "0.12.5",
    "uvicorn": "0.29.0",
    "starlette": "0.37.2",
    "websocket": "missing",
    "typing-extensions": "4.11.0",
    "black": "24.4.2"
  }
}

I found some possibly related issues: #1072, #1088, but the issue is still not resolved for me.


cmd/compile: PGO does not devirtualize methods in another package (log: "... no function body")

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

$ gotip version
go version devel go1.21-c7b2f649 Tue May 30 17:30:28 2023

Does this issue reproduce with the latest release?
Feature only present in tip.
What did you do?
When experimenting with the new PGO-driven indirect call specialization from #59959, I did not see devirtualization happening on methods in another package, even when those methods are directly referenced in the current package.
CL 492436 notes that there are limitations in the first version of this, including:

Callees not directly referenced in the current package can be missed (even if they are in the transitive dependences).

However, I do not see devirtualization even after attempting to take that into account, though I might be holding it wrong.
I created a simplified example (playground link), which includes this main.go:
import (
	// ...
	"example/speak"
)

func main() {
	// configure profiling
	// ...

	s1 := &speak.Speaker1{}
	s2 := &speak.Speaker2{}
	println(s1.Speak())
	println(s2.Speak())

	for i := 0; i < 10_000; i++ {
		_ = f()
	}
}

func f() string {
	var s speak.Speaker // interface
	s = &speak.Speaker1{}
	if rand.Int()%10 == 0 {
		s = &speak.Speaker2{}
	}
	return s.Speak()
}

I then create a cpu profile:
$ gotip run . -cpuprofile=cpu.out

And use that cpu profile with pgo:
$ gotip build -pgo=cpu.out -gcflags='-m=99 -d=pgodebug=99' &> debug-build.out

The log shows should not PGO devirtualize (*Speaker1).Speak: no function body:
./main.go:42:16: PGO devirtualize considering call s.Speak()
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker1).Speak (weight 186): hottest so far
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker2).Speak (weight 34): too cold (hottest 186)
./main.go:42:16 call main.f:6: hottest callee example/speak.(*Speaker1).Speak (weight 186)
./speak/speak.go:9:6: should not PGO devirtualize (*Speaker1).Speak: no function body

If I comment out the only explicit uses of Speaker1.Speak and Speaker2.Speak in package main:
	// s1 := &speak.Speaker1{}
	// s2 := &speak.Speaker2{}
	// println(s1.Speak())
	// println(s2.Speak())

I then get a different log message saying missing IR for (*Speaker1).Speak:
$ gotip build -pgo=cpu.out -gcflags='-m=99 -d=pgodebug=99' &> debug-build-2.out

./main.go:42:16: PGO devirtualize considering call s.Speak()
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker1).Speak (weight 186) (missing IR): hottest so far
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker2).Speak (weight 34): too cold (hottest 186)
./main.go:42:16 call main.f:6: hottest callee example/speak.(*Speaker1).Speak (weight 186)

I suspect this second message of missing IR might be expected given the limitations listed in the CL because commenting out those lines means there are no explicit references to the Speak callees in package main, but I'm not sure that the first message of no function body is expected when those lines are not commented out.
The no function body reason seems to be coming from inline.InlineImpossible(fn):
	// If fn has no body (is defined outside of Go), cannot inline it.
	if len(fn.Body) == 0 {
		reason = "no function body"
		return reason
	}

Finally, regular inlining does appear to work on those methods (here using the original main.go, without having commented anything out):
$ gotip build -gcflags=-m
...
./main.go:28:18: inlining call to speak.(*Speaker1).Speak
./main.go:29:18: inlining call to speak.(*Speaker2).Speak

What did you expect to see?
PGO-based devirtualization on methods in another package when those methods are directly referenced in the current package.
What did you see instead?
No devirtualization, with the log messages above.
Sorry in advance if this is just not supported yet, or if I've made a mistake.
CC @prattmic

https://go.dev/cl/497175 is my WIP CL to address the limitation you quoted by explicitly looking for missing functions in export data. Could you try cherry-picking that CL and see if it makes a difference?
Note that you need to pass -d=pgodevirtualize=2 to enable the change in that CL.

At first glance, I agree with your assessment. https://go.dev/cl/497175 should address the "missing IR" case, but the "no function body" case is surprising to me.
Thanks for the detailed bug report.

Brief comment for now, but will hopefully circle back tonight to try that CL.
I suspect the "no function body" is causing it to fail unnecessarily, including it has an AST.
I had a very simple test fix that seemed to work (in exactly one test 😅):
./main.go:42:16: PGO devirtualizing call to speak.(*Speaker1).Speak

I can send that as a proof-of-concept CL, but maybe not needed if CL 497175 is the real fix.

Hi @prattmic, if I try your CL 497175 (ps 1, fa555c12) on my original uncommented example:
$ gotip version
go version devel go1.21-fa555c12 Mon May 22 16:58:07 2023 -0400

$ gotip build -pgo=cpu.out -gcflags='-m=99 -d=pgodebug=99 -d=pgodevirtualize=2'

I still get the no function body message in the log and no devirtualization:
./main.go:42:16: PGO devirtualize considering call s.Speak()
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker1).Speak (weight 186): hottest so far
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker2).Speak (weight 34): too cold (hottest 186)
./main.go:42:16 call main.f:6: hottest callee example/speak.(*Speaker1).Speak (weight 186)
./speak/speak.go:9:6: should not PGO devirtualize (*Speaker1).Speak: no function body

I also sent CL 500155, which was a quick exploratory hack. That does seem to successfully allow devirtualization:
./main.go:42:16: PGO devirtualize considering call s.Speak()
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker1).Speak (weight 186): hottest so far
./main.go:42:16: edge main.f:6 -> example/speak.(*Speaker2).Speak (weight 34): too cold (hottest 186)
./main.go:42:16 call main.f:6: hottest callee example/speak.(*Speaker1).Speak (weight 186)
./main.go:42:16: PGO devirtualizing call to speak.(*Speaker1).Speak

Is your CL 497175 something that might be merged for 1.21, or is that more likely 1.22 at this point?
If a more targeted fix is in order for 1.21, I'd be interested in trying to mature my CL 500155 into a real fix and add tests. (It is likely possible to do better than a string compare 😅). That said, I'd also of course understand if you'd prefer to address this yourself via CL 497175 or another CL.
Thanks, and the PGO devirtualization work seems very promising!

If I understand correctly, for imported inlineable functions, its fn.Body is nil but fn.Inl is not, and fn.Inl.Body is filled during inlining. During inlining, InlineImpossible is only called for locally defined functions. For imported function the inliner just checks for fn.Inl. Maybe we should do that in PGO. Maybe we could use typecheck.HaveInlineBody? But for locally defined functions fn.Inl is not populated until inlining, so we probably need to check both...

Hi @cherrymui, thanks for the feedback!
I updated my CL 500155 to use typecheck.HaveInlineBody, and it seemed to work in limited testing so far, including it seems to handle my example from this issue.

@cherrymui Great find, thanks. I'm not sure how I missed this before.

Is your CL 497175 something that might be merged for 1.21, or is that more likely 1.22 at this point?

No, it will go in 1.22, it is too big for the freeze.

Hi @cherrymui, FWIW, I'm also working on a update to tests for CL 500155 and I think I'm close to having that working.

Results from my benchmarking run:
                     │ goroot.results │    goroot.pgo.baseline.results     │   goroot.pgo.devirtbase.results    │    goroot.pgo.devirtfix.results    │  goroot.pgo.devirtexport.results   │
                     │     sec/op     │   sec/op     vs base               │   sec/op     vs base               │   sec/op     vs base               │   sec/op     vs base               │
BiogoIgor                  13.98 ± 0%    13.74 ± 1%  -1.69% (p=0.000 n=30)    13.78 ± 0%  -1.42% (p=0.000 n=30)    13.72 ± 1%  -1.86% (p=0.000 n=30)    13.76 ± 1%  -1.54% (p=0.000 n=30)
BiogoKrishna               12.51 ± 1%    12.57 ± 1%       ~ (p=0.070 n=30)    12.53 ± 0%       ~ (p=0.582 n=30)    12.58 ± 1%       ~ (p=0.134 n=30)    12.62 ± 0%  +0.90% (p=0.006 n=30)
BleveIndexBatch100         4.770 ± 1%    4.565 ± 1%  -4.30% (p=0.000 n=30)    4.578 ± 1%  -4.04% (p=0.000 n=30)    4.584 ± 1%  -3.90% (p=0.000 n=30)    4.561 ± 1%  -4.39% (p=0.000 n=30)
EtcdPut                   32.78m ± 1%   32.41m ± 1%  -1.12% (p=0.001 n=30)   32.40m ± 0%  -1.17% (p=0.000 n=30)   31.62m ± 1%  -3.52% (p=0.000 n=30)   31.75m ± 1%  -3.14% (p=0.000 n=30)
EtcdSTM                   147.6m ± 0%   140.7m ± 0%  -4.62% (p=0.000 n=30)   140.4m ± 0%  -4.84% (p=0.000 n=30)   134.6m ± 0%  -8.77% (p=0.000 n=30)   134.3m ± 0%  -8.96% (p=0.000 n=30)
GoBuildKubelet             51.80 ± 0%    50.91 ± 0%  -1.72% (p=0.000 n=30)    50.90 ± 0%  -1.74% (p=0.000 n=30)    50.96 ± 0%  -1.62% (p=0.000 n=30)    50.95 ± 0%  -1.64% (p=0.000 n=30)
GoBuildKubeletLink         7.312 ± 1%    7.116 ± 1%  -2.68% (p=0.000 n=30)    7.131 ± 0%  -2.48% (p=0.000 n=30)    7.146 ± 1%  -2.27% (p=0.000 n=30)    7.133 ± 1%  -2.46% (p=0.000 n=30)
GoBuildIstioctl            44.44 ± 0%    43.81 ± 0%  -1.43% (p=0.000 n=30)    43.85 ± 0%  -1.33% (p=0.000 n=30)    43.83 ± 0%  -1.38% (p=0.000 n=30)    43.78 ± 0%  -1.50% (p=0.000 n=30)
GoBuildIstioctlLink        7.763 ± 1%    7.641 ± 0%  -1.56% (p=0.000 n=30)    7.631 ± 1%  -1.70% (p=0.000 n=30)    7.636 ± 1%  -1.63% (p=0.000 n=30)    7.645 ± 1%  -1.52% (p=0.000 n=30)
GoBuildFrontend            16.07 ± 0%    15.97 ± 0%  -0.63% (p=0.000 n=30)    15.98 ± 0%  -0.60% (p=0.000 n=30)    16.00 ± 0%  -0.47% (p=0.002 n=30)    15.93 ± 0%  -0.87% (p=0.000 n=30)
GoBuildFrontendLink        1.276 ± 1%    1.229 ± 1%  -3.73% (p=0.000 n=30)    1.226 ± 1%  -3.91% (p=0.000 n=30)    1.228 ± 1%  -3.81% (p=0.000 n=30)    1.219 ± 1%  -4.46% (p=0.000 n=30)
GopherLuaKNucleotide       21.77 ± 1%    20.52 ± 1%  -5.71% (p=0.000 n=30)    20.37 ± 1%  -6.40% (p=0.000 n=30)    20.26 ± 1%  -6.93% (p=0.000 n=30)    20.25 ± 1%  -6.99% (p=0.000 n=30)
MarkdownRenderXHTML       259.4m ± 2%   247.5m ± 1%  -4.60% (p=0.000 n=30)   249.4m ± 3%  -3.85% (p=0.004 n=30)   249.6m ± 2%  -3.79% (p=0.004 n=30)   244.4m ± 3%  -5.78% (p=0.000 n=30)
Tile38QueryLoad           512.9µ ± 0%   506.6µ ± 0%  -1.24% (p=0.000 n=30)   509.0µ ± 0%  -0.77% (p=0.000 n=30)   506.0µ ± 0%  -1.35% (p=0.000 n=30)   499.1µ ± 0%  -2.70% (p=0.000 n=30)
geomean                    2.095         2.043       -2.48%                   2.043       -2.45%                   2.033       -2.94%                   2.027       -3.25%

goroot.results: No PGO
goroot.pgo.baseline.results: PGO, no devirtualization
goroot.pgo.devirtbase.results: PGO, with devirtualization, prior to https://go.dev/cl/497175
goroot.pgo.devirtfix.results: PGO, with devirtualization, including https://go.dev/cl/497175
goroot.pgo.devirtexport.results: PGO, with devirtualization, including https://go.dev/cl/497175 and https://go.dev/cl/497175
It is hard to notice in the full list, but this fix did have quite a large impact on a few of these benchmarks:
                     │ goroot.results │    goroot.pgo.baseline.results     │   goroot.pgo.devirtbase.results    │    goroot.pgo.devirtfix.results    │  goroot.pgo.devirtexport.results   │
                     │     sec/op     │   sec/op     vs base               │   sec/op     vs base               │   sec/op     vs base               │   sec/op     vs base               │
EtcdPut                   32.78m ± 1%   32.41m ± 1%  -1.12% (p=0.001 n=30)   32.40m ± 0%  -1.17% (p=0.000 n=30)   31.62m ± 1%  -3.52% (p=0.000 n=30)   31.75m ± 1%  -3.14% (p=0.000 n=30)
EtcdSTM                   147.6m ± 0%   140.7m ± 0%  -4.62% (p=0.000 n=30)   140.4m ± 0%  -4.84% (p=0.000 n=30)   134.6m ± 0%  -8.77% (p=0.000 n=30)   134.3m ± 0%  -8.96% (p=0.000 n=30)
GopherLuaKNucleotide       21.77 ± 1%    20.52 ± 1%  -5.71% (p=0.000 n=30)    20.37 ± 1%  -6.40% (p=0.000 n=30)    20.26 ± 1%  -6.93% (p=0.000 n=30)    20.25 ± 1%  -6.99% (p=0.000 n=30)
Tile38QueryLoad           512.9µ ± 0%   506.6µ ± 0%  -1.24% (p=0.000 n=30)   509.0µ ± 0%  -0.77% (p=0.000 n=30)   506.0µ ± 0%  -1.35% (p=0.000 n=30)   499.1µ ± 0%  -2.70% (p=0.000 n=30)
geomean                   85.72m        82.99m       -3.19%                  82.88m       -3.32%                  81.28m       -5.19%                  81.02m       -5.48%


chore(deps): update common-dev-assets digest to 6db9456

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
1cc4056 -> 6db9456

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox. ⚠ Warning: custom changes will be lost.

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 1.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Error: P1001 migrate + MariaDB

Bug description
Hi,
I get next error when I want to migrate a basic schema to a MariaDB server with npx prisma migrate dev --name init:
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": MySQL database "test" at "xxx.xxx.xxx.xxx:3306"

Error: P1001

Can't reach database server at "xxx.xxx.xxx.xxx":"3306"

Please make sure your database server is running at "xxx.xxx.xxx.xxx":"3306".

Database is created, but tables are not created.
If I want to pull a database with npx prisma db pull everything works fine. Only migrate process fail.
I tried in several databases with MariaDB with same error. SSL is not being used.
(I have a localhost MySQL server with Mamp and process works perfectly, it seems that the problem is related only to MariaDB)
How to reproduce
npx prisma migrate dev --name init
Expected behavior
No response
Prisma information
schema.prisma
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model User {
  id              Int         @id @default(autoincrement())
  username        String      @unique
}

.env
<EMAIL_ADDRESS>Environment & setup

OS: Mac OS
Database: MariaDb
Node.js version: v16.13.2
Server connection: SSL is not being used
Server version: 10.6.5-MariaDB - MariaDB Server

Prisma Version
3.8.0

Can you enable debugging paste the output here? https://pris.ly/d/debugging Important you do so without the database already existing.

prisma:loadEnv project root found at /Applications/MAMP/htdocs/app-winnerodds-futbol/server/package.json +0ms
  prisma:tryLoadEnv Environment variables loaded from /Applications/MAMP/htdocs/app-winnerodds-futbol/server/.env +0ms
Environment variables loaded from .env
  prisma:engines binaries to download libquery-engine, migration-engine, introspection-engine, prisma-fmt +0ms
Prisma schema loaded from prisma/schema.prisma
  prisma:getConfig Using CLI Query Engine (Node-API Library) at<EMAIL_ADDRESS>+0ms
Datasource "db": MySQL database "test" at "185.129.xxx.xxx:3306"

  prisma:getDMMF Using CLI Query Engine (Node-API) at<EMAIL_ADDRESS>+0ms
  prisma:getConfig Using CLI Query Engine (Node-API Library) at<EMAIL_ADDRESS>+164ms
  prisma:getConfig Using CLI Query Engine (Node-API Library) at<EMAIL_ADDRESS>+20ms
  prisma:migrateEngine:rpc starting migration engine with binary: /Applications/MAMP/htdocs/app-winnerodds-futbol/server/node_modules/@prisma/engines/migration-engine-darwin +0ms
  prisma:migrateEngine:rpc SENDING RPC CALL {"id":1,"jsonrpc":"2.0","method":"devDiagnostic","params":{"migrationsDirectoryPath":"/Applications/MAMP/htdocs/app-winnerodds-futbol/server/prisma/migrations"}} +16ms
  prisma:migrateEngine:stderr {"timestamp":"2022-01-17T21:09:35.259957Z","level":"INFO","fields":{"message":"Starting migration engine RPC server","git_hash":"34df67547cf5598f5a6cd3eb45f14ee70c3fb86f"},"target":"migration_engine"} +0ms
  prisma:migrateEngine:rpc {
  prisma:migrateEngine:rpc   jsonrpc: '2.0',
  prisma:migrateEngine:rpc   error: {
  prisma:migrateEngine:rpc     code: 4466,
  prisma:migrateEngine:rpc     message: 'An error happened. Check the data field for details.',
  prisma:migrateEngine:rpc     data: {
  prisma:migrateEngine:rpc       is_panic: false,
  prisma:migrateEngine:rpc       message: "Can't reach database server at `185.129.xxx.xxx`:`3306`\n" +
  prisma:migrateEngine:rpc         '\n' +
  prisma:migrateEngine:rpc         'Please make sure your database server is running at `185.129.xxx.xxx`:`3306`.',
  prisma:migrateEngine:rpc       meta: [Object],
  prisma:migrateEngine:rpc       error_code: 'P1001'
  prisma:migrateEngine:rpc     }
  prisma:migrateEngine:rpc   },
  prisma:migrateEngine:rpc   id: 1
  prisma:migrateEngine:rpc } +5s
Error: Error: P1001

Can't reach database server at `185.129.xxx.xxx`:`3306`

Please make sure your database server is running at `185.129.xxx.xxx`:`3306`.

    at Object.<anonymous> (/Applications/MAMP/htdocs/app-winnerodds-futbol/server/node_modules/prisma/build/index.js:101420:25)
    at Object.handleResponse (/Applications/MAMP/htdocs/app-winnerodds-futbol/server/node_modules/prisma/build/index.js:101291:36)
    at LineStream3.<anonymous> (/Applications/MAMP/htdocs/app-winnerodds-futbol/server/node_modules/prisma/build/index.js:101380:16)
    at LineStream3.emit (events.js:314:20)
    at addChunk (_stream_readable.js:297:12)
    at readableAddChunk (_stream_readable.js:272:9)
    at LineStream3.Readable.push (_stream_readable.js:213:10)
    at LineStream3.Transform.push (_stream_transform.js:152:32)
    at LineStream3._pushBuffer (/Applications/MAMP/htdocs/app-winnerodds-futbol/server/node_modules/prisma/build/index.js:101177:17)
    at LineStream3._transform (/Applications/MAMP/htdocs/app-winnerodds-futbol/server/node_modules/prisma/build/index.js:101171:8)

@jdmoliner Can you please tell me where your MariaDB instance is hosted? Also, are you able to reach it via the command line cli or any other GUI from your computer?

@pantharshit00 MariaDB is hosted in a Cubenode VPS using CentOS 7. Yes I am able to use command line.

@pantharshit00 @janpio can you tell me if I can try to do something via command line?

We unfortunately have no good idea what could be going on here.
Can you npx prisma db pull on a MariaDB database that already exists and has tables?
Can you also use Prisma Client with that existing database?
(So basically: Is only migrate dev affected?)

@janpio exactly that. I can npx prisma db pull and use Prisma Client perfectly. Only migrate dev is affected. I can create a user for you in my database and try it yourself.

Happy to try - I am<EMAIL_ADDRESS>

There were no further similar reports, so we can consider this a one off problem.
If you still have this problem, please open a new issue. Thanks!


rust: fix splicing for rust hooks

This fixes a long standing issue where rust hooks behave differently when used inside buildRustPackage vs inside mkDerivation, which lead to surprising behavior, like for example the package being built for the wrong paltform or the linker not being found especially in cross compilation scenarios.
The reason for this inconsitency was, that buildRustPackage consumed the hooks in a non-spliced form, via this inherit statement, and therefore the usual platform shift on the hooks introduced by putting them in nativeBuildInputs was not applied here.
Thoug whenever the hook was used inside other builders like mkDerivation the platform shift did apply correctly as the hook was consumed via the spliced package set, introducing the inconsitecy.
Because of the non-spliced use in buildRustPackage, most rust hooks have been designed with the wrong build/host/target shift in mind which is fixed by this change.
Due to the inconsitent behavior between different builders, workarounds like rust.envVars, which were previously introduced, likely become obsolete by this change.
This likely fixes a bunch of cross compilation issues for rust packages that are not based on buildRustPackage but instead consume the hooks directly.
Done:

ensure that buildRustPackage consumes spliced hooks by using makeScopeWithSplicing' in make-rust-platform.nix.
refactor hooks to make them refer to correct build/host/target packages.
remove rust.envVars workaround from all rust hooks
implement tests for most rust hooks in /pkgs/test/rust-hooks

The newly added tests can be executed for native as well as cross system via:
nix-build -A tests.rust-hooks -A pkgsCross.riscv64.tests.rust-hooks

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

The diff is very big and hard to review. Can you please break this up into multiple commits, especially the reformatting?

The formatting is now a separate commit


feat: add support for additional pod annotations/labels

/assign @joshvanl

/ok-to-test

Hello @JoshVanL, could you have a look at this one, please?

Thanks @jaygridley!
/lgtm
/approve
/ok-to-test

CI broken?
/retest

Hi @JoshVanL, I did that, but the tests still seem to struggle to run.

/retest

/retest-required

@JoshVanL I think this is ready to go

@jaygridley Maybe you should rebase/squash all commits into a single one? And regen the Helm docs.

Cheers!
/lgtm


Example is failed with error /opt/entrypoint.sh: line 40: /tmp/java_opts.txt: Permission denied

Example: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/examples/spark-pi.yaml
Operator values
 operatorVersion: v1beta2-1.2.1-3.0.0
imagePullSecrets:
  - name: harbor-credentials
rbac:
  create: true
serviceAccounts:
  spark:
    name: spark
controllerThread: 2
enableWebhook: true
webhookPort: 443
nodeSelector:
  destiny: spark
enableMetrics: true

Driver logs
++ id -u
+ myuid=185
++ id -g
+ mygid=0
+ set +e
++ getent passwd 185
+ uidentry=
+ set -e
+ '[' -z '' ']'
+ '[' -w /etc/passwd ']'
+ echo '185:x:185:0:anonymous uid:/opt/spark:/bin/false'
+ SPARK_CLASSPATH=':/opt/spark/jars/*'
+ env
+ grep SPARK_JAVA_OPT_
+ sort -t_ -k4 -n
+ sed 's/[^=]*=\(.*\)/\1/g'
/opt/entrypoint.sh: line 40: /tmp/java_opts.txt: Permission denied

Seems related to https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/issues/1056.

Hi,
Getting the same error message even though I haven't used volume mounts to /tmp.
kubectl execution of Spark application gets successfully completed when run in default namespace and gives the below error when run in non-default namespace. I do have rbac.yml (having serviceaccount, clusterrole & clusterrolebinding) defined for execution in the non-default namespace.
Pasted the error msg below. Appreciate your advise in overcoming the error.
++ id -u

myuid=0
++ id -g
mygid=0
set +e
++ getent passwd 0
uidentry=root:x:0:0:root:/root:/bin/bash
set -e
'[' -z root:x:0:0:root:/root:/bin/bash ']'
SPARK_CLASSPATH=':/opt/spark/jars/*'
env
grep SPARK_JAVA_OPT_
sort -t_ -k4 -n
sed 's/[^=]=(.)/\1/g'
/opt/entrypoint.sh: line 40: /tmp/java_opts.txt: Permission denied

Hi, Can someone provide updates on this please to overcome the issue of pemissions denied..

I met the same problem. When I set "webhook. enable=true", I modified Spark's official Dockerfile, as follows:
Comment out two line
#ARG spark_uid=185
#USER ${spark_uid}

Hi, any solution here?

Any solution, anyone?
Application manifest:
apiVersion: sparkoperator.k8s.io/v1beta2
kind: SparkApplication
metadata:
  name: spark-etl
  namespace: sparks
spec:
  type: Python
  mode: cluster
  image: registry.io/spark-etl
  mainApplicationFile: local:///opt/spark/apps/main.py
  sparkVersion: 3.4.0
  driver:
    env:
      - name: PYSPARK_PYTHON
        value: /usr/bin/python3
    labels:
      version: 3.4.0
    podSecurityContext:
      runAsUser: 1000
    volumeMounts:
      - name: spark-work
        mountPath: /mnt/spark/work
  executor:
    labels:
      version: 3.4.0
    podSecurityContext:
      runAsUser: 1000
    volumeMounts:
      - name: spark-data
        mountPath: /mnt/spark/data
      - name: spark-work
        mountPath: /mnt/spark/work
  volumes:
    - name: spark-data
      emptyDir:
        sizeLimit: 5Gi
    - name: spark-work
      emptyDir:
        sizeLimit: 5Gi

Dockerfile:
FROM apache/spark-py:v3.4.0

USER root

ENV APP_HOME=/opt/spark/apps/

RUN mkdir -p $APP_HOME

WORKDIR $APP_HOME

COPY ./requirements.txt ./requirements.txt

RUN pip install --upgrade pip && \
    pip install -r requirements.txt

COPY ./main.py ./main.py

#USER 185

Error:
++ id -u
+ myuid=185
++ id -g
+ mygid=0
+ set +e
++ getent passwd 185
+ uidentry=
+ set -e
+ '[' -z '' ']'
+ '[' -w /etc/passwd ']'
+ echo '185:x:185:0:anonymous uid:/opt/spark:/bin/false'
+ '[' -z /opt/java/openjdk ']'
+ SPARK_CLASSPATH=':/opt/spark/jars/*'
+ env
+ grep SPARK_JAVA_OPT_
+ sort -t_ -k4 -n
+ sed 's/[^=]*=\(.*\)/\1/g'
/opt/entrypoint.sh: line 44: java_opts.txt: Permission denied
Stream closed EOF for sparks/spark-etl-driver (spark-kubernetes-driver)

Use the spark image (https://hub.docker.com/_/spark) as base image will work, also you might want to update imagePullPolicy to Always


Minor UI/UX and Usability Items...

Gotta say one of the easiest to get going (once i ran from source due to the other ticket issue lol)
Did notice a few UI/UX issues i wanted to mention that would be cool to see adjusted, not sure if it's windows issues only or all builds but since it's tauri i'd imagine it's the same across all...

No way to stop generation, I asked it a question, and wow it was determined to give me the full 2048 response lol and doesn't seem to be a way to stop generation, would be nice if there was a button next to the spinner to kill the current generation somehow. Especially if the LLM starts going down a rabbit hole that doesn't fulfill the original question intension...

The left panel could really use a max-width attribute it taking up 50% of the screen on a desktop for settings gets a little silly looking when maximized, in fact after loading the model it could probably collapse to the side behind a hamburger menu to really give a nice feel, as it is now it looks nice when it's small

Sending a message scrolls down but doesn't seem to fully scroll to show the message that was sent, it appears to focus at the middle of the first line of text that was sent at the bottom of the window oddly enough.

Would be really nice if the interface showed the tokens/s as part of the processing animations, as I noticed something odd and i'm not sure if it's an issue or my imagination, i loaded a model, was generating really fast, changed the system message, and started again and this time it felt slower, but i'm not sure if it actually is or if it's my imagination, and without a readout of tokens/s it's hard to tell.

Agreed on all suggestions. 1 may take a little longer, I'll start on 2-4 this next week!


PR to enable OWallet official support to Osmosis

What is the purpose of the change:

This PR to enable OWallet official support to Osmosis

Linear Task
Linear Task URL
Brief Changelog

Enable OWallet official support to Osmosis

Testing and Verifying
This change has been tested locally by rebuilding the website and verified content and links are expected

gm @jonator ,
could you please have a look to authorize this PR so we could clear all checks so it can be merge-able?

stale


Changing license text

Hi, first of thanks for the great lib!
Is there a plan to update license text in case they change over time? It can be small changes (i.e.. calendar year) or larger changes. As this is not a regular thing, I can imagine you could support a clean method, that removes the license for all files that contain the license. You probably can reuse most of your logic, and do not introduce complicated configurations (such as v1 vs v2 license text).

Hey, thanks for raising the issue, I hadn't though about use cases like that but you're right it would be a handy method to have in. I will try and get this in at some point in the future :+1:

Thanks a lot for the prompt reply 👍

V2.2.0 should now implement this feature.


Request support for Ebac 4000 Series Dehumifiers

Log Message

I’ve attached the yaml file I’ve used to set up this device in HA using your 2023.2.0 version, but I had to change its extension to .txt as it wouldn’t accept .yaml.
The user manual for this device (4000 series) can be found here
Information about DPS mappings

DPID
Description
Example
unit

1
Device switch
On
binary

2
Dehumidify Set Value
50%
%

4
Speed (Fan)
Low, High
List

5
Mode
Smart
List

6
Humidity
43%
%

7
Temperature
15C
C

9
Defrost
Off (not implemented)
binary

13
UV
Off (not implemented)
binary

17
Countdown
Continuous,4h
List

18
Time Left
0min, 239min
min

19
Fault
0 (probably not implemented)
E1-E4

20
Filter Reset
On (set Filter Life back to 100%)
binary

23
Filter Life
50%
%

27
Runtime
0min (never changes from 0, probably not implemented)
min

28
Reset Runtime
On but see above
binary

30
Bright Value
Reported LED display brightness either 2 (night)or 5(normal). Can’t be set.
%

101
Night
On (dims display and sets fan to low)
binary

102
Bucket
BUCKET_Full,BUCKET_OK
enum

103
Fan State
On (can’t be set but does change to reflect whether fan is on or not.)
binary

Structures from Tuya iot
{
"result": {
"category": "cs",
"functions": [
{
"code": "switch",
"lang_config": {
"false": "OFF",
"true": "ON"
},
"name": "开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "dehumidify_set_value",
"lang_config": {
"unit": "%"
},
"name": "Dehumidify Set Value\t",
"type": "Integer",
"values": "{"unit":"%","min":35,"max":80,"scale":0,"step":5}"
},
{
"code": "fan_speed_enum",
"lang_config": {
"high": "High",
"low": "Low"
},
"name": "Speed",
"type": "Enum",
"values": "{"range":["low","high"]}"
},
{
"code": "mode",
"lang_config": {
"boost": "",
"dehumidify": "Smart",
"drying": "Drying",
"manual": "Target"
},
"name": "Mode",
"type": "Enum",
"values": "{"range":["dehumidify","drying","boost","manual"]}"
},
{
"code": "defrost",
"lang_config": {
"false": "OFF",
"true": "ON"
},
"name": "Defrost",
"type": "Boolean",
"values": "{}"
},
{
"code": "uv",
"lang_config": {
"false": "OFF",
"true": "ON"
},
"name": "UV",
"type": "Boolean",
"values": "{}"
},
{
"code": "countdown_set",
"lang_config": {
"1h": "1h",
"2h": "2h",
"3h": "3h",
"4h": "4h",
"5h": "5h",
"6h": "6h",
"7h": "7h",
"8h": "8h",
"cancel": "Continuous"
},
"name": "Countdown",
"type": "Enum",
"values": "{"range":["cancel","1h","2h","3h","4h","5h","6h","7h","8h"]}"
},
{
"code": "filter_reset",
"lang_config": {
"false": "OFF",
"true": "ON"
},
"name": "Filter Reset",
"type": "Boolean",
"values": "{}"
},
{
"code": "runtime_total_reset",
"lang_config": {
"false": "OFF",
"true": "ON"
},
"name": "Reset(Runtime)",
"type": "Boolean",
"values": "{}"
},
{
"code": "bright_value",
"lang_config": {
"unit": "%"
},
"name": "Bright Value",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":10}"
},
{
"code": "night1",
"lang_config": {
"false": "",
"true": ""
},
"name": "Night",
"type": "Boolean",
"values": "{}"
}
My yaml file:
ebac_dj4000_dehumidifier.txt

Device is found correctly in 2023.2.2 and functions as I’d expect.
Thanks for adding this in so quickly, much appreciated.
I do have a query about the use of icons for the various dehumidifier modes. I selected mdi equivalents to match the icons used by the ebac app e.g.
- id: 5
  name: mode
  type: string
  mapping:
    - dps_val: dehumidify
      value: Smart
      icon: "mdi:alpha-s-circle-outline"
      icon_priority: 1
    - dps_val: drying
      value: Laundry
      icon: "mdi:tshirt-crew-outline"
      icon_priority: 3
    - dps_val: manual
      value: Target
      icon: "mdi:bullseye"
      icon_priority: 3
    - dps_val: boost
      value: Boost
      icon: "mdi:rocket-launch-outline"
      icon_priority: 3

But I notice you changed  this, is this to meet HA guidelines or other standard? I found it useful to have these as they change with the mode, and I don’t see an easy way to replicate this behaviour in the ui.
Thanks

It is to meet HA guidelines.  Dynamic icons seemed like a good idea when I started this, but I have since become aware that they interfere with HA's theming support.


Live demo editor

A side-by-side editor that compiles the Markdown as it's typed into an interactive document.

#29


Kmer array overflow. currKmerArrayOffset=0, kmerBufferPos=1024, kmerArraySize=1024.

Expected Behavior
mmseqs2 successfully linclust a 49 sequence protein fasta
Current Behavior
mmseqs2 complain Kmer array overflow
Steps to Reproduce (for bugs)
~/seqdb/JGI/script/mmseqs2/bin/mmseqs createdb DB.fasta DB -v 1
mkdir tmp
~/seqdb/JGI/script/mmseqs2/bin/mmseqs linclust DB DB_clu tmp -c 0.9 --cov-mode 1 --threads 1 -v 1

MMseqs Output (for bugs)
Kmer array overflow. currKmerArrayOffset=0, kmerBufferPos=1024, kmerArraySize=1024.
Error: kmermatcher died

Context
The input file DB.fasta and all intermediate files are attached.
linclust_3300021621.zip
Your Environment
Include as many relevant details about the environment you experienced the bug in.

Git commit used (The string after "MMseqs Version:" when you execute MMseqs without any parameters):
MMseqs2 Version: 481696b5f426f991211894d8a855bf9d60065c8f
Which MMseqs version was used (Statically-compiled, self-compiled, Homebrew, etc.):
https://mmseqs.com/latest/mmseqs-linux-sse41.tar.gz
Server specifications (especially CPU support for AVX2/SSE and amount of system memory):
fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt
Operating system and version:

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.7.1908 (Core)
Release:        7.7.1908
Codename:       Core

Thank you for the report. Could you please rerun it with the latest version?

oh the error still exists in the newest version

This bug only occurs if very small databases with a less then 1024 k-mers are clustered.
Quick fix is to increase the --kmer-per-seq 30

Could you give a command example to show how to increase the amount of k-mers per sequence e.g. to 30?

~/seqdb/JGI/script/mmseqs2/bin/mmseqs linclust DB DB_clu tmp -c 0.9 --cov-mode 1 --threads 1 -v 1 --kmer-per-seq 30

Should be fixed now. Thank you for reporting.
if you want a set of stickers (see https://twitter.com/thesteinegger/status/1201076220957315074), send me your address to themartinsteinegger at gmail com.

I am afraid the issue is not yet solved. I run mmseqs using the same method on the following set of sequence. mmseqs will again complain about "Kmer array overflow. currKmerArrayOffset=10240, kmerBufferPos=1024, kmerArraySize=11264." if  --kmer-per-seq 30 was not set
DB.fasta.zip

@kad-ecoli oh, there still seem to be cases where an off by one could occur. I pushed a fix. Could you try the latest version? Thank you for your patience. I got your mail address for the stickers! We will sent them out this week.

The new fix works fine. I also received the stickers. Thank you for the little foxes.