HACS - Music Assistant - You are running version 2023.6.0b0, version 2023.6.0b1 is available

What version of Music Assistant has the issue?
2023.6.0b0
The problem
After recent update of Music Assistant I noticed a message in HACS saying that there is an update to Music Assistant.
However when I click on it to update nothing happens.
When I go to HACS --> Integrations and click on Music Assistant I get Unknown error message
How to reproduce
try to update
Relevant log output
 No manifest.json file found 'custom_components/None/manifest.json'
Additional information
Tried
What version of Home Assistant Core are your running
2023.7.2
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)

I have the same problem. I expect it is a HACS problem. I was going to try and uninstall HACS then reinstall it to see if that fixes it but haven’t had time as yet

I will publish a new beta version either today or tomorrow, please check if that resolves it. We had some CI issues when releasing the 2023.6.0b1 version so maybe something just messed up in the metadata.

I don't know if that update was published but my MA HACS integration is still stuck.

No update yet

2023.6.0b2 is released, can that be installed ?

No. I’ll have to and reinstall HACS I think

I have updated the addon to 2.0.0b59 but that made no difference to the HACS integration. Still stuck. On top of that my HA is no reporting this in Repairs:
The Music Assistant server is not the correct version
Check if there are updates available for the Music Assistant Server and/or integration

@alfwro13 you need to update the HACS version.... 2023.6.0b2 (and actually b3 already) is available

I’ve opened an issue in HACS https://github.com/hacs/integration/issues/3201#issuecomment-1645273776

I'll followup if I get a response to my HACS issue that I opened but I have now completly deleted and then reinstalled HACS and that has fixed it. Make sure you follow the directions here to uninstall https://hacs.xyz/docs/setup/remove


[Support] state of the accessories won’t save between restart

Hello! I’m running the plugin on a windows 10 pc and the state of the device will change to “on” after I restart HomeBridge
Am I missing a line which will save the state?
The log is saying that it cached the state but still won’t stay after restart
thank you

Hi,
I need more information like what is in your config.json file.
ttyl,
John
On Mon, Nov 8, 2021 at 3:18 AM BaRaD5 @.***> wrote:

Assigned #117 https://github.com/ztalbot2000/homebridge-cmd4/issues/117
to @ztalbot2000 https://github.com/ztalbot2000.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/ztalbot2000/homebridge-cmd4/issues/117#event-5581102691,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCX5O7LYU2MRA7VTWGFLUK6BXDANCNFSM5HSAVYCQ
.

Hi, I need more information like what is in your config.json file. ttyl, John
…
On Mon, Nov 8, 2021 at 3:18 AM BaRaD5 @.***> wrote: Assigned #117 <#117> to @ztalbot2000 https://github.com/ztalbot2000. — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#117 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCX5O7LYU2MRA7VTWGFLUK6BXDANCNFSM5HSAVYCQ .

{
"platform": "Cmd4",
"name": "Cmd4",
"debug": false,
"allowTLV8": false,
"outputConstants": false,
"accessories": [
{
"type": "Television",
"displayName": "Master Bedroom TV",
"publishExternally": true,
"category": "TELEVISION",
"active": "ACTIVE",
"activeIdentifier": 1,
"configuredName": "Master Bedroom TV",
"sleepDiscoveryMode": "ALWAYS_DISCOVERABLE",
"linkedTypes": [
{
"type": "InputSource",
"displayName": "HOT",
"configuredName": "HOT",
"currentVisibilityState": "SHOWN",
"inputSourceType": "HDMI",
"isConfigured": "CONFIGURED",
"identifier": 1,
"targetVisibilityState": "SHOWN",
"name": "HOT",
"manufacturer": "HOT",
"model": "HOT MAGIC HD",
"serialNumber": "00000001"
}
],
"manufacturer": "NEON",
"model": "Android TV",
"serialNumber": "00000001",
"stateChangeResponseTime": 3
},
{
"type": "Television",
"displayName": "Living room TV",
"publishExternally": true,
"category": "TELEVISION",
"active": "ACTIVE",
"activeIdentifier": 1,
"configuredName": "Living room TV",
"sleepDiscoveryMode": "ALWAYS_DISCOVERABLE",
"linkedTypes": [
{
"type": "InputSource",
"displayName": "HOT",
"configuredName": "HOT",
"currentVisibilityState": "SHOWN",
"inputSourceType": "HDMI",
"isConfigured": "CONFIGURED",
"identifier": 1,
"targetVisibilityState": "SHOWN",
"name": "HOT",
"manufacturer": "HOT",
"model": "HOT MAGIC HD",
"serialNumber": "00000002"
},
{
"type": "InputSource",
"displayName": "Steam Link",
"configuredName": "Steam Link",
"currentVisibilityState": "SHOWN",
"inputSourceType": "APPLICATION",
"isConfigured": "CONFIGURED",
"identifier": 5,
"targetVisibilityState": "SHOWN",
"name": "Steam Link",
"manufacturer": "VALVE",
"model": "1.0",
"serialNumber": "00000002"
}
],
"manufacturer": "Philips",
"model": "Philips",
"serialNumber": "00000002",
"stateChangeResponseTime": 3
}
],
"_bridge": {
"username": "0E:73:E2:FF:33:46",
"port": 30672
}
}

Hi,
Thanks for the quick response.  I think you are a little confused about
Homebridge and the purpose of the Cmd4 plugin, but that's all good. I'll
try to help you as much as I can.
Why I may think this is that you filled out the fields in the config.json
for your TV, but there is no state_cmd in your config.json.  Cmd4 expects
you to write your own scripts to control devices that may not be supported
by other plugins or in a way to your own satisfaction.
Televisions are very complicated accessories. I don't think you want to
write your own scripts for one. However, a quick search for Homebridge Neon
TV plugin yielded:
https://github.com/merdok/homebridge-webos-tv
I think this is more of what you are probably looking for.
I hope this helps and if it does, close the ticket.  If your still stuck,
just reply to the closed ticket, I'll still respond.
Ttyl,
John
On Mon, Nov 8, 2021 at 8:32 AM BaRaD5 @.***> wrote:

Hi, I need more information like what is in your config.json file. ttyl,
John
… <#m_-3393807741112896838_m_-3264148231566268169_>
On Mon, Nov 8, 2021 at 3:18 AM BaRaD5 @.***> wrote: Assigned #117
https://github.com/ztalbot2000/homebridge-cmd4/issues/117 <#117
https://github.com/ztalbot2000/homebridge-cmd4/issues/117> to
@ztalbot2000 https://github.com/ztalbot2000
https://github.com/ztalbot2000. — You are receiving this because you were
assigned. Reply to this email directly, view it on GitHub <#117 (comment)
https://github.com/ztalbot2000/homebridge-cmd4/issues/117#event-5581102691>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCX5O7LYU2MRA7VTWGFLUK6BXDANCNFSM5HSAVYCQ
.
{
"platform": "Cmd4",
"name": "Cmd4",
"debug": false,
"allowTLV8": false,
"outputConstants": false,
"accessories": [
{
"type": "Television",
"displayName": "Master Bedroom TV",
"publishExternally": true,
"category": "TELEVISION",
"active": "ACTIVE",
"activeIdentifier": 1,
"configuredName": "Master Bedroom TV",
"sleepDiscoveryMode": "ALWAYS_DISCOVERABLE",
"linkedTypes": [
{
"type": "InputSource",
"displayName": "HOT",
"configuredName": "HOT",
"currentVisibilityState": "SHOWN",
"inputSourceType": "HDMI",
"isConfigured": "CONFIGURED",
"identifier": 1,
"targetVisibilityState": "SHOWN",
"name": "HOT",
"manufacturer": "HOT",
"model": "HOT MAGIC HD",
"serialNumber": "00000001"
}
],
"manufacturer": "NEON",
"model": "Android TV",
"serialNumber": "00000001",
"stateChangeResponseTime": 3
},
{
"type": "Television",
"displayName": "Living room TV",
"publishExternally": true,
"category": "TELEVISION",
"active": "ACTIVE",
"activeIdentifier": 1,
"configuredName": "Living room TV",
"sleepDiscoveryMode": "ALWAYS_DISCOVERABLE",
"linkedTypes": [
{
"type": "InputSource",
"displayName": "HOT",
"configuredName": "HOT",
"currentVisibilityState": "SHOWN",
"inputSourceType": "HDMI",
"isConfigured": "CONFIGURED",
"identifier": 1,
"targetVisibilityState": "SHOWN",
"name": "HOT",
"manufacturer": "HOT",
"model": "HOT MAGIC HD",
"serialNumber": "00000002"
},
{
"type": "InputSource",
"displayName": "Steam Link",
"configuredName": "Steam Link",
"currentVisibilityState": "SHOWN",
"inputSourceType": "APPLICATION",
"isConfigured": "CONFIGURED",
"identifier": 5,
"targetVisibilityState": "SHOWN",
"name": "Steam Link",
"manufacturer": "VALVE",
"model": "1.0",
"serialNumber": "00000002"
}
],
"manufacturer": "Philips",
"model": "Philips",
"serialNumber": "00000002",
"stateChangeResponseTime": 3
}
],
"_bridge": {
"username": "0E:73:E2:FF:33:46",
"port": 30672
}
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ztalbot2000/homebridge-cmd4/issues/117#issuecomment-963154464,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCX5HDQRN7DN5BRAMGJ3UK7GQRANCNFSM5HSAVYCQ
.

Hi, Thanks for the quick response. I think you are a little confused about Homebridge and the purpose of the Cmd4 plugin, but that's all good. I'll try to help you as much as I can. Why I may think this is that you filled out the fields in the config.json for your TV, but there is no state_cmd in your config.json. Cmd4 expects you to write your own scripts to control devices that may not be supported by other plugins or in a way to your own satisfaction. Televisions are very complicated accessories. I don't think you want to write your own scripts for one. However, a quick search for Homebridge Neon TV plugin yielded: https://github.com/merdok/homebridge-webos-tv I think this is more of what you are probably looking for. I hope this helps and if it does, close the ticket. If your still stuck, just reply to the closed ticket, I'll still respond. Ttyl, John
…
On Mon, Nov 8, 2021 at 8:32 AM BaRaD5 @.> wrote: Hi, I need more information like what is in your config.json file. ttyl, John … <#m_-3393807741112896838_m_-3264148231566268169_> On Mon, Nov 8, 2021 at 3:18 AM BaRaD5 @.> wrote: Assigned #117 <#117> <#117 <#117>> to @ztalbot2000 https://github.com/ztalbot2000 https://github.com/ztalbot2000. — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#117 (comment) <#117 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCX5O7LYU2MRA7VTWGFLUK6BXDANCNFSM5HSAVYCQ . { "platform": "Cmd4", "name": "Cmd4", "debug": false, "allowTLV8": false, "outputConstants": false, "accessories": [ { "type": "Television", "displayName": "Master Bedroom TV", "publishExternally": true, "category": "TELEVISION", "active": "ACTIVE", "activeIdentifier": 1, "configuredName": "Master Bedroom TV", "sleepDiscoveryMode": "ALWAYS_DISCOVERABLE", "linkedTypes": [ { "type": "InputSource", "displayName": "HOT", "configuredName": "HOT", "currentVisibilityState": "SHOWN", "inputSourceType": "HDMI", "isConfigured": "CONFIGURED", "identifier": 1, "targetVisibilityState": "SHOWN", "name": "HOT", "manufacturer": "HOT", "model": "HOT MAGIC HD", "serialNumber": "00000001" } ], "manufacturer": "NEON", "model": "Android TV", "serialNumber": "00000001", "stateChangeResponseTime": 3 }, { "type": "Television", "displayName": "Living room TV", "publishExternally": true, "category": "TELEVISION", "active": "ACTIVE", "activeIdentifier": 1, "configuredName": "Living room TV", "sleepDiscoveryMode": "ALWAYS_DISCOVERABLE", "linkedTypes": [ { "type": "InputSource", "displayName": "HOT", "configuredName": "HOT", "currentVisibilityState": "SHOWN", "inputSourceType": "HDMI", "isConfigured": "CONFIGURED", "identifier": 1, "targetVisibilityState": "SHOWN", "name": "HOT", "manufacturer": "HOT", "model": "HOT MAGIC HD", "serialNumber": "00000002" }, { "type": "InputSource", "displayName": "Steam Link", "configuredName": "Steam Link", "currentVisibilityState": "SHOWN", "inputSourceType": "APPLICATION", "isConfigured": "CONFIGURED", "identifier": 5, "targetVisibilityState": "SHOWN", "name": "Steam Link", "manufacturer": "VALVE", "model": "1.0", "serialNumber": "00000002" } ], "manufacturer": "Philips", "model": "Philips", "serialNumber": "00000002", "stateChangeResponseTime": 3 } ], "_bridge": { "username": "0E:73:E2:FF:33:46", "port": 30672 } } — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#117 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCX5HDQRN7DN5BRAMGJ3UK7GQRANCNFSM5HSAVYCQ .

Hey!
let me explain: I have 2 dumb tv's as you can see by the json, one in the living room and one in the master bedroom
I use current sensing smart plugs to tell when one is on nor off, the main goal here for me is to have an aesthetically pleasing Home app, I found that if i automate status checking after the daily HB restart i can have the accurate status that im after
My bad for miss understanding the purpse of the plugin, great work!
thank you john :)

Hey!
Sorry I think you miss understood me now:)
I got everything up and running using said smart plugs using Smartthings
The said TV’s in CMD4 are purely aesthetics
thank you very much for your good will!


[AMORO-1951] Support parallelized planning in one optimizer group

Why are the changes needed?

Close #1951 .
Brief change log

Support parallelized planning by a parameter named as maxPlanningParallelism
Refactor OptimizingQueue and DefaultOptimizingService
Refactor suspending optimizer checker by using DelayedQueue for better SLA
add two other global parameters for optimizing:

  private final long pollingTimeout; // optimizing max waiting time when polling, default 3000ms
  private final long minPlanningInterval; // min table planning interval, default 60 seconds

add unit tests for OptimizingQueue and DefaultOptimizingService

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (yes)
If yes, how is the feature documented? (under Configurations)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.majin1102 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.majin1102 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

There is a very important point here. In iceberg native plan logic, multi-threaded plan is used by default. And this multi-threaded thread pool is still public (including commit and other operations will also use this thread pool). So when a large table (which may have unhealthy metadata) takes up a lot of resources during planning. Even if multiple tables are allowed to plan at the same time, the plan speed of other tables will become very slow, and even the speed of commit will be greatly affected. This PR has not yet solved this problem.


Use case: BFGreenways bridges

Just heard about https://docs.google.com/document/d/1K8RDlPMuUBWb4ufNkkSMil6BUiSn-RX5qd7QQGzCPcM/edit?usp=sharing. It'd be helpful to understand this proposal, see how they communicated the ideas, and figure out how we could help strengthen/clarify the idea.

Some reactions: https://old.reddit.com/r/SeattleWA/comments/iq8d9n/advocates_push_for_bike_and_transit_lanes_on_the/


Added "Publish test reports" and "Generate code coverage" for grunt and gulp tasks

Hi @Sachin077, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Sachin Aggarwal). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


[ZEPPELIN-1690] - ZeppelinHubNotebookRepo multy user handling

What is this PR for?
This PR bring multi user handling to ZeppelinHubNotebookRepo.
What type of PR is it?
[Improvement ]
What is the Jira issue?

ZEPPELIN-1690

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@anthonycorbacho thanks for enhancements! i started looking into this one and first of all CI looks like failing with checkstyle issues. Also some methods seem to be missing, and proper jira ticket would be appreciated :)

@khalidhuseynov as you can see its a wip, i will let you know when its ready for review

CI is green, please review otherwise merging it :)

thanks for the fix, LGTM!


Fix conditionally requiring functions.php

The solution currently being used for conditionally autoloading functions does not work: PHP will attempt to load the functions before the conditional is evaluated. React had a similar problem (see reactphp/promise#25) which which was solved using a shim functions_include.php file that checks for the existence of the first function within functions.php before including functions.php. This PR modifies the conditional require to use React's method.

Mostly-identical PRs for guzzle/guzzle and guzzle/psr7 were filed:

guzzle/guzzle#1146
guzzle/psr7#22


Require passing AWS bucket for integration tests

Does this PR need a docs update or release note?

[ ] :white_check_mark: Yes, it's included
[ ] :clock1: Yes, but in a later PR
[x] :no_entry: No

Type of change

[ ] :sunflower: Feature
[ ] :bug: Bugfix
[ ] :world_map: Documentation
[x] :robot: Supportability/Tests
[ ] :computer: CI/Deployment
[ ] :broom: Tech Debt/Cleanup

Test Plan

[x] :muscle: Manual
[ ] :zap: Unit test
[ ] :green_heart: E2E

most recent test failure is unrelated to this change


Emissive material are corrupt when optimization is disabled on Android

If you define an emissive texture using the standard pattern then the output is corrupted when you build the material without optimization, either with matc or with filamat (full and lite). The corruption looks like this on Adreno:

On Mali it is sometimes doesn't happen and sometimes it's just black.
I modified sample-textured-object so that the base color texture was switched to an emissive texture and I modified the shader to mimic the emissiveFactor * emissiveMap pattern used by most of the standard shaders. I also disabled optimization in the matc invocation. Here are the changes on a recent branch from master: https://github.com/LearnHub/filament/commit/44ba510119bc07a731daf9601c9d6d199ceaf15a
You can prevent the corruption by avoiding the multiplication or by switching material compiler optimization back on.

I can't reproduce the issue. Emissive works fine both with optimized and unoptimized shaders. The emissive code is just this:
void addEmissive(const MaterialInputs material, inout vec4 color) {
#if defined(MATERIAL_HAS_EMISSIVE)
    highp vec4 emissive = material.emissive;
    highp float attenuation = mix(1.0, frameUniforms.exposure, emissive.w);
    color.rgb += emissive.rgb * attenuation;
#endif
}

I don't quite see what could be causing issues. Does it happen with unlit materials too (they support emissive as well)? The only thing I can think of is a driver bug with inout.

Changing to 'unlit' (and removing the references to ambientOcclusion, roughness, and metallic in the shader) makes the problem go away.
It certainly feels like a driver problem, but I get similar behaviour on two devices:
Pocofone F1

QUALCOMM build                   : dc7175c, I423ca2612a
Build Date                       : 09/12/19
OpenGL ES Shader Compiler Version: EV<IP_ADDRESS>
Local Branch                     :
Remote Branch                    :
Remote Branch                    :
Reconstruct Branch               :
Build Config                     : S P 8.0.11 AArch64

XR1 device

QUALCOMM build                   : 183617d, I6f3c5dffee
Build Date                       : 10/01/18
OpenGL ES Shader Compiler Version: EV<IP_ADDRESS>
Local Branch                     : mybranch36158767
Remote Branch                    : quic/gfx-adreno.lnx.1.0.r67-rel
Remote Branch                    : NONE
Reconstruct Branch               : NOTHING
Build Config                     : S L 4.0.10 AArch64

I'll try comparing the fragment shaders for lit and unlit to see if I can spot any clues.

Changing
material.emissive = vec4(materialParams.emissiveFactor.rgb, 0.0);
to
material.emissive = vec4(materialParams.emissiveFactor.rgb, 0.0) * 1.0;
makes the problem go away, which implies it's a shader compiler bug when fetching emissiveFactor. Odd that it doesn't impact the unlit model, but it could be something to do with the alignment of the other uniforms for instance. Also odd that the compiler doesn't optimize away the multiplication, which it always manages to do when I don't want it to.
I appreciate you can't do much about it without a local reproduce and I'm comfortable with this workaround if you want to close it.

That's what I suspected unfortunately. This kind of bug is unfortunately not uncommon, see some examples here: https://medium.com/@afd_icl. Stuff like + 0.0 or * 1.0 can indeed break compilers. If you have time and can compile Filament itself, it might be worth trying to find a workaround directly in our code. Maybe just moving emissive.rgb * attenuation to a temporary variable?

Another thing to try would be to remove the function altogether and inline its content at the call site.

Unfortunately neither inlining the function nor using a temporary variable made a difference. I also tried swapping emissiveFactor to a vec4 instead.

not actionable / shader compiler bug.


chore: add coverage for integration tests

Added coverage output for integration test, and added codecov uploads for both integration and unit tests.
This commit changes the output file to coverage.txt as well, in order to be consistent with knative test infrastructure.
/kind chore
Signed-off-by: Lance Ball<EMAIL_ADDRESS>

Closing and reopening to see if I can get coverage against base working again

/lgtm


Releases

No offense can you upload the ready Releases  of SspiUacBypass

https://www.google.com/search?client=firefox-b-d&q=how+to+compile+with+visual+studio


VM availability set on LB

Versions (please add them if you have more releases for this issue)
CPI      Version: 23
BOSH     Version: 261.4.0
OpsManager 1.10.4
ERT 1.10.7 stemcell 3363.20
Director stemcell:
bosh-azure-hyperv-ubuntu-trusty-go_agent
3363.15
Environment

Azure Environment:

[x] Azure
[ ] AzureChinaCloud
[ ] AzureUSGovernment
[ ] AzureStack
[ ] Others:

Location: east-us
Subscription ID: 52641c3e-894d-443e-b78b-e00305c8e021
Resource Group Name: pcf-1-10-azure-clean-pcf-resource-group

Issue Details
Deploying ERT using 3 tcp router VMs and one load balancer
The azure LB was created minutes before using terraform specifically for this environment and for the tcp router, it was not associated with any VMs prior running apply-changes.
We created dozen of exactly similar environments (LB and tcp_router setup) using the same scripts but it's the first time it fails that way.
Logs (Please redact all sensitive information in your logs)
Started creating missing vms > tcp_router/75778d57-af18-4650-86b6-dee3f0434ea5 (0)
     Done creating missing vms > diego_cell/a322d973-696e-4a91-ac0d-081819ef7e42 (0) (00:01:58)
  Started creating missing vms > tcp_router/2581da30-6507-41cf-976b-3c066cdc54fd (1)
     Done creating missing vms > diego_brain/3960e41d-7a58-4186-a573-6480b5a59297 (2) (00:02:08)
  Started creating missing vms > tcp_router/eaae3e11-0980-4efd-bc09-cab90cf5c39d (2)
     Done creating missing vms > diego_cell/c64dbb6b-5afe-47f1-97d7-9d7467d97319 (2) (00:01:46)
     Done creating missing vms > diego_brain/6db53340-e034-495a-a7ba-2f8d775e2c27 (1) (00:02:16)
   Failed creating missing vms > tcp_router/2581da30-6507-41cf-976b-3c066cdc54fd (1): CPI error 'Bosh::Clouds::CloudError' with message 'http_get_response - #<Bosh::AzureCloud::AzureError: http_get_response - http code: 200
x-ms-client-request-id: e8e1e06a-50c6-437d-b185-7014c1b7652b
x-ms-request-id: 250274c0-8ac2-4f1a-9bd4-ec3de1df12b8
x-ms-correlation-request-id: e279e917-7bf9-42c7-8df5-bc8f002e1c48
x-ms-routing-request-id: EASTUS:20170502T185619Z:e279e917-7bf9-42c7-8df5-bc8f002e1c48
Error message: {
  "startTime": "2017-05-02T18:56:15.4809154+00:00",
  "endTime": "2017-05-02T18:56:15.8247998+00:00",
  "status": "Failed",
  "error": {
    "code": "VmIsNotInSameAvailabilitySetAsLb",
    "message": "Virtual Machine /subscriptions/52641c3e-894d-443e-b78b-e00305c8e021/resourceGroups/pcf-1-10-azure-clean-pcf-resource-group/providers/Microsoft.Compute/virtualMachines/787b414293boshvms2-c1033840-1627-41df-a15a-3b13104aa24e is using different Availability Set than other Virtual Machines connected to the Load Balancer(s) pcf-1-10-azure-clean-tcp-lb."
  },
  "name": "be452438-0e0f-4714-bb77-723527494b28"
}>
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1847:in `http_get_response'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1925:in `check_completion'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:2054:in `http_delete'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:544:in `delete_virtual_machine'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/vm_manager.rb:91:in `rescue in create'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/vm_manager.rb:17:in `create'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:164:in `block in create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_common-1.3262.4.0/lib/common/thread_formatter.rb:49:in `with_thread_name'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:125:in `create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `public_send'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `run'
/var/vcap/packages/bosh_azure_cpi/bin/azure_cpi:35:in `<main>'' in 'create_vm' CPI method (00:00:23)
     Done creating missing vms > doppler/038d91ae-e663-45bf-8ba8-84297bacd427 (1) (00:01:33)
   Failed creating missing vms > tcp_router/eaae3e11-0980-4efd-bc09-cab90cf5c39d (2): CPI error 'Bosh::Clouds::VMCreationFailed' with message '#<Bosh::Clouds::CloudError: http_get_response - #<Bosh::AzureCloud::AzureError: http_get_response - http code: 200
x-ms-client-request-id: d063d8f1-2b3e-4d1b-a3b1-ab49e55ffd43
x-ms-request-id: 2e3c7f32-340e-48d7-b8b6-53b8cfd783f8
x-ms-correlation-request-id: 2c102ff9-2460-4a33-8cd7-890aeb9fea33
x-ms-routing-request-id: EASTUS:20170502T185614Z:2c102ff9-2460-4a33-8cd7-890aeb9fea33
Error message: {
  "startTime": "2017-05-02T18:56:10.119391+00:00",
  "endTime": "2017-05-02T18:56:10.7289822+00:00",
  "status": "Failed",
  "error": {
    "code": "VmIsNotInSameAvailabilitySetAsLb",
    "message": "Virtual Machine /subscriptions/52641c3e-894d-443e-b78b-e00305c8e021/resourceGroups/pcf-1-10-azure-clean-pcf-resource-group/providers/Microsoft.Compute/virtualMachines/787b414293boshvms1-d4a38a30-62bb-4fa4-9371-ff0dd0e47fdf is using different Availability Set than other Virtual Machines connected to the Load Balancer(s) pcf-1-10-azure-clean-tcp-lb."
  },
  "name": "2a0fc4c4-08ed-43a9-88ff-6f689ed3a7f9"
}>
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1847:in `http_get_response'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1925:in `check_completion'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1995:in `http_put'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:322:in `create_virtual_machine'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/vm_manager.rb:86:in `create'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:164:in `block in create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_common-1.3262.4.0/lib/common/thread_formatter.rb:49:in `with_thread_name'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:125:in `create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `public_send'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `run'
/var/vcap/packages/bosh_azure_cpi/bin/azure_cpi:35:in `<main>'>
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/helpers.rb:140:in `cloud_error'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1889:in `rescue in http_get_response'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1814:in `http_get_response'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1925:in `check_completion'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1995:in `http_put'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:322:in `create_virtual_machine'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/vm_manager.rb:86:in `create'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:164:in `block in create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_common-1.3262.4.0/lib/common/thread_formatter.rb:49:in `with_thread_name'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:125:in `create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `public_send'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `run'
/var/vcap/packages/bosh_azure_cpi/bin/azure_cpi:35:in `<main>'' in 'create_vm' CPI method (00:00:34)
     Done creating missing vms > doppler/3dd48eea-f920-47cd-8a8a-9110a7dcf3b3 (0) (00:01:56)
     Done creating missing vms > diego_cell/e932da7b-be69-4378-a182-186f21f88b8b (1) (00:02:16)
     Done creating missing vms > loggregator_trafficcontroller/494203cc-4b51-4093-87b5-9cef9b32276c (1) (00:02:04)
     Done creating missing vms > loggregator_trafficcontroller/70de99e0-a50b-4db8-a266-f60f07b62516 (0) (00:02:13)
     Done creating missing vms > tcp_router/75778d57-af18-4650-86b6-dee3f0434ea5 (0) (00:01:47)
   Failed creating missing vms (00:10:42)

Error 100: CPI error 'Bosh::Clouds::CloudError' with message 'http_get_response - #<Bosh::AzureCloud::AzureError: http_get_response - http code: 200
x-ms-client-request-id: e8e1e06a-50c6-437d-b185-7014c1b7652b
x-ms-request-id: 250274c0-8ac2-4f1a-9bd4-ec3de1df12b8
x-ms-correlation-request-id: e279e917-7bf9-42c7-8df5-bc8f002e1c48
x-ms-routing-request-id: EASTUS:20170502T185619Z:e279e917-7bf9-42c7-8df5-bc8f002e1c48
Error message: {
  "startTime": "2017-05-02T18:56:15.4809154+00:00",
  "endTime": "2017-05-02T18:56:15.8247998+00:00",
  "status": "Failed",
  "error": {
    "code": "VmIsNotInSameAvailabilitySetAsLb",
    "message": "Virtual Machine /subscriptions/52641c3e-894d-443e-b78b-e00305c8e021/resourceGroups/pcf-1-10-azure-clean-pcf-resource-group/providers/Microsoft.Compute/virtualMachines/787b414293boshvms2-c1033840-1627-41df-a15a-3b13104aa24e is using different Availability Set than other Virtual Machines connected to the Load Balancer(s) pcf-1-10-azure-clean-tcp-lb."
  },
  "name": "be452438-0e0f-4714-bb77-723527494b28"
}>
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1847:in `http_get_response'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:1925:in `check_completion'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:2054:in `http_delete'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/azure_client2.rb:544:in `delete_virtual_machine'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/vm_manager.rb:91:in `rescue in create'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/vm_manager.rb:17:in `create'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:164:in `block in create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_common-1.3262.4.0/lib/common/thread_formatter.rb:49:in `with_thread_name'
/var/vcap/packages/bosh_azure_cpi/lib/cloud/azure/cloud.rb:125:in `create_vm'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `public_send'
/var/vcap/packages/bosh_azure_cpi/vendor/bundle/ruby/2.2.0/gems/bosh_cpi-1.3262.4.0/lib/bosh/cpi/cli.rb:70:in `run'
/var/vcap/packages/bosh_azure_cpi/bin/azure_cpi:35:in `<main>'' in 'create_vm' CPI method

Repro steps (if necessary, delete otherwise)

First time happening, not sure if we can reproduce yet.

@pdelagrave Please check whether the 3 tcp router VMs belong to the same availability set. According to the error message, they should belong to at least 2 different availability sets. If you can reproduce it, you can update your bosh.yml to keep the failed VMs for later investigation.
      director:
        debug:
          keep_unreachable_vms: true

Hi
I found the smallest possible setup to reproduce the bug. So far I've reproduced it with the version 23 and 24 of the CPI.
It might take a few tries to reproduce it, only the last 3 lines of the script have to be repeated to reproduce.
Replace the REPLACE_ME values in this script and in params.json
azure group create astest westus

azure group deployment create astest astest-deployment --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/bosh-setup/azuredeploy.json -e params.json

azure network public-ip create astest lbip westus
azure network lb create astest astest-lb westus
azure network lb frontend-ip create astest astest-lb feip -i lbip
azure network lb address-pool create astest astest-lb backendpool
azure network lb probe create astest astest-lb probe
azure network lb rule create astest astest-lb rule -f 2001 -b 2001 -t feip -o backendpool -e false

# LOGIN on the jumpbox
# ssh johnsmith@jumpbox-???.westus.cloudapp.azure.com
# scp the necessary files there: cc.yml, deployment.yml
# All the following commands are to be executed on the jumpbox

# download bosh cli v2
wget -O bosh https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-2.0.16-linux-amd64
chmod +x bosh
sudo mv bosh /usr/local/bin

git clone https://github.com/cloudfoundry/bosh-deployment
# edit bosh-deployment/azure/cpi.yml to set the cpi version you want:
# version 23: ebf77f4b0d477fc9659d8de559c50afeec12c964
# version 24: 9f4cf9611c479f37b852ae2b33398753709d7027

bosh create-env bosh-deployment/bosh.yml \
    --state=state.json \
    --vars-store=creds.yml \
    -o bosh-deployment/azure/cpi.yml \
    -v director_name=astest_bosh-1 \
    -v internal_cidr=<IP_ADDRESS>/24 \
    -v internal_gw=<IP_ADDRESS> \
    -v internal_ip=<IP_ADDRESS> \
    -v vnet_name=boshvnet-crp \
    -v subnet_name=Bosh \
    -v subscription_id=REPLACE_ME \
    -v tenant_id=REPLACE_ME \
    -v client_id=REPLACE_ME \
    -v client_secret=... \
    -v resource_group_name=astest \
    -v storage_account_name=REPLACE_ME \
    -v default_security_group=nsg-bosh

bosh alias-env bosh-1 -e <IP_ADDRESS> --ca-cert <(bosh int ./creds.yml --path /director_ssl/ca)

export BOSH_CLIENT=admin
export BOSH_CLIENT_SECRET=`bosh int ./creds.yml --path /admin_password`
export BOSH_ENVIRONMENT=bosh-1

bosh upload-stemcell https://bosh.io/d/stemcells/bosh-azure-hyperv-ubuntu-trusty-go_agent?v=3363.20
bosh upload-release https://bosh.io/d/github.com/jamlo/jmeter-bosh-release?v=1.0.0

bosh -n update-cloud-config cc.yml

#### RUN THIS IN A LOOP TO EVENTUALLY REPRODUCE THE BUG: ####
bosh -e bosh-1 -n deploy -d cf deployment.yml
bosh -e bosh-1 -n delete-deployment -d cf
azure availset delete astest astest-bosh-1-cf-test -q
#### END OF LOOP ####

cc.yml:
---
azs:
- name: 'null'
  cloud_properties: {}
networks:
- name: ert-network
  type: manual
  subnets:
  - dns:
    - <IP_ADDRESS>
    range: <IP_ADDRESS>/22
    gateway: <IP_ADDRESS>
    azs:
    - 'null'
    cloud_properties:
      virtual_network_name: boshvnet-crp
      subnet_name: Bosh
    reserved:
    - <IP_ADDRESS>-<IP_ADDRESS>
    - <IP_ADDRESS>-<IP_ADDRESS>
    static:
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
vm_types:
- name: Standard_F1s
  cloud_properties:
    instance_type: Standard_F1s
    root_disk:
      size: 19456
    ephemeral_disk:
      use_root_disk: true
    storage_account_name: "*default*"
    storage_account_max_disk_number: 150
- name: Standard_F4s
  cloud_properties:
    instance_type: Standard_F4s
    root_disk:
      size: 68608
    ephemeral_disk:
      use_root_disk: true
    storage_account_name: "*default*"
    storage_account_max_disk_number: 150
disk_types:
- name: '1024'
  disk_size: 1024
  cloud_properties: {}
compilation:
  workers: 4
  network: ert-network
  az: 'null'
  reuse_compilation_vms: true
  vm_type: Standard_F4s
  vm_extensions:
  - vm-extension-compilation

vm_extensions:
- name: public_ip
  cloud_properties:
    assign_dynamic_public_ip: true

- name: vm-extension-compilation
  cloud_properties:
    assign_dynamic_public_ip: true

- name: vm-extension-with-lb
  cloud_properties:
    load_balancer: astest-lb
    assign_dynamic_public_ip: false

deployment.yml:
---
name: cf
director_uuid: 86c402a2-2c98-4ed1-8080-0e4bc3abbf93
releases:
- name: jmeter-tornado
  version: 1.0.0

stemcells:
- alias: bosh-azure-hyperv-ubuntu-trusty-go_agent
  os: ubuntu-trusty
  version: '3363.20'

instance_groups:
- name: test
  azs:
  - 'null'
  instances: 3
  lifecycle: service
  jobs:
  - name: jmeter_worker
    release: jmeter-tornado
  vm_type: Standard_F1s
  stemcell: bosh-azure-hyperv-ubuntu-trusty-go_agent
  update:
    max_in_flight: 1
  networks:
  - name: ert-network
    default:
    - dns
    - gateway
    static_ips:
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
  persistent_disk_type: '1024'
  vm_extensions:
  - vm-extension-with-lb
update:
  canaries: 1
  canary_watch_time: 30000-300000
  update_watch_time: 30000-300000
  max_in_flight: 1
  max_errors: 2
  serial: false

params.json:
{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
  "contentVersion": "<IP_ADDRESS>",
  "parameters": {
    "vmName": {
      "value": "jumpbox"
    },
    "adminUsername": {
      "value": "johnsmith"
    },
    "sshKeyData": {
      "value": "REPLACE_ME"
    },
    "environment": {
      "value": "AzureCloud"
    },
    "tenantID": {
      "value": "REPLACE_ME"
    },
    "clientID": {
      "value": "REPLACE_ME"
    },
    "clientSecret": {
      "value": "REPLACE_ME"
    },
    "autoDeployBosh": {
      "value": "disabled"
    },
    "boshVmSize": {
      "value": "Standard_D2_v2"
    }
  }
}

@pdelagrave Thank you for your script to reproduce this issue. We will use your script to reproduce it.
Could you add one line in your loop script to confirm that the availset has been deleted successfully before next deployment?
#### RUN THIS IN A LOOP TO EVENTUALLY REPRODUCE THE BUG: ####
bosh -e bosh-1 -n deploy -d cf deployment.yml
bosh -e bosh-1 -n delete-deployment -d cf
azure availset delete astest astest-bosh-1-cf-test -q

echo "Confirming that the availset has been deleted"
azure availset show astest astest-bosh-1-cf-test
#### END OF LOOP ####

@pdelagrave Today,  @zhongyi-zhang tried to reproduce this issue with your script (only adding one line to show the availset after deleting) in both centralus and westus but failed. Next week we will try more times to reproduce it.

@AbelHu It took 15 iterations of the loop today before I got it to happen, I don't know what it depends on but my previous post still hold as a way of reproducing.
#!/bin/bash

set -ex

while [ 1 ]; do
	date
	ssh<EMAIL_ADDRESS>"BOSH_CLIENT=admin BOSH_CLIENT_SECRET=xxx bosh -e bosh-1 -n deploy -d cf deployment.yml"
	ssh<EMAIL_ADDRESS>"BOSH_CLIENT=admin BOSH_CLIENT_SECRET=xxx bosh -e bosh-1 -n delete-deployment -d cf"
	azure availset delete astest astest-bosh-1-cf-test -q
	azure availset show astest astest-bosh-1-cf-test
done

@pdelagrave We will use your new loop script to reproduce your issue.

@pdelagrave @zhongyi-zhang tested 20 times but failed in reproducing in eastus. Would you keep the environment  and file a support ticket in Azure portal? We guess that it may be caused by infrastructure.

I reproduced it again this morning after 2 iterations.
Anyway, before I open a ticket in Azure portal, is there a way to turn on debug logging in the Azure CPI so I know exactly the list of HTTP query that was made in which order? I'll try to reproduce the problem with the azure CLI tool only to exclude bosh.

@pdelagrave You can set debug_mode to true in global Azure properties.
debug_mode [Boolean, optional]: Enable debug mode to log all raw HTTP requests/responses. The default value is false.

When debug_mode is enabled, your logs will contains credentials. So please redact your credentials before you share your logs.

@pdelagrave still need any help? if not we will close the issue. thanks.


fix(#patch); cream finance; handle oracle that returns price in eth

Syncing deployment: https://okgraph.xyz/?q=messari%2Fcream-finance-ethereum
The current issue with cream finance being:

We use compound fork framework to handle cream finance
The framework expects oracle to return price in USD, however cream finance uses an oracle that returns price in ETH instead

To work around the issue, we could:

Derive ETH price
Multiply the oracle price by ETH price before passing the number down to the compound fork framework

NOTICE This patch only fixes cream finance on Ethereum. Let us verify the patch works before fixing this for the rest networks (BNB, Polygon, etc)

I think we forgot about this PR, but the issue was addressed in #967. @0xbe1 if you agree with this I think this can be closed

I think we forgot about this PR, but the issue was addressed in #967. @0xbe1 if you agree with this I think this can be closed

cool let's close then


Is it possible to use three sector constraints at the same time?

What are you trying to do?
Compute 20% target risk efficient portfolio with three sector constraints for region, size, and style.
I have three sector mappers: 1) Region, 2) Size, 3) Style. Region assigns a region like U.S., Developed Markets, or Emerging Markets. Size assigns small-cap, mid-cap, large-cap to all my stocks. Style assigns value, growth, and blend to all my stocks. I don't want to combine them into one sector mapper, like "U.S. small-cap value", because I need to constrain them seperately. For example, applying a 50/50 value/growth constraint with a 60/30/10 to U.S., Developed Markets, Emerging Markets and 20/30/50 small-cap, mid-cap, large-cap constraint. This is an example of three constraints I want to apply, and be able to adjust them as needed separately. I have been combining them into a single mapper but I have no control over the individual sector. For example, if I combined constraint categories into say, "U.S. small-cap value", I have no control over how much of the U.S. or how much small-cap or how much value can be in the portfolio. I would only control how much could go to U.S. small-cap value.
Here is what I have to far but I am getting a OptimizationError: Please check your objectives/constraints or use a different solver.
gamma=0.00
ef = efficient_frontier.EfficientFrontier(mu, S, weight_bounds=(0,1))
ef.add_sector_constraints(region_mapper, region_lower, region_upper)
ef.add_sector_constraints(size_mapper, size_lower, size_upper)
ef.add_sector_constraints(style_mapper, style_lower, style_upper)
ef.add_objective(objective_functions.L2_reg, gamma=gamma)
ef.efficient_risk(0.2)

Any help is very much appreciated.

Hi @x829901,
Thanks for reaching out!
What you are suggesting should be possible – I can't see anything wrong with your code. This is what I've tested, and it works fine:
sector_mapper = {
    "MSFT": "Tech",
    "AMZN": "Consumer Discretionary",
    "KO": "Consumer Staples",
    "MA": "Financial Services",
    "COST": "Consumer Staples",
    "LUV": "Aerospace",
    "XOM": "Energy",
    "PFE": "Healthcare",
    "JPM": "Financial Services",
    "UNH": "Healthcare",
    "ACN": "Misc",
    "DIS": "Media",
    "GILD": "Healthcare",
    "F": "Auto",
    "TSLA": "Auto"
}

sector_lower = {
    "Consumer Staples": 0.1, # at least 10% to staples
    "Tech": 0.05 # at least 5% to tech
    # For all other sectors, it will be assumed there is no lower bound
}

sector_upper = {
    "Tech": 0.2,
    "Aerospace":0.1,
    "Energy": 0.1,
    "Auto":0.15
}

style_mapper = {
    "MSFT": "mega",
    "AMZN": "mega",
    "KO": "mid",
    "MA": "big",
    "COST": "big",
    "LUV": "big",
    "XOM": "mid",
    "PFE": "big",
    "JPM": "big",
    "UNH": "mid",
    "ACN": "mid",
    "DIS": "big",
    "GILD": "mid",
    "F": "mid",
    "TSLA": "big"
}

style_lower = {
    "mega": 0.1,
    "big": 0,
    "mid":0
}

style_upper = {
    "mega":0.8,
    "big": 1,
    "mid":0.5
}

mu = expected_returns.capm_return(prices)
S = risk_models.CovarianceShrinkage(prices).ledoit_wolf()

ef = EfficientFrontier(mu, S)  # weight_bounds automatically set to (0, 1)
ef.add_sector_constraints(sector_mapper, sector_lower, sector_upper)
ef.add_sector_constraints(style_mapper, style_lower,style_upper)

# Another constraint (to show it's possible)
amzn_index = ef.tickers.index("AMZN")
ef.add_constraint(lambda w: w[amzn_index] == 0.10)

ef.efficient_risk(0.2)
weights = ef.clean_weights()

So I suspect the issue is that your optimisation problem is infeasible, i.e it is not possible to find a solution satisfying your constraints, let alone an optimal one. I suggest the following.

Temporarily remove some constraints (e.g comment out style and size) and verify that the solver works. Since you are using gamma=0, you might want to remove that constraint completely.
Add back your constraints, but this time widen the lower/upper bounds to e.g 0.1/0.9. If this doesn't work, try widening it all the way to 0/1 – I'd be surprised if this didn't work, since this isn't actually adding a constraint.
Move individual lower/upper bounds to your desired values, rerunning the optimisation each time. At some point, the solver may go from working to not-working, which will identify the infeasible constraint for you.

Also, you should run the optimisation with verbose=True and paste the output here.
ef = efficient_frontier.EfficientFrontier(mu, S, weight_bounds=(0,1), verbose=True)

CVXPY does have a feasibility check but I don't think PyPortfolioOpt's BaseConvexOptimizer exposes that. I've raised this in #250 and will try to incorporate it in the next patch so that things are easier to debug.

Hi @x829901,
Thanks for reaching out!
What you are suggesting should be possible – I can't see anything wrong with your code. This is what I've tested, and it works fine:
sector_mapper = {
    "MSFT": "Tech",
    "AMZN": "Consumer Discretionary",
    "KO": "Consumer Staples",
    "MA": "Financial Services",
    "COST": "Consumer Staples",
    "LUV": "Aerospace",
    "XOM": "Energy",
    "PFE": "Healthcare",
    "JPM": "Financial Services",
    "UNH": "Healthcare",
    "ACN": "Misc",
    "DIS": "Media",
    "GILD": "Healthcare",
    "F": "Auto",
    "TSLA": "Auto"
}

sector_lower = {
    "Consumer Staples": 0.1, # at least 10% to staples
    "Tech": 0.05 # at least 5% to tech
    # For all other sectors, it will be assumed there is no lower bound
}

sector_upper = {
    "Tech": 0.2,
    "Aerospace":0.1,
    "Energy": 0.1,
    "Auto":0.15
}

style_mapper = {
    "MSFT": "mega",
    "AMZN": "mega",
    "KO": "mid",
    "MA": "big",
    "COST": "big",
    "LUV": "big",
    "XOM": "mid",
    "PFE": "big",
    "JPM": "big",
    "UNH": "mid",
    "ACN": "mid",
    "DIS": "big",
    "GILD": "mid",
    "F": "mid",
    "TSLA": "big"
}

style_lower = {
    "mega": 0.1,
    "big": 0,
    "mid":0
}

style_upper = {
    "mega":0.8,
    "big": 1,
    "mid":0.5
}

mu = expected_returns.capm_return(prices)
S = risk_models.CovarianceShrinkage(prices).ledoit_wolf()

ef = EfficientFrontier(mu, S)  # weight_bounds automatically set to (0, 1)
ef.add_sector_constraints(sector_mapper, sector_lower, sector_upper)
ef.add_sector_constraints(style_mapper, style_lower,style_upper)

# Another constraint (to show it's possible)
amzn_index = ef.tickers.index("AMZN")
ef.add_constraint(lambda w: w[amzn_index] == 0.10)

ef.efficient_risk(0.2)
weights = ef.clean_weights()

So I suspect the issue is that your optimisation problem is infeasible, i.e it is not possible to find a solution satisfying your constraints, let alone an optimal one. I suggest the following.

Temporarily remove some constraints (e.g comment out style and size) and verify that the solver works. Since you are using gamma=0, you might want to remove that constraint completely.
Add back your constraints, but this time widen the lower/upper bounds to e.g 0.1/0.9. If this doesn't work, try widening it all the way to 0/1 – I'd be surprised if this didn't work, since this isn't actually adding a constraint.
Move individual lower/upper bounds to your desired values, rerunning the optimisation each time. At some point, the solver may go from working to not-working, which will identify the infeasible constraint for you.

Also, you should run the optimisation with verbose=True and paste the output here.
ef = efficient_frontier.EfficientFrontier(mu, S, weight_bounds=(0,1), verbose=True)

CVXPY does have a feasibility check but I don't think PyPortfolioOpt's BaseConvexOptimizer exposes that. I've raised this in #250 and will try to incorporate it in the next patch so that things are easier to debug.

Excellent. Thanks for your help.

Excellent. Thanks for your help.


Keep position in track of mount music after dismount

See title, this will probably require a lot of research, and likely some hackiness.

I'd prefer if a different plugin did this (・∀・)


Has anyone been able to get this library working with SQLite.swift?

I get the following error
error: conditional conformance of type 'Tagged<Tag, RawValue>' to protocol 'Value' does not imply conformance to inherited protocol 'Expressible'

both when I try

extension Tagged: Value where Tag == MyTag, RawValue == Int {
  public static var declaredDatatype = Int.declaredDatatype
  public typealias ValueType = Tagged<MyTag, Int>
  public typealias DataType = Int
  public var datatypeValue: Int {
    return self.rawValue
  }

  public static func fromDatatypeValue(_ datatypeValue: Int) -> Tagged<MyTag, Int> {
    return Tagged<MyTag, Int>(datatypeValue)
  }
}

and when I try
extension Tagged: Value where Tag == MyEntity, RawValue == Int {
  public static var declaredDatatype = Int.declaredDatatype
  public typealias ValueType = MyEntity.Id
  public typealias DataType = Int
  public var datatypeValue: Int {
    return self.rawValue
  }

  public static func fromDatatypeValue(_ datatypeValue: Int) -> MyEntity.Id {
    return MyEntity.Id(datatypeValue)
  }
}

So I try to add Expressible to the list of conformances, but I can't figure out how to implement Expressibles requirements. If I don't try to add a function to conform to Expressible, I get a crash.
Fatal error: 'try!' expression unexpectedly raised an error:
Unexpected null value for column `"my_entity_id"`:
file .build/checkouts/SQLite.swift/Sources/SQLite/Typed/Query.swift, line 1113

@danramteke Not sure if you still need this, but maybe someone else could find it useful. I was able to get your test passing by doing this.
extension Tagged: Value, Expressible where RawValue: Value {
  public static var declaredDatatype: String {
    return RawValue.declaredDatatype
  }

  public static func fromDatatypeValue(_ datatypeValue: RawValue.Datatype) -> Self {
    return Self(rawValue: RawValue.fromDatatypeValue(datatypeValue) as! RawValue)
  }

  public var datatypeValue: RawValue.Datatype {
    return rawValue.datatypeValue
  }
}

I ended up switching to GRDB. It's very well thought out and supports Combine as well. https://github.com/groue/GRDB.swift

Hi @danramteke :) GRDB is very good. SQLite.swift has some nice maintainers, but I don't think they have nearly the time to dedicate compared to the steward of GRDB these days, and I walked away from the project many years ago, when I was no longer working with SQLite in any of my projects at a capacity that necessitated a library. Going to close this out since you found an alternate solution.

Thank you Stephen. For the record, one can use Tagged with GRDB 5.9.0 with the following extensions:
import GRDB
import Tagged

// Make it possible to use Tagged types as database values
// just line Int, String, Date, etc.
extension Tagged: SQLExpressible where RawValue: SQLExpressible { }
extension Tagged: StatementBinding where RawValue: StatementBinding { }
extension Tagged: DatabaseValueConvertible where RawValue: DatabaseValueConvertible { }


[WiFi Diagnostics Cluster] Enable WiFi Network Diagnostics cluster on the controllers

Problem
What is being fixed?
WiFi Network Diagnostics cluster is not enabled on the controllers.
For the items which is neither Mandatory nor Optional, but controlled by its Feature bits in CHIP spec. Such as 'ERRCNT'. We should set optional to 'false' to align with other clusters. Vendor can enable or disable those cluster element by enabling/disabling those Feature bits from UI.
The resetcounts command is still set to 'true' since zap currently only allow one command of the same name. This is known issue and tracked by project-chip/zap#161
Change overview

Set optional to false for items whose Conformance level not set to 'O' in WiFi Diagnostics Cluster.
Enable Wifi diagnostics cluster in controller-clusters.zap

Testing
How was this tested? (at least one bullet point required)
Run ./scripts/tools/zap_regen_all.py and conform codegen can re-generate the code without error.
Run ./chip-tool and confirm wifinetworkdiagnostics is in the cluster list.

Currently, codegen does not generate code for the items if we set optional to 'true' in the cluster xml definition file.

Even if the .zap file says they are enabled?  @vivien-apple that sounds odd....

Currently, codegen does not generate code for the items if we set optional to 'true' in the cluster xml definition file.

Even if the .zap file says they are enabled? @vivien-apple that sounds odd....

This is because the ZAP UI tools does not mark those items as enabled if optional is set to 'true' in xml definition file. With latest version of ZAP UI tools, we can manually enable those items and update the .zap file.

That sounds like a better approach: the XML should say what the spec says (ideally not just optional but what feature enables it), the UI should expose the toggling ability, we should turn on which things we want in the UI, and the zap file should capture those decisions.

That sounds like a better approach: the XML should say what the spec says (ideally not just optional but what feature enables it), the UI should expose the toggling ability, we should turn on which things we want in the UI, and the zap file should capture those decisions.

Yes, the XML does not fully match with the spec, that is the cause of current confusion.

/rebase

@jepenven-silabs @bzbarsky-apple @Damian-Nordic ?

@yufengwangca This is still changing the XML to mark optional things as non-optional, instead of enabling them in the ZAP UI if we want them enabled.  Why are we doing that?
That is, why are we not doing the thing https://github.com/project-chip/connectedhomeip/pull/7365#issuecomment-854158666 proposed doing?

@yufengwangca This is still changing the XML to mark optional things as non-optional, instead of enabling them in the ZAP UI if we want them enabled. Why are we doing that?
That is, why are we not doing the thing #7365 (comment) proposed doing?

@bzbarsky-apple I am confused, which optional item is marked as non-optional? This is only one item "Current MaxRate" is optional in the spec, this PR marked the items whose Conformance level not set to 'O' as non-optional to align with other XMLs.

@yufengwangca conflicts :(

@yufengwangca This is still changing the XML to mark optional things as non-optional, instead of enabling them in the ZAP UI if we want them enabled. Why are we doing that?
That is, why are we not doing the thing #7365 (comment) proposed doing?

@bzbarsky-apple I am confused, which optional item is marked as non-optional? This is only one item "Current MaxRate" is optional in the spec, this PR marked the items whose Conformance level not set to 'O' as non-optional to align with other XMLs.

Synced offline, decided to leave items whose Conformance level not set to 'O' nor 'M' optional in XML and enable those items only in ZAP.


Update 5.0.0-preview.1-install-instructions.md

Fix ending tilde for install instructions in 'deb/rpm packages' section

Closing this. Realized there's a PR open for this already.


[BUG] Why is getting a response from Ollama with Flowise so slow?

Describe the bug
I compared the performances between using the Flowise SDK (npm i flowise-sdk) and the native Ollama package (npm i ollama), and I noticed a significant difference in response times. Using Flowise with llama3.2:latest takes around 8 seconds to return an answer (flow below) with my script, while a script based on the native Ollama package returns the answer in just 1 second.
Do you have any insights into why there is such a performance difference between the two approaches?
Expected behavior
I would expect pretty much the same performances.
Screenshots

Setup

npx flowise start`
<EMAIL_ADDRESS>macos M1 16GB

Script based on ollama-js
import ollama from 'ollama'

const message = { role: 'user', content: 'Why is the sky blue?' }
const response = await ollama.chat({ model: 'llama3.2:latest', messages: [message], stream: true })
for await (const part of response) {
  console.log(part.message.content)
}

Script based on flowise-sdk
import { FlowiseClient } from 'flowise-sdk'

const client = new FlowiseClient({ baseUrl: 'http://localhost:3000', apiKey: <api-key> });
const prediction = await client.createPrediction({ chatflowId: <flowiseId>, question: message, streaming: true })
for await (const chunk of prediction) {
  console.log(chunk);
}

I realized that the time difference was due to the system prompt I was using, which was significantly larger with Flowise, which is why the response was delayed compared to the other approach.


syntax region ends prematurely when nesting escaped newline and 'conceallevel' is non-zero

Steps to reproduce
Run this shell command:
vim -Nu NONE -S <(tee <<'EOF'
    vim9script
    syntax on
    syntax region xString start=/"/ end=/"/ contains=EscapedNewline
    syntax match EscapedNewline /\\\n/ contained
    highlight link xString String
    &l:conceallevel = 1
    var lines =<< trim END
        "xxx \
        xxx"
        xxx
        xxx
        xxx
    END
    lines->setline(1)
    feedkeys('jjj', 'nt')
    echomsg synstack('.', col('.'))->map((_, id) => id->synIDattr('name'))
EOF
)

This is echoed:
['xString']

The xxx on the second line is not highligthed.
The three xxx lines after the second double quote are highlighted with String.
Expected behavior
This is echoed:
[]

The xxx on the second line is highligthed with String.
The three lines after the second double quote are not highlighted.
Version of Vim
9.0 Included patches: 1-322
Environment
Operating system: Ubuntu 20.04.4 LTS
Terminal: XTerm(353)
Value of $TERM: xterm-256color
Shell: GNU bash, version 5.0.17
Additional context
The issue disappears if we let 'conceallevel' set to 0.

If we move the cursor up and down, the syntax alternates between correct (when it's on the first line), and wrong.
Gif to illustrate:

As a workaround, we need to assert the presence of the newline with a zero-width atom, without including it in the match:
syntax match EscapedNewline /\\\n\@=/ contained
                                 ^^^

No need to execute :syntax on:
vim9script
syntax region xString start=/"/ end=/"/ contains=EscapedNewline
syntax match EscapedNewline /\\\n/ contained
highlight link xString Search
&l:conceallevel = 1
var lines =<< trim END
    "xxx \
    xxx"
    xxx
    xxx
    xxx
END
lines->setline(1)
feedkeys('jjj', 'nt')
echomsg synstack('.', col('.'))->map((_, id) => id->synIDattr('name'))

Steps to reproduce
Run this shell command:
vim -Nu NONE -S <(tee <<'EOF'
    vim9script
    syntax on
    syntax region xString start=/"/ end=/"/ contains=EscapedNewline
    syntax match EscapedNewline /\\\n/ contained
    highlight link xString String
    &l:conceallevel = 1
    var lines =<< trim END
        "xxx \
        xxx"
        xxx
        xxx
        xxx
    END
    lines->setline(1)
    feedkeys('jjj', 'nt')
    echomsg synstack('.', col('.'))->map((_, id) => id->synIDattr('name'))
EOF
)

This is echoed:
['xString']

The xxx on the second line is not highligthed.
The three xxx lines after the second double quote are highlighted with String.
Expected behavior
This is echoed:
[]

The xxx on the second line is highligthed with String.
The three lines after the second double quote are not highlighted.
Version of Vim
9.0 Included patches: 1-322
Environment
Operating system: Ubuntu 20.04.4 LTS
Terminal: XTerm(353)
Value of $TERM: xterm-256color
Shell: GNU bash, version 5.0.17
Additional context
The issue disappears if we let 'conceallevel' set to 0.

If we move the cursor up and down, the syntax alternates between correct (when it's on the first line), and wrong.
Gif to illustrate:

As a workaround, we need to assert the presence of the newline with a zero-width atom, without including it in the match:
syntax match EscapedNewline /\\\n\@=/ contained
                                 ^^^

It indeed is caused by moving the cursor up and down.  And also the
setting that the cursorline is not concealed (which is the default).
Then when moving the cursor code is invoked that will redraw just the
cursor line and the line that the cursor was previously on.  That means
the syntax region is computed from where the redrawing starts, which
doesn't take regions into account that include a line break.
The problem is that your syntax rule crosses lines, but you have not
defined syntax syncing.  You need to add something like:
syn sync minlines=10
--
The problem with political jokes is that they get elected.
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


[stdlib] Fix extra "it" typo

Could you also change that paragraph about inlining to use a double-slash comment?  It is not a part of user-visible documentation.


add napari /assistant intro slides + exercises

Hi Marcelo @zoccoler, hi all,
I'm just sending a first version of my napari/assistant intro slides as basis for discussion. I'm curious if all these sections should be in this session:

Basic intro to napari (layers, splitting channels, brightness contrast)
Napari-plguins (shall I add other plugins that are relevant for the course? Shall I show less?)
Programming napari from Python (shall I show this or will this be part of later session?)
Using the napari-assistant + export Jupyter notebooks

Feedback welcome! Thanks!
Best,
Robert

Hi Robert @haesleinhuepf ,
Thanks for joining and contributing! 🎉
I had added some of your previous material here: https://github.com/LIBREhub/napari-LatAm-workshop-2023/tree/main/docs/day1/2_napari_and_jupyter_notebooks
If you have it more up-to-date now, would you mind removing the contents in that folder?

Basic intro to napari (layers, splitting channels, brightness contrast)

Programming napari from Python (shall I show this or will this be part of later session?)

@jni , will these be covered in your part?


High CPU usage with v2.6.0

What happened?
After updating from 2.5.1 to 2.6.0 on Intellij IDEA Ultimate 2024.1, the CPU usage is high even on idle. The fans are running on highest speed all the time on my MacBook Pro 2020 Intel. This is also happening when I am simply launching IntelliJ and opening any of my projects without further actions. Cache cleanup did not help.
All is working fine after I downgraded to 2.5.1 again.
Any suggestions?
Relevant log output or stack trace
No response
Steps to reproduce
No response
CodeGPT version
2.6.0
Operating System
macOS

Hey, without a relevant thread dump, it's hard to say. One possible option is that the file watcher CodeGPT uses to check for new screenshots is taking a toll on your CPU. Try disabling the feature and see if it makes any difference.

Thank you very much. It seems to work now.
BTW: I was not able to disable this setting. The "Apply" button remained grayed out until I unchecked at least one of the other options as well. So I had to disable screenshot and method name lookup suggestions to be able to apply it. I then re-enabled the method name option again.
For testing purposes, I removed all CodeGPT settings files from the options folder and tried again with the default settings, but this behavior persisted.

I'm glad you got it working!
I'll keep the ticket open until I find a fix for it and in case anyone else runs into the same issue.

BTW: I was not able to disable this setting. The "Apply" button remained grayed out until I unchecked at least one of the other options as well. So I had to disable screenshot and method name lookup suggestions to be able to apply it. I then re-enabled the method name option again.
For testing purposes, I removed all CodeGPT settings files from the options folder and tried again with the default settings, but this behavior persisted.

@fishermans There was a bug in the settings, thank you for reporting so I could fix it, please try again in the next release after 2.6.0.

This issue should be fixed in the new version 2.6.1. Please reopen the ticket if it is still reproducible.

@carlrobertoh Thanks for trying to fix this.
Unfortunately, the problem remains with Code GPT 2.6.2-241 + IDEA 2024.1. FileAltertionObserver takes the CPU over if I turn on "check for new screenshots" option.

The "Apply" button remained grayed out until I unchecked at least one of the other options as well.

This problem also remains with 2.6.2-241.

My desktop has only 62 entries. But if the folder is scanned recursively, there are total 10700 entries.
Is FileAltertionObserver scanning my desktop recursively...?
even though it is enough to scan only under-root entries to look for new screenshot files.

The FileAlterationMonitor runs every 0.5 seconds and should only listen for new files, although I've seen some anomalies when making alterations to existing files.
https://github.com/carlrobertoh/CodeGPT/blob/master/src/main/kotlin/ee/carlrobert/codegpt/FileWatcher.kt

This problem also remains with 2.6.2-241.

Weird, I thought we fixed this.

Maybe, you should go for WatchService instead of the apache implementation. FileAlterationObserver is calling Files.list each time to compare for changes as per https://stackoverflow.com/questions/32887364/apache-commons-io-file-monitoring-vs-jdk-watchservice.

Weird, I thought we fixed this.

@carlrobertoh @reneleonhardt
I think ConfigurationState.equals should be also fixed. There is no comparison for checkForNewScreenshots:
https://github.com/carlrobertoh/CodeGPT/blob/92d9d5ee20bfc66e69635d44e3b3db326e7ec48e/src/main/java/ee/carlrobert/codegpt/settings/configuration/ConfigurationState.java#L122

This issue should be fixed in the latest version.
@kaorukobo @reneleonhardt many thanks! 💯

Thank you for fixing this!
I have checked that the two problems went away in 2.6.3.


Terminate contract request#2220

https://github.com/edenlabllc/ehealth.api/issues/2220

Coverage increased (+0.04%) to 91.736% when pulling 0ae355e853d0f427d19b78882d4a6c1458ca60ce on terminate_contract_request#2220 into 4f445c567950c443dfbc9cc875bfd8743c1a8be7 on contracts#2176.


Can't pass in an empty string to an option

commandline:
    option variableA, string, "var", "v", "default"

# none of the following work
executable --var:
# out: Missing value for option 'var'
executable --var=
# out: Missing value for option 'var'
executable --var ""
# out: Couldn't convert '' to string

There should only be an error if the user hasn't explicitly given a blank value, like the following
executable --var
# out: Missing value for option 'var'

I have been thinking about this for a while now. I agree we need a way to override a default string option to a given empty string... but it is non-trivial. I say that because of the following:
1- there is a need to establish what we want -- studying the behaviour of other classic CLI (C/Python) would be the next step (see below)
2- the basic CLI parsing is controlled by the underlying parseopt standard library -- implementing our own or contributing to the standard library might be needed
3- the standard library has at least one bug (see below)

CLI
should do
does

--option="" tree
option == "" and argument == "tree"
option == "tree" argument missing

--option='' tree
option == "" and argument == "tree"
option == "tree" argument missing

--option "" tree
option == "" and argument == "tree"
couldn't convert '' to string for option

--option= tree
missing option for --option OR option == "" OR option == "tree"
option == "tree" argument missing

--option="" --anotherOption tree
option == "" and argument == "tree"
option == "--anotherOption" argument == "tree" -- this is a bug in the standard library

--option= --anotherOption tree
missing option for --option OR option == "" OR option == "--anotherOption" and argument == "tree"
option == "--anotherOption" argument == "tree"

--option --anotherOption tree
missing option for --option OR option == "" and argument == "tree"
missing value for option 'option'

For all the "should do" with "OR" cases, we would need to look at how it is done typically and if it makes sense.

Some links for reference
POSIX's rough guide
The primary Python framework Click
The stdlib for Python3

The nim stdlib parseopt seems to be very reminiscent of getopt which has always been fairly restrictive (POSIX only requires single letter flags/options, so the tooling for that has been similarly limited), so probably opting for a custom parsing library would give the best sanest result

Also worth noting that the argument passing mechanisms differ between OSes. (e.g. windows doesn't really have an understanding of what quoting is) so that is a potential issue


Add support for variable interpolation

Implements “Variable Substitution” as per Docker Compose schema v2.1.
Change-type: major
 Front conversations

Hello! Just wanted to mention that I'm eagerly looking forward to this PR merge :) we have multiple balena apps that run similar but slightly different branches of the same codebase, and being able to build and deploy to certain apps programmatically using this feature would be awesome.

Hey @jareklupinski, thanks for reaching out. This PR was implemented in an ad-hoc way and after discussion with the team turns out it does not fit well within the product. In principle, we are in agreement that a feature like what this PR enables is something we would like to see in the product but the implementation will have to be different. I had unfortunately no time to push this forward however I’ll bring this up again to the team and see what can be done.

JF sync.


QuteJS offered in vscode rather than vscode-quarkus for .qute

have files with .qute in them and vscode offers to install https://marketplace.visualstudio.com/items?itemName=quandora.vscode-qutejs and not vscode-quarkus.
My guess is vscode-quarkus does not have the metadata for qute files setup right?

I think we should add Qute keyword like https://github.com/bstefanescu/vscode-qute/blob/7b741977387a5dfbb1d9c3f270fb1e44dc002c77/package.json#L6 in https://github.com/redhat-developer/vscode-quarkus/blob/26b8952d93f3b586e57910ec717878acb07a26f3/package.json#L27

@maxandersen do you have a link to a sample project that reproduces this ? I tried just creating a simple .qute file in a workspace folder but didn't get any recommendations.


Followup on #202 from previous repo

Hi guys, has https://github.com/lambdaclass/lambdaworks_stark_platinum/issues/202 been addressed in the migrated code?

No, thank you @mcarilli!


Dev

This is checkpoint 1.

Fully functional menu + game GUI system with levels and a main menu and credits menu
Nice level designer to design levels
Different types of walls do different things to you
Generally functional, playable

Newer commit has been made.


[SPARK-36643][SQL] Add more information in ERROR log while SparkConf is modified when spark.sql.legacy.setCommandRejectsSparkCoreConfs is set

What changes were proposed in this pull request?
This PR adds additional information to ERROR log while SparkConf is modified when spark.sql.legacy.setCommandRejectsSparkCoreConfs is set
Why are the changes needed?
Right now, by default sql.legacy.setCommandRejectsSparkCoreConfs is set as true in Spark 3.* versions int order to avoid changing Spark Confs. But from the error message we get confused if we can not modify/change Spark conf in Spark 3.* or not.
Does this PR introduce any user-facing change?
Yes. Trivial change in the error messages is included
How was this patch tested?
New Test added - SPARK-36643: Show migration guide when attempting SparkConf

Can one of the admins verify this patch?

cc @dongjoon-hyun , @HyukjinKwon

ok to test

@senthh . I don't think this is a blocker for 3.2. Thus, this will be a part of Apache Spark 3.3 in general whose release date of it is Early 2022.

@dongjoon-hyun I understand that Spark3.3 will be released sooner and hence changes claimed by this PR will no longer be useful. Am I right?

Can one of the admins verify this patch?

@dongjoon-hyun @HyukjinKwon
Referred migration document in the ERROR messages as below
scala> spark.conf.set("spark.driver.host", "localhost")
org.apache.spark.sql.AnalysisException:  Cannot modify the value of a Spark config: spark.driver.host, please refer to the Spark migration documentation 'https://spark.apache.org/docs/latest/sql-migration-guide.html#ddl-statements' for further details to modify the value of a Spark config.
  at org.apache.spark.sql.errors.QueryCompilationErrors$.cannotModifyValueOfSparkConfigError(QueryCompilationErrors.scala:2336)
  at org.apache.spark.sql.RuntimeConfig.requireNonStaticConf(RuntimeConfig.scala:157)
  at org.apache.spark.sql.RuntimeConfig.set(RuntimeConfig.scala:41)
  ... 47 elided

Test build #142940 has started for PR 33894 at commit 95b0543.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47441/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47441/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47441/

I am fine with the new approach.

Test build #142940 has finished for PR 33894 at commit 95b0543.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142940/

Test build #142947 has started for PR 33894 at commit e30b148.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47448/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47448/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47448/

@dongjoon-hyun @HyukjinKwon
Thanks for the review comments and for the changes you have committed.
Please let me know if I can do any changes on this

im good with this change.

Test build #142962 has started for PR 33894 at commit b21b78a.

Test build #142947 has finished for PR 33894 at commit e30b148.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142947/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47462/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47462/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47462/

Test build #142973 has started for PR 33894 at commit 9c9411e.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47474/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47474/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47474/

Test build #142973 has finished for PR 33894 at commit 9c9411e.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142973/

Test build #142962 has finished for PR 33894 at commit b21b78a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142962/

I see all the Tests Passed but after that it failed with GC issue, is this issue something related to jenkin?
{{
[info] Run completed in 59 minutes, 35 seconds.
[info] Total number of tests run: 7696
[info] Suites: completed 384, aborted 0
[info] Tests: succeeded 7696, failed 0, canceled 0, ignored 26, pending 0
[info] All tests passed.
[error] Error: Total 0, Failed 0, Errors 0, Passed 0
[error] Error during tests:

..
..
..
[warn] In the last 3620 seconds, 11.911 (0.3%) were spent in GC. [Heap: 3.29GB free of 3.81GB, max 3.81GB] Consider increasing the JVM heap using `-Xmx` or try a different collector, e.g. `-XX:+UseG1GC`, for better performance.
[error] (sql / Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 3621 s (01:00:21), completed Sep 3, 2021 9:29:26 AM
[error] running /home/runner/work/spark-1/spark-1/build/sbt -Phadoop-3.2 -Phive-2.3 -Dtest.exclude.tags=org.apache.spark.tags.ExtendedSQLTest sql/test ; received return code 1
Error: Process completed with exit code 18.

}}

Retest this please

can you retrigger this? https://github.com/senthh/spark-1/actions/runs/1197237025

can you retrigger this? https://github.com/senthh/spark-1/actions/runs/1197237025

@HyukjinKwon I am getting the same error .  Tests Passed but after that it failed with GC issue,in Jenkin.

@dongjoon-hyun @HyukjinKwon
I see tests are successful in https://github.com/senthh/spark-1/actions/runs/1197237025, but in PR it still shows failed status.
Do you have any idea what could be the reason for this mismatch?

@HyukjinKwon @dongjoon-hyun
Tests are passed now. Thank you for your kind assistance and  review comments.

Yep. Tests passed. Thank you, @senthh .
Merged to master for Apache Spark 3.3.0.


Consider moving each operator into its own file.

The current distinction of CommonOperators, FloatOperators, etc is not scaling well. Related operators like rewrite/rewriteRange have to be put in different files due to their signatures.
Main issue with having Rewrite.java contain the rewrite() operator is that by default, users' IDEs will import that as Rewrite.rewrite() which is verbose and duplicitous. It's unclear if this is a bigger problem than what we currently have.

🎊 My diff is ready for review at http://codereview.cc/D3028


After successfully install Package,"/MyCoursesForStudy " --> launch Course is not working.Page displayed as blank

code is not working after install packages want to do launch courses but the page displayed as blank.

Make sure your appsettings.json file has the correct values for your
installation.
Look at these values:
"AppSettings": {
"UploadFolder": "SCORMPackages/",
"CourseFolder": "SCORMCourses/",
Make sure that the Values for UploadFolder and CourseFolder are correct for
your installation.
Also, don't try to run courses that you see pre-loaded in the database,
they will not work. You have to load your own.
Another thing to do is to use the javascript debugger in your browser to
see if any errors are being thrown.
Good luck!
On Wed, Dec 18, 2019 at 5:38 AM SanjayAmeta<EMAIL_ADDRESS>wrote:

code is not working after install packages want to do launch courses but
the page displayed as blank.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dhodges47/SCORM-LearningManagementSystem/issues/6?email_source=notifications&email_token=AAB5OFXWFVKGDOK4T7UR2RTQZH4S5A5CNFSM4J4I4MZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBJTK4A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5OFUADT6BRPY5U2YWY63QZH4S5ANCNFSM4J4I4MZA
.

Hello dhodges47 ,
can you help out am getting the same issue, after uploading SCORM course package I launch courses but the page displayed as blank.
i have also verify the UploadFolder and CourseFolder in applications.json
kindly assist

I can't really help because I can't see what is happening on your system. I suspect that either your paths to the course are still wrong, or something in your course itself is causing an error. If I were having this problem, I would be examining the network calls, and javascript errors,  that happen when loading the blank screen to see why it isn't displaying your course.
Please verify that you have used the javascript debugger (in Chrome or Firefox or IE) to solve this problem as follows:
After loading the blank page, the network tab will show if there were errors in loading your course. It will show the address it was trying to load, which you can then use to correct your settings.
The console tab in the debugger will show any javascript errors that be thrown.
If you don't want to use the javascript debugger, you can Fiddler to see the network traffic.

thank you for the heads up, javascript debugger was showing 404 (not found). I was able to resolve the issue; when you upload course package it unzip it on OpenSourceSCORMLMS\SCORMCourses but when you are running the application it points to OpenSourceSCORMLMS\wwwroot\SCORMCourses
is working now but the progress and score of a course is not been updated after you finish watching a course any idea on how to resolve the issue.


Edison SPI can't work on frequency more then 10 kHz

Hello.
I started using Edison with latest firmware Release 2.1 Yocto complete image*. But after first tries to make SPI exchanges on 1MHz I noticed freezing and errors in dmesg and found issue on communities https://communities.intel.com/thread/78149?start=0&tstart=0 .
Now I followed recommendation in that topic and downgraded to Release 2.0 Yocto complete image*. (edison-image-ww25.5-15)
So now I on:
cat /proc/version
Linux version 3.10.17-poky-edison+ (sys_dswci@tlsndgbuild004) (gcc version 4.9.1 (GCC) ) #1 SMP PREEMPT Fri Jun 19 12:06:40 CEST 2015
cat /etc/*release
EDISON-3.0
Copyright Intel 2015
configure_edison --version
159
opkg install mraa
Package libmraa0 (0.7.3) installed in root is up to date.

Is this output correct for edison-image-ww25.5-15 ? Or it is not downgraded correctly? (I copied zip to Edison Flash Drive and issued reboot ota via ssh)
I wrote next simple test python2 script (needs opkg install mraa):
import mraa
from time import sleep, time

BULK_SIZE = 512
SPI_FREQ = 100e3 # 100KHz

print("Starting SPI test using bulks {} at {}".format(BULK_SIZE, SPI_FREQ))

spi = mraa.Spi(1)
spi.frequency(int(SPI_FREQ))
spi.lsbmode(True)
spi.mode(mraa.SPI_MODE3)

start = time()
tot_bytes = 0
while True:
    sleep(0.01)
    txbuf = bytearray([0xFF] * BULK_SIZE)
    rxbuf = spi.write(txbuf)
    tot_bytes += len(txbuf)
    print("{}: Rate: {} B/s".format(time(), tot_bytes / (time() - start)))

After working one or two minutes it hanged up. I can't kill it with Ctrl+C, or suspend with Ctrl+Z. I can only exit from SSH with ~., reconnect to Edison and see this script in ps.
I can't kill it by killall -9 python or by pid with kill. Only reboot helps. After two minutes dmesg shows:
[  360.610725] INFO: task python2:345 blocked for more than 120 seconds.
[  360.610813] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  360.610889] python2        D f5051d8c  6040  345    336 0x00000004
[  360.610929]  f5051dd4 00000086 f6c81bd0 f5051d8c c12726e3 c1d04000 f6c9e000 f73fdc00
[  360.610986]  00000046 f6c83d30 f73fdc00 f5d95900 f5d34344 f6c0e000 f5051d98 c12727bf
[  360.611040]  f5cd8400 f5051da0 c125ad6e f5051dbc c125c4e3 f5cd8400 00000005 f5d81600
[  360.611095] Call Trace:
[  360.611135]  [<c12726e3>] ? try_to_wake_up+0x193/0x250
[  360.611164]  [<c12727bf>] ? wake_up_process+0x1f/0x40
[  360.611191]  [<c125ad6e>] ? wake_up_worker+0x1e/0x20
[  360.611216]  [<c125c4e3>] ? insert_work+0x53/0x90
[  360.611246]  [<c18df1e7>] ? _raw_spin_unlock+0x17/0x40
[  360.611272]  [<c125ce8f>] ? __queue_work+0x10f/0x340
[  360.611299]  [<c18de0e3>] schedule+0x23/0x60
[  360.611324]  [<c18db745>] schedule_timeout+0x165/0x2a0
[  360.611355]  [<c1270ddb>] ? get_parent_ip+0xb/0x40
[  360.611380]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  360.611408]  [<c18dd19b>] wait_for_completion+0xab/0xe0
[  360.611433]  [<c1272800>] ? wake_up_state+0x20/0x20
[  360.611463]  [<c15c1050>] spidev_sync+0x80/0xb0
[  360.611493]  [<c15c19df>] spidev_ioctl+0x65f/0x6f0
[  360.611518]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  360.611549]  [<c15c1130>] ? spidev_write+0xb0/0xb0
[  360.611577]  [<c15c1380>] ? spidev_probe+0x190/0x190
[  360.611604]  [<c1336686>] do_vfs_ioctl+0x306/0x550
[  360.611632]  [<c1480cba>] ? inode_has_perm.isra.32.constprop.65+0x3a/0x50
[  360.611657]  [<c1480d57>] ? file_has_perm+0x87/0x90
[  360.611686]  [<c148113b>] ? selinux_file_ioctl+0x4b/0xe0
[  360.611712]  [<c1336930>] SyS_ioctl+0x60/0x90
[  360.611740]  [<c18df928>] syscall_call+0x7/0xb
[  360.611769]  [<c18d0000>] ? init_intel_cacheinfo+0x1b3/0x37e
[  480.599431] INFO: task python2:345 blocked for more than 120 seconds.
[  480.599522] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  480.599598] python2        D f5051d8c  6040  345    336 0x00000004
[  480.599638]  f5051dd4 00000086 f6c81bd0 f5051d8c c12726e3 c1d04000 f6c9e000 f73fdc00
[  480.599695]  00000046 f6c83d30 f73fdc00 f5d95900 f5d34344 f6c0e000 f5051d98 c12727bf
[  480.599749]  f5cd8400 f5051da0 c125ad6e f5051dbc c125c4e3 f5cd8400 00000005 f5d81600
[  480.599804] Call Trace:
[  480.599845]  [<c12726e3>] ? try_to_wake_up+0x193/0x250
[  480.599875]  [<c12727bf>] ? wake_up_process+0x1f/0x40
[  480.599902]  [<c125ad6e>] ? wake_up_worker+0x1e/0x20
[  480.599928]  [<c125c4e3>] ? insert_work+0x53/0x90
[  480.599957]  [<c18df1e7>] ? _raw_spin_unlock+0x17/0x40
[  480.599983]  [<c125ce8f>] ? __queue_work+0x10f/0x340
[  480.600010]  [<c18de0e3>] schedule+0x23/0x60
[  480.600035]  [<c18db745>] schedule_timeout+0x165/0x2a0
[  480.600067]  [<c1270ddb>] ? get_parent_ip+0xb/0x40
[  480.600092]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  480.600119]  [<c18dd19b>] wait_for_completion+0xab/0xe0
[  480.600144]  [<c1272800>] ? wake_up_state+0x20/0x20
[  480.600175]  [<c15c1050>] spidev_sync+0x80/0xb0
[  480.600205]  [<c15c19df>] spidev_ioctl+0x65f/0x6f0
[  480.600230]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  480.600261]  [<c15c1130>] ? spidev_write+0xb0/0xb0
[  480.600289]  [<c15c1380>] ? spidev_probe+0x190/0x190
[  480.600315]  [<c1336686>] do_vfs_ioctl+0x306/0x550
[  480.600343]  [<c1480cba>] ? inode_has_perm.isra.32.constprop.65+0x3a/0x50
[  480.600369]  [<c1480d57>] ? file_has_perm+0x87/0x90
[  480.600397]  [<c148113b>] ? selinux_file_ioctl+0x4b/0xe0
[  480.600424]  [<c1336930>] SyS_ioctl+0x60/0x90
[  480.600452]  [<c18df928>] syscall_call+0x7/0xb
[  480.600481]  [<c18d0000>] ? init_intel_cacheinfo+0x1b3/0x37e
[  600.578598] INFO: task python2:345 blocked for more than 120 seconds.
[  600.578688] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  600.578764] python2        D f5051d8c  6040  345    336 0x00000004
[  600.578805]  f5051dd4 00000086 f6c81bd0 f5051d8c c12726e3 c1d04000 f6c9e000 f73fdc00
[  600.578862]  00000046 f6c83d30 f73fdc00 f5d95900 f5d34344 f6c0e000 f5051d98 c12727bf
[  600.578916]  f5cd8400 f5051da0 c125ad6e f5051dbc c125c4e3 f5cd8400 00000005 f5d81600
[  600.578972] Call Trace:
[  600.579013]  [<c12726e3>] ? try_to_wake_up+0x193/0x250
[  600.579042]  [<c12727bf>] ? wake_up_process+0x1f/0x40
[  600.579070]  [<c125ad6e>] ? wake_up_worker+0x1e/0x20
[  600.579095]  [<c125c4e3>] ? insert_work+0x53/0x90
[  600.579125]  [<c18df1e7>] ? _raw_spin_unlock+0x17/0x40
[  600.579151]  [<c125ce8f>] ? __queue_work+0x10f/0x340
[  600.579177]  [<c18de0e3>] schedule+0x23/0x60
[  600.579202]  [<c18db745>] schedule_timeout+0x165/0x2a0
[  600.579233]  [<c1270ddb>] ? get_parent_ip+0xb/0x40
[  600.579258]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  600.579286]  [<c18dd19b>] wait_for_completion+0xab/0xe0
[  600.579311]  [<c1272800>] ? wake_up_state+0x20/0x20
[  600.579341]  [<c15c1050>] spidev_sync+0x80/0xb0
[  600.579371]  [<c15c19df>] spidev_ioctl+0x65f/0x6f0
[  600.579396]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  600.579427]  [<c15c1130>] ? spidev_write+0xb0/0xb0
[  600.579455]  [<c15c1380>] ? spidev_probe+0x190/0x190
[  600.579482]  [<c1336686>] do_vfs_ioctl+0x306/0x550
[  600.579510]  [<c1480cba>] ? inode_has_perm.isra.32.constprop.65+0x3a/0x50
[  600.579536]  [<c1480d57>] ? file_has_perm+0x87/0x90
[  600.579564]  [<c148113b>] ? selinux_file_ioctl+0x4b/0xe0
[  600.579590]  [<c1336930>] SyS_ioctl+0x60/0x90
[  600.579618]  [<c18df928>] syscall_call+0x7/0xb
[  600.579647]  [<c18d0000>] ? init_intel_cacheinfo+0x1b3/0x37e
[  720.558075] INFO: task python2:345 blocked for more than 120 seconds.
[  720.558166] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  720.558242] python2        D f5051d8c  6040  345    336 0x00000004
[  720.558282]  f5051dd4 00000086 f6c81bd0 f5051d8c c12726e3 c1d04000 f6c9e000 f73fdc00
[  720.558339]  00000046 f6c83d30 f73fdc00 f5d95900 f5d34344 f6c0e000 f5051d98 c12727bf
[  720.558393]  f5cd8400 f5051da0 c125ad6e f5051dbc c125c4e3 f5cd8400 00000005 f5d81600
[  720.558449] Call Trace:
[  720.558488]  [<c12726e3>] ? try_to_wake_up+0x193/0x250
[  720.558517]  [<c12727bf>] ? wake_up_process+0x1f/0x40
[  720.558544]  [<c125ad6e>] ? wake_up_worker+0x1e/0x20
[  720.558570]  [<c125c4e3>] ? insert_work+0x53/0x90
[  720.558600]  [<c18df1e7>] ? _raw_spin_unlock+0x17/0x40
[  720.558626]  [<c125ce8f>] ? __queue_work+0x10f/0x340
[  720.558653]  [<c18de0e3>] schedule+0x23/0x60
[  720.558678]  [<c18db745>] schedule_timeout+0x165/0x2a0
[  720.558710]  [<c1270ddb>] ? get_parent_ip+0xb/0x40
[  720.558735]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  720.558762]  [<c18dd19b>] wait_for_completion+0xab/0xe0
[  720.558787]  [<c1272800>] ? wake_up_state+0x20/0x20
[  720.558819]  [<c15c1050>] spidev_sync+0x80/0xb0
[  720.558849]  [<c15c19df>] spidev_ioctl+0x65f/0x6f0
[  720.558874]  [<c18e2c75>] ? sub_preempt_count+0x95/0xf0
[  720.558905]  [<c15c1130>] ? spidev_write+0xb0/0xb0
[  720.558933]  [<c15c1380>] ? spidev_probe+0x190/0x190
[  720.558960]  [<c1336686>] do_vfs_ioctl+0x306/0x550
[  720.558988]  [<c1480cba>] ? inode_has_perm.isra.32.constprop.65+0x3a/0x50
[  720.559013]  [<c1480d57>] ? file_has_perm+0x87/0x90
[  720.559042]  [<c148113b>] ? selinux_file_ioctl+0x4b/0xe0
[  720.559068]  [<c1336930>] SyS_ioctl+0x60/0x90
[  720.559097]  [<c18df928>] syscall_call+0x7/0xb
[  720.559125]  [<c18d0000>] ? init_intel_cacheinfo+0x1b3/0x37e

If I change SPI_FREQ to 10e3 it work for long time, if to 20e3 it may be hang after several minutes.
What can be wrong? Do I need downgrade to some release earlier then 2.0? Where can I found it? Can I help to community to fix this? What I need for this? I tried also building latest mraa from git with python3.4 on Yocto 2.0 and 2.1, but the result was same in all cases.

Hi,
as I know this problem is out of MRAA. It is related with a SPI driver of edison-image-ww25.5-15.
You may find more information here:
https://communities.intel.com/thread/78149?start=15&tstart=0
If you will downgrade the Linux image, the problem may be fixed.
BR,
xbolshe

@xbolshe as I wrote in issue I already downgraded it

@ivictbor I have tested edison-image-ww25.5-15 and edison-image-ww18-15.zip for SPI bus. Both of them do not work in my case. So now I use edison-image-ww05-15.zip. Here is a link to download:
https://downloadcenter.intel.com/download/24909/Intel-Edison-OS-Image-release-2-0
BR,
xbolshe

@xbolshe Thanks very much for help! I will try it. It is very sad that Intel released several releases one after other with the same critical bug and they all can be downloaded at the official Intel site... I had a better opinion about Intel

Downgrading to edison-image-ww05-15.zip solved issue


Failed validation: #/definitions/InsightsResult

Validation Error
Minimal Reproduction

Symbol(s) that it happened for

Error Message

Environment
Browser or Node:
Node version (if applicable):
Npm version:
Browser verion (if applicable):
Library version (e.g. 1.10.1):
Additional Context
The following result did not validate with schema: #/definitions/InsightsResult
[
{
instancePath: '',
schemaPath: '#/additionalProperties',
keyword: 'additionalProperties',
params: { additionalProperty: 'upsell' },
message: 'must NOT have additional properties'
}
]
This may happen intermittently and you should catch errors appropriately.
However:  1) if this recently started happening on every request for a symbol
that used to work, Yahoo may have changed their API.  2) If this happens on
every request for a symbol you've never used before, but not for other
symbols, you've found an edge-case.  Please see if anyone has reported
this previously:
https://github.com/gadicc/node-yahoo-finance2/issues?q=is%3Aissue+Failed validation%3A %23%2Fdefinitions%2FInsightsResult
or open a new issue (and mention the symbol):
https://github.com/gadicc/node-yahoo-finance2/issues/new?labels=bug%2C+validation&template=validation.md&title=Failed validation%3A %23%2Fdefinitions%2FInsightsResult
For information on how to turn off the above logging or skip these errors,
see https://github.com/gadicc/node-yahoo-finance2/tree/devel/docs/validation.md.
{
"name": "FailedYahooValidationError",
"result": {
"symbol": "ABBOTINDIA.NS",
"upsell": {
"companyName": "ABBOTT INDIA LTD",
"upsellReportType": "MORNINGSTAR_ANALYST"
},
"sigDevs": [
{
"headline": "Abbott India Dec-Qtr Net Profit Slips",
"date": "2021-02-09T00:00:00.000Z"
}
]
},
"errors": [
{
"instancePath": "",
"schemaPath": "#/additionalProperties",
"keyword": "additionalProperties",
"params": {
"additionalProperty": "upsell"
},
"message": "must NOT have additional properties"
}
]
}

Hey @hantechis, thanks for reporting this!  First time we've come across this field.  It's fixed in the devel branch and should be released quite soon (there'll be an automatic message here when it is).  If this is common on the NSE stocks and you encounter any further problems, please do let us know!  Thanks :pray:

:tada: This issue has been resolved in version 1.14.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Broken/outdated URIs in contact_prediction.ipynb

Bug description
When trying to excute the example contact_prediction.ipynb notebook the URIs for the pretrained weights for two of the links are outdated or broken
Reproduction steps
Running the Jupyter notebook or running the aria2c command:

command fails with HTTP error code 403. These files have either been moved or set to non-readable.
Expected behavior
Files would download as described.
It is clear the for the first two links .pt files have just been superseded with newer files and the .ipynb just needs updating to reflect that.

Hi, there's probably a typo, please use https://dl.fbaipublicfiles.com/fair-esm/models/esm2_t33_650M_UR50S.pt to download this file – I'll update the notebook shortly.


PSA: Add match_kind optional to PSA

This match_kind has been added to v1model some time ago, and does not require any data plane changes for a data plane that supports match_kind ternary, since one possible implementation is for match_kind optional to be a control plane API restriction on a ternary field in the data plane.  There might be some data planes that can implement optional more efficiently than ternary, so allowing a P4 developer to explicitly declare fields with match_kind optional could be of some cost benefit for such targets.

This aligns well with my experience building software switches, in which wildcarding on a per-field basis is sometimes easier or more efficient to implement than wildcarding on a per-bit basis.

I have created this PR intended to address this issue.  As described above, I plan to let this sit for at least a couple of weeks for comments: https://github.com/p4lang/p4-spec/pull/920

Closed since PR #920 has been merged into the PSA specification.


Keep web emoji picker open with a shift click

Is your feature request related to a problem? Please describe.
I mentioned this in #2367 as a side note, but I figured it would be better to break this out into a feature request. For the emoji picker, it would be nice if SHIFT+LMB did not close the emoji picker in order to allow for multiple emojis to be selected similar to how it works in Discord, but I don't know enough about the libraries to tweak onEmojiSelect or onInsert confidently myself.
Describe the solution you'd like
I would like for multiple emojis to be selected without having to repeatedly open the emoji picker poput.
Describe alternatives you've considered
The alternative is tedious.
Additional context

Planned: https://github.com/bluesky-social/social-app/issues/1425