Solve local exposure, the server opens the token, and the client call fails in dubbo3.0

What is the purpose of the change
Solve local exposure, the server opens the token, and the client call fails in dubbo3.0.
see more detail from #7024
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #7337 (9c2cf9c) into 3.0 (8c24a48) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                3.0    #7337      +/-   ##
============================================
- Coverage     57.46%   57.29%   -0.17%
  Complexity      357      357
============================================
  Files           983      983
  Lines         40137    40098      -39
  Branches       5996     5964      -32
============================================
- Hits          23066    22976      -90
- Misses        14363    14398      +35
- Partials       2708     2724      +16

Impacted Files
Coverage Δ
Complexity Δ

.../apache/dubbo/rpc/protocol/injvm/InjvmInvoker.java
88.23% <100.00%> (+3.61%)
0.00 <0.00> (ø)

...bo/config/event/listener/LoggingEventListener.java
37.50% <0.00%> (-25.00%)
0.00% <0.00%> (ø%)

...ng/transport/dispatcher/WrappedChannelHandler.java
47.82% <0.00%> (-15.22%)
0.00% <0.00%> (ø%)

...ng/transport/dispatcher/all/AllChannelHandler.java
68.96% <0.00%> (-13.80%)
0.00% <0.00%> (ø%)

...mmon/threadpool/support/AbortPolicyWithReport.java
85.00% <0.00%> (-12.50%)
0.00% <0.00%> (ø%)

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
0.00% <0.00%> (ø%)

...bbo/common/bytecode/CustomizedLoaderClassPath.java
20.00% <0.00%> (-11.43%)
0.00% <0.00%> (ø%)

...in/java/org/apache/dubbo/common/utils/JVMUtil.java
81.13% <0.00%> (-11.33%)
0.00% <0.00%> (ø%)

...va/org/apache/dubbo/remoting/TimeoutException.java
22.22% <0.00%> (-11.12%)
0.00% <0.00%> (ø%)

.../remoting/transport/netty4/NettyClientHandler.java
57.62% <0.00%> (-10.17%)
0.00% <0.00%> (ø%)

... and 45 more

Continue to review full report at Codecov.

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


LFS-679: When clicking (+) to add a form on a subject chart that can't have any child subjects, automatically assign that subject to the new form

Unable to create Tumor form from Tumor chart.

I can reproduce this bug on the LFS-679 but not on dev.

I can't reproduce the bug...

I cannot reproduce bug too.


Conversion of 12C OCP Upgrade Wiki pages to Jekyll format.

Final conversion of Section 1 has the following errors:
for f in $(find_unconverted_web_pages.sh| grep section-1)
do b=$(basename $f)
   convert_web_page.py -rgvl /tmp/${b}.log $f
done

Traceback (most recent call last):
  File "/home/douglas/bin/convert_web_page.py", line 66, in <module>
    with open(args.input_html_file_name[0], 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/douglas/git-repositories/dfhawthorne.github.io/docs/home/12c-ocp-upgrade/section-1-new-features-of-oracle-database-12c/emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics/generate-addm-compare-period.html'
Traceback (most recent call last):
  File "/home/douglas/bin/convert_web_page.py", line 66, in <module>
    with open(args.input_html_file_name[0], 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/douglas/git-repositories/dfhawthorne.github.io/docs/home/12c-ocp-upgrade/section-1-new-features-of-oracle-database-12c/emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics/diagnose-performance-issues-using-ash-enhancements.html'
Traceback (most recent call last):
  File "/home/douglas/bin/convert_web_page.py", line 66, in <module>
    with open(args.input_html_file_name[0], 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/douglas/git-repositories/dfhawthorne.github.io/docs/home/12c-ocp-upgrade/section-1-new-features-of-oracle-database-12c/emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics/perform-emergency-monitoring-and-real-time-addm.html'
/home/douglas/git-repositories/dfhawthorne.github.io/docs/home/11g-oce-rac/section-1---grid-infrastructure-clusterware-and-asm/making-applications-highly-available-with-oracle-clusterware/describe-the-high-availability-components-of-oracle-clusterware.html is a New Google Sites page

Visible verification of converted section 1 pages has been done. The changes to the above pages have been rolled back. The remaining section 1 pages to be converted were found by the following commands:
find_unconverted_web_pages.sh | \
    grep '12c-ocp-upgrade/section-1' | \
    cut -d/ -f10-

The results were:
resource-manager-and-other-performance-enhancements/explain-multi-process-multi-threaded-oracle-architecture.html
resource-manager-and-other-performance-enhancements/use-resource-manager-for-a-cdb-and-pdb.html
resource-manager-and-other-performance-enhancements/use-flash-cache.html
emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics.html
emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics/generate-addm-compare-period.html
emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics/diagnose-performance-issues-using-ash-enhancements.html
emergency-monitoring-real-time-addm-compare-period-addm-and-active-session-history-ash-analytics/perform-emergency-monitoring-and-real-time-addm.html

Did conversion of section 2 pages using the following commands:
for f in $(find_unconverted_web_pages.sh| grep $(pwd))
do echo $f
   b=$(basename $f)
   convert_web_page.py -rgvl /tmp/${b}.log $f
done

Visually validated section 2 pages.


Issue 2352 Additional filters for super-admin user index

Fixes #2352
Changes proposed in this PR:
To add an organisational-filter, along with a filter for permissions (to easily see all org/super-admin users on your instance)
A solution to this problem was to allow users to search by organisation and by adding a check box that filters users with permissions. For example, a “super-admin’ can search for an UoE user with  the ability  to “add organisations”, “modify templates” and “modify guidance”. The way the filter by permissions work is by looking for users with one or more types of permissions.
There was a javascript validation to only submit the search for when there was search text. This was stopping the permissions filter to submit. The decision to remove this validation was not only to allow the filter to work but as well to allow the user to clear the search box in order to clear the search results.

think this one should be a PR to development (it looks like it was based off of that branch).


Perfview 3.0.0-preview2: Throwing System.Runtime.InteropServices.COMException

PerfView logging started at 04/04/2022 11:10:33
[EXECUTING: PerfView collect C:\Perfview\Out\DE4C04C48F1A.11-00-54.etl /LogFile:C:\Perfview\Out\DE4C04C48F1A.11-00-54.log /MaxCollectSec:300 /Circular:6656 /CircularMB:6656 /BufferSize:1024 /BufferSizeMB:1024 /Merge:TRUE /Zip:TRUE /RundownTimeout:300 /ThreadTime /TrustPdbs /AcceptEULA /NoView /NoGui]
[Kernel Log: C:\Perfview\Out\DE4C04C48F1A.11-00-54.kernel.etl]
Kernel keywords enabled: ThreadTime
Aborting tracing for sessions 'NT Kernel Logger' and 'PerfViewSession'.
Ensuring .NET Allocation profiler not installed.
Detected 64 bit system, removing 32 bit keys.
[Exception Occurred: System.Runtime.InteropServices.COMException (0x80070296): Exception from HRESULT: 0x80070296
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.Diagnostics.Tracing.Extensions.ETWControl.EnableStackCaching(UInt64 traceHandle)
at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.EnableKernelProvider(Keywords flags, Keywords stackCapture)
at PerfView.CommandProcessor.Start(CommandLineArgs parsedArgs)
at PerfView.CommandProcessor.Collect(CommandLineArgs parsedArgs)
at PerfView.CommandProcessor.ExecuteCommand(CommandLineArgs parsedArgs)]
[DONE 11:10:33 FAIL: PerfView collect C:\Perfview\Out\DE4C04C48F1A.11-00-54.etl /LogFile:C:\Perfview\Out\DE4C04C48F1A.11-00-54.log /MaxCollectSec:300 /Circular:6656 /CircularMB:6656 /BufferSize:1024 /BufferSizeMB:1024 /Merge:TRUE /Zip:TRUE /RundownTimeout:300 /ThreadTime /TrustPdbs /AcceptEULA /NoView /NoGui]
This exception I get when trying to run Perview from command line. Anything I can do about it ?

@AF250329 a couple of questions about this:

Does this repro with the latest 2.x of PerfView?
Can you share the machine architecture/OS and whether or not this is a VM, container environment, etc?

Thanks.

@brianrob

Yes - I tried the same command line on Perfview v2.0.68 (the same results)
Yes - I am running perfview inside container

Thanks @AF250329.  The reason this is failing is because you are running inside of a process isolation container.  Windows process isolation containers don't support capturing kernel events.  If you want to capture a trace that includes kernel events (e.g. CPU samples, context switches, etc.) then you will want to perform the capture on the host, and make sure to specify /EnableEventsInContainers on the command line.  This will cause all events that are emitted inside of a container to flow back to ETW sessions on the host.
The only other option that I'm aware of if you must capture within the container is to convert the container from a process isolation container to a Hyper-V container.  This is effectively a VM and so the kernel won't be shared.


Social icons should have hover text and other accessibility attributes

@sebbASF I would like to work on the issue, kindly assign it to me

@AnshulGoyal589 Done. Please ping me when a PR is ready for review.

@bproffitt is the issue still open? if yes kindly assign it to me


Add support for the typescript projects and IDE-s.

This PR adds support for the typescript projects and IDE-s which supports TS, for example VS-Code.

I would be happy if you could merge it :)
Thanks,
Maciek.

Cool!
I have no clue if this is correct or not, since I don't know Typescript, so I'll just go ahead and merge it.

Published to NPM as v1.0.6. Thanks!

Dear @ma2ciek ,
I have troubles while using your Typescript definitions.
When I do import statement I have error like this, both in VSCode and command line:

I also tried this style but with the same result.
import * as pofile from 'pofile'

So, I inspected pofile.d.ts and just noticed that it has some different style that I am used to. I did comparison with other d.ts files for example from moment package and it is really in different format.
I tried to update pofile.d.ts and it works, see this: Gist
So I can import package like this:
import * as pofile from 'pofile'
...

    for (const poFile of poFiles) {
        const poContent = fs.readFileSync(poFile, "utf-8");
        const poFileParsed = pofile.parse(poContent);
        console.log(`file ${poFile}, items: ${poFileParsed.items.length}`)
    }

I use Typescript version 2.2.2, just in case.
Do you have examples how to import your definitions? Or do you think it is reasonable to create pull request to update your definitions?
Thanks,
Oleksandr.

Thanks for reporting this issue @megaboich
Probably your declaration file is better. Mine should work with import PO from 'pofile'; syntax, as I was trying to make it work inside the JS file with the CommonJS syntax (const PO = require( 'pofile' ). I didn't know even, that you can declare module as a namespace and import it with ES6 import syntax, so I learned something from you ;) (I'm still a little bit confused about the available options in import / export in the d.ts files)
If your compiled JS code works with this declaration file, feel free to make a PR.
Maciek.

Thanks @ma2ciek for your quick response.
I've created pull request https://github.com/rubenv/pofile/pull/29
Could you please verify that it works for you?


b2 submission space

Node ID : 37b194f70924088a

rejected:B2
reason:logs are missing

rejected:B2
reason:logs are missing


Add a formal license

Can you add a formal license to this mod's source? If you're unfamiliar with them, here's some popular options from most permissive to most restrictive:

MIT license (lets people do pretty much whatever they want as long as they give you credit for your work)
GPL/LGPL (requires that forks also have their source be GPL/LGPL so that your source remains open)
CC-BY-NC-SA (also doesn't allow making money off of it)

The "Permissions" section is pretty vague, but if I have the spirit correct, you may also want to consider dedicating the mod to the public domain, but be mindful if you go that route, what that actually means, it means anyone can use your code in anyway they want without any reference of any type to you.

I also think this is necessary. And I also have the same problem.
#166

Ok, I guess the license would vaguely be an MIT one, but a bit looser - I'll put one into the GitHub description :)

Hmm, by that amendment, it sounds like you actually want this to be public domain. You may want to consider explicitly using CC0 or the Unlicense to do that rather than "MIT with an amendment".

CC0 it is!

Awesome!
(Can you also mark this as public domain on CurseForge? It currently still says All Rights Reserved there.)

Will do :)


About dataset_conversion file

Would you please upload a 2D dataset_conversion file of AMOS dataset ?

Hi,
Thank you for your interest in our work. The AMOS dataset is a high-resolution 3D CT dataset. The difference with 3D models with 2D models would be large. If you want to use 2D models, you can either directly use the 3D dataset_conversion, or refer to the ACDC dataset for a 2D version of dataset_conversion. The only difference between the preprocessing of 2D and 3D is that 2D doesn't need to resample along the z-direction.

Thanks for your kind response. According to your advice i did the dataset_conversion of acdc data into 3D dataset_conversion, and trying to run your code using the medformer model. But unfortunately getting this error.
RuntimeError: Exception thrown in SimpleITK ImageFileReader_Execute: D:\a\1\sitk\Code\IO\src\sitkImageReaderBase.cxx:97:
sitk::ERROR: The file "C:/Users/lenovo/PycharmProjects/CBIMM/dataset/acdc/acdc_3d\patient021_0.nii.gz" does not exist.

This is my query of code for the training (python train.py --model medformer --dimension 3d --dataset acdc --batch_size 3 --unique_name acdc_3d_medformer --gpu 0) and this is the data_root: (C:/Users/lenovo/PycharmProjects/CBIMM/dataset/acdc/acdc_3d)

Thanks for your valuable reply.


Config DISABLE_USERS_PAGE doesn't work.

Description
When I set DISABLE_USERS_PAGE to true in /etc/data/app.ini and then restart the container, the explore still exists. The configuration is as follows.
[service.explore]
;;REQUIRE_SIGNIN_VIEW = true
DISABLE_USERS_PAGE = true

I tested other configuration like [openid] that both ENABLE_OPENID_SIGNIN and ENABLE_OPENID_SIGNUP were set to false, and that worked. As well, I find [service.explore] is not in app.example.ini.
Gitea Version
1.22.1
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
No response
Operating System
docker
How are you running Gitea?
version: "2"
services:
server:
image: gitea/gitea:latest-rootless
restart: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:2222"
Database
SQLite

It's only for 1.23. https://docs.gitea.com/next/administration/config-cheat-sheet?_highlight=disable_users_page/next/administration/config-cheat-sheet#service---explore-serviceexplore

Ok, I will update the version to 1.23. Thanks a lot.


More of a request.....simple highlights

I'd love to have options to i.e highlight or place an arrow in part of an image ..... like in the screenshot app on E24.
Quite often I find myself needing to open another app like "gimp", "xournal" or "krita" simply to accentuate part of an image in my workflow.....it would be awesome to be able to use the viewer to select an image (or in time maybe just a part of it) and add what I need there, like a circle or an arrow.
All very rudimentary (a line, an arrow, a box or circle) of course ...... the named other apps can do it quite well for heavy duty, if need be.

you want to overlay a box, etc... over the image ?
please provide a screenshot of what you want :) So that I understand correctly what you want

@vtorri i think triantares means that he could add shapes, text, boxes, etc... to the image ... basic editing functions

in that case, no. My plan is to do an image viewer, that's all. No basic editing. The app you request would be another app.

I found this useful too for doing something, like for example you want to send an image to someone via email / whatsapp-web but you want to "hilight" something (like "hey! check this element HERE")
Also as another suggestion (not sure if is not the same), being able to hilight a portion of the image (like, selecting a box) and by hitting "ctrl +c", we have this piece of the image copied to the clipboard, ready to be send or used in other applications :thinking:

to "hilight" something (like "hey! check this element HERE")

It would be a nice feature but does indeed sound more like an "edit" feature than the simple Ctrl-c to copy the file path.
I'll leave it up to @vtorri to decide if he wants to do that or not.
If not I'll gladly close the issue.


Add comments link keyboard shortcut

This adds a pair of keyboard shortcuts 'c' and 'C' that mirror the shortcuts to open the original article ('v' and 'V'), opening the comments link instead. While often an article's comments are on the same page as the original link, sometimes that is not the case. For example, a feed for a social bookmarking site might have the original link point to the linked page, and the comments feed point to the bookmarking site's comments (Hacker New RSS does it this way).
I have not documented the shortcut anywhere; I wasn't sure how internationalization was handled. I'm happy to add it for what languages I feel confident, and leave it up to others (or machine translate) the rest.

Whoops, I added the code for the entry page after the list view, and didn't realize the entry selector would trigger on the list view. Thanks for catching that!


Multiple e-mail accounts

Hi,
Thank You for that script, it works as expected. Now I try to add some more e-mail accounts. Is it possible?

Thank you for your idea. I've just published some commits to support multiple e-mail accounts. Check the updated config.ini to see how to configure it.


Add navigator pattern for changing screens/navigation

Implement the navigator pattern found in the Viper architecture for screen changes/navigation

Will be solved by using the Android Navigation from Jetpack https://developer.android.com/topic/libraries/architecture/navigation/


Improve plugin copy

Hey, thanks for making this in a proper open license.
This MR just improves the copy of the plugin, as with the old phrasing, it wasn't clear to the end user that an email was delivered, as it just used the standard OTP copy. I didn't add a tr message as i don't know the language.
I also fixed resendCode not being templated correctly while I was at it (messages for the template should be next to the template)

Thank you for your contribution; I will fix the language files


Release v0.7.0

[ ] https://github.com/tektoncd/chains/pull/284
[x] https://github.com/tektoncd/chains/issues/279
[ ] Include backwards incompatible change from #300 in release notes

It looks like all the PRs for the 0.7 release got merged 👍

Awesome! I think we should be good for a v0.7 release in the next few days; I just want to look into this bug first. Will add https://github.com/tektoncd/chains/issues/320 to the list :)


Support gnu date iso 8601

There's two things that arrow isn't doing quite right with respect to fractional seconds:

The separator is sometimes comma. In fact, this is the "preferred" separator per the standard.
The fractional seconds have arbitrary precision; the only requirement is that the sender and receiver agree on the precision. For example, a high-energy physics lab might use iso-8601 timestamps with attosecond precision without violating the standard.

I've left a couple TODO's below, on which I'd like to get your input. I had to make a couple compromises when implementing this:

Python's stdlib datetime only accepts microseconds, so any fractional seconds of higher precision have some data loss, but are parsed as accurately as possible.
In "fixing" the date-format code, I made any number of S match any number of fractional seconds. I can't see any drawback to this, and some benefit, but you may consider this to be incorrect.

Current coverage is 100% (diff: 100%)

Merging #372 into master will not change coverage

@@           master   #372   diff @@
====================================
  Files           8     14      +6
  Lines        1244   2704   +1460
  Methods         0      0
  Messages        0      0
  Branches      193    201      +8
====================================
+ Hits         1244   2704   +1460
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update 319f2d0...0ff437f

I like it. The one thing I'd like is to remove the rounding bit. That seems like a bit of magic from the end users point of view. Or if it is now a "feature" the docs need to be updated to reflect it.

I've removed the rounding, but left it in the history in case anyone wants to discuss or look at it in future.

The last commit adds the rounding, as well as its documentation and necessary test changes.

Bump

👍

:shipit:

Excellent. I'll get this merged in today with the rest of the ones I've tagged.

Great! Let me know when it gets to pypi.

(bump)


update style guide, accordingly to recent changes for all import changes for CR

Description
This PR update style-guide accordingly to https://dt-rnd.atlassian.net/browse/K8S-10064
How can this be tested?
Read it and compare with https://github.com/Dynatrace/dynatrace-operator/pull/3451 changes

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.25%. Comparing base (7677e1f) to head (bdd43ba).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3462   +/-   ##
=======================================
  Coverage   57.25%   57.25%
=======================================
  Files         344      344
  Lines       19791    19791
=======================================
  Hits        11331    11331
  Misses       7222     7222
  Partials     1238     1238

Flag
Coverage Δ

unittests
57.25% <ø> (ø)

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

package abc
import (
	edgeconnectv1alpha1 "github.com/Dynatrace/dynatrace-operator/pkg/api/v1alpha1/edgeconnect"
	edgeconnectv1alpha2 "github.com/Dynatrace/dynatrace-operator/pkg/api/v1alpha2/edgeconnect"
)

done in 9a7bef9f

I would prefer to stick with current version:
https://github.com/dynatrace/dynatrace-operator/blob/7677e1ffa4b7161ff4b020d24f474ef24ddd9539/cmd/webhook/builder.go#L9-L10


[Test-Proxy] Current default dev certificate will not work on mac

Shown in this commit.
We exported our pfx using pkcs12 format, while the mac keychain explicitly requires x509. We need to either re-roll a cross-compatible one, or simply split it out and use it.

@scbedd The following command failed on Mac. Is it same error you mentioned above?
dotnet dev-certs https --clean --import eng/common/testproxy/dotnet-devcert.pfx --password="password"
Cleaning HTTPS development certificates from the machine. This operation might require elevated privileges. If that is the case, a prompt for credentials will be displayed.
HTTPS development certificates successfully removed from the machine.
The provided certificate file 'eng/common/testproxy/dotnet-devcert.pfx' is not a valid PFX file or the password is incorrect.

@yeongseon I believe so, yeah. Apologies for the lack of traction on the issue! I'll try to push a bit harder on getting access to a mac machine to debug this locally. I saw that @jeesang7 submitted a PR around this and I need a machine to actually validate it. 👍


Blazor chained bind

Fixes #14144
Internal Review Topic (direct link to the new Chained bind section)
The chained bind concept and checking values with the property's setter concept seem to me to be two different things. One doesn't need to perform any checking if they're just binding to an element and binding across nested components. Therefore, what I do here is cover chained bind first. Get that basic idea out of the way. Then, I expand upon chained bind with a check for spaces in the password value in a second example. This 🤠 Texas Two-step 🤠 makes sense to me because it avoids complexity when explaining the basic concept while not losing the great example of checking values simultaneously in the child component.
I made a few (I hope simplifying) changes. Does anything fall into the RexHacks:tm: 🤦♂ category?
@epsitec, do you want to :eyes: this and comment on it? Also, I was curious about what sort of check(s) you performed on your password?
Note-to-self after chatting with @Legends: When this makes its way into the sample app (later), we might want to put a button in the parent that changes the value of the password field (just use a hardcoded value in a method) to show the two-way binding aspect. It could even be as simple as a Clear password button that does a password = string.Empty() in the parent.

Your split example makes complete sense and would have been really helpful at the time when I was writing the code and upgrading through the various previews.
Originally, I had a custom setter, because I was raising changed events from there. I did not implement any form of validation in the password field, but that would be a good scenario, in case the password field has to implement its own intelligence for that.
By the way, do you have any guidance as to how you recommend that we implement form validation with Blazor?

implement form validation with Blazor

https://docs.microsoft.com/aspnet/core/blazor/forms-validation


fix_untrained_tokens doesn't work with zero-3

Please check that this issue hasn't been reported before.

[X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior
n/a
Current behaviour
n/a
Steps to reproduce
n/a
Config yaml
No response
Possible solution
i think this is because the embeddings are sharded
Which Operating Systems are you using?

[X] Linux
[ ] macOS
[ ] Windows

Python Version
3.11
axolotl branch-commit
main
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of axolotl.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

Ran into this today. For the sake of anyone else arriving from google, I'm using python 3.12 and release version 0.6.0. My config yml has:
fix_untrained_tokens: true
And my error looks like this:
/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/core/trainer_builder.py:444: FutureWarning: `tokenizer` is deprecated and will be removed in version 5.0.0 for `AxolotlTrainer.__init__`. Use `processing_class` instead.
  super().__init__(*_args, **kwargs)
/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/core/trainer_builder.py:444: FutureWarning: `tokenizer` is deprecated and will be removed in version 5.0.0 for `AxolotlTrainer.__init__`. Use `processing_class` instead.
  super().__init__(*_args, **kwargs)
[rank2]: Traceback (most recent call last):
[rank2]:   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
[rank2]:     return _run_code(code, main_globals, None,
[rank2]:   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
[rank2]:     exec(code, run_globals)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/cli/train.py", line 58, in <module>
[rank2]:     fire.Fire(do_cli)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/fire/core.py", line 135, in Fire
[rank2]:     component_trace = _Fire(component, args, parsed_flag_args, context, name)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/fire/core.py", line 468, in _Fire
[rank2]:     component, remaining_args = _CallAndUpdateTrace(
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
[rank2]:     component = fn(*varargs, **kwargs)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/cli/train.py", line 34, in do_cli
[rank2]:     return do_train(parsed_cfg, parsed_cli_args)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/cli/train.py", line 47, in do_train
[rank2]:     model, tokenizer = train(cfg=cfg, cli_args=cli_args, dataset_meta=dataset_meta)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/train.py", line 133, in train
[rank2]:     fix_untrained_tokens(model, tokenizer, train_dataset)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
[rank2]:     return func(*args, **kwargs)
[rank2]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/core/tokenizer_utils.py", line 51, in fix_untrained_tokens
[rank2]:     min_size = min(embedding_matrix.shape[1], lm_head_matrix.shape[1])
[rank2]: IndexError: tuple index out of range
[rank5]: Traceback (most recent call last):
[rank5]:   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
[rank5]:     return _run_code(code, main_globals, None,
[rank5]:   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
[rank5]:     exec(code, run_globals)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/cli/train.py", line 58, in <module>
[rank5]:     fire.Fire(do_cli)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/fire/core.py", line 135, in Fire
[rank5]:     component_trace = _Fire(component, args, parsed_flag_args, context, name)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/fire/core.py", line 468, in _Fire
[rank5]:     component, remaining_args = _CallAndUpdateTrace(
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
[rank5]:     component = fn(*varargs, **kwargs)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/cli/train.py", line 34, in do_cli
[rank5]:     return do_train(parsed_cfg, parsed_cli_args)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/cli/train.py", line 47, in do_train
[rank5]:     model, tokenizer = train(cfg=cfg, cli_args=cli_args, dataset_meta=dataset_meta)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/train.py", line 133, in train
[rank5]:     fix_untrained_tokens(model, tokenizer, train_dataset)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
[rank5]:     return func(*args, **kwargs)
[rank5]:   File "/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/core/tokenizer_utils.py", line 51, in fix_untrained_tokens
[rank5]:     min_size = min(embedding_matrix.shape[1], lm_head_matrix.shape[1])
[rank5]: IndexError: tuple index out of range
/ephemeral/axolotl_env/lib/python3.10/site-packages/axolotl/core/trainer_builder.py:444: FutureWarning: `tokenizer` is deprecated and will be removed in version 5.0.0 for `AxolotlTrainer.__init__`. Use `processing_class` instead.
  super().__init__(*_args, **kwargs)```

Didn't try it but I assume using zero2.json would resolve this?


Not installable when using Python3.12

The problem seems to be an old version of versioneer, updating it would likely fix this.
I have also seen a "minimal fix" in some pull requests: e.g. https://github.com/dask/distributed/pull/6613
Also, the error trace for completeness:
$ python --version
Python 3.12.0

$ pip install pyunicore
Collecting pyunicore
  Downloading pyunicore-0.15.1.tar.gz (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.2/54.2 kB 1.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "/home/eilmiv/anaconda3/envs/py3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/eilmiv/anaconda3/envs/py3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/eilmiv/anaconda3/envs/py3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-psn_yilh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-psn_yilh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-psn_yilh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-psn_yilh/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 28, in <module>
        File "/tmp/pip-install-vdf05dtw/pyunicore_79b2ade54c774ddbb5f3f21558d315ee/versioneer.py", line 1553, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-install-vdf05dtw/pyunicore_79b2ade54c774ddbb5f3f21558d315ee/versioneer.py", line 1482, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-vdf05dtw/pyunicore_79b2ade54c774ddbb5f3f21558d315ee/versioneer.py", line 339, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

thanks! Fix is available in version 0.15.2


Allow to set explicit column widths for tables

Thank you for the great library!
I had to generate table where first row had a single cell with colspan set to total number of table columns. Because of this - cell code that generates <w:gridCol> elements made all the columns the same width.
This patch allows to set explicit column widths for tables by setting table_column_widths property on TableModel
Maybe there is a better approach to achieve the same result?

Example: column widths applied correctly if first row does not have cell with colspan
docx.table [['01', '02', '03'], ['11'], ['21', '22', '23']] do
  width 8000
  border_color   '666666'
  border_line    :single
  border_size    1

  cell_style cells, width: 2000
  cell_style cols[0], width: 4000
  cell_style rows[1][0], colspan: 3
end

Result

Example: column widths not applied correctly if first row has cell with colspan
docx.table [['11'], ['21', '22', '23']] do
  width 8000
  border_color   '666666'
  border_line    :single
  border_size    1

  cell_style cells, width: 2000
  cell_style cols[0], width: 4000
  cell_style rows[0][0], colspan: 3
end

Result

Example: column widths set explicity when first row has cells with colspan
docx.table [['11'], ['21', '22', '23']] do
  width 8000
  border_color   '666666'
  border_line    :single
  border_size    1
  column_widths [4000, 2000, 2000]

  cell_style rows[0][0], colspan: 3
end

Result

Hei, Martins.
Thanks for the contribution.  I'm booked solid this coming week, so don't be discouraged if it takes me a while to review the PR and provide feedback.   :)
Thanks,
John

Hi John,
thanks for the notice and no worries :)


[MAINT] - Add Python 3.10 support

Python 3.10 is stable. This ticket is to collect the requirements around adding support:

[ ] Add 3.10 to the test matrix
[ ] Push to qhub-beta
[ ] ...

Before I forget, another place we'll need to parameterize the python version is in the generated git_ops and linter files:

GitLab-CI
GitHub-Actions


Dev mode

[x] Allow offline-plugin to disable booth tools (ServiceWorker, AppCache) so no files are generated at dev mode.
[x] Allow offline-plugin/runtime to be used (does nothing) even when offline-plugin is not used

Fixed in 2.0.0.


revert change to Montevideo

I verified that, contrary to what is claimed on Wikipedia, Montevideo department has only one municipality. Thus, my previous change was incorrect.

Re-run this, please.

They’re in the process of redoing the administrative divisions in this
country, “geography in action”.
On Mon, Apr 17, 2017 at 6:02 AM, astoff<EMAIL_ADDRESS>wrote:

Merged #2866 https://github.com/openaddresses/openaddresses/pull/2866.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openaddresses/openaddresses/pull/2866#event-1044949941,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0EO6l8lm5zEy2a54qwyYM78T27w7nOks5rw2LlgaJpZM4M_AnD
.

@astoff
Montevideo (refering as "Departamento de Montevideo", second level of government) has 8 "municipios"  (third level of goverment). They were created by law in 2009-2010.
You can check https://catalogodatos.gub.uy/dataset/limites-de-municipios-de-montevideo or here http://municipios.montevideo.gub.uy/ (A,B,C,CH, to G)
Anyway, the "municipio" is not used to form an address (I have not seen any address, anywhere, which includes  "municipio", and the "municipio" is not in any of the official canonical address formats).
The most common of address format is ("Forma No3" in the document linked below)
Line 1. StreetName Housenumber.
Line 2. City
Line 3. Department
Line 4. Uruguay
Line 4. PostalCode
You could check the valid canonical address formats in http://ide.uy/sites/default/files/Modelo de direcciones geograficas del Uruguay ed01_00.pdf
(page 38 section 4.3)


Theming

Is it possible to change global style : Colors, border, shadow, ... in configuration/initialisation phase ?

@xcarpentier From what I can see the components to do follow a theming implementation.  I had the same question and poked around the code.  It looks like the colors have named exports and are directly imported to each component.

Don't think this is possible right now, feel free to submit a pr if you think you have an idea how to implement, but for now I'm going to close this.


Modified save_checkpoint to always save last checkpoint. Fixes #98.

Additionally makes checkpoint saving atomic. Fixes #98.

@andravin have you tested on Windows 10 or an equiv server version?

Hi @rwightman , nope have not tested on Windows. I did read the python3 os module documentation comments about Windows support, and added extra code to accommodate Windows behavior.
Do you have the capacity to test on Windows?

@andravin from having dealt with Windows vs Linux issues in the past, it's always best to test. I can give it a run in a few days, not at a location where I have a Windows machine right now.

OK, that gives me more time to test on Linux.
Here are the docs for the filesystem commands:
https://docs.python.org/3.6/library/os.html#os.link
https://docs.python.org/3.6/library/os.html#os.rename
https://docs.python.org/3.6/library/os.html#os.remove

@andravin I ran on windows today, checked the hardlinks and verified it appears to be working as it should on Windows 10 .... have the changes been working well on your spot instances?

Yes, works for me on Ubuntu Linux AMIs running p3.16xlarge spot instances. My training script auto-resumed from last.pth.tar a couple of times today.


Can't build project

I'm following this Building
When I type make, I getting this error:
[ 99%] Built target tcam-gige-daemon
[100%] Building CXX object tools/tcam-gigetool/CMakeFiles/tcam-gigetool.dir/main.cpp.o
[100%] Linking CXX executable ../../bin/tcam-gigetool
[100%] Built target tcam-gigetool
[100%] Generate HTML Documentation with Sphinx
/usr/bin/sphinx-build:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
Traceback (most recent call last):
File "/usr/bin/sphinx-build", line 6, in
from pkg_resources import load_entry_point
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3328, in
def _initialize_master_working_set():
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3302, in _call_aside
f(*args, **kwargs)
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3340, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 631, in _build_master
ws.require(requires)
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 829, in resolve
dist = self._resolve_dist(
File "/home/ildar/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 870, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Sphinx==1.8.5' distribution was not found and is required by the application
make[2]: *** [doc/CMakeFiles/doc.dir/build.make:71: doc/CMakeFiles/doc] Error 1
make[1]: *** [CMakeFiles/Makefile2:2148: doc/CMakeFiles/doc.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
To Reproduce
Steps to reproduce the behavior:

Go to build folder in project
Type on make
See error

Screenshots

Computer used :

OS: [Ubuntu 20.04, Debian Testing]
Architecture/Platform: [amd64], [Desktop]
Python 3.8.10

Hello
I searched for the error message "The 'Sphinx==1.8.5' distribution was not found and is required by the application" in the internet and found this:
https://stackoverflow.com/questions/57422485/pkg-resources-distributionnotfound-the-sphinx-1-8-5-distribution-was-not-fou
That describes the situation of a Python module being installed by apt-get and a second time by pip. That leads to issues. You may follow the answer from Stackoverflow and try again. It was deinstalling Sphinxs.
Stefan

Thanks, the command sudo apt-get install --reinstall python3-sphinx worked for me


Fix occasional record emission failures

This pattern is better because earlier code was vulnerable to
timing bugs. Since recordEmissions is processing messages async.
there was no guarantee that by the time we are asserting emissoinTimes
length it has processed input from channel and removed old emissions.
This code, on other hand - calls recordEmissions syncronously and hence
does not suffer from the problem. Also calling recordEmissions will
block until channel has been read and closed.
Fixes problems I saw - https://travis-ci.org/Yelp/fullerite/jobs/115055658

lgmt

+1


Add installation of S/4

Might be separate project

I think bw/4hana is a good idea too

Will be created as separate role in organisation mk-ansible-roles. Once it's created this issue will be closed


Support for async insert

Hi, thanks for the effort to make clickhouse accessible from Rust!
It would be even greater to have a support for async insert when inserting records with this crate.

Hi, thanks for the effort to make clickhouse accessible from Rust! It would be even greater to have a support for async insert when inserting records with this crate.

Hi!
Thank you for great pull.
I tried your async_insert branch.
But some normal queries got erros:
BadResponse(\"Code: 131. DB::Exception: Too large string size:<PHONE_NUMBER>067419703. The maximum is:<PHONE_NUMBER>. To increase the maximum, use setting format_binary_max_string_size: (at row 1)\\n: While executing BinaryRowInputFormat. (TOO_LARGE_STRING_SIZE) (version <IP_ADDRESS> (official build))\")",

BadResponse(\"Code: 33. DB::Exception: Cannot read all data. Bytes read: 1482. Bytes expected: 531664.: (at row 1)\\n: While executing BinaryRowInputFormat. (CANNOT_READ_ALL_DATA) (version <IP_ADDRESS> (official build))\")",

Any thinks?

@makorne Just to clarify, does your query work fine with non-async inserts?

Looks like it is my bad, I forgot to add :
#[serde(with = "serde_bytes")]  for  Vec<u8>,
Now will check.
Thank you for prompt answer!

@makorne Just to clarify, does your query work fine with non-async inserts?

Issue solved only after return on non-async inserts.
No BadResponse at all now.
Although them was a lot even after #[serde(with = "serde_bytes")]  for  Vec<u8>,

Now this issue has been fixed in the pull request
I test it now.
Looks - No BadResponse!!!

The perfect shot!

Closing this, as async_insert is already supported via the client options. See this example on the main branch.
Additionally, after #123, it will be possible to use .with_option not only with the Client instance but also with insert/inserter for a particular statement only (see the not yet merged example from the branch).


Subviewport/TextureButton generate editor errors on re-open only if scene is instanced in another scene

Godot version
v4.1.stable.mono.official [970459615]
System information
Godot v4.1.stable.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; <IP_ADDRESS>40)
Issue description
With the following scene structure:

Containing Scene

Main 3D Scene
Subviewport

Another 3D Scene

UI control container

TextureButton referencing the Subviewport via a ViewportTexture

If the containing scene is itself instanced as a child of another scene within the project, and that other scene is open, closing and re-opening the containing scene will generate several errors of the form scene/main/viewport.cpp:143 - Viewport Texture must be set to use it. If the button is visible, the editor will also generate infinite errors of the form
Texture (binding: 0) should provide one ID referencing a texture (IDs provided: 0).
drivers/vulkan/rendering_device_vulkan.cpp:7208 - Condition "!uniform_set" is true.

Additionally, the TextureButtons will not display the viewport contents.
These errors do not appear, and the TextureButtons will display correctly, if the containing scene is not instanced in another scene in the project, or if the scene in which the containing scene is instanced is not currently open.
May (?) be related to #66247 and/or #69469.
Steps to reproduce

Reproduce the scene structure as described above, or open the attached MRP
If the scene instancing the containing scene (main.tscn in the attached MRP) is not open, open it
If the subviewport/button's containing scene (game_screen.tscn in the attached MRP) is not open, open it
Close the containing scene
Open the containing scene
If necessary, select a UI control node to make the button visible.

Minimal reproduction project
game_screen.tscn is the containing scene for the Subviewport and TextureButton. game_screen.tscn is instanced as a child of main.tscn in SubviewportBug.zip. Closing and reopening game_scene.tscn in the version from SubviewportBug.zip generates errors as described above, until the editor is restarted or an entirely new ViewportTexture is assigned to the button.
In SubviewportBugNoError.zip, game_screen.tscn is not instanced as a child of any other scene. Closing and reopening game_scene.tscn in this version does not generate errors.
Alternatively, close main.tscn in the SubviewportBug.zip version, and closing and reopening game_scene.tscn will not generate errors.
SubviewportBug.zip
SubviewportBugNoError.zip

After applying #79201, I followed the steps and couldn't reproduce it in MRP. Can you still follow the steps to reproduce?
If additional steps are required to reproduce, please provide steps or projects to reproduce the cases that #79201 does not resolve.

Yes I can, no additional steps necessary - just close and open game_scene.tscn a few times. If you're trying to reproduce, it happens more quickly and frequently when launched from the debugger (but the attached video is with the bare exe, no debugger).
https://github.com/godotengine/godot/assets/23439518/4e97d2a7-eadd-4dc8-9a6b-6d0398a7763e

I left a comment on the PR, but wanted to follow up over here and confirm that, after some changes, #79201 does appear to fix this issue.


Opt-in to TraceId enrichment for ASP.NET Core 5.0 logs - support in Serilog.Sinks.MSSqlServer

Please add TraceId support into the SQL Server sink.
This is related to the following issue:
https://github.com/serilog/serilog-aspnetcore/issues/207
The TraceId was changed in .Net Core 5 and the TraceId is no longer included in the logs. Issue #207 was fixed, but each sink must implement the change. It looks like several sinks have been updated already, but Serilog.Sinks.MSSqlServer still doesn't have support. This is important to us, since we user the TraceId extensively.

List the names and versions of all Serilog packages used in the project:

Serilog:
Serilog.Sinks.MSSqlServer
Serilog.Enrichers.AspnetcoreHttpcontext
Serilog.Exceptions

Target framework and operating system:
[ ] .NET 6

Thanks you!

There is now a preview version 6.5.0-dev-00060 of the MSSQL sink up on nuget.org (https://www.nuget.org/packages/Serilog.Sinks.MSSqlServer/6.5.0-dev-00060) containing support for TraceId and SpanId.
We would appreciate everyone who tries it out and gives us some feedback.


accessing j.sal.ufw.enabled throws an exception "too many values to unpack"

In [1]: j.sal.ufw.enabled
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/usr/local/bin/js_shell in <module>()
----> 1 j.sal.ufw.enabled

/home/lkcl/src/core9/Jumpscale/core/JSBase.py in __getattribute__(self, name)
    413             return instance
    414         try:
--> 415             return object.__getattribute__(self, name)
    416         except AttributeError as e:
    417             z = e

/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal/ufw/UFWManager.py in enabled(self)
    208         """
    209         if self._enabled is None:
--> 210             self._load()
    211         return self._enabled
    212

/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal/ufw/UFWManager.py in _load(self)
    173
    174     def _load(self):
--> 175         rc, status = self._local.execute('ufw status numbered')
    176         self._rules = []
    177         for line in status.splitlines():

ValueError: too many values to unpack (expected 2)

ufw happens to be installed, however it is returning "Status: inactive".... oh, execute now has 3 args not 2.

commit 0d6109e


Java library doesn't support exactly the XML ISO date format

Java works with "date formats" and I couldn't find a format that behaves exactly as the date format we want to use in the XSD file. The one I currently use is very close, but not exactly the same.

Actually, I found a utility class in the JRE that does the parsing, so we are good.


[Itranslate] Translate by OCR shouldn't pop raycast window right away.

Extension
extensions/itranslate

Description
Itranslate and so it's extension provide translate by OCR, since using OCR requires taking a screenshot, raycast window always get's on the way. so you always need to move the window to then be able to screenshot the section that you want to translate.
use Color Pick extension for raycast as reference, the moment that you trigger the hotkey, it doesn't open the raycast window, instead pops up straight to your mouse cursor once you interect with it.
Who will benefit from this feature?
Anyone that needs to be using OCR, will have a better experience.
Anything else?
No response

correct extension link provided.

We could not find the extension related to this issue. Please update the issue with the link to the extension.

correct extension link provided.

Updating the issue  @404J , you already code the label and the behavior, the only problem is the default value of closeOnCapture is false, instead that should be true.
since this is a pain that also another user had it https://github.com/raycast/extensions/issues/7760
I think it should change the default value, or at least put in the readme that exists this option in the settings of the extension.
Again is not clear, others might bump into the same issue.
-- for Users --
Please make sure to have the options checked:

[ ] Capture when active

[ ] Close Window when Capture


Backslashes being added to CSS attribute

I am attempting to pass a value into a page object locator and in the course of doing so am finding that watir is adding backslashes around my passed in value.
@topic = "Travel"
@x = '[data-test-id='+ @topic + '] .category-label'

y = label(:topicHeader, :css => @x)

The result of inspecting y is:
 y=#<Watir::Label: located: false; {:topicHeader=>{:css=>"[data-test-id=\"Travel\"] .category-label"}, :tag_name=>"label"}>
The backslashes are causing my tests to fail due to the object not being found.

Watir shouldn't be doing any conversions of provided css, so I suspect this is happening in the driver. You can set Selenium::WebDriver.logger.level = :info to see exactly what the input to the server/driver looks like.
That being said, this would likely be a better locator for you:
label(data_test_id: /#{@topic}/, class: 'category-label')
Also, labels have some additional special processing available; what is adjacent html in your file?

@iNeedICS if this is still an issue for you, you can provide the logs and I'll reopen this.


[iOS] Silent Notificaiton is not working, issue related to displayOnBackground, playSound

Rules

To report a bug and help us to provide the solution as fast as possible, please follow the instructions below:
1 - Describe the bug
I have an app that suppose running location service in the background and push some silent notification in the background. I encounter the following issues when trying to do so.

Even displayOnBackground set to false, the device still displaying notification in home page.
Even in NotificationChannel, importance set to min, playSound set to false, the notification still displaying and play notification sound in home page.

2 - Provide us as much information as possible

Your plugins list inside the file pubspec.yaml (at least all notification plugins)

version: 1.0.0+1

environment:
  sdk: '>=3.0.3 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
  easy_localization: ^3.0.3
  location: ^5.0.3
  permission_handler: ^11.0.1
  app_settings: ^5.1.1
  awesome_notifications_core: ^0.8.0 # <~ always ensure to use the latest version
  awesome_notifications: ^0.8.2 # <~ this version is managed by awesome_notifications_core package

dependency_overrides:
  intl: 0.18.1

dev_dependencies:
  flutter_test:
    sdk: flutter

What platform did you found the issue
iOS

What devices did you found the issue
iPhone 14 Pro

How are you initializing the plugin

How are you creating the notification

3 - How To Reproduce the Error
Steps to reproduce the behavior:

Use Location package https://pub.dev/packages/location and awesome notification package
Using Location package, enable background service and listen to location service

location.enableBackgroundMode(enable: true)
location.onLocationChanged.listen((LocationData currentLocation) {
    NotificationUtil.createOnGoingNoti(AwesomeNotifications(), _data);
});

Enable this after the app is opened. Then put the app in the background.
Should be able to observe the notification keep popping up

4 - Expected behavior
After the app is put in the background,

the notification should not be displayed
the device should not play notification sound
the device should not vibrate

5 - Screenshots

Ok, so after setting locked to false, this issue is not happening.


docs: Update docs for next SDK release

We are updating the docs with some breaking changes we are including in the next release of the Safe{Core} SDK

I'm closing this PR in favor of this other one: https://github.com/safe-global/safe-docs/pull/317
Please read the description for more info.


Yauhen's Attempt at completing the Beginning Git video curse

Hi,
This PR represents all the work i did to complete the raywenderlich.com Beginning Git video course. It was a very funny and pleasant experience, and i'd recommend it to anybody! Many thanks!
Yauhen

Hey @skb1t—congrats on submitting a PR at the end of the git course. I'm hope that you found the course valuable, and that you were able to follow along easily and learn lots.
If you weren't already using git for your code, hopefully this has inspired you to do so. I hope that you enjoy the "Mastering Git" video course as well—you'll soon be able to get git to bend to your will :)
You can now wear this #GitWarrior badge with pride—and Tweet your historic victory!

sam


Use NuGet credential providers when querying for package info with the NuGet SDK

Fixes #359

@twsouthwick @KSchlobohm Thanks for the reviews. Comments should be addressed now. PTAL. Thanks!


IRC Bridge to Freenode having issues, messages are constantly out of order, and some people's messages just haven't been coming through at all

reported by @ctmartin:matrix.org
https://github.com/matrix-org/riot-android-rageshakes/issues/2057

Well this is likely an matrix-appservice-irc bug, right? Or maybe just in its matrix.org configuration because I have no issue on my own deployment. On channel bridged by matrix.org I’ve noticed the two following things:
– user joining the channel (IRC side) and posting right away don’t get their messages synced, until they get joined in Matrix which usually happens several minutes later.
– PMs started toward me by IRC users are also only synced a while after, and are empty when joined.

this is almost certainly due to the same overloaded matrix.org homeserver problems which have been extensively discussed in #irc:matrix.org over the last few weeks. hopefully they will be mitigated with forthcoming perf improvements there.


Support Data Set without Header Setting

If no header files, we'd better name columns as $1, $2, $3, ... and start to run shifu whole process

Done in develop branch


Command line runs differs from GUI run

Running NeosegPipeline from the GUI produces different results to running it from the command line.

Current master solved this bug


Misconfigured conditions: "True" (oro_action.expression.true) and "False" (oro_action.expression.false)

Hey,
we are currently upgrading to 1.10 and our smoke test found some misconfigurations in the Oro/Bundle/ActionBundle/Resources/config/conditions.yml:
oro_action.expression.true:
    class: Oro\Component\ConfigExpression\Condition\True
    tags:
        - { name: oro_action.condition, alias: "true" }

oro_action.expression.false:
    class: Oro\Component\ConfigExpression\Condition\False
    tags:
        - { name: oro_action.condition, alias: "false" }

Both classes are non-existent, they were renamed to TrueCondition and FalseCondition.
We are now overwriting the definitions, but it would be great if you could fix this issue in an upcoming release. Thanks in advance,
best regards,
Christian

Hi @cawolf
The issue will be fixed in the next 1.10 release. 2.0 version doesn't contain this misconfigurations.
Thank you!


CVE-2020-25649 - related to com.fasterxml.jackson.core:jackson-databind inspring-cloud-cloudfoundry-connector-2.0.7.RELEASE.jar

Hello,
At least one CVE (CVE-2020-25649) is brought up with com.fasterxml.jackson.core:jackson-databind version 2.10.0 included in spring-cloud-cloudfoundry-connector-2.0.7.RELEASE. The corrections were fixed in version <IP_ADDRESS> and later.
Here the log of a DependencyCheck execution
spring-cloud-cloudfoundry-connector-2.0.7.RELEASE.jar\META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml<EMAIL_ADDRESS>cpe:2.3:a:fasterxml:jackson-databind:2.10.0:*:*:
*:*:*:*:*, cpe:2.3:a:fasterxml:jackson-modules-java8:2.10.0:*:*:*:*:*:*:*) : CVE-2020-25649

Could the version be updated in a quick upcoming fix? or is migrating to the newer Java CFEnv the only way to fix this?
Thank you,
Alex

Migrating to Java CFEnv is definitely the recommendation. While Spring Cloud Connectors is in maintenance mode we will continue to address critical security issues, but this library is vulnerable to these kinds of Jackson issues and an update can't always be quick. Java CFEnv doesn't suffer from this problem.
I'll research this CVE to see of Connectors is vulnerable and publish a release if necessary.

Thanks Scott for your answer, just let us know if you publish a new version in order to prevent our users.

CVE-2020-25649 is related to the use of the com.fasterxml.jackson.databind.ext.DOMDeserializer class to deserialize XML from a DOM contained in a JSON string. Spring Cloud Connectors only uses the com.fasterxml.jackson.databind.ObjectMapper class from jackson-databind to parse JSON data provided by a Cloud Foundry platform in the VCAP_SERVICES environment variable, so the library is not directly affected by this CVE.
A shaded version of DOMDeserializer is distributed with Connectors, under the package org.springframework.cloud.cloudfoundry.com.fasterxml.jackson.databind.ext. It is extremely unlikely that an application that includes Connectors would use this shaded version of DOMDeserializer.
Based on this information, can this CVE be excluded from your scanning?

What's the use of shading? Why can't it use the classes on the classpath, which can be the original dependency (vulnerable) or different ones(patched)?

What's the use of shading?

Shading of dependent jars is done when there is a high probability that different code in an app (coming from libraries and directly in app code) must retain API compatibility with a specific version of a library. When Spring Cloud Connectors was originally released in 2014 this was a common issue with Jackson usage in particular.

Why can't it use the classes on the classpath, which can be the original dependency (vulnerable) or different ones(patched)?

If the Connectors library was in active development and enhancement, we would consider a new major release that removed this shading from the library so things work like you're suggesting. But, as mentioned above, Connectors has been in maintenance-only mode since early 2019. Applications should migrate away from Connectors to Java CFEnv, which does not shade the Jackson libraries.

Can I trust that the shaded code is only used in the jar it's shaded for, or could it leak to other code?

Can I trust that the shaded code is only used in the jar it's shaded for, or could it leak to other code?

Please see the analysis provided in the comment above.


This action will address numerous typographical errors within the internal files of the tasks.

Description of issue (what needs changing)
No response
Clear description
This will remedy multiple minor typographical errors present within the internal files of the platform across Python, web, and iOS.
Correct links
No response
Parameters defined
No response
Returns defined
No response
Raises listed and defined
No response
Usage example
No response
Request visuals, if applicable
No response
Submit a pull request?
No response

We are formally closing this matter, as it has been resolved internally.


provider: send mirrorEnabled info for each client

Extend SystemAttributes to send to the client if it has been mirrorEnabled, currently this will be used to enable omap info on the client clusters

/lgtm

/retest-required


The SPA default page middleware could not return the default page '/index.html' in production application

I have an ASP.Net Core / Angular 5 application that is logging errors to the Windows Event Log in our production environment.  The following error is getting logged frequently but intermittently in production, and I have no idea why.  The application is definitely in production mode, has been published, and is functioning.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request. Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
AFAIK no users are experiencing a problem with the site when these errors occur.  Any idea why these errors are being thrown, and whether there is in fact a problem that needs to be addressed?

Do angular output directory and specified path in services.AddSpaStaticFiles(configuration => configuration.RootPath = $"your/output/path"); match?

I am not explicitly setting the RootPath:
app.UseSpaStaticFiles();
But I am setting the SourcePath:
app.UseSpa(spa =>       {         spa.Options.SourcePath = "ClientApp"; ...
Do I need to also set the RootPath like in your example?
And here is what's in my .csproj file:
<PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
    <IsPackable>false</IsPackable>
    <SpaRoot>ClientApp\</SpaRoot>
    <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
    <!-- Set this to true if you enable server-side prerendering -->
    <BuildServerSideRenderer>false</BuildServerSideRenderer>
</PropertyGroup>

<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
    <!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
    <Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
    <Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod" />
    <Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " />

    <!-- Include the newly-built files in the publish output -->
    <ItemGroup>
      <DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
      <DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
      <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
        <RelativePath>%(DistFiles.Identity)</RelativePath>
        <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
      </ResolvedFileToPublish>
    </ItemGroup>
  </Target>

I'm wondering if my problem is that I still have the SSR build instructions in the csproj even though SSR is not enabled, and dist-server does not exist..?

SSR isn't the problem. You should set path in ConfigureServices() method via services.AddSpaStaticFiles(configuration => configuration.RootPath = $"ClientApp/dist");. Then in Configure you shouldn't specify source path:
app.UseSpaStaticFiles();
app.UseSpa(configuration => { /*spa.Options.SourcePath = "ClientApp";*/ });

Sorry - not sure if you saw my edit, but I was in fact setting the RootPath correctly, I was just looking in the wrong place. :)  I will try removing the SourcePath setting, however, I'm fairly certain this configuration came with the dotnet new angular template.  What is the SourcePath setting used for and why shouldn't it be set?

This is used to determine folder where package.json scripts should be executed.
Like new AngularCliBuilder(npmScript: "build:ssr") or  spa.UseAngularCliServer(npmScript: "start");.
app.UseSpa(spa =>
{
    spa.Options.SourcePath = "ClientApp";

    spa.UseSpaPrerendering(options =>
    {
        options.BootModulePath = $"{spa.Options.SourcePath}/dist-server/main.bundle.js";
        options.BootModuleBuilder = env.IsDevelopment()
            ? new AngularCliBuilder(npmScript: "build:ssr")
            : null;
        options.ExcludeUrls = new[] { "/sockjs-node" };
    });

    if (env.IsDevelopment())
    {
        spa.UseAngularCliServer(npmScript: "start");
    }
});

Thanks - I am using a proxy:
spa.UseProxyToSpaDevelopmentServer("https://localhost:4200");

So sounds like I probably don't need the SourcePath setting.  That said - are you saying the SourcePath setting is the cause of the errors in my production environment?

No, SourcePath does nothing if you use proxy during development. Application probably can't find index.html because it wasn't specified like this: services.AddSpaStaticFiles(configuration => configuration.RootPath = $"ClientApp/dist");

I think maybe you aren't seeing the edits I made to my original response.  I am setting the RootPath as suggested.  (Maybe try refreshing the this Github page to ensure you are seeing the latest content).

Now I see it. Can you show what's inside of UseSpa()?

Not much...  Will of course remove the SourcePath setting since it's not needed, but this is what is currently in production:
app.UseSpa(spa =>
{
  spa.Options.SourcePath = "ClientApp";

  if (env.IsDevelopment())
  {
    spa.UseProxyToSpaDevelopmentServer("https://localhost:4200");
  }
});

Is index.html is present after build in ClientApp/dist? I'd try to remove node_modules and install again, remove SourcePath and redeploy.

Index.html is present in clientapp/dist, otherwise the application wouldn't function at all - that is what is confusing about the error message.  The error is being logged in a production application that seems to working fine.  I will try removing the node_modules folder locally, and then rebuild and republish and see if that makes a difference.  What makes you think that will resolve the error?

Removing the node_modules folder and republishing did not solve the issue - still seeing quite a few of these errors logged on the production server.  Any idea why that would be?

I'm seeing the same issue as @danobri on a production site that appears to be working fine otherwise. The exceptions are intermittent, but persistent. I'm using the Angular spa template pretty much straight away with SSR enabled.

It's an IIS Default Document issue. Just add the following to your web.config:
<system.webServer>
   ...
      <defaultDocument enabled="false" />
</system.webServer>

So, it was our vulnerability scanner that caused the exceptions to be generated.  This means I can now reproduce it by scanning the IP this core app is installed on.   I tried the defaultDocument enabled=false in web.config, with no success.  (running scanner gave errors again)
Any ideas @SteveSandersonMS ?

I'm also getting this error randomly in a couple of production sites that work just fine.

Here is our case for past 2 days. It is really random. We have 3 servers and one of them barely has this issue in last 48 hours but it did have a lot before that.

Using React here and publishing the dotnetcore app 2.1 as a Windows Service
I believe it's because CRA creates an additional folder structure
ClientApp/build/...
Therefore the index.html file isn't found.

This happened to my Azure App Service. All I had to do was to restart the service. Worked like charm.

check angular.json file use  "outputPath": "dist",
And Startup file
services.AddSpaStaticFiles(configuration =>
{
configuration.RootPath = "ClientApp/dist";
});

I can't even get a fresh dotnet new react to start in production without it throwing this exception:
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request...
Seems like there is definitely a bug in the building process of the spa somewhere?

@ryanbrandenburg / @mkArtakMSFT - any ideas?

So the reason we're getting this is someone is trying to POST AND OPTIONS to /index.html not GET. Which causes this error message and causes a 500 error.
Of course of Azure/IIS sees too many errors in too short a time it tries and recycles the app. the problem is that it's doing it over and over again which causes everything in that App Service Plan to crash. :<
How do we properly handle this without the site throwing a 500 error?

Would be nice if this wasn't the default behavior. I was able to prevent the exceptions using a rewrite rule in my web.config.
<rewrite>
  <rules>
    <rule name="Prevent requests to index">
      <match url="^index\.html$" />
      <action type="Redirect" url="/" redirectType="Permanent" appendQueryString="true" />
    </rule>
  </rules>
</rewrite>

I also had this issue what I did is use the rewrite middleware by doing the below.
app.UseRewriter(new RewriteOptions()
                .AddRedirect("index.html", "/"));

I would really like to see the root of this problem solved. We have a .net core 2.1 app with the latest React version, no web config since we are using json files for environment variables. We are randomly getting this error several times at once. Most of the time it's fine and then randomly it will happen a dozen times. The redirect seems to just be a work around and not solve the root issue.

Anyone has got a solution for this?
I'm facing the same issue, can't get the app deployed successfully..

Seems like these javascript services are unsupported?
@SteveSandersonMS can you advise what course of action to take?

I had 1000's of these errors within the first hour after we deployed to Azure App Service. By removing this line from MyProject.csproj the errors stopped and everything kept working.
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="2.1.1" />

@jraadt If you removed the SpaServices extensions, how are you doing the SPA setup in Startup.cs? Using the default template, your app should no longer build after removing that package reference.

@joshberry I agree it makes no sense. As a sanity test I created a new project and did the following steps:

dotnet new angular
dotnet restore
dotnet run
I opened a web browser to verify the default ASP.NET Core/Angular app is running fine.
Delete <PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="2.1.1" /> from the csproj file.
dotnet restore
dotnet run
Everything still built fine and I refreshed my web browser and verified the app still runs just fine. Incremented counter and everything.

I wonder if it's included in the Microsoft.AspNetCore.App package. I'd love some clarification from the Microsoft team on this.

Microsoft.AspNetCore.SpaServices.Extensions was indeed in Microsoft.AspNetCore.App for 2.1, so that's why the explicit reference wasn't needed:

https://github.com/aspnet/Universe/blob/2.1.5/build/artifacts.props#L165

But I don't think it was in there in the 2.0.x world because it came out after 2.0.0.

How does any of that explain the errors stopping?  Any idea?

I feel this error is not about finding ever user that sends OPTIONS to your endpoint and having them stop.  That this issue has not been addressed is crazy.   We get it every week due to vulnerability scanners.

Hi guys, I just started using Azure App Service and my deployment is throwing the same error. Unlike others who can still access the app mine crashes completely. I noticed from the console that visual studio deploy place the Spa files 3 folders deep, I think this might be the issue, I'm not sure how to make the files only be put within the dist folder.

Is there anyone else who has the same folder structure withing their deployment?


ProgressPlugin Support for Webpack 1

Are there any plans to backport this commit https://github.com/webpack/webpack/commit/46b12b2095577391fbd88b6d29b7f0b858db4c5c to Webpack 1? It would be useful to have this feature for Webpack 1 so that we can see the live progress output when using the NodeJS API as discussed in this issue https://github.com/webpack/webpack/issues/1000.

+1

As a workaround you could try extracting it as progress-webpack-plugin (free atm) and consuming it from there for webpack 1. This assumes there haven't been any breaking changes in the API it uses.

This probably isn't going to happen. If you want the plugin for webpack 1, you could try pushing it as a standalone package to consume.


runtime/trace: segfault in runtime.fpTracebackPCs during deferred call after recovering from panic

What version of Go are you using (go version)?

$ go version
go version go1.21rc4 darwin/arm64

Does this issue reproduce with the latest release?
No, it does not reproduce with Go 1.20.7.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/nick.ripley/Library/Caches/go-build'
GOENV='/Users/nick.ripley/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/nick.ripley/go/pkg/mod'
GONOPROXY='REDACTED'
GONOSUMDB='REDACTED'
GOOS='darwin'
GOPATH='/Users/nick.ripley/go'
GOPRIVATE='REDACTED'
GOPROXY='proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21rc4'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/nick.ripley/sandbox/go/tracepanic/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/f3/g91d13pd6kd3vdxts_gsgd1r0000gn/T/go-build3821548427=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?
Ran the following program, which records an execution trace event during a deferred call after recovering from a panic:
package main

import (
	"context"
	"io"
	"runtime/trace"
)

func main() {
	if err := trace.Start(io.Discard); err != nil {
		panic(err)
	}
	defer trace.Stop()
	recoverTrace()
}

func recoverTrace() {
	defer func() {
		_, t := trace.NewTask(context.Background(), "foobar")
		t.End()
	}()
	defer func() {
		recover()
	}()
	panic(42)
}

This is inspired by TestCallersAfterRecovery, which failed for me while I was attempting to use frame pointer unwinding in runtime.Callers.
What did you expect to see?
I expected the program to exit successfully.
What did you see instead?
The program crashed due to a segfault during frame pointer unwinding. It does not crash if I disable frame pointer unwinding for tracing by setting GODEBUG=tracefpunwindoff=1.
 Some lldb output:
Process 72738 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x202c7261626f6f6e)
    frame #0: 0x0000000100050790 tracepanic`runtime.traceStackID + 480
tracepanic`runtime.traceStackID:
->  0x100050790 <+480>: ldr    x6, [x0, #0x8] #
    0x100050794 <+484>: str    x6, [x1, x5, lsl #3]
    0x100050798 <+488>: ldr    x0, [x0]
    0x10005079c <+492>: add    x5, x5, #0x1
Target 0: (tracepanic) stopped.

The crash is from this line: https://github.com/golang/go/blob/a4b6685c4c94152cdb9cb80061478e20c9fc2e88/src/runtime/trace.go#L1014
Register x0 is fp, x1 points to the pcBuf array, and x5 is i. Here's how far unwinding gets:
(lldb) register read x0
      x0 = 0x202c7261626f6f66 <---- definitely not a valid frame pointer. It's "foobar, " if you assume it's little endian and ASCII-encoded
(lldb) register read x1
      x1 = 0x00000001007d8020
(lldb) register read x5
      x5 = 0x000000000000000a
(lldb) memory read --gdb-format a 0x00000001007d8020
0x1007d8020: 0x000000010004fe30 tracepanic`runtime.traceEventLocked + 576
(lldb) memory read --gdb-format a `0x00000001007d8020 + 8`
0x1007d8028: 0x000000010005ac20 tracepanic`runtime/trace.userTaskCreate + 176
(lldb) memory read --gdb-format a `0x00000001007d8020 + 16`
0x1007d8030: 0x0000000100070388 tracepanic`runtime/trace.NewTask + 184
(lldb) memory read --gdb-format a `0x00000001007d8020 + 24`
0x1007d8038: 0x0000000100070958 tracepanic`main.recoverTrace.func1 + 56
(lldb) memory read --gdb-format a `0x00000001007d8020 + 32`
0x1007d8040: 0x000000010002d890 tracepanic`runtime.deferCallSave + 144
(lldb) memory read --gdb-format a `0x00000001007d8020 + 40`
0x1007d8048: 0x000000010002d6c4 tracepanic`runtime.runOpenDeferFrame + 436
(lldb) memory read --gdb-format a `0x00000001007d8020 + 48`
0x1007d8050: 0x000000010002cefc tracepanic`runtime.deferreturn + 172
(lldb) memory read --gdb-format a `0x00000001007d8020 + 56`
0x1007d8058: 0x0000000100070908 tracepanic`main.recoverTrace + 104
(lldb) memory read --gdb-format a `0x00000001007d8020 + 64`
0x1007d8060: 0x0000000000000006

For what it's worth, the exact return address from runtime.deferreturn is pointing here:
tracepanic`main.recoverTrace:
    0x1000708a0 <+0>:   ldr    x16, [x28, #0x10]
    0x1000708a4 <+4>:   cmp    sp, x16
    0x1000708a8 <+8>:   b.ls   0x100070914               ; <+116>
<----- snip ------>
    0x1000708f8 <+88>:  add    x1, x1, #0x38             ; runtime.egcbss + 3
    0x1000708fc <+92>:  bl     0x10002d8f0               ; runtime.gopanic
    0x100070900 <+96>:  nop
    0x100070904 <+100>: bl     0x10002ce50               ; runtime.deferreturn
->  0x100070908 <+104>: ldp    x29, x30, [sp, #-0x8]
    0x10007090c <+108>: add    sp, sp, #0x40

Since the last good PC points to main.recoverTrace, it looks like runtime.deferreturn has a frame pointer pointing to the wrong place? Could recovering from the panic be putting something incorrect in the frame pointer register before runtime.deferreturn is called? My current hunch is that we might need to set sched.bp here?

My hunch was right. When a goroutine is recovering from a panic, the runtime.recovery function doesn't restore the expected frame pointer to gp.sched.bp before returning control to the goroutine. The value in gp.sched.bp will likely point to a stack frame from one of the functions that was handling the panic (unwinding the stack, running deferred functions, etc), which can point lower on the stack than the frame of the deferred functions running after the recovery. So that frame pointer can point to whatever gets put on the stack later, like function locals. Hence the crash. https://go.dev/cl/516157 fixes the issue. Is it too late to get this in Go 1.21?

@gopherbot Please open up a backport issue for Go 1.21.
This causes crashes that while rare (a fairly specific situation is required) are difficult to work around. The only option is turning off FP unwinding for the tracer, but that means a fairly severe regression in overheads, which can be a problem if you've already committed to tracing more frequently at scale. The fix is also small and fairly safe.
(This issue also does not apply to Go 1.20.)


Switch API for the Food check

Please use Edmame API Key for the Food check page
File scriptfoodcheck.js
File apikey.js

Done. API working and code to extract data completed.


Implement HDF5 format files with MPR Interface

( This is a quick overview, not the whole spec, since I didn't get a chance to fully spec it today )
Implement a new version of the MPR file objects, using HDF, via the PyTables library. THese files would be used for that partitions, while the mpr files will continue to be used for ingestion.
The new HDF file objects should have the same interface as the MPR files, and most of the same tests should pass. The most important differences are:

In HDF, there is only one data type per column.
MPR files can have the header lines and data lines start on any line, not just 0 and 1, while for HDF, there is no header line, and the data always starts on line 0.

The HDF files will not need to support row intuition or type intuition, since those will always be know at the time of file creation, but they will need to support statistics.
Unlike the current MPR file, HDF files can't store a NULL in a data column. This is a requirement for our use. To handle this,

For floats, use NaN for null
For integers, use the minimum storable integer as a NULL.
For strings, use the empty string.

Then, update the RowProxy object so that it can (1) have a sense of what the dataypes are per column, and (2) for each of the columns, interpret the NULL place holder value and return a null. For instance, for a float column, the RowProxy should return a None when the stores value is a NaN.
Note: It may be really hard to dynamically generate tables in PyTables; it looks like they are designed to be specified as Python classes. If so, consider using the h5py package instead, although it may be very difficult to handle the queries without PyTable.

Performance Tests
Once you get basic reading and writing working, can you add a performance test for the HDF version to: tests.test_basic.BasicTestSuite#test_datafile_read_write. Getting a sense of the performance differences  will be important to determine whether we should finish this feature now, or delay it for later.

I added performance test:
py.test  tests/test_hdf_partitions/performance/test.py::Test::test_datafile_read_write  --capture=no

HDF partition is not complete, but writing/reading is implemented. Waiting for response.

On Oct 20, 2015, at 8:21 AM, Kazbek<EMAIL_ADDRESS>wrote:
I added performance test:
py.test  tests/test_hdf_partitions/performance/test.py::Test::test_datafile_read_write  --capture=no
HDF partition is not complete, but writing/reading is implemented. Waiting for response.

The performance looks pretty good — faster on writes but slower on reads.

Eric Busboom<PHONE_NUMBER>
<EMAIL_ADDRESS>http://www.busboom.org

Hi, Eric. I finished with implementation. There are two notes:

I'm not sure about column types/sizes I specified to store meta information. Can you check them? See hdf_partitions/core.py. I marked all of them with FIXME:

Current initialization of the hdf to load rows looks complicated:

f = HDFPartition(...)
with f.writer as w:
    ri = RowIntuiter().run(source)
    ti = TypeIntuiter().process_header(ri.headers).run(source)
    w.set_row_spec(ri, ri.headers)
    w.set_types(ti)
f.load_rows(s)

Do you have any ideas how to simplify it?

We can skip the Row and Type intuition for the HDF files. Since they are only output files, the types are set when they are creates, so the TypeIntuition can’t add an information. The RowIntuition isn’t necessary, since  HDF can’t have headers or footers in the same section as the data.
However, it still needs the stats.

Types for Schema:

Start: 32 bit int is OK.
Flags: 32 char is probably large enough. It is currently unused.
LOM: 1 char
Skew and Kurtosis. Float 64 is OK
Hist is an array of 16 bins of integers. ( from Statset.num_bins )
uvalues is 100 values of the same type as the column.

Since hist and uvalues are array types, it is probably only possible to represent them with another dataset in the HDF file. So, there would be one more dataset of integers for every number column ( LOM = 'i' or 'r' for hist, and one dataset for every ordinal or nominal type ( LOM = 'o' or 'n' ) for the uvalues.

HDFPartition.SCHEMA_TEMPLATE and HDFPartition.META_TEMPLATE should be shared from a common data structure with MPRowsFile.SCHEMA_TEMPLATE and MPRowsFile.META_TEMPLATE

Done.


Use scrollspy to update the side nav on giving and internships page

 Issue by dylanjbarth
Tuesday Mar 11, 2014 at 23:21 GMT
Originally opened as https://github.com/dylanjbarth/fle-site/issues/53

no longer applicable


What is "id_embed_file": "faceid.bin" in "tutorial_train_faceid.py"?

I want to train IP-Adapter face ID, but I'm not sure about "faceid.bin".
Could you explain it and give me some examples?

+1


Rules generated for each dataset

Hi,
I am trying to have a look to the rules generated for each dataset in the paper but could do not find them. Do you think you can make these rules public?
Regards

For different datasets, different parameters correspond to different rules. You can try to run the code yourself to generate rules.

Thanks for replying back. I understand, I was hopping that you could share the rules you obtained during your experiment with your set of hyperparameters. This way I can try to reproduce the same set of rules on my side. Feel free to close this issue if you don't have the rules stored somewhere already.
Thanks


The kube-proxy may be blocked when any endpoint is unreachable

BUG REPORT INFORMATION
kubernetes@master:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"0+", GitVersion:"v1.0.0-127-gc6161824db3784-dirty", GitCommit:"c6161824db3784e6156131307a5e94647e5557fd", GitTreeState:"dirty"}
Server Version: version.Info{Major:"1", Minor:"0+", GitVersion:"v1.0.0-127-gc6161824db3784-dirty", GitCommit:"c6161824db3784e6156131307a5e94647e5557fd", GitTreeState:"dirty"}
kubernetes@master:~$ uname -a
Linux master 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

The steps to reproduce the issue:
1. create a 40-pods rc: kubectl create -f json/guestbook/frontend-controller.yaml
2. create a service: kubectl create -f json/guestbook/frontend-service.yaml
3. get the port: sudo iptables -nvL -t nat
4. use loadrunner the access the ip:port
```
The results I received:
The reponse time waved sharply.
![wave-line](https://cloud.githubusercontent.com/assets/13072423/9077120/01c9966a-3b5d-11e5-9243-61a4054854fc.PNG)

The results I expected:
The reponse time moved smoothly.

----------END REPORT ---------

By reading logs, I found this may because there's a bug in proxysocket.go: The ProxyLoop calls tryConnect every times before go proxyTCP(inConn.(*net.TCPConn), outConn.(*net.TCPConn)), so if any endpoint is unreachable, the kube-proxy will be blocked and  can not reponse to any request.

cc/ @ArtfulCoder

@qq690388648 thank you for filing the bug. Your analysis and reason for the spike seems reasonable.
We might fix this or wait for a newer implementation that is in the pipeline #9210

Thanks a lot..
@ArtfulCoder


Use testcontainers for Mysql Connector tests

Use testcontainers for Mysql Connector tests
Additionally:

fixed scope of method
do not allocate resources in test constructors
move execute method to TestingMySqlServer
use user and password explicitly

cmt msg: Use dockerized MySQL in tests

Updated. Comments addressed.


[AutoPR resourcehealth/resource-manager] [Microsoft.ResourceHealth] Add metadata api

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5834

Build output:

dist/com.microsoft.azure.resourcehealth.v2017_07_01/azure-mgmt-resourcehealth-1.0.0-beta.pom
dist/com.microsoft.azure.resourcehealth.v2017_07_01/azure-mgmt-resourcehealth-1.0.0-beta-sources.jar
dist/com.microsoft.azure.resourcehealth.v2017_07_01/azure-mgmt-resourcehealth-1.0.0-beta-javadoc.jar
dist/com.microsoft.azure.resourcehealth.v2017_07_01/azure-mgmt-resourcehealth-1.0.0-beta.jar
dist/com.microsoft.azure.resourcehealth.v2015_01_01/azure-mgmt-resourcehealth-1.0.0-beta.pom
dist/com.microsoft.azure.resourcehealth.v2015_01_01/azure-mgmt-resourcehealth-1.0.0-beta-sources.jar
dist/com.microsoft.azure.resourcehealth.v2015_01_01/azure-mgmt-resourcehealth-1.0.0-beta-javadoc.jar
dist/com.microsoft.azure.resourcehealth.v2015_01_01/azure-mgmt-resourcehealth-1.0.0-beta.jar

This PR has been merged into https://github.com/Azure/azure-sdk-for-java/pull/3547


Fix variable names:

'list', not 'set'
Overview

See: https://jira.bf.local/browse/ECR-XYZ
Definition of Done

[ ] There are no TODOs left in the code
[ ] Change is covered by automated tests
[ ] The coding guidelines are followed
[ ] Public API has Javadoc
[ ] Method preconditions are checked and documented in the Javadoc of the method
[ ] Changelog is updated if needed (in case of notable or breaking changes)
[ ] The continuous integration build passes

Coverage remained the same at 85.672% when pulling 79f065601dcaa745d459ad4bce5a9a6d617c602b on dmitry-timofeev:fix-var-names into 82f29f79964d0db1d74171435c9c33a1fac4fc2e on exonum:master.


Add recently played tracks - Fixes #57

Adds support to fetch current user's recently played tracks.

Coverage increased (+0.02%) to 97.993% when pulling b935aec56caa049276c1f20ab1ca2486e7776659 on jperez/recently-played-tracks into c6746537457fe3ad9fe0c3b45e508cbbc9097522 on master.

Coverage increased (+0.02%) to 97.993% when pulling b935aec56caa049276c1f20ab1ca2486e7776659 on jperez/recently-played-tracks into c6746537457fe3ad9fe0c3b45e508cbbc9097522 on master.


Applications using TaskVine and WorkQueue executors do not exit

Describe the bug
Applications using TaskVine and WorkQueue executors do not exit.
The last two daily tests have failed https://github.com/cooperative-computing-lab/cctools-packaging-test/actions
It appears this bug was introducted in #3165 , now the dfk().cleanup() is not called in the atexit handler.
To Reproduce

Run a taskvine or work queue app using parsl after e11eef4.
Observe the program will finish all tasks however it will not exit.

Expected behavior
An application should exit when the main python process is done.
Environment

Python version python-3.11.8
Parsl version parsl-2024.3.11

I see the discussion in #3104. It seems our executors have been relying on this exit. I am looking to see how exactly a program using HTEX decides it is time to cleanup.

@colinthomas-z80 plenty of code relies on dfk.cleanup() being called, not just taskvine and wq - but as of #3165, it is now up to the user to do so (because Python >=3.12 gets upset at various cleanup operations being called in atexit).
You should see in the main parsl test server that WQ and taskvine tests do exit OK without hanging (otherwise, we could not have merged that PR #3165) - but it's now an obligation on the user to clean up properly rather than letting atexit do it.
It looks like you added that cleanup to the cctools test suite here: https://github.com/cooperative-computing-lab/cctools-packaging-test/commit/12a83576033af941a8d3f0bd0d7586b0cbd4f2cf
I'd like this to look a bit nicer for users, for example, instead of writing a load and cleanup pair, instead possibly use a with block so that cleanup can happen that way - that's a pretty Pythonic way of dealing with this allocate/cleanup behaviour, so I'd like to give users a way to do that.
For wq/taskvine hanging at exit, I've been working on other parts of the parsl codebase for a looooong time trying to discover all the different ways hangs can happen at shutdown, especially shutdowns where processes disappear in a surprising order (most commonly: when someone sends a SIGTERM or hits ctrl-C, or when the kernel Out Of Memory Killer decides to reap one of the Parsl processes. This is frustratingly subtle and irrelevant to the traditional core goal of actually running tasks. Generally those hangs have been happening when processes or threads assume that some other process will come along to tell them to shutdown, and that if shutdown happens some other weird way, they mistakenly should stick around forever waiting for the shutdown signal that never comes. For threads, one thing I've done sometimes is mark a thread as daemon - if it's safe for the thread to just disappear at shutdown time.
and in that context...

I am looking to see how exactly a program using HTEX decides it is time to cleanup.

there are plenty of situations where it doesn't. Have a look at the safe exit issues tag for examples: https://github.com/Parsl/parsl/issues?q=is%3Aissue+is%3Aopen+label%3Asafe-exit

Satisfied by #3269


Secondary server returning None as data (Carla Multi-GPU Feature)

CARLA version:0.9.14
Platform/OS: Ubuntu 20.04
Problem: Unable to use multi_GPU feature
Hi, I have started secondary server in different machine (local network). I was able to connect with the primary server.
The Primary server run: ./CarlaUE4.sh --nullrhi
The secondary server run : ./CarlaUE4.sh -carla-rpc-port=4000 -carla-primary-host=<IP_ADDRESS> -carla-primary-port=2002 -ini:[/Script/Engine.RendererSettings]:r.GraphicsAdapter=0
But during the simulation the secondary server is returning None as the data. Any idea how to solve it ?
Hoping someone could answer my question, thanks.

Ref：6545

We are already having Ubuntu 22.04 support for UE4
Look at build issues:
https://carla.readthedocs.io/en/latest/build_linux/


Fix: istio addon application namespace not in vela-system

Description of your changes
Addon's application should be in vela-system uniformly. istio addon isn't and fix this.

Fixes #
I have:

[x] Read and followed KubeVela's contribution process.
[x] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[x] Run make reviewable to ensure this PR is ready for review.
[x] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

/backport 1.1


chore(package): update local-repository-provider to version 2.0.5

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: