Adding Unit/Integration Test Throws System.InvalidOperation Exception

I am trying to add a test project to a OpenFaas function which is based on this template. I have tried to follow the basic steps to add a test project for ASP.NET Core 6 web application. But I ended up getting System.InvalidOperation exception.
Steps to reproduce the issue:
1. Create function together with the test project
mkdir testing_aspnet
cd testing_aspnet
faas-cli template pull https://github.com/goncalo-oliveira/faas-aspnet-template
faas-cli new --lang aspnet aspnet1
dotnet new xunit -o test1

2. Function project
Add the following line of code at the end of Program.cs hence we can instantiate it the class from the test project.
public partial class Program { }

3. Test project
Add a reference to aspnet1 project and the Microsoft.AspNetCore.Mvc.Testing package to the test project. Change the UnitTest1.cs class as show below:
using Microsoft.AspNetCore.Mvc.Testing;
using Xunit;

namespace test1;

public class UnitTest1
{
    [Fact]
    public void Test1()
    {
        using var app = new WebApplicationFactory<Program>();
        using var client = app.CreateClient();
    }
}

Running dotnet test command from the test project's directory results the following exception:

[xUnit.net 00:00:01.00]     test1.UnitTest1.Test1 [FAIL]
Failed test1.UnitTest1.Test1 [112 ms]
Error Message:
System.InvalidOperationException : The entry point exited without ever building an IHost.
Stack Trace:
at Microsoft.Extensions.Hosting.HostFactoryResolver.HostingListener.CreateHost()
at Microsoft.Extensions.Hosting.HostFactoryResolver.<>c__DisplayClass10_0.b__0(String[] args)
at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.Build()
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory1.CreateHost(IHostBuilder builder)    at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory1.ConfigureHostBuilder(IHostBuilder hostBuilder)
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory1.EnsureServer()    at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory1.CreateDefaultClient(DelegatingHandler[] handlers)
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)    at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory1.CreateClient(WebApplicationFactoryClientOptions options)
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()

Any help is appreciated,
Thanks

Hi @YaredDejene,
I've managed to replicate the issue but I still haven't figured out why it happens. You actually don't need to add the partial class Program if you specify in code or in the project that internals are visible to the test project. For example, in the project file
  <ItemGroup>
    <InternalsVisibleTo Include ="test1"/>
  </ItemGroup>

I think it might be because the WebApplicationBuilder is instantiated with the Runner library, which I still don't know why. I'll try to have a better look when I have the opportunity. I've also opened up an issue on StackOverflow, in case someone has seen a similar issue before.
If you swap to a Startup/Controller project it will most likely resolve the issue, but then again, that would defeat the purpose of using a minimal API.

@YaredDejene
I've published a new version of the runner library to address this issue. When running through the test host, additional arguments were being passed and the parser was failing because it didn't recognize them. I addressed this to ignore any unknown arguments and I also fixed an issue with the urls when running through the test host.
Just update the runner package on your function and you should be fine. No need to update the template.
      <PackageReference Include="OpenFaaS.Runner" Version="2.0.2" />

Hi @goncalo-oliveira ,
Thanks for the quicks fix. Version 2.0.2 of the runner library works fine now.

I need to point out that the latest version of the runner (2.0.2) raised a new issue. This is an ASPNET bug and the workaround for it has been applied to the template. If you are seeing the upstream error, you just need to update the template and rebuild the image. The runner library remains unchanged (2.0.2).
faas-cli template pull https://github.com/goncalo-oliveira/faas-aspnet-template --overwrite

Hope this helps!


[rpclib] Disable parallel configure

Fix bug:
CMake Error at CMakeLists.txt:74 (configure_file):
  configure_file Problem configuring file

Related: #12612.

Thanks for your contribution :)


⚠ Bofrost.de has degraded performance

In d63314d, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1577 ms

Resolved: Bofrost.de performance has improved in 703c021.


wsl --manage Alpine --set-sparse true # No result for auto disk space clean up (Set sparse VHD)

Windows Version
Microsoft Windows [Version 10.0.22621.2428]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
Linux version <IP_ADDRESS>-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023
Distro Version
Alpine distribution, MINI ROOT FILESYSTEM, x86_64, "alpine-minirootfs-3.18.4-x86_64.tar.gz"
Other Software
No response
Repro Steps
WSL - Automatic disk space clean up (Set sparse VHD)
I followed the topic:
Import any Linux distribution to use with WSL
https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro

Obtain from "https://alpinelinux.org/downloads/" a tar file for the Alpine distribution, MINI ROOT FILESYSTEM, x86_64, "alpine-minirootfs-3.18.4-x86_64.tar.gz".

Import the tar file into WSL

wsl --import Alpine D:\wslDistroStorage\Alpine .\alpine-minirootfs-3.18.4-x86_64.tar.gz

Then, based on page "Windows Subsystem for Linux September 2023 update"
https://devblogs.microsoft.com/commandline/windows-subsystem-for-linux-september-2023-update/#automatic-disk-space-clean-up-set-sparse-vhd

Update WSL to pre-release:
wsl --update; wsl --update --pre-release

Close running WSL distros:

wsl --shutdown

Set sparse vhd:

wsl --manage Alpine --set-sparse true
Where Alpine is an example distribution.

Create .wslconfig file in %UserProfile% directory

C:\Users\UserName.wslconfig
and add its content:
[wsl2]
[experimental]
sparseVhd=true
Now, test:

Go into distro

wsl -d Alpine

Go into linux home directory

cd ~

Copy into it some large file from Windows system

cp /mnt/c/tmp/some-file-about-3GB-size .

The distro

"D:\wslDistroStorage-Alpine\ext4.vhdx"
increased the size from about 600 MB to 3.5GB.

Remove that file

rm some-file-about-3GB-size

Wait some time and see if the distro reduced its size

"D:\wslDistroStorage-Alpine\ext4.vhdx"
But that didn't happen.
Expected Behavior
Automatic disk space clean up
Actual Behavior
No disk space clean up
Diagnostic Logs
No response

Correction:
6. Create .wslconfig file in %UserProfile% directory
C:\Users\UserName.wslconfig

Seems like I can't place backslash here before .wslconfig

Correction to points 10 and 12, to be consistent with directory used in point 2:

"D:\wslDistroStorage\Alpine\ext4.vhdx"

"D:\wslDistroStorage\Alpine\ext4.vhdx"

Just a suggestion, you can edit your original post with the corrections. Also you can put your strings between backticks so that it will show up.

has there been any updates? when running my wsl2 i still get unused storage not cleaned out

Any updates please?

bump

Bump

+1

+1

any fix yet? same issue

+1

I have the same issue wait for help.

+1, and set sparse true leads the opend window blurred,

I used wsl updates from --pre-release channel with sparseVhd turned on. I also called sudo fstrim -av there. And I've got filesystem corruptions in both, the WSL2 vhd ext4 filesystem and host NTFS filesystem. I'll stick to old combination of fstrim inside + compact vdisk on the host.


Refactor persist init, client generation, db script generation code

This PR refactors persist init, client generation, db script generation code and incorporate part of V2 changes.
Fixes: https://github.com/ballerina-platform/ballerina-standard-library/issues/3783
Examples
Checklist

[x] Linked to an issue
[ ] Updated the specification
[ ] Updated the changelog
[ ] Added tests

 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.Danesh Kuruppu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


[DO NOT MERGE] Auto PR to update dependencies of pilot

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
3f2bc81e733f93eb11c7603081b7220223a596b6
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


How To Make Custom Main Menu Like In Mod Bob And Bosip In LUA?

Describe your problem here.
I Don't Know How To Make Main Menu On LUA Like In Bob And Bosip
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No

you can only use lua to mess around with stuff in-game
not menus

@CrusherMods what is that? stuff in-game?

Lua scripts only run during songs

@CrusherMods what is that? stuff in-game?

like if your in a song

end process

Doubtful guess, but imagine something like this could work.
function onCreate()
setPropertyFromClass('MainMenuState', 'menuItem.x', 69)
debugPrint('funni-lol')
end

1st of all: bob and bosip bad 2nd of all: lua scripts don't work on menus 3rd of all: shadow mario doesn't play many mods so you shouldn't ask stuff like this 4th of all: bob and bosip bad

1*4=4

Lua not LUA

You can only do it in source 👍

@ShadowMario okay


[deps] update upb to latest commit

Signed-off-by: Asra Ali<EMAIL_ADDRESS>Commit Message: Update upb to latest
Risk Level: Low

/lgtm deps
Thanks for moving the release_date under sha256.

/lgtm deps
Thanks for moving the release_date under sha256.


Saving Is erroneous

Type: Bug
I am doing pester testing and when I make changes to my .ps1 file and save it, my pester test isn't regestering said changes. Instead, I have to close out VS code and reopen for the changes to .ps1 to take effect, and for my pester test to see them, which it wasn't doing before I updated Visual Studio Code.
 Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Tracking data going to different domain

I have two domains in my Umami dashboard but when I visit domain#2 the visits are being tracked under domain#1.
Dashboard:

domain #1 script config
domain #2 script config
Realtime logs (All Websites):

I've updated to v1.29.0 and redeployed but noticed it happening on earlier versions too.
Also tried deleting and re-adding domain#2 with a new website-tracking-id.
Am I being silly and missing something simple here?

So you mean when you visit  dc3.vercel.app, that visit actually gets recorded under rutherdord.dev? The page visit should always go to the data-website-id. Are you sure you're not triggering the wrong tag in your local setup?

Hi Mike, that is correct but I did figure out the issue.
My deployment on Vercel was pointing to an outdated branch name due to own mistake.
Everything looks to be good now!


MissingMethodException in ACMESharp

Hi
Whatever I execute I always get the same MissingMethodException:
Which host do you want to get a certificate for: 1
System.MissingMethodException: Method not found: 'ACMESharp.AuthorizeChallenge ACMESharp.AcmeClient.DecodeChallenge(ACMESharp.AuthorizationState, System.String)'.
   at LetsEncrypt.ACME.Simple.Program.Authorize(Target target)
   at LetsEncrypt.ACME.Simple.Program.Auto(Target binding)
   at LetsEncrypt.ACME.Simple.Plugin.Auto(Target target)
   at LetsEncrypt.ACME.Simple.Program.Main(String[] args)
Press enter to continue.

This happens no matter what Parameters I supply in interactive and non-interactive modes.
I tried getting the latest ACMESharp files and copying the into the directory of letsencrypt-win-simple, that didn't work either.
I'm running Windows Server 2012 R2 and this is the first time i need to update my certs, the initial installation went without any problems.
Am I doing something wrong?

I got it to work when compiling it myself with a newer version of ACMESharp, Version <IP_ADDRESS>.
When trying to manually replacing the DLLs i got the latest version 0.9. something, which didn't work.


About the submission.

Excuse me. We want to know what we need to run in submission.sh，do we need to run a python file, or just complenment the model and act method.

submission.sh will be what is launched from within the docker container.  If you look at ./scripts/evaluate_train.sh you can see an example of how it will be called.  You can place your code within example_agent.py or use a different filename and place that into submission.sh.  If you have any non-python code that you want to run before your model is invoked you can place it in the lines preceeding the call to your agent.


Fix PHP8.2 str_split function returns empty arrays for empty strings

In PHP 8.2, the str_split function will returns empty arrays for empty strings.
See: https://php.watch/versions/8.2/str_split-empty-string-empty-array
We can use mb_str_split() instead

The linked article also mentions that mb_str_split has always behaved this way (returning an empty array), so if the behavior in strsplit were indeed broken in PHP 8.2, it would now be broken in all versions.


Refactor: rely on explorer lookup data

:tada: This PR is included in version 2.2.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix(caasmapper): map FILE entries

Media entries of type FILE are explicitly mapped
remark: The change from d85f2e71f6 is not sufficient, since in resolveReferences the item is looked up by "id", which doesn't exist on CaaS items.
return {...item, id: item.identifier}
instead of
return item
would presumably work as well and could maybe added additionally as a fallback?

Exactly what we need! Would be awesome if it could be merged :)

Is it possible to merge this pull request @tgolbs? (sorry for tagging you, but I saw you merged the last pull requests :) )


fix: getHash occasionally panic when rebuild

Summary

Test Plan

add packages/rspack/tests/watchCases/stats/get-hash-panic

Have you tested the performance regression since you changed lazy to eagerly evaluation?

I thought you don't have to use the compilation from the previous build as it's not necessary....


Can't rename a folder when its child file is used and without any prompt

Version: 1.36.1 (user setup)
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:59:35.033Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17134
Steps to Reproduce:

Run an exsiting app (I run it in the WSL)
Try to rename an existing folder in which some files has been used by other file. Just say testt/test.js, test.js has been imported in other file. Now try renaming testt to test.
Then folder name recovers to the original name when exiting the rename input box. And without any prompt.
Stop running the app or remove the child file importing in other file. And try again, rename successfully.
Keep running the app. Rename an invoving file and it's ok.

Files and folders don't have the same rename strategy. That's strange.
It had better prompt something when an involving folder fails to be renamed.

Does this issue occur when all extensions are disabled?: No

Is it solved?

As fro the no prompt -> there is already an issue for this (that the prompt should be shown)


Support for SASL in the Pipeline

Hi All,
@normanmaurer, @trustin I'd like to get your input on this if you have a minute.
I need SASL support in the pipelines, but since this is a general feature I thought everyone might benefit from it if we get it into the core.
So first question:

Should we get generic SASL support in netty? It is also used in protocols like smpt, pop3, ldap,.. so I guess people building servers/clients for it could benefit.

Either way, I thought about reusing the built-in SASL functionality through the JDK supported objects (javax.security.sasl).

What do you think would be the best namespace, subproject name and so on for it?

I think the rough behaviour would be that it gets added in the pipeline and removes itself once successfully authed. Do we already have "auth" infrastructure in place that I can reuse?
I think this would work out really well with the current model, because SASL potentially requires more auth steps and we could handle that with a state machine like in the decoders?
Thanks,
Michael

I'm really interested in this feature (for http://majordodo.org and http://blazingcache.org) projects)

@eolivelli if you want to see a client implementation, check out: https://github.com/couchbase/couchbase-jvm-core/blob/master/src/main/java/com/couchbase/client/core/endpoint/kv/KeyValueAuthHandler.java

Thank you. I saw in the code you pointed that it is very easy and I successfully integrated support to SASL in one on my netty based projects. I think that actually a basic support for SASL would be feasible in netty but it is not needed as this integration is quite trivial

Lets close this for now


Use useId() hook in Popover

components: Popover
reactstrap version 9.2.2
import method umd/csj/es
react version 18.2.0
bootstrap version 5.3.2

What is happening?

Cannot use standard react hook useId() as target identifier in <Popover />
What should be happening?
The result of useId() hook should be used as Popover target ID. The  'querySelectorAll' should be escaped with CSS.escape().
Error message in console
react-dom.development.js:22689 Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': ':r0:' is not a valid selector.
    at findDOMElements (http://localhost:3001/admin/static/js/bundle.js:261363:30)
    at getTarget (http://localhost:3001/admin/static/js/bundle.js:261386:13)
    at TooltipPopoverWrapper.updateTarget (http://localhost:3001/admin/static/js/bundle.js:260236:72)
    at TooltipPopoverWrapper.componentDidMount (http://localhost:3001/admin/static/js/bundle.js:260019:12)
    at commitLayoutEffectOnFiber (http://localhost:3001/admin/static/js/bundle.js:206289:34)
    at commitLayoutMountEffects_complete (http://localhost:3001/admin/static/js/bundle.js:207652:13)
    at commitLayoutEffects_begin (http://localhost:3001/admin/static/js/bundle.js:207638:11)
    at commitLayoutEffects (http://localhost:3001/admin/static/js/bundle.js:207576:7)
    at commitRootImpl (http://localhost:3001/admin/static/js/bundle.js:209783:9)
    at commitRoot (http://localhost:3001/admin/static/js/bundle.js:209651:9)

Code
import { useId, useState } from 'react';
import { Popover } from 'reactstrap';

const Example = () => {
    const [isOpen, setOpen] = useState(false);
    const toggle = () => {
        setOpen(open => !open);
    }

    const id = useId();

    return (
        <div>
            <button type="button" id={id} onClick={toggle}>
                Open
            </button>
            <Popover placement="bottom" trigger="legacy" target={id} isOpen={isOpen} toggle={toggle} >
                Hello
            </Popover>
        </div>
    );
};

Prefer to use a ref instead of ids to link your button and popover together instead.
Declare a ref with useRef in your component, and set ref on your button to that ref, in addition to pointing target on the popover to the same ref.


How to build and run react-d3-graph locally?

Hey @danielcaldas,
I've pulled react-d3-graph locally and I'm not seeing a way that I can build and run locally.  I'd like to try out the changes in feature/multiple-edges-between-same-nodes to see if they provide the support I need for multiple edges.  I tried running npm install; npm build but build command doesn't seem to exist.  I'd assume after I build this package that I would see /build dir appear and then i could install this directory within my app so I could use these features?
Any help is appreciated,
Michael

As written in the Contributing section of the README.md, you should run npm run dev, and be able to interact with the package in http://localhost:3002/.

Thx and if I wanted to reference this package within my app could I do this without the dist getting created?

btw looks good in the locally deployed container when can we expect this feature to be added?


Ukraine observed holidays performance optimization

Performance tests:
country = "UA"
START_YEAR = 1917
END_YEAR = 2099

def calc_hol1():
    for year in range(START_YEAR, END_YEAR + 1):
        hols = holidays.country_holidays(country, years=year)

def calc_hol2():
    hols = holidays.country_holidays(country, years=range(START_YEAR, END_YEAR + 1))

t1 = timeit.timeit(calc_hol1, number=100)
t2 = timeit.timeit(calc_hol2, number=100)

Test
Current beta
PR

t1
2.290
2.219

t2
19.376
1.925

Coverage: 100.0%. Remained the same when pulling 1e2414ba0538c32a4c6febb163ef7ba11b3c067f on KJhellico:upd-ukraine-observed into 719c2677d48e5369ab4c53571ff64a8ba079014d on dr-prodigy:beta.


[Snyk] Security upgrade react-scripts from 4.0.2 to 5.0.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

526/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 4.1
Arbitrary Code Injection SNYK-JS-EJS-1049328
Yes
Proof of Concept

726/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 8.1
Remote Code Execution (RCE) SNYK-JS-EJS-2803307
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: react-scripts
    The new version differs by 76 commits.

221e511 Publish
6a3315b Update CONTRIBUTING.md
5614c87 Add support for Tailwind (#11717)
657739f chore(test): make all tests install with `npm ci` (#11723)
20edab4 fix(webpackDevServer): disable overlay for warnings (#11413)
69321b0 Remove cached lockfile (#11706)
3afbbc0 Update all dependencies (#11624)
f5467d5 feat(eslint-config-react-app): support ESLint 8.x (#11375)
e8319da [WIP] Fix integration test teardown / cleanup and missing yarn installation (#11686)
c7627ce Update webpack and dev server (#11646)
f85b064 The default port used by `serve` has changed (#11619)
544befe Update package.json (#11597)
9d0369b Fix ESLint Babel preset resolution (#11547)
d7b23c8 test(create-react-app): assert for exit code (#10973)
1465357 Prepare 5.0.0 alpha release
3880ba6 Remove dependency pinning (#11474)
8b9fbee Update CODEOWNERS
cacf590 Bump template dependency version (#11415)
5cedfe4 Bump browserslist from 4.14.2 to 4.16.5 (#11476)
50ea5ad allow CORS on webpack-dev-server (#11325)
63bba07 Upgrade jest and related packages from 26.6.0 to 27.1.0 (#11338)
960b21e Bump immer from 8.0.4 to 9.0.6 (#11364)
134cd3c Resolve dependency issues in v5 alpha (#11294)
b45ae3c Update CONTRIBUTING.md

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Arbitrary Code Injection
🦉 Remote Code Execution (RCE)

👷 Deploy Preview for affectionate-babbage-7132a7 processing.

Name
Link

🔨 Latest commit
d167863c9a673d623809a32855cb58afcefbdade

🔍 Latest deploy log
https://app.netlify.com/sites/affectionate-babbage-7132a7/deploys/62b2c2f11ff2cf0009778273


[optimize]optimize code

formatted code to comply with the golang specification.
If you don't feel the need, close it.

Can you change the github file so that it refers to main and not master? So that ci runs? (I have nor fixed this myself yet after branch rename)

Can you change the github file so that it refers to main and not master? So that ci runs? (I have nor fixed this myself yet after branch rename)
ok.it works(but why rename to main?)

master/slave is by some deemed to be "wrong" because of the colonial period in history. So main is the new suggested mainline branch on github.

I do not have a computer with me right now so i cannot verify, will do so tonight and merge then. Thanks.

I prefer to squash merge so no need to squash commits

Did you use gofmt to format this automatically?

您是否使用 gofmt 自动格式化？

Did you use gofmt to format this automatically?

yep,it's easy to use

If you want to you can add gomft github action to the test file?

If you want to you can add gomft github action to the test file? Like here digitalocean/godo#393

maybe in next pr?This may modify many files.

LGTM! Thanks!


Confidence String or Float?

This has been bugging me, so I wanted to get everyone's input.

This is extremely nitpicky and does not need to be addressed with any urgency.

In aws_app/app/scraper.py, the function frankenber_rank() returns confidence in two formats. First formatted as a string f"{100 * conf:.2f}%" then again as a float in the raw _data tuple.
https://github.com/Lambda-School-Labs/human-rights-first-police-ds-a/blob/9116033eb228e3c25fca2024242023045b8b3e6a/aws_app/app/scraper.py#L15-L27
If we now look at scrape_twitter() conf_str and conf_float are defined on lines 65 and 66 respectively, even though only conf_float is used.
I like that conf_str is a nicely formatted string and think it should replace conf_float on line 75. But.....
https://github.com/Lambda-School-Labs/human-rights-first-police-ds-a/blob/9116033eb228e3c25fca2024242023045b8b3e6a/aws_app/app/scraper.py#L64-L79
The issue
In aws_app/app/db.py, the force_ranks table has been initialized with confidence as FLOAT and not TEXT.
https://github.com/Lambda-School-Labs/human-rights-first-police-ds-a/blob/9116033eb228e3c25fca2024242023045b8b3e6a/aws_app/app/db.py#L55-L72

Also, I am not sure where confidence is even used on the site. I couldn't see anything on the admin side; does anyone know where it is actually displayed?

I think when you speak of confidence you think of what percentage of confidence and it could be why it is being represented as a float and not string in the database. As to where this is being used - I see the confidence level show when you make a prediction using the FrankenBert model on the DS API. However that particular endpoint is being used just for demonstration and testing purposes.

I forgot about the model API, thanks for the reminder.
I agree and understand the utility of using it as a float, especially when checking if it falls within a specific range. Although, using it in string form where it is formatted nicely (adding a % sign and rounding) may be helpful if we plan on displaying it to the admin. Do we plan on showing the confidence level to the admin when they are verifying an incident report? I seem to remember that being discussed.

You are right. There was definitely a conversation regarding having that set up so as to aid the admin's work on accepting and rejecting the incident report.


Feature request: wallet signing - payload

Is your feature request related to a problem?
Add support for wallet based signature on payload.
Describe the solution to the problem
Suggested implementation:
    /**
     * @notice send a message to the inbox, confirming the signed payload.
     * @dev revert on signature validation failure
     * @param conversationId the conversation id
     * @param payload the message payload
     * @param sigV the signature V
     * @param sigR the signature R
     * @param sigS the signature S
     *
     */
    function sendMessageSigned(bytes32 conversationId, bytes memory payload, uint8 sigV, bytes32 sigR, bytes32 sigS) external;

Describe the uses cases for the feature
This will be used in the message transport subsidy workflow
Additional details
No response

closed by #15


Fix Keyed Redis

When adding 2 Redis server instances and try to use "keyed" services to talk to each, only the first connection is used for both. The 2nd connection doesn't get used.
This is because we are using a singleton OptionsFactory<ConfigurationOptions> that only knows about the first StackExchangeRedisSettings registered, and always uses its ConnectionString.
The fix is to teach the factory about all the Settings objects being registered, and have it find the correct one given the "options name" when it is being created.
Fix #3873
Microsoft Reviewers: Open in CodeFlow

/backport to release/8.0


[ALLUXIO-3392] embedded journal

https://alluxio.atlassian.net/browse/ALLUXIO-3392

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1298/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1311/
Test FAILed.

jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1312/
Test FAILed.

jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1313/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1322/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1325/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1332/
Test PASSed.

Merged build finished. Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1338/
Test PASSed.


Set --access=public for npm publish

This is clearly a small fix, so I'll merge it without review.


Names of mandatory attributes and elements displayed in bold in FrankDoc webapp

Describe the issue
It would be useful to have the names of attributes and elements that are mandatory displayed in bold.
Reporter
Gerrit

Maybe not bold, but I agree it would be a good idea to make it obvious to the end user which attributes are mandatory!


CurrentCulture changed to en-US

Hi,
I've already opened an issue here .
After establishing a Azure SignalR Connection within my Blazor App the culture is suddenly changed to en-US.
Could you please look into this?
Is there any way to set set the culture for Azure SignalR service?
Thanks
Sven

@sven5 It seems I'm not able to repro this. Following your steps in the original issue. I could make it in German language both w/o Step2.

Add Azure SignalR service (edit: this is optional)

Besides your steps, I've made German top language in my browser. Any further idea about how to repro your issue?

Sorry, it took some delay when connected to ASRS and could be reproduced. I'm looking into this.

@JialinXin  Ok thank you. Otherwise I would have created a small repro sample.

Hi @sven5, just an update that the fix should be in 1.4.0 targeting to release in recent week. Thanks for reporting the issue!

Hi @JialinXin
Thank you for your fix. Looking forward for the update and testing in our environment.

@JialinXin
I was able to update the package and test in our environment was successul.
Thank you! 😃

@sven5  i had  facing same issue which you were facing, when try to change culture to danish , first time it comes correct then automatically shifted to en-US . Brother its really appreciated if you can help me on this.

@sven5  i had  facing same issue which you were facing, when try to change culture to danish , first time it comes correct then automatically shifted to en-US . Brother its really appreciated if you can help me on this.

@SyedAunHaider Hi, as you may have already read here, this issue is already fixed in v1.4.0 of Azure SignalR nuget package.
If you are already using the correct nuget package version then you may face another issue.

@SyedAunHaider Hi, as you may have already read here, this issue is already fixed in v1.4.0 of Azure SignalR nuget package.
If you are already using the correct nuget package version then you may face another issue.

@sven5  Thanks brother I had 1.2.3 version that's why issue there. its now resolved . did you have any fix for attempting to reconnect  server issue of blazor server side.

@sven5  Thanks brother I had 1.2.3 version that's why issue there. its now resolved . did you have any fix for attempting to reconnect  server issue of blazor server side.


Slow the stats cron job down

Things are looking good for the most part on AMO until the stats cron job comes a running. When that happens we fill up celery and then iops goes south. The suggestion is to put a temporary fix in and slow down the tasks, it could be a matter or rate limiting the tasks or just putting a time.sleep() in the cron job.
Tracking #1244

Since we've decided to just archive stats, we are hoping this won't be an issue.


Allow no-inherit ACLs

Turns out we were missing a specific flag for these.

Previous (early) parts of this are now covered and merged in Fix/no inherit acls core #941


Set up temporary support ticketing in Airtable

Raymond has mocked up a form in Airtable: https://airtable.com/shrkEenQordvldUGB

Raymond has mocked up a form in Airtable: https://airtable.com/shrkEenQordvldUGB

Moving to CRM.


Docker instructions missing command to pull root cert

Need to add to sample Dockerfile.

fixed by: adf18e0afdce683b50af11d52b5506a394bd01bf


Remove a table reference in a plugins object upon dt destroy

This solves the case, when in SPA there might be tables with same selector on different SPA views and yadcf keeps the plugins object populated across these views, which can lead to DT mData errors.
#449

Hi
Why did you replaced
var table_selector_jq_friendly = generateTableSelectorJQFriendly2(oTable);

removeTablePlugin(oTable);

with this:
initColReorderFromEvent(table_selector_jq_friendly);
in the $(document).off('column-reorder.dt', oTable.selector).on('column-reorder.dt', oTable.selector...
?

Hey, I thought that we can save one line, since removeTablePlugin method does the same thing as initColReorderFromEvent method, but you can pass in the table object directly.
Anyway, the change you mentioned is not necessary for the fix, so I may as well revert it, if you want.


Can't connect after updating

i'm not sure how far behind I was on updates, but I did update my system, docker, portainer and pulled the latest docker image and between one of those, I'm unable to access filezilla anymore.  Portainer says the docker is running.  I looked through the readme and I didn't see anything in terms of config or settings that seem to be different from what I had previously, so I'm not sure where to start on diagnosing the issue.

What the browser is showing exactly ?
Probably that clearing the browser's cache would fix the problem.  You can also try in a private/incognito window to see if it's working.

@jlesage i tried in two browsers and both are unable to connect, but portainer shows the docker as running.  Chrome says "refused to connect." and firefox says "Firefox can’t establish a connection to the server at "

Is port 5800 mapped ?
Note that you can share the container config by providing the output of docker inspect <container name>.

   The mapping is missing from NetworkSettings...

I'm not sure.  I set up the ports in portainer like I normally do.  But half the time it doesn't show up in the 'published ports' column in portainer.
When I check the settings in portainer, it shows 5800 for TDP and UDP

i completely deleted the container and re-made it using the same settings and it seems to be working now and is using most of my old settings.
The auto scale doesn't seem to work though.  Can you help me in this thread or should i open a new issue?

also tried to add unrar via an environmental variable like you suggested in #19 but that causes the container to not work.  any suggestions?

@jlesage should i make a new thread for the autoscale and package issues above?

The unrar package is no longer provided in Alpine repo.  But you should be able to use bsdtar or p7zip to extract rar files.  See https://gitlab.alpinelinux.org/alpine/aports/-/issues/13525.

For the autoscale issue, what is the problem exactly?  Did you try in an ingognito/private window ?

@jlesage looks like autoscale is working now, so never mind.  I'll look into the other packages and report back when i've had a chance to try it out.

@jlesage it appears as if my script isn't being called or working when filezilla finishes a download, so i'm unable to test if pz7ip will work for my use case.
Here is my script.  I'll include my old script with unrar for comparison.
new script:

#!/bin/sh
#
cd /storage/Downloads/

touch /storage/hello.txt

rm -rf /storage/ToDelete/*

7z x -r -aou  *.rar; mv **/*.mkv /storage/extracted/;mv *.mkv /storage/extracted/;mv * /storage/ToDelete/;rm -rf *

old script:
#!/bin/sh
#
cd /storage/Downloads/
#
#touch hello.txt
#
rm -rf /storage/ToDelete/*

unrar x -r -o- *.rar; mv **/*.mkv /storage/extracted/;mv *.mkv /storage/extracted/;mv * /storage/ToDelete/;rm -rf *

Doesn't your new script have execute permission ?

Ah yeah that'll do it.  the first few lines are working, but not the 7z part.  i'll have to mess around with it to see if i can figure out how to use it.

I messed around with it for a little bit, but I can't figure out how to get 7z to recurse through the downloads and extract any .rar file it finds.  I was able to get it to extract a file if I gave it the complete path to the main rar archive, but that won't work for the script since i need it to be more generic.
i miss unrar...  any suggestions?

@jlesage hi, any ideas? i haven't been able to figure out a solution.

I unfortunately don't have the right answer to solve your problem, but maybe you can try this: https://superuser.com/a/999524
Else, something like this might also work:
find . -name "*.rar" -exe 7z x {} ';'

@jlesage can i roll back to an older version and get access to unrar?

Yes, when creating the container, you can use a specific tag instead of using the default latest one.  This allows you to use a specific version of the image.
https://hub.docker.com/r/jlesage/filezilla/tags

Closing this issue.  Please re-open if needed.


[CI failure] k-NN CI failed due to core refactor for MediaTypeParser

k-NN CI failed due to core refactor for MediaTypeParser.
Original core PRhttps://github.com/opensearch-project/OpenSearch/pull/8636

The fix is merged to main branch by https://github.com/opensearch-project/k-NN/pull/1002, the 2.x PR https://github.com/opensearch-project/k-NN/pull/1004 is failing as expected because of the original refactor PR not yet merged to 2.x.


Updated jnigen to Java Parser 2.3.0. Allows parsing of Java 8 code.

This PR evolved from me trying to run gdx-jnigen on Java code which uses the Java 7 diamonds operator and Java 8 lambdas.
No code changes were needed, I only had to adjust imports because the old com.google.code.javaparser package isn't maintained anymore, and has been replaced by com.github.javaparser.
I verified the change with packr, my steamworks4j library, and a few jnigen uses in libGDX. I don't think there will be issues, though I don't have a test environment to do a full libGDX build-with-sources-from-scratch.

Looks good, feel free to merge it!
On Dec 11, 2015 2:26 PM, "Daniel Ludwig"<EMAIL_ADDRESS>wrote:

This PR evolved from me trying to run gdx-jnigen on Java code which uses
the Java 7 diamonds operator and Java 8 lambdas.
No code changes were needed, I only had to adjust imports because the old
com.google.code.javaparser package isn't maintained anymore, and has been
replaced by com.github.javaparser.
I verified the change with packr, my steamworks4j library, and a few
jnigen uses in libGDX. I don't think there will be issues, though I don't
have a test environment to do a full libGDX build-with-sources-from-scratch.
You can view, comment on, or merge this pull request online at:
https://github.com/libgdx/libgdx/pull/3634
Commit Summary

Updated jnigen to Java Parser 2.3.0. Allows parsing of Java 8 code.

File Changes

M CHANGES https://github.com/libgdx/libgdx/pull/3634/files#diff-0
(1)
M build.gradle
https://github.com/libgdx/libgdx/pull/3634/files#diff-1 (2)
M extensions/gdx-jnigen/.classpath
https://github.com/libgdx/libgdx/pull/3634/files#diff-2 (2)
D extensions/gdx-jnigen/libs/javaparser-1.0.8.jar
https://github.com/libgdx/libgdx/pull/3634/files#diff-3 (0)
A extensions/gdx-jnigen/libs/javaparser-core-2.3.0.jar
https://github.com/libgdx/libgdx/pull/3634/files#diff-4 (0)
M extensions/gdx-jnigen/pom.xml
https://github.com/libgdx/libgdx/pull/3634/files#diff-5 (6)
M
extensions/gdx-jnigen/src/com/badlogic/gdx/jnigen/parsing/RobustJavaMethodParser.java
https://github.com/libgdx/libgdx/pull/3634/files#diff-6 (18)

Patch Links:

https://github.com/libgdx/libgdx/pull/3634.patch
https://github.com/libgdx/libgdx/pull/3634.diff

—
Reply to this email directly or view it on GitHub
https://github.com/libgdx/libgdx/pull/3634.


ordered_by for external content fetching, not only queryset

For now, the ordered_by kwarg is use only for objects already fetch
    def get_queryset(self, *args: tuple, **kwargs: dict) -> QuerySet:
        """
        Return the queryset filtered by app + contentype and optionaly channel and channel object
        if it's given
        """
        qs = super().get_queryset(*args, **kwargs)
        [...]

        if self.ordered_by:
            order = ""
            if self.ordered_by.startswith("-"):
                order = "-"
                ordered_by = self.ordered_by[1:]
            else:
                ordered_by = self.ordered_by
            qs = qs.order_by(f"{order}content_data__{ordered_by}")
        return qs

however many API endpoint support sorting as well (e.g gitlab milestone) but have default ordering. So retrieving default "10 milestone" would be the "10 first created" using default gitlab milestone API endpoint. But let's say we want the "10 last updated" or "10 last created" (i.e. most recent ones)? It would be super useful to allow sorting at the proxy level.

LGFM if someone want to code it.


Does the CVE-2022-22965 Vulnerability Affect spring-cloud-sleuth？

Describe the bug
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.

I think you answered your own question:

Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable
[...]
The specific exploit requires the application to run on Tomcat as a WAR deployment

Sleuth is independent of these, it is not affected: https://tanzu.vmware.com/security/cve-2022-22965


A way to change notification sound ?

Hi, I have notifcations on doorbell press working just fine, using http://homebridge-ip:5005/doorbell.html.
However, I would like to have another sound, (like ding-dong or something)
Is this possible ?
I see something like curl -X POST -d 'ding=dong&dong=ding' http://IP_OF_HOMEBRIDGE_RUNNING_DEVICE:PORT_DEFINED_IN_CONFIG in homebridge-videodoorbell but I do not known if that works here as well or how to use it with a normal http get or post.
Thanks in advance.

Sorry, doesn't set sounds on iOS, you get what Apple provide for notifications.  Not something the plugin can change.  the curl example is a way to trigger something else on the event e.g. you want another system to know there's a ring or motion


when running from source, find submodule shas too

We recently merged #6664 to prevent Bundler from (wrongly) claiming the
git commit of any parent directory when it is run from source. However,
Bundler is also run from source as a submodule in RubyGems, and in that
case it does not have its own git directory.
This commit resolves the failure in version_spec.rb that only appears
when the Bundler tests are run from a submodule, by explicitly checking
for that submodule, and using git ls-tree to get the sha if so.
Arguably, this is a bugfix compared to the previous behavior, which
would blindly print the current sha from the RubyGems repo, while
claiming that it was the sha of Bundler.

What's status this and https://github.com/bundler/bundler/pull/6733?
When they are merged 1-16-stable branch, I changed its HEAD revision on rubygems/rubygems repository and will release RG 2.7.8. Thanks!

@bundlerbot r+

@hsbt see #6752 for backport to 1-16-stable 👍🏻

@indirect Thanks a lot. I will prepare to release RG 2.7.8.


Using "extends" conditions on a union type to map to a class / interface with a generic type can results in an unnecessary "split" union type which causes unjustified assign-ability error

TypeScript Version:  3.9.2

Search Terms:
extends condition, union type, generic type, assignability
Code
class ValueRef<T> {
  onChanges: () => T; // Note that if I would have used this type directly (i.e. `value: T` it works correctly)
}

type Test<T> = T extends any ? ValueRef<T> : ValueRef<T>; // Expected to behave like identity

const a: ValueRef<boolean> = new ValueRef<boolean>(); // No error
const b: Test<boolean> = new ValueRef<boolean>(); // Error

Output
"use strict";
class ValueRef {
}
const a = new ValueRef();
const b = new ValueRef();

Compiler Options
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "moduleResolution": 2,
    "target": "ES2017",
    "jsx": "React",
    "module": "ESNext"
  }
}

Playground Link: Provided
Expected behavior:
The code should compile without error. Test<boolean> should be interpreted the same as ValueRef<boolean>
Actual behavior:
The last assignment fails with the following error:
TS2322: Type 'ValueRef<boolean>' is not assignable to type 'ValueRef<false> | ValueRef<true>'.
Type 'ValueRef<boolean>' is not assignable to type 'ValueRef<false>'.
Type 'boolean' is not assignable to type 'false'.

I.e. Test<boolean> is interpreted as ValueRef<true> | ValueRef<false>, than each one is checked separately and the conclusion is that ValueRef<boolean> is not assignable to it.
I'm aware that ValueRef<true> | ValueRef<false> is NOT the same as ValueRef<boolean>. I simply expect the Test<boolean> to be equal to the later.
Notes

It doesn't matter what the "extends" condition is, it matters that the generic type (in that case - boolean) is a union type. (i.e. true | false)
I wrote the condition as an identity just for the sake of simplicity but of course I expect it to work with a condition that maps to two different types.

This is caused by distributive conditional types that a union type like boolean which is defined as true | false, and apply the conditional type to each part of the union.
Here is one of the related issues which will give you more detail: #37279.
Search terms: boolean conditional type

Thanks. The use of tuples solves my issue.
I do not understand why is this a wanted behavior at the first place, but as long as I can override this I'm happy with it.


remove extra space

Hi, there is extra space for python and pyrex, but not for the other languages. We should fix the inconsistence.

All right, now I understand how come the inconsistence, and agree not everyone will customize this plugin, including me, I didn't customize before.
And my workaround about python is following, inspired by #202, hopefully help others.
let g:NERDSpaceDelims = 1
let g:NERDAltDelims_python = 1

All right, now I understand how come the inconsistence, and agree not everyone will customize this plugin, including me, I didn't customize before.
And my workaround about python is following, inspired by #202, hopefully help others.
let g:NERDSpaceDelims = 1
let g:NERDAltDelims_python = 1


cat: use HOMEBREW_VISUAL as pager if set

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

With this change something like that would be possible:
HOMEBREW_VISUAL=$HOMEBREW_PREFIX/bin/bat brew cat <formula>

.. and one would get a nice syntax highlighted formula.

I never knew brew cat was a thing. Interesting. I alias cat to bat in my shell config (with gcat for if I need "normal" cat) and do cat $(brew --repo homebrew/core)/Formula/hello.rb, or otherwise brew edit hello.

brew cat is nicer solution IMO, as it gets shell completion for formulas for example.

Wouldn't it be more appropriate to use the PAGER environment variable rather than VISUAL?

I'd rather not use HOMEBREW_VISUAL for this but we could have a HOMEBREW_BAT or something variable that will use this if installed (or maybe even install it if not)? That is a closer match to HOMEBREW_PRY for brew irb.

I added the env variable HOMEBREW_BAT. If it is present, brew will look up if bat is installed and if not it will install it.

Great work, thanks again @dawidd6!


VM extension TeamServicesAgentLinux fails with ModuleNotFoundError

Context
I have generated a Linux VM image (Ubuntu 20.04) using Packer, based on scripts used by Microsoft Hosted agents. The goal is to have similar machine to run Self-Hosted agents and to instantiate it thanks to the VM scale set pools
on Azure DevOps.
VM image is generated and works fine. It is based on latest commits from main branch of actions/virtual-environments repository.
What's not working?
After creating a VM scale set on Azure based on generated VM image, and after using this VM scale set with a new VM scale set pool on Azure DevOps, an agent is instantiated using a VM extension: Microsoft.VisualStudio.Services.TeamServicesAgentLinux
The problem is that we get an error during execution of this VM extension:
[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/AzureRM.py [stdout] [stderr] Running scope as unit: Microsoft.VisualStudio.Services.TeamServicesAgentLinux_<IP_ADDRESS>_c99d6fee-757e-488d-9f10-158b724a33bc.scope Traceback (most recent call last): File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/AzureRM.py", line 9, in <module> import Utils.HandlerUtil as Util File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/HandlerUtil.py", line 62, in <module> import RMExtensionStatus ModuleNotFoundError: No module named 'RMExtensionStatus'

It seems Python scripts cannot run using Python version 3:

Some py2 libraries are used
Python 3 considers modules without starting by . with absolute imports and not relative (https://docs.python.org/3.8/whatsnew/3.0.html#removed-syntax)

TeamServicesAgentLinux extension version used: <IP_ADDRESS>
How to solve the issue?

Is there a more recent version of TeamServicesAgentLinux extension available and compliant with Python3?
If yes, could it be used by Azure DevOps for the VM scale set pools?
Is the source code of this extension is available somewhere?

@bishal-pdMSFT is the Microsoft.VisualStudio.Services.TeamServicesAgentLinux extension in your wheelhouse?

We are having the same issue with ubuntu20 image since Python3 became default in October.
There's been no update on this issue since 28 days, but I see in announcement that image being rolled since Nov. 30th, so I guess there is a fix that exist somewhere, but not available to the public?
https://github.com/actions/virtual-environments/issues/1816

Adding @tejasd1990

ack. will investigate and update

I am also running into the same error, but using CentOS 8. This works fine in our environment using CentOS 7.
Error message:
Traceback (most recent call last):
  File "./AzureRM.py", line 9, in <module>
    import Utils.HandlerUtil as Util
  File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/HandlerUtil.py", line 62, in <module>
    import RMExtensionStatus
ModuleNotFoundError: No module named 'RMExtensionStatus'

If I try to run with python2 using alternatives --set python python2 (after yum install python2), I get a different error:
Traceback (most recent call last):
  File "./AzureRM.py", line 9, in <module>
    import Utils.HandlerUtil as Util
  File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/HandlerUtil.py", line 69, in <module>
    from WAAgentUtil import waagent
  File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/WAAgentUtil.py", line 42, in <module>
    waagent = imp.load_source('waagent', agentPath)
  File "/usr/sbin/waagent", line 46, in <module>
    raise ImportError("Can't load waagent")
ImportError: Can't load waagent

I have also opened a case using our Azure support account:
120121724004184
If it is helpful, here's the ARM template for the extension:
{
	"name": "AzureDevOps",
	"properties": {
		"publisher": "Microsoft.VisualStudio.Services",
		"type": "TeamServicesAgentLinux",
		"typeHandlerVersion": "1.0",
		"autoUpgradeMinorVersion": true,
		"settings": {
			"VSTSAccountName": "[parameters('azureDevOpsAccountName')]",
			"TeamProject": "[parameters('azureDevOpsDeploymentGroupTeamProject')]",
			"DeploymentGroup": "[parameters('azureDevOpsDeploymentGroupName')]",
			"Tags": "[parameters('azureDevOpsDeploymentGroupTags')]"
		},
		"protectedSettings": {
			"PATToken": "[parameters('azureDevOpsDeploymentGroupPersonalAccessToken')]"
		},
		"provisionAfterExtensions": [
			"logAnalytics"
		]
	}
}

Full JSON for extension status (/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/HandlerStatus):
{
  "name": "Microsoft.VisualStudio.Services.TeamServicesAgentLinux",
  "version": "<IP_ADDRESS>",
  "status": "NotReady",
  "code": 1007,
  "message": "[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/AzureRM.py\n[stdout]\n\n\n[stderr]\nTraceback (most recent call last):\n  File \"/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/AzureRM.py\", line 9, in <module>\n    import Utils.HandlerUtil as Util\n  File \"/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/HandlerUtil.py\", line 69, in <module>\n    from WAAgentUtil import waagent\n  File \"/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/WAAgentUtil.py\", line 42, in <module>\n    waagent = imp.load_source('waagent', agentPath)\n  File \"/usr/sbin/waagent\", line 46, in <module>\n    raise ImportError(\"Can't load waagent\")\nImportError: Can't load waagent\n",
  "extensions": []
}

waagent -version:
WALinuxAgent-2.2.46 running on centos 8.3.2011
Python: 3.6.8
Goal state agent: 2.2.52

As a workaround, you may add the following two lines to
apt-get remove -y python-is-python3
apt-get install -y python-is-python2

the bottom of "/images/linux/scripts/base/repos.sh"
(This is an unofficial suggestion, I'm not part of the team)

@tejasd1990 Any update on this? Following up on our Azure support case<PHONE_NUMBER>04184, and they keep pointing us to get updates here. I am a colleague of the poster above @chandlerkent

@tejasd1990 Any update on this? Following up on our Azure support case<PHONE_NUMBER>04184, and they keep pointing us to get updates here. I am a colleague of the poster above @chandlerkent

Hi all, we are working on a fix for this, and will soom rollout. We will update on the rollout progress.

Hi all, we are working on a fix for this, and will soom rollout. We will update on the rollout progress.

@tejasd1990 thanks. We will love the Python3 fix.

@tejasd1990 thanks. We will love the Python3 fix.

As a workaround, you may add the following two lines to
apt-get remove -y python-is-python3
apt-get install -y python-is-python2

the bottom of "/images/linux/scripts/base/repos.sh" ,and remove the line
"python-is-python3"

in images/linux/toolsets/toolset-2004.json.
(This is an unofficial suggestion, I'm not part of the team)

You also need to add python2 to images/linux/scripts/installers/python.sh
Although, this workaround is frustrating as I am specifically using ubuntu20 because it has python3 (among other things)

As a workaround, you may add the following two lines to
apt-get remove -y python-is-python3
apt-get install -y python-is-python2

the bottom of "/images/linux/scripts/base/repos.sh" ,and remove the line
"python-is-python3"

in images/linux/toolsets/toolset-2004.json.
(This is an unofficial suggestion, I'm not part of the team)

You also need to add python2 to images/linux/scripts/installers/python.sh
Although, this workaround is frustrating as I am specifically using ubuntu20 because it has python3 (among other things)

@tejasd1990 Did you release something here? our releases using this extension broke yesterday. Comparing them from the working versions we see version <IP_ADDRESS> is being deployed now vs <IP_ADDRESS>.
Version <IP_ADDRESS> is causing our VMSS to fail deployments

@brandongodby78 what is the failure you are seeing? Please share the OS details and the settings for the extension.

@brandongodby78 please share the failure logs so that we can take a look?

Hi ,
we also see the same issue now as we deploy the VM Extension
2021-02-23T12:13:16.2827677Z ##[error]ERROR --- An error has occurred: ERROR --- 12:13:16 PM - The deployment 'deploymentagent' failed with error(s). Showing 1 out of 1 error(s).
Status Message: The handler for VM extension type 'Microsoft.VisualStudio.Services.TeamServicesAgentLinux' has reported terminal failure for VM extension 'TeamServicesAgentLinux' with error message: '[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/AzureRM.py
[stdout]
[stderr]
/bin/sh: /var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/AzureRM.py: /usr/bin/python3: bad interpreter: No such file or directory
'.
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot' (Code:VMExtensionHandlerNonTransientError)

I am now running into this issue as well. My error message is the same as the one posted above. I am using RHEL7 I believe.

@bishal-pdMSFT Sorry, for some reason I am not getting emails that I was tagged on a comment so my apologies. We are receiving the same error as @ramakrpr posted while trying to deploy a VMSS via ARM on CentOs 7.7.
We were able to get past this error by upgrading to CentOs 8.3 which is, of course, running Python3. This did however cause new unrelated issues, but I will mention them incase others ran into them.
We are using the customData feature of the ARM template to deploy base64 data onto our machines. According to the documentation this data is deployed to a file called CustomData. On CentOs 7.7 this was indeed the case, so we have bootstrap scripts that decode the data in that file and do some processing of it. Well, deploying CentOs 8.3 with ARM we do not see that file being created, but rather the ovf-env.xml file is being created. So we re-wrote our bootstrap to decode the data from the XML file rather than the customData file (which was JSON). Here is the documentation of that feature: https://docs.microsoft.com/en-us/azure/virtual-machines/custom-data#linux
Ultimately we have a workaround now, but having to upgrade our clusters to CentOs 8 under emergency duress is not what we want to do. Getting Python 3 to work on CentOs 7 seemed too challenging after about 6 hours of troubleshooting.
I am happy to share any more information or logs you need.

@ramakrpr @jnovick @brandongodby78 , are you able to get past this error using higher os version images which contain python3? That would be centos8+ and rhel8+ What issues are you facing while using those?
We are working on a fix to handle hack-compat with python2, and will rollout it shortly. I will update on that once done.

Hi @tejasd1990 unfortunately we dont have RHEL8 as an approved image to be utilized in our tenant. This will take time. When do you expect the fix to be rolled out?

@ramakrpr the fix would be at least 2-3 weeks away as unfortunately we are dealing with another urgent issue.
You could try installing python 3 on rhel 7 as a workaround.

@tejasd1990 @bishal-pdMSFT Yes, I do have a work around to deploy CentOs 8, however upgrading to CentOs 8 under duress is not something we would normally do. We would want to very slowly roll out a large upgrade like that.
Also, I do have ticket open<PHONE_NUMBER>06622) regarding an issue we are experiencing after upgrading to CentOs 8 and that is the custom data feature of arm templates is not working as expected on CentOs 8. It is not deploying the base64 data to the /var/lib/waagent/customdata file as it is supposed to do as documented here: https://docs.microsoft.com/en-us/azure/virtual-machines/custom-data#linux

I will also say that installing Python 3 on CentOs 7 did not solve the problem, unless you create a symlink so that python > python3, but if you do that a lot of other things break. To many things on CentOs 7 don't work with Python 3 as the default python.

I was able to just install python3 and have everything work fine. I did not need to create a symlink for python > python3. As a separate issue, I had to install git 2.x which was a hassle, but this problem was not too bad for me to workaround. I put a custom script extension on my VMSS to run sudo yum -y install python3. Unfortunately, RHEL8 is not yet approved for our use, but RHEL7 stops having this error with the installation of python3.

@brandongodby78

unless you create a symlink so that python > python3
this should not be required. The new extension version expects the interpreter with name python3, not python

@tejasd1990 We have confirmed that if you don't create the symlink that the agent works as expected, so we are able to remain on CentOs 7 for the short term. Thank you for the quick response. Also, yes the problem with CentOs 8 is with the ARM template, not the agent.

Sorry but can I confirm that since the agent upgrade (we use VMSS agents so can't control the version) we don't need to install Python2 on our images anymore and can keep /usr/bin/python as Python3?

@adhodgson1 , the extension expects /usr/bin/python3 to be present on the vm, which would be the case on Azure vms except the very old ones which don;t have python3 installed by default

For me it works fine now with RHEL 7 and Python 3. I’ve used the custom scrip extension to deploy python 3 . Works now like a charm
Need to test with cantos 7 though

Hi all,
we have rolled out the python2 backcompat. Let us know whether it is working for you, or any issue.

Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS> has the same issue with python3
[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Handler.sh [stdout] [stderr] Traceback (most recent call last): File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/./AzureRM.py", line 9, in  import Utils.HandlerUtil as Util File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-<IP_ADDRESS>/Utils/HandlerUtil.py", line 58, in  import imp ModuleNotFoundError: No module named 'imp' '. 'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot


TypeError in Python3 fixed

Checks the running interpreter version and acts accordingly

I just noticed this... But maybe #21 could be merged as it does not need version checking.

fixed by #21


Access Pixels of RGB & IR frames on D435 realsense camera

Hello everyone,
First of all, I would to thank's for all of you and specially who helped me on resloving my issues,  so to day I want just to ask if there is a possibility to access to each pixel of IR or RGB Image on D435 Realsense, by the way below is some of lignes codes that give you IR and RGB image in form of Mat in OpenCV:
rs2::frame color_frame = frames.get_color_frame();
rs2::frame ir_frame = frames.first(RS2_STREAM_INFRARED);
Mat color(size(640,480), CV_8UC3, (void*)color_frame.get_data(),Mat::AUTO_STEP);
Mat ir(size(640,480), CV_8UC1, (void*)ir_frame.get_data(),Mat::AUTO_STEP);
Best refgards.
Tarek ELOUARET

to note, I used the lignes below to display value of each channel on pixel, but it gives me false results:
for(int i=0; i<img.rows; i++)
for(int j=0; j<img.cols; j++)
// You can now access the pixel value with cv::Vec3b
std::cout << color.atcv::Vec3b(i,j)[0] << " " << color.atcv::Vec3b(i,j)[1] << " " << color.atcv::Vec3b(i,j)[2] << std::endl;

[Realsense Customer Engineering Team Comment]
Hi @TAREK-ELOUARET,
Do you try to have a configuration to set the format as follows before stream?
//Create a configuration for configuring the pipeline with a non default profile
rs2::config cfg;
//Add desired streams to configuration
cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_BGR8, 30);
cfg.enable_stream(RS2_STREAM_INFRARED, 1280, 720, RS2_FORMAT_Y8, 30);
cfg.enable_stream(RS2_STREAM_DEPTH, 1280, 720, RS2_FORMAT_Z16, 30);

Hi Sir,
Thanks for your reply, but I have already solve this issue I have used the same as you gave to me. I will close this issue :  )


Don't inject the PSR response in constructor

Instead of injecting the PSR response to be asserted in the constructor of the AssertPsrResponse, it could be done when the assert method is called:
$assertion = new AssertPsrResponse();
$assertion->matchStatusCode($someStatusCode);

$assertion->assert($psrResponse);

Solved here #24


optimizations for large data sets?

I am curious, have you all thought about ways to optimize the parsing for large data sets. I can call the parse() method, but that seems to be the only entry point.
I am pulling names out of a database, getting the pp splits and storing them in another table. I am pulling the data out of the table in chucks of 10,000. It has been running for a bit less than a week. I have over 6m name strings. My database access is not very optimized.
Just curious if you have suggestions.

@rkiddy The only thing I can recommend is the general recommendations for profiling with python. http://stackoverflow.com/a/7693928/98080
If you can't find any significant speed improvements, this sounds like a task that would be easy to parallelize if you have multiple cpus.

The issue turned out to be my database access, by a couple of orders of magnitude. Should finish soon-ish now.


Import with no config file behaves strange

If I click import without defining (uploading) the config, there is just a circle and nothing happens

Please write an error message (red) in this case.

I have fixed it by detecting the missing content at the server and throwing BadRequestException which client automatically displays in https://github.com/odalic/sti/commit/39741a2c520f10f1e2a75b2a4c8a480ca149b4d7 . This sorts this out. Closing.


CORE: Unable to load app ID or API key, falling back to $ionicApp.getApp()

Hi, all,
I'm working on ionic push, and added ionic-service-core. but I get this warning all the time.
Maybe I set the appID and API key at wrong place?
I did something like this:
.config([ '$ionicAppProvider', function($ionicAppProvider) {
  $ionicAppProvider.identify({
    app_id : 'XXXXXX',
    api_key : 'XXXXXXXXXXXXXX'
  });
} ]);

also I did in .io-config.json
{"app_id":"XXXXXX","api_key":"XXXXXXXXXXXXXX"}

Any ideas???

@shieer Have you run ionic config build and ionic prepare PLATFORM.

@ericb  First, Thanks for your reply.
Yes, I did.
but still get the warning, and i got
"onError - errorId: INVALID_SENDER" on Android build,
I think maybe the warning cause this Android error.

@ericb  I found the problem, I install ionic-service-core and ionic-service-push with
ionic add ionic-service-core
ionic add ionic-service-push

and the default path is lib/ionic-service-core and lib/ionic add ionic-service-push.
but my app structure is not like this, so i moved them and changed the link in index.html
that cause the warning,
After I move them back to lib/ , warning is removed, and Android error is fixed!
Thanks

i am still having this issue and hv gone thru all the steps requested.  It works on ios but on android i get the same error. I have done ionic config build, i have made sure it is on my app.js nd its d same on my io-config.json file too
I do hv one slight distinction, my config.xml widget id is different for my android and my iOS. could tht be the issue?? then is it considered d same app or different app then? This was because for some reasons only apple can knw. It rejected d id used frm android so i had to use another id as my identifier for app store.

@boyfunky This library is deprecated in favor of the ionic-platform-web-client. You should start fresh with the docs and proceed using that lib.


Port compiler tests from master to dev

Master branch has a lot of tests that compile go code and run it in a VM, all of them are treated as VM tests there, but IMO these should be ported into dev as compiler tests, because VM tests should run avm-compiled code directly. See #300 also where compiler fixes broke VM tests, even though VM didn't change at all.

As we finally merged dev into master (see #283), this no longer is relevant.


[camera_android_camerax] setZoomLevel is slow or throttled compare to camera_android

Steps to reproduce

Setup the example of package:camera.
Switch between camera_android and camera_android_camerax implementation.
Pan to scale when switched to one of the cameras.

Reproducible Devices

OnePlus 11 (PHB110)

Expected results
Zooming behavior should be consistent with users' interactions.
Actual results
The zooming is obviously slow or throttled compared to the Camera2 implementation.
Code sample
https://github.com/flutter/packages/blob/04d2572672f0d6561207f11773fd23f9c88d84e3/packages/camera/camera/example/lib/main.dart
Screenshots or Video

Screenshots / Video demonstration
camera_android
https://github.com/flutter/flutter/assets/15884415/8084003b-460f-4ec2-9d41-a996af219133
camera_android_camerax
https://github.com/flutter/flutter/assets/15884415/be842455-6199-417f-8d91-9cd4e2ff599d

Logs
N/A
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64 (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.22.2 on channel stable at /Users/alex/dev/flutter-322
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (2 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

I can also reproduce this issue on my device Pixel 7, Android 14. The current plugin versions:
camera_android: ^0.10.9+6
camera_android_camerax: ^0.6.5+6

flutter doctor -v
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.22.2 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (31 hours ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode15.3.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.8 19H370
    • macOS (desktop) • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome                                   • web-javascript • Google Chrome 125.0.6422.142

[✓] Network resources
    • All expected network resources are available.

• No issues found!


Stop showing things as undone due to rounding errors.

I kept getting some random instances where the page would show something
as nearly complete, but the science would be 16.2 of 16.2. This change
checks for that condition and calls it done to make things more
consistent.

Thanks for the pull request liquidgecka.  Could you send you save game? I'd like to understand the bug.
I'm sure you are right... the completionist in me doesn't want to show things incomplete even if there is 0.01 left to collect.

Closing due to inactivity


sm7150: surya: Add ACPI table

Description
Added acpi table, able to boot Windows PE and Windows 11 but no USB
Checklist

[x ] Have you tested the change you are submitting?
[x ] Is the commits history nice and clean?

This one is good now. 👍


Checkmarx: set verified to True for urgent/confirmed findings

Checkmarx has following statuses for findings:
0: "To Verify"
1: "Not Exploitable"
2: "Confirmed"
3: "Urgent"
4: "Proposed Not Exploitable"
The following changes will add verified=true only for Confirmed and Urgent (Actionable items)

Hello,
Could you check if this can be done in the checkmarx scanner instead? if possible it would be cleaner because this is adding some parser specific logic in a generic class.
also this code will apply on API v2 only, not on GUI import I think, does it?

We should indeed keep the class generic. I don't believe this belongs here. Closing.


Agrege la traducción al español

I have a question with the word if it is brasier o brazier

Dictionary.com lists Brasier as an acceptable alternate spelling, but Brazier seems to be the preferred one: http://www.dictionary.com/browse/brazier?s=t
I'll switch the English translation over to Brazier when I get back from work tonight. Sorry about that. English is my first language, but English being how it is that doesn't really help much. :)

Please use English commit messages.


[openCV] add vulkan support for openCV dnn

[x] Changes comply with the maintainer guide
[ ] SHA512s are updated for each updated download
[ ] The "supports" clause reflects platforms that may be fixed by this new version
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

I found the openCV missing Vulkan support, which is a new backend of openCV::dnn module. Now openCV supports openvion, cuda and Vulkan, so I think vulkan should be added to vcpkg package list.
I was check the function of Vulkan work normally in X64-windows.

Thanks for your time to check the pr.

Feature opencv4[vulkan] passed with following triplets:
x86-windows
x64-windows
x64-windows-static

Please modify port-version in vcpkg.json, see https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md#update-the-port-version-field-in-the-manifest-file-of-any-modified-ports.

Please modify port-version in vcpkg.json, see https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md#update-the-port-version-field-in-the-manifest-file-of-any-modified-ports.

I am so sorry that I missed checking this file. Now I modified the port-version of opencv and opencv4, and then run this command
vcpkg x-add-version opencv4
vcpkg x-add-version opencv

to update the baseline.

Thanks!


[FEA] build with CUDA 12

Is your feature request related to a problem? Please describe.
Speed up the build process of spark-rapids to support cuda11 and cuda12.
Describe the solution you'd like
We're planning to support CUDA 12 build. So, we'll have a classifier "-cuda12" by packaging the spark-rapids-jni jar built for cuda 12. I suppose spark-rapids-jni will also have a classifier "-cuda12".
The scala/java codes in spark-rapids are not related to cuda 12. So, it doesn't need to build twice.
The difference between cuda11 and cuda12 will be only the native libraries, which are in spark-rapids-jni jar.
For now, we only package the spark-rapids-jni jar in the stage of building dist folder.
The ideal process of building spark-rapids for cuda11 and cuda12 will be:

Build the jars for the sub modules(except dist).
Package the dist with the sub modules and spark-rapids0-jni-cuda11 jar
Package the dist with the sub modules and spark-rapids0-jni-cuda12 jar

Describe alternatives you've considered
Without this, we simply can build the jars of sub modules twice but waste some time.

Shouldn't this simply be a two step process?

Perform a clean build with -Dcuda.version=11
Perform a subsequent build without cleaning using -Dcuda.version=12

The subsequent build should avoid rebuilding artifacts that are not dependent on the cuda.version setting.

target this to 23.06, I will add cuda12 build later


test: remove explicit CreateInstance timeout

To prevent test flakiness.

PTAL @thiagotnunes and @olavloite. I would like to get this in before the next release as it's required to fix some internal flaky tests.


add log messages when collecting support bundle

add log messages when support bundle is collecting/analyzing

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: danbudris
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [danbudris]

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

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: danbudris, jiayiwang7
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [danbudris,jiayiwang7]

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

/lgtm


Ensuring new CSS is loaded

Hey guys,
Great work on the starter theme. Love it and have been using it since discovery. One question about it:
How do you ensure new CSS is loaded? I always seem to have a problem with cache. Is this something that has a simple solution?
Thank you

You should post this at https://discourse.roots.io, or more specifically https://discourse.roots.io/c/sage

Thank you Christopher, I'll do
On Wed, Jun 24, 2015 at 3:35 PM Christopher Mosure<EMAIL_ADDRESS>wrote:

You should post this at https://discourse.roots.io, or more specifically
https://discourse.roots.io/c/sage
—
Reply to this email directly or view it on GitHub
https://github.com/roots/sage/issues/1505#issuecomment-115003232.


Vsts-agent on Windows 10 Invoke-MsBuild error

Hi I'm trying to build a Xamarin.Android project using the vets agent on Windows 10 with Visual Studio 2015 Professional Update 2 installed and am experiencing the error below:-
Executing the powershell script: C:\windowsagent_work_tasks\XamarinAndroid_27edd013-36fd-43aa-96a3-7d73e1e35285\1.0.13\XamarinAndroid.ps1
Microsoft.PowerShell.Commands.WriteErrorException: A parameter cannot be found that matches parameter name 'LogFile'.
Microsoft.PowerShell.Commands.WriteErrorException: See http://go.microsoft.com/fwlink/?LinkId=760847
PowerShell script completed with 2 errors.
It looks like it's the Invoke-MSBuild  command with the parameter -LogFile thats the problem.
foreach ($pf in $projectFiles)
{
    try {
        Invoke-MSBuild $pf -LogFile "$pf.log" -ToolLocation $msBuildLocation -CommandLineArgs $args
    }
    catch [System.Exception] {
        Write-Error $error[0]
        $exitCode = 1
    }
}

I've experimented with trying to install Invoke-MsBuild, first using chocolatey then in Powershell using the command Install-Module -Name Invoke-MsBuild -Force could this be I'm using the wrong version of Invoke-MsBuild?
When I use Get-InstalledModule in powershell it's reporting version 1.6.3 for Invoke-MsBuild.
Regards,
Richard

@TingluoHuang Was the Invoke-MSBuild ported to the version of the legacy task lib that is pulled into the Core CLR agent? If not, it looks like the ps implementation for this task would be really easy to port to the ps3 task handler.

@ericsciple Looks like I didn't port it. I didn't realize it been used by task other than msbuild...

@richardwoollcott I will fix it in next preview.

Thats great thanks

#198 should fix this.

Thanks for fixing this.


Login Problem with Seat Connect

Hello,
Since this morning the Seat Connect integration don't work.
I try to write here because the Seat fork has not been updated for a very long time. Newbie question, isn't it possible to make sure to continue the development in parallel?
I tried to reconfigure all, but i can't even access anymore.
When I insert my login mail/password, the screen with rounding circle "access to Seat Connect" apper and nothing happen
This is the problem, delete all and reinstall didn't work:

Hey there,
same issue here on this very integration (Skoda), after a restart of HA.
Logs are very clear, even if I have no idea how to do what is asks :)

Cette erreur provient d'une intégration personnalisée

Logger: skodaconnect.connection
Source: custom_components/skodaconnect/init.py:896
Integration: Skoda Connect (documentation, issues)
First occurred: 14:58:55 (8 occurrences)
Last logged: 15:04:20
The terms and conditions must be accepted first at "https://www.skoda-connect.com/"

Hello, Since this morning the Seat Connect integration don't work. I try to write here because the Seat fork has not been updated for a very long time. Newbie question, isn't it possible to make sure to continue the development in parallel? I tried to reconfigure all, but i can't even access anymore. When I insert my login mail/password, the screen with rounding circle "access to Seat Connect" apper and nothing happen
This is the problem, delete all and reinstall didn't work:

It sure is. Problem is someone with access need to make an effort to update it. I don't have a Seat, never did, and as of now I don't have time to code anything.

I think this was resolved recently after some discussions on discord?
If not I would suggest to report the issue in https://github.com/Farfar/homeassistant-seatconnect


[Bug]: Reserved scopes bypassable

Preflight Checklist

[X] I could not find a solution in the documentation, the existing issues or discussions
[X] I have joined the ZITADEL chat

Environment
Self-hosted
Version
Latest, Dockerized
Database
CockroachDB
Database Version
Latest, Dockerized
Describe the problem caused by this bug
When using any or both or the urn:zitadel:iam:org reserved scopes, in the request and in "Require scope" (available in Apache2) I get prompted the organization login that should, in theory, restrict login to users in that organization only. However, if you have domain discovery activated in a second organization and you input (with registration enabled) an email address with the domain of the second organization in the login section, it brings you to the signup form and, by pressing the back arrow, the login form is now restricted to the second organization, giving you the possibility to login with unauthorized accounts. As I also have "urn:zitadel:iam:org:....." in the required scope it seems like it also sends the wrong organization id back.
To reproduce

Create a secondary org with registration and domain discovery enabled.
Create and app and in any webapp or, for example, the OpenID playground, use a reserved scope for your primary org.
Input an email address with the domain of the secondary org in the end (after the 'at').
You will be prompted to a signup form, press the in page back arrow.
You can now login with the secondary org accounts.

Screenshots
1.

2.

3.

Press:

4.

Expected behavior
The process described above should not happen.
Operating System
OS: Debian 12
ZITADEL and DB: Dockerized, Latest version
Relevant Configuration
No response
Additional Context
No response

Thanks for reporting this. Let us look at it.
CC @livio-a


Upload Quadratic Calculator

Simple python program to calculate the quadratic formula of a sequence of numbers inputted

Thank you for you contribution to the repo and the community

On 2 Oct 2017, at 17:14, GGearing314<EMAIL_ADDRESS>wrote:
Simple python program to calculate the quadratic formula of a sequence of numbers inputted
You can view, comment on, or merge this pull request online at:
https://github.com/geekcomputers/Python/pull/242 https://github.com/geekcomputers/Python/pull/242
Commit Summary
Upload Quadratic Calculator
File Changes
A QuadraticCalc.py https://github.com/geekcomputers/Python/pull/242/files#diff-0 (42)
Patch Links:
https://github.com/geekcomputers/Python/pull/242.patch https://github.com/geekcomputers/Python/pull/242.patch
https://github.com/geekcomputers/Python/pull/242.diff https://github.com/geekcomputers/Python/pull/242.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/geekcomputers/Python/pull/242, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHa0ur3japC0Drvdz26rbI0uvsST9I-ks5soQvegaJpZM4Pq4ao.


[Feature] Introduce version merge engine for primary key table

Please assign it to me,  I'd love to take a stab at this, thanks

Hi @sunxiaojian , did you start working on this issue? We are particularly in urgent need of this feature. If you have already started developing it, we can assist with reviewing and providing guidance. If you don't have time to work on it shortly, we can take it over for development.

Hi @sunxiaojian , did you start working on this issue? We are particularly in urgent need of this feature. If you have already started developing it, we can assist with reviewing and providing guidance. If you don't have time to work on it shortly, we can take it over for development.

@wuchong I have started developing this feature and will complete it as soon as possible.


I can't send usdt from trc20.

Hello,
I can't find where the error is in my work in core 6 :(
I searched many articles and when I finally ran it, the result was "b8107a19cb24e2ffe69b2b45a9499c1bf1bc78f0a54223569a48b6e311df3903". I don't know where to use this incoming information. How do I access the txID? Is this the result of the txID?
I wonder if it is due to the api settings in trongrid.io. Can you help me.
program.cs
builder.Services.AddTronNet(x =>
{
x.Network = TronNetwork.MainNet;
x.Channel = new GrpcChannelOption { Host = "grpc.trongrid.io", Port = 50051 };
x.SolidityChannel = new GrpcChannelOption { Host = "grpc.trongrid.io", Port = 50052 };
x.ApiKey ="myapikey"
});
TronAccount.cs
namespace .WebUi.Models
{
public class TronAccount : ITronAccount
{
public string PublicKey { get; set; }
public string PrivateKey { get; set; }
public string Address { get; set; }
public byte GetAddressPrefix()
{
throw new NotImplementedException();
}
}
}
homecontroller.cs
using TronNet;
private readonly IWalletClient _wallet;
private readonly IContractClientFactory _contractClientFactory;
public HomeController( IWalletClient wallet, IContractClientFactory contractClientFactory)
{
_wallet = wallet;
_contractClientFactory = contractClientFactory;
}
public async Task Index()
{
var privateKey = "8e812436a0e3323166e1f0e8ba79e19e217b2c4a53c970d4cca0cfb1078979df";
string fromAddress = "TFbrUmaS8Zqdbsw92GDoqx6nH2U9GoosrS";
var account = new WebUi.Models.TronAccount()
{
	Address = fromAddress,
	PrivateKey = privateKey
};

var contractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; //USDT Contract Address
var to = "TDRK6kQnc55EWkFL4bvv8Fefdbt3HfsiE9";
var amount = 5; //USDT Amount
var feeAmount = 5 * 1000000L;
var contractClient = _contractClientFactory.CreateClient(ContractProtocol.TRC20);

var result = await contractClient.TransferAsync(contractAddress, account, to, amount, string.Empty, feeAmount);
// result="b8107a19cb24e2ffe69b2b45a9499c1bf1bc78f0a54223569a48b6e311df3903

"
}

b8107a19cb24e2ffe69b2b45a9499c1bf1bc78f0a54223569a48b6e311df3903

Hello, you could search your Address or TXID in https://tronscan.org/.
I did not find any results based on the info you provided.
if you transfer failed, maybe your feeAmount's amount is too low,  or your trx's balance not enough, check your account.

hello, as you said, I increased the numbers but still nothing happened :(

hello, as you said, I increased the numbers but still nothing happened :(

continue increase your feeAmount,
var feeAmount = 30 * 1000000L, try it again.

I did as you stated but still the same.  f178c6401bd0b1490cb503f0dc34a047775684295e2128f9af1ffd496d88c30f

change your config code
x.Channel = new GrpcChannelOption { Host = "grpc.trongrid.io", Port = 50051 };
x.SolidityChannel = new GrpcChannelOption { Host = "grpc.trongrid.io", Port = 50052 };
to:
x.Channel = new GrpcChannelOption { Host = "grpc.shasta.trongrid.io", Port = 50051 };
x.SolidityChannel = new GrpcChannelOption { Host = "grpc.shasta.trongrid.io", Port = 50052 };

I'm so sorry I can't send USDT because I misspelled privatekey.
now working. thanks.

emrealparslan i also can't send usdt can you help me?


Columns with video

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fixes #
Test URLs:

Original: https://www.sunstar.com/

Before: https://main--sunstar--hlxsites.hlx.live/about

After: https://columns-with-video--sunstar--hlxsites.hlx.live/about

[ ] New Blocks introduced in this PR
If yes, please provide details below

Block Name
Documentation

For e.g. cards
doc-link

[ ] New variations introduced in this PR

Variation Name
Documentation

For e.g. cards (grid)
doc-link

The video does not seem to play for me. 🤔

@sdmcraft problem is occurring when you directly open /about page, but when you visit it from header it is working fine. looking into the RCA

@sdmcraft check now

the video seems to be getting cropped in mobile screen,


[Datagrid] Using *clrDgHideableColumn with a datagrid containing a dropdown menu throws error

[ X] bug
[ ] feature request
[ ] enhancement

Expected behavior
I should be able to use both the *clrDgHideableColumn directive and a dropdown in a table row cell without any issues.
Actual behavior
Currently using both together results in the following error:
ERROR TypeError: Cannot read property 'id' of undefined
I also want to note that the only reason that I'm currently using the dropdown instead of the clr-dg-action-overflow element is that I'm waiting on a bug fix #744.
Reproduction of behavior
https://plnkr.co/edit/V2EJ0aKrUEqPSUChb8i9?p=preview
Environment details

Angular version: 4.0.X

Clarity version: 0.9.X

OS and version: macOS Sierra

Browser: Chrome

Thanks for reporting this, its related to this issue #837.

This appears to be fixed now. The plunkr works on latest Clarity.


[FEAT] Create a custom authentication page

Hey is it to change the next auth customisation page UI ? If so can you assign this to me

Yes, the next auth default page, we want to create our own custom UI

I have a doubt. The current auth is google one which is directly linked to the landing page .
So which page is needed to be customised ?
Do I have to create a new page at /signin with just google auth or should the UI include email password as well ? Can you please elaborate so that I can start working on it asap

You can refer to the next auth documentation on how we create custom authentication pages
Also, we are sticking to google provider for now

@cb7chaitanya #159 Creates this new page. Let me know if this is what you wanted


Added task to copy kubeconfig from /etc/kubernetes/admin.conf to $HOME

Added task to copy kubeconfig from /etc/kubernetes/admin.conf to $HOME/admin.conf, then add KUBECONFIG env to .bashrc. This allows kubectl to work without sudo and without
calling --kubeconfig /etc/kubernetes/admin.conf on every command.
This task is only on the master.
The "command" task was needed because of file permissions when using "file" tasks. A warning is given during runtime, but no errors.

hey thx,
what about mkdir -pv /home/ubuntu/.kube and then copy the /etc/kubernetes/admin.conf to $HOME/.kube/config then i think we won't have to set the env variables.
but i can merge 👍

The kubeadm docs have the following. Maybe it would be better to follow this.
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#24-initializing-your-master
I found that ansible resolves $HOME as root, so I used ~{{ansible_remote_user }}

lgtm


Define how jumping works

How fast will Hestmor leave the ground after the button is pressed?
Can Hestmor move while jumping?
Can Hestmor choose between a high jump and a long jump (maybe by pressing forwards while the jump starts)?
Will Hestmor deal bonus damage when attacking during a jump/pounce?

@vitormaduro So here are the answers regarding said questions:
Answer 1: I think this one would need testing, but from the player feedback I could gather, we need to make the jump much more quicker. So, obviously, we need to mitigate any feeling of any input delay. Let's see if either removing some frames of animation, or maybe just making the input read from the controller/keyboard faster will help the case.
Answer 2: No. Though Hestmor can move during some falling segments that may make use of parallax scrolling, during jump, it is not possible.
Answer 3: So, I thought about this and came to the optimal solution. I don't think providing player choice in this would be good, instead I would like to make this related to the movement before the jump is executed. Basically, A) If the player is walking then the jump would be a low jump, and B) if the player is running before the jump, then the player would do the long jump. In fact now that as I type this, I realize that we can also provide a "same place" jump/hop to players if they are standing idle. I will assign issue regarding to commence an animation, but yeah, in case of walking and running, walking would lead to low jump and running will lead to high jump. I think in those two cases, we may not need to assign any new animations, so it should be fine.
 In fact, since we are assigning different attack animations for different movements (Idle, walking, jumping, falling, and running), we can assign different attack outputs for all of them. The riskier the movement, the greater the attack damage. This will/may create a risk-reward system for the players, where let's say, running is obviously much more dangerous as you are less likely to dodge attacks quickly, but the resulting damage will be more satisfying.

@vitormaduro these questions were answered, do you want me to close the issue, or do you want to keep it open until either you transport the answers in wiki for you to keep track of or those things are actually implemented.

I'll close it, thank you for reminding me