'file not found' errors because of wrong path separator on WPF based project

Hi all
first of all thank you for your great tool.
I'm writing now to ask for help about a problem I got executing the upgrade-assistant. I'm trying to convert a WPF (Windows Presentation Foundation) project to .NET MAUI because I need to compile and build on MacOS / linux.
When I try to run the analyze command:
❯ upgrade-assistant analyze ./Project.csproj

This command give me the output:

MacOS support for this tool is limited to migrating Xamarin.Forms to MAUI. Other migration paths are not supported and may or may not work correctly.

-----------------------------------------------------------------------------------------------------------------

Microsoft .NET Upgrade Assistant v0.4.421302+be0ea11e8234f2a0bde2d170b0fdd455fa4f9a45

We are interested in your feedback! Please use the following link to open a survey: https://aka.ms/DotNetUASurvey

-----------------------------------------------------------------------------------------------------------------

[17:52:56 INF] Loaded 9 extensions

[17:52:56 INF] Visual Studio path not required on macOS

[17:52:56 INF] Using MSBuild from /usr/local/share/dotnet/sdk/7.0.203/

[17:52:59 INF] Writing output to /Users/me/workspace/project/Environment/Tools/Company.Project.Tools.Controls/AnalysisReport.sarif

[17:53:00 INF] Recommending Windows TFM net7.0-windows for project Company.Project.Tools.Controls.csproj because the project either has Windows-specific dependencies or builds to a WinExe

[17:53:01 INF] Reference to .NET Upgrade Assistant analyzer package (Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, version 0.4.421302) needs to be added

[17:53:01 INF] Adding Microsoft.Windows.Compatibility 7.0.1 helps with speeding up the upgrade process for Windows-based APIs

[17:53:02 INF] Recommending Windows TFM net7.0-windows for project Company.Project.Presentation.WPF.Controls.Core.csproj because the project either has Windows-specific dependencies or builds to a WinExe

[17:53:02 INF] Reference to .NET Upgrade Assistant analyzer package (Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, version 0.4.421302) needs to be added

[17:53:02 INF] Adding Microsoft.Windows.Compatibility 7.0.1 helps with speeding up the upgrade process for Windows-based APIs

[17:53:02 INF] Recommending Windows TFM net7.0-windows for project Company.Project.Presentation.csproj because the project either has Windows-specific dependencies or builds to a WinExe

[17:53:03 INF] Reference to .NET Upgrade Assistant analyzer package (Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, version 0.4.421302) needs to be added

[17:53:03 INF] Adding Microsoft.Windows.Compatibility 7.0.1 helps with speeding up the upgrade process for Windows-based APIs

[17:53:03 INF] Recommending Windows TFM net7.0-windows for project Company.Project.Presentation.WPF.csproj because the project either has Windows-specific dependencies or builds to a WinExe

[17:53:03 INF] Reference to .NET Upgrade Assistant analyzer package (Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, version 0.4.421302) needs to be added

[17:53:03 INF] Adding Microsoft.Windows.Compatibility 7.0.1 helps with speeding up the upgrade process for Windows-based APIs

[17:53:04 INF] Recommending Windows TFM net7.0-windows for project Company.Project.Presentation.WPF.Controls.csproj because the project either has Windows-specific dependencies or builds to a WinExe

[17:53:04 INF] Reference to .NET Upgrade Assistant analyzer package (Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, version 0.4.421302) needs to be added

[17:53:04 INF] Adding Microsoft.Windows.Compatibility 7.0.1 helps with speeding up the upgrade process for Windows-based APIs

[17:53:04 INF] Running analyzers on Company.Project.Tools.Controls

[17:53:05 INF] Identified 0 diagnostics in project Company.Project.Tools.Controls

[17:53:05 INF] Running analyzers on Company.Project.Presentation.WPF.Controls.Core

[17:53:06 INF] Identified 0 diagnostics in project Company.Project.Presentation.WPF.Controls.Core

[17:53:06 INF] Running analyzers on Company.Project.Presentation

[17:53:07 INF] Identified 0 diagnostics in project Company.Project.Presentation

[17:53:07 INF] Running analyzers on Company.Project.Presentation.WPF

[17:53:07 INF] Identified 0 diagnostics in project Company.Project.Presentation.WPF

[17:53:07 INF] Running analyzers on Company.Project.Presentation.WPF.Controls

[17:53:07 INF] Identified 8 diagnostics in project Company.Project.Presentation.WPF.Controls

[17:53:07 INF] Diagnostic UA0013_L with the message Windows Forms Deprecated controls : ContextMenu needs to be replaced with ContextMenuStrip. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

[17:53:07 WRN] Default font in Windows Forms has been changed from Microsoft Sans Serif to Segoe UI, in order to change the default font use the API - Application.SetDefaultFont(Font font). For more details see here - https://devblogs.microsoft.com/dotnet/whats-new-in-windows-forms-in-net-6-0-preview-5/#application-wide-default-font.

[17:53:07 FTL] Unexpected exception analyzing winforms references

System.IO.FileNotFoundException: Could not find file '/Users/me/workspace/project/Environment/Tools/Company.Project.DescriptorsConfigurator/Company.Project.Presentation.WPF.Controls.Core/Areas\WorkingArea.cs'.

File name: '/Users/me/workspace/project/Environment/Tools/Company.Project.DescriptorsConfigurator/Company.Project.Presentation.WPF.Controls.Core/Areas\WorkingArea.cs'

   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)

   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Func`4 createOpenException)

   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)

   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)

   at System.IO.File.ReadAllText(String path, Encoding encoding)

   at Microsoft.DotNet.UpgradeAssistant.Extensions.Windows.WinUINamespaceUpdater.IsApplicableAsync(IUpgradeContext context, ImmutableArray`1 inputs, CancellationToken token) in /_/src/extensions/windows/Microsoft.DotNet.UpgradeAssistant.Extensions.Windows/UWPtoWinAppSDKUpgrade/WinUINamespaceUpdater.cs:line 106

   at Microsoft.DotNet.UpgradeAssistant.Extensions.Windows.WinformsResultProvider.AnalyzeAsync(AnalyzeContext analysis, CancellationToken token)+MoveNext() in /_/src/extensions/windows/Microsoft.DotNet.UpgradeAssistant.Extensions.Windows/WinformsResultProvider.cs:line 66

[17:53:07 INF] Analysis Complete, the report is available at /Users/me/workspace/project/Environment/Tools/Company.Project.Tools.Controls/AnalysisReport.sarif

I think this error it's related to this part of another project csproj:

  <ItemGroup>

    <Compile Include="..\..\..\..\Infrastructure\AssemblyInfo.common.cs">

      <Link>Properties\AssemblyInfo.common.cs</Link>

    </Compile>

    <Compile Include="Areas\WorkingArea.cs" />

  </ItemGroup>

I changed the path separator from \ to / and my error now it's changed:

[...]

[17:55:56 FTL] Unexpected exception analyzing winforms references

System.IO.FileNotFoundException: Could not find file '/Users/me/workspace/project/Environment/Tools/Company.Project.DescriptorsConfigurator/Company.Project.Presentation.WPF.Controls.Core/CompositeEditors\ActionTextBox.cs'.

File name: '/Users/me/workspace/project/Environment/Tools/Company.Project.DescriptorsConfigurator/Company.Project.Presentation.WPF.Controls.Core/CompositeEditors\ActionTextBox.cs'

   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)

   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Func`4 createOpenException)

   [...]

Same thing happens when I fix this wrong path: the upgrade-assistant command find a new wrong filename path raising a new error. Of course I could also substitute all the wrong path separator with a regular expression search and replace, but I think the best course of action should be configuring upgrade-assistant to change the path separator (I'm migrating this project from Windows-only to multiplatform). It's possibile to do it?

There is no option to tell the upgrade-assistant which path separator to use and, as the warning indicates, we don't actually support WPF conversions on macOS or Linux (in fact, Linux isn't supported at all).
That said, if this is important enough to you, I would recommend taking a look at a lot of the work I did in porting the MAUI upgrade-assistant code-paths to use Path.DirectorySeparator and to do other path separator conversions: https://github.com/dotnet/upgrade-assistant/pull/1409
It's actually kinda complicated because you need to convert back and forth between / and \ on Unix systems because the .csproj needs to use \ while the actual file system needs / and to add even more complication onto that, any wildcard evaluated csproj paths will use / as well (instead of \ like all of the other csproj paths).
The good news is that the patch I linked to (which has already been merged in the latest main branch) exists and would likely be easy to hook into if you just go through the WPF converter code paths.
First thing you'll want to do is likely revert patches like this one: https://github.com/dotnet/upgrade-assistant/pull/1409/commits/5b0a814fba9aa88d20e850c9f58b486d15ba86e5


JSON view can show outdated content from the disk cache

Since we introduced the nocache parameter after previewing content, it can happen that the "user-friendly data rendition" is loaded from disk cache while the underlying content is up to date.

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

GitHub release
v6.50.1

Your semantic-release bot :package::rocket:


Zoom image referencing old image if image url changes

So I have <ngx-image-zoom [thumbImage]="selectedImage" [zoomMode]="'hover'" [magnification]="2" [enableLens]="true" [maxZoomRatio]="3" [enableScrollZoom]="true" ></ngx-image-zoom> for which selectedImage is a variable that I tend to change. After changing it, the hover still shows the zoomed image of the first referenced image

I've run into this very bug myself and it's on my shortlist of things to fix. Meanwhile, as a workaround, you can specify the same image as [fullImage] too, which should solve this issue. So:
<ngx-image-zoom
   [thumbImage]="selectedImage"
   [fullImage]="selectedImage"
   [zoomMode]="'hover'"
   [magnification]="2"
   [enableLens]="true"
   [maxZoomRatio]="3"
   [enableScrollZoom]="true" ></ngx-image-zoom>

Hope that helps!
I'll keep this issue open as a reminder to fix the bug so this workaround wont be needed anymore.

Thanks

Same issue for me.


cmd/compile: BCE/Prove do not take arithmetic into account

This is follow-up to https://github.com/golang/go/issues/19714 where prove/BCE were taught to take transitivity into account, but originally-motivating example where indices are constructed as arithmetic expressions remains with bounds checks not eliminated:
package hex

func Encode(dst, src []byte) {
        if len(dst) < len(src) * 2 {
              panic("dst overflow")
        }

        for i, _ := range src {
                dst[i*2] = 0         // XXX BC not eliminated
                dst[i*2+1] = 0       // XXX BC not eliminated
        }
}

$ gotip version
go version devel +030ac2c719 Tue May 1 05:02:43 2018 +0000 linux/amd64

$ gotip tool compile -S 3.go |go2asm

TEXT ·Encode(SB), $24-48 // 3.go:3
        // MOVQ    (TLS), CX (stack growth prologue)
        // CMPQ    SP, 16(CX)
        // JLS     158
        // SUBQ    $24, SP
        // MOVQ    BP, 16(SP) (BP save)
        // LEAQ    16(SP), BP (BP init)
        // FUNCDATA $0, gclocals·7578f313ff9d15b1ec5bd5c7e7ab3d8c(SB) (args)
        FUNCDATA   $1, gclocals·69c1753bd5f81501d95132d08af04464(SB) (locals)
        MOVQ       src+32(FP), AX       // 3.go:4
        MOVQ       AX, CX
        SHLQ       $1, AX
        MOVQ       dst+8(FP), DX
        CMPQ       DX, AX
        JLT        pc128
        MOVQ       dst+0(FP), AX
        XORL       BX, BX
        JMP        pc72                 // 3.go:8
pc63:
        MOVB       $0, 1(BX)(AX*1)      // 3.go:10
        LEAQ       1(SI), BX            // 3.go:8
pc72:
        CMPQ       BX, CX
        JGE        pc104
        MOVQ       BX, SI
        SHLQ       $1, BX               // 3.go:9
        CMPQ       BX, DX
        JCC        pc121                                // <-- NOTE
        MOVB       $0, (AX)(BX*1)
        LEAQ       1(SI)(SI*1), DI      // 3.go:10
        CMPQ       DI, DX
        JCS        pc63
        JMP        pc114                                // <-- NOTE
pc114:
        // PCDATA  $0, $1 (stack growth)
        // CALL    runtime.panicindex(SB)               // <-- NOTE
        // UNDEF
pc121:
        // PCDATA  $0, $1               // 3.go:9
        // CALL    runtime.panicindex(SB)               // <-- NOTE
        // UNDEF
pc128:
        // LEAQ    type.string(SB), AX  // 3.go:5
        // MOVQ    AX, (SP)
        // LEAQ    ·statictmp_0(SB), AX
        // MOVQ    AX, 8(SP)
        // PCDATA  $0, $1
        // CALL    runtime.gopanic(SB)
        // UNDEF
        // NOP
        // PCDATA  $0, $-1              // 3.go:3
        // CALL    runtime.morestack_noctxt(SB)
        // JMP     0

/cc @rasky, @josharian

FWIW, this is going to be very hard and surely impossible to generalize within the context of the current prove pass.

I do not think its safe to remove the bounds checks in the example given if e.g. len(src) is Int max. If i remember correctly wrap around of arithmetic operations is defined in go and the compiler can not assume they do not overflow. This could lead to dst being accessed with a negative index in the example.

On 386 we only need 1<<30+1 byte elements and that is possible without virtual memory.
GOARCH=386 go run main.go
package main

type T byte

var x int = 1<<30 + 1

func main() {
	s := make([]T, x)
	print("2*len is:", len(s)*2, "\n") // 2*len is:-2147483646
}

@martisch, @rasky, indeed the pre-check as presented in my original example is not 100% correct because of potential len(src) * 2 overflow, ans as Giovanni says it has to be changed to the following for correctness:
package hex

func Encode(dst, src []byte) {
        if len(dst) / 2 < len(src) {
              panic("dst overflow")
        }

        for i, _ := range src {
                dst[i*2] = 0         // XXX BC not eliminated
                dst[i*2+1] = 0       // XXX BC not eliminated
        }
}

my bad, thanks for spotting this.

About how to make deductions in such case, if I recall correctly, rational expressions has to be introduced, then we have rules:

len(src) ∈ [0, maxint]
len(dst) ∈ [0, maxint]
len(dst) / 2 ≥ len(src)
i ≥ 0
i ≤ len(src) - 1

=>

2⋅i ∈ [0, 2⋅len(src) - 2]
2⋅i + 1 ∈ [1, 2⋅len(src) - 1]

and the question is whether those expressions are within [0, len(dst) - 1] range.
Because we have connectivity between len(dst) and len(src) (rule 3), index expressions can be transformed to the following:

2⋅i ∈ [0, 2⋅⌊len(dst) / 2⌋ - 2]
2⋅i + 1 ∈ [1, 2⋅⌊len(dst) / 2⌋ - 1]

then we can omit the flooring in the upper limit because flooring makes expression only potentially a bit less, and by omiting it we can make the upper limit only a bit more which would still hold true, and then 2*/2 cancels:

2⋅i ∈ [0, len(dst) - 2]
2⋅i + 1 ∈ [1, len(dst) - 1]

which shows that both expressions are withing correct range for dst indexing.

@navytux, that's true, but bounds-check elimination needs to strike a balance between coverage and performance. We could put a full SMT engine in there and it could figure out amazing things, but I assert [1] that it wouldn't get substantially better coverage of most code. It would also substantially slow down the compiler while mostly spending that build time on code that's not performance critical (simply because most code is not) [2].
[1] It would be interesting to actually verify this. You could imagine wiring together https://godoc.org/golang.org/x/tools/go/ssa with, say, https://godoc.org/github.com/aclements/go-z3 to get a sense of what's possible.
[2] A possible far-off but intriguing idea is to use profile-guided optimization not just to direct the compiler's optimization decisions, but to direct where the compiler focuses more expensive optimizations.


Documents not saving to knowledge base?

I have gotten the project up and running and the functionality works correctly - but when I upload multiple documents. It does not appear to be referencing them in their entirety. Only the last document that was uploaded.
It also appears to not be saving the data that was stored.
It's entirely likely I am doing something wrong - but I was curious if there's anything I can check to ensure it's working properly.

I have been experiencing similar symptoms but I think it is caused by the same thing being reported in #24

I have been experiencing similar symptoms but I think it is caused by the same thing being reported in #24

Oh great - I looked at that thread yesterday and see you replied asking for clarification on how to do that. I'll see what I can find out and I can keep you apprised if there is not a reply to your question.


Translations update from Hosted Weblate

Translations update from Hosted Weblate for Flashy/Flashy.
Current translation status:

Thank you so much for your support, @Prasanta-Hembram! 😘

You're welcome! I'm glad I could help.


Merge initial styles into one file

Moved variables.css and typography.css into styles.css - this saves having to load both of those files.
Test URLs:

Before: https://main--milo--adobecom.hlx.page/?martech=off
After: https://combinestyles--milo--adobecom.hlx.page/?martech=off

@rgclayton I searched all consumers in github to see if they directly import variables.css or typography.css and did not find any instances.  Also added test consumer urls in description that I checked.


also enable optimizations in the test profile

Cargo doc says:

Note that when using the cargo test and cargo bench commands, the test/bench profiles only apply to the final test executable. Dependencies will continue to use the dev/release profiles.

So with the current settings, cargo test optimizes all dependencies but not the top level
crate (e.g. test/foo.rs)
This commit adds optimizations to the last rustc invocation of cargo test. This results in a 6%
reduction in binary size when doing cargo test on our sample test file.

oh, wait, we don't have bors here


Google Drive and Google Cloud Print

It's nice to have all this stuff, but what about the basics? I can't find the api for Google Drive or Google Cloud Print are they not here?

Hi @JohnSmall, thanks for the question. This repo is contains the ruby libraries for clients of the Google Cloud Platform APIs. Unfortunately, Google Drive and Google Cloud Print are not GCP APIs and because of that their gems would not be hosted in the git repo.
Google Drive has an API and clients. You can find out more about them here:
https://developers.google.com/drive/api/v3/downloads
The gem you are looking for is google-api-client, and the repo is google/google-api-ruby-client. This gem has clients for both drive_v3 and drive_v2 APIs. You can see more by checking out the Ruby Quickstart for Drive. Or view the documentation for DriveV3 and DriveV2.
Unfortunately, I wasn't able to find out much about Cloud Print. The API is described here, but it doesn't appear to be discoverable by Google's Discovery API, and because of that the API is not part of the google-api-client gem. I asked a couple of folks who work at Google about this but they were not aware of any supported clients for the API.
Does this help? Do you have any other questions?

Thanks for the quick reply. I'm new to the Google API ecosystem and finding it hard to find my way around. I'll check out the links you've included and see if I can work something out myself.
Is there a reason why Google Drive isn't part of the Google Cloud Platform APIs ? To me it suggests there's some sort of dividing line inside the Google suite so that some things you'd expect to be included aren't, e.g. Drive and Print, are there others? Where can I find out about the dividing line?
I did find a very old (2011) Python example of using the Cloud Print API, https://developers.google.com/cloud-print/docs/pythonCode. It comes with a warning that it's out of date. But the Cloud Print is listed as a beta, which suggests it's been in beta since 2011, and is therefore not a priority.
I need to use it because I have an EC2 hosted web site that has to print order sheets on an office printer as orders come in from customers. It's quite a tricky integration.

Is there a reason why Google Drive isn't part of the Google Cloud Platform APIs ?

They are two separate products. Google Cloud Platform has a Storage API, similar to AWS's S3.
https://cloud.google.com/storage/

I did find a couple open source gems for integrating with Cloud Print. I don't know anything about them other than they exist, however.
https://github.com/thegengen/cloudprint
https://github.com/dsaronin/kinokero
Good luck!


cnct: fix on-chain hodl invoice handling and simplify incoming resolver flow

One of the first things the incoming contest resolver does is checking if the preimage is available and if it is, convert itself into a success resolver.
This behaviour makes it unnecessary to already determine earlier in the process whether an incoming contest or a success resolver is needed.
By having all incoming htlcs go through the incoming contest resolver, the number of execution paths is reduced and it becomes easier to ascertain that the implemented logic is correct.

Integrated in #2913


Flexboxes on Data Page

I'm having some trouble getting my flexboxes to work properly on our data page. I think I have everything marked correctly; I am trying to have three graphs displayed on one row along the page with some text beneath each one explaining what they show / mean. I have placeholder images and text for now.
Note: I have inline CSS ONLY for showing my code all on one page. They will be separate once I push the code to the server.
@ebeshero @ajnewton1

@quantum-satire Aha! I believe the problem is a mismatch in your @id values between the CSS and the HTML. In your HTML the div @id is set to "flexcontainer", but in the CSS you're using "flexContainer" with camelCase.

@ebeshero Oh my gosh. That fixed it. Thanks so much!! I was going crazy haha


Use std threads if async runtime isnt used

In the event that tokio or async-std is not used, we should fall back to using system thread to handle processing the task

Resolved in #4


Stream output

Would be nice to be able to get a streamed output of the json. Would be useful for large arrays.

Nice idea. Dummy-json is just a collection of helpers for Handlebars though, and I don't think Handlebars natively support streams. However a quick search throws up a few libraries that add streaming support so perhaps I could utilise them instead. I'll add it to my todo list as a future enhancement. In the meantime I'll keep this issue open in case anyone else wants to weigh in :)


chore(master): release 1.4.2

:robot: I have created a release beep boop
1.4.2 (2023-03-21)
Miscellaneous

deps: update rabbitmq docker tag to v3.11.11 (e7bbe2b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-rabbitmq/releases/tag/v1.4.2 :sunflower:


I AM RUNNING Uptime Kuma Version: 1.20.2 Frontend Version: 1.20.2 HOW  TO UPDATE IT ON REPLIT TO NEW BETA VERSION

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
I AM RUNNING Uptime Kuma Version: 1.20.2 Frontend Version: 1.20.2 HOW  TO UPDATE IT ON REPLIT TO NEW BETA VERSION
🐻 Uptime-Kuma Version
1.20.2
💻 Operating System and Arch
REPLIT
🌐 Browser
REPLIT
🐋 Docker Version
No response
🟩 NodeJS Version
Latest

Later will send the command

The file name will be u.sh
And run it on shell like this bash u.sh

how to change version update command to the beta version

cd
Update from git
git fetch --all
git checkout 1.21.1-beta-1 --force
Install dependencies and prebuilt
npm install --production
npm run download-dist

cd
git fetch --all
git checkout 1.21.1-beta-1 --force
npm install --production
npm run download-dist

To make it easier create a file name u.sh then in shell do bash u.sh

when changing a version check in releases
git checkout (you put the exact version name you want to update to) --force


Problems reconciling PodSecurityPolicies

Expected behavior
I'm unable to apply a kustomize/kpt package with a reconciliation-timeout which contains PodSecurityPolicy resources.
Actual behavior
$ kustomize build metallb/ | kpt live apply --reconcile-timeout 30s
namespace/metallb-system failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
serviceaccount/controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
serviceaccount/speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
podsecuritypolicy.policy/controller configured
podsecuritypolicy.policy/speaker configured
role.rbac.authorization.k8s.io/config-watcher failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
role.rbac.authorization.k8s.io/pod-lister failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
clusterrole.rbac.authorization.k8s.io/metallb-system:controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
rolebinding.rbac.authorization.k8s.io/config-watcher failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
rolebinding.rbac.authorization.k8s.io/pod-lister failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
configmap/config failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
secret/memberlist failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
deployment.apps/controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
daemonset.apps/speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
17 resource(s) applied. 0 created, 15 unchanged, 2 configured, 0 failed
namespace/metallb-system is Current: Resource is current
role.rbac.authorization.k8s.io/pod-lister is Current: Resource is current
secret/memberlist is Current: Resource is always ready
serviceaccount/controller is Current: Resource is current
serviceaccount/speaker is Current: Resource is current
role.rbac.authorization.k8s.io/config-watcher is Current: Resource is current
clusterrole.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is current
rolebinding.rbac.authorization.k8s.io/pod-lister is Current: Resource is current
daemonset.apps/speaker is Current: All replicas scheduled as expected. Replicas: 1
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is current
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is current
configmap/config is Current: Resource is always ready
rolebinding.rbac.authorization.k8s.io/config-watcher is Current: Resource is current
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is current
deployment.apps/controller is Current: Deployment is available. Replicas: 1
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
Timeout after 30 seconds waiting for 2 out of 17 resources to reach condition AllCurrent:
PodSecurityPolicy/controller Unknown
PodSecurityPolicy/speaker Unknown

$ kubectl get podsecuritypolicies.policy
NAME         PRIV    CAPS                          SELINUX    RUNASUSER   FSGROUP     SUPGROUP    READONLYROOTFS   VOLUMES
controller   false                                 RunAsAny   MustRunAs   MustRunAs   MustRunAs   true             configMap,secret,emptyDir
speaker      true    NET_ADMIN,NET_RAW,SYS_ADMIN   RunAsAny   RunAsAny    RunAsAny    RunAsAny    true             configMap,secret,emptyDir

Information
kpt version: 0.39.1
kustomize package: https://github.com/metallb/metallb/tree/main/manifests (fetched with kpt pkg get)
Steps to reproduce the behavior
Validate that PodSecurityPolicies are correctly handled. I can provide a kpt package if necessary.

Hello Nicolas,
NOTE: PodSecurityPolicy was recently deprecated in Kubernetes version 1.21
(released today). It does NOT affect this issue, but you will eventually
want to move beyond the PSP (probably to a custom admission webhook).
The error which stands out to me is:
failed: can't adopt an object without the annotation
config.k8s.io/owning-inventory
http://config.k8s.io/owning-inventorysecret/memberlist
This means there are two different grouping inventory objects, and one
grouping is trying to adopt objects in the other. This means the
inventory-id of the ConfigMap already in the cluster is different from the
inventory-id for the ConfigMap created from the kustomize build command.
Are you trying to create two separate groupings of objects? The "
config.k8s.io/owning-inventory" can specify the inventory-id of the
grouping that should own the object.
To Debug:

Print out the inventory-id of the inventory ConfigMap already in the
cluster. The inventory ConfigMap name starts with "inventory-" and is
suffixed with an 8-digit (I believe) random integer:
kubectl get cm ->
kubectl get cm/inventory- -o yaml  ->

Print out the inventory-id of the inventory ConfigMap from kustomize
build:
kustomize build metallb/ | grep "inventory-"

Please report back here these values.
Thanks,
Sean Sullivan
On Thu, Apr 8, 2021 at 2:42 PM Nicolas Estrada @.***>
wrote:

Expected behavior
I'm unable to apply a kustomize/kpt package with a reconciliation-timeout
which contains PodSecurityPolicy resources.
Actual behavior
$ kustomize build metallb/ | kpt live apply --reconcile-timeout 30s
namespace/metallb-system failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryserviceaccount/controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
serviceaccount/speaker http://config.k8s.io/owning-inventoryserviceaccount/speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventorypodsecuritypolicy.policy/controller configuredpodsecuritypolicy.policy/speaker configuredrole.rbac.authorization.k8s.io/config-watcher failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryrole.rbac.authorization.k8s.io/pod-lister failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryclusterrole.rbac.authorization.k8s.io/metallb-system:controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryclusterrole.rbac.authorization.k8s.io/metallb-system:speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryrolebinding.rbac.authorization.k8s.io/config-watcher failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryrolebinding.rbac.authorization.k8s.io/pod-lister failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryclusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryclusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventoryconfigmap/config failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
secret/memberlist http://config.k8s.io/owning-inventorysecret/memberlist failed: can't adopt an object without the annotation config.k8s.io/owning-inventorydeployment.apps/controller failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
daemonset.apps/speaker failed: can't adopt an object without the annotation config.k8s.io/owning-inventory17 resource(s) applied. 0 created, 15 unchanged, 2 configured, 0 failednamespace/metallb-system is Current: Resource is currentrole.rbac.authorization.k8s.io/pod-lister is Current: Resource is currentsecret/memberlist is Current: Resource is always readyserviceaccount/controller is Current: Resource is currentserviceaccount/speaker is Current: Resource is currentrole.rbac.authorization.k8s.io/config-watcher is Current: Resource is currentclusterrole.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is currentrolebinding.rbac.authorization.k8s.io/pod-lister is Current: Resource is currentdaemonset.apps/speaker is Current: All replicas scheduled as expected. Replicas: 1podsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentclusterrole.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is currentclusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is currentconfigmap/config is Current: Resource is always readyrolebinding.rbac.authorization.k8s.io/config-watcher is Current: Resource is currentclusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is currentdeployment.apps/controller is Current: Deployment is available. Replicas: 1podsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentpodsecuritypolicy.policy/controller is Current: Resource is currentpodsecuritypolicy.policy/speaker is Current: Resource is currentTimeout after 30 seconds waiting for 2 out of 17 resources to reach condition AllCurrent:PodSecurityPolicy/controller Unknown PodSecurityPolicy/speaker Unknown$ kubectl get podsecuritypolicies.policy NAME         PRIV    CAPS                          SELINUX    RUNASUSER   FSGROUP     SUPGROUP    READONLYROOTFS   VOLUMEScontroller   false                                 RunAsAny   MustRunAs   MustRunAs   MustRunAs   true             configMap,secret,emptyDirspeaker      true    NET_ADMIN,NET_RAW,SYS_ADMIN   RunAsAny   RunAsAny    RunAsAny    RunAsAny    true             configMap,secret,emptyDir
Information
kpt version: 0.39.1
kustomize package: https://github.com/metallb/metallb/tree/main/manifests
(fetched with kpt pkg get)
Steps to reproduce the behavior
Validate that PodSecurityPolicies are correctly handled. I can provide a
kpt package if necessary.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleContainerTools/kpt/issues/1724, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYLQGVYBIGJOTA6WI7ERA3THYPOBANCNFSM42TX3MFQ
.

Ok so I deleted everything and started over (namespace included).
I decided to redeploy:
$ kustomize build metallb/ | kpt live apply --reconcile-timeout 2m
namespace/metallb-system unchanged
serviceaccount/controller created
serviceaccount/speaker created
podsecuritypolicy.policy/controller created
podsecuritypolicy.policy/speaker created
role.rbac.authorization.k8s.io/config-watcher created
role.rbac.authorization.k8s.io/pod-lister created
clusterrole.rbac.authorization.k8s.io/metallb-system:controller created
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker created
rolebinding.rbac.authorization.k8s.io/config-watcher created
rolebinding.rbac.authorization.k8s.io/pod-lister created
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller created
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker created
configmap/config created
secret/memberlist created
deployment.apps/controller created
daemonset.apps/speaker created
17 resource(s) applied. 16 created, 1 unchanged, 0 configured, 0 failed
deployment.apps/controller is NotFound: Resource not found
podsecuritypolicy.policy/controller is Current: Resource is current
role.rbac.authorization.k8s.io/config-watcher is Current: Resource is current
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is current
rolebinding.rbac.authorization.k8s.io/pod-lister is Current: Resource is current
role.rbac.authorization.k8s.io/pod-lister is Current: Resource is current
rolebinding.rbac.authorization.k8s.io/config-watcher is Current: Resource is current
podsecuritypolicy.policy/controller is NotFound: Resource not found
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is current
secret/memberlist is NotFound: Resource not found
serviceaccount/controller is Current: Resource is current
serviceaccount/speaker is Current: Resource is current
clusterrole.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is current
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is current
configmap/config is Current: Resource is always ready
daemonset.apps/speaker is NotFound: Resource not found
podsecuritypolicy.policy/speaker is Current: Resource is current
namespace/metallb-system is Current: Resource is current
podsecuritypolicy.policy/speaker is NotFound: Resource not found
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
secret/memberlist is Current: Resource is always ready
deployment.apps/controller is InProgress: Available: 0/1
daemonset.apps/speaker is InProgress: Available: 0/1
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
deployment.apps/controller is InProgress: Available: 0/1
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
deployment.apps/controller is Current: Deployment is available. Replicas: 1
daemonset.apps/speaker is Current: All replicas scheduled as expected. Replicas: 1
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
...
^C

Trying again in order to make sure no inventory warning messages show up:
$ kustomize build metallb/ | kpt live apply --reconcile-timeout 10s
namespace/metallb-system unchanged
serviceaccount/controller unchanged
serviceaccount/speaker unchanged
podsecuritypolicy.policy/controller configured
podsecuritypolicy.policy/speaker configured
role.rbac.authorization.k8s.io/config-watcher unchanged
role.rbac.authorization.k8s.io/pod-lister unchanged
clusterrole.rbac.authorization.k8s.io/metallb-system:controller unchanged
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker unchanged
rolebinding.rbac.authorization.k8s.io/config-watcher unchanged
rolebinding.rbac.authorization.k8s.io/pod-lister unchanged
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller unchanged
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker unchanged
configmap/config unchanged
secret/memberlist unchanged
deployment.apps/controller unchanged
daemonset.apps/speaker unchanged
17 resource(s) applied. 0 created, 15 unchanged, 2 configured, 0 failed
rolebinding.rbac.authorization.k8s.io/pod-lister is Current: Resource is current
role.rbac.authorization.k8s.io/pod-lister is Current: Resource is current
rolebinding.rbac.authorization.k8s.io/config-watcher is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
role.rbac.authorization.k8s.io/config-watcher is Current: Resource is current
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is current
deployment.apps/controller is Current: Deployment is available. Replicas: 1
daemonset.apps/speaker is Current: All replicas scheduled as expected. Replicas: 1
serviceaccount/controller is Current: Resource is current
serviceaccount/speaker is Current: Resource is current
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is current
secret/memberlist is Current: Resource is always ready
clusterrole.rbac.authorization.k8s.io/metallb-system:controller is Current: Resource is current
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker is Current: Resource is current
configmap/config is Current: Resource is always ready
namespace/metallb-system is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
podsecuritypolicy.policy/controller is Current: Resource is current
podsecuritypolicy.policy/speaker is Current: Resource is current
Timeout after 10 seconds waiting for 2 out of 17 resources to reach condition AllCurrent:
PodSecurityPolicy/controller Unknown
PodSecurityPolicy/speaker Unknown

And for debug purposes
$ k get cm
NAME                 DATA   AGE
config               1      6m33s
inventory-43929552   17     6m46s

$ k get cm inventory-43929552 -o yaml
apiVersion: v1
data:
  _metallb-system__Namespace: ""
  _metallb-system__controller_rbac.authorization.k8s.io_ClusterRole: ""
  _metallb-system__controller_rbac.authorization.k8s.io_ClusterRoleBinding: ""
  _metallb-system__speaker_rbac.authorization.k8s.io_ClusterRole: ""
  _metallb-system__speaker_rbac.authorization.k8s.io_ClusterRoleBinding: ""
  metallb-system_config-watcher_rbac.authorization.k8s.io_Role: ""
  metallb-system_config-watcher_rbac.authorization.k8s.io_RoleBinding: ""
  metallb-system_config__ConfigMap: ""
  metallb-system_controller__ServiceAccount: ""
  metallb-system_controller_apps_Deployment: ""
  metallb-system_controller_policy_PodSecurityPolicy: ""
  metallb-system_memberlist__Secret: ""
  metallb-system_pod-lister_rbac.authorization.k8s.io_Role: ""
  metallb-system_pod-lister_rbac.authorization.k8s.io_RoleBinding: ""
  metallb-system_speaker__ServiceAccount: ""
  metallb-system_speaker_apps_DaemonSet: ""
  metallb-system_speaker_policy_PodSecurityPolicy: ""
kind: ConfigMap
metadata:
  creationTimestamp: "2021-04-09T09:42:50Z"
  labels:
    app.kubernetes.io/instance: metallb-stage
    apps.kubernetes.io/managed-by: kpt
    cli-utils.sigs.k8s.io/inventory-id: 8dc3eb09-a03a-438a-8725-23ecfd327d20
  name: inventory-43929552
  namespace: metallb-system
  resourceVersion: "316969"
  selfLink: /api/v1/namespaces/metallb-system/configmaps/inventory-43929552
  uid: 3b2fb466-d501-44b0-9925-c2336e95196d

Now I understand that PodSecurityPolicies are being deprecated, but for the moment they are part of the metallb manifests, so I can't get around that. It seems as if the status cannot be read properly by kpt.
Let me know if you need any more info.

I got the same error,failed: can't adopt an object without the annotation config.k8s.io/owning-inventory, while live preview and live apply, after I've upgraded kpt to 0.38.1 (or 0.39.2) from 0.38.0.
The name and cli-utils.sigs.k8s.io/inventory-id  of the inventory ConfigMap  to be applied has not been changed between upgrades. Additionaly, they are also identical with the ones in the live cluster.
$ ./kpt_0380 version
0.38.0
$ kustomize build k8s | ./kpt_0380  live preview
serviceaccount/**** unchanged (preview)
...
$ ./kpt_0381 version
0.38.1
$ kustomize build k8s | ./kpt_0381  live preview
serviceaccount/**** failed: can't adopt an object without the annotation config.k8s.io/owning-inventory (preview)
...

Update: Today I found the --inventory-policy flag.  $ kpt live apply --inventory-policy adopt works well for me.

So there are two things here.
First, kpt does not by default allow a package to "adopt" resources that already exist in the cluster. This is generally not safe since later deleting the package will remove the resource from the cluster, when presumably it might still be needed. As @nonylene has described, the --inventory-policy flag makes it possible to change the default behavior.
The original issue about PodSecurityPolicies is a duplicate of https://github.com/GoogleContainerTools/kpt/issues/1329. PodSecurityPolicies are a cluster-scoped resource, but the example has PSP manifests with the namespace set. https://github.com/kubernetes-sigs/cli-utils/pull/378 in the upstream cli-utils repo makes sure the apply library verifies this and will return an error in these situations. These changes are being pulled into kpt in https://github.com/GoogleContainerTools/kpt/pull/2367, so this will be fixed in kpt once that PR is merged.

Thank you team
using --inventory-policy adopt via https://github.com/GoogleContainerTools/kpt/issues/1724
works well
before

michael@cloudshell:~/github/GoogleCloudPlatform/20220909-103 (lz-20220910-oldev)$ kpt live apply landing-zone
installing inventory ResourceGroup CRD.
namespace/config-control apply failed: can't adopt an object without the annotation config.k8s.io/owning-inventory
namespace/config-control reconcile skipped
configmap/setters unchanged
..
iampolicymember.iam.cnrm.cloud.google.com/log-sink-writer reconcile skipped
0 resource(s) reconciled, 90 skipped, 0 failed to reconcile, 0 timed out
1 resources failed

after
michael@cloudshell:~/github/GoogleCloudPlatform/20220909-103 (lz-20220910-oldev)$ kpt live apply landing-zone --inventory-policy adopt
installing inventory ResourceGroup CRD.
namespace/config-control configured
namespace/config-control reconcile pending
namespace/config-control reconciled
configmap/setters created
accesscontextmanageraccesslevel.accesscontextmanager.cnrm.cloud.google.com/commonaccesslevels created
accesscontextmanageraccesslevel.accesscontextmanager.cnrm.cloud.google.com/nonprodperimaccesslevel created
accesscontextmanageraccesslevel.accesscontextmanager.cnrm.cloud.google.com/prodaccesslevels created
accesscontextmanageraccesspolicy.accesscontextmanager.cnrm.cloud.google.com/orgaccesspolicy created
computefirewall.compute.cnrm.cloud.google.com/allow-egress-internet created


Add better error message

https://github.com/apollostack/GitHunt/pull/71

npm ERR! missing script: migrate

@felixb101 I don't think that's related.


solidworks file format

Thank you for your excellent work. When I tried to open the project's SolidWorks files, I received a version mismatch warning. Could you please let me know which version of SolidWorks you are using? Also, would it be possible to save the files in STEP format? The STP format is more universally compatible for 3D CAD file exchange.
I would greatly appreciate it if you could assist with this. Thank you!

I am using SolidWorks 2024.
I can definitely save a STEP version but it will take a few days. In the meantime hopefully you can at least use the STL files (which you can also open with SW).
Hope this helps!

Hi @jess-moss ,
Really a nice and useful work! But could you please save the SolidWorks files in an earlier version? Many engineers, including myself, aren't using the latest version. Alternatively, providing a STEP file would make it even more accessible across different software.
Thanks so much for your consideration and for the great work!

Hello @haoyangli16-- thank you so much! What version of SW do you recommend? I can pretty easily save these files as SW22 or  SW23. Would that be sufficient? In addition, it is on my list to save them as a step file- I just have not gotten around to it yet. Since a few people have asked, I will try and do that by the end of the week. Thank you!

@haoyangli16 @Kevin-spark just added the step files. Hope this helps!


Debug GitHub Actions issue

I've been working on #1275, and haven't been able to get the added script in actions/zerocopy_toolchain_version/action.yml to produce output usable by workflows/ci.yml. In particular, ${{ steps.toolchain.outputs.toolchain }} always interpolates to an empty string.
I'd love it if someone with more GitHub Actions experience could take a look and see if they can figure out what's going wrong!

It looks like adding the following here seems to do the trick:
outputs:
  toolchain:
    description: 'Resolved toolchain version'
    value: ${{ steps.resolve.outputs.toolchain }}

I followed the example from the doc.
Test run on my fork.
Note: I didn't see this as a GitHub issue, so wanted to flag the target clean up errors in this test run.

Originally, I thought I introduced these with the code change, but the errors appear in the official test runs as well. Example. It appears to be an issue with the action Swatinem/rust-cache, but haven't look into it further.

Amazing, thank you! I've also opened #1389 based on your observation about the target dir errors.


Update hacktoberfest2022.html [Made embedded video frame responsive]   closes #680

🛠 Fixes Issue
Made YouTube embedded video frame responsive, earlier the embedded video didn't used to change with different screen sizes which have been fixed now.
Please add hacktoberfest-accepted label thanks

👨💻 Changes proposed

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots
AFTER

BEFORE

Please add hacktoberfest-accepted label thanks

I created a new issue #680 , I don't know how you want me to label it as closes #680


kpng local up silent fail

maybe just
docker build ... || exit $?

;-)

ya thats fair already merged feel free to refactor


Refactor Connection Sparsity

This pull request introduces an extension to calculate the connection sparsity of the model.
From now on, it is possible to calculate the connection sparsity even though the model doesn't have layers supported by the documentation list.

Also consider the biases, like in RNN

I close this pull request, please refer to branch refactoring/full-lib
I'll create a pull request from there


Add READMEs for the quickstarts that point to the setup steps

Expected Behavior
Seems like google script no longer has a Calendar class.
Sample URL:https://github.com/gsuitedevs/apps-script-samples/blob/master/calendar/quickstart/quickstart.gs
Description:
Actual Behavior
Steps to Reproduce the Problem

You have to enable it first, via the steps here:
https://developers.google.com/calendar/quickstart/apps-script#step_2_turn_on_the

@erickoledadevrel I have same problem, and find the answer here. thanks.
I use TypeScript using @types/google-apps-script with clasp.
But there is no definition Calendar in it.
Instead of CalendarApp is exists.
Do you have answer what I am doing?
My assumption:
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29388 has empty calendar definition file.
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/google-apps-script/apis/calendar/v3.d.ts
Copy the definition from ↓ and works fine...?
https://github.com/googleapis/google-api-nodejs-client/blob/v37.2.0/src/apis/calendar/v3.ts

The original issue being discussed here is that until you enable the advanced service it won't be available at runtime. The instruction in the quickstart web pages mention this step, but we should have a README that does the same.
The missing TypeScript definitions is a different issue doesn't affect runtime. The TypeScript definitions are maintained by the community and not guaranteed to be accurate or up-to-date. The Apps Script advanced service is very similar to the Node.js one, but not identical.

@erickoledadevrel Thank you for your reply. Sorry about my question out of this issue.
I regret this page says gas can develop with typescript, but can not use advanced service easily.
I want to use advanced service with typescript, so I try to generate type definition of advanced service, I'll send pull request to DefinitelyTyped like Google slide  https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29388 .

I want to create some events through Google Calendar and synchronize them to a platform. Can I customize Google Calendar to create pages of events so that some fields can be stored by google-apps-script?

FYI, since April 2019, there have been TypeScript definitions for Advanced Services:
For example, see this for Calendar:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/google-apps-script/apis/calendar_v3.d.ts


Add a memP_map that subsumes memP_map_intro and memP_map_elim and includes an SMTPat

I don't understand why Sec2.HIFC.fst fails ;__;

Adding an SMTPat to memP_map_intro and/or memP_map_elim also causes errors, gave up on SMTPats and just added the forall lemma that I wanted.

Thanks @chandradeepdey . An alternate proof for the two lemmas would be using forall introduction, rather than repeating the induction. For example,
let memP_map_intro_forall (#a #b: Type) (f: (a -> Tot b)) (l: list a)
    : Lemma (forall x. memP x l ==> memP (f x) (map f l)) =

    introduce forall x. memP x l ==> memP (f x) (map f l)
    with memP_map_intro f x l

(See https://www.fstar-lang.org/tutorial/book/part2/part2_logical_connectives.html#constructive-classical-connectives for more on classical connectives.)
This way is a bit more modular. What do you think?

Thanks @chandradeepdey . An alternate proof for the two lemmas would be using forall introduction, rather than repeating the induction. For example,
let memP_map_intro_forall (#a #b: Type) (f: (a -> Tot b)) (l: list a)
    : Lemma (forall x. memP x l ==> memP (f x) (map f l)) =

    introduce forall x. memP x l ==> memP (f x) (map f l)
    with memP_map_intro f x l

(See https://www.fstar-lang.org/tutorial/book/part2/part2_logical_connectives.html#constructive-classical-connectives for more on classical connectives.)
This way is a bit more modular. What do you think?

Thanks! I was wondering whether there were other ways than writing the same thing again. But I still don't understand why the SMTPat caused issues the first time around. I thought it was the hints and tried regenerating them, but then that itself failed.
PS: Sorry about the rebase, I realised the mistake after doing it 😅


New feature: Opacity for pinned windows in ("Always on Top")

Description of the new feature / enhancement
->Can you please add a feature in 'Always on Top' to adjust opacity of the windows that have been pinned.
->Since you have already added the feature to pin multiple windows, can you make 'Opacity Adjuster' for each pinned window.
Scenario when this would be used?
-> While using 'Always on Top' feature,
->It would help multiple tasking better.
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/1084


Remove older runtimes

Removes some older runtimes (nodejs, python, swift, swift:3.1.1, swift:4.1, php:7.1, php:7.2) as proposed in #4246 and discussed in the Tech. Interchange Meeting

Description

Related issue and scope

[x] I opened an issue to propose and discuss this change (#4246)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[x] Tests
[x] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[x] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[x] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[x] I updated the documentation where necessary.

ActionsApiTest lines 1563-1612 currently fail
org.apache.openwhisk.core.controller.test.ActionsApiTests > Actions API should report proper error when runtime is deprecated FAILED
As far as I can tell, it was testing with Swift 3, which was deprecated. However, at the moment, there are no more deprecated runtimes, they were all removed.
Though I am not 100% sure what's actually going on there
Any thoughts @rabbah ?

this broke all kinds of actions in downstream repos.  the nodejs 6 runtime image contains many npm modules in it whereas the nodejs 10 one contains no npm modules.

many install scripts and tests that assume the modules are there by will need to be updated to explicitly set the node.js kind to 6.

if we want to stop using node.js 6 then the actions will need to be updated to zip actions and the necessary modules will need to be packaged into the zip.

If we pin the downstream repos to nodejs:6 kind that will suffice to resolve the breakage? Node 6 end of life is April.

I see the following fixes:

change the default back to node6 --- the way the catalog is installed it doesn't specify any kinds 😱 and lets the cli assume the default runtime as inferred from the file extension
change the utils.sh script to allow for a kind to be specified
replace utils.sh with wskdeploy and use a kind explicity
modify node 8/10 runtime to install the same package (but perhaps not pin to the patch level to allow for patches to be picked up automatically)

as node6 is reaching end of life, any fix that still uses node 6 as the kind postpones having to do what @jasonpet notes above: either packaging the deps into the action or modifing the runtimes to include at least the dependencies needed by the catalog.

@jasonpet I created https://github.com/apache/incubator-openwhisk-catalog/issues/294. It looks like there is a PR to move to wskdeploy based installation and so now might be a good time to pick it up and push it through.


Added module for plantuml

This adds a modules for weirongxu/plantuml-previewer

@jordanisaacs let me know if you want that last commit squashed

If you could squash it that would be great. The last thing is including the vim plug-ins as inputs which I mentioned in a comments. Otherwise lgtm! @wanderer

The release file: https://github.com/jordanisaacs/neovim-flake/blob/main/docs/release-notes/rl-0.1.adoc

@jordanisaacs just to clarify on this comment

. Also if you could address the vim plugins as inputs which I mentioned in a comments.

I should make pkgs.vimPlugins.plantuml-syntax and pkgs.vimPlugins.open-browser inputs to the flake instead of using the versions from nixpkgs?

@wanderer yep exactly.

@jordanisaacs should be done now!

lgtm thanks!


Question about Python version

I think you're using Python2.x, however scikit-learn==0.21.1 requires Python>=3.5. What should I do?

The code is indeed using python 2.7. I have fixed it to use scikit-learn==0.19.1. Thanks for noticing.


Fix invalid input handling for VolumeDrawer size field

What you describe is the intended behavior. It's a controlled component that forces the input to 0 when invalid. (before, it was displaying the string "NaN")


MOTECH-2667 Migrate admin server log to MOTECH-UI

This pull request is adding Admin Server Log section to the MOTECH UI.

@wstrzelczyk The only notes I have is expose a link in the admin navigation to the logs page, and squash down your commits — and I'll merge it

@nickdotreid Just a side note - it is possible to squash commits during pull request merge (might need to be enabled in repository settings - it is enabled on motech and modules repos)

@sebbrudzinski -- I didn't know that was a think... I'll go figure out how to do that

@nickdotreid https://help.github.com/articles/about-pull-request-merge-squashing/

@nickdotreid The admin navigation to the logs page is and was on proper place, can you explain me what you mean?

@wstrzelczyk, you are right, the link is now in the right place -- I either missed it or am slightly crazy (or maybe you snuck it in on a commit somewhere XP  )
I'll merge now


A regression bug of grpc Python library: grpc_tools.protoc.ProtoFinder isn't set.

What version of gRPC and what language are you using?
1.38.1
What operating system (Linux, Windows,...) and version?
macOS
What runtime / compiler are you using (e.g. python version or version of gcc)
Python 3.9.0
What did you do?
I found a bug that it raises ModuleNotFoundError by importing a protoc-generated module after upgraded grpcio to 1.38.1 from 1.33.2. I created a repository for reproducing the bug.
https://github.com/c-bata/grpc-issue-proto-finder
# example1.py in https://github.com/c-bata/grpc-issue-proto-finder
from foo import a_pb2_grpc

print("success")

Although this program won't raise ModuleNotFoundError on grpcio==1.33.2, this will raise ModuleNotFoundError on grpcio==1.38.1.
$ pip freeze | grep grpcio
grpcio==1.33.2
grpcio-tools==1.33.2
$ python example1.py
success

$ pip install -U grpcio grpcio-tools
$ pip freeze | grep grpcio
grpcio==1.38.1
grpcio-tools==1.38.1
$ python example1.py
Traceback (most recent call last):
  File "/Users/a14737/sandbox/protoc-bug-report-proto-finder/example1.py", line 5, in <module>
    from foo import a_pb2_grpc
  File "/Users/a14737/sandbox/protoc-bug-report-proto-finder/foo/a_pb2_grpc.py", line 5, in <module>
    import a_pb2 as a__pb2
ModuleNotFoundError: No module named 'a_pb2'

This exception is raised in a protoc-generated Python module:
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

import a_pb2 as a__pb2   # ModuleNotFoundError is raised here!!!

A related issue and a pull request are the followings:

https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-772720912
https://github.com/protocolbuffers/protobuf/pull/7470

What did you expect to see?
In grpcio==1.33.2, it won't raise an exception because grpc_tools.protoc.ProtoFinder is set on sys.meta_path while importing grpc package.
https://github.com/grpc/grpc/blob/ede7923116f60078d7bab1b9f9cc3e399fbece81/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py#L52-L64
But ProtoFinder is not set at grpcio==1.38.1 due to the change of https://github.com/grpc/grpc/pull/24993.  If I explicitly imports grpc_tools.protoc before importing a_pb2_grpc, ModuleNotFoundError won't be raised.
# example2.py in https://github.com/c-bata/grpc-issue-proto-finder
import grpc_tools.protoc

from foo import a_pb2_grpc

print("success")

This works fine with grpcio==1.38.1 because this program explicitly imports "grpc_tools.protoc" so that "grpc_tools.protoc.ProtoFinder" is set in sys.meta_path.
(venv) $ pip freeze | grep grpcio
grpcio==1.38.1
grpcio-tools==1.38.1

(venv) $ python example2.py
success

I think this is a regression bug that is introduced by https://github.com/grpc/grpc/pull/24993,
and we need to import grpc_tools.protoc from the grpc package as in the previous version.
What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?

This bug is resolved by https://github.com/grpc/grpc/compare/master...c-bata:python-proto-finder?expand=1, but I'm not sure if it is the correct approach.

@gnossen @lidizheng This problem is seemingly caused by https://github.com/grpc/grpc/pull/24993. Could you check this?

Thanks for the comprehensive reproduction and in-depth research!
I think there's a faulty assumption here. The ProtoFinder class you mentioned is only used for runtime code generation. Based on the fact that you have a codegen.py file invoking protoc, I'm assuming that's not what you're attempting to do. Instead, it seems you're using code generated ahead of time.
It's an interesting trick you've found that importing grpc_tools.protoc helps with getting imports to work correctly, but it's not the proper solution. The reason this is working for you is that a.proto is present in the same directory as example2.py and you have grpcio-tools installed. You also could delete your generated code (the foo/ directory), and the following code would work:
import grpc

a_pb2, a_pb2_grpc = grpc.protos_and_services("a.proto")

msg = a_pb2.FooMessage()

print("success")

See this example for more details.
In 1.33.2, you were unintentionally using this feature, even in example1.py. You can see this by deleting a.proto or uninstalling grpcio-tools. You'll fail to import a_pb2_grpc.
The solution to this difficulty in the way _pb2.py files do imports ultimately is something like https://github.com/protocolbuffers/protobuf/pull/7470, but that PR has not been merged yet. In the meantime, you can modify sys.path to make the imports work without modifying your generated code.
import sys
sys.path.append("foo")

from foo import a_pb2_grpc

print("success")

Closing as "works as intended", but feel free to reopen if you need any more info.


Add support for BuildingTag in VisualStudioTeamServices

This improves the VisualStudioTeamServices aka Azure DevOps integration, mostly just adds support for BuildingTag.
I removed one case from the BuildIntegrationTests, because in my tests even GitHub builds on Azure DevOps had the refs/heads/ prefix.
Closes #332

Thanks!


[contextresolver] adding benchs to ContextResolver.Get and ContextResolver.trackContext

What does this PR do?
TODO(remy): fill the description of the PR
Run benchmarks with:
cd pkg/aggregator
go test -tags test -bench=BenchmarkContextResolver ./...

Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe how to test your changes
Write here in detail how you have tested your changes
and instructions on how this should be tested in QA.
Describe or link instructions to set up environment
for testing, if the process requires more than just
running the agent on one of the supported platforms.
Checklist

[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] The need-change/operator and need-change/helm labels has been applied if applicable.
[ ] The appropriate team/.. label has been applied, if known.
[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] The config template has been updated if applicable.

Note: Adding GitHub labels is only possible for contributors with write access.

Things have changed a lot since this benchmark and something more accurate would be needed now anyway.


Added build Command

Easily build a .vsix.  package, changes below:

vsce packaging tool added to dev dependencies
activationEvents field was missing which caused build to fail
a build command to package  the source into a .vsix file

to build run:
npm run build

TY for the contribution much appreciated!


update GitHub actions

Coverage remained the same at 91.196% when pulling 6f5af779f16ca7159b2f6b842dfcc73ce170c79f on ranocha-patch-1 into 80da26e6323e0f5d9f971171bd815b71cf562753 on main.


How to merge and/or delete author names

When I first uploaded by database to TW, several copies of the same person's name entered the system as placeholders for the real one.
Gradually we are associating the sources with the unique name of each author and we are editing each taxon name so it is linked to the sources and also to the source authors (by using "clone from source" tool).
Now my question:
Whenever I associate a taxon with the REAL author, does the placeholder automatically disappear? Or does it keep appearing as a "red name" in the auto-complete list?
If so, how can I get rid of all those junk unused names which are not linked to anything but keep haunting my otherwise useful auto-complete list?

You want the "Uniquify people" task, it's does the merge seemlessly, though you have to grind 1x1.


Escape special characters in ANLTR strings. (#1600)

Thanks!

Thanks!

Ha, looks like I beat @Praetonus to the merge by a few seconds :wind_chime:

Yes, haha.

@jemc @Praetonus Thank you both!


Null pointer exception serializing OidcProfile

We have a problem using a shared session store with Pac4j oidc. There is a null pointer exception when Serializing OidcProfile.BearerAccessTokenBean,
The issue occurs in the toBean method,
public static BearerAccessTokenBean toBean(final BearerAccessToken token) {
        return new BearerAccessTokenBean(token.getValue(),
                token.getLifetime(), token.getScope().toStringList());
}

but at this time I am not sure if token is null or token.getScope() is null. I suspect the latter. @mmoayyed I know you worked on this previously, which do you think it might be? Would it be ok to use null in place of the null token / null scope list?
I will try to get this work planned in to our project, but in the mean time the issue is here if anyone else needs to work on it.

Which version of the library do you use? If I remember well, it has been fixed in the latest 1.8.x.

I think the code to do the actual serializing happened for 1.8, but I am experiencing trouble with that code. The original work is here I believe https://github.com/pac4j/pac4j/issues/194

Yes, here is the fix I did for version 1.8.3: https://github.com/pac4j/pac4j/commit/00ac2e17d65ae3904e17e77db0e4a36a67e3f95b
Can you try this version and report if it solves the problem? Thanks

Ah we're on 1.8.2.  Perfect, thanks for your time as always

This issue has not been resolved. We still had the issue in our system and I have managed to reproduce locally by manually invoking a serialization of the SecurityContext. During authentication, OidcProfile#clear() is called, which sets the bearer access token to null, causing a NPE on the new first line of BearerAccessTokenBean#toBean...
OidcProfile.clear() line: 95
ClientAuthenticationToken.eraseCredentials() line: 96
ProviderManager.authenticate(Authentication) line: 210
I understand this clearing to be a necessary part of authentication, so I will submit a patch to OidcProfile that properly handles (de)serialization cases where the access token is null.

OK. Thanks. Can you please send patches for branch 1.8.x and master? I'll release a 1.8.6 version for this fix.

We are using spring-security pac4j, so if you are able to release that as well with 1.8.6 it would be greatly appreciated

Yes, a release 1.8.6 is planned: currently, there are two other open issues (related to CAS): they will be tested and merged soon and then, I'll cut a release, likely next week.

@baxterj : I just released pac4j v1.8.6.

Hi jerome, thanks for that. Would you be able to cut a version of spring-security-pac4j with 1.8.6?

I can, though you can already use spring-security-pac4j 1.4.1 with any 1.8.x (and especially 1.8.6) version of pac4j.

Ok, I guess it should work. I should be able to fiddle my pom to use the new release within spring-security-pac4j as a transitive dep.

Exactly. Releasing all pac4j implementations would take a lot of time while we guarantee the backward compatibility for all 1.8.x versions.


Check sentry is working

Not getting notifications about uncaught exceptions, check sentry is wired up correctly

Explored this. It seems it is picking up exceptions. I think the coverage could be wider tho.


Circuit update - Input/Output equality

Inputs
    *private - pubkeys[NUM_NEIGHBORS]  // public key of neighbors
    *private - pubkey_i // public key of peer i
    *private - op_ji[NUM_NEIGHBORS]  // all neighbors opinions towards peer i
    *private - op_ij[NUM_NEIGHBORS] // local scores towards the neighbors j
    *private - signature_i // Signature on message: hash([c_ij[..] ++ pubkeys[..]])
    public   - iteration // Current iteration
    public   - pubkey_v // Public key of the verifier
    public   - score_v // Score for the verifier
    public   - message_hash // Message has for CVPs (Convergence validity proofs)
    constant - bootstrap_pubkeys[NUM_BOOTSTRAP_PEERS] // pubkeys of bootstrap nodes
    constant - bootstrap_score // Score of the bootstrap peers
    constant - scale // We have to scale the opinions (which are between 0 and 1)
                     // to do the arithmetic inside the circuit

i - the prover
j - neighbors of i

Contraints
  // Get the index of verifier pubkey
  let pk_index = index_of(pubkeys[..], pubkey_v)
  // Get the index of verifier score
  let score_index = index_of(op_ij[..], score_v)
  // Make sure that they are the same
  assert_eq(pk_index, score_index)
  // Check if we are a bootstrap node
  let is_bootstrap = set_membership(pubkey_i, bootstrap_pubkeys[..])
  // Is 0-th iteration
  let is_zero_ith = is_equal(iteration, 0)
  // Is bootstrap peer at zero iteration
  let is_bootstrap_at_zero = and(is_bootstrap, is_zero_ith)
  // Aggregate all the opinion proofs you got from the neighbors
  agreggate_neighbor_proofs(op_ji[..], pubkeys[..], pubkey_i, iteration - 1)
  // Calculate the sum of all the scored you got from all the neighbors
  let sum_ji = conditionally_select(is_bootstrap_at_zero, sum(op_ji[..]), bootstrap_score)
  // Compute the message hash that contains all of your opinions toward other peers
  // As well as their public keys
  let m_hash = poseidon_multi_sponge([op_ij[..] ++ pubkeys[..]])
  // Make sure the m_hash is equal to passed one
  assert_eq!(m_hash, message_hash)
  // Verify the signature on m_hash
  verify_eddsa_signature(signature_i, pubkey_i, m_hash)
  // Calculate the sum of your opinions toward your neighbors
  // TODO: overflow check
  let sum_ij = (op_ij[0] * sum_ji + .. + op_ij[n] * sum_ji) / scale
  // The amount of reputation coming in has to equal the amount that is coming out
  assert_eq(sum_ji, sum_ij)

The amount of reputation getting into the circuit has to equal the amount getting out of the circuit.
The neighbors keys you received reputation from should equal the keys you are giving reputation to.

Does the input neighbors have to be equal to the output neighbors?


Catch RuntimeException

Coverage remained the same at 99.519% when pulling dcc2f7083ed251abd030a580a70dc0a6bf7967d4 on hbxie:npe into 8ae1fb2b46783d1cb80dfb17a9e945753ca0d079 on bullet-db:master.


Looking forward to open source code and paper

thanks for your work, Looking forward to open source code and paper

Where is train.py file?
Look forward to the complete source code

Dear author，thanks for your work, Looking forward to open source code

Where is train.py file?
Look forward to the complete source code

Thank you for your interest in our project! The complete source code and paper link have been uploaded.


Add DownloadBuildArtifacts task.

@omeshp,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Improve API Queries

GET does not support JSON payload. GET should be a filtered list kind of deal. POST to entries/new-query with JSON payload of criteria methods.

Done: https://github.com/laravel-streams/streams-api/commit/6dd76c43409cc38288db0943bb1f754f95d7f29e


VS 2019 Live share ignore file

Issue
.ide file is not ignored when sharing a project in Visual studio 2019
The location of the file: .vs{Project}\v16\Server\sqlite3
Development Environment:

[x] Machine (Local, Container, Virtual): Local
[x] Operating System (Name/Version): Windows 10 1803
[x] Web Browser (Name/Version): Opera
[ ] Vapor Version: -
[ ] Swift Version: -

Expected Behavior:
Ignoring the .ide file named "storage.ide" located in ".vs{Project}\v16\Server\sqlite3"
Actual Behavior:
Not ignored
Reproduction Steps:
Use visual studio 2019 (v 16.0.2) live share tool in a (C#) project.

Thanks for the suggestions, all of the templates for gitignore.io are hosted here: https://github.com/toptal/gitignore. If you submit a PR in that repo, you'll get credit as a contributor and I can merge it in the next round.


Extending the catalog of recognized built-in elements

Since Vue 3 allows for custom renderers as an alternative to @vue/runtime-dom, A custom runtime might have it's own collection of 'native' elements. See Vugel for a good example. It supports built-in tags like <shader> and <container>.
At the moment @vue/babel-plugin-jsx will flag unknown native elements as a callExpression (https://github.com/vuejs/jsx-next/blob/dev/packages/babel-plugin-jsx/src/utils.ts#L111) if they are not matched in the catalog of known svg or html tags. How can we allow new native elements to be compatible JSX in Vue?

Do you mean isCustomElement ?

@Amour1688 yes that works, thanks! I saw it but thought it was a web components thing


pipelines-control-service: publish Swagger UI to /data-jobs path

The Swagger UI is currently available at root / by default. Since the
API is prefixed by /data-jobs, we would like for the Swagger to also be
available under same path, in a consistent fashion. This unblocks
services composition by dedicated path for accessing all features.
Did add Swagger configuration for additional controllers redirect and
resource handler. Updated an integration test to verify the path.
Updated also SecurityConfiguration swagger paths.
Testing Done: did run unit tests, and also verified swagger-ui.html is
accessible under /data-jobs locally
Signed-off-by: ikoleva<EMAIL_ADDRESS>

I've noticed another SwaggerConfig in the base module: https://github.com/vmware/versatile-data-kit/blob/main/projects/control-service/projects/base/src/main/java/com/vmware/taurus/service/doc/SwaggerConfig.java. Do you know what's its purpose and if it requires any attention in the context of this change?

I've noticed another SwaggerConfig in the base module: https://github.com/vmware/versatile-data-kit/blob/main/projects/control-service/projects/base/src/main/java/com/vmware/taurus/service/doc/SwaggerConfig.java. Do you know what's its purpose and if it requires any attention in the context of this change?

That's good to know; seems like a bare implementation, probably a marker one, would consider adding a comment why added to base module


Issue with version 1.0.0

Hello,
I installed the Pode module version '2.10.1' and the preview version 1.0.0.preview2 of the Pode.Web module.
When I run the following example:

on PowerShell 7.4.2, I get a 404 not found error, why?

Thx.

I've realized my mistake, that's how it works.


Fix the snapshot tests on Chrome

The icons are not showing in the button's snapshot tests on Chrome:

Neither on the cards:

Snapshot pages are working correct locally. Adding timeouts up to 20 seconds before taking the snapshot, did not solve the problem.
I'm really out of ideas on this one...

I was not able to find a solution for the problem till now. And we decided to realease anyway, because the problems are only present on percy snapshot tests.

Closing as won't fix.


Tentative new names for various buttons

How do you feel about changing the following buttons to have new names

Add/Edit contacts and faults ---> DRAW CONTACTS (faults are a type of contacts, the mappers aren't idiots)
Add/Edit Map Units ----> MANAGE MAP UNITS
Add/Edit Map Unit Polys ----> DRAW MAP UNIT POLYGONS

We have decided that rather than changing names, we would split up the ribbon so that "draw" buttons will be separated from  "management" buttons.

This is in b3eb8f5c6a04de6f84ede3060c8fcb6a9b69d2fd. Rather than lumping the three buttons in Projects section of the ribbon, there is now a Tables section, housing Map Units, and a Features section, housing Contacts And Faults and Map Unit Polys.


Create a github issue template for bug and feature entries...

See https://youtube.com/shorts/PilNDZsko3Y?feature=share for a quick intro.

Created an initial version: https://github.com/microsoft/vscode-jupyter/issues/new?assignees=octocat&labels=bug%2Cneeds-triage&template=3_bug_form.yml

Verified


Issue with "Start Tracking Time" Button in Stream Deck on MacOS

Hello,
I've encountered an issue with the "Start Tracking Time" button functionality in my Stream Deck plugin. Despite entering the API token correctly, the button does not function properly. Other features of the plugin, such as "Resume", "Stop Timer", and "Active Task", are working fine.
Details of the issue:
Task ID: I am using a format "two letters:number-number", which is different from the format presented in the README documentation where numbers are separated by hyphens. I'm unsure if this could be the cause of the issue.
Error Signal: Upon pressing the button on the Stream Deck, a yellow exclamation mark appears, indicating an error.
Plugin Version: I am using version 1.0.1.
Operating System: MacOS.
Hardware: Standard Stream Deck.
Could I please request assistance in resolving this issue? Is there a known issue with the Task ID format, or could there be other factors affecting this problem?
https://github.com/clamburger/everhour-for-stream-deck/assets/127491398/06d5b176-910d-42ea-95da-c70ef7d7277d
Thank you in advance for your help.

The grey play button means that the plugin thinks there's no task ID set for that button. I've noticed that sometimes the task ID doesn't get saved correctly, although it's usually fine after a restart. I'll experiment further once I have my Stream Deck in front of me.
Your task ID format sounds correct; the string with dashes is the API Token, and since your other buttons are working that means that API Token is set correctly.
Can I confirm that your button config looks something like this:

May I also get an example of the task ID you're using? You can replace the numbers with zeroes.

Yes, I agree. After resetting the Stream Deck app, everything often starts working correctly. This seems to be an issue related to Stream Deck itself, as I have noticed similar behavior when using several different plugins. It would be a good idea to add information in the settings or in the user guide that resetting the Stream Deck app can help resolve issues. This is often an effective way to solve minor technical problems. Thanks a lot! Great plugin!


syncthing: remote devices lost on reboot

Issue description
All remote devices that I have added to syncthing disappear when I reboot my machine.
Steps to reproduce
Add a remote device to syncthing.  Reboot.  The remote device has disappeared from the syncthing GUI and is no longer synced.
More information
Syncthing config is stored in /var/lib/syncthing/config.xml.  This file includes a list of all remote devices that have been added.  Restarting syncthing with systemctl restart syncthing preserves the list of remote devices, as expected.  But rebooting the machine causes them to disappear from the file.
Technical details

system: "x86_64-linux"
host os: Linux 4.19.44, NixOS, 19.09pre180443.4dd5c93998d (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.09pre180443.4dd5c93998d"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

try these options, they fixed something similar for me:
services.syncthing.declarative.overrideDevices = false;
services.syncthing.declarative.overrideFolders = false;

That worked, thanks!
Maybe these options should default to false?  I did not even know about the accompanying options services.syncthing.declarative.devices and services.syncthing.declarative.folders, and had not set them.

ping @Lassulus
I think this be disabled by default or mentioned in the release changes.

yes, this was a bug, which was introduced by the declarative changes.
It should be fixed by 0a2b9719fd82fdd4dc3267da80a941777e4e4a4a though

I will close this, as this should be fixed. If this issue still remains feel free to reopen it (if you can, otherwise just message me)

I'm having this exact issue. Every time I reboot, all my shared folders are lost. When I open the syncthing UI I'm greeted with a bunch of popups informing me that my remote machine wants to share folders with me.
This is my NixOS config:
syncthing = {
  enable = true;
  user = "tomas";
  dataDir = "/home/tomas/syncthing";
  configDir = "/home/tomas/.config/syncthing";
  overrideDevices = true;
  settings = {
    devices = {
      "<retracted>" = {
        id = "<retracted>";
        addresses = [ "<retracted>" ];
      };
    };
  };
};

Is it intentional that if I override devices I also have to override folders, or is this a bug?


[FEATURE] Created the all new logo

The Logo perfectly summarises what the platform stands for. Please assingn it to me i have my pr ready within 5 mins . and. plz add the hacktober tagg with the issue

hi @codingkatty plz assign it to me

hi! @Manjitpd sry but its done aldy :) Feel free to contribute for other things tho!


Nightly build to the extension

Seems like many icons are missing in the browser but present in the VSCode with the respective material theme. Please do update the addon and if possible can the extension be auto-updated with some schedule using GitHub actions.

You're right, looks like this is lagging 2 minor versions behind. I'll try to release an update tonight.
Last time I tried to automate the updates I couldn't find a good way to automate the release to the chrome store, which is the most time-consuming task of an update anyway. I'll check again to see if there are any new solutions around but please let me know if you know of any good workflows for that

@Claudiohbsantos I have refactored the extension while studying the codebase yesterday night to develop for MS Edge. Can I submit the PR of those changes?

@Claudiohbsantos Let add zip assets via CI for the MS Edge store so I can submit them manually for an update. When are we gonna release the next update of the extension?
If we can submit it this week then it will be better!

@shivapoudel I created a manual release until I finish the CD work: https://github.com/Claudiohbsantos/github-material-icons-extension/releases/tag/v1.4.0
I still have some hope of finishing the CD workflows this week, but I've ended up far busier than I expected so I thought it was safer to make a manual release just to get it out of the door already :)

I just pushed a first attempt at auto-updates to the chrome and firefox stores. The action will also cut a new release whenever a new upstream version is found.
https://github.com/Claudiohbsantos/github-material-icons-extension/commit/8aec94d59c4779d213fd7417d6ba0837b333aabd
I'll be monitoring it for a bit to make sure it actually works, but I'm closing this issue since this should address it :)


Adding advocate profile

Adding Christopher Maneu

OPS Build status updates of commit 6b6b783:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

advocates/christopher-maneu.yml
:white_check_mark:Succeeded
View

advocates/index.html.yml
:white_check_mark:Succeeded
View

advocates/map.yml
:white_check_mark:Succeeded
View

advocates/media/profiles/christopher-maneu.png
:white_check_mark:Succeeded
View

advocates/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Parsing is broken.

Steps to reproduce
iex(1)> Timex.parse("Mar18", "%b%y", :strftime)
{:error, "Expected `month abbreviation` at line 1, column 6."}
iex(2)> Timex.parse("Mar 18", "%b %y", :strftime)
{:ok, ~N[2018-03-01 00:00:00]}

Description of issue
What are the expected results?
iex(1)> Timex.parse("Mar18", "%b%y", :strftime)
{:ok, ~N[2018-03-01 00:00:00]}

If you are certain this is a bug in Timex, do you have references I
can use to check the algorithm/logic against? For instance, a well-established
date/time library in another language, a paper, test suite, etc. It is by no
means a requirement, but is immensely helpful in fixing bugs, and provides me
extra data to use when building out the test suite

Ruby 2.3.1
2.3.1 :001 > Date.strptime("Mar18", "%b%y")
 => #<Date: 2018-03-01 ((2458179j,0s,0n),+0s,2299161j)>

@bitwalker Thanks!


removing unnecessary enablements

refs #155276

I had thought the enablement trick was still necessary since I had issues getting this working, but now that it is working, I tested removing it and it doesn't seem to have an issue.

Looks like its coming from https://docs.microsoft.com/en-us/windows/win32/menurc/wm-initmenu?redirectedfrom=MSDN. Is this the officially accepted solution from Electron?


Add invokeApply option to $http

$timeout has the 'invokeApply' option that allows you to skip dirty checking. It would be very handy to have this option on $http as well.
Why: My application has a periodic $http request to look for updates on the server.  99% of the time there are no updates. It would be more efficient if angular could not run through the entire apply() loop in these cases, which can cause performance issues if the page has lots of bindings.  I am getting around this right now by using jquery ajax and calling apply() myself, but I would prefer to use angular's $http.

+1 from me, I consider it a very useful feature in order to be in control of digest cycles. There are scenarios when you have many isolated business components/directives on the page that make many $http calls, some of those request promises get aggregated, developer needs to be in control of promise callbacks triggering $scope.$apply() and maybe do it only once at the very last promise resolution.

+1 from me as well.

I'm having some success by directly calling $httpBackend. At least it means you don't have to include another library like jQuery.

See https://github.com/angular/angular.js/pull/12557

This would be an awesome feature for large applications that use multiple pooling ajax calls. Big +1.

I agree, this is not just for polling, it's relevant for many http requests scenarios. There are already pull requests so what's keeping it outside of the master?

I need this, too....

+1
As a side question: @dragosrususv why should we avoid $apply?  It seems circuitous to do a $evalAsync/$timeout when you can just do it directly.

+1,  this can be very helpful for apps that do polling..


Update travis

This change is

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Merged:D Thanks for your contribution! :-D


LARGE: Terraform IAC for GCP/GKE

Goal:
GKE cluster set up documentation
AC

[X] does GCP/GKE have anything similar to eksctl to make the provisioning easier?

@ranchodeluxe is there really a benefit to having the IAC stuff to spin up the cluster in this repository?
Ref: https://github.com/developmentseed/k8s-eoapi/issues/1#issuecomment-1586750152 .
I think I like the idea of having this repository focus on the Helm chart, and have another repository like k8s-seed or whatever as a generic way to spin up Kubernetes clusters on different cloud providers.
Of course, the Helm chart may need to take some configuration options to work correctly on different cloud providers - but I'd really like to split up the TF for creating the clusters to a separate thing, that's also generalizable beyond just eoAPI.
@ranchodeluxe do you see any problems with that approach? Do you think we might have very specific requirements for the cluster for eoAPI that means we should do that in this repository?
cc @sunu

Not sure why these comments are not coming through on my GH gmail threads so sorry about the late reply @batpad. I'm fine with that and what @sunu has done is good enough for now. Let me use his documentation to spin up a cluster in GKE and then plumb through the necessary annotations where needed


Renyi ELBO does not work with Rejector

In Rejector, both entropy_term and score_function_term are non-zero. I don't know how to derive the formula for Renyi elbo in that case, so I leave the issue here.
I think that it is the main reason why RenyiELBO failed for ShapeAugmentedGamma in test_inference::test_exponential_gamma.

You could raise a NotImplementedError in that case.

Close because this is just a minor issue.