Unboxed unions

Pony currently boxes union types.
However, it seems to me that there is no fundamental reason for this.  Rust, indeed, does not box union types – instead, it stuffs all variants into a block of memory large enough to hold any of them plus a tag.  I believe Ada and Boost::Variant (from C++) do the same.

If there is a better strategy for handling union types (a performance improvement) that does not have an API impact, I think this would qualify as the kind of change that doesn't need an RFC - it would just be an optimization.
I've marked this ticket as "enhancement: 1 - needs discussion" to reflect this.  We should take the opportunity to explore:

whether such a change would be possible or if there is a technical reason we need to continue to box
whether such a change would be a performance improvement in all circumstances, or just some circumstances - and whether any such benefits outweigh any discovered detriments.
the technical difficulty of such a change, so that a difficulty can be assigned to the ticket.

@Praetonus @sylvanc any thoughts on this?

The only objects boxed in an union (and in any type of interface) are objects without a type descriptor (i.e. raw numbers and tuples). If the object already has a type descriptor then the union will use the object pointer directly. So it seems to me that we're already doing what you're describing, the identifying tag being the type descriptor.

As far as we understand. We are already doing this.


add configurable furnace, crafting table and third-party mod support + configuration

Fixes #3. This isn't compatible to all third-party mods because some don't use the HandledScreen super class and implement Screen by themselves.

adds support for furnaces, crafting tables and a limited set of third-party mods.
adds a config screen with mod menu integration

I've now also updated the yarn mappings and the config library


Add support for llama-cpp

Bump. I second this. Add support for various llama 2 cpp models. thanks.


Set link for all submissionEvents

Assures that Ember always adds a link to SubmissionEvents.
To test
Notivication services whitelists need tweaking, so the below instructions do not involve looking at any e-mail messages, and can be attempted in pass-ember, or pass-docker.
Feel free to test using https://github.com/OA-PASS/pass-docker/pull/163 instead, as it has this PR incorporated into it, and a lot more things work together.  That would be much more pleasant.

Start up Ember's docker, or test in pass-docker
In incognito mode, log in as staff2.  Create a proxy submission, search for user Kirkwood.
Close browser, start another incognito session and log in as nih-user.  Look at the submissions table, the first one should be the proxy submission.  Look at it, and request changes.
Close browser, start another incognito session and log in as staff2.  Find the proxy submission from the submissions table, and re-submit it for approval
Close browser..  and log in as nih-user.  Either approve or cancel the submission.
Now go to http://pass.local:8080/fcrepo/rest/submissionEvents

Foe every submissionEvent, verify that pass:link is set.

Resolves #776, #779

@birkland Works as described, but do you think the submissions URI needs to be encoded? - wondering if having 2 colons will make it an invalid URI if treated as one. JS has a function for that... https://www.w3schools.com/jsref/jsref_encodeURI.asp

@karenhanson It ought to be encoded.  I thought that Hanh created a separate issue for that, but maybe not.  Could amend this PR to do that

@karenhanson @birkland i did create a ticket for that. if you could close 2 ticket with 1 PR, that'd be awesome

Only the s.id needs to be encoded:
"link" : "https://pass.local%2Fapp%2Fsubmissions%2Fhttps%3A%2F%2Fpass.local%2Ffcrepo%2Frest%2Fsubmissions%2F3d%2Fe3%2Feb%2F40%2F3de3eb40-79df-4429-a94a-355095373b2c"

@karenhanson yes, noticed that.  It takes hours it seems to make a change, see its effect, and notice there was a typo
the = sign thing is an issue with notification services

I have not set up a mail client. so i couldn't test this with using pass-docker. using .docker/shib set up, manually retrieve links and clicking them to verify: this works.


Inconsistent Parameter Mismatches After Merging PEFT and Base Models

System Info
peft 0.14.0, transformers 4.45.2, accelerate 1.0.1, Python 3.11.9, windows
Who can help?
@BenjaminBossan @sayakpaul
Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder
[X] My own task or dataset (give details below)

Reproduction
from transformers_custom.modeling impor6t CustomConfig
from transformers_custom.tokenization import CustomTokenizer
from transformers_custom.multitask_model import CustomForSequenceClassificationMultitask
from peft import PeftModel
import torch

def compare_model_params(model1, model2):
    # Extract state dictionaries
    sd1 = model1.state_dict()
    sd2 = model2.state_dict()

    # First, check if they have the same keys
    keys1 = set(sd1.keys())
    keys2 = set(sd2.keys())

    # Find parameters that are not present in both
    missing_in_model2 = keys1 - keys2
    missing_in_model1 = keys2 - keys1

    if missing_in_model2:
        print("Parameters missing in model2:", missing_in_model2)
    if missing_in_model1:
        print("Parameters missing in model1:", missing_in_model1)

    # Now compare parameters that exist in both
    mismatch_names = []
    for key in sorted(keys1.intersection(keys2)):
        param1 = sd1[key]
        param2 = sd2[key]

        # Check for shape mismatch
        if param1.shape != param2.shape:
            mismatch_names.append(key)
            continue

        # Check for value mismatch
        if not torch.allclose(param1, param2):
            print("Mismatched values for parameter:", key, f"model1: {param1}", f"model2: {param2}")
            mismatch_names.append(key)

    # Print out results
    if mismatch_names:
        print("Mismatched parameters:", mismatch_names)
    else:
        print("All parameters match perfectly.")

base_model_path = r"C:\models\tms\download\base2"
peft_path = r"C:\models\tms\download\adapter2"
merged_model_path = r"C:\models\tms\download\adapter2_merged\peft_merged"

config = CustomConfig.from_pretrained(
    base_model_path,
    num_labels=8,
    finetuning_task=None,
    cache_dir=None,
    revision="main",
)

base_model = CustomForSequenceClassificationMultitask.from_pretrained(
    base_model_path,
    config=config,
    cache_dir=None,
    revision="main",
)

peft_model = PeftModel.from_pretrained(base_model, peft_path)

peft_model_merged = peft_model.merge_and_unload()
peft_model_merged.eval()

merged_config = CustomConfig.from_pretrained(
    merged_model_path,
    num_labels=8,
    finetuning_task=None,
    cache_dir=None,
    revision="main",
)

merged_model = CustomForSequenceClassificationMultitask.from_pretrained(
    merged_model_path,
    config=merged_config,
    cache_dir=None,
    revision="main",
)
merged_model.eval()

compare_model_params(peft_model_merged, merged_model)

Expected behavior
I saved the base model and the merged model (using save_pretrained) after training and calling merge_and_unload(). I also saved the PEFT model (via trainer.save_model). After loading the PEFT parameters on top of the base model and calling merge_and_unload(), I compared the newly merged model with the previously saved merged model. Some parameters do not match, and the specific mismatches change with each run to compare models. For example, sometimes the mismatched parameters are ['classifier2.class_dense.bias', 'classifier2.class_dense.weight', ...] and other times ['custom.encoder.layer.19.attention.self.query.weight'].
How can I resolve this issue? Ideally, there should be no mismatches, or at least the mismatches should be consistent across runs.

I also noticed that the mismatches across multiple runs appear to have the same mismatched values on the same component. e.g.  Mismatched values for parameter: classifier4.out_proj.bias model1: tensor([ 0.0013, -0.0003, -0.0003, -0.0004, -0.0004, -0.0005, -0.0007, -0.0010]) model2: tensor([ 2.3966e-01,  6.4979e-03,  8.9810e-04,  1.0589e-04, -2.9830e-03,
-5.1880e-03, -1.1035e-02, -2.7188e-02]), where model1 is the newly merged model and model2 is merged model after training

Also I noticed that by just adding an irrelevant second model loading without actually using it, all parameters become mismatched... I guess it might be a incorrect memory pointer somewhere in Peft implementation??
peft_model1 = PeftModel.from_pretrained(base_model, peft_path)
peft_model1_merged = peft_model1.merge_and_unload()
peft_model1_merged.eval()

I noticed a really weird behavior while debugging. It seems that PeftModel.from_pretrained(base_model, peft_path) will change the parameters in base_model??? below is the code to reproduce:

base_model = TULRv6ForSequenceClassificationMultitaskFate2.from_pretrained(
    base_model_path,
    config=config,
    cache_dir=None,
    revision="main",
)

base_model1 = TULRv6ForSequenceClassificationMultitaskFate2.from_pretrained(
    base_model_path,
    config=config,
    cache_dir=None,
    revision="main",
)

print("Comparing base_model and base_model1 before loading peft model")
compare_model_params(base_model, base_model1)

peft_model = PeftModel.from_pretrained(base_model, peft_path)
peft_model_merged = peft_model.merge_and_unload()
peft_model_merged.eval()

peft_model1 = PeftModel.from_pretrained(base_model, peft_path)
peft_model1_merged = peft_model1.merge_and_unload()
peft_model1_merged.eval()

print("Comparing base_model and base_model1")
compare_model_params(base_model, base_model1)

for the PEFT configuration, I am using saved_modules = ["classifier","classifier2","classifier3","classifier4"], and it seems the random mismatches happens mostly in "classifier2","classifier3","classifier4". For example, Mismatched parameters: ['classifier2.class_dense.bias', 'classifier2.class_dense.weight', 'classifier2.out_proj.bias', 'classifier2.out_proj.weight', 'classifier3.class_dense.bias', 'classifier3.class_dense.weight', 'classifier3.out_proj.bias', 'classifier3.out_proj.weight', 'classifier4.class_dense.bias', 'classifier4.class_dense.weight', 'classifier4.out_proj.bias', 'classifier4.out_proj.weight']

Hey :) Thanks for raising an issue.

I noticed a really weird behavior while debugging. It seems that both PeftModel.from_pretrained(base_model, peft_path) and peft_model.merge_and_unload() will change the parameters in base_model??? below is the code to reproduce:

I think this behavior is expected and documented. This is done to save memory on large models. See from_pretrained and merge_and_unload.
Could this already explain the discrepancies you're seeing? It is not really possible for me to reproduce your setup exactly since I don't know what your exact lora config is nor how your model behaves.

@githubnemo , thanks for the explanation. Unfortunately, the behavior of changing base model does not solve or explain the mismatches in this case. So basically, the issue is that I got different model parameters each session I load the PEFT model (load base -> apply lora -> merge_and_unload). I tried loading two models in the same session and those two models are the same. So the discrepancies happens in each session not for each instance in the same session. I also tried setting the random seed and the problem persists. I suspect it is related to modules_to_save function. Anyway, the LoRA configuration I am using is the below:

lora_rank: 128, lora_alpha: 256, lora_dropout: 0.1
lora target_modules: ['query', 'value', 'key', 'dense'], saved_modules: ['classifier', 'classifier2', 'classifier3', 'classifier4', 'gate_ur_linear']
The base model architecture is below
CustomForSequenceClassificationMultitask(
(Custom): CustomModel(
(embeddings): RobertaEmbeddings(
(word_embeddings): Embedding(500002, 1024, padding_idx=1)
(position_embeddings): Embedding(514, 1024, padding_idx=1)
(token_type_embeddings): Embedding(1, 1024)
(LayerNorm): LayerNorm((1024,), eps=1e-05, elementwise_affine=True)
(dropout): Dropout(p=0.1, inplace=False)
)
(encoder): CustomEncoder(
(layer): ModuleList(
(0-23): 24 x CustomLayer(
(attention): CustomAttention(
(self): CustomSelfAttention(
(query): Linear(in_features=1024, out_features=1024, bias=True)
(key): Linear(in_features=1024, out_features=1024, bias=False)
(value): Linear(in_features=1024, out_features=1024, bias=True)
(gate_ur_linear): Linear(in_features=64, out_features=8, bias=True)
(dropout): Dropout(p=0.1, inplace=False)
)
(output): BertSelfOutput(
(dense): Linear(in_features=1024, out_features=1024, bias=True)
(LayerNorm): LayerNorm((1024,), eps=1e-05, elementwise_affine=True)
(dropout): Dropout(p=0.1, inplace=False)
)
)
(intermediate): BertIntermediate(
(dense): Linear(in_features=1024, out_features=4096, bias=True)
(intermediate_act_fn): GELUActivation()
)
(output): BertOutput(
(dense): Linear(in_features=4096, out_features=1024, bias=True)
(LayerNorm): LayerNorm((1024,), eps=1e-05, elementwise_affine=True)
(dropout): Dropout(p=0.1, inplace=False)
)
)
)
)
(pooler): BertPooler(
(dense): Linear(in_features=1024, out_features=1024, bias=True)
(activation): Tanh()
)
(rel_pos_bias): Linear(in_features=32, out_features=16, bias=False)
)
(classifier): CustomClassificationHead(
(class_dense): Linear(in_features=1024, out_features=1024, bias=True)
(dropout): Dropout(p=0.1, inplace=False)
(out_proj): Linear(in_features=1024, out_features=8, bias=True)
)
(classifier2): CustomClassificationHead(
(class_dense): Linear(in_features=1024, out_features=1024, bias=True)
(dropout): Dropout(p=0.1, inplace=False)
(out_proj): Linear(in_features=1024, out_features=8, bias=True)
)
(classifier3): CustomClassificationHead(
(class_dense): Linear(in_features=1024, out_features=1024, bias=True)
(dropout): Dropout(p=0.1, inplace=False)
(out_proj): Linear(in_features=1024, out_features=8, bias=True)
)
(classifier4): CustomClassificationHead(
(class_dense): Linear(in_features=1024, out_features=1024, bias=True)
(dropout): Dropout(p=0.1, inplace=False)
(out_proj): Linear(in_features=1024, out_features=8, bias=True)
)
)

I think this is expected. If CustomForSequenceClassificationMultitask works similar to AutoModelForSequenceClassification then a model, say gpt2 will receive a new (untrained, freshly initialized) classification head. That would be classification* in your case. If you use the task type SEQ_CLS in your LoraConfig the classification head(s) will automatically be added to LoraConfig.modules_to_save, thus, they will be saved but they are not adapters. Therefore they are not merged unto the base model.
Therefore the mystery is that you are comparing base models that have merged adapters but differently initialized classification heads which, of course, differ.
You should not see a difference when comparing the PeftModel.from_pretrained() instances.
peft_model1 = PeftModel.from_pretrained(base_model1, peft_path)
peft_model1_merged = peft_model1.merge_and_unload()
peft_model1_merged.eval()

peft_model2 = PeftModel.from_pretrained(base_model2, peft_path)
peft_model2_merged = peft_model2.merge_and_unload()
peft_model2_merged.eval()

print("Comparing base_model1 and base_model2")
compare_model_params(base_model1, base_model2) # expecting a difference

print("Comparing peft_model1 and peft_model2")
compare_model_params(peft_model1, peft_model2) # no difference

@githubnemo , the CustomForSequenceClassificationMultitask does include the parameters for classification heads. So there should not be any initialization for classification head. What I am comparing with is the trained and merged model and the loaded and merged model. The trained and merged model is saved as CustomForSequenceClassificationMultitask, so no initialization for it either. I already mentioned that within the same session, if I load two models (load base -> apply lora -> merge_and_unload), there is no difference within the session. However, I am comparing the loaded model with the checkpoint of the trained-and-merged one which should not change as I just load it from checkpoint.
base_model_path = r"C:\models\tms\download\base2"
peft_path = r"C:\models\tms\download\adapter2"
merged_model_path = r"C:\models\tms\download\adapter2_merged\peft_merged"

config = CustomConfig.from_pretrained(
    base_model_path,
    num_labels=8,
    finetuning_task=None,
    cache_dir=None,
    revision="main",
)

base_model = CustomForSequenceClassificationMultitask.from_pretrained(
    base_model_path,
    config=config,
    cache_dir=None,
    revision="main",
)

peft_model = PeftModel.from_pretrained(base_model, peft_path)
peft_model_merged = peft_model.merge_and_unload()
peft_model_merged.eval()

merged_config = CustomConfig.from_pretrained(
    merged_model_path,
    num_labels=8,
    finetuning_task=None,
    cache_dir=None,
    revision="main",
)

merged_model = CustomForSequenceClassificationMultitask.from_pretrained(
    merged_model_path,
    config=merged_config,
    cache_dir=None,
    revision="main",
)
merged_model.eval()

If I understand you correctly you are wondering why the classification heads are replaced even though you are passing pretrained classifiers. That is understandable and surprising when you simply want to fine-tune the in-between layers instead of the classification heads. PEFT assumes that if your task type is classification (LoraConfig.task_type) that the classification* or score* layers want to be trained as well.
What you are seeing is because you probably set the task type to SEQ_CLS and once you use get_peft_model the classification heads are being retrained as well.
Try setting LoraConfig.task_type to None or using the PeftModel class directly when training your adapters. You should get your expected behavior then.

@githubnemo, when i was training the model, I did not pass task_type. So the default should be None? The pretrained model I load includes classification head parameters as well. Also I put classification heads into modules_to_save. Do you mean that the default task_type is not None in this case?
target_modules = ["query","value","key","dense", "gate_ur_linear"]
saved_modules = ["classifier","classifier2","classifier3","classifier4"]
peft_config = LoraConfig(
r=lora_rank, lora_alpha=lora_alpha, lora_dropout=lora_dropout, target_modules=target_modules,, modules_to_save=saved_modules
 )
model = get_peft_model(model, peft_config)
model.print_trainable_parameters()


Gauging Interest in Guide for Verdaccio Private Registry Uplink

I am writing to gauge interest in whether or not create-react-app would like a new User Guide detailing how to run end to end testing with a private verdaccio uplink, enabling the installation of private packages as dependencies.
Context
create-react-app uses verdaccio to spin up a local registry to publish and pull the current changeset being built - effectively testing exactly how the user would. (By the way, this is awesome!)
create-react-app has the luxury of using the default verdaccio config which includes the public npm registry. All packages to be installed are public.
Problem
A problem is encountered if a team wishes to fork create-react-app and add private or proxied npm packages, as they won't be found on the public registry (at least unauthenticated). This causes yarn installs to fail with 404s during CI. I think one could argue this may be a pretty specific problem, depending on if teams choose to fork the whole monorepo or just react-scripts, but we've found value in the former, and as such, am writing this issue to propose the solution.
Solution
What we've down to support this behavior is

add our private registry as an uplink
alter end to end scripts to add auth or header properties to the verdaccio confg file during CI, being careful not to leak any secret.

This allows us to test generation of create-react-app while pulling down our custom/private packages.
We find it unlikely that we are the only team to encounter this use case. Would create-react-app accept a PR to the User Guide detailing how to accomplish this task?

I'm not sure if this is something that belongs in the Create React App docs or elsewhere. However, we did just recently merge a PR that uses a custom verdaccio config for tests: https://github.com/facebook/create-react-app/pull/4454.
We can discuss this issue further but I thought that might be of some interest to you.

I know about that - in fact it helped me mid-process solve the issue by not having to create that file myself! If you don't feel like this belongs here, I am happy to blog about it and let people find it that way.

I’m not saying it doesn’t belong in the user guide, just that I’m not sure.
Here’s a proposal: submit a PR adding a section to the user guide (maybe something like “CI testing with private packages”). If it’s general enough and useful to others, we’ll merge it. If not you can move it to a blog post and we’ll just link to the blog post from the user guide.

I think I can help with this since I was already writing about this topic.

Sure, we can add this somewhere. Send a PR?

Done, please let me know whether I did it correctly or you were expecting something different. btw, thanks for relying on verdaccio project 💯

@iansu are you fine with the PR?  Hopefully closing this the PR #5767  does not get forgotten.


[Issue]: NVM install latest 21.0.0 is crashing

What happened?
This is what happens. It stays on this screen for minutes and doesn't complete ever.

What did you expect to happen?
Install latest node version.

Version
1.1.11 or newer (Default)
Which version of Windows?
Windows 11+
Which locale?
English (Default)
Which shell are you running NVM4W in?
PowerShell
User Permissions?
Administrative Privileges, Elevated
Is Developer Mode enabled?
No (Default)
Relevant log/console output
![Screenshot 2023-10-19 132526](https://github.com/coreybutler/nvm-windows/assets/980950/e62f37f9-69f8-4a2e-8e8e-747fddccf40f)

Debug Output
![Screenshot 2023-10-19 132526](https://github.com/coreybutler/nvm-windows/assets/980950/e62f37f9-69f8-4a2e-8e8e-747fddccf40f)

Anything else?
No response

I tried it a second time, and it worked after 15 minutes. This may be because everyone wants to try it out.

I'm pretty sure you just ran into the eager beaver problem.

I'm pretty sure you just ran into the eager beaver problem.

Yeah, I think that's true 😂 Node 21 has other issues, but I need to report that on the Node repo.


PerspectivePlugin lack dependens

<EMAIL_ADDRESS><EMAIL_ADDRESS>Hi ,  i use perspective by cdn before , everything is ok , but now i want to use webpack with the plugin PerspectivePlugin supported

and import plugins for recommend

some errors happend

It is look like some dependence haven't list  in the package.json
i view the "@jpmorganchase/perspective-viewer" package, the webpack-plugin.js use some loader and other dependences, but the package.json don't list

is the reason caused the problem ?

@dknfeiov I noticed this as well over the weekend. I've started work trying to fix the underlying issues here: https://github.com/jpmorganchase/perspective/tree/webpack-plugin

Merged & release in 0.2.9


Fix the warning of sed upon launching

Related: #201
launch.py has two instances of prepare_environment() one at line 219 and at line 360
We only need to append to L360 since the one at L219 haven't cloned the repos where the sed changes the files. Adding 4 spaces would ensure that only L360 gets matched.

oops 😋 thanks @NUROISEA ❤


Add model previously added to original repository single level usage as planned

@jacewski-bosch could you check?


YT Music Uploader

I did a quick search and couldn't find a solution...I can't resize the main YT Music Uploader interface. I've tried changing my resolution hoping it would help but it did not. I have a feeling this is a common problem and there's an easy solution but can't find it. :(  By the way, the "manage the uploaded music" screen does allow me to resize.
Thanks

That's very odd... You should most definitely be able to resize that form.
I don't suppose you've running an older version of Windows or a VM are you?

No response - closed


Syntax error occurs at RegExp constructor in IE 11

Problem
Syntax error occurs in<EMAIL_ADDRESS>but not in<EMAIL_ADDRESS>I think this is where the problem starts.
Environment
## System:
 - OS: Windows 10 10.0.18363
 - CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
 - Memory: 4.47 GB / 15.84 GB
## Binaries:
 - Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
 - npm: 6.14.7 - C:\Program Files\nodejs\npm.CMD
## npmPackages:
 - styled-components: ^5.2.0 => 5.2.0

Reproduction
Steps to reproduce
Bundles with webpack + babel.
package.json
  ...
  "devDependencies": {
    "@babel/cli": "^7.11.6",
    "@babel/core": "^7.11.6",
    "@babel/preset-env": "^7.11.5",
    "@babel/preset-react": "^7.10.4",
    "babel-loader": "^8.1.0",
    "core-js": "^3.6.5",
    "regenerator-runtime": "^0.13.7",
    "terser-webpack-plugin": "^4.2.2",
    "webpack": "^4.44.2",
    "webpack-cli": "^3.3.12",
    "webpack-merge": "^5.1.4"
  },
  "dependencies": {
    "prop-types": "^15.7.2",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-redux": "^7.2.1",
    "react-router-dom": "^5.2.0",
    "styled-components": "^5.2.0"
  }
  ...

babel.config.json
{
  "presets": [
    [
      "@babel/preset-env",
      {
        "corejs": 3,
        "targets": "defaults",
        "useBuiltIns": "usage"
      }
    ],
    [
      "@babel/preset-react"
    ]
  ]
}

"targets": "defaults" => supports IE 11
Expected Behavior
No syntax error
Actual Behavior
SCRIPT5017: Syntax error in regular expression

close this because it's not a problem of styled-components. Sorry.

https://github.com/styled-components/styled-components/issues/3266


specify more than one database and/or retention policy in a tick script

This is more of a general question, rather than issue, so if there's a more appropriate place for me to post this question please let me know.
Working off the example cpu_alert_stream.tick I have a dataframe defined like this:
// Dataframe
var data = stream
  |from()
    .database('metrics_cust1')
    .retentionPolicy('default')
    .measurement('cpu')
    .groupBy('host')
    .where(lambda: "cpu" == 'cpu-total')
  |window()
    .period(period)
    .every(every)
  |mean('usage_user')
    .as('stat')

From the looks of it, if I want to monitor another database on the same influxdb server it appears I will have to make another duplicate tick script with a different name and the database field changed.  I would also have to define another cpu_alert_stream.
Is there a way for me to avoid having to recreate tick scripts for say another environment? For example, prod/stg/dev. Or, cust1/cust2/cust3/.
Something like this?
.database('metrics_cust1', 'metrics_cust2', 'metrics_custn')

or
.database('metrics_cust1')
.database('metrics_cust2')
.....

Even if I created a new stream per database, I'd still end up having to create another similar tick_script.

@smd01 we just recently opened up our community page. This would be perfect for there.


generate fails

Describe the bug
Fails with the output
Steps to reproduce
run frb generate
Logs
flutter_rust_bridge_codegen create spacehub
[2023-12-31T19:58:06.748Z INFO frb_codegen/src/library/commands/flutter.rs:8] Execute `flutter create spacehub`
[2023-12-31T19:58:09.627Z INFO frb_codegen/src/library/integration/creator.rs:18] Step: Inject flutter_rust_bridge related code
[2023-12-31T19:58:09.628Z INFO frb_codegen/src/library/commands/flutter.rs:14] Execute flutter pub add ["rust_builder", "--path=rust_builder"]
[2023-12-31T19:58:12.910Z INFO frb_codegen/src/library/commands/flutter.rs:14] Execute flutter pub add ["flutter_rust_bridge:2.0.0-dev.9"]
[2023-12-31T19:58:16.144Z INFO frb_codegen/src/library/commands/flutter.rs:14] Execute flutter pub add ["ffigen:8.0.2", "--dev"]
[2023-12-31T19:58:19.650Z INFO frb_codegen/src/library/commands/flutter.rs:14] Execute flutter pub add ["integration_test", "--dev", "--sdk=flutter"]
[2023-12-31T19:58:22.856Z WARN frb_codegen/src/library/commands/command_runner.rs:133] command="sh" "-c" "\"flutter\" \"pub\" \"add\" \"integration_test\" \"--dev\" \"--sdk=flutter\"" stdout= stderr=Note: file is pinned to version 7.0.0 by integration_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because every version of integration_test from sdk depends on file 7.0.0 and ffigen >=2.0.0 <9.0.0 depends on file ^6.0.0, integration_test from sdk is incompatible with ffigen >=2.0.0 <9.0.0.
So, because spacehub depends on both ffigen 8.0.2 and integration_test from sdk, version solving failed.

Error: Command execution failed: Note: file is pinned to version 7.0.0 by integration_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because every version of integration_test from sdk depends on file 7.0.0 and ffigen >=2.0.0 <9.0.0 depends on file ^6.0.0, integration_test from sdk is incompatible with ffigen >=2.0.0 <9.0.0.
So, because spacehub depends on both ffigen 8.0.2 and integration_test from sdk, version solving failed.

### Expected behavior

_No response_

### Generated binding code

_No response_

### OS

_No response_

### Version of `flutter_rust_bridge_codegen`

_No response_

### Flutter info

_No response_

### Version of `clang++`

_No response_

### Version of `ffigen`

_No response_

### Additional context

_No response_

Hi, which flutter version are you using? I guess this is because your Flutter is not latest stable (IIRC flutter officially supports latest stable)

Yup works with flutter stable.


Reduce CPU usage when idle

Currently, the tight loop in Engine causes very high single core CPU usage when idle. This is also not great because this is long-running blocking code running inside of an async task, blocking an async worker entirely. On systems with lower core count, this will probably impact performance fairly negatively.
From my testing, this change dramatically drops CPU usage with minimal impact to performance, although I have not had a chance to benchmark properly.

@EricLBuehler I switched to using yield_now only when nothing is scheduled instead of sleeping indiscriminately. I also did a bit of refactoring to hopefully make things a bit cleaner.

@EricLBuehler
Thanks for the patience here. I have had 0 time for anything besides work.
I finally had the time to leave this running and use it as a backend for a lot of personal inference and I don't see any obvious issues. Let me know if there are any specific things you want me to be on the lookout for.
In terms of CPU usage, it drops from a single core pegged at 100% down to ~1-2%. Happy to gather more rigorous metrics if you would like. Just let me know.
Otherwise, I will get the conflicts sorted and await further review.

@scottwey thanks you for the testing! Great to see the 100% -> ~1% utilization :).
If you could resolve the conflicts, we can absolutely merge.


✨ Support typing.Literal in Python 3.8+

Copied PR #174 from someone who deleted their account because I think it's worth reopening this PR and adding this functionality to typer.
Original PR message:

Support for typing.Literal for creating choices, without actually having to create Enum types. Requires Python 3.8, referenced in https://github.com/tiangolo/typer/issues/76. I ran tests again 3.6 without problems, so I think the version check if working OK.

Any update on merging this?

Any updates on merging this? @tiangolo

Upvote for this PR, as using Literal is more succinct then using enum.

Preview of new docs section: https://a0405a66.typertiangolo.pages.dev/tutorial/parameter-types/enum/#literal-choices

Thanks for this PR @blackary! I've taken the liberty to update this PR with the latest from master. I also added some improvements using new functionality from _typing.py, taking inspiration from the similar PR #669. This PR and that one now both cover largely the same functionality. I would personally merge this one and close the other, but will leave the final decision with Tiangolo as usual 😇

Thanks @svlandeg!

Gently ping @tiangolo

I have a really interesting use case for this PR, basically to copy a pydantic class signature's to a wrapper method to be used directly as a typer command, to avoid defining Enums for every models' fields where a Literal is shorter!
Softly pinging @tiangolo again 😄

Hi all,
There's no need for pinging individual maintainers - this PR is on our internal board and will be reviewed further when Tiangolo has time. All the additional pings make our Github notifications difficult to use and only costs more time 😉 Thanks for your patience!

Hey Sofie,
Thank you for reaching out! It's great to see the team growing, and I hope this will help the project develop and thrive. As well the old yet important PR are checked.
As a community, we would really appreciate feedback from the maintainers (e.g., "won't fix," "in process," etc.) to better understand the status of the PRs and avoid unnecessary pings. The only reason for pinging is the complete absence of information.
Thank you again for the updates!

Currently, the CI is failing with
Run ls -la coverage
ls: cannot access 'coverage': No such file or directory
Error: Process completed with exit code 2.

I'm pretty confused why this happens here though 🤔

Sorry to bother. I wonder what's the status of this PR?

is this close to being merged?

For those waiting on this, there is a workaround until this gets merged: use typer.Option(click_type=click.Choice(values)). It's very verbose, but it works properly.
from typing import Annotated

import click
import typer

def main(
    animal: Annotated[
        str, typer.Option(click_type=click.Choice(["dog", "cat", "ferret"]))
    ] = "dog",
) -> None:
    print(animal)

if __name__ == "__main__":
    typer.run(main)

Result:
$ python t.py
dog

$ python t.py --animal turtle
Usage: t.py [OPTIONS]
Try 't.py --help' for help.
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--animal': 'turtle' is not one of 'dog', 'cat', 'ferret'.                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯

$ python t.py --help

 Usage: t.py [OPTIONS]

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────╮
│ --animal        [dog|cat|ferret]  [default: dog]                                                       │
│ --help                            Show this message and exit.                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯

$ python t.py
dog

$ python t.py --animal ferret
ferret

$ python t.py --animal turtle
Usage: t.py [OPTIONS]
Try 't.py --help' for help.
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--animal': 'turtle' is not one of 'dog', 'cat', 'ferret'.                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯


Consider using postgres:13-alpine image in docs for reduced bloat

Describe the bug
Not really a bug, but a suggestion.
Also, both docker-compose.yml files could be in git.
Expected behavior
postgres              13-alpine           e43172f9204f        10 days ago         160MB
postgres              13                  26c8bcd8b719        2 weeks ago         314MB

Pull requests are welcome! I'll move this to Ideas 💡.


LDAP Authentication

Feature request
Is your feature request related to a problem? Please describe.
I would like to have a custom authentication function when self-hosting. I was planning to use it in my organization, but they require LDAP Auth. It would be great to sign-in just the username, for example changing a little bit from the documentation:
async function signInWithEmail() {
  const ldapAuthSuccess = await customSignInFunction(username, password)
  if ( ldapAuthSuccess) {
    const { data, error } = await supabase.auth.signInWithUsername({ 'username' : username })
  } else {
  // Return error
 }
}

This way the credential are verified by an external function. If that function is successful we can tell supabase to generate the JWT token just with the username without password ( or whatever field we prefer).
For reference, Laravel Sanctum, provide a similar functionality, where it is possibile to issue token just with user model.
https://laravel.com/docs/9.x/sanctum#issuing-api-tokens
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\ValidationException;

Route::post('/sanctum/token', function (Request $request) {
    $request->validate([
        'email' => 'required|email',
        'password' => 'required',
        'device_name' => 'required',
    ]);

    $user = User::where('email', $request->email)->first();

   // Custom auth logic
    if (! $user || ! Hash::check($request->password, $user->password)) {
        throw ValidationException::withMessages([
            'email' => ['The provided credentials are incorrect.'],
        ]);
    }

    // Issue token when successful custom login
    return $user->createToken($request->device_name)->plainTextToken;
});
});

I'm willing to extend supabase, but I need to study a little more about the codebase. It will take time.

Could you elaborate more on what you need to do with LDAP? This is fairly uncommon nowadays, as most use cases can be covered by SSO with SAML (which is supported).

I would like to authenticate via LDAP, given the LDAP settings in some conf file (hostname, cn....).
My organization has self-hosted Microsoft AD without SSO/SAML. How should I proceed?
To add to these, some users are from AD and some other are simple database users. How to proceed? That's why it is crucial that you provide API to do custom auth, as given by example with Laravel.
My current API works this way

Authenticate through LDAP
If it fails, then authenticate via database username/password.

How should I do it?

Any updates on this?

We do not plan on working on LDAP, there's almost zero asks for it.
Feel free to draw up a plan on how that might work and the team can help review it and guide you with implementation once we feel comfortable with it.
Some support for custom authentication systems will be landing with anonymous sign-ins soon, so that may unblock you.
I'll close this issue as not-planned, but please continue commenting on it or open a new one with your implementation plan suggestion.


New Sheet Colors prevent PSDImage.open with ValueError: X is not a valid SheetColorType

Describe the bug
Photoshop introduced new SheetColorTypes (e.g. seafoam, fuschia.. ). This prevents from opening a file that uses them with ValueError: X is not a valid SheetColorType
To Reproduce
Steps to reproduce the behavior:
filename.psd is a file with a layer with a new color type, see below

psd = PSDImage.open('filename.psd')

Expected behavior
the file to open
Environment

Python [3.9]
Version [v1.9.28]

Additional context
A PR here: https://github.com/psd-tools/psd-tools/pull/380

Thanks for raising this. I was wondering why i was getting this error.
Workaround until merge is to not use these colors


Added a MonadResource instance for EitherT e m

cc/ @jystic @charleso @domdere

Don't have a compiler in front of me, but the simplest way I can see is that given the dependencies already there you should be able to just use ExceptT for the conduit code and if there is EitherT that needs to be composed with on the outside can just wrap it back up.

:100:

I confirm that ExceptT is working fine so we don't need this.

This is late but i agree with @markhibberd that this is a bad idea,
but i also think its not necessary to use ExceptT either, just stick with EitherT, you can do this in MonadResource as long as you dont use it in your own conduits, and resolve to use bracket and such, Conduit does provide bracketP and that family of functions so you really dont actually need MonadResource or ResourceT that much, the only time i find its necessary is when other libraries have used it for their sources and sinks, e.g http-client.  But even then as long as you dont use it in the conduit you place inbetween the source and sink, its a trivial matter to hoist it into ResourceT and have it at the outermost layer, ResourceT (EitherT m) a has a MonadResource instance
{-# LANGUAGE OverloadedStrings #-}

import           Control.Monad.Morph
import           Control.Monad.IO.Class
import           Control.Monad.Trans (lift)
import           Control.Monad.Trans.Class
import           Control.Monad.Trans.Either
import           Control.Monad.Trans.Except
import           Control.Monad.Trans.Resource

import           Data.ByteString (ByteString)
import           Data.Conduit
import qualified Data.Conduit.Binary as CB
import qualified Data.Conduit.List as CL
import           System.IO ( IOMode(..), withBinaryFile )
import           Data.Text (Text)
import qualified Data.Text as T
import           Data.Void (Void)

main :: IO ()
main = mainWithoutMonadResource -- i recommend this whenever possible

mainWithMonadResource :: IO ()
mainWithMonadResource = do
  -- Lift your clean resourceT free code into ResourceT so it meshes with the ugly conduit MonadResource crap
  xs <- runEitherT (runResourceT (CB.sourceFile "src/Main.hs" $$ hoist lift mycode =$= CL.consume))
  print xs
  return ()

-- or even better... do NOT use MonadResource at all...
mainWithoutMonadResource :: IO ()
mainWithoutMonadResource = withBinaryFile "src/Main.hs" ReadMode $ \h -> do
  xs <- runEitherT (CB.sourceHandle h $$ mycode =$= CL.consume)
  print xs
  return ()

-- Dont _ever_ use MonadResource/ResourceT in here
mycode :: (Monad m) => Conduit ByteString (EitherT Text m) ByteString
mycode = CB.lines
  =$= CL.map parse
  =$= CL.mapM (EitherT . return)

parse :: ByteString -> Either Text ByteString
parse _ = Left ":("

Thanks for the tip, @domdere. It is indeed working by lifting EitherT into ResourceT.


Inconsistent behavior of fully qualified type hints.

In conf.py I have set typehints_fully_qualified = False.
However, while most type hints adhere to this, there are some cases where they appear fully qualified for no apparent reason.
For example
def mass_translator(
        *,
        mass_in: Union[str, MassDef],
        mass_out: Union[str, MassDef],
        concentration: Union[str, Concentration]
) -> Callable[[Cosmology, Union[Real, NDArray], Real],
              Union[Real, NDArray]]:

gets interpreted as

while
def convert_concentration(
        cosmo: Cosmology,
        *,
        c_old: Union[Real, NDArray[Real]],
        Delta_old: Real,
        Delta_new: Real
) -> Union[float, NDArray[float]]:

looks alright

It also doesn't work well at all with numpy.typing.ArrayLike, as it always fully qualifies it:
-> ArrayLike

becomes

This is the rest of the config for autodoc and autodoc_typehints:
# Additional `autodoc` options.
autodoc_default_options = {
    "member-order": "bysource",
    "show-inheritance": True,
    "inherited-members": True,
    "special-members": "__call__",
}

# Options for `sphnix_autodoc_typehints`.
typehints_fully_qualified = False
typehints_defaults = "braces"
typehints_document_rtype = False
typehints_use_signature_return = True

I use Sphinx 6.2.1 and Python 3.11 on Ubuntu 22.04 LTS.
sphinx_autodoc_typehints.__version__ = '1.21.8'.

@gaborbernat quick question regarding ArrayLike: could you verify that you can reproduce the problem, or am I doing something wrong with the options I am passing to the extension?

Can't help you, if you find the problem, PR welcome.

Seems stalled.

FYI this is still an issue, it isn't completed. I have provided all the info needed to reproduce it, but let me know if I can provide you with anything else too.

I don't know what is happening under the hood, so unfortunately I can't contribute with a PR. I opened an issue because I feel like this is a bug to do with the repo.
If the Issue log here is only meant to represent a to-do list feel free to close.

It's a TODO list for the community; I'm just the maintainer here, not the developer in residence 😊 we can keep it open if you think we have all the info you wanted.

Yes, I think all the info needed to reproduce is provided.
PS: I know it's a community project, and that's why I never asked that someone in particular solves it. I only raised the fyi because you closed it as "completed" without the bug having actually been fixed.


Game crashing when giving cards

Hi, I am trying to take a look but I think the repo is missing the windows forms?

https://stackoverflow.com/questions/63492186/c-sharp-application-freezing-suddenly

And the source code is updated now, was busy sorry.


Service in inconsistent state

After several sequences of registering and removing a service with the same id, I now reached a state where the service no longer appears in the services dialog but I also cannot register it.
When trying to register, getting the following message:
Service with id 'JIService' already exists
To install the service, delete the existing one or change service Id in the configuration file
System.Exception: Installation failure: Service with id 'JIService' already exists
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)

@Lizyaffe
I suppose there is a non-deleted entry in the registry. Could you check it's contents and attach them to the ticket?
Some info about services location in the registry: http://smallvoid.com/article/winnt-services-regedit.html

No response from the requester


Permissions

What permissions are required to use centralized deployment I.E. this feature here
https://docs.microsoft.com/en-us/office/dev/add-ins/publish/centralized-deployment
Thanks

@c9777777 thanks for your interest in Office Add-ins, and for reaching out with this question. You must be an O365 admin for your organization in order to use centralized deployment to deploy Office Add-ins to users within your organization. Additional information about requirements for using centralized deployment can be found in Determine if Centralized Deployment of add-ins works for your organization.


How to set charset (Portuguese)

I'm typing in portuguese and some words have accents. For example "diversão".
When I console.log the v-model it's returning "d i v e r s & a t i l d e ; o". Is there an option to fix this?
I use php to manage the backend and It's inserting into the database the way it is in console.log(); and when I get it back from the DB the text is correct only inside the text box.

I fixed it using v-html from vue.js. Sorry.


Forgot to PR for the week - Assignments and Sprint

Sprint Challenge Code Review
Week 3 - Creating Professional Portfolios

Part 1 — Lede
Fantastic work on this sprint! You can improve your lede even further by applying the "5Ws" as described in the article Ryan provided. You can additionally explain each of the acronyms (WAR, EWA, RPM, %eFG) for the people like me who are completely clueless about NBA. 😄Great explanation of Elo!
Your application of Hemingway to make your writing accessible to wider audiences (and your overall preference for communicating clearly and in simple terms) will serve you really well in making yourself more recruitable. Great communication skills!

Part 2— Sources
Good sources - glad you were able to find a suitable and reasonably clean dataset. Nice markdown formatting.

Part 3 — Action Plan
Really well done yet again, you have a clear idea about where you want to go with this. Looking forward to seeing more!
Well done, Chris!


Update README.md

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #363 (a240743) into master (3591822) will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #363      +/-   ##
============================================
+ Coverage     58.39%   58.41%   +0.01%
- Complexity     1228     1229       +1
============================================
  Files           133      133
  Lines          5011     5011
  Branches        589      589
============================================
+ Hits           2926     2927       +1
  Misses         1814     1814
+ Partials        271      270       -1

Impacted Files
Coverage Δ

...ava/com/amazonaws/xray/AWSXRayRecorderBuilder.java
69.29% <0.00%> (+0.87%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


add macro paradise and macro-compat

because latest Shapeless needs them. fixes #202

pretty sure this was already proven good by https://scala-ci.typesafe.com/job/scala-2.11.x-integrate-community-build/198/consoleFull, but just in case: https://scala-ci.typesafe.com/job/scala-2.11.x-integrate-community-build/199/consoleFull


Awake on Laptop, controlled by Power Plan or Laptop cover

Description of the new feature / enhancement
I'm using Awake on my laptop. Awake works very well when I plug it in, but caused a lot of heat, consumed a lot of battery when I forgot to turn off Awake and put my laptop in my bag.
The Awake I currently know cannot automatically solve this problem, in fact, it only has the following mechanical options.

Is there any way to make the act of "picking up the laptop and leaving" more elegant? I would greatly appreciate it if a long-term effective switch could be set to prevent Awake from functioning after leaving the power source or closing the lid, or any other useful method.
Scenario when this would be used?
Awake on Laptop, outdoor and mobile usage
Supporting information
Powertoy v0.85.1
Lenovo 14‘ Laptop for win 11

IMO it would be a good idea to combine with #31156

If Awake could implement this function, it would be very convenient.
#31156 mentions the function of closing the lid, but does not provide a constant light option, and it seems that he eventually came up with a plan on his own.
By the way, the best result is to quickly adjust the time for stop display, sleeping, and hibernating. Sometimes I don't want to manually turn off the monitor at the level of power supply, for that I don't want the scaling ratio of some running software to be compromised, but it's also difficult to determine how long the computer will stay on after locking the system

Duplicate of #34479. Let's consolidate the conversation about the Awake behavior there.


not able to select same file consecutively

event is not firing when selecting a file on subsequent attempts.

I was able to trigger it by setting the file value to null on element click


Ibiza: Fix incoming activities are not narrated

Fix #1805.

Incoming activities are not narrated by role="log", changed to role="list" and aria-live="polite".

Sorry I just realized you probably (purposefully) untagged reveiwers. Let me know if you need input on this PR and the other Ibiza PR.

I didn't untag reviewers, this branch is targeting ibiza, doesn't have the /.github folder for reviewers. And GitHub is right not tagging anyone. 🥇
Thanks for approving this.


Get multiple resource

Objective

Closes #2942

Solution

Create ManyRes and ManyResMut traits to use in all_tuples! macro.

Changelog

Adds get_many_res and get_many_res_mut methods to World's interface.

Can you add an example usage either in bevy_ecs/examples or just the normal bevy examples. Tests are great to show usage, but they aren't as discoverable as examples.

Picked up again in #11744 :)


Rc_driver.py issue

Mr.hamuchiwa ,
rc_control_test is working fine but when I run rc_driver.py no forward is displaying on the shell and commands are not sent pls help.

@sundar19 I just uploaded another file called rc_driver_nn_only.py which eliminates object detection portion. Can you try it out?

hi @hamuchiwa , is the rc_driver_nn_only.py file just used for troubleshooting? Also, I see you made some edits to rc_driver.py file. Could you please comment on that. Thanks!

@somalwar There are people asking for a short version, and mostly object detection is not an interest anyway. So it's for running on track only, and yes it can be used for troubleshooting as well. Regarding rc_driver edit which is really a tiny change, used variables to replace some repetitive numbers.

Thanks Mr.hamuchiwa mine is working fine now!

And how to fix the distance for object detection my camera sometimes detects stop sign when it's in a very long distance or sometimes in a very short distance . Which parameter or variable should I change to fix my distance from which object should be detected? @hamuchiwa

@sundar19 You can change the threshold at line 50 in rc_driver.py.

Thanks @hamuchiwa

And how to fix the distance for object detection my camera sometimes detects stop sign when it's in a very long distance or sometimes in a very short distance . Which parameter or variable should I change to fix my distance from which object should be detected? @hamuchiwa

Could you tell me where did you get the stop sign and if possible even traffic light...Any links..??

@sundar19 Can you plz share your trained . XML file ? It's really urgent.

@ShwetaLalwani  my xml is of no use to you. My neural network data doesn't work fine. So I used only forward key to train my neural network and used haar Cascades of left and right  to turn my car. So it is better that you use tensorflow with CNN and more hidden layers and train your xml.


Img and Price Problem to router

I can connect my router with the product deteil buy it is not complete . This fine not the img and price.

'use strict';
Router.configure({
layoutTemplate: 'layout',
notFoundTemplate: '404'
});
Router.route('/', function () {
this.render('products');
});
Router.route('/about', function () {
this.render('about');
});
Router.route('/products/:id', function () {
var that = this;
var product = _.find(Products, function (prod) {
return (prod.id === that.params.id);
});
this.render('productDetail', {
data: product
});
});

hi @wendylop, there isn't really enough information here to help you. this also seems like a question that may be more suited for the meteor forums


Crash on both apps (client and Unity) when peer connection is established

I've spent a few hours now trying to figure out the reason of this issue but no dice.
I can build and deploy the UWP Peer application on a my laptop as well as build and deploy the Unity UWP client application on my desktop which are both on the same network. I start both apps as well as the server application executable and can connect both peers to the server.
Whenever I click connect peer (on either application) both apps throw an unhandled win32 exception and crash.
Has anyone else experienced this problem?

Thank you for the reply and sorry for my late response. But yes, both have a webcam/mic setup.

Just verified by debugging the XamlTestApp on my laptop that there is a webcam, mic, and speakers present. On the Unity client, I see the light on my wecam come up when I start the app so I'm going to assume it's recognizing the devices on that end as well.


The feature of reading VR sensor for TI and Infineon

Hi @rainlinWW,
Do we have a plan to implement following features?

sensor reading for TI VR
sensor reading for Infineon VR
stop only VR sensor polling for VR update (NetFn 0x38, Command 0x14)
Currently BMC use stop all sensor polling for updating Infineon VR (NetFn 0x38, Command 0x30)

Thanks
Young

Hi @rainlinWW,
Let you know we are implementing these features.
Thanks
Young

Implemented by #200


markdown to quill

Is there an existing issue for this?

[X] I have searched the existing issues

Flutter Quill version
9.5.23
Steps to reproduce
Future<quill.QuillController> getQuillControllerFromMarkdown(String markdown) async {
// Create a Markdown document with required configurations
final markdownDocument =
md.Document(encodeHtml: true, withDefaultBlockSyntaxes: true, withDefaultInlineSyntaxes: true);
// Parse the markdown string to build the document structure
markdownDocument.parseLines(markdown.split('\n')); // Splitting the markdown string by line and parsing it
// Pass the Markdown document to MarkdownToDelta
final converter = MarkdownToDelta(markdownDocument: markdownDocument);

// Convert Markdown to Delta
final delta = converter.convert(markdown);
print("json delta:---------${delta.toJson()}");
// Convert Delta to JSON (List<dynamic>)
final deltaJson = delta.toJson();
print("json deltaJson:---------$deltaJson");

// Create and return a QuillController
return quill.QuillController(
  document: quill.Document.fromJson(deltaJson),
  selection: const TextSelection.collapsed(offset: 0),
);

}
Future _loadMarkdown() async {
_controller = await getQuillControllerFromMarkdown(widget.resultTxt);
setState(() {});
}
this is my logic to use markdown in quill editor but header,italic,bold etc style not comes with given markdown responce
Expected results

i want same as it
markdown render in quilleditor
Actual results

this is my responce in this markdown not render with all style
Additional Context
I/flutter (16940): json delta:---------[{insert: # Exploring the Life and Legacy of Mahatma Gandhi
I/flutter (16940):
I/flutter (16940): Mahatma Gandhi's life and work stand as a poignant testament to the power of peaceful resistance and social change. Born in 1869 in Porbandar, India, Mohandas Karamchand Gandhi would become an enduring symbol of non-violent protest and a catalyst for global movements advocating civil rights and justice. Gandhi's journey was marked by a steadfast belief in the potential of non-violence, a principle he would call "Ahimsa," to challenge oppression and bring about transformative societal shifts. His role as a leader of India's struggle for independence from British rule has left indelible footprints on history's sands, solidifying his status as a paragon of ethical leadership and change }, {insert: (IJELS), attributes: {link: https://ijels.com/upload_document/issue_files/13IJELS-103202431-Footprints.pdf}}, {insert:
I/flutter (16940): . In an era rife with conflict and division, Gandhi's life and ideology continue to inspire individuals and

Thank you for the report, markdown is no longer supported on newer versions, it has been deprecated and removed in v11, consider the alternative markdown_quill.

Flutter Quill version
9.5.23

BTW, what is the blocker that prevents using newer versions? If it's a compatibility issue we may be able to solve it.

nothing else, i'm already send u photo markdown not display with style it's display look like normal text

and also a new version of how can display markdown give me example plz

Could you clarify why you're using an outdated version of Flutter Quill?

i'm already send u photo markdown not display with style it's display look like normal text

You're using the experimental support of markdown support, which has been deprecated and is no longer supported, removed in version 11.x.x.

and also a new version of how can display markdown give me example plz

Refer to the package markdown_quill, I'm not sure what you mean, but if you want to load markdown, convert the markdown to Delta and then load it. See Input / Output for more details.


[MXNET-771] Fix Flaky Test test_executor.py:test_dot

Description
Fix #11686, removed fixed seed in test_executor.py:test_dot

Verified this test is flaky and the values for comparison are slightly off
Flakiness comes from sym.dot of tow large tensor. The input tensor size was original set to be a random size in range of (1,500). Reduced 500 to 200 to make it more stable.
The test still fails with 1e-6 tolerance, increased it to 1e-5 (reasonable for fp32)
removed helper function reldiff (calculating relative difference) with assert_almost_equal in mxnet.test_utils which can handle corner case better (when norm in reldiff  is 0)
removed fixed seed

Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with MXNET-771 created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes
See description
Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@kalyc since reldiff is also used in #11685 , with this change, the test_bind() does not fail deterministically when you remove fixed seed. However, it is still flaky and will fail with MXNET_TEST_SEED=1875642038 please take a look

How many trials have you tried with your new rtol and atol values?

@haojin2  10,000 runs, updated in description


Flip horizontal or vertical, pls?

Flip horizontal or vertical button, pls?

Hi! Thanks for the suggestion!
This one I also did not consider, but it's definitely good to have in any programs that handles images really.
I'll definitely look into this, although I have no idea when it would be implemented as I'll put focus into the multiple selections suggestion first. This is because the flip button will be linked to the selection, and since I'm going to have to make some changes to the system that handles selections, implementing this button first would just mean more work afterwards.
In any case, I'll ve working on this after the selection system is done.

Solved by 723d6829bc8881b8955f1289b63cc7e0f6916397, will be merged into V2.4.0


prediction问题

OS Platform and Distribution (Linux Ubuntu 18.04):
Apollo installed from (source ):
Apollo version ( 6.0):
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

Please use bullet points and include as much details as possible:
在预测模块里面，apollo/modules/prediction/evaluator/pedestrian/pedestrian_interaction_evaluator.h行人人预测这个模块，除了测试模块，其他都没有调用它？
代码哪里体现了人交互的地方。
谢谢！

Supporting materials (screenshots, command lines, code/script snippets):

pedestrian_interaction_evaluator is not called indeed！

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.


Revert "Revert "Make health client wo using it""

Reverts vespa-engine/vespa#6042

@hakonhall I guess this one should be closed ?


SAK-28079 - Alias: New email archive alias is lost

SAK-28079 - Alias: New email archive alias is lost

The build failure is unrelated (elasticsearch failure).


Timed metadata are raised all at once when loading a Live DASH DAI stream in a middle of an ad break (4.3.6)

Have you read the FAQ and checked for duplicate open issues?
Yes. I found this issue from 2020, but:

This issue was only reproducible after a long period of streaming (20, 30 minutes), while I'm experiencing it immediately.
I'm using a more recent version of shaka.

What version of Shaka Player are you using?
4.3.6 and 2.3.7 (on the DAI Video Suite Inspector)
Can you reproduce the issue with our latest release version?
Yes (4.3.6).
Can you reproduce the issue with the latest code from main?
Yes
Are you using the demo app or your own custom app?
I first experienced the issue on a custom app using the DAI API.
I then reproduced it on the DAI IMA HTML5 Video Suite Inspector.
If custom app, can you reproduce the issue using our demo app?
Yes, using the DAI IMA HTML5 Video Suite Inspector.
What browser and OS are you using?
Mac OS 13.3.1 / Chrome 112.0.5615.137 (Official Build) (x86_64)
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
N/A
What are the manifest and license server URIs?
URI: https://dai.google.com/linear/dash/pa/event/PSzZMzAkSXCmlJOWDmRj8Q/stream/f61416c6-50b8-40df-9c3f-3cb1c312975a:BRU/manifest.mpd
What configuration are you using?  What is the output of player.getConfiguration()?
No specific configuration is added to the default.
What did you do?

Visit https://googleads.github.io/googleads-ima-html5-dai/vsi/
Enter this asset key PSzZMzAkSXCmlJOWDmRj8Q (official sample LIVE DASH) and select dash
Click on load. You don't need to start playing the stream.
You should land in a middle of an ad break to reproduce issue. If not, reproduce step 3 until you do.

What did you expect to happen?
Timed metadata events should be fired progressively, as they are being raised in the stream.
What actually happened?
A bunch of events are raised all at once when the stream is loaded (not played):

Stream event: streamInitialized
Stream event: loaded
Stream ID: f61416c6-50b8-40df-9c3f-3cb1c312975a:BRU
Stream event: adBreakStarted
Stream event: started
Stream event: firstquartile
Stream event: midpoint
Stream event: thirdquartile
Stream event: complete
Stream event: started

I'm not 100% sure, but I think what is going on is that if we load a manifest and there is a region that is before the playhead, we count that as having skipped the region.
And when we skip a region, we fire both timelineregionenter and timelineregionexit events. See here:
https://github.com/shaka-project/shaka-player/blob/70823f96a6c55d2eda8930cd72895dca89715c63/lib/player.js#L2949-L2962
I can think of a few possible solutions to this on our part, offhand.

Add a timelineregionskip event instead of firing both an enter and exit event.
Add a configuration value to ignore skipped regions, or something like that?
Attach an additional data value to the timelineregionenter and timelineregionexit events that tells you if they are actually representing a skipped region. You could then read that value, and ignore those events as appropriate.

I like adding a skip event, personally. @thomthomgo, would that work for you?

Thanks for looking into this. +1, a skip event would better describe the player behaviour.

The solution I proposed initially ended up not being ideal. It turns out that, since the regions in your stream all have 0 duration, we technically skip over them even in the "normal" case. So making a new skip event didn't help, since it would fire all of the time.
Anyway, while looking for a better solution, I think I found an underlying bug. Sometimes, I think based on how long the stream takes to load, we start checking for regions before the media element's currentTime is set. So when the time is moved to the live head, the region observer ends up thinking we went from time=0 to the live head, and triggers all regions that are between those two points.
So I have made a fix for that instead.

Thanks so much for looking into this! Do you happen to know what is the target release date for 4.4.0? Thanks!


feat/1047 change how model props ymls are created when running generate properties

Codecov Report
Base: 33.81% // Head: 32.53% // Decreases project coverage by -1.28% :warning:

Coverage data is based on head (efbde6f) compared to base (31b403a).
Patch coverage: 15.73% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   33.81%   32.53%   -1.29%
==========================================
  Files          29       25       -4
  Lines        2055     1912     -143
==========================================
- Hits          695      622      -73
+ Misses       1360     1290      -70

Flag
Coverage Δ

unittests
32.53% <15.73%> (-1.29%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

dbt_coves/tasks/setup/all.py
71.42% <ø> (+3.78%)
:arrow_up:

dbt_coves/tasks/setup/main.py
100.00% <ø> (ø)

dbt_coves/utils/flags.py
17.11% <0.00%> (+0.59%)
:arrow_up:

dbt_coves/tasks/extract/airbyte.py
23.65% <7.69%> (ø)

dbt_coves/tasks/generate/sources.py
23.07% <11.11%> (+4.77%)
:arrow_up:

dbt_coves/tasks/generate/base.py
17.28% <14.07%> (-7.72%)
:arrow_down:

dbt_coves/tasks/generate/properties.py
37.75% <27.27%> (-1.33%)
:arrow_down:

dbt_coves/config/config.py
59.16% <80.00%> (-1.64%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Significant rewrite of Abi.Encode

Hi !
I've been toying a bit with web3 & Elm.
It seems to me that the abi encoder is significantly broken when it comes to complex structs, or encoding dynamic lists that themselves contains nested pointer indirections.
I've rewritten the whole encoder, and added some tests.
Tests have either been created from ethers.js AbiEncdoer output, or from calls expected by our smartcontracts (I've deployed an app in prod that uses this encoder... works like a charm)
Given that this is a rewrite, I wont mind at all if you're not willing to merge this, though :) That's up to you !
nb: I've also exposed the struct function from your Abi.Decode, which works well for me, despite your frightening comment !
nb2: I'm new to Elm, so please forgive any weird coding style !
Cheers & thanks for this lib !

Updated with some bugfixes + several unit tests (generated from ethersjs AbiEncoder behaviour)


Revert "Automated cherry pick of #8009"

Reverts mattermost/mattermost-webapp#8067

/release-note-none

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Huge thanks @amyblais  for being able to help with this PR!
Just to double check - Can you confirm for that the cloud image going to production will include this revert PR?

Huge thanks @amyblais for being able to help with this PR!
Just to double check - Can you confirm for that the cloud image going to production will include this revert PR?

Yes, I'll ask Cloud team to include this in the release.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: f50536960344bac2c03f0a45a885cdbe9eb5a521


Write a story about our project and try to answer some questions in wiki Home.

Work includes: answering to questions why the system will be built?, for whom it is useful? and what problem will it solve? written.

Estimated amount of work 1 man-hour


Fixed skipPrefix for selfMessage

When skipPrefix for selfMessage in the config is enabled, the bot cannot detect what model to use, since it takes it from the prefix.
I have made a small modification so it takes the model from config.prefix.defaultModel

LGTM


Small fixes to Dutch translation and new lines

I noticed that there was a small typo in the translation of group.
And I translated a whole list of new lines that wasn't translated yet.

👍 Dank je!


No response from application

I have installed the application on a CentOS platform.  I see the sign-in screen and enter admin/admin to set it up, but I get no response from the screen.  I've tried launching the app on Firefox and Chrome, even IE.  No response.  I've checked the apache error logs and no complaints.
Can you give me a hint?

works with PHP5.6, fails from PHP 7.0

On which branch are you running TaskBoard ?
Only the re-write support PHP 7.0

master :-/
you know that PHP 5.6 and 7.0 are no more supported ?
need any helpg oing out of those old versions ??

I know, when I said PHP 7.0, it's PHP >= 7.0
Yes @kiswa is look for maintainers :)

I'm currently in the process of a complete re-write using Angular (not AngularJS). I've had some delays the last few months with life getting in the way, but am hoping to get back into it very soon.
The re-write will only have official support for non-EOL PHP version (currently 7.1, 7.2, and 7.3, though 7.1 is only until Dec.).
While I would like to bring in some other maintainers, I'm not really ready to do that until I get the re-write done and release at least v1.0.0.

ok, I can help for the PHP part if you need.
try to keep us informed of re-write advance. good luck !

https://github.com/kiswa/TaskBoard/projects/1

i downloaded it and it just showing white page


Add support for synchronous iterators in middleware

Only async iterators are supported currently. That's causing some issues in #205 because I need synchronous execution, which is technically possible on the first tick of an async generator, but then the dispatch return value becomes a promise. That's certainly undesirable.
Now that I have a real use for them, I need proper support for synchronous iterators in the redux middleware.
function* dispatcher() {
  yield { type: 'action-1' }
  yield { type: 'action-2' }
  yield { type: 'action-3' }
  return 'return value of `dispatch(...)`'
}

Lies.


Defining noise type for  vector-valued homogeneous SDE

Hello,
I would like to know what kind of noise_type one should pick for a homogeneous SDE:
$$dX(t) = A(t)X(t) + \sum_{j=1}^m B_j(t)X(t) dW_j(t),$$
where $A(t)$ and $B_j(t)$ are square matrices and $dW_j$ is a scalar increment of $m$-dimensional process $W(t)$.

This is general noise, as any component of X can affect any component of dX.
FWIW If you divide your equation by X(t), so as to obtain d log(X(t)) = A(t) d(t) + sum_j B_j(t) dW_j(t) then this would become additive noise, which then admits higher-order solvers. (And in fact in this case, the right hand side becomes independent of X, so I think you could even write down an analytical solution.)
Side note, torchsde requires that you bundle all diffusion terms together into the g method. If you find yourself wanting to use solvers that make explicit use of decomposing the noise into multiple terms -- e.g. Ninomiya-Victoir -- then consider Diffrax. At least in principle this supports using multiple independent noise terms. (Although in practice none of the built-in solvers take advantage of this, but it'd be easy enough to write a solver that does if that is important to you.)


Decide on Java 9 module name(s)

With Java 9 now released, we need to reserve module names by using the MANIFEST.MF entry approach - that is having a key Automatic-Module-Name in it.
As a reminder, there are two ways of consuming Ehcache:

Individual jars, that do not contain any shaded dependencies. The end result is that you have many small jars on the uclasspath.
Fat jars that contain all of the Ehcache code and shaded dependencies, but not repackaged.

The moment we introduce modularity concepts, even as small as picking a module name, I believe we have to make a choice.
We cannot keep two options in the modular world. As it would mean having different modules containing the same package, which would break any app that would have dependencies which did not pick the same Ehcache distribution.
So I would suggest the following:
Only offer the small jars with module definitions

that is effectively deprecating our fat jars for the modular world.
this would solve the shading issue as well, since we would only need dependencies to also have a proper module name and we are good to go.

I would then suggest the following modules (from maven coordinates to module name):

org.ehcache.modules:ehcache-api -> org.ehcache.api
org.ehcache.modules:ehcache-core -> org.ehcache.core
org.ehcache.modules:ehcache-impl -> org.ehcache
org.ehcache.modules:ehcache-xml -> org.ehcache.xml
org.ehcache.modules:ehcache-107 -> org.ehcache.jcache
org.ehcache.modules:ehcache-client -> org.ehcache.clustered.client
org.ehcache.modules:ehcache-common ->org.ehcache.clustered.common
org.ehcache.modules:ehcache-management -> org.ehcache.management
org.ehcache:ehcache-transactions -> org.ehcache.transactions

The following jars would not get a module name:

org.ehcache:ehcahce as it is a fat jar
org.ehcache:ehcache-clustered as it is a fat jar
org.ehcache.modules:ehcache-server as this is not required as long as the Terracotta Server does not run on the module path.

In the current world I think this makes sense... I would however like to then propose we push hard for progress on http://openjdk.java.net/projects/jigsaw/spec/issues/#MultiModuleJARs.  Without this implemented there is going to be constant tension when choosing module boundaries between producers and consumers of modules.

Ship has probably sailed on Multi Module JARs... but we should probably "Java modularize" the component modules.

@chrisdennis  I would like to use ehcache3 as a Java module, but due to the lack of a proper Automatic-Module property I'm not able to properly configure it as the calculated module name leads to a illegal name. Where would be the correct place to add this information in order prepare an according PR?


add title/description fields

This PR addresses #728
Right now it's just a start, but my manual (not very thorough testing) indicates that it's working.
Other things that should probably be added/modified:

docs
tests
error messages should use descriptions

Also, I had some failing tests but I don't think these are related to this PR:
FAILED tests/koalas/test_schemas_on_koalas.py::test_nullable[dtype5] - TypeError: field field: LongType can not accept object <NA> in type <class 'pandas._libs.missing.NAType'>
FAILED tests/koalas/test_schemas_on_koalas.py::test_nullable[dtype10] - TypeError: field field: ShortType can not accept object <NA> in type <class 'pandas._libs.missing.NAT...
FAILED tests/koalas/test_schemas_on_koalas.py::test_nullable[dtype11] - TypeError: field field: ByteType can not accept object <NA> in type <class 'pandas._libs.missing.NATy...
FAILED tests/koalas/test_schemas_on_koalas.py::test_nullable[dtype13] - TypeError: field field: IntegerType can not accept object <NA> in type <class 'pandas._libs.missing.N...
FAILED tests/modin/test_schemas_on_modin.py::test_nullable[ray-dtype2] - ValueError: StringArray requires a sequence of strings or pandas.NA
FAILED tests/strategies/test_strategies.py::test_check_nullable_field_strategy[True-index_strategy-data_type24] - ValueError: StringArray requires a sequence of strings or p...
FAILED tests/strategies/test_strategies.py::test_check_nullable_field_strategy[True-series_strategy-data_type24] - ValueError: StringArray requires a sequence of strings or ...

thanks @smackesey ! would you mind rebasing your changes onto dev and changing the PR target to it? that should address at least some of the errors.

Looks great!
The BaseConfig class needs to be extended with title and description properties here, which is then used by SchemaModel when converting to a DataFrameSchema here.

unit tests are looking good!

Other things that should probably be added/modified:

docs
tests
error messages should use descriptions

Are you planning to address this in another PR?

Are you planning to address this in another PR?

Up to you how to handle this. I posted this PR without adding these "secondary" items because I didn't really know whether they were necessary and/or the right approach. Projects have different approaches to testing/docs and it can be difficult to know where to add without a global understanding. Sometimes it makes sense for a contributor to add the core code for a feature and a maintainer to fill in this secondary materials.
But, I can add them in this PR if you like. Let me get more specific with questions:

Docs: Is it necessary to add any additional material, or are the updated docstrings (and subsequent updates to API docs sufficient)?
Tests: the fact that adding these fields did not cause any tests to fail suggests to me that there's no obvious place to add/modify tests for these fields. Am I wrong? Happy to add/adjust if you can give me some pointers as to where.
Error messages leveraging this metadata is a separate feature and IMO does not need to be in this PR, though if you disagree happy to work with you.

merging this now, thanks @smackesey !


227/docs

Coverage remained the same at 95.507% when pulling 1f1f8d78b8a977de999cd3bd1a7dd9ef2b200974 on 227/docs into 3c0f8ff586d422dc5354793f0e6f14a86c3b537b on dev.


Orquesta workflow outputs are not directly accessible on it result()

SUMMARY
It appears that orquesta writes its output data to an embedded dictionary in the output key.
This is a change from Mistral where output variables were directly accessible in the result.
Example:
# mistral
{{ task('abc').myoutputvar }}

# orquesta
{{ result().output.myoutputvar }}

This causes issues when converting workflows from Mistral to Orquesta where the tasks are workflow actions.
ISSUE TYPE

Bug Report
Other

STACKSTORM VERSION
$ st2 --version
st2 3.0dev (3ac37d0), on Python 2.7.5

OS / ENVIRONMENT / INSTALL METHOD
$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

# Install method = puppet-st2

STEPS TO REPRODUCE
Root workflow action
---
name: orquesta_root
description: A basic sequential workflow.
runner_type: orquesta
entry_point: workflows/orquesta_root.yaml
enabled: true
parameters:
  name:
    required: true
    type: string
    default: Lakshmi

Root workflow
version: 1.0

description: A basic sequential workflow.

input:
  - name

vars:
  - data: null

output:
  - data: "{{ ctx().data }}"

tasks:
  orquesta_wf:
    action: default.orquesta_wf
    input:
      name: "{{ ctx().name }}"
    next:
      - publish:
          - data: "{{ result().data }}"

Nested workflow action:
---
name: orquesta_nested
description: A basic sequential workflow.
runner_type: orquesta
entry_point: workflows/orquesta_nested.yaml
enabled: true
parameters:
  name:
    required: true
    type: string
    default: Lakshmi

Nested workflow:
version: 1.0

description: A basic sequential workflow.

input:
  - name

vars:
  - data: null

output:
  - data: "{{ ctx().data }}"

tasks:
  get:
    action: st2.kv.get
    input:
      key: "orquest.mistral.test"
    next:
      - when: "{{ succeeded() }}"
        publish:
          - data: "{{ result() }}"

EXPECTED RESULTS
The workflow to succeed and access the data variable in the output of the nested Orquesta workflow.
ACTUAL RESULTS
$ st2 run default.orquesta_mistral
.
id: 5be3014f9387ef099b023038
action.ref: default.orquesta_mistral
parameters: None
status: failed
start_timestamp: Wed, 07 Nov 2018 15:14:23 UTC
end_timestamp: Wed, 07 Nov 2018 15:14:25 UTC
result:
  errors:
  - message: 'There are unresolved variables: result().data'
    task_id: orquesta_wf
    task_transition_id: noop__0
  output: null
+-----------------------------+------------------------+-------------+---------------------+-----------------+
| id                          | status                 | task        | action              | start_timestamp |
+-----------------------------+------------------------+-------------+---------------------+-----------------+
| + 5be3014f9387ef099f55ea5d  | succeeded (1s elapsed) | orquesta_wf | default.orquesta_wf | Wed, 07 Nov     |
|                             |                        |             |                     | 2018 15:14:23   |
|                             |                        |             |                     | UTC             |
|    5be301509387ef099f55ea60 | succeeded (0s elapsed) | get         | st2.kv.get          | Wed, 07 Nov     |
|                             |                        |             |                     | 2018 15:14:24   |
|                             |                        |             |                     | UTC             |
+-----------------------------+------------------------+-------------+---------------------+-----------------+

@nmaludy This is not an issue or bug in my opinion. We changed the data structure for the result of the Orquesta workflow. The result contains errors, log entries (soon) and we separate the return values (output) defined in the workflow definition under output.  If we don't have this separation, the result dict will be fairly messy.


All: Get access to https://hub.docker.com/r/lbryio/

Need to arrange access to create repos for these containers for testing and eventual deployment.
Tagging @nikooo777 as I believe he's likely the one with access.

I do not have access to said platform, however it's possible that @kauffj has.

I do not - @lyoshenka ?


right clicking makes discord unable to be interacted with

right clicking makes discord unable to be interacted with, however i can still see/hear everything.

its an issue with a plugin, unsure which one, as i mass deleted a lot.


Infinite recursion

I'm testing out pnpm2nix, and I'm getting an infinite recursion:
package.json
{
  "name": "",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "babel-jest": "^22.1.0",
    "babel-loader": "^7.1.2",
    "babel-preset-react-app": "^3.1.1"
  }
}

default.nix
let
  pkgs = import <nixpkgs> {};
  pnpm2nix = pkgs.callPackage <pnpm2nix> {};
in

with pkgs;
with pnpm2nix;

mkPnpmPackage {
  src = ./.;
  allowImpure = true;
}

$ NIX_PATH="pnpm2nix=$HOME/Code/pnpm2nix:$NIX_PATH" nix-build default.nix  --show-trace
building '/nix/store/lrghs4wa7nr6sbp4y01lplc2nqv2bszi--shrinkwrap-0.1.0.drv'...
error: while evaluating the attribute 'buildInputs' of the derivation '-0.1.0' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating the attribute 'buildInputs' of the derivation 'babel-jest-22.4.4' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'chooseDevOutputs' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/attrsets.nix:460:22, called from undefined position:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /home/rin/Code/pnpm2nix/default.nix:195:14:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:489:14:
while evaluating anonymous function at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:124:23, called from undefined position:
while evaluating the attribute 'buildInputs' of the derivation 'babel-core-6.26.3' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'chooseDevOutputs' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/attrsets.nix:460:22, called from undefined position:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /home/rin/Code/pnpm2nix/default.nix:195:14:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:489:14:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:489:14:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:489:14:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:489:14:
while evaluating anonymous function at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:124:23, called from undefined position:
while evaluating the attribute 'buildInputs' of the derivation 'babel-register-6.26.0' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'chooseDevOutputs' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/attrsets.nix:460:22, called from undefined position:
while evaluating 'unique' at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:483:12, called from /home/rin/Code/pnpm2nix/default.nix:195:14:
while evaluating anonymous function at /nix/store/gi1nm1ji8mp66avz1hjkvp9xcnzbhmm3-nixos-18.03/nixos/lib/lists.nix:124:23, called from undefined position:
infinite recursion encountered, at undefined position

Thanks for trying out pnpm2nix!
I could not reproduce the exact issue you but I did get an issue on the exact same line an column (pnpm2nix/default.nix:195:14:).
So I think it's actually the same error with different reporting. I've added a test and pushed a fix for the error I saw.
Hopefully this fixes things for you too.

Thanks, @adisbladis !
Looks like it fixed it for my reduced case, but not for my real project. I've attached more complete files.
NIX_PATH="pnpm2nix=$HOME/Code/pnpm2nix:$NIX_PATH" nix-build pnpm.nix  --show-trace
building '/nix/store/qlj02a78zr0b5zz97nlya2dglm1mv40c--shrinkwrap-0.1.0.drv'...
error: while evaluating the attribute 'buildInputs' of the derivation '-0.1.0' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating the attribute 'buildInputs' of the derivation 'babel-jest-22.4.4' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'chooseDevOutputs' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/attrsets.nix:460:22, called from undefined position:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /home/rin/Code/pnpm2nix/default.nix:204:14:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:489:14:
while evaluating anonymous function at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:124:23, called from undefined position:
while evaluating the attribute 'buildInputs' of the derivation 'babel-core-6.26.3' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'chooseDevOutputs' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/attrsets.nix:460:22, called from undefined position:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /home/rin/Code/pnpm2nix/default.nix:204:14:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:489:14:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:489:14:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:489:14:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:489:14:
while evaluating anonymous function at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:124:23, called from undefined position:
while evaluating the attribute 'buildInputs' of the derivation 'babel-register-6.26.0' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'chooseDevOutputs' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/attrsets.nix:460:22, called from undefined position:
while evaluating 'unique' at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:483:12, called from /home/rin/Code/pnpm2nix/default.nix:204:14:
while evaluating anonymous function at /nix/store/sgg0ngb6pmimng8mmbrsjnryxa26zzxj-nixos-18.03.132500.2f6440eb09b/nixos/lib/lists.nix:124:23, called from undefined position:
infinite recursion encountered, at undefined position

sample.zip

Oh, by the way I'm using the pnpm in nixos-18.03. Not sure if that affects anything.
$ pnpm --version
1.37.3

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.43, NixOS, 18.03.132500.2f6440eb09b (Impala)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.0.2`
 - channels(rin): `""`
 - channels(root): `"nixos-18.03.132500.2f6440eb09b"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`

This is a case of circular dependencies.
babel-register-6.26.0 depends on babel-core-6.26.3 and vice versa.
I have seen this in another project too but I have not yet reached a conclusion how that should be handled or if I consider it a packaging bug.
I'm open to suggestions.

What about: if we detect a cycle (is it possible to detect a cycle?), replace that derivation with a derivation that includes all packages for which there is a cycle. So in this case, it would include both babel-core and babel register and maybe look something like this:
/nix/store/xxx/node_modules/babel-core/node_modules/${non-cyclical-deps}
/nix/store/xxx/node_modules/babel-register/node_modules/${non-cyclical-deps}
We could then

@jbboehr I independently arrived at a similar conclusion to merge the packages :)
I think a store structure like:
/nix/store/<hash>-<name>/babel-core/package.json
/nix/store/<hash>-<name>/babel-core/index.js
/nix/store/<hash>-<name>/babel-core/node_modules/babel-register  # (symlink to /nix/store/<hash>-<name>-lib/babel-register)
/nix/store/<hash>-<name>/babel-register/package.json
/nix/store/<hash>-<name>/babel-register/index.js
/nix/store/<hash>-<name>/babel-register/node_modules/babel-core  # (symlink to /nix/store/<hash>-<name>-lib/babel-core)

would work pretty well.
There has been some pretty good progress towards solving this issue in https://github.com/adisbladis/pnpm2nix/commit/82632b4211914c01126edfc60591a2270a7c406e.
I can detect and break cycles though there is still some nix-store restructuring required before it actually works.
For now I have added an assertion that errors out on circular dependencies.

I'm still not sure how to structure this while not completely screwing up overrides. Any ideas?