"Test Downloads" check fails due to glibc incompatibility

Hi,
Running make -f test/Makefile all_emu fails with this:
/root/test-client: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /root/test-client)
/root/test-client: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /root/test-client)

Here is the log file:
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M100 13.1M  100 13.1M    0     0   180M      0 --:--:-- --:--:-- --:--:--  180M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M100  7825  100  7825    0     0  3820k      0 --:--:-- --:--:-- --:--:-- 7641k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M100    20  100    20    0     0  20000      0 --:--:-- --:--:-- --:--:-- 20000
Test: fibonacci-go
 fibonacci-go Pulling
 08192208c193 Pulling fs layer
 6b078d25f61e Pulling fs layer
 963866357e12 Pulling fs layer
 08192208c193 Downloading [==================================================>]      93B/93B
 08192208c193 Verifying Checksum
 08192208c193 Download complete
 08192208c193 Extracting [==================================================>]      93B/93B
 6b078d25f61e Downloading [>                                                  ]  2.076kB/122.7kB
 08192208c193 Extracting [==================================================>]      93B/93B
 6b078d25f61e Downloading [==================================================>]  122.7kB/122.7kB
 6b078d25f61e Verifying Checksum
 6b078d25f61e Download complete
 963866357e12 Downloading [>                                                  ]  85.77kB/8.457MB
 963866357e12 Downloading [==============>                                    ]  2.407MB/8.457MB
 08192208c193 Pull complete
 6b078d25f61e Extracting [=============>                                     ]  32.77kB/122.7kB
 6b078d25f61e Extracting [==================================================>]  122.7kB/122.7kB
 963866357e12 Downloading [============================>                      ]  4.811MB/8.457MB
 963866357e12 Downloading [================================================>  ]  8.125MB/8.457MB
 963866357e12 Verifying Checksum
 963866357e12 Download complete
 6b078d25f61e Pull complete
 963866357e12 Extracting [>                                                  ]   98.3kB/8.457MB
 963866357e12 Extracting [====>                                              ]  688.1kB/8.457MB
 963866357e12 Extracting [==================>                                ]  3.146MB/8.457MB
 963866357e12 Extracting [==================================================>]  8.457MB/8.457MB
 963866357e12 Pull complete
 fibonacci-go Pulled
 Network vswarmu_default  Creating
 Network vswarmu_default  Created
 Container function  Creating
 Container function  Created
 Container function  Starting
 Container function  Started
/root/test-client: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /root/test-client)
/root/test-client: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /root/test-client)
 Container function  Stopping
 Container function  Stopped
 Container function  Removing
 Container function  Removed
 Network vswarmu_default  Removing
 Network vswarmu_default  Removed
FAIL: Commands failed
Test: aes-go
 aes-go Pulling
 0d35f8511266 Pulling fs layer
 08d53f5b4cfa Pulling fs layer
 985429b132cf Pulling fs layer
 08d53f5b4cfa Downloading [>                                                  ]  2.088kB/122.7kB
 08d53f5b4cfa Downloading [==================================================>]  122.7kB/122.7kB
 08d53f5b4cfa Verifying Checksum
 08d53f5b4cfa Download complete
 985429b132cf Downloading [>                                                  ]  90.91kB/8.766MB
 0d35f8511266 Downloading [==================================================>]      93B/93B
 0d35f8511266 Verifying Checksum
 0d35f8511266 Download complete
 0d35f8511266 Extracting [==================================================>]      93B/93B
 0d35f8511266 Extracting [==================================================>]      93B/93B
 985429b132cf Downloading [===========>                                       ]   2.05MB/8.766MB
 0d35f8511266 Pull complete
 08d53f5b4cfa Extracting [=============>                                     ]  32.77kB/122.7kB
 08d53f5b4cfa Extracting [==================================================>]  122.7kB/122.7kB
 08d53f5b4cfa Extracting [==================================================>]  122.7kB/122.7kB
 985429b132cf Downloading [================================>                  ]  5.679MB/8.766MB
 985429b132cf Verifying Checksum
 985429b132cf Download complete
 08d53f5b4cfa Pull complete
 985429b132cf Extracting [>                                                  ]   98.3kB/8.766MB
 985429b132cf Extracting [=====>                                             ]  884.7kB/8.766MB
 985429b132cf Extracting [===================>                               ]  3.342MB/8.766MB
 985429b132cf Extracting [==================================================>]  8.766MB/8.766MB
 985429b132cf Pull complete
 aes-go Pulled
 Network vswarmu_default  Creating
 Network vswarmu_default  Created
 Container function  Creating
 Container function  Created
 Container function  Starting
 Container function  Started
/root/test-client: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /root/test-client)
/root/test-client: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /root/test-client)
 Container function  Stopping
 Container function  Stopped
 Container function  Removing
 Container function  Removed
 Network vswarmu_default  Removing
 Network vswarmu_default  Removed
FAIL: Commands failed

My host machine is running Ubuntu 22.04, the kernel version is 5.15.0-117-generic, the glibc version is 2.35, and the python version is 3.10.12.
I also tried the suggested solution mentioned in another post about changing the install_functions.sh script to download the client file from https://github.com/vhive-serverless/vSwarm-u/releases/download/v0.2.0/test-client-amd64, but it didn't help.

Sorry for the delayed response.
Can you try to download from the newest release?:
# Download the new x86 binary. (Should be built with Ubuntu 20.04)
curl  "https://github.com/vhive-serverless/vSwarm-u/releases/download/v0.3.0/test-client-amd64" -f -o /wkdir/test-client

# The installation script should download the new client placed into the your working directory `wkdir`
make -f simulation/Makefile install_functions

Hi David,
I believe both the newest release and the previous version (v0.2.0) work, by running make -f simulation/Makefile install_functions and make -f simulation/Makefile install_check after downloading and replacing the client file; however running make -f test/Makefile all_emu standalone fails. I might have misunderstood the quick start guide, as I thought make -f test/Makefile all_emu would both install the functions and verify the installation.
Moreover, I believe the github link redirects to somewhere else and therefore -L should be used with the curl command.


in automation Fan Mode doesnt react

hello
when i try to make a auto-start of my midea, the mode of the RPM of the fan always takes the
rpm from last time of use, doesnt change to my (wish 40% rpm) of the fan, here is the yaml :
alias: Wohnzimmer_heizen
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.shelly_h_t_wz_temperature
    below: 25
    for:
      hours: 0
      minutes: 0
      seconds: 0
conditions:
  - condition: time
    after: "14:00:00"
    before: "02:00:00"
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
actions:
  - device_id: 2ea4b7557db18b7f4a9cabc3b5da3008
    domain: climate
    entity_id: 59b659b224d19aa0cff34000ced7dae0
    type: set_hvac_mode
    hvac_mode: heat
  - device_id: 2ea4b7557db18b7f4a9cabc3b5da3008
    domain: number
    entity_id: 773c504ac12a4613b52a0403c37e5302
    type: set_value
    value: 40
mode: single

Also a question, how do I tell him the temperatur ( e.g. 27° ) in Home Assistant automations ?

Is there any change in behavior if you use the climate.set_fan_mode action instead of number.set_value?
Can you enable debug logging, trigger this automation and provide the logs?

Closing as stale. Please re-open as you see fit.


Refactor argument initialization

Problem or enhancement idea
Partials and shortcode use a structured approach to validate their arguments. However, there is still quite a lot of boilerplate code to initialize the arguments. For example, the card-group partial uses about 30 lines of code to initialize the local variables based on the arguments passed to the partial.
Proposed solution
Refactor the utility function utilities/IsInvalidArgs.html defined in mod-utils to not only validate the arguments, but to initialize them too. Partials could then simply use them as map entries, unless they would need to override their values.

In addition to the proposal, the arguments should support common definitions too. For example, the class arguments is defined in 30 data files. Using common definitions would improve standardization and limit rework.

Another refinement is to validate nested argument types too. Currently, nested types are not validated beyond their map type at all.
The following example illustrates the definition of a heading type.
arguments:
  heading:
    type: map[string]interface {}
    optional: true
    comment: >-
      Convenience argument to pass preheading, heading, content, align, and
      width with one structured argument.

In the actual code, the heading supports the following nested map entries:
preheading:
preheadingPlacement:
heading:
content:
align:
width

Thirdly, the utilities/IsInvalidArgs.html partial should also support reading default values from the site configuration. The initialization order would the following:

The value of the passed argument
The default value defined in the site parameters, identified by key
The default value defined in the structure file


Relation between Connection and NewStream/RecvStream/WriteStream

Further to the bug report here, I can also see that children streams spawned via IncomingStreams stream are left untouched by Connection::close(). What this means is that for e.g., a read_to_end on a RecvStream will remain potentially unresolved once the peer has managed to successfully open it and send some stuff on it and then we decide to close the connection to it. Even if we fixed the linked bug and resolve the IncomingStreams to completeness, all the children streams continue to exist unresolved until the peer takes some action on them. They can continue to successfully do write_all on them on only once they call shutdown etc. will they make us resolve our read_to_end.
To manually patch this I'm currently keeping extra state such as a tokio::sync::watch::Sender which broadcasts to all the children streams to resolve them via stream/future selector (select/select2).
This should also be fixed in quinn ?

This should be handled by Pending::fail, but we may have a bug where don't call that for locally-closed connections.

I'm happy to close this now as i can see all stuff regarding and spawning from this are resolved (at-least in my tests), or the admins can close it later if they think they need to work on this more somewhere.


[WIP] RoL init

This PR is init for REST API application with a slightly extended CRUD model.
To begin with, I'm thinking of implementing the functionality from the list below, for only one EthernetSwitch entity, which is associated with the EthernetSwitchPort entity, and default things for the project like logging and configuration storage.
DTO is a data transfer objects.
Worklfows:

[x] Plantuml SVG generation
[ ] Unit tests

Plantuml class diagrams:

[x] EthernetSwitch
[x] EthernetSwitchDto
[x] EthernetSwitchCreateDto
[x] EthernetSwitchUpdateDto
[x] EthernetSwitchPort
[x] EthernetSwitchPortDto
[x] EthernetSwitchPortUpdateDto
[x] EthernetSwitchPortCreateDto
[x] Global entities class map

Application:

[x] Generic repository interface and GORM implementation.
[x] Generic service interface and default implementation
[x] Mapper [entity to dto/ dto to entity] (convertor)
[x] Implemented entities: EthernetSwitch, EthernetSwitchPort
[x] Clean Architecture
[x] Gorm MySQL tested and worked
[x] Gorm Sqlite tested and worked (for tests)
[x] Initial REST API with GIN framework (CRUD EthernetSwitch and EthernetSwitchPort)
[x] Initial logging with logrus framework
[ ] Application config
[ ] Small refactoring
[x] Gorm generic repository tests
[x] Generic service tests

Any progress on this @Insei ?

#7


[XPU] add xpu support for llama sft

PR types

New features
PR changes

Models
Description

Llama model supports XPU
简要说明：XPU自定义的融合算子通过Paddle C++ Extension的方式接入，XPU自定义Paddle算子库的名称叫做paddle_xpu(aka. fast_paddle)
相关PR参考：https://github.com/PaddlePaddle/PaddleNLP/pull/8282

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


.NET core installed and verified but still getting error

Does this occur consistently?
Repro steps:

Install latest .NET core SDK from Microsoft on MacBook Pro 16
In VS Code, install Azure Resource Manager extension. This will also auto-install the .NET Install Tool for Extension Authors.
[Re]start VS Code and open azuredeploy.json with content as below:

{   "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",   "contentVersion": "<IP_ADDRESS>",   "resources": [     {       "type": "Microsoft.Storage/storageAccounts",       "apiVersion": "2019-04-01",       "name": "popboxitTutorial",       "location": "eastus2",       "sku": {         "name": "Standard_LRS"       },       "kind": "StorageV2",       "properties": {         "supportsHttpsTrafficOnly": true       }     }   ] }

Without taking any further action, the error pops up in VS Code reporting "An error occurred while installing .NET: Dotnet Core Acquisition Failed: undefined

Action: startArmLanguageServer
Error type: Error
Error Message: This extension requires .NET Core for full functionality, but we were unable to download and install a local copy for the extension. If this error persists, please see https://aka.ms/vscode-armtools-dotnet for troubleshooting tips.
Details: dotnet.acquire returned undefined"
Version: 0.13.0
OS: darwin
OS Release: 19.6.0
Product: Visual Studio Code
Product Version: 1.50.1
Language: en

Call Stack
Object.wrapError extension.bundle.js:166:60234
Object.<anonymous> extension.bundle.js:239:55780
fulfilled extension.bundle.js:239:54595
processTicksAndRejections task_queues.js:94:5

@kaavik Did the troubleshooting steps help?  Thx.

Hi Stephen,
Unfortunately, I the troubleshooting steps have not helped and I am still getting the messages below as soon as I open my Azure JSON file, even though from the terminal output on the left, you can clearly see that .NET core is successfully installed and in the default path for my bash shell. I also included the ‘which dotnet’ output in the screenshot below showing the full path to dotnet.
<EMAIL_ADDRESS>I would really like to get this sorted out.
Thanks,
CARTER
From: "Stephen Weatherford (MSFT)"<EMAIL_ADDRESS>Reply-To: microsoft/vscode-azurearmtools<EMAIL_ADDRESS>Date: Sunday, November 1, 2020 at 01:24
To: microsoft/vscode-azurearmtools<EMAIL_ADDRESS>Cc: Carter Terry<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/vscode-azurearmtools] .NET core installed and verified but still getting error (#1081)
@kaavikhttps://github.com/kaavik Did the troubleshooting steps help? Thx.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-azurearmtools/issues/1081#issuecomment-720041080, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADRL7YRTUF43NGKT64STYTSNT5KBANCNFSM4TGEFT2A.

@kaavik Unfortunately the image seems to not have made it through, so I might be missing some context, but try this...
The extension doesn't currently pick up dotnet from the path.  You can force it to use a local installation by going into settings in vscode and pointing it to the installation like this:

Once you restart, you should be able to find confirmation of the path used in the Output window:

Hi Stephen,
I followed your instructions and restarted. No errors!
Maybe silly question... what should be different now besides the lack of errors? Meaning, I was already starting to edit ARM templates and it seemed like it was working / had intellisense so I am wondering what the .NET Core functionality adds?
Regardless, it is great to not have errors when VS Code loads!
Thanks,
CARTER
From: "Stephen Weatherford (MSFT)"<EMAIL_ADDRESS>Reply-To: microsoft/vscode-azurearmtools<EMAIL_ADDRESS>Date: Monday, November 2, 2020 at 14:29
To: microsoft/vscode-azurearmtools<EMAIL_ADDRESS>Cc: Carter Terry<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/vscode-azurearmtools] .NET core installed and verified but still getting error (#1081)
@kaavikhttps://github.com/kaavik Unfortunately the image seems to not have made it through, so I might be missing some context, but try this...
The extension doesn't currently pick up dotnet from the path. You can force it to use a local installation by going into settings in vscode and pointing it to the installation like this:
[image]https://user-images.githubusercontent.com/6913354/97910289-65caea00-1cfe-11eb-82fe-b7b4a20fa19f.png
Once you restart, you should be able to find confirmation of the path used in the Output window:
[image]https://user-images.githubusercontent.com/6913354/97910380-81ce8b80-1cfe-11eb-9c0e-bc7f2a088960.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-azurearmtools/issues/1081#issuecomment-720678031, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADRL72HT5KOGW4TMMH2FWLSN4CA7ANCNFSM4TGEFT2A.

There are tons of additional features besides just schema intellisense.  See here for a quick summary, and you'll probably notice additional stuff once you start editing: https://marketplace.visualstudio.com/items?itemName=msazurermtools.azurerm-vscode-tools
Thanks for the info, and don't hesitate to ask additional questions!

Thank you, Stephen!
CARTER
From: "Stephen Weatherford (MSFT)"<EMAIL_ADDRESS>Reply-To: microsoft/vscode-azurearmtools<EMAIL_ADDRESS>Date: Monday, November 2, 2020 at 15:36
To: microsoft/vscode-azurearmtools<EMAIL_ADDRESS>Cc: Carter Terry<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/vscode-azurearmtools] .NET core installed and verified but still getting error (#1081)
There are tons of additional features besides just schema intellisense. See here for a quick summary, and you'll probably notice additional stuff once you start editing: https://marketplace.visualstudio.com/items?itemName=msazurermtools.azurerm-vscode-tools
Thanks for the info, and don't hesitate to ask additional questions!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-azurearmtools/issues/1081#issuecomment-720709883, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADRL7YGPQYDQVQSYDPTS33SN4J3DANCNFSM4TGEFT2A.


R24.05 - [Country Risk] Release Checks

[!IMPORTANT]
Follow the guidance on how to use the templates.

Release Info
Please provide information on what you want to be included in the Eclipse Tractus-X release.
If you are not owner of this issue, please provide the information as comment to the issue.
Make sure to assign this issue to expert(s) for their approval, as soon as you have finished preparation. Multiple assignees allowed; they will un-assign themselves once review completed.
Version to be included in Eclipse Tractus-X release: version placeholder
Leading product repository: https://github.com/eclipse-tractusx/vas-country-risk
Compliance Verifications
This issue tracks all checks, that need to be performed for a product release in Eclipse Tractus-X.

[x] Interoperability checks performed
[ ] Data Sovereignty checks performed

General Checks

[x] Tractus-X Release Guidelines fulfilled see https://github.com/eclipse-tractusx/vas-country-risk/issues/176

[!NOTE]
Note: most criteria for documentation and security are now covered in TRGs

Security Checks

[x] Thread Modelling Analysis passed

Test Results

[ ] E2E Integration Test passed
[x] User Journey approved

Helpful Links

Eclipse Tractus-X openAPI specs on SwaggerHub

Country Risk Threat Modelling Analysis R.24.05 approved

Hi all, just want to inform you that i raised the TRG Check QG-Issue under https://github.com/eclipse-tractusx/vas-country-risk/issues/176.
So to be alligned could you please tell me and committer from outside the project itself, who can help us with the QG-Check itself?
--> Please assign a committer 😉
Thanks in advance.

Hi all, just want to inform you that i raised the TRG Check QG-Issue under eclipse-tractusx/vas-country-risk#176.
So to be alligned could you please tell me and committer from outside the project itself, who can help us with the QG-Check itself?
--> Please assign a committer 😉
Thanks in advance.

@FaGru3n I'll conduct the review

Version to be included in Eclipse Tractus-X release: version placeholder

Hi all, which version should be checked ?

Version to be included in Eclipse Tractus-X release: version placeholder

Hi all, which version should be checked ?

apiVersion: v2
name: country-risk
type: application
version: 4.0.0
appVersion: "2.0.0-alpha"
the version is this at the moment , if issues or fixes are needed we will increment according

INT / E2E Tests performed successfully. Data Sov Tests outstanding. Thank You!

User Journey approved by BO. Thanks for your efforts!

QGChecks done, a couple of issues were created but nothing major blocking the release.

QG review 14-May
TRG optimizations ongoing
Only Data Sov test executions outstandig
no follow-up call required

checked the TRG checkbox

@vialkoje , @cbrugg , @leonschand as aligned referencing here notes / feedback from E2E Tests for Data Sovereignty.
No blocking issues for current Rel 24.05 but main items to be considered for next release(s):

Note: additional tests (from customer perspective) only partially possible
currently implemented scenario is consumption of pool data only , needs re-assessment once download/export functionality shall be offered
UI shows catalog items available for negotiation: View permissions restricted to CompAdmin Role but only generic description, i.e. missing transparency on underlying (usage) policies prior to triggering negotiation -> todo: enhance Catalog Item View with Usage Policies
ContractReference Constraint: technically could be supported but not used (see point that one data exchange partner is always the OpCo for currently implemented scenario)
no validation of the Schema "profile": "cx-policy:profile2405"

@vialkoje , @cbrugg , @leonschand as aligned referencing here notes / feedback from E2E Tests for Data Sovereignty. No blocking issues for current Rel 24.05 but main items to be considered for next release(s):

Note: additional tests (from customer perspective) only partially possible
currently implemented scenario is consumption of pool data only , needs re-assessment once download/export functionality shall be offered
UI shows catalog items available for negotiation: View permissions restricted to CompAdmin Role but only generic description, i.e. missing transparency on underlying (usage) policies prior to triggering negotiation -> todo: enhance Catalog Item View with Usage Policies
ContractReference Constraint: technically could be supported but not used (see point that one data exchange partner is always the OpCo for currently implemented scenario)
no validation of the Schema "profile": "cx-policy:profile2405"

Thanks for the approval @KMA-2019 , as discussed on call i created already issue for country risk https://github.com/eclipse-tractusx/vas-country-risk/issues/190 that needs to be attended for the next release

Data Sov Tests performed.
Testmanagement Approval is hereby given. Thank you for your efforts!

Hi @fabiodmota may I ask you to add the version info on the very top of this issue
and to also check the boxes for data sov and testing (based on the given comments).
I will then fully approve the QG in consequence,
Roland

Hi @fabiodmota may I ask you to add the version info on the very top of this issue and to also check the boxes for data sov and testing (based on the given comments). I will then fully approve the QG in consequence, Roland

Hi @RolaH1t , I just updated the correct versions with everything that was done and corrected for this QG, including validated TRGs! Now we are good to finalize.

Congrats:
Quality Gate fully approved with all necessary pre-requisites fulfilled!
Thanks for all your efforts,
Roland


Return the real response from StateRepositoryMessages (close #2120)

The PR should be 3.4 compatible.
Two things I noticed that I would like advice on:

Comment "Reaching here means a lifecycle or sync operation failed" is talking about lifecycle. But no lifecycle message is handled. Only sync messages
PassiveReplication messages are logging errors and sync messages are throwing an exception. It feels odd. Is that normal?

@henri-tremblay the comment is most likely a left over when doing the single entity -> multi entity split a while ago.
With regards to exceptions, I believe the logic is that killing a passive while it is syncing makes sense since letting him move forward means having an invalid content. While a transient failure during message passing is ok as we expect a later mutation to still install the proper chain. Remember that we have single clustered tier entity -> segmented off heap maps -> multiple user keys can end up in the same key.

test this please

Ok. The comment about the lifecycle is now removed

Again that duplicate test failure

timeout increased to see how it goes

Can BasicClusteredCacheOpsReplicationMultiThreadedTest.testClear be longer than 3 minutes? I see nothing in the log telling that something went wrong.

Seeing the build history, it smells like something is wrong.


with-router displayName

Better displayName "Unknown" in production environment

I think it's fine as it is currently 🤔


Undo Hybrid ur0-pd0

When I select a different configuration it does change but still leaves the hybrid drive. Is there a way to remove this to go back to stock configuration? I did this through vita deploy so I downloaded this standalone version and hybrid configuration does not revert back to stock either. I have tried multiple ways to revert back but nothing has worked and I do not want to brick my vita. Not really a big deal just experimenting. Just not adding up after I did the hybrid drive and tried to revert back. TIA

Remember that to "apply" the configuration of ur0,ud0,pd0,etc you need to reformat the storages, eg via safemode's restore option.
This can be skipped with the 100MB ux0 option as the changes to ur0 are negligible.
Not formatting might cause various crashes and errors, besides visually appearing wrong in vitashell.


React Native Upgrade 0.71.0

This PR upgrades the example project to version 0.71 of React Native.

looks good, can you look into the failing tests?


Release 0.11.0

Are we approaching a release of 0.11.0?

I bring this up because it's required for some refgenie plugin stuff I'm using in other projects.

Yes, I think that all the planned features are implemented in every refgenie system component. I meant to open the PRs soon

@nsheff, once you approve we can start the release process of the whole refgenie system.
Things to look at are specified in the changelog for v0.11.0

Do we need to document the looper refgenie plugin?

do you mean briefly describe looper plugin system or just include the the function in the API docs?
https://github.com/refgenie/refgenconf/blob/7cedfb9d919a68d0d866c39227c62a5bb12447dc/refgenconf/populator.py#L14-L25
I thought it was included in the API docs, but it isn't

I was actually thinking a brief tutorial on how to use that plugin would be useful.

I guess such a tutorial would belong in refgenie anyway since that's where the docs are.
This looks good to me. Go ahead and release when you're ready.


HTTP API Test Suite

This is the start of the test suite for the HTTP API.
At the moment, it doesn't seem to be possible to run multiple tests because I can't start/stop the daemon multiple times.
I think to expand on this test suite we're going to want to enable the daemon to be started/stopped and enable multiple daemons to test communication, uploading and downloading etc.

I was thinking, the API tests in golang are kind of misplaced. They help in the sense  that they enforce a specific set of behaviors, which is good if you've settled on a set of behaviors to support. But while we're still changing things, what you really care about is compatibility with the tools that will be using the api.
So really, there should probably be a layer between the frontend and the api that manages all of the calls, and then the tests should act on that layer. That way, if something in the api changes, the tests will fail exactly until the frontend layer is changed to restore compatibility, and you don't ever need to modify the tests.
Right now, you'd need to modify both the tests and the frontend to restore compatibility after making a change to the api.
All of that may be too much for now. It's just something I was thinking about.

That approach definitely has a lot of advantages e.g. developers could quickly make modifications to the API then worry about adjusting it to the interface later. But I question the usefulness of that, because IMO the API is one of the first things to get static (if you know what features you're going to provide, then the API is relatively straightforward to nail down).
We would also want to be careful as to how this "layer" is created. I think the high-level API tests are the only realistic way to simulate real-world scenarios and don't just serve to test the API. So the layer would need a way to start multiple daemons, adjust ports etc. The only point to me saying this is we can't do it with JS haha- it should probably be in the go code (although maybe not in the test suite).
I'm also not sure it's a bad thing if when you make changes to the API the tests fail- it could serve as a reminder to update documentation and tests.

I'm probably going to pull these commits and fix this PR up so it matches how things have changed, b/c I think we're ready for API tests. I should be able to re-use most of what is here. You'll get to keep your commits I believe.

:DD

I suppose this was inevitable but we've replaced your api testing with some of our own. It just wasn't meant to be.


[Feature Request] Custom Language

I would really like to see a language file, which gives the possibility to change the messages of the bot in your language.

Duplicate of existing in-progress feature


Sidebar not loading

Good day
We recently updated to the latest version and the sidebar on mobile is not showing. I only shows a black overlay and not the side menu.
http://<IP_ADDRESS>:999/

Hi it works on .5 but then the Modals is not working. It closes but black overly stays

Hello @dolfvdberg  did you solve your problem?
Closed due inactivity, feel free to reopen it if it is still necessary.


Setup Pre-prod AKS Cluster

Description
What:

Setup and configure an AKS Pre-production environment

Why:

So that we may use it for demonstration, testing, and observability

When:

CI/CD runs or we want to demonstrate current capabilities and metrics

Where:

WestUS2

Tasks

[x] Review existing scripts and resources and update #71
[x] Create cluster #59
[x] Configure Istio for Service Mesh #60
[x] Deploy Platform Validation App #61
[x] Run validation tests against app #62
[x] Triplet-cluster setup #63
[ ] Add Helm Variables for application images #112

Acceptance Criteria

Should be able to access the cluster via Kubectl
Application should be running and accessible via browser
All validation tests should run
Documentation should be complete

Constraints

N/A

References:

References #16
References #47
Predecessor #19

[ ] Add Helm Variables for application images #112


[WIP] KAFKA-8179: Part 7, cooperative rebalancing in Streams

Working list of notable changes:

allow PARTITIONS_REVOKED to transition to itself (callback is no-op if revokedPartitions is empty)
tasks will remain available for IQ during a rebalance (but not during restore)
modify ConsumerPartitionAssignor interface to allow it to access (and modify) the ownedPartitions and revokedPartitions -- Streams will remove any paused partitions from the subscription/revoked, as they can safely be given away without first being revoked
don't encode active tasks with COOPERATIVE, these will be inferred from the ownedPartitions encoded in the subscription
don't reassign any partitions that were previously owned during a rebalance (cooperative protocol)

Github won't let me retarget this against the apache repo and won't let me open a second PR from this branch, so closing this to open a real PR --~


Working well with LightGraphs.jl

Hi JuliaComputing,
My name's Ben and I work on BioJulia, right now my efforts are focused on getting Evolutionary Genetics and Phylogenetics modules for Bio.jl. The phylogenetic module is getting written now to take advantage of LightGraphs.jl and I was wondering how easy it would be to enable Gunrock.jl and LightGraphs.jl to work seamlessly together, say passing LightGraphs graphs to Gunrock methods, and whether you guys would be interested in this or had opinions on what it would require? I think it could give the Phylogenetics module we're working on a real boost compared to other libraries in other languages.
Best,
Ben.

Cc @ranjanan

Gunrock team is happy to answer issues!

I think this is easily possible, and @ranjanan can say when this can be made available.

@Ward9250 I have implemented LightGraphs support in a branch RA/lg on this repo. Please do check it out and let me know if it's alright. This currently supports only undirected graphs, and I should work with the Gunrock team to see expand upon the C API and include not only directed graphs, but also bring the full capabilities of Gunrock.

I just looked at that branch. It looks like that integration is at the level of converting an LG graph to a SparseMatrixCSC. Would you want a deeper integration where algorithms defined in LG in terms of some primitives work on graphs stored on the GPU?
This would be a good trial for the interface and a test of how far we can push algorithms working on diverse backing data structures.

Kindly note the new GPU Open Data Analytics Initiative (https://news.developer.nvidia.com/goai-gpu-open-analytics-initiative/) that hopes to define good interchange formats. It's focused more on dense formats today (rather than the sparseness we need for graphs) but we are enthusiastic about it.

Just found this thread. One thing you might want to look at is our new(ish) SimpleWeightedGraphs.jl package. The underlying data structure for a SWG is a sparse matrix. Perhaps we can leverage that somehow?

Is there any utility in storing the graph as an edge list in a Dataframe/GPUdataframe? Is the conversion time to CSR/CSC still going to dominate? Copying a CSC matrix to the GPU should still be faster than converting the adjacency list.

@sbromberger Thanks for linking me to the package. I haven't quite shown this package enough love for a while. Maybe I will benchmark soon and update the chart.

@jpfairbanks this is exactly the kind of discussion that GOAI is having in terms of interoperability. Current efforts are focused on dense data like DataFrames. An edge list is not really amenable to representation in DataFrames, particularly for scale-free graphs. Something like CSR as the interchange format for sparse data makes more sense, I think.

Well edge list in a dataframe with a multindex is very similar to CSR right?
You have to put it in SQL terms you have the table select src,dst,weight from edgetable ORDER BY src,dst ASC If you make a multiindex on src,dst then you get a CSR like representation. Are you thinking of some other problem with edge lists?

My guess is that CSR would be denser in terms of actual bytes used, as well as being more amenable for GPU parallelization. Translating to matrix nomenclature, I think you're talking about using "COO" format as the sparse format? (In Gunrock we input things on the CPU in COO -- MatrixMarket is COO, I think -- but we convert to CSR for any computation.)


Camp Harmony: linens included for village 4

Please code registration so linens are included for motel rooms (village 4).

Not motel rooms, apartments


No support for GP75 9SD

Hi there i cannot use the software because it's saying TypeError: cannot open device with vendor id 0x1770 and product id 0xff00
can you add support for the device and yes i have tried everything i could find to get this to work but no i did not work
Describe your issue, comment or suggestion
System versions:
nodejs:
npm:
libusb:

Did you use sudo?
I am not adding support for any new devices.


Controller inputs (PS5 Dualsense) incorrect

When using a dualsense controller, the game recognises the controller but the inputs are all jumbled. Input is fine within Steam Big Picture. When the game is launched, Steam recognises the dualsense controller, and an Xbox 360 controller that shows no inputs.

Hm, bit out of my depth here. I am assuming that controller works just fine for other Steam games?

Yeah sorry, should have mentioned that. The controller works fine both with and without steam controller support in other games. Hoping someone else might be able to chip in, thanks!

Well the game doesn't even detect my ds4 for some reason

Same issue here, dualsense is fine in macos and steam, but in game the up and down of right joystick is not mapped or recognized at all

Same thing, but if you use Steam Input and replace everything with keyboard buttons, and use the joystick as a mouse, it works without any problems, as if the game itself does not understand gamepad input. (DualSense)

@sandlotie Hello! Would you kindly share the details how exactly did you "replaced everything with keyboard buttons, and used the joystick as a mouse" in the Steam Input?

@sandlotie Hello! Would you kindly share the details how exactly did you "replaced everything with keyboard buttons, and used the joystick as a mouse" in the Steam Input?

@ellkrauze I moved Valheim.app to applications folder, open Steam for mac and just go to Steam Library -> Valheim -> Properties -> Controller -> Steam Input and after this you see Controller button on Valheim page in library. You click on this button and a menu opens to select the controller layout and you can either create your own or find a suitable layout in the community layouts that uses the keyboard buttons instead of the controller buttons.
Although Steam overlay doesn't work in the game itself, but after starting the game it shows that I'm playing Valheim and the layout selected in Steam Input is applied.
Personally, the layout of Valheim Controls from mugg455 suited me best after some minor changes.
Although the interaction with menus, like chests and inventory can be frustrating. But overall it's playable.
If I'm not clear about something, then tell me

Same thing here with a DS4 nothing works. Wish I could use it.

The Xbox controller works well when connected via Bluetooth. If you connect it correctly, you can move the cursor with the right stick. However, the game itself is not controller friendly.

The Xbox controller works well when connected via Bluetooth. If you connect it correctly, you can move the cursor with the right stick. However, the game itself is not controller friendly.

What is your method for connecting the Xbox controller to Bluetooth? I've found multiple ways for MacOS and they've all been janky for me so far.

@SIX10 I usually connect my Xbox controller the following way:

Press and hold the controller's Connect button for a few seconds to put the controller into pairing mode. This makes it discoverable by your Apple device.
Open Bluetooth settings on your macbook, then select the controller from the list of nearby devices.
Now the cursor can be moved using the right stick.

My dualsense is not picked up at all by valheim. Works fine in other games native and under wine.

I do have to admit that I'm very impressed by this project. With fixed controller handling IG could confidently put it up on steam as a port and I don't think people would've complained at all. It's running very well on my m1 pro. I imagine with proper metal support and arm build it will be buttery smooth.

+1 for the Switch Pro Controller

Closing this issue as the official macOS client is now available! 🥳 (see #104)


feat: add support for IN and NOT in search clauses

Description
This PR adds support for the IN and the NOT SQL clauses.
Example 1
name IN ('value1', 'value2')

Example 2
((cloud_provider = Value and name = value1) and (owner <> value2 or region=b ) or owner in ('owner1', 'owner2', 'owner3')) or owner=c or name=e and region LIKE '%test%'

Example 3
((cloud_provider = Value and name = value1) and (owner <> value2 or region=b ) or owner not in ('owner1', 'owner2', 'owner3')) or owner=c or name=e and region LIKE '%test%'

Verification Steps
Try to search for clusters with the new IN and NOT clauses

Checklist (Definition of Done)

[ ] All acceptance criteria specified in JIRA have been completed
[ ] Unit and integration tests added that prove the fix is effective or the feature works (tested against emulated and non-emulated OCM environment)
[ ] Documentation added for the feature
[ ] CI and all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer
[ ] All PR comments are resolved either by addressing them or creating follow up tasks
[ ] Required metrics/dashboards/alerts have been added (or PR created).
[ ] Required Standard Operating Procedure (SOP) is added.
[ ] JIRA has been created for changes required on the client side

Thinking again about this implementation, I think the not in could be pretty dangerous if used together with cluster_id.
A bit less the in.
I changed this to draft because I want to ensure that there is no risk that we return clusters the user is not entitled to see.
I was thinking about removing the not. WDYT?
@pb82 @machi1990 ^

The clusters that should be returned should be only the ones where the user is the owner, its org if it's an org admin, etc.

@ziccardi IIRC, we also have a filter that applies the logic that @miguelsorianod said.
Might be good to add a test cases here https://github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/blob/38fc814295cb7daa42ae27386b8f06ee46acf680/internal/kafka/test/integration/kafka_list_search_order_test.go so that  this is tested end to end that might help us clear any doubts.

@valdar @dhirajsb This change will also add the in and not in filters to the connector list endpoint.

@valdar @dhirajsb This change will also add the in and not in filters to the connector list endpoint.

@valdar @dhirajsb can you verify if this doesn't impact connectors? Thanks


RATIS-1127. Add a stream(RaftGroupId) method to DataStreamApi.

See https://issues.apache.org/jira/browse/RATIS-1127

@szetszwo Thanks the patch. @amaliujia Thanks for review. I have merged it.


GitHub authentication

I just tried pushing some changes to GitHub for the first time in a while, and ran into this issue: https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ (I know, I know, it's been a while since I did any coding). These GitHub changes mean that our manual is now telling people to do something that results in an error. If you follow the instructions in https://mitgcm.readthedocs.io/en/latest/contributing/contributing.html#using-git-and-github you eventually get to this point:
[ewd:~/MITgcm]$ git push -u origin foo
>>> Username for 'https://github.com': edoddridge
>>> Password for<EMAIL_ADDRESS>>>> remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
>>> remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
>>> fatal: Authentication failed for 'https://github.com/edoddridge/MITgcm.git/'

Should we instead suggest people use ssh keys? Is that now the lowest friction option for GitHub authentication?

I ran into this problem some time ago, too, and have changed my general access mode to ssh keys (which I am much more familiar with). In some of my repositories I still use the token method, and it is a little annoying (in the end you'll have to store this long and complicated "password" somewhere on your hard drive).
I think it's a good idea to address this in the manual/quickstart part, and suggest ssh keys (and mention the token business?).

I agree to suggest ssh keys, this seems like the most robust authentication method. I haven't tried the tokens, but it seemed like more of a hassle for continued access as @mjlosch mentioned.
As a step zero in the manual instructions we could provide some recommendation to set up ssh keys, and provide this link to the Github ssh authentication "About" page where people can find the instructions they need. Then maybe mention that Personal Access Tokens exist, but are not the top recommendation (?) with e.g. this link.


Asserting a request is sent by closure parameter

Take the following snippet:
MockClient::getGlobal()->assertSent(function (CreateDealRequest $request) {
    expect($request->body()->all())->toMatchArray([
        'title' => '[MGT] Jon Doe / foo - bar / ' . now()->addDay()->format('M d \'y'),
        'status' => DealStatus::OPEN,
    ]);
});

This would fail if there was a request other than CreateDealRequest. It would be great if assertSent could take the request type into account.
Open to PRing that 👍

Thank you for PRing this! I'm going to close this as it's now a PR.


FlowRouter.route must start with /

I spent a little while trying to debug this:
FlowRouter.route('/unit/:unitId') //works
FlowRouter.route('unit/:unitId') //does not work and does not throw an error

If the route does not start with a forward slash it does not work. If this is the intended behavior can we get an error? Or is this supported in a way that I am not thinking of?

Route should start with /, otherwise if might change the current path.
But I rather like to throw an error on the case.
Could you send me a PR with a test case.
I'd like it.

@arunoda I am about to head out for my weekend, will be AFK. I can do on Monday, if you have not gotten to it.

Great.
On Fri, Mar 6, 2015 at 10:12 PM Sivli Kestanous<EMAIL_ADDRESS>wrote:

@arunoda https://github.com/arunoda I am about to head out for my
weekend, will be AFK. I can do on Monday, if you have not gotten to it.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/flow-router/issues/26#issuecomment-77590659
.

Hope we can close this.


LSP server launched by extension can't find installed .NET runtime

Environment data
dotnet --info output:
dotnet --info
.NET SDK:
 Version:   7.0.302
 Commit:    990cf98a27

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         ubuntu.22.04-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.302/

Host:
  Version:      7.0.5
  Architecture: x64
  Commit:       8042d61b17

.NET SDKs installed:
  3.1.426 [/usr/share/dotnet/sdk]
  5.0.408 [/usr/share/dotnet/sdk]
  6.0.300 [/usr/share/dotnet/sdk]
  7.0.302 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.32 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.16 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.32 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.16 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

VS Code version:
Version: 1.78.2 (system setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

C# Extension version:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
OmniSharp log
Dotnet path: /usr/bin/dotnet
Activating C# standalone...
You must install .NET to run this application.

App: /home/admin/.vscode-server/extensions/ms-dotnettools.csharp-2.0.206/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=7.0.0-preview.7.22362.8
[Info  - 12:39:51] Connection to server got closed. Server will restart.
[Error - 12:39:51] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097
[Error - 12:39:51] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097

Steps to reproduce

Be on a network that is not connected to the internet
Install .NET SDKs & VSCode on Windows machine
Create a Linux k8s pod that has .NET SDKs installed from the Ubuntu repo
Manually install extensions on Windows machine (win-x64 versions)
Manually install VS code remote server and C# extensions on Linux k8s pod (linux-x64 versions)
Configure both to not hit the internet to download the .NET runtime

Windows "dotnetAcquisitionExtension.existingDotnetPath": [
   {"extensionId": "ms-dotnettools.vscode-dotnet-runtime", "path": "C:\\Program Files\\dotnet\\dotnet.exe"},
   {"extensionId": "ms-dotnettools.csharp", "path": "C:\\Program Files\\dotnet\\dotnet.exe"},
   {"extensionId": "ms-dotnettools.csdevkit", "path": "C:\\Program Files\\dotnet\\dotnet.exe"},
   {"extensionId": "ms-dotnettools.vscodeintellicode-csharp", "path": "C:\\Program Files\\dotnet\\dotnet.exe"},
 ],

Linux "dotnetAcquisitionExtension.existingDotnetPath": [
   {"extensionId": "ms-dotnettools.vscode-dotnet-runtime", "path": "/usr/bin/dotnet"},
   {"extensionId": "ms-dotnettools.csharp", "path": "/usr/bin/dotnet"},
   {"extensionId": "ms-dotnettools.csdevkit", "path": "/usr/bin/dotnet"},
   {"extensionId": "ms-dotnettools.vscodeintellicode-csharp", "path": "/usr/bin/dotnet"},
 ],

Use Remote-ssh to connect VSCode from Windows to linux/k8s
Open a C# file

Expected  behavior
The Language Server should start correctly (using the installed .NET runtime) and C# features should work in the editor.
Actual behavior
The language server fails to start, as shown above.
Dotnet path: /usr/bin/dotnet
Activating C# standalone...
You must install .NET to run this application.

App: /home/admin/.vscode-server/extensions/ms-dotnettools.csharp-2.0.206/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Additional context
Running the same language server executable from a VS Code Terminal pane works fine:
admin@delta:~/git/delta$ /home/admin/.vscode-server/extensions/ms-dotnettools.csharp-2.0.206/.roslyn/Microsoft.CodeAnalysis.LanguageServer --version
4.7.0-2.23272.9+2244596ee0a1e757ab57881db33829123b6d1da8

With the C# Dev Kit installed I see the same behaviour there, except App host version in the log is 7.0.5.

Having the same problem: I've installed .NET runtime and sdk using dotnet-install.sh script, added it to PATH and even set vscode settings to point to existing installation, but this extension still tries to download its own runtime

Can you check if the environment variable DOTNET_ROOT is set?  If not, does setting it to the installed dotnet location work?
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#dotnet_root-dotnet_rootx86

Yes, setting DOTNET_ROOT helped for me

Thanks.
It seems like something has gone wrong with the way the .NET runtime is installed on our Ubuntu docker image amd /etc/dotnet/install_location was missing. Setting that up correctly worked ofr me.
See:
https://github.com/dotnet/runtime/issues/79237
https://github.com/dotnet/core/issues/7699

I have a very similar problem, but neither DOTNET_ROOT or c resolve the issue for me. Interestingly, when I execute ~/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer from the terminal, it starts up.
My workaround is to set "dotnet.server.useOmnisharp": true


Sorry for the late response and thanks for looking into this for me. It appears diredfl faces came in from a PR, by a user who uses solaire-mode, which uses bg-alt for non-file-visiting buffers (like dired).
In any case, I don't think these faces need a :background attribute at all. Could you try removing them?

After a quick test, it seems safe to remove all the ":background bg" attributes, since they're actually redundant with the default face (defined on line 15 of the file doom-themes-common.el). However, I would keep the others that actually change the face for deletion-marked (reddish) or marked (yellowish) entries.
I change the PR branch accordingly.

Looks good to me. Thanks again!


getting publisher working with different types (json only)

Note a PR in core is also required for this to work.
Adds support in jenkins test publisher to support more formats than just cucumber

Note this requires an update in the core in order to build. Not sure how these types of changes can work now things have split.
Also, The UI build was failing locally with a missing dependency and I had to manually do an npm install in that project.

requires https://github.com/Hygieia/hygieia-core/pull/56

@rvema can you do a quick review here?

No jelly file changes required as it discovers the type from the given input

@stevegal can you update the version of hygieia-core? the build for Hygieia needs to be fixed


⚠ SkipTheCommericals has degraded performance

In ea87b40, SkipTheCommericals ($STC) experienced degraded performance:

HTTP code: 200
Response time: 4002 ms

Resolved: SkipTheCommericals performance has improved in 14ec505.


Too verbose output if writing in cache fails

Description
When a user updates a package and some program blocks the the access to a file an error message is thrown in the output:
Source 'https://mynugetserver/api/odata' exception: System.IO.IOException: The process cannot access the file 'C:\Users\user\AppData\Local\Nuget\Cache\Snappy.NET.<IP_ADDRESS>.s314620838_v5.1.json' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at Paket.NuGetCache.get@175-3.Invoke(ODataSearchResult _arg1)
   at Microsoft.FSharp.Control.AsyncBuilderImpl.args@825-1.Invoke(a a)
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Snappy.NET <IP_ADDRESS> on https://mynugetserver/api/odata.

Repro steps
Cannot come up with a genuine repro.
Expected behavior
only show the call stack when in verbose mode, but not in normal mode.
Actual behavior
Too verbose output.
Known workarounds
Not a blocking issue.

Can you please send a pull request?
Am 04.07.2017 09:49 schrieb "Christian Fiebrig"<EMAIL_ADDRESS>
Description
When a user updates a package and some program blocks the the access to a
file an error message is thrown in the output:
Source 'https://mynugetserver/api/odata' exception: System.IO.IOException: The process cannot access the file 'C:\Users\user\AppData\Local\Nuget\Cache\Snappy.NET.<IP_ADDRESS>.s314620838_v5.1.json' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at Paket.NuGetCache.get@175-3.Invoke(ODataSearchResult _arg1)
at Microsoft.FSharp.Control.AsyncBuilderImpl.args@825-1.Invoke(a a)
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Snappy.NET <IP_ADDRESS> on https://mynugetserver/api/odata.
Repro steps
Cannot come up with a genuine repro.
Expected behavior
only show the call stack when in verbose mode, but not in normal mode.
Actual behavior
Too verbose output.
Known workarounds
Not a blocking issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/issues/2480, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNPOp7AjZwfl555eQ_QDu-GCELNz4ks5sKe6WgaJpZM4ONAOW
.

Ok. I'll do.

Please only "blacklist" this one particular error instance and not everything as it was before. We can write a nice warning for this case and wait for others to be reported...
Thanks for taking care of this.


sql_pull_data plugin is throwing NameError: name 'sql_pull_data' is not defined for gemini-pro

Describe the bug
Though code interpreter is generating the code but we see NameError: name 'sql_pull_data' is not defined for gemini-pro llm.
Is this supported for gemini-pro model?.
Does Taskweaver support function calling
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling
Please help in resolving above issue.
To Reproduce
Steps to reproduce the behavior:

Enabled the sql_data_pull plugin and ask a question. Even its same in UI
See error stack below.
=========================================================

|_   | _ | | _ | |     / /  ____ __   _____  _____
| |/ / __| |/ /| | /| / / _ \/ __/ | / / _ / /
| | (| _ \   < | |/ |/ /  __/ // /| |/ /  __/ /
||_,|/|_|/|/_/_,/ |/_/_/
TaskWeaver ▶  I am TaskWeaver, an AI assistant. To get started, could you please enter your request?
Human   ▶  pull data from time_series table in database
╭───< Planner >
├─► [init_plan]
│   1. ask the user to provide the database name
│   2. ask the user to provide the query
│   3. instruct CodeInterpreter to pull data from the database
│   4. report the result to the user <interactively depends on 3>
├─► [plan]
│   1. ask the user to provide the database name
│   2. ask the user to provide the query
│   3. instruct CodeInterpreter to pull data from the database
│   4. report the result to the user
├─► [current_plan_step] 1. ask the user to provide the database name
├──● What is the name of the database?
╰──● sending message to User
TaskWeaver ▶  What is the name of the database?
Human   ▶  C:\Taskweaver\TaskWeaver\project\sample_data\anomaly_detection.db
╭───< Planner >
├─► [init_plan]
│   1. ask the user to provide the database name
│   2. ask the user to provide the query
│   3. instruct CodeInterpreter to pull data from the database
│   4. report the result to the user <interactively depends on 3>
├─► [plan]
│   1. ask the user to provide the database name
│   2. ask the user to provide the query
│   3. instruct CodeInterpreter to pull data from the database
│   4. report the result to the user
├─► [current_plan_step] 2. ask the user to provide the query
├──● What is the query to pull data from the database?
╰──● sending message to User
TaskWeaver ▶  What is the query to pull data from the database?
Human   ▶  select * from time_series
╭───< Planner >
├─► [init_plan]
│   1. ask the user to provide the database name
│   2. ask the user to provide the query
│   3. instruct CodeInterpreter to pull data from the database
│   4. report the result to the user <interactively depends on 3>
├─► [plan]
│   1. instruct CodeInterpreter to pull data from the database
│   2. report the result to the user
├─► [current_plan_step] 1. instruct CodeInterpreter to pull data from the database
├──● Please pull data from the database using the query: select * from time_series
╰──● sending message to CodeInterpreter
╭───< CodeInterpreter >
├─► [thought] ProgramApe will generate a code snippet to pull data from the database using the query: select * from time_series.
├─► [python]
│   import pandas as pd
│
│   query = "select * from time_series"
│
│   df, description = sql_pull_data(query)
│   result = df
├─► [verification] NONE
├─► [code_error] No code verification is performed.
Plugin sql_pull_data failed to load: Plugin sql_pull_data failed to register: failed to load plugin sql_pull_data cannot import name 'Gemini' from 'langchain.chat_models' (C:\gitlabcode\vertexAI\Taskweaver\TaskWeaver.venv\Lib\site-packages\langchain\chat_models_init_.py)
├─► [execution_status] FAILURE
├─► [execution_result]
│   The execution of the generated python code above has failed
│
│   During execution, the following messages were logged:
│   Traceback (most recent call last):
│
│     Cell In[1], line 5
│       df, description = sql_pull_data(query)
│
│   NameError: name 'sql_pull_data' is not defined
│
│
├─► [artifact_paths] []
├──● The following python code has been executed:
│   python  │   import pandas as pd  │  │   query = "select * from time_series"  │  │   df, description = sql_pull_data(query)  │   result = df  │
│
│
│   The execution of the generated python code above has failed
│
│   During execution, the following messages were logged:
│   Traceback (most recent call last):
│
│     Cell In[1], line 5
│       df, description = sql_pull_data(query)
│
│   NameError: name 'sql_pull_data' is not defined
│
│
├─► [revise_message]
Expected behavior
A clear and concise description of what you expected to happen. NA if feel not applicable.
Screenshots

Environment Information (please complete the following information):

OS: Windows
Python Version 3.10
LLM that you're using: gemini-pro

Additional context
Will the custom plugins be supported for gemini-pro model.

The error message
Plugin sql_pull_data failed to load: Plugin sql_pull_data failed to register: failed to load plugin sql_pull_data cannot import name 'Gemini' from 'langchain.chat_models' (C:\gitlabcode\vertexAI\Taskweaver\TaskWeaver.venv\Lib\site-packages\langchain\chat_models_init_.py)

is saying that the plugin failed to load successfully. That is why later it is said the name sql_pull_data is not recognized.
I guess you want to use gemini-pro for the sql_pull_data plugin, and I can see you have implemented the logic inside the plugin implementation. But the error suggests that you didn't import the correct libraries.

Thanks  @liqul for quick reply
Didn't notice it. Got it working now with.


Focus mode on Android Tab

Focus mode does NOT seem to allow 'pasting' of (copied) prog text into the 'Focus mode' half of the screen on an Android (v6) Tab

Correction!  It DOES work if one uses "Ctrl-V' to Paste, rather than trying to 'long press' to get a 'Paste' box appear, as is usual in Android usage.


Autoselect language based on default browser language

How can you reproduce the problem?

Set your Chrome browser default language to Turkish (can also try with any of our available languages: Arabic, Farsi and Vietnamese)
Restart uProxy

What is the expected output?
uProxy should appear in Turkish
And what do you see instead?
Even though our browser is Turkish, and uProxy has Turkish translations, uProxy will still appear in English.

I'm going to work on this problem.


Expanded the Page Params section in variables.md

Expanded on the use of ##Page Params in the templates/variables.md
documentation. Added sample code for something that keeps coming up on
discuss.github.io

 You should sign our Contributor License Agreement in order to get your pull request merged.Renato Vargas 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 ([for further information, click here] (https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user)).

Hello @renatovargas,
great to see that everything worked as expected. Your provided example is a good extension for the docs to clarify the usage of frontmatter variables in combination with templates.
Could you accept the CLA as final step?
In your commit message I think you mean discuss.gohugo.io instead of discuss.github.io, right?

Hello @digitalcraftsman,
I do mean discuss.gohugo.io. My bad.
I already accepted the CLA, but I don't know why it doesn't update here.
Thanks again.

Didn't meant to close the pull request.

No problem. Maybe I found the problem with the CLA. Github identifies users with the help of their email addresses. The comment of the CLA linked this Github help page to explain the issue.
As discribed there, you'll find a question mark next to your username at the commit page. When hovering over it the notification suggests to add your email address in the email settings.
In conclusion: your commit contains an email address that is not associated with your Github account. Therefore, this commit isn't treated as "yours".

You were right, in order to prevent spam issues I added a fake email address which would show publicly with my commits but hadn't added it to GitHub..

Merged as 817d69487cbe58d38b8b13312c203fba42817bcf (master) and df2ac4d39918cb481d0a3c14adcc994961dfda3b (v0.15.docs). Your additions should go live in a few minutes.
Hopefully, the next time you contribute we will have less trouble :smile:

Cool!


Error updating player count status when server is down

COMMAND ERROR: Author: Colin#9391 Channel: general Command: -status Command raised an exception: ConnectionRefusedError: [Errno 111] Connection refused
From memory, I assumed we would receive a connection timeout error in this case. Will need to swap or add connection refused instead.

I was unable to reproduce using port 8004. The function as expected. This port is blocked by the firewall. Maybe this is a factor.
I tried port 8006 and received no response from the bot after waiting for ~15s, twice. This port is open on the firewall but is in use by the dev server, which is running at this time.
I tried port 8009, knowing this port is also blocked by the firewall and received the same result as port 8004. Finally, some repeatable behaviour/variables.
I tried port 8007, knowing this port is open on the firewall and is not in use by a game server. I finally reproduced the error reported by this issue.

Summary:

Ports blocked by the firewall return a timeout error, which was the expected behaviour for a game server that has crashed on an open port.
Ports open on the firewall with no game server running on this port return the error reported by this issue.
In the case of the dev server not responding at all, I will assume this is instead the result of a difference in configuration and ignore this.

To resolve this issue:
Instead of handling a timeout error as we currently are, expect and handle a ConnectionRefusedError when a server is offline for whatever reason.
And as a bonus:
Respond to a timeout error with a message to check whether the specific port is open.


Get Message Queue working

Set up message queue
Connect Message Queue with backend through a package
Check if it works: connect it with other service and see if message goes through

Done in dbd539371ed7dd6e7b5dd97a9860fe9836244ebb


DAV\Client: Request body missing on PROPFIND after HEAD request

When using the Sabre\DAV\Client to do a HEAD request, followed by a PROPFIND request, the latter fails because of a missing response body.
Reason for this problem is that the curl settings (including the CURLOPT_NOBODY option) are not cleared/reset between requests.
Test case:
<?php
require 'vendor/autoload.php';
use Sabre\DAV;

$client = new Sabre\DAV\Client(
    array(
        'userName' => 'admin',
        'password' => 'admin',
        'baseUri'  => 'http://wolke.bogo/remote.php/webdav/'
    )
);
//check if file exists
$client->request('HEAD', 'Notes');
//then fetch properties
$res = $client->propFind('Notes', array('{DAV:}resourcetype'), 1);
var_dump($res);
?>

Result:
PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message
 'The body passed to parseMultiStatus could not be parsed. Is it really xml?'

This happens with sabre/dav 2.1.3.

I also experienced this. I could fix it by recreating the cURL instance, but that is probably not the preferred way to do this.

@andreaswolf: You once fixed it by always setting the CURLOPT_NOBODY option; see https://github.com/andreaswolf/SabreDAV/commit/aefe0c932ded46c0b612e330c875df08377e6491

@cweiske Uh, I did not remember that :D Would have saved me quite a bit of time recently…

uhoh :S so it looks like that fix never got ported to sabre/http when that split happened. Sorry about that

Closed in favor of https://github.com/fruux/sabre-http/issues/47

Hey guys, this is now fixed in sabre/http (tagged as 3.0.5) so you should be able to update this. If you could let me know it's not working for you, I will also prepare a full sabre/dav release.

The new sabre-http version makes it work for me.


NO-ISSUE: Revert remove deploy workers

Description
In pull request #162 we removed the step to deploy worker nodes from the pipeline because with OpenShift 4.12 it is no longer necessary: the worker nodes can be created from the beginning. But the fixes needed to support that were done only to the CLI, which was since then removed from the pipeline. This patch reverts those changes to the pipeline.
Related: https://github.com/rh-ecosystem-edge/ztp-pipeline-relocatable/pull/162
Type of change
Please select the appropriate options:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] This change is a documentation update

Checklist

[x] I have performed a self-review of my own code
[ ] If a change is adding a feature, it should require a change to the README.md and the review should catch this.
[ ] If the change is a fix, it should have an issue. The review should make sure the comments state the issue (not just the number) and it should use the keywords that will close the issue on merge.
[ ] A change should not be merged unless it passes CI or there is a comment/update saying what testing was passed.
[ ] PRs should not be merged unless positively reviewed.

/lgtm


Any idea how to solve "ValueError: too many values to unpack (expected 4)"

I use it under Archlinux. After (let's say) 3 minutes it ended with the ValueError.
Traceback (most recent call last):
  File "/PATH/speechcatcher/sc/bin/speechcatcher", line 33, in <module>
    sys.exit(load_entry_point('speechcatcher==0.3.2', 'console_scripts', 'speechcatcher')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/PATH/speechcatcher/sc/lib/python3.11/site-packages/speechcatcher-0.3.2-py3.11.egg/speechcatcher/speechcatcher.py", line 652, in main
  File "/PATH/speechcatcher/sc/lib/python3.11/site-packages/speechcatcher-0.3.2-py3.11.egg/speechcatcher/speechcatcher.py", line 572, in recognize_microphone
  File "/PATH/speechcatcher/sc/lib/python3.11/site-packages/speechcatcher-0.3.2-py3.11.egg/speechcatcher/speechcatcher.py", line 572, in <listcomp>
ValueError: too many values to unpack (expected 4)

For me, replacing line 572 in file speechcatcher.py
nbests = [text for text, token, token_int, hyp in results
by
nbests = results[0]
solved the issue.


PLS, can you look what I made wrong with mod?

Before 3-5 updates I can see  what station is in demand, o how many stations I have with resources, now not
https://imgur.com/a/VmnFlsV
https://imgur.com/a/SrRoujA
Thank you

I'm not sure what the issue is. If you're talking about the material location lists that were on the inventory tab, they were removed because now you can search for materials on the stations tab to see which stations have them.

they were removed *, I understood. Thank you


⚠ Bofrost.be has degraded performance

In b90bccb, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1668 ms

Resolved: Bofrost.be performance has improved in ccebce9.


Canary FIM events

It's sometimes hard to detect whether FIM isn't working on a host, or if a host is just really quiet. We want to add a scheduled job once per day to create and delete a temporary file to trigger a FIM event, so all hosts will have daily FIM data.

https://jira.corp.adobe.com/browse/CSTTEAM-41394


Adding end to end endpoint with various changes

Description
I've done a pass over the feature branch and made several updates, so it is more testable and cleaned up some smaller style issues that were nagging at me.
Testing
Testing of the new API was done via ./gradlew test --tests org.opensearch.security.dlic.rest.api.AccountApiTest.testGetAccount --info however, this was done to very quickly access the endpoint and should be properly moved/rearranged
Check List

[ ] New functionality includes testing
[ ] New functionality has been documented
[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

I will merge this one into my fork and fix this:
/home/runner/work/security/security/src/integrationTest/java/org/opensearch/security/http/OnBehalfOfJwtAuthorizationHeaderFactory.java:49: error: incompatible types: LongSupplier cannot be converted to Optional<LongSupplier>
		JwtVendor jwtVendor = new JwtVendor(settings, currentTime);

If we expand on this PR to also implement token revocation and richer management of these tokens then it may make sense to create a separate security index for token management. You can look at this PR which creates an index to store security information that is not supposed to be stored in the security configuration index.

If we expand on this PR to also implement token revocation and richer management of these tokens then it may make sense to create a separate security index for token management. You can look at this https://github.com/opensearch-project/security/pull/2773 which creates an index to store security information that is not supposed to be stored in the security configuration index.

Hi @cwperks, thanks for the info. I would like ask some questions about the index (maybe called tokenManagementIndex?). I will leave some comments on the PR you linked.


Feature/71 team endpoint

Description of changes
Creates a TeamMember db model and API.  Specifically:

a rake task to initially seed the db from the current team member data
an :index API endpoint for GETting all current TeamMembers
:create, :update, and destroy API endpoints, to set the stage for the frontend to be able to create, update, and destroy team members through the UI

Issue Resolved
Fixes #71

Ready for merge, but we need prod access to run relevant rake commands which will actually make the changes live.


fix: css-modules should not add to normal css file

Codecov Report

Merging #956 (b0d73c7) into release-next (2b32fe2) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           release-next     #956   +/-   ##
=============================================
  Coverage         42.04%   42.04%
=============================================
  Files                46       46
  Lines              1175     1175
  Branches            284      284
=============================================
  Hits                494      494
  Misses              681      681


Instances::IPAddress - internal or external IP?

I'm not entirely clear whether Instances::IPAddress should return the internal IP or the external IP for an instance (https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/cloudprovider/cloud.go#L61).
On GCE, it is res.NetworkInterfaces[0].AccessConfigs[0].NatIP, which is the external IP (right?) https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/cloudprovider/gce/gce.go#L290
On AWS, it is currently resp.Reservations[0].Instances[0].PrivateIpAddress, which is the internal IP https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/cloudprovider/aws/aws.go#L145
There's also a meta-question on whether we need a richer model here (whether we should expose multiple IP addresses; at least on EC2 it is cheaper/faster/better to use the internal IP for internal communication, I think the same applies on GCE?)

That part of the interface was added by @brendandburns so he might be able to provide more insight than the comment that is on the function.

I think Instances::IPAddress should always return the primary private IP, and we should have another method for ::ExternalIPAddress that may or may not be present.

The API now exposes a rich IP address model; closing


try one

Codecov Report

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

@@           Coverage Diff           @@
##           master     #181   +/-   ##
=======================================
  Coverage   90.13%   90.13%
=======================================
  Files          34       34
  Lines         740      740
=======================================
  Hits          667      667
  Misses         73       73

Continue to review full report at Codecov.

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

@theintz @Harsimran1 @pussinboots PTAL
we will have to update the environment, but the dev credentials from 1PW failed

The production endpoint is available so you can change that

ENV=dev # change to PRODUCTION as soon as endpoint is available
to
ENV=prod # change to PRODUCTION as soon as endpoint is available.

@pussinboots You're totally right. Can you please make this change, as I don't have access to the azure credentials for prod?


fix amend issues

Changes

fix amend test
refactor amend tool

Finally:
test tests::amend_data_test::test_amend_tool ... ok

Check clippy!

take amend logic out from executive.

This is another task! Would you please let it as an independent  PR?

take amend logic out from executive.

This is another task! Would you please let it as an independent PR?

OK


Please add global hotkey for show/hide plan layer ! TY!

%SUBJ%

Okay! I'll probably add as a configurable option and disabled by default since I don't know witch hotkey is in use.

TY!
And if possible add mirror option while pasting copied fragment :)


UX improvement: Start calculating proof while still on confirmation view

Proof calculation can take several seconds, and the following "flow optimization" will make user feel that it's much faster.
The app already contains a send confirmation view, which is shown after user taps the send button. Most of the users will spend some time on the confirmation view, to validate that the address and amount are correct. That's when proof calculation should start in the background. By the time the user taps confirm, the proof will already be partially [or perhaps even fully] calculated. As a result, the time between user's confirmation action and transaction being broadcasted will be much shorter, or even instant.

Unfortunately, calculating a proof cannot be canceled. So if we start it and the user changes the value, we have to wait until the first proof completes, throw it away and calculate the new one.


Cbor

Not all of the cbor includes had the tinycbor/ in them, causing errors. Had to back out the ads tutorial to get this to be a clean pr.

+1
I had to apply those same changes to build slinky.
Btw @davidgs, it would be look much better if you rebased your branches instead of merging because it would show only your commits instead of all commits applied to develop.

Applied the patch. Fabio has a good point regarding history, though.
'git rebase -i HEAD~2'; for example. This would allow you to e.g. combine 2 previous commits you've made. I use that occasionally when I forget to include a file a commit.


Add name to LRLang definition

Why

This is an optional argument, but it could be useful to people to have. It seems to be present in most other languages
What changed

Added a language
Test plan

Ran yarn run dev and everything loaded normally:

Current dependencies on/for this PR:

main

PR #5   👈

This comment was auto-generated by Graphite.


Dynamic Repo configuration

i have a use case where i'm unable to configure my database ahead of time via creating a Repo module. i know it's possible to compile at runtime but i'm uneasy about the possible security and performance implications of doing so. what i'd like is an alternative to Repo that accepts configuration at runtime
repo = [
  adapter: Ecto.Adapters.Postgres,
  database: "ecto",
  ...
]
DynamicRepo.all(repo, query, opts)

DynamicRepo would be identical to modules generated via using Ecto.Repo apart from the arity change of functions to accept repo options
this is doable now as a library but i'm unsure how much of a Repo's api is considered public and how much is considered private. if private, it may be beneficial to make the functionality part of ecto itself so the api's can be updated in tandem
i'm also open to alternatives if there is a better path forward

@talentdeficit have you tried the init callback we have recently added in Ecto 2.1? I believe from that callback you should be able to retrieve the configuration dynamically. So you configure the bare minimum in the config/config.exs file and the remaining options are configured on start.
There are probably some configurations that we are still using statically, such as the pool configuration in #1953 and there are probably things that are based on the name, such as ets tables that would avoid multiple starts, but with your help we can identify those and improve the code today.
What do you think?

I was thinking about this as well. What if we had the Ecto.Repo (or some other module) export functions exactly as those generated in user repos, but accepting an additional argument - a config struct. For the regular repos, we could generate this config struct based on the env and delegate the implementation, similar to what we're already doing today with multiple modules in the Ecto.Repo.* namespace. If somebody needs dynamic access to the repo, they could build this struct manually and call the extended functions directly.
This would make the ecto interface function-first with the macro generation of use Ecto.Repo a mere convenience for removing the boilerplate of passing the config struct everywhere manually.

@michalmuskala it is not that straight-forward because you still need to start a supervision tree, the pool and the processes that connect to the database. You cannot simply pass a config to Ecto.Repo.insert and have it connect to the database, that would be inefficient and its processes wouldn't be properly supervised.

@michalmuskala although your description would be correct if, instead of passing of a config, we pass a pid of a previously started repo.

Yes, you'd also have a start_link or a child_spec where you'd pass the same config to start the "dynamic" repo - you could do this multiple times (with different configs) to start multiple "dynamic" repos.

@michalmuskala I don't think it is possible to skip all of the steps you want to skip. For example, what about Repo.query! that are specific only to SQL backends? We need to know when to generate it. And again, you cannot pass a struct to insert, the pid is the only option that works. Once you consider a separate repo definition because of adapter concerns and factor in the need to supervise, you end-up with something similar to the current proposal.

@josevalim i believe with the init callback i still need to know which Repo's i'll need up front. i can change the config for a repo, but i can't create a new repo unless i'm missing something

@talentdeficit you can have a single Repo that works for everything that talks to Postgres. And start multiple instances of it connected to different backends.

@josevalim i'm confused. how does the repo know what database to send the request to?

Using init/2. :)

Or you can even pass the parameters on start_link: Repo.start_link(hostname: ..., database: ...)`.

i'm clearly missing something here
foo = Repo.start_link(foo_opts)
bar = Repo.start_link(bar_opts)

query = ...

Repo.all(query, opts)

how does Repo know how to dispatch?

@talentdeficit that's the other part that needs to be solved 😅  In the past we have supported an option to store it in the process dictionary.

oh i'm sorry, i thought you meant this was possible now.
how about adapting @michalmuskala's suggestion and adding concrete functions to Repo that can be called with reference (pid or registered name) to the repo instance?

@talentdeficit we could do so... BUT then all the functions that are adapter specific, such as Repo.query!, to_sql, etc won't work.

they could just throw a undef error if the adapter doesn't support the function? you don't get compile time warnings but you get the same functionality/behavior as you would with a static repo. i think that is an ok tradeoff?

@talentdeficit that's what would ultimately happen, yes. It is worth that the functions generated by Ecto.Repo work almost all on the way you are proposing, it is a matter of exposing them at the Ecto.Repo level. A proof of concept could start exactly by invoking those private functions for now until we have all details in place.

The only non-dynamic part is the ecto query cache API which should also be fixable with the current registry. Then it is a matter of exposing the proper API (and agree where it should be exposed).

@josevalim I'm interested in working on this part. If is there anything already done, I can take a look.

Currently, I'm trying to implement a DB password rotation to integrate Ecto with Hashicorp Vault database secret backend.
I have an implementation idea for current Ecto version, but It will be a very dirty hack:

By my findings, the configuration is stored only in DBConnection.Ownership.PoolSupervisor child's and supervisor itself has a public API to spawn second pool with a new configuration.
Ecto/Postgrex has a PID to the pool, which can be changed with low-level Erlang call :sys.replace_state.
In case Repo is getting restarted, an init/2 callback can be also aware of token rotation.

Other ideas:

Create a wrapper that will use multiple repos and rotate them (by @michalmuskala).
Restart repo and rely on init/2 callback (by @benwilson512).
Not related to Ecto. Write a supervisor that will rotate Kubernetes pods when a token is expiring, and application can re-init with a new state. Kubernetes services will allow to gracefully move traffic from one pod to another.

First will work, but It will require changes in existing codebase (which becomes large).
The second option won't work for our use-case. Passwords are going to have a short lifespan so stopping the application or its parts may be an issue.
For the same reason, the third one is also not a good idea (restarting application every few minutes).
But we can rotate it before previous one expires - so it's okay to have configuration in inconsistent state for a short period of time (eg. spawn two pools and shut down old one after new one is ready to process requests).
Any ideas on this?

It will require changes in existing codebase (which becomes large).

I feel like the changes can be mitigated if you just refactor the existing Repo module to be the wrapper itself. Then calls like query |> Repo.all don't need to change.

I wrestled with some of these challenges and put a lot of thought into the repository pattern I use in my k/v adapter lib mnemonix. None of it probably translates easily to Ecto, and there are some things about the implementation I'm not in love with, but I feel as if the API is very nice so I thought I would offer a synopsis of it here in case it would spark discussion.
It gives you a core functional Repo.all(repo, query) pattern while making it trivial to build singleton repo modules like MyRepo.all(query), and supports application, supervisor, and runtime level entry points into supervision of either form, all while avoiding repeating def all(repo, query) even once.

Is this issue being worked on?  I saw that dynamic pool configuration was delivered in #1977.
I am working on an application which allows users to connect and query databases at runtime and I cannot use Ecto if it depends on config files.  I would love to start using this if possible.

@pulzzejason this is up for grabs, so please go ahead. What is left is to introduce a Ecto.DynamicRepo that accepts configuration (or a DynamicRepo instance) as first argument and then works like Ecto.Repo.
Folks that have requested this feature so far, do you want to connect to the database on every query or do you want to have still be able to start the dynamic repository and have queries run against it?

Folks that have requested this feature so far, do you want to connect to the database on every query or do you want to have still be able to start the dynamic repository and have queries run against it?

I don't think we should support connect to database on every query/transaction because it will be very slow and so few people would use it. Every transaction (a single query is an implicit transaction) would require a surprising number of round trips before the actual transaction begins. Also I'm not sure how easy it would be to get clean socket shutdown working in the client drivers. If we don't have a graceful close and rely on socket level closes we may get too much churn on the database and hit client limits because the backend won't react immediately. Some people saw the equivalent using pool_overflow with the poolboy pool.

I agree with @fishcakez here.
I'd mostly be using this dynamic repo functionality for a multi tenant scenario, so I'd like to keep the connections open.
In Go (which is currently being used), I keep a map that references the database connection pointers with keys being the tenants' IDs. If it's not found, it creates a new one, stores a pointer to it in the map and allows me to use it.
Because we don't have many tenants, I'm not cleaning it up any yet but it probably wouldn't be a bad idea to remove connections if they haven't been used in a while.

Has anyone done more work on this? I need the functionality for a multi-tenant app I'm currently building and I'm happy to take it on, but would prefer not to duplicate others' work. 🙂

I don't believe we have had any progress since then. :)

Ok, thanks. I'll send a PR once I get started.

I have a question for folks using dynamic repositories: how do you handle things like creating new database instances and migrating them?

That’s a good question. 🤔 I hadn’t even considered it because, in my case, another system will be creating and managing the customer databases; my system just needs to read from them.

How I implement this (maybe not the best way) is this:
I keep a "reference" database that has the same migrations and such applied as the rest of the tenant databases. This may also include some dummy records to make sure the new database is ready to go on creation.
Then, when I need to create a new one I connect with a user that has enough permissions to create databases and create a new database using the WITH TEMPLATE option.
Going forward when new migrations must be applied, I connect to my admin database (that houses a listing of tenants) to get a list of all tenants and generate the tenant database names (like tenant_1234, tenant_1235, etc.) and perform the tenant DB migrations on all of them.
Each tenant gets its name from a template, like tenant_{{.ID}}.
Keep in mind, this isn't in Elixir, it's in Go.
So, to summarize, my databases are like:

admin is the administrative database that contains a listing of tenants, users, and other global items we use internally for administrative purposes
tenant is the reference database and used as a template on creating new tenants
tenant_1234 is one tenant
tenant_1235 is another tenant

I found this is a fairly decent sweet spot where we can create a hard physical boundary between tenants' data (using tablespaces, we can put them on different physical media, utilize different encryption keys, etc.) without spinning up new servers for each one.

In our case, we're trying to write a generic Kafka Topic --> PG dumper, which simply creates a table with the same name as the kafka topic (optionally appending/prepending a namespace) and does bulk inserts into the table.
The idea is that another team is managing the database with their application (they currently all use Ecto, but it doesn't necessarily have to be), and our data processing systems can simply dump data into a few tables. The table definition could either be managed by the other teams, or dynamically generated as we're using Avro Schemas and enforcing backwards compatibility for schema evolution.

Thanks @mylanconnolly!
@CJPoll in your case, the databases are known upfront, and not dynamically, right?

@josevalim Thanks, but in my case, each client has a separate database. The clients are enterprise corporations, so they're not keen on having their data commingling with others' data 😉

This is pretty much done. In Ecto master we have decoupled the process name from the repository module. You can spawn multiple repositories with different names. The only thing missing is the API that allows the repository name to be given as argument - but that's the cherry of the top - the internals are clean.

I want to emphasize though that in master all repositories must still be named (with an atom). The different is that the process name does not have to be the same as the module name.

@josevalim the thing I am wondering about regarding dynamic repo's and naming them with atoms is, that you would have to dynamically generate atoms based on strings (inside a database) to support the setup @mylanconnolly described (which is a use case I would like to explore as well, connecting to a changing set of databases on demand) but please correct me if I am wrong.

We were able to remove the :name requirement. :)
I believe we have tackled everything required to make this work. The last step is to define an official API for pid-based repos but we would like to see more testing and get more feedback for doing so.
For those who want to give it a try, you can look at the callbacks defined by lib/ecto/repo.ex and define your own dynamic repo. The idea is that you get the same implementation as the one generated by lib/ecto/repo.ex, except you replace __MODULE__ by an explicit pid. For example, you can define in your own a DynamicRepo with insert, update, delete like below:
defmodule MyApp.DynamicRepo do
  def insert(pid, struct, opts \\ []) do
    Ecto.Repo.Schema.insert(pid, struct, opts)
  end

  def update(pid, struct, opts \\ []) do
    Ecto.Repo.Schema.update(pid, struct, opts)
  end

  def delete(pid, struct, opts \\ []) do
    Ecto.Repo.Schema.delete(pid, struct, opts)
  end
end

Now to use it, you should start a non-dynamic repo, but forcing a nil name (or picking up another name):
{:ok, pid} = MyApp.Repo.start_link(name: nil)
MyApp.DynamicRepo.insert(pid, %Post{})

And that should be it.
If you want to connect to different databases and this kind of stuff, just pass the options to start_link/1.

Is this scheduled to be included in a future release?

Yes this is scheduled to be part of the 3.0 release. You can track progress with the v3.0 milestone.


For renderer file make decomposition for components

In the near future code in renderer.js file will be very much. For resolving this problem need to understand how to decompose code in a few different and independent components

I found how i can to decompose code for electron app. But let's don't close this issue now.