Add truncindex for sandbox, container and image store.

In Kubernetes, we never pass trunc index via CRI.
However, trunc index makes CLI tool easier to use, e.g. crictl does assume trunc index should work.
We should reuse docker https://github.com/moby/moby/blob/master/pkg/truncindex/truncindex.go, and add trunc index support in sandbox, container and image store: https://github.com/kubernetes-incubator/cri-containerd/tree/master/pkg/store/image

Anyone feel free to pick up this if you are interested. :)

I would like to try it.  Are there deadline?  @Random-Liu

Nope! Take your time.

Where do we add test case? Look like we should not add it in cri-tools  and unit tese.
@Random-Liu

@yanxuean What kind of test case do you mean? For this feature, I think unit test is enough. :)

Since, this means that id passed to CRI may be different from the real id. So please make sure all CRI functions are using ID from store instead of the id passed-in directly.

Ithink we should test it like it's user(e.g. crictl).Do you mean wo only test store object?
But I modified sandboxList function because there is sandboxId in filter too :)

@yanxuean Yeah, for now only store object. Because this behavior is not actually defined in CRI, I don't think we want to add it to CRI validation test.

ok. Agree with you.
Should we prohibit it in crictl?
# crictl sandboxes --help
NAME:
   crictl sandboxes - List sandboxes

USAGE:
   crictl sandboxes [command options] [arguments...]

OPTIONS:
   --id value                filter by pod sandbox id
   --state value, -s value   filter by pod sandbox state
   --label value, -l value   filter by key=value label
   --verbose, -v             show verbose info for sandboxes
   --quiet                   list only sandbox IDs
   --output value, -o value  Output format, One of: json|yaml|table

ok. Agree with you. Should we prohibit it in crictl?

We could add the truncindex for filter in another PR. We do need it.


this.nav.getActive().component.name returns letter

Bug Report
Ionic Info
cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-plugin-proxy : 1.5.5
    @ionic/cli-utils        : 1.19.1
    ionic (Ionic CLI)       : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 6.4.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 25.2.5
    Node              : v6.11.2
    npm               : 4.6.1
    OS                : macOS High Sierra
    Xcode             : Xcode 9.4 Build version 9F1027a

Environment Variables:

    ANDROID_HOME     : /Users/ronaiza.cardoso/Library/Android/sdk
    HTTP_PROXY       : not set
    http_proxy       : not set
    HTTPS_PROXY      : not set
    https_proxy      : not set
    IONIC_HTTP_PROXY : not set
    PROXY            : not set
    proxy            : not set

Misc:

    backend : pro

Describe the Bug
When I build the project with --prod the method this.nav.getActive().component.name returns letter instead component name.
Steps to Reproduce
build project with --prod
Expected Behavior
return compoment name

https://github.com/ionic-team/ionic/blob/v3/src/navigation/view-controller.ts#L243
this.nav.getActive() should return a ViewController.
So.. this.nav.getActive().name should return the name.

I wonder if it has to do with minification and obfuscation during prod build. The class names are probably different in this case.

As @maxtacco said, this is due to minification in the build process. I will note, that you should not rely on ViewCtrl.name, as there is no way to protect it from being minified


[RFE] Use Cluster Role Aggregation to Implement Role Inheritance

Request description:
From the Rancher documentation:
When defining a custom role, you can grant access to specific resources or specify roles from which the custom role should inherit. A custom role can be made up of a combination of specific grants and inherited roles.
We want to continue with this exact functionality, but in a way that reduces the number of resources in a customer's system.
Actual behavior:
When a binding to a custom role that inherits from other cluster roles is created, Rancher creates a role binding to each of the specified cluster roles. So if a custom role inherits from 5 roles, each binding to that custom role creates 6 role bindings (1 to the custom role, and 1 to each inherited role). That can lead to an excess of role bindings, which are usually the most numerous resource on a customer's system.
Expected behavior:
Instead of creating a RoleBinding to each inherited Role, one aggregated cluster role (ACR) can be created instead. By applying labels to each of the inherited Roles, the ACR can then select each of them. Then a single RoleBinding can be created binding the User to that ACR. No matter how nested the inheritance, the number of RoleBindings stays fixed. It does introduce an additional ClusterRole, but since the most common use case is to create many Users, each with the same Role, the number of RoleBindings grow much faster. Reducing BindingRoles outweighs the extra ACR created.{}

Note For QA: Validation of this issue should cover checking for regressions in the UI around inherited roles (see UX considerations in RFC for details)

cc @rancher-max since the UI validation is handled by the UI QA team


accepts other stores

Use store_with_historical_data_support(default memory store with eu_central_bank_historical_data_support mixin) as default store, and allow users to use their custom store.
related to #61

Someone might want to use a db like ActiveRecord or initialize the memory store with some options. In a multi process application, each process has its own memory space so it might be necessary to have a single store in a db or file to make sure the rates stay consistent.

makes perfect sense, thank you!


Test issue

Issues related to membraneframework/membrane_portaudio_plugin are stored in membrane_core, so we close this issue here and we encourage you to open it there.


wide & deep separation + extra calibration in TE

Thanks for this PR, @umbnat92. I just have two minor concerns,

Could you add some unit tests for the deep and wide? Just a quick likelihood check for each is fine.
By default this code shouldn't print, or at least it should have the option of turning off printing. Otherwise some samplers will have output logs that consist of 10^6 of your debug statement. Maybe just add a debug_print option?


RandomCoin trait simplification

The RandomCoin trait seems to be too flexible for its intended use. More specifically, the reseed_with_int() method is used only in the context of reseeding with the PoW produced through grinding. Moreover, the draw_integers(...) method is always run right after reseed_with_int() in order to generate query indices for the FRI protocol. Thus it seems reasonable to move the logic of reseed_with_int() inside of draw_integers(...). More specifically, the signature of draw_integers should be:
fn draw_integers(
    &mut self,
    num_values: usize,
    domain_size: usize,
    pow_nonce: u64,
) -> Result<Vec<usize>, RandomCoinError>

and the first thing draw_integers does is reseed with pow_nonce before generating the integers.
On the verifier side, the code could look like
let pow_nonce = channel.read_pow_nonce();

// make sure the proof-of-work specified by the grinding factor is satisfied
if public_coin.check_leading_zeros(pow_nonce) < air.options().grinding_factor() {
    return Err(VerifierError::QuerySeedProofOfWorkVerificationFailed);
}

// draw pseudo-random query positions for the LDE domain from the public coin; in the
// interactive version of the protocol, the verifier sends these query positions to the prover,
// and the prover responds with decommitments against these positions for trace and constraint
// composition polynomial evaluations.
let query_positions = public_coin
    .draw_integers(air.options().num_queries(), air.lde_domain_size(), pow_nonce)
    .map_err(|_| VerifierError::RandomCoinError)?;

Closed by #214.


Update variation.conf

changed variation to variant in the text

if we want to be consistent, it probably needs to be changed for the other endpoints (VEP, GA4GH, overlap) as well as in the name space

Hi Mag,
Ahh good point!
For this page http://rest.ensembl.org/documentation/info/variation_id
Where can I edit this?
I think can leave the title as 'Variation' and the object name as
'variation' e.g. 'variation features'. (I know it isn't perfect).
I changed vep.conf and overlap too.
Fiona
Fiona Cunningham, PhD
Variation Annotation Coordinator,
European Bioinformatics Institute (EMBL-EBI)
www.ensembl.org || www.lrg-sequence.org
On 4 August 2015 at 14:09, Magali Ruffier<EMAIL_ADDRESS>wrote:

if we want to be consistent, it probably needs to be changed for the other
endpoints (VEP, GA4GH, overlap) as well as in the name space
—
Reply to this email directly or view it on GitHub
https://github.com/Ensembl/ensembl-rest/pull/62#issuecomment-127599065.

the variation.conf file should have all the mentions of variation from the http://rest.ensembl.org/documentation/info/variation_id page
https://github.com/fcunningham/ensembl-rest/blob/patch-1/root/documentation/variation.conf#L3
https://github.com/fcunningham/ensembl-rest/blob/patch-1/root/documentation/variation.conf#L13
...
unless you're talking about changing the url as well? I would rather avoid that if we can, as it would require all our users to update their scripts

Ok I think I did everything but let me know if you need more. No, no, no,
to changing the URLs ;o)
Fiona
Fiona Cunningham, PhD
Variation Annotation Coordinator,
European Bioinformatics Institute (EMBL-EBI)
www.ensembl.org || www.lrg-sequence.org
On 4 August 2015 at 14:33, Magali Ruffier<EMAIL_ADDRESS>wrote:

the variation.conf file should have all the mentions of variation from the
http://rest.ensembl.org/documentation/info/variation_id page
https://github.com/fcunningham/ensembl-rest/blob/patch-1/root/documentation/variation.conf#L3
https://github.com/fcunningham/ensembl-rest/blob/patch-1/root/documentation/variation.conf#L13
...
unless you're talking about changing the url as well? I would rather avoid
that if we can, as it would require all our users to update their scripts
—
Reply to this email directly or view it on GitHub
https://github.com/Ensembl/ensembl-rest/pull/62#issuecomment-127612929.

What about the example parameters?
id	String	Variation id	-	rs56116432
Do you want to change it to Variant id?
It's line 13 in this file
https://github.com/fcunningham/ensembl-rest/blob/patch-1/root/documentation/variation.conf#L13

Yes that would make sense. It just looked a bit like code and i was scared
I would break something. Do you want me to do it or will you?
Fiona
Fiona Cunningham, PhD
Variation Annotation Coordinator,
European Bioinformatics Institute (EMBL-EBI)
www.ensembl.org || www.lrg-sequence.org
On 4 August 2015 at 14:41, Magali Ruffier<EMAIL_ADDRESS>wrote:

What about the example parameters?
id String Variation id - rs56116432
Do you want to change it to Variant id?
It's line 13 in this file
https://github.com/fcunningham/ensembl-rest/blob/patch-1/root/documentation/variation.conf#L13
—
Reply to this email directly or view it on GitHub
https://github.com/Ensembl/ensembl-rest/pull/62#issuecomment-127616593.

if you can add this to this pull request, we can have all the changes in one place

Ok done.
Fiona
Fiona Cunningham, PhD
Variation Annotation Coordinator,
European Bioinformatics Institute (EMBL-EBI)
www.ensembl.org || www.lrg-sequence.org
On 4 August 2015 at 14:46, Magali Ruffier<EMAIL_ADDRESS>wrote:

if you can add this to this pull request, we can have all the changes in
one place
—
Reply to this email directly or view it on GitHub
https://github.com/Ensembl/ensembl-rest/pull/62#issuecomment-127618391.

looks good, thank your


ImportError: cannot import name _psutil_linux

Hello,
I ran into an error when tried to use below command
CodeChecker log -b "cd ../../ && make fastclean && make all -j$ncpu" -o $where/Step_1_make.json
Error:
[WARNING] [2017-12-28 14:49] - Couldn't import module for subcommand 'log'... ignoring.
ImportError: cannot import name _psutil_linux
I don't see this error when I run the command for the first time. When I re-run the command then I see this issue.
I have psutils installed in my machine!

psutil doesn't have to be installed on your machine, but in the environment CodeChecker is running from. Make sure that every time you issue the CodeChecker command, you have the virtual environment sourced.

thanks for the comment. I made 2 scripts. utils.sh and script1.sh
utils.sh
#!/bin/bash
codechecker_path="$PWD/codechecker"
ncpu=nproc
if [ -z "$ncpu" ] ; then
ncpu="1"
fi
export PATH="$codechecker_path/build/CodeChecker/bin:$PATH"
source "$codechecker_path/venv/bin/activate"
and script1.sh
source "utils.sh"
where=pwd
CodeChecker log -b "cd ../../ && make fastclean && make all -j$ncpu" -o $where/make.json
I think I am sourcing virtual environment in utils.sh. Please let me know if I am missing any point.

Hello, I looked further and I see I am in virtual environment but looks like virtual environment is missing some psutil files.
At codechecker/venv/local/lib/python2.7/site-packages/psutil location, I don't see _psutil_linux file and that's the reason I see import failure.
Is there any work around ? or is it a known issue ?

Haven't seen this issue before, assuming people properly set up their environments, by using make venv. You can try manually installing the dependencies, after sourceing the virtualenv you can do in the CodeChecker source folder: pip -r install .ci/python_requirements (or pip install -r, I'm not sure about the order of the arguments). But this is exactly what make venv should have done.
I did a fresh make venv is a subfolder on my computer and the thing sets up properly. _psutil_linux is a binary:
-rwxrwxr-x  1 whisperity whisperity 47752 Dec 28 20:27 _psutil_linux.so*

Worst case, could you try renaming (or entirely removing) the venv folder and then execute make venv? It could be that for some nasty reason your computer can't compile this binary.

thanks for the comments. I didn't realized that _psutil_linux is a .so file. In the make file, looks like I am deleting all .so files which resulted in this problem. I modified my make file rules and it works now.

🙂 Make (ha-ha) sure that CodeChecker is way outside your project folder, so that no make commands can touch what CodeChecker runs from.


Can not fire the event if the sender is other kind of Bot

I use Google Calendar Bot (http://slackhq.com/post/124767707715/googlecalendar) from Slack in order to send the message to my bot.
But the botkit did not fire the event.
controller.on('direct_message',function(bot,message) {
// Do something here
});

It only work if the real person send a message

Finally I can use bot_message event
controller.on('bot_message', function(bot, message) {
    // Do something here
});

There was a problems that message.text always return null.

@ZuzooVn I was hitting this problem too..in my case, the bot was sending a message that had no text but an attachment field with a fallback in it..maybe yours is doing something like this too?

@gdcohan Me too, we can not get the text because the bot did not send any text. Can you get the text in the attachment in below image?

@gdcohan According to https://api.slack.com/events/message/bot_message, I think we can not get the attachments content.

@gdcohan Finally I can get the attachments content with below code:
controller.on('bot_message', function(bot, message) {
    console.log('message.attachments: ' + message.attachments);
    var attachment = message.attachments[0];
    console.log('attachments.title: ' + attachment.title);
    console.log('attachments.text: ' + attachment.text);
});```

Did bot_message go away? I don't see it anywhere in the code and it's not fired when I receive a message from another bot.

@donavon The above code snippet works for me.


Refactor freqs_cis into freqs_cos and freqs_sin

Refactor freqs_cis into freqs_cos and freqs_sin
remove complex64 for ONNX export compatibility

Can the updated model be compiled with the torch.compile() function?

The torch.polar solution was so elegant 😭

The torch.polar solution was so elegant 😭

yes, agree. But currently triton does not support complex value which is the backend of pytorch.

@ai-doge
        serialize(self.freqs_cis.real[:p.max_seq_len])
        serialize(self.freqs_cis.imag[:p.max_seq_len])

With your change, this freqs_cis is not registered here These two lines should be fix too. As I tried to compile and it failed at this.

Thank you for pointing out the error, the issue has been fixed.

Thank you for this PR. The official Meta implementations of Llama2 should have imo used an implementation along these lines. Complex64 does not have enough existing support on ONNX, torch.compile, and is unnecessarily confusing to (I expect most) people not familiar with complex numbers.

Hey @ai-doge @dongwangdw Are you able to use torch.compile() on the updated code? I get a stack-trace, where it hits the config.cache_size_limit (64)... thanks!


PHOENIX-7303 fix CVE-2024-29025 in netty package

This change will fix CVE-2024-29025

merged manually.


Flash sales - Get 10 random products

An API endpoint to retrieve 10 random products for flash sales category. The endpoint should handle price slash offer closing date

I would like to work on this endpoint

I'm interested in this.


chore: bdd-nh-1572959588 to 0.0.1

chore: Promote bdd-nh-1572959588 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Cannot activate harvesting via symbol desktop wallet

Prerequisites:
After the keys are linked to a node, the harvesting status says KEYS LINKED.
To activate harvesting via symbol desktop wallet v1.0.0, users are prompted to enter the password twice to confirm activation.
The problem:
After entering the password for the second time, the "sign transaction" pop-up dialog stays and nothing happens.
The harvesting status stays at KEYS LINKED.
Screenshot:

Error shown in the console:

UPDATE: After restarting the desktop wallet, it's now possible to sign the transaction and activate harvesting.

@fajarvm I was unable to reproduce on 1.0.3 so I'm closing. Please ping me if you still can reproduce.


cannot resolve codehaus.woodstox

Hi,
In our project I got the following error when using coursier:
[error] 1 error(s):
[error]   org.codehaus.woodstox:woodstox-core-asl:${woodstox_version}:
[error]     /home/eike/.sbt/0.13/plugins/target/resolution-cache/org.codehaus.woodstox/woodstox-core-asl/${woodstox_version}/resolved.xml.xml
[error]     Not found
[error]     /home/eike/.ivy2/local/org.codehaus.woodstox/woodstox-core-asl/${woodstox_version}/ivys/ivy.xml
[error]     https://repo1.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/$%7Bwoodstox_version%7D/woodstox-core-asl-$%7Bwoodstox_version%7D.pom
[error]     http://repo.typesafe.com/typesafe/releases/org/codehaus/woodstox/woodstox-core-asl/$%7Bwoodstox_version%7D/woodstox-core-asl-$%7Bwoodstox_version%7D.pom
[error]     http://maven.aspose.com/repository/ext-release-local/org/codehaus/woodstox/woodstox-core-asl/$%7Bwoodstox_version%7D/woodstox-core-asl-$%7Bwoodstox_version%7D.pom
[trace] Stack trace suppressed: run last frontend/*:update for the full output.

I think its strange that it looks in .ivy2/local and not .ivy2/cache, no?  We have a sbt project with 3 subproject, where one of them is a play app. We use sbt 0.13.11. Unfortunately, I cannot share the complete sbt config… When I disable the coursier plugin (and remove org.codehaus.* from ivy cache) it works:
[info] downloading https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar ...
[info]  [SUCCESSFUL ] org.codehaus.plexus#plexus-utils;1.5.6!plexus-utils.jar (84ms)
[info] downloading https://repo1.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/4.4.0/woodstox-core-asl-4.4.0.jar ...
[info]  [SUCCESSFUL ] org.codehaus.woodstox#woodstox-core-asl;4.4.0!woodstox-core-asl.jar (70ms)
[info] downloading https://repo1.maven.org/maven2/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar ...

It turns out that the woodstox-asl dependency is pulled in by fhir. A build.sbt with following content reproduces the issue:
libraryDependencies ++= Seq(
  "ca.uhn.hapi.fhir" % "hapi-fhir-base" % "0.8"
)

This is an very old version, the issue doesn't arise when using fhir 1.5.
Thanks and regards
Eike

This was fast, thank you!

Yeah, that was a trivial bug. (The regex matching Maven properties names only accepting a restricted set of characters, which it shouldn't have done...)


[devtools] update security guide

What's changed, or what was fixed?

redirects /web/tools/chrome-devtools/security to /web/tools/chrome-devtools/security/
updates screenshots
reorganizes content

Fixes: N/A
Target Live Date: 2019-03-13

[x] This has been reviewed and approved by @kaycebasques
[x] I have run npm test locally and all tests pass.
[x] I have added the appropriate type-something label.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @petele

Whoops!
There were 16 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/tools/chrome-devtools/security.md - Unable to read file, was it deleted?
src/content/en/tools/chrome-devtools/images/network-one.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/network-one.png'
src/content/en/tools/chrome-devtools/images/origin-detail-non-secure.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/origin-detail-non-secure.png'
src/content/en/tools/chrome-devtools/images/origin-detail-secure.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/origin-detail-secure.png'
src/content/en/tools/chrome-devtools/images/overview-mixed.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/overview-mixed.png'
src/content/en/tools/chrome-devtools/images/overview-non-secure.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/overview-non-secure.png'
src/content/en/tools/chrome-devtools/images/overview-secure.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/overview-secure.png'
src/content/en/tools/chrome-devtools/images/view-certificate.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/tools/chrome-devtools/images/view-certificate.png'
src/content/en/tools/chrome-devtools/security/index.md#L54 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L57 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L58 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L62 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L63 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L71 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L72 - Line must be at most 100 characters
src/content/en/tools/chrome-devtools/security/index.md#L99 - Line must be at most 100 characters

:tada: This has been pushed live to https://developers.google.com/web/


Request for clarification re llama.cpp use

Hey there!
First up, great job on the work you've done! It's really impressive
I've got a short clarification question about the llama-cli tool. As far as I understand, it uses llama.cpp to load llama-based models and runs them on a CPU-only basis. This gives an OpenAI-compatible API, which now works with tools like Chatbot-UI, thanks to your recent tweaks.
My main question is whether this setup works only with small-scale local machines using CPUs. We've got some bigger GPU clusters at our workplace, and we're testing different models in the 30B and 65B range. It'd be awesome if we could also make use the OpenAI API, so I'm trying to find a good starting point. Any pointers would be super helpful!
Also, if I'm not mistaken, the llama.cpp foundation of your repo might not work for our needs. Please let me know if I've got that wrong.
Thanks a lot and greetings from Berlin!
Robert

Hey @Boehmer86 , thanks!

My main question is whether this setup works only with small-scale local machines using CPUs. We've got some bigger GPU clusters at our workplace, and we're testing different models in the 30B and 65B range. It'd be awesome if we could also make use the OpenAI API, so I'm trying to find a good starting point. Any pointers would be super helpful!

Currently works on CPU only. This is due to llama.cpp not supporting GPUs, however, support for GPUs is being discussed: https://github.com/ggerganov/llama.cpp/discussions/915

Also, if I'm not mistaken, the llama.cpp foundation of your repo might not work for our needs. Please let me know if I've got that wrong.

When llama.cpp will add support for GPU, that should be possible as well here, we are using https://github.com/go-skynet/go-llama.cpp which sits very close to the upstream code, by just calling C/C++ directly for inferencing, that makes integration really easy down the line.
Cheers!

@Boehmer86 would you be open to share your Chatbot-UI setup? would be nice to see it included here directly!

Thanks a lot for the quick reply @mudler :-)
It answered my key request for clarification!
I take from it that i would need to write my own OpenAI API interface for the FastChat server to make it work.
My setup is as follows:
I use the standard https://github.com/mckaywrigley/chatbot-ui repo and specify the OpenAI_API_Host Variable to point to our local GPU cluster running a FastChat API server based on the https://github.com/lm-sys/FastChat. This framework is the same for most models, Vicuna just adapted it slighty but it still works well with LLaMA and Alpaca.
We use the raw models as provided by HuggingFace and apply the necessary patches (weights).
Maybe it's interesting to note that we also run https://github.com/oobabooga/text-generation-webui/ to host basically 'all' other available models. I have to be honest and say that i did not yet check the backend of the 'text-generation-webui' to see if they maybe not somehow implement the OpenAI API.
So far my gut tells me you are the only one who wrote such a nice piece of code to make it work but due to llama.cpp its exclduing the folks who use their GPU's to do the heavy lifting. For us performance and training was/if key thus the GPUs seem to do a really job with a high count of tokens per second.
With many greetings from Berlin
Robert

Thanks @Boehmer86 ! Appreciate your inputs! Closing the issue then :)
Greetings from Italy!

@Boehmer86 now the project support GPU, did you tried it out? =)


Failed to create provisioner: Failed to get Azure Cloud Provider. GetCloudProvider returned  instead

following the guide here on a k8s the I installed on an azure VM myself, my PVC have this error and stays in pending mode, any idea how to resolve it?

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

ID: a57e48b4-dc33-0b9d-b773-42ce7d2bffd0
Version Independent ID: e912ac2d-cf6a-0b54-4697-1940b1270874
Content: Dynamically create a Files volume for multiple pods in Azure Kubernetes Service (AKS)
Content Source: articles/aks/azure-files-dynamic-pv.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

Thanks for the ask  . At this time we are reviewing the ask and we will reply back as soon as we can .

@soheilade Can you please elaborate more on the issue.
Are you using AKS OR you have installed k8s on a Azure VM and trying the tutorial for creating a persistent volume claim.

I have installed a k8s cluster myself on a vm and i am trying the tutorial for creating an storgaeclass and PVC. when I run kubectl get sc, it shows me that my storage class exist but when I run kubectl get pvc, they have pending status and the error above is displayed when i describe the PVCs.

@soheilade If it a AKS environment will have a Service Principle that will be used to allocate resources.
In your case as it is on VM, did you specify any Service principle for the cluster you have created.

no, could you please advise how can I create this service principle?

@soheilade Can you use AKS (managed kubernetes service from Azure)?
In AKS you will be charged only for the nodes which you run. Master (control plane) is free.
In AKS, These management activities are taken care

@soheilade Using AKS is recommended, try using AKS and let us know if you run into any issues following the document.
We will close this issue now. If there are further questions on this, please tag my name in a comment. I will reopen the issue and we will be glad to assist you further on this.

I am seeing this same issue, with minikube on a physical Windows 10 version 1909 with Hyper-V.
> kubectl describe pvc
Name:          ps-pvc
Namespace:     default
StorageClass:  ps-sc
Status:        Pending
Volume:
Labels:        <none>
Annotations:   volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/azure-file
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode:    Filesystem
Mounted By:    <none>
Events:
  Type     Reason              Age                 From                         Message
  ----     ------              ----                ----                         -------
  Warning  ProvisioningFailed  28s (x9 over 4m5s)  persistentvolume-controller  Failed to create provisioner: Failed to get Azure Cloud Provider. GetCloudProvider returned <nil> instead

> kubectl describe sc
Name:            ps-sc
IsDefaultClass:  No
Annotations:     kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"ps-sc"},"parameters":{"location":"eastus2","secretName":"volume-azurefile-storage-secret","skuName":"Standard_LRS","storageAccount":"dsta001persistentvolume"},"provisioner":"kubernetes.io/azure-file"}

Provisioner:           kubernetes.io/azure-file
Parameters:            location=eastus2,secretName=volume-azurefile-storage-secret,skuName=Standard_LRS,storageAccount=<edited out>
AllowVolumeExpansion:  <unset>
MountOptions:
  dir_mode=0777
  file_mode=0777
  uid=0
  gid=0
  mfsymlinks
  cache=strict
ReclaimPolicy:      Delete
VolumeBindingMode:  Immediate
Events:             <none>

> kubectl  describe secrets/volume-azurefile-storage-secret
Name:         volume-azurefile-storage-secret
Namespace:    default
Labels:       <none>
Annotations:
Type:         Opaque

Data
====
azurestorageaccountname:  23 bytes
azurestorageaccountkey:   88 bytes

> minikube version
minikube version: v1.11.0
commit: 57e2f55f47effe9ce396cea42a1e0eb4f611ebbd

> kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

> docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:23:10 2020
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:29:16 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

same issue here using rke and i cant change to aks cluster

same here, and no, changing to AKS is not an option neither

@soheilade Can you use AKS (managed kubernetes service from Azure)?
In AKS you will be charged only for the nodes which you run. Master (control plane) is free.
In AKS, These management activities are taken care

we should be offered a solution to the problem, not work around as AKS may not be an option but using azure storage is an option wherever k8s cluster is hosted.

We have VM running on azure with our own implementation of Kubernetes with out AKS.The issue we are unable to connect Azure File storage our cluster for persistence , is AKS is the only option?

Has anybody found a solution?

This may help with configuring the azure cloud provider and configure a service principal in AAD
https://medium.com/swlh/using-the-azure-kubernetes-provider-in-a-vm-based-k8s-cluster-fdf941b86d69


givexp() does not level you up correctly in the level interface

Forgot to close this. Should be addressed with the stat changes a few weeks ago. Reopen if bugged.


Bug: multiple connection objects can cause the app to hang

Description
If multiple request objects are created before the first one calls one of the cached data access methods, e.g., Request.json() et. al, then the 2nd one to attempt to access the data will cause the request to block on receive() for a 2nd time, waiting for message that will never come.
The reason is that we only check whether the data has been cached upon instantiation of the connection objects, not when the connection object attempts to access the request data.
URL to code causing the issue
No response
MCVE
from typing import Dict

from litestar import Litestar, Request, post
from litestar.types.asgi_types import ASGIApp, Message, Receive, Scope, Send

def some_middleware(app: ASGIApp) -> ASGIApp:
    async def middleware(scope: Scope, receive: Receive, send: Send) -> None:
        request = Request(scope, receive, send)

        async def wrapped_send(message: Message) -> None:
            await request.json()
            # do something with data
            await send(message)

        await app(scope, receive, wrapped_send)

    return middleware

@post(middleware=[some_middleware])
async def root(request: Request) -> Dict[str, str]:
    return request.json()

app = Litestar(route_handlers=[root], debug=True)

Steps to reproduce
1. run the above application
2. make any POST request to `/`

Screenshots
"![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs
No response
Litestar Version
main
Platform

[X] Linux
[X] Mac
[X] Windows
[ ] Other (Please specify in the description above)

[!NOTE]
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh Litestar dashboard

If you would like to see an issue prioritized, make a pledge towards it!
We receive the pledge once the issue is completed & verified
This, along with engagement in the community, helps us know which features are a priority to our users.

What if we simply made the connection objects singletons? I.e. modify the __new__ method to cache the object in the scope upon instantiation, and reuse that instance for subsequent instantiations?

What if we simply made the connection objects singletons? I.e. modify the __new__ method to cache the object in the scope upon instantiation, and reuse that instance for subsequent instantiations?

Caching a connection in scope is the direction I was heading too (see https://github.com/litestar-org/litestar/pull/2718) - leveraging __new__() to abstract this is an interesting idea and definitely worth a look!

Caching a connection in scope is the direction I was heading too (see #2718) - leveraging __new__() to abstract this is an interesting idea and definitely worth a look!

Will have to think about potential side effects and edge cases a bit, but wouldn’t this allow us to greatly simplify the whole process? If we cache the connection objects themselves, we wouldn’t need to do cache the individual parts (urls, headers, cookies) in the scope anymore.
The only problem I see there is that since everything inherits from the base connection, of you create a Request, the cached things won’t be reused. We could change this by switching from inheritance to compositions and make the underlying connection an instance attribute rather than a base class but that would be breaking.

I've elected to fix the current behavior by moving the initial scope cache checks from within __init__() to inside the access methods, as it is a pretty simple fix this way, and more aligned with how we usually configure these sort of self._object_cache_attributes (that is, setting them to empty and populating them on first access).


update storybook to 6.4.10

related to https://github.com/tablecheck/tablekit/pull/82

:rocket: Issue was released in<EMAIL_ADDRESS><EMAIL_ADDRESS>:rocket:

:rocket: Issue was released in<EMAIL_ADDRESS><EMAIL_ADDRESS>:rocket:


haskell-backend test failures when running test suite with updated equation format and latest llvm-backend

The new equation format implemented here causes several test suite issues failures. I've attached the typescript file running with the latest llvm-backend commits. This file contains the output from running make -j8 -O -k in the regression-new directory in the k repo.
typescript.txt

The new encoding format: https://github.com/kframework/k/issues/1945
The changes to ModuleToKore: https://github.com/kframework/k/pull/2061

Try to replicate the issue @SchmErik found:
/home/erik/k/k-distribution/bin/kompile --syntax-module TEST --no-exc-wrap --backend haskell  test.k -d .
Error:
  module 'TEST':
  axiom declaration:
  \implies (definition.kore 6599:21):
  \equals (definition.kore 6623:26):
  \and (definition.kore 6625:12):
  (definition.kore 6625:12, definition.kore 228:128):
    Expecting sort R but got SortString{}.

It might be as simple as switching the \equals parameters.

Oh, so this failure is on the PR for updating the frontend to generate the new equation encoding, right? I initially didn't understand where the error was coming from. If that's the case, we need to make the backend accept both encodings until we get this frontend update released. @dopamane

I am able to reproduce the issue. I do not think switching the \equals parameters is the solution. According to the documentation it is correct; see kore-implicits.md. Therefore I am working on updating the backend to support both encodings.

After looking through the changes made to the backend, it turned out that the backend already accepts both encodings, so this is either a bug in the frontend or in the backend.
I believe the error is coming from assertSameSort. @dopamane can you please add a comment with the axiom declaration from definition.kore this fails on?

There are multiple test failures that report Expecting sort R but got _. Here is the axiom declaration from regression-new/issue-1879-kproveTrans/haskell:
    \and{R}(
      \equals{SortBool{},R}(
        Lbl'Unds-GT-Eqls'Int'Unds'{}(VarI1:SortInt{},VarI2:SortInt{}),
        \dv{SortBool{}}("true")),
      \and{R} (
          \in{SortInt{}, R} (
            X0:SortInt{},
            VarI1:SortInt{}
          ),\and{R} (
          \in{SortInt{}, R} (
            X1:SortInt{},
            VarI2:SortInt{}
          ),
          \top{R} ()
        ))),
    \equals{SortInt{},R} (
      LblminInt'LParUndsCommUndsRParUnds'INT-COMMON'Unds'Int'Unds'Int'Unds'Int{}(X0:SortInt{},X1:SortInt{}),
      \and{R} (
        VarI2:SortInt{},
        \top{R}())))
  [org'Stop'kframework'Stop'attributes'Stop'Location{}("Location(1114,8,1114,57)"), org'Stop'kframework'Stop'attributes'Stop'Source{}("Source(/home/davos/github.com/kframework/k/k-distribution/target/release/k/include/kframework/builtin/domains.md)"), org'Stop'kframework'Stop'definition'Stop'Production{}("syntax #RuleContent ::= #RuleBody \"requires\" Bool [klabel(#ruleRequires), symbol]"), UNIQUE'Unds'ID{}("e1effeabf96bb3a3beffd5b679ad5df95c4f8bbf42872b0793331e52a8470fb3")]

Which failed with error:
Error:
  module 'TEST':
  axiom declaration:
  \implies (definition.kore 2335:21):
  \equals (definition.kore 2351:23):
  \and (definition.kore 2353:12):
  (definition.kore 2353:12, definition.kore 2354:15):
    Expecting sort R but got SortInt{}.


Improve Frameworks Page

Improves the overall look of the frameworks page, also adds a logo and descriptions to each item. Closes https://github.com/marcoroth/hotwire.io/issues/33
Before

After
Desktop

Smaller desktop

Mobile

Should the framework model be ordered alphabetically?

Oh right, then let's just update the Bridgetown one.

Oh man @pkayokay you are ahead of me, but you beat me to it 👍🏼 😄
I'm working on it and my version is so close to your. Well done Paul, looks awesome.


Hass 2021.6 not loading vbus

Hey,
i have tried to setup the Vbus  custom component in my Hass but it keeps mentioning the Following. Im not getting any data out of the vbus, the entities are just showing "Unknown" and nothing happens. I Connected the vbus using a USB to RS485 adapter. may that be the issue why i am not getting any data? Or is it regarding the last Hass Update?
Logger: homeassistant.loader Source: loader.py:786 First occurred: 25. April 2021, 22:30:25 (1 occurrences) Last logged: 25. April 2021, 22:30:25 No 'version' key in the manifest file for custom integration 'resolvbus'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'resolvbus'

A few questions:

which version of Home Assistant are you using?
was it working before? or is it the first time you are trying?
what type of Resol/Vbus component are you trying to communicate with?

I'm using core-2021.4.5 and it is the first time i tried it. I have a Deltasol BS Controller and a USB-RS485 Converter on the Raspberry which is running the HA. Im thinking that the RS485 Adapter (it shows as USB to UART CP2102) is not the correct choice for getting the Vbus working.

What did you put inside your YAML?

Also - I think you are correct that VBUS is not the same as RS485.
They are similar but I don't think they are compatible.

How did you connect your vbus devices to Homeassistant? I dont wanna use their own converter stuff because its too expensive.
My yaml for the testing is as follows:
`- platform: resolvbus
name: MyResol
ttyPort: /dev/ttyUSB0
filterSource: 0x3251
filterDestination: 0x0010
filterCommand: 0x0100
attributes:
- name: temperature_sensor_1
offset: 0
size: 2
factor: 0.1
type: temperature
- name: temperature_sensor_2
offset: 2
size: 2
factor: 0.1
type: temperature
- name: temperature_sensor_3
offset: 4
size: 2
factor: 0.1
type: temperature
- name: pump_speed_relay_1
offset: 6
size: 1
- name: error_mask
offset: 7
size: 1
- name: operating_hours
offset: 8
size: 2

platform: template
sensors:
myresol_temperature1:
value_template: '{{ state_attr("sensor.myresol" , "temperature_sensor_1") }}'
friendly_name: "Collector"
unit_of_measurement: '°C'`

I use this product (got it almost 10 years ago!): https://www.resol.de/fr/produktdetail/13

Hi,
so i now changed to a classical USB UART converter and a level shifter circuit. If i connect that to my Mac and Readout the Serial Stream it shows the Following:
aa1000204710000112651554452d032164004e02004b7f002c04014f000040feff64000000001b3f0800000038450800000032808044f78f00000000007f00000000007f00000000007f00000000c001bcffaa150020471000010a6802010000007c64004e02004b7f0071580d2a018400fafeff64004e02004b00000000007f010b000000730000000080ff
AA is the start, 0010 should be the destination address, 4720 should be the source address, so far so good. But if im connection that to my Rpi with Homeassistant OS it still says "unknown" for all my configured sensors. My Controller is a Deltasol BS HE, 4720 in the resol list is known as BS/2 HE.
But im still not able to see any data from the Controller in my Homeassistant. Could you help me? Is there a way to monitor if the Serial Stream is arriving in the HASS correctly?
Thanks!

Last year I decided to upgrade my RPI for HA, and to keep the old one for owserver, teleinfo and resol communicating with HA over the network. I therefore no longer use this HA component and it's possible that it is no longer compatible with latest HA versions...
I think the first step is to ensure that you can read the RESOL data directly from the command line.
I have attached here a small python script which I use for checking values.
vitosolic-test.zip
On line 8, you should change the USB port.
On lines 29-32, you should change to b'\x10\x00\x20\x47'
Then on lines 142-174, you can change to use the correct sensors


Added support for specifying a separate project to run bq jobs

A simple change, but add support for specifying a different project for running BQ jobs. This prevents granting Security Admin in the project that the data resides in.

@patmagee FYI, spoke with @cdvoisin today and we're going to update this PR to include unit test coverage and then look into merging.


[bug] First run (from the installer) does not produce logs

Describe the bug
The last step of the windows installer has a checkbox "Launch [your app name]". If I select this and click Finish, the app launches, but does not produce any logs. I've tried logging with log4rs and tauri-plugin-log, both have this issue. The latter I registered as:
.plugin({
    log_panics::init(); // log_panics crate
    tauri_plugin_log::LoggerBuilder::new()
        .targets([
            tauri_plugin_log::LogTarget::Folder("./logs".into()),
            tauri_plugin_log::LogTarget::Stdout,
        ])
        .build()
})

Any subsequent runs (from the start menu or manually with the .exe) work as expected.
Reproduction
No response
Expected behavior
No response
Platform and versions
Operating System - Windows, version 10.0.19042 X64
Webview2 - 99.0.1150.36
Visual Studio Build Tools:
   - Visual Studio Community 2019

Node.js environment
  Node.js - 16.13.2
  @tauri-apps/cli - 1.0.0-rc.5 (outdated, latest: 1.0.0-rc.7)
  @tauri-apps/api - 1.0.0-rc.1 (outdated, latest: 1.0.0-rc.2)

Global packages
  npm - 8.4.1
  pnpm - Not installed
  yarn - 1.22.15

Rust environment
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-x86_64-pc-windows-msvc

App directory structure
/.git
/.github
/build
/node_modules
/opencv
/public
/src
/src-tauri

App
  tauri - 1.0.0-rc.3
  tauri-build - 1.0.0-rc.3
  tao - 0.6.2
  wry - 0.13.2
  build-type - bundle
  CSP - unset
  distDir - ../build
  devPath - http://localhost:3000/
  framework - React

Stack trace
No response
Additional context
No response

You need to update @tauri-apps/cli. There was a bug which caused the "Launch appname" checkbox to run the app from the target/release directory instead of the actuall installation dir.


imxrt1050: Disable low-power modes

The imxrt1050 is configured to use SYSTICK for the kernel timer, but
SYSTICK cannot wake up the soc from low-power modes. Disable low-power
modes on this soc until we have support for an alternative timer.
This fixes k_sleep on the EVKB version of the mimxrt1050_evk board. An
earlier version of the board (EVK, not EVKB), had A0 silicon which
by default did not enter low-power mode on a wfi.
Signed-off-by: Maureen Helm<EMAIL_ADDRESS>Fixes #8466
cc: @jhqian

Codecov Report

Merging #8535 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #8535   +/-   ##
======================================
  Coverage    63.8%   63.8%
======================================
  Files         426     426
  Lines       40890   40890
  Branches     6921    6921
======================================
  Hits        26089   26089
  Misses      11666   11666
  Partials     3135    3135

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 13eba39...0fd6c35. Read the comment docs.


Change files with many owners

I hope this is an enjoyable process ;)

Ok turns out that approving your own PRs isn't a workaround for the hole that owners can't change their own code.
There's at least one request for this feature but it doesn't seem to have gone anywhere.


Environment marker support is not documented

Originally reported by: ncoghlan (Bitbucket: ncoghlan, GitHub: ncoghlan)

setuptools supports PEP 345 style environment markers for dependency declarations, but this isn't documented in http://pythonhosted.org/setuptools/setuptools.html#declaring-dependencies
Explaining how this works is important for adoption of the wheel format, as projects like IPython need it in order to replace the conditional dependency logic in their setup.py files with the appropriate environment markers.

Bitbucket: https://bitbucket.org/pypa/setuptools/issue/109

While not very thorough description, looks like it's at least touched in http://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-platform-specific-dependencies. Also https://packaging.python.org/specifications/dependency-specifiers also points to PEPs that specify the markers.
I assume this ticket could be closed?

Aye, this is covered now, so the ticket can be closed.


test: Add integration test to install, build, run, and exit Eliza

@monilpat This is a working branch that we need only to enable workflow file. It's NOT working yet so it should NOT be merged upstream, but we need it in order to move on.

@snobbee This PR has added a workflow which we need to test. It is not showing up now, how can we trigger it?


Dont override latest message id on deletion event

Pull Request Etiquette

[x] I have checked the PRs for upcoming features/bug fixes.
[x] I have read the contributing guidelines.

Changes

[x] Internal code
[ ] Library interface (affecting end-user code)
[ ] Documentation
[ ] Other: _____

Closes Issue: #2009
Description
The internal handle of the Message Deletion event no longer sets the LatestMessageIdLong to 0.

Actually, I forgot: We need to update the docs for getLatestMessageId to no longer mention that the id gets reset if the message gets deleted.
We need to instead mention that the id could point to a deleted message if MessageChannel#retrieveMessageById is used

We need to make a decision on the TODO for line 100/101:

//TODO-v5: Revisit this. Surely this should be Nullable instead of throw an exception...

@DV8FromTheWorld do you have any final thoughts on this? If we decide not to change the behavior, we should remove the comment in this PR.

Let's remove the exception from this getter. That means we no longer need the hasLastMessageId getter anymore either.

@ishwi can you remove the exception and hasLatestMessage getter? After that, it should be ready to merge.


nested data structures, UnexpectedEOF on deserialization.

Sorry if this is something that has been resolved.  I tried looking through your issues and couldn't find anything as similar to what I am experiencing.  Up until now, I've had no issues working with bincode for my use case but am dealing with some weird behavior.
So basically I have a distributed system and I want to serialize all of the state from the different actors into a singular file.  The problem is, if I use vectors to contain this data and then serialize it with bincode when I go to deserialize it I run into the UnexpectedEOF error as described in the title.  I've been messing about with the different options for serialization and deserialization and none of them seem to help in this regard.
Here is what I am attempting to serialize:
pub struct Snapshot{
    pub ids: Vec<ClientId>,
    pub clients: Vec<Client>,
    pub caches: Vec<BTreeMap<PKey<Provider>, Vec<ReadResult>>>,
    pub stores: Vec<BTreeMap<VaultId, PKey<Provider>>>,
}

The data in there is really nested, though I was able to work with a data structure like this prior to adding this kind of functionality where in each of the items was already serialized before they were serialized a 2nd time:
pub struct Snapshot{
    pub cache: Vec<u8>,
    pub store: Vec<u8>,
    pub client: Vec<u8>,
}

Is it just that the extra nesting is messing with the serialized bytes given that they don't have any kind of metadata or is it something else that I am simply missing?

Sorry about that.    My test case was reading and writing to different files.


Could you make example for advanced nested query?

Could you make example for advanced nested query with custom Terms?

Hey there, what do you mean by nested? if you mean doing something like:
name:(foo or bar) that is not supported, you can always decompose it as name:foo or name:bar
If you mean using () to make more complex expressions, then just use them, take a look at the grammar tests.
If you want to implement a different field or term, just take a look a the default implementations.
If you have some code or some specific problem, let me know.


[Packaging][Python] Link brotli statically in the windows wheels

@github-actions crossbow submit wheel-win-cp37m

I'm pretty confident you're going to have to restore -DBUILD_SHARED_LIBS=OFF to the brotli_ep build

@github-actions crossbow submit wheel-win-cp37m

I think if we link brotly dinamically than we need to bundle the dll in pyarrow/cmakelist and setup.py into the wheel, so my original plan was to link it statically.

Take a closer look at the brotli_ep build
https://github.com/apache/arrow/blob/master/cpp/cmake_modules/ThirdpartyToolchain.cmake#L877
When you use -DBrotli_SOURCE=BUNDLED, it uses the static libraries regardless of whether ARROW_BROTLI_USE_SHARED is set or not. So the linking error that's happening must be caused by something else

@github-actions crossbow submit wheel-win-cp37m

I think part of the issue is that brotli is being installed by conda so this iteration will hopefully fix it

OK based on reading https://github.com/google/brotli/pull/655 unfortunately it appears that the conda-forge Brotli static libraries are broken on Windows. I'll open a ticket for that feedstock

@github-actions crossbow submit wheel-win-cp37m

@github-actions crossbow submit wheel-win-cp37m

I don't believe that Brotli is what's causing the linking problem

Closing this. Brotli is not the problem


documentation from nicolas grekas for discovery

merge #304 with the changes i did in #305

thanks for the review. i was too quick merging this :see_no_evil:
fixed them directly in master.


microceph returns only one MON address to clients

ceph-public-address in the relation data only has one IP address.
https://bugs.launchpad.net/charm-microceph/+bug/2066167
$ sudo microceph status
MicroCeph deployment summary:
- sunbeam-1 (<IP_ADDRESS>)
  Services: mds, mgr, mon, osd
  Disks: 2
- sunbeam-2 (<IP_ADDRESS>)
  Services: mds, mgr, mon, osd
  Disks: 2
- sunbeam-3 (<IP_ADDRESS>)
  Services: mds, mgr, mon, osd
  Disks: 2

$ juju show-unit -m openstack glance/2

...

  - relation-id: 50
    endpoint: ceph
    cross-model: true
    related-endpoint: ceph
    application-data: {}
    related-units:
      microceph/0:
        in-scope: true
        data:
          auth: cephx
          broker-rsp-glance-0: '{"exit-code": 0, "request-id": "cc6dca75e3585dfba9af7293ce83810bffaa1a97"}'
          broker-rsp-glance-1: '{"exit-code": 0, "request-id": "cc6dca75e3585dfba9af7293ce83810bffaa1a97"}'
          broker-rsp-glance-2: '{"exit-code": 0, "request-id": "cc6dca75e3585dfba9af7293ce83810bffaa1a97"}'
          ceph-public-address: <IP_ADDRESS>
          egress-subnets: <IP_ADDRESS>/32
          ingress-address: <IP_ADDRESS>
          key: AQDhGEtme4xqIBAAUoDECPLPeod728vTLZNvAQ==
          private-address: <IP_ADDRESS>
      microceph/1:
        in-scope: true
        data:
          egress-subnets: <IP_ADDRESS>/32
          ingress-address: <IP_ADDRESS>
          private-address: <IP_ADDRESS>
      microceph/2:
        in-scope: true
        data:
          egress-subnets: <IP_ADDRESS>/32
          ingress-address: <IP_ADDRESS>
          private-address: <IP_ADDRESS>

          broker-rsp-glance-0: '{"exit-code": 0, "request-id": "cc6dca75e3585dfba9af7293ce83810bffaa1a97"}'
          broker-rsp-glance-1: '{"exit-code": 0, "request-id": "cc6dca75e3585dfba9af7293ce83810bffaa1a97"}'
          broker-rsp-glance-2: '{"exit-code": 0, "request-id": "cc6dca75e3585dfba9af7293ce83810bffaa1a97"}'
          ceph-public-address: <IP_ADDRESS>
          egress-subnets: <IP_ADDRESS>/32
          ingress-address: <IP_ADDRESS>
          key: AQDhGEtme4xqIBAAUoDECPLPeod728vTLZNvAQ==
          private-address: <IP_ADDRESS>
      microceph/1:
        in-scope: true
        data:
          egress-subnets: <IP_ADDRESS>/32
          ingress-address: <IP_ADDRESS>
          private-address: <IP_ADDRESS>
      microceph/2:
        in-scope: true
        data:
          egress-subnets: <IP_ADDRESS>/32
          ingress-address: <IP_ADDRESS>
          private-address: <IP_ADDRESS>

This is also the case in ceph-mon: https://opendev.org/openstack/charm-ceph-mon/src/branch/master/src/ceph_client.py#L80
It's not necessarily a problem. Depending on what the client uses to connect to the cluster (i.e: librados), it can get the monmap by simply using a single monitor address, its username and key.

It's important to agree on what to expect both from the consumer side of the interface and the provider. As long as the consumer has an established method to list (at least) 3 MON endpoints for HA, we are good.
https://bugs.launchpad.net/snap-openstack/+bug/2066167

@lmlg What happens when mon is down for some reason? Does charm-microceph detects and changes the relation data to point to another mon?

The microceph concern is that changing the behaviour of the config key might make it incompatible with pre-sunbeam clients which only expect a single address to be provided ?
In this regard, may I request you to use a new key ceph-public-addresses (plural) which may be used to consume all the mon addrs at once.

Fix for review https://github.com/canonical/charm-microceph/pull/97

charm-ops-interface-ceph-client PR: https://review.opendev.org/c/openstack/charm-ops-interface-ceph-client/+/925686


Migrate to bash homebrew installer

Feature Request
From Travis CI:

Detailed Description
Use this command instead:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Already resolved.


Merge C extension beta into main branch.

Merge C extension into Master branch.
Going to cut a release before the C extension release.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Fixes some conflict, create a PR to show succeed of CI/CD workflow.

Convert it to draft in favor of a pure python implementation release.

I created a PR fixing above comments here: https://github.com/amzn/ion-python/pull/183.


Delete space and month name between months

Is there a way to delete the space between months and move the name of the month to the left or remove it too in DateRangePicker (or any other pickers)?
This feature would be very useful when creating "infinite scrolling" calendars.

Can you show a screenshot of the current behavior and the desired behavior?
I believe you can do this with CSS overrides if you are in fact using the stylesheets.

Current behavior:

Desired behavior:

What kind of CSS overrides do you suggest?


[Slideover] Add direction from Bottom and top

I coulb be nice to have four direction ( left , top , right and bottom ) values in side props.
Currently, is only right | left option value
the aim  could be to ADD two more origins directions , top and bottom ( sick to css naming convention )
The bottom one coulb be usefull for mobile
like this

I will propose a PR
PS: I 'still OS rookie

The bottom one could be useful for mobile

Good point. Especially because default slideover takes all the space in mobile. This could even be a default behaviour, to open slideover on side on desktop, and from the bottom on mobile.

I agree, this would be very nice!

Hi @xlanex6 , let try using my temporary workaround while waiting for @nuxt/ui team add more options
wrapper: 'inset-[unset] top-[130px] bottom-0',   width: 'max-w-full',   translate: {     base: 'translate-y-0 translate-x-0',     right: 'translate-y-full rtl:-translate-y-full translate-x-0 rtl:-translate-x-0',   },   rounded: 'rounded-xl'
Pass it to :ui prop

@benjamincanac How do I use this? I have specified edge version and this doesn't seem available yet.

@QuaDDsf it is not available at all. What the related issue stated is that it is something that will be available in v3, so you can either check the v3 code base and inspire yourself to adapt it for your project, or just wait for the v3 release.
The edge channel is just a built and published version of the current dev branch. It is useful when a bug has been very recently fixed, merged but not released yet.
Keep in mind that, as far as I know, there is no v3 release estimation yet


Refactor login service

I could take this ticket.  Do you have a plan on how you would want to refactor?

There is a branch already for this (refactor/login) but haven't merged it in as there is a problem reading response bodies. You are welcome to take a look at that, or refactor as you see fit.

You are referring to the register handler?  Login seems to work fine.

Yup, it's the register handler that wasn't quite working as I liked

I think GO closes the resp body when the Location header is set.  Not sure.
Still having the same issue with the resp body, but I am just going to follow with GET request for now.
https://github.com/golang/go/issues/10069
Login has been rewritten with JWT in the header.
I also ditched the user files and just created salted passwords, and added it to the accounts package.

Fixed by #103


RewardedAd LoadAdError code: 3

the code works fine with the test id, but when I change my id, it doesn't load on android. I don't understand what the No fill response means
LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No fill., responseInfo: ResponseInfo(responseId: null, mediationAdapterClassName: , adapterResponses: [], loadedAdapterResponseInfo: null), responseExtras: {})
_createRewardedAd() async {
// Platform.isAndroid ? 'ca-app-pub-3940256099942544/5224354917' : 'ca-app-pub-3940256099942544/1712485313'
RewardedAd.load(
adUnitId: Platform.isAndroid ? ANDROID_ADS_ID : IOS_ADS_ID,
request: const AdRequest(),
rewardedAdLoadCallback: RewardedAdLoadCallback(
// Called when an ad is successfully received.
onAdLoaded: (ad) {
// debugPrint('$ad loaded.');
// Keep a reference to the ad so you can show it later.
_rewardedAd = ad;
},
// Called when an ad request failed.
onAdFailedToLoad: (LoadAdError error) {
debugPrint('RewardedAd failed to load: $error');
_rewardedAd = null;
_numRewardedLoadAttempts += 1;
if (_numRewardedLoadAttempts < maxFailedLoadAttempts) {
_createRewardedAd();
}
},
));
}
  • Flutter version 3.10.5      • Dart version 3.0.5     • DevTools version 2.23.1

Hi @vienhp1996
It seems your issue is best suited on Developer Forum. I can see there are some similar issue there with above error code and message:

https://groups.google.com/g/google-admob-ads-sdk/c/1Q9rRNVAKYo/m/XBhQseM2AQAJ
https://groups.google.com/g/google-admob-ads-sdk/c/iyh17o76g44/m/UozyrWyHAAAJ

That being said, this googleads-mobile-flutter plugin and ads SDK in general don't have control on ad request fill rate. So I will close this issue as it's not a plugin issue. Thanks!


IMU  question

Dear all:
Is it that the IMU chip should be installed in the center of the robot, so that the translation().norm()<1e-5?
If so, why, how to understand it?
Thanks.
void SensorBridge::HandleImuMessage(const string& topic,
const sensor_msgs::Imu::ConstPtr& msg) {
CHECK_NE(msg->linear_acceleration_covariance[0], -1);
CHECK_NE(msg->angular_velocity_covariance[0], -1);
const carto::common::Time time = FromRos(msg->header.stamp);
const auto sensor_to_tracking = tf_bridge_->LookupToTracking(
time, CheckNoLeadingSlash(msg->header.frame_id));
if (sensor_to_tracking != nullptr) {
CHECK(sensor_to_tracking->translation().norm() < 1e-5)
<< "The IMU frame must be colocated with the tracking frame. "
"Transforming linear acceleration into the tracking frame will "
"otherwise be imprecise.";
trajectory_builder_->AddImuData(
topic, time,
sensor_to_tracking->rotation() * ToEigen(msg->linear_acceleration),
sensor_to_tracking->rotation() * ToEigen(msg->angular_velocity));
}
}

For Cartographer the IMU does not necessarily be installed in the center of the robot, but it has to be collocated with the tracking frame.
The reason is already given in your issue:

"The IMU frame must be colocated with the tracking frame. Transforming linear acceleration into the tracking frame will otherwise be imprecise."

The tracking_frame is the ROS frame ID of the frame that is tracked by the SLAM algorithm. If an IMU is used, it should be at its position, although it might be rotated. A common choice is “imu_link”. See the documentation for more information about the frames.

Dear Kevin: is it mean that the tracking_frame should be the same as the IMU frame, at least the translation should be same?

@kdaun Hi Kevin,
I found the imu_link now. Thanks very much.

@litzar @kdaun
Hello, I am using a 16-lines LIDAR and IMU to build 3D map by cartographer.
I tun the parameters and run it with no error, the results are as follows:

There is a big gap with the real environment. I think the map is in a mess. What is the problem of this result? How can I solve it?
This is the validate result of my bag:

E0227 22:30:57.092067 19056 rosbag_validate_main.cc:365] Average IMU linear acceleration is 10.6084 m/s^2, expected is [9.5, 10.5] m/s^2. Linear acceleration data should include gravity and be given in m/s^2.
I0227 22:30:57.093359 19056 rosbag_validate_main.cc:398] Time delta histogram for consecutive messages on topic "/IMU" (frame_id: "imu"):
Count: 37968  Min: 0.004133  Max: 0.016211  Mean: 0.010000
[0.004133, 0.005340)	                    	Count: 2 (0.005268%)	Total: 2 (0.005268%)
[0.005340, 0.006548)	                    	Count: 3 (0.007901%)	Total: 5 (0.013169%)
[0.006548, 0.007756)	                    	Count: 8 (0.021070%)	Total: 13 (0.034239%)
[0.007756, 0.008964)	                    	Count: 828 (2.180784%)	Total: 841 (2.215023%)
[0.008964, 0.010172)	 ###################	Count: 35958 (94.706070%)	Total: 36799 (96.921089%)
[0.010172, 0.011380)	                    	Count: 345 (0.908660%)	Total: 37144 (97.829750%)
[0.011380, 0.012588)	                    	Count: 820 (2.159714%)	Total: 37964 (99.989464%)
[0.012588, 0.013796)	                    	Count: 1 (0.002634%)	Total: 37965 (99.992096%)
[0.013796, 0.015004)	                    	Count: 0 (0.000000%)	Total: 37965 (99.992096%)
[0.015004, 0.016211]	                    	Count: 3 (0.007901%)	Total: 37968 (100.000000%)
E0227 22:30:57.094650 19056 rosbag_validate_main.cc:382] Point data (frame_id: "rslidar") has a large gap, largest is 0.101409 s, recommended is [0.0005, 0.05] s with no jitter.
I0227 22:30:57.094745 19056 rosbag_validate_main.cc:398] Time delta histogram for consecutive messages on topic "/rslidar_points" (frame_id: "rslidar"):
Count: 3766  Min: 0.100213  Max: 0.101409  Mean: 0.100801
[0.100213, 0.100333)	                    	Count: 1 (0.026553%)	Total: 1 (0.026553%)
[0.100333, 0.100452)	                    	Count: 1 (0.026553%)	Total: 2 (0.053107%)
[0.100452, 0.100572)	                    	Count: 9 (0.238980%)	Total: 11 (0.292087%)
[0.100572, 0.100691)	                    	Count: 33 (0.876261%)	Total: 44 (1.168348%)
[0.100691, 0.100811)	      ##############	Count: 2717 (72.145515%)	Total: 2761 (73.313858%)
[0.100811, 0.100931)	               #####	Count: 972 (25.809877%)	Total: 3733 (99.123741%)
[0.100931, 0.101050)	                    	Count: 25 (0.663834%)	Total: 3758 (99.787575%)
[0.101050, 0.101170)	                    	Count: 6 (0.159320%)	Total: 3764 (99.946892%)
[0.101170, 0.101289)	                    	Count: 1 (0.026553%)	Total: 3765 (99.973450%)
[0.101289, 0.101409]	                    	Count: 1 (0.026553%)	Total: 3766 (100.000000%)

Here are my files:
demo_rsldiar_3d.launch
rslidar_3d.launch
mydemo_3d.rviz
rslidar_2d.urdf
rslidar_scan_3d.lua
my data bag
Could you help me?


No terminal font for gnome terminal

[!] Info: Couldn't detect Terminal Font.

from the log

Please provide your complete log and your config (if not default).

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

log: http://sprunge.us/BhDh
default config

Font detection for gnome-terminal isn't supported.
I don't know if there is a way to get the font info. It would work similar to mate-terminal detection, but sadly the --save-config option was removed from gnome-terminal.


Add support for TLS and dev mode

This PR adds support for TLS in both the Go authentication server, and the Python SDK.

There's a new authenticator -dev command to make it easy to run the authenticator in an easy dev mode where you get the file back-end and don't have to deal with tls
The Docker dev environment comes up with tls disabled
The Docker tests do use tls

I also fixed an issue where I noticed that if there were errors when the authenticator was coming up, they were swallowed rather than logged.

Not sure why the Netlify build is failing, unable to gain logs from it.


How to train the model with multi-class dataset

Today, I tried to train the model using my own dataset. But disappointedly, it performs like having an error. To make my problem clearly, I use one example to train the model:
train_data:

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
5

test_data:

[1, 13, 14, 15, 16, 17, 18, 19, 8, 20, 21, 22, 12]
4

vocabulary:

请问 1
京都 2
议定书 3
规定 4
几个 5
工业 6
国家 7
的 8
二氧化碳 9
排放量 10
限制 11
？ 12
金氏 13
世界纪录 14
中 15
最长 16
（ 17
1650CM 18
） 19
发绣 20
作品 21
是 22

And the code that I had modified as follows.
Loading training data and testing data:
x_train, y_train, x_test, y_test = [], [], [], []
lines = open('data/train_data.txt', 'r').readlines()
for i in range(0, len(lines), 2):
    x_train.append(ast.literal_eval(lines[i]))
    y_train.append(int(lines[i + 1].replace('\n', '')))
lines = open('data/test_data.txt', 'r').readlines()
for i in range(0, len(lines), 2):
    x_test.append(ast.literal_eval(lines[i]))
    y_test.append(int(lines[i + 1].replace('\n', '')))
x_train = np.asarray(x_train)
y_train = np.asarray(y_train)
x_test = np.asarray(x_test)
y_test = np.asarray(y_test)
# (x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=max_words, start_char=None, oov_char=None, index_from=None)

Loading vocabulary:
vocabulary = {}
with open('data/data_info.txt', 'r') as f:
for line in f:
    content = line.strip().split()
    vocabulary[content[0]] = int(content[1])
# vocabulary = imdb.get_word_index()
vocabulary_inv = dict((v, k) for k, v in vocabulary.items())
vocabulary_inv[0] = "<PAD/>"

Loading word vectors:
# embedding_weights = train_word2vec(np.vstack((x_train, x_test)), vocabulary_inv, num_features=embedding_dim, min_word_count=min_word_count, context=context)
embedding_weights = {key: np.random.uniform(-0.25, 0.25, embedding_dim) for key, word in vocabulary_inv.items()}

Run the project and it shows:

Train on 1 samples, validate on 1 samples
Epoch 1/10

0s - loss: 1.6577 - acc: 0.0000e+00 - val_loss: 0.9745 - val_acc: 0.0000e+00
Epoch 2/10
0s - loss: 5.3148 - acc: 0.0000e+00 - val_loss: 0.8149 - val_acc: 0.0000e+00
Epoch 3/10
0s - loss: -1.1496e+00 - acc: 0.0000e+00 - val_loss: 0.6260 - val_acc: 0.0000e+00
Epoch 4/10
0s - loss: 1.4295 - acc: 0.0000e+00 - val_loss: 0.5458 - val_acc: 0.0000e+00
Epoch 5/10
0s - loss: 1.8466 - acc: 0.0000e+00 - val_loss: 0.4188 - val_acc: 0.0000e+00
Epoch 6/10
0s - loss: -1.1397e+00 - acc: 0.0000e+00 - val_loss: 0.2414 - val_acc: 0.0000e+00
Epoch 7/10
0s - loss: -3.5465e-01 - acc: 0.0000e+00 - val_loss: -1.7151e-02 - val_acc: 0.0000e+00
Epoch 8/10
0s - loss: -9.7948e-01 - acc: 0.0000e+00 - val_loss: -2.8196e-01 - val_acc: 0.0000e+00
Epoch 9/10
0s - loss: 1.3985 - acc: 0.0000e+00 - val_loss: -5.5554e-01 - val_acc: 0.0000e+00
Epoch 10/10
0s - loss: 3.3196 - acc: 0.0000e+00 - val_loss: -7.9620e-01 - val_acc: 0.0000e+00

From the train log it follows it is being trained on 1 sample, validated on 1 samples, which is not normal. Furthermore, for multi-class you would need to amend the model's output to softmax and adjust the targets.

Thank @alexander-rakhlin for answering my question. I using two samples just to clear my question, and the second suggestion is useful.
After checking my codes, I found some details should be noticed for multi-class classification.

Changing y_train and y_test for categorical_crossentropy

y_train = to_categorical(y_train)
y_test = to_categorical(y_test)

Changing dense layer

model_output = Dense(num_of_classes, activation="softmax")(z)

Changing loss function

model.compile(loss="categorical_crossentropy", optimizer="adam", metrics=["accuracy"])


[Q] How to get rid of the ResourceWarning warning?

Hi, thank you for providing such an excellent project to conveniently log my experiments.
However, I have encountered an issue. I found that once I installed wandb (even not import it yet), my running exps will raise many many warnings like this

tempfile.py:860: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmpp1tj0s33wandb-media'>

which are quite bothersome.
I 've tried various solutions like directly suppressing warnings, but none of them works.
I was wondering if you could provide me with any assistance or ideas on how to resolve this issue?
Thanks!

Hello @yzhangcs!
The warning is not coming from our SDK - We don't have any files called tmpfile.py and we do not throw any ResourceWarnings directly. However, since the tmpfile is a wandb-media folder, it does mean that there has been previously logged wandb.Image or wandb.Video objects are being flushed (which is intended since they are tmpfiles).

@rsanandres-wandb the issue is in the way wandb uses the tempfile library (which is part of the Python standard library)
For example, you're creating a temporary directory at import time https://github.com/wandb/wandb/blob/6289d69a5ffb31738427f33e56b8e33d89ac467e/wandb/data_types.py#L82 . When do you expect this to be deleted? If not, you should specify delete=False or use tempfile.mkdtemp(). It's also generally a bad idea to create file system state at import time, consider deferring this, wandb import time is already terrible (although I've made it better in https://github.com/wandb/wandb/pull/5899 and https://github.com/wandb/wandb/pull/6032)

Please let us know if we can be of further assistance

@rsanandres-wandb just tagging again since you asked above if you could be of assistance :-)

Apparently wandb SDK creates a number of temporary directories when it's imported, and it never does a clean up. Here's a workaround to get rid of the warnings.
import wandb
from wandb import data_types
from wandb.sdk.data_types._private import MEDIA_TMP
from wandb.sdk.internal import file_pusher
from wandb.sync import sync

...

    tempdirs = [
        wandb.Artifact._TMP_DIR,
        file_pusher.TMP_DIR,
        data_types.MEDIA_TMP,
        MEDIA_TMP,
        sync.TMPDIR,
    ]
    for d in tempdirs:
        d.cleanup()


Das_Geek: Watch clydedigital.co

Das_Geek requests the watch of the watch_keyword clydedigital\.co. See the MS search here and the Stack Exchange search here.

clydedigital\.co has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Data loss in Seq.windowed?

While preparing the final parts of https://github.com/Microsoft/visualfsharp/pull/502 my property-based tests found a strange edge case. I wonder if this is expected:
Seq.windowed 2 [0] |> Seq.toArray

returns [||]
I mean it's strange that the requested window size is greater than the original list, but I would expect to get either [|0|] or an exception.

Seq.windowed 2 is similiar to Seq.pairwise, in case of Seq.pairwise type system would force the output to be a tuple, in case of Seq.windowed type system can't do that.
I'd expect the result to be an array of 2-elems arrays - so the result of the above seems ok for me

thanks

Ok I added another test which compares pairwise and windowed 2.


SC Sensors

Hello,
Thank you all for the help over the past few weeks! I am still having some issues with the water sensors. I wanted to wait until I know how to address all of the issues before I go back to the farm to maximize my time in the field. Mia has helped me do some troubling shooting in the field where she walked me through getting the data off the nodes using the tablet, checking the wires, and rewiring. However, that did not solve all of the issues. She mentioned doing a firmware update might help so I wanted to touch base with you and see what you think I should do. Below is a list of the issues we are having.
Stress Cam (16038) Wifi isn't showing up on the tablet
Two nodes do not have any wires in them (Node 18000573)
(RKT) No data for node health for Rep 1 cover and Rep 1 bare
(RKT) No data for VWC for Rep 1 cover and Rep 1 bare
(RKT) VWC for Rep 2 bare has no surface data
(RKT) The data for VWC for Rep 2 cover stopped receiving surface data
(RKT) No data for soil temperature for Rep 1 cover and Rep 1 bare
(RKT) No data for litterbag temp for Rep 1 & 2 cover
(WBD) The gateway data is spotty. Sometimes it has data, other times it does not.
(WBD) Node health for Rep 1 bare, Rep 2 bare, and Rep 2 cover is spotty
(WBD) No data for Node health Rep 1 cover
(WBD) Only getting surface data for VWC Rep 1 bare
(WBD) No data for VWC Rep 1 cover
(WBD) Not getting surface data for VWC Rep 2 cover and Rep 2 bare, the data we are getting is spotty
(WBD) Only getting surface data for soil temperature for rep 1 bare
(WBD) No data for soil temperature for rep 1 cover
(WBD) Not getting surface data for soil temperature for rep 2 bare and rep 2 cover, and the data we do get is spotty
(WBD) No data for litterbag temperature Rep 1 & 2 cover
It also looks as if the labels may be flipped on the VWC for rep 2 bare and rep 2 cover on farm WBD
Thank you in advance,
Payton Davis

Hey Payton,
I am sorry you are having all these issues.  I am going to try to help you address them all.  Worst case, I can try to schedule a time to meet you at the fields.  How far are they from Athens?
Stress Cam (16038) Wifi isn't showing up on the tablet    I am going to pass your info onto Akhil on the stress cam team so they can provide you expert advice with this.
Two nodes do not have any wires in them (Node 18000573).  Physically no wires?  Do you have a picture?  or are you referring to no data coming in?  575 is the other node with no sensor data coming in.
(RKT) No data for node health for Rep 1 cover and Rep 1 bare related to wiring issue above (573,575)
(RKT) No data for VWC for Rep 1 cover and Rep 1 bare   related to wiring issue above (573,575)
(RKT) VWC for Rep 2 bare has no surface data  This is correct, no surface sensor in Rep 2
(RKT) The data for VWC for Rep 2 cover stopped receiving surface data   This is correct, no surface sensor in Rep 2
(RKT) No data for soil temperature for Rep 1 cover and Rep 1 ba.re  related to wiring issue above (573,575)
(RKT) No data for litterbag temp for Rep 1 & 2 cover  rep 1 is related to wiring issue, rep 2 doesn't have a litterbag sensor
(WBD) The gateway data is spotty. Sometimes it has data, other times it does not.  this has been taken offline, yes?
(WBD) Node health for Rep 1 bare, Rep 2 bare, and Rep 2 cover is spotty
(WBD) No data for Node health Rep 1 cover looks like has wiring issue
(WBD) Only getting surface data for VWC Rep 1 bare  i need to help walk you through reentering the depths on the configuration string
(WBD) No data for VWC Rep 1 cover  looks like has wiring issue
(WBD) Not getting surface data for VWC Rep 2 cover and Rep 2 bare, the data we are getting is spotty This is correct, no surface sensor in Rep 2
(WBD) Only getting surface data for soil temperature for rep 1 bare   wiring issue in rep 1 cover
(WBD) No data for soil temperature for rep 1 cover  wiring issue in rep 1 cover
(WBD) Not getting surface data for soil temperature for rep 2 bare and rep 2 cover, and the data we do get is spotty  This is correct, no surface temp in rep 2
(WBD) No data for litterbag temperature Rep 1 & 2 cover  rep 1 wiring issue, rep 2 is correct (no litterbag temp sensor)
It also looks as if the labels may be flipped on the VWC for rep 2 bare and rep 2 cover on farm WBD  this would have been a kobo form submission error
Good news, you only have a few main issues.
RKT we need to address the wiring issues for 573,575.  Are wires physically plugged in to the node box?
WBD rep 1 cover 585, same question as above.  wiring issue, are wires plugged in or loose?
I will need to walk you through reentering depths for WBD rep1 bare.
fill out sensor uninstall form and then fill out install form again to correct to correct last issue in WBD.
If any VWC sensors are reding zero, they are most likely not inserted in the ground far enough.
Anna Paulk Birnbaum

This issue is ongoing - Esleyther determined that some nodes need to be plugged in and at least one node and one farm, the depths are not being graphed because the depths are reading as -999.
This needs to be logged in a data corrections repo.
Payton - which farm code and which node was having the -999 issue with the depths not being logged correctly?

WBD Rep 1 bare having " the -999 issue with the depths not being logged correctly"
'


Incorrect spelling of Ahmedabad state under Gujarat

Describe the bug
Spelling mistake.
Ahmedabad is being shown as Ahmadabad.
Desktop (please complete the following information):

OS: [Windows]
Browser [Chrome]
Version [81.0.4044.113]

Please refer to this https://github.com/covid19india/covid19india-react/issues/662#issuecomment-609377552


Refresh token is revoked / Cannot refresh token

Describe the bug
After 1 hour after authorization cannot make API requests ('The provided authorization code or refresh token is revoked.')
To Reproduce
Steps to reproduce the behavior:

I set up the package with npm i daikin-controller-cloud
When running  node index.js I authorized  the access successfully in browser as per instructions on Daikin developer cloud and then redirected back.
The tokenset.json generated, API requests are working fine -> after 1 hour token expired and I cannot make API requests. I have to delete tokenset.json and repeat authorization process again. I suppose the refresh should be done automatically.. or?

Full code:
const { DaikinCloudController } = require("daikin-controller-cloud");

const oidc_client_id = "<CLIENT_ID>";
const oidc_client_secret = "<APP_SECRET>";

if (!oidc_client_id || !oidc_client_secret) {
  console.log(
    "Please set the oidcClientId and oidcClientSecret environment variables"
  );
  process.exit(0);
}

const controller = new DaikinCloudController({
  oidcClientId: oidc_client_id,
  oidcClientSecret: oidc_client_secret,
  oidcTokenSetFilePath: "tokenset.json",
  oidcAuthorizationTimeoutS: 120,
  oidcCallbackServerPort: 63814,
  certificatePathKey: "node_modules/daikin-controller-cloud/cert/cert.key",
  certificatePathCert: "node_modules/daikin-controller-cloud/cert/cert.pem",
});

controller.on("authorization_request", (url) => {
  console.log(`
Please make sure that ${url} is set as "Redirect URL" in your Daikin Developer Portal account for the used Client!

Then please open the URL ${url} in your browser and accept the security warning for the self signed certificate (if you open this for the first time).

Afterwards you are redirected to Daikin to approve the access and then redirected back.`);
});

controller.on("rate_limit_status", (rateLimitStatus) => {
  console.log(rateLimitStatus);
});

(async () => {
  const devices = await controller.getCloudDeviceDetails();
  console.log(devices);
})().catch(console.error);

Expected behavior
Token should be refreshed after it is expired?
Screenshots & Logfiles
start command: node index.js
OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
    at processResponse (.../node_modules/openid-client/lib/helpers/process_response.js:38:13)
    at Client.grant (.../node_modules/openid-client/lib/client.js:1381:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async #refresh (.../node_modules/daikin-controller-cloud/dist/onecta/oidc-client.js:69:16)
    at async #getTokenSet (.../node_modules/daikin-controller-cloud/dist/onecta/oidc-client.js:111:24) {
  error: 'invalid_grant',
  error_description: 'The provided authorization code or refresh token is revoked.'
}

Versions:

Adapter version: latest
JS-Controller version: [ ](zsh: command not found: iobroker)
Node version: 20
Operating system: Mac OS

Additional context
Add any other context about the problem here.

Please add logger and provide debug log

Hello,
Same problem encountered on one of my addons for a French home automation solution.
On almost 350 users I have repeated crashes.
It's as if we had the API that randomly responded with invalid things.
I'm going to set up logs to do tests, but we have trouble identifying precisely where the problem comes from for the moment.
PS: Link where I communicate with my users, a large part is due to this problem, and a part is due to other problems
https://community.jeedom.com/t/soucis-daikin-onecta/130360
Sincerely
Thibaut

Please add logger and provide debug log

@Apollon77 thank you for quick reply, can you please assist how to enable debug logs? Is there a flag to enable debug logs? If not, what exact steps i need to log? Thanks in advance

Ahh ... right got changed in last version ... how does you code look like? In fact it is working in the homebridge plugin and also ioBroker ... so we need to check what's different for your solution

Are you sure about ioBroker? I have to manually login with Daikin at least once a day to get a working token again. ioBroker daikin-cloud adapter V4.8.0.

I solved my problem.. When token was expired (after 1 hour), the new token was received but it was not saved on disk (my cloud env limitation) and once new one was refreshed, the old refresh token was not valid anymore..
I solved this so that I read and save token myself.
I removed from config 'oidcTokenSetFilePath' and replaced with 'tokenSet' :
And once refresh is done i read
controller.on('token_update', (tokenSet) => {
<.. save your token stuff manually>
});
Maybe this will be helpful for others as well.. @Apollon77 you can close ticket, thank you!

@nightsha-de if you have issues with ioBroker open issue there after you checked anything, maybe try to re-autheticate with Daikin cloud (aka in admin do the steps again and make sure that you login aew ... if not works open issue on ioBeroker repo with debug log

Just wanted to update here that my solution worked about half of day (request was done every hour, token was refreshed successfully every hour), but today got again

invalid_grant (The provided authorization code or refresh token is revoked.)..

And before that, one hour prior to the error, there was timeout 3500ms.

Yes this came up in another thread too ... it seems that 3,5s is not enough for a refresh sometime. I will increase the timeout

Today same issue occurred.. after request timeout 3500s, the next time refresh token is not valid anymore, I had to manually authorize again. @Apollon77 can you please point line number where to add custom timeout in oidc-client.js? Thank you in advance

I will fix this now properly


Renovate (dependencies) badge

📋 Description

Renovate
Dependencies (freshness?)

🔗 Data

I guess so, it's partially open-source as I know
Not sure about API
https://www.mend.io/renovate-free/

🎤 Motivation
We have a few badges for dependencies, but Renovate seems very powerful tool.

I found this (weird) custom thing: https://github.com/renovatebot/app-support/issues/38#issuecomment-797832237
I'd like to see something like "updated"/"outdated", if possible.

Renovate is great, but AFAIK they do not expose any public API we can use.


Setting pin to version in order to fix issue caused by breaking chang…

…e in ansible-compat API
Original molecule issue: https://github.com/ansible-community/molecule/issues/3903
Breaking patch: https://github.com/ansible/ansible-compat/commit/ff385f6fd6f7d0ee3485f913a9666b1896e1e6de
Proposed fix to Molecule: https://github.com/ansible-community/molecule/pull/3904

/test all


feat: support for multi channel licenses

What this PR does / why we need it:
Add's support for multi channel licenses.
Spec & behaviors

kots install:

Prevalidates that the requested channel is present in the latest license (if online)
If channel slug does not match a channel in the license channel list we fail
We use the channel slug to determine what channel is being install. If channel slug is missing, default will be stable.
The installed channel will be recorded in the app_version.channel_id , we do this by pulling from a new requested_channel_slug configmap entry during install and resolving that to a channel id.
-kots upgrades:
We use app.channel_id field to check for upgrades in those channels

kots pull:

same basic behaviors as install for pre-validation

airgap installs:

inherits pre validation from kots install minus the the attempt to get the latest license.
If channel slug does not match a channel in the license channel list we fail

changing channels

online installs don't support changing channel in this iteration
airgap does as long as the channel is allowed by the license

Which issue(s) this PR fixes:

Fixes https://app.shortcut.com/replicated/story/108865/multi-channel-license-update-kots-to-support-multi-channels
Special notes for your reviewer:

Steps to reproduce
Online install early checks:
# starting config only access to Stable channel:

➜ replicated customer ls
ID                             NAME             CHANNELS        EXPIRES    TYPE    CUSTOM_ID
2jbffGP8wHSWH1l2mA7dM6ZeloV    multitest         Stable         Never      dev     Not Set
➜ bin/kots install --kotsadm-registry=ttl.sh/pandemicsyn --kotsadm-tag 24h floriandev/stable --license-file ~/Downloads/multichan.yaml
➜ replicated customer download-license --customer=2jbffGP8wHSWH1l2mA7dM6ZeloV -o ~/Downloads/multichan.yaml

Simple case where you ask to install a channel not in the licenses fails:
➜ bin/kots install --kotsadm-registry=ttl.sh/pandemicsyn --kotsadm-tag 24h floriandev/beta --license-file ~/Downloads/multichan.yaml
  • Validating registry information ✓
  • Checking for license update ✓
Error: requested channel not found in latest license

If you pass in an outdated license it will declined if the requested channel is not in the latest license:
# remove access to `Stable`
➜ replicated customer update --customer=2jbffGP8wHSWH1l2mA7dM6ZeloV --channel Beta --channel Unstable --default-channel Unstable --name multitest
ID                             NAME         CHANNELS          EXPIRES    TYPE    CUSTOM_ID
2jbffGP8wHSWH1l2mA7dM6ZeloV    multitest     Beta Unstable    Never      dev     Not Set
➜ bin/kots install --kotsadm-registry=ttl.sh/pandemicsyn --kotsadm-tag 24h floriandev/stable --license-file ~/Downloads/multichan.yaml
  • Validating registry information ✓
  • Checking for license update ✓
Error: requested channel not found in latest license

Install proceeds if your requested channel is present (even when its not the default channel):
# now installing with the Beta slug which should succeed
➜ replicated customer download-license --customer=2jbffGP8wHSWH1l2mA7dM6ZeloV -o ~/Downloads/multichan.yaml
➜ yq '.spec.channels' < ~/Downloads/multichan.yaml
- channelID: 2i9fCY11QaVowQWN1O32XFhUIlE
  channelName: Beta
  channelSlug: beta
  endpoint: https://replicated-app-pandemicsyn.okteto.repldev.com
  isSemverRequired: true
- channelID: 2i9fCYatEJfYChzAsL4bClT6E04
  channelName: Unstable
  channelSlug: unstable
  endpoint: https://replicated-app-pandemicsyn.okteto.repldev.com
  isDefault: true
➜ bin/kots install --kotsadm-registry=ttl.sh/pandemicsyn --kotsadm-tag 24h floriandev/beta --license-file ~/Downloads/multichan.yaml
  • Validating registry information ✓
  • Checking for license update ✓
Enter the namespace to deploy to: floriandev
  • Deploying Admin Console
    • Creating namespace ✓
    • Waiting for datastore to be ready ✓

Same pattern for airgap:
➜ yq '.spec.channels' < ~/Downloads/multitest/multitest.yaml
- channelID: 2i9fCY11QaVowQWN1O32XFhUIlE
  channelName: Beta
  channelSlug: beta
  endpoint: https://replicated-app-pandemicsyn.okteto.repldev.com
  isSemverRequired: true
- channelID: 2i9fCYatEJfYChzAsL4bClT6E04
  channelName: Unstable
  channelSlug: unstable
  endpoint: https://replicated-app-pandemicsyn.okteto.repldev.com
  isDefault: true
➜ bin/kots install --kotsadm-registry=ttl.sh/pandemicsyn --kotsadm-tag 24h floriandev/stable --license-file ~/Downloads/multitest/multitest.yaml --airgap-bundle ~/Downloads/multitest/floriandev-0.1.5.airgap
  • Validating registry information ✓
Error: requested channel not found in supplied license
➜ bin/kots install --kotsadm-registry=ttl.sh/pandemicsyn --kotsadm-tag 24h floriandev/beta --license-file ~/Downloads/multitest/multitest.yaml --airgap-bundle ~/Downloads/multitest/floriandev-0.1.5.airgap
  • Validating registry information ✓
  • Checking for license update ✓
Enter the namespace to deploy to: floriandev
  • Deploying Admin Console
    • Creating namespace ✓
    • Waiting for datastore to be ready ✓
Enter a new password for the admin console (6+ characters): ••••••••
  • Waiting for Admin Console to be ready ✓
  • Uploading app archive
  • Waiting for installation to complete ✓

  • Press Ctrl+C to exit
  • Go to http://localhost:8800 to access the Admin Console

With an airgap update via the ui:

Does this PR introduce a user-facing change?

Does this PR require documentation?

The approach I took was basically find all occurrences where we using license.spec.ChannelID or license.spec.IsSemverRequired and update those areas. In most cases we now use app.channel_id and then use it or the associated channels IsSemverRequired setting.
For dealing with the backfill of app.channel_id column , i don't proactively do it - and instead only do it when we go to actually use it. If we see app.channel_id is empty we'll try to back fill it.

This LGTM.  One note about backwards compatibility.  Right now I can run kots install app-slug/some-channel and then upload a license from any channel. This would not fail with existing versions of kots, and give me a release from the channel in the license, not the one specified on command line.
With this change, single channel license install will start failing. I think we'll need to allow them to proceed. We can call out this change in behavior in release notes, which is probably acceptable.

With this change, single channel license install will start failing. I think we'll need to allow them to proceed. We can call out this change in behavior in release notes, which is probably acceptable.

@divolgin Let them proceed with an install for the requested (not in license) channel, or proceed but switch over to the default channel in the supplied license? Guessing the later - the default channel.

@sgalsaleh was able to update upstream.Fetch and friends and propagate the app channel id like we chatted about. I didn't have to go far - i was able to basically pull it from PendingApp or App in all the main cases.  Its all in this commit: https://github.com/replicatedhq/kots/pull/4767/commits/a5e4bd9f79e9611357969efe0ba0be7da5f65581 incase thats a bit easier.
I think I'll want/need to update some of these tests so I'll probably steal a bit more time on your calendar to pepper you with additional questions about those. To get the tests/pull/* passing for now I just updated the testcases.yaml's pull options with the single app ChannelID we used everywhere.

@pandemicsyn we should add an e2e test.

I might've missed it, but where does KOTS send the user-selected channel ID to replicated.app?

This will need https://github.com/replicatedhq/vandoor/pull/5889 but this commit should cover all the endpoints that now accept it on the replicated app side: https://github.com/replicatedhq/kots/pull/4767/commits/f38716c447c2a52fc73fa9cb5605707cde55bacd
I did skip updating downloadUpgradeBinary call where embedded cluster calls out to get /clusterconfig/artifact/operator , because I wasn't sure if i should actually be updating this one.

@sgalsaleh @divolgin i centralized the post license sync update of selected_channel_id in https://github.com/replicatedhq/kots/pull/4767/commits/fb6e5519f563c997919222602719a6b2cc4a89dc. I did it in the UpdateAppLicense because that seemed like to safest place to do it for consistencies sake.  Let me know if miss-read this, or if theres a better spot though, happy to switch it.
Also nuked that stray selected channel id update in reconcileDeployment  in this commit: https://github.com/replicatedhq/kots/pull/4767/commits/ab0f4d7786d91a4ab76ffa3c37e9d4b6109a5303

Ended up centralizing the backfilling, I moved it into store.GetApp() ...tbh...not sure why I didn't stick it there to begin with.
Also, heres a loom of license channel change working (going from "beta" with a v1.0.2 to "unstable" which was up to v1.0.3): https://www.loom.com/share/5b89a5a3423341f881c7510a2149b2fb?sid=4a072c59-b965-47b0-bb2d-7c5187b511c3

@sgalsaleh alrighty - pulled in the e2e test changes as well (https://github.com/replicatedhq/kots/pull/4767/commits/3961a04f1e5dc4f998e25ef96acfea43983f94a2)  , batched the other pr feedback into a single commit this time since it was pretty small (https://github.com/replicatedhq/kots/pull/4767/commits/3cd0a798374c5801b71b33d0b34eebad2ca5a489)