[skip ci]add mvp for state in g workers

Checklist before merging

[ ] I added an appropriate entry to CHANGELOG.md
[ ] I merged main into the current branch.

close #1504

Latest test with @mfranzon:
config.py
import logging
import os
import signal

from uvicorn.workers import UvicornWorker

class CustomWorker(UvicornWorker):
    def init_signals(self) -> None:
        super().init_signals()
        print(f"INIT SIGNALS FROM CUSTOM ({self.pid=})")
        signal.signal(signal.SIGABRT, self.handle_abort)

def worker_abort(worker):
    logger = logging.getLogger(__name__)
    logger.error(f"Terminating worker {worker.pid} with SIGTERM.")
    os.kill(worker.pid, signal.SIGTERM)

logs
$ poetry run gunicorn -w 2 main:app -c config.py  -k config.CustomWorker
[2024-05-22 09:42:32 +0200] [23637] [INFO] Starting gunicorn 22.0.0
[2024-05-22 09:42:32 +0200] [23637] [INFO] Listening at: http://<IP_ADDRESS>:8000 (23637)
[2024-05-22 09:42:32 +0200] [23637] [INFO] Using worker: config.CustomWorker
[2024-05-22 09:42:32 +0200] [23640] [INFO] Booting worker with pid: 23640
INIT SIGNALS FROM CUSTOM (self.pid=23640)
[2024-05-22 09:42:32 +0200] [23641] [INFO] Booting worker with pid: 23641
INIT SIGNALS FROM CUSTOM (self.pid=23641)
[2024-05-22 09:42:33 +0200] [23640] [INFO] Started server process [23640]
[2024-05-22 09:42:33 +0200] [23640] [INFO] Waiting for application startup.
STARTUP
[2024-05-22 09:42:33 +0200] [23640] [INFO] Application startup complete.
[2024-05-22 09:42:33 +0200] [23641] [INFO] Started server process [23641]
[2024-05-22 09:42:33 +0200] [23641] [INFO] Waiting for application startup.
STARTUP
[2024-05-22 09:42:33 +0200] [23641] [INFO] Application startup complete.
Terminating worker 23641 with SIGTERM.
[2024-05-22 09:42:55 +0200] [23641] [ERROR] Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1871, in _run_once
    event_list = self._selector.select(timeout)
  File "/usr/lib/python3.10/selectors.py", line 469, in select
    fd_event_list = self._selector.poll(timeout, max_ev)
  File "~/.cache/pypoetry/virtualenvs/fractal-server-cyevISt_-py3.10/lib/python3.10/site-packages/gunicorn/workers/base.py", line 203, in handle_abort
    sys.exit(1)
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "~/.cache/pypoetry/virtualenvs/fractal-server-cyevISt_-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 741, in lifespan
    await receive()
  File "~/.cache/pypoetry/virtualenvs/fractal-server-cyevISt_-py3.10/lib/python3.10/site-packages/uvicorn/lifespan/on.py", line 137, in receive
    return await self.receive_queue.get()
  File "/usr/lib/python3.10/asyncio/queues.py", line 159, in get
    await getter
asyncio.exceptions.CancelledError

[2024-05-22 09:42:55 +0200] [23641] [INFO] Worker exiting (pid: 23641)
[2024-05-22 09:42:55 +0200] [23637] [ERROR] Worker (pid:23641) exited with code 1
[2024-05-22 09:42:55 +0200] [23637] [ERROR] Worker (pid:23641) exited with code 1.
[2024-05-22 09:42:55 +0200] [23891] [INFO] Booting worker with pid: 23891
INIT SIGNALS FROM CUSTOM (self.pid=23891)
[2024-05-22 09:42:55 +0200] [23891] [INFO] Started server process [23891]
[2024-05-22 09:42:55 +0200] [23891] [INFO] Waiting for application startup.
STARTUP
[2024-05-22 09:42:55 +0200] [23891] [INFO] Application startup complete.

This is indeed the expected behavior (transform sigabrt into sigkill, execute custom worker_abort method, start a new worker.
The only part we'd try to improve is to understand why the exception is not catched properly.


Begin Terraform tooling for Aspen

Description
Begin TF tooling for the Batch compute environment to manage Aspen phylogeny inference jobs.
Test plan
Deploy and run:
aegea batch submit --queue aspen-dev --execute pwd --dry-run
aegea batch submit --queue aspen-dev --execute pwd --watch

to test the Batch compute environment works as expected.
@ttung please push your SSH_PUBLIC_KEY changes to the environment and batch_queue.tf files.
The DEPLOYMENT_ENVIRONMENT variable controls which environment (staging, prod) the code gets deployed to. The default is dev. All asset names are keyed by this variable so they don't interfere between deployment environments, even when deployed to the same AWS account.
Some points for discussion/future PRs:

Do you want to use step functions to envelope the Batch jobs? We have TF tooling for this as well. I prefer to use step functions because they provide first-class JSON I/O, better error handling, a better state tracking system than Batch jobs, remain longer in the API so you can easily examine them, and provide better event integration with other AWS services as necessary.
How do you plan to manage the Docker image for these jobs? The IDseq Dockerfiles are here: https://github.com/chanzuckerberg/idseq/tree/main/workflows/docker and they are built and pushed to ECR here: https://github.com/chanzuckerberg/idseq/blob/main/scripts/build_docker_image.sh - I can generate a minimal version of this config if needed.

Closing this since it was adapted/copied and merged in other PRs.


Clarify what the issuer URL is

The text currently reads under https://solid.github.io/solid-oidc/#tokens-access:

iss — The issuer claim MUST be a valid URL of the IdP instantiating this token.

And the example is
    "iss": "https://idp.example.com",

However, as remarked by @acoburn, https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier says:

The issuer returned by discovery MUST exactly match the value of iss in the ID Token.

and

It is RECOMMENDED that only a single Issuer per host be used. However, if a host supports multiple tenants, multiple Issuers for that host may be needed.

So what is the exact URL that we will mandate?

The URL is whatever the discovery document says it is. IOW, when you take the iss claim and append .well-known/openid-configuration, that JSON document will have an issuer claim. The two need to be exact string matches.
Some valid examples include:
https://idp.example
https://idp.example/
https://idp.example/tenant
https://idp.example/tenant/

Thanks. That's a suffient clarification to me; I wonder if perhaps a short note in the doc could help.

https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationRequest

If the Issuer value contains a path component, any terminating / MUST be removed before appending /.well-known/openid-configuration.

I wonder if perhaps a short note in the doc could help.

I recall in gitter there was a discussion about verifying if issuer in Access Token is the one designated by the user. Current draft says:

If the iss claim is different from the domain of the WebID, then the RS MUST check the WebID document for the existence of a statement matching ?webid http://www.w3.org/ns/solid/terms#oidcIssuer ?iss., where ?webid and ?iss are the values of the webid and iss claims respectively.

Should we add that iss IRI is matched using Simple String Comparision

I think we could reference this section: https://datatracker.ietf.org/doc/html/rfc8414#section-3.1

If the issuer identifier value contains a path component, any
terminating "/" MUST be removed before inserting "/.well-known/" and
the well-known URI suffix between the host component and the path
component.  The client would make the following request when the
issuer identifier is "https://example.com/issuer1" and the well-known
URI suffix is "oauth-authorization-server" to obtain the metadata,
since the issuer identifier contains a path component:

  GET /.well-known/oauth-authorization-server/issuer1 HTTP/1.1
  Host: example.com

Using path components enables supporting multiple issuers per host.
This is required in some multi-tenant hosting configurations.  This
use of ".well-known" is for supporting multiple issuers per host;
unlike its use in RFC 5785 [RFC5785], it does not provide general
information about the host.

Should we add that both webid and iss IRIs are matched using Simple String Comparision

I think we should actually recommend normalizing the issuer IRI before trying to match it.
This comes especially important for authority with an empty path. Since https://op.example is equivalent to https://op.example/, the issuer check MUST not fail due to this difference.
https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3

Normalizing the URL is getting into dangerous territory. OpenID and OAuth have historically replied on String comparisons for this. You can see this in the spec references above. I would highly, highly recommend not doing anything different for Solid.

I see, I'll look into adding a NOTE that mentions the normalization topic and warns that that https://op.example/ and https://op.example fail simple string comparison even though they are equivalent IRIs.
In the end, direct user input is not being compared, only the information in the Id Token and WebID document.
If the user has to edit their WebID Document on their own, they should be warned to use the exact same value that OP provided to them.


Add do_after on some gun magazing loading.

So for stuff like LMGs, snipers which take clips, the more heavy weapons there should be a big of a reload time.

By wizard decree this has been yeeted https://discord.com/channels/310555209753690112/310555209753690112/842383353058557962


How to generate never expiring token?

I dont want to refresh the token each time after TTL is end. My Once generated token should never expire.
How could I do this?

Have you tried setting it to 0 @iamrutvik?

Change JWT ttl to null in config/jwt.php :
'ttl' => env('JWT_TTL', null),
This works in JWTAuth version 1.0, but not in 0.5.

Thank you @andrewshostak . Closing this.


Interstate assignment to map

Maps simple interstate assignments to map encompassing the whole state.
Will complete after the bug fix on re-declaration of symbols is merge.
The pass only transforms if the assignment is a constant. (and the loops such as i = i + 1 should not be affected)

I should move this to a transformation. If the assigned symbol's value is used in more than one state, we need to wrap the whole subgraph where this value is necessary in a map and not just one state.


Improve language around and_invoke

Follow up to #1487 that notes the behaviour surrounding callables.

Thank you!

@JonRowe appreciate the follow up and good work you all are doin'


Example for exporting model?

Hi,
I want to export the reconstruction to reconstruct the dense model from that. There are several options to export models into NVM, VRML, PLY, bundler as in  reconstruction/reconstruction.cc. But the usages of these functions are unclear for me. Could you kindly provide an example of exporting models?

Indeed the documentation of exporting pycolmap reconstructions was a bit sparse. We extended the export bindings and added some documentation in the README on branch export-reconstruction. Please let us know if this clarifies the usage of these functions.


[New game]: Calender game

🎮 Game Request
Game logic and basic description
Point down the features
Game points
Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @kalashvasaniya !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹


Issue-Increases strictness of type checker.
Adds a check that ensures every function with a return statement returns from all code paths.
There was one place where this wasn't happening, which was fixed.
Added node_modules and package-lock.json to .gitignore.
I'm not sure why node_modules wasn't present.
I also added package-lock.json because I know the maintainers don't commit it, though I personally think it should be committed so builds are reliably reproducible.
Added vscode setting to use locally installed TS when using this project, rather than globally installed.

Automated Review Comments
Issues in index.ts:

(4, 'Line exceeds 80 characters')
Issues in package.json:
(2, 'Hardcoded string found')
(3, 'Hardcoded string found')
(4, 'Hardcoded string found')
(5, 'Hardcoded string found')
(6, 'Hardcoded string found')
Issues in tsconfig.json:
(2, 'Hardcoded string found')
(3, 'Hardcoded string found')
(4, 'Hardcoded string found')
(5, 'Hardcoded string found')
(6, 'Hardcoded string found')
(7, 'Hardcoded string found')
(9, 'Hardcoded string found')
(10, 'Hardcoded string found')

I got it.


use expiresIn instead of deprecated expiresInMinutes

I have this warning in hexo console:
invalid "expiresInMinutes" option for string payload
jsonwebtoken: expiresInMinutes and expiresInSeconds is deprecated.
Use "expiresIn" expressed in seconds.

Maybe there's something else to edit, I'm not familiar with hexo.

Thanks for your PR, I've noticed that warning, but i think we can't simply rename the variable without warning the users to update their _config.yml


[ENG-2562] Adds guide on 'Use Token Data in Reactors'

Description

Adds the guide 'Use Token Data in Reactors'
Adds a placeholder page for the upcoming concepts page on Reactors for linking to it

Testing required outside of automated testing?

[x] Not Applicable

Screenshots (if appropriate):

Rollback / Rollforward Procedure

[x] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

:tada: This PR is included in version 1.9.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix #1108: PPSS "passing-around" cleanup (alternate version)

Closes #1108

Closed due to feedback from Roberto.


.NET Core application doesn't launch in Ubuntu 18.04

Pressing Ctrl + F5 after creating a new webapp/mvc actually doesn't run the app in Ubuntu 18.04. Because of the two ports in Properties > launchSettings.json kestrel doesn't listen to Port 5001.
All you need to do is to update the lauchSettings.json file as follows:
Initial Code
"MvcBooks": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Updated Code
"MvcBooks": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Now pressing Ctrl + F5 works to run the application. My request to the official @aspnet is to update this in docs tutorial.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ad8c13e7-78e6-cf9a-e7cb-3215df5fd1c4
Version Independent ID: a3c1d2a6-625a-3409-120d-8372230a8196
Content: Introduction to ASP.NET Core
Content Source: aspnetcore/index.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@scottaddie @guardrex  sounds like a template bug.

If RequiresHttps is true (via VS check box or in the default template case or with an authentication option passed when creating the app), it will provide the secure endpoint. For example (they all have this) ...
https://github.com/aspnet/AspNetCore/blob/master/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Properties/launchSettings.json
I'm still out-of-town at a conference. I'll look later this weekend and see what we can do to clarify it in the Nginx topics. The topics and examples there do go with an insecure app experience, so we should have the readers produce an app for the experience without the secure endooint. Thanks @shunjid

@guardrex : Was there any change regarding this issue in documentation/sdk?

@guardrex :
Is this the part updated in document to remove https://localhost:5001 right after the issue was closed?

@shunjid Yes, but I'm not sure what you mean by "right after the issue was closed." When the PR merges, the issue automatically closes.

@guardrex Got it. Thanks anyway  +1:


Requested Feature

Exploratory Analysis:

Still a network hairball chart is desirable before the following.

Downstream Analysis:

To add a summary statistics below the visualized analysis/triples. For example the most frequent Subject, Predicate and Object.

Can you give some more details?

A link to a hairball chart (png)
we should add more statistics on screen; but i'm not sure what you mean here

Network Chart:

[https://ideas.sap.com/ct/getfile.bix?a=OD5268&f=A4533989-CD60-4E7B-89C3-397254DF7979&c=6013C007-A70B-4283-93CE-2531683D816D]

Summary stastistics for example

Frequency of each concept
Total concepts
Percentage

Ok, i see what kind of chart you want. Can you also show me some typical data structure (json, csv) file that should give such a chart? There are lots of ways to store networks..

At this moment it would be great if we have three columns separated by "," representing Subject, Predicate & Object. Please see an example [https://github.com/DTL-FAIRData/ODEX4all-UseCases/blob/master/DSM/triple/app/triple_comma2.csv]

ok, there is a first version of a hairball plot with force directed layout.
You can add 2 partitions, one for 'subject' and one for 'object'.
It is assumed that the objects and subjects are from the same set, ie. each object can be a subject and vice versa.
Ideas on how to go on from here welcome, fi:

color the edges based on predicate
color / shape / size the nodes based on another property
...

For the statistics, you can ofcourse add more plots, fi

one showing a histogram count by predicate
one showing a histogram of object, subdiveded by predicate
...

Great,would certainly like to explore it together with you or Faruk this thursday ?


Callback that triggers after Steps has loaded

I thought my answer was onFinished but when i do a console log inside the onFinished callback nothing shows up in my console. What is onFinished and is there such as callback that triggers after steps is not initializing?

Or is onInit what im looking for... I guess I may have just misread the docs and took it to mean thats what fires when it starts to initialize no what it fires AFTER it initializes


Place After Party Catering Order

Three Notch wants to know the catering order 2 weeks before the event.

I've got the invoices listed in issue #16


fix(check): Don't lose type information in catch-all

Introduced when adding row polymorphism for variants which were need for
effects.
cc @tyler-conrad
Fixes #702
Fixes #703
Fixes #704
Fixes #705

@tyler-conrad Seems like the reverse function got a to general type signature (List a -> List b) which hid some actual type errors.

bors r+


Make model public

Hi. From 5.x version I am able to use ITemplateFactory to provide my own templates. That's really good approach (I made something similar in my previous fork) but there is just one problem - models are still internal so I can't easily access theirs properties. Also I don't have intelisense on my T4 template. There will be much easier if I can use them directly in my code. I have create PR with appropriate changes. Please take a look and tell me: if this is good approach and if not how I can easily reuse your model?

Just one thing - I used stag comments as I don't know exactly what description will be correct.

Yes, making the models public would be the next stop. Also some models are still dynamic (i.e. of type object) and must be converted to a strongly-typed class...

So, first you want to strongly-type model and then make it public? Ok... So when do you think this will be released and do you think I can help you with that?

I will merge your PR, but we need to improve the XML comments first:

All tags on a single line
Remove the  tags
Add class  tag contents (ie. "The CSharp client template model")

Then we'll refactor the model classes and add typed model classes for the missing models (see Visual Studio Tasks)...

For more discussions: https://github.com/NSwag/NSwag/issues/51


Reduce once $config['query_toggle_count'] checking

This checking can be done by calling set_sections method when initialize profiler .

You might as well remove the foreach loop too then.

This key isn't included in the array.

What has that got to do with removing the loop?

The loop is for $_available_sections, and the key isn't in $_available_sections but can be in $config. What's wrong with this?

I'm not saying there's anything wrong with this - it's completely fine. I'm saying you can remove the loop, because it's also handled by set_sections().

The loop is setting default sections to display.

Head -> desk.

If the sections are defined in config file, this loop can be removed.


Create dlink-firmwares.md

Thank you very much for the PR. We will merge it when you have done the additional description with the binwalk analysis.


fix(cis): update CIS AWS v2.0 Section 2.1 refs

Context
Fixed a couple of reference numbers that were wrong for CIS AWS v2.0
Description
Changed ref 2.1.4 -> 2.1.3, ref 2.1.5 -> 2.1.4
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Good catch @strawp , the issue here is that 2.1.1 no exists on this version. Can you eliminate it?

It would be 2.1.3 -> 2.1.2 and 2.1.2 -> 2.1.1. Thanks!

Yes, I've decided to script some checks against the CIS PDF so I'll check everything and then adjust accordingly. These two were just ones I spotted because I'd reported on them

Awesome @strawp , I have updated the PR with the required changes of the Section 2.1 that we mentioned. Feel free to open PRs if there are more adjusts needed from the CIS. Thanks!

Nice one, thanks! I looked through everything else and didn't spot any other mismatches


baseline correction too verbose

I feel that baseline correction is too verbose:
Applying baseline correction ... (mode: mean)
Reading 1966985 ... 1969735  =    393.397 ...   393.947 secs...
[done]
Applying baseline correction ... (mode: mean)
Reading 1969485 ... 1972235  =    393.897 ...   394.447 secs...
[done]
Applying baseline correction ... (mode: mean)
Reading 1971985 ... 1974735  =    394.397 ...   394.947 secs...
[done]
Applying baseline correction ... (mode: mean)
Reading 1974485 ... 1977235  =    394.897 ...   395.447 secs...
[done]

I have thousands of trials and by the end of it, I lose any messages that were before this. If we can use this instead: https://github.com/mne-tools/mne-python/blob/b143c6df244dca2e6121048fae99cb6e1cfa84ab/mne/utils.py#L1148, that would be great.

can't you just set verbose=False for this function?

of course I can :) but as @teonlamont would say, that would be a hack ;-)

actually, in this case I wouldn't call it a hack since we have a proper implementation for dealing with this.

maybe you want something like verbose='minimal' but that would be a bit overkill ;)

no but seriously, I don't want to suppress the progress bar completely. I like to know where I am, just a little more streamlined :)

I guess you're saying that pretty much no one needs to know that the hundreds of epochs you baseline was in fact baseline individually. I would agree with that.

so you're suggesting making the output more concise and just overshare with your command line.

so don't plot the baseline correction for all epochs? how about the read
segments?
I personally work with 'warning' as log level

@jasmainak any opinion on the "right" way to do it? I'm thinking just saying baseline is applied once (if it's easy enough to program), but leave in the Reading lines (since sometimes it can be slow) and get rid of the [done] since it's implied. WDYT?

What about a progress bar ?
On Wednesday, 25 November 2015, Eric Larson<EMAIL_ADDRESS>wrote:

@jasmainak https://github.com/jasmainak any opinion on the "right" way
to do it? I'm thinking just saying baseline is applied once (if it's easy
enough to program), but leave in the Reading lines (since sometimes it
can be slow) and get rid of the [done] since it's implied. WDYT?
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2236#issuecomment-159616803
.

yeah, maybe I was thinking more along the lines of using the progressbar object in utils: https://github.com/mne-tools/mne-python/blob/62159a3dfbb1f0ca143958f2414d9c7497daccd7/mne/utils.py#L1192

Progress bar doesn't get logged / is incompatible with logger / logging module. So for people who want to save their logs using set_log_file it won't work.

Is it actually informative to have all those lines in a logging file? We can't have a one line summary for the logging file?

I suppose we could do it. It's not backward compatible, but I strongly suspect nobody has been using the messages. Maybe we don't need the Reading messages at all, but instead whatever calls that should do the progress-bar'ing.

hum... why do you feel limited by set_log_file and passing
verbose=False whenever you need it?

yes, that's possible but I feel this is not a good default. I don't see how printing "Applying baseline correction" for each data segment is informative. It simply obscures more important information on the console.

use verbose=False?
or introduce 2 levels of verbosity? making verbose an int

yeah, I think introducing levels of verbosity might be a good idea

yes, that's possible but I feel this is not a good default. I don't see how printing "Applying baseline correction" for each data segment is informative. It simply obscures more important information on the console.

Agreed. As a beginner, this really annoyed me.

fait enough improvement suggestion welcome

How about a simple fix of reporting the baseline correction type when instantiating the object only?

Probably preferable to our own levels -- from the logging docs:

Defining your own levels is possible, but should not be necessary, as the existing levels have been chosen on the basis of practical experience. However, if you are convinced that you need custom levels, great care should be exercised when doing this, and it is possibly a very bad idea to define custom levels if you are developing a library. That’s because if multiple library authors all define their own custom levels, there is a chance that the logging output from such multiple libraries used together will be difficult for the using developer to control and/or interpret, because a given numeric value might mean different things for different libraries.

So let's see if we can do without it.


Crosslocale doesn't seem to be working

Version Number of Plugin: 2.0.0
Device Tested On: Sony Experia z3 android 6.0.1
I tried to set as below and tested with german and spanish languages but everytime, I get English accent. I compared language and displayname from the avilable list and they are set correctly for both languages.
I expect native speech. Do I understand this wrong? Do i do something wrong?
  var crosslocale = new Plugin.TextToSpeech.Abstractions.CrossLocale()
            {
                 Language = CurrentCultureInfo.TwoLetterISOLanguageName,
                  DisplayName = CurrentCultureInfo.DisplayName,

            };

 Plugin.TextToSpeech.CrossTextToSpeech.Current.Speak(text, crossLocale: crosslocale)

You can't create your own, you need to query the system for them and then use one of them that is returned.

Use: GetInstalledLanguages()

thanks, that works :)


Support the azure blobstore as external blobstore for bosh

Is your feature request related to a problem? Please describe.
On Azure we are still forced to use a local blobstore for bosh because there is no implementation to have an external blobstore in an Azure environment. For example for a multi-az setup it's necessary to have an external blobstore.
Describe the solution you'd like
We can configure a external blobstore like for AWS and GCP: https://bosh.io/docs/release-blobstore/

To be able to support the Azure native blobstore we would first need a bosh blobstore cli for it: https://github.com/cloudfoundry/bosh-s3cli

In 2018 there was already a very similar issue: https://github.com/cloudfoundry/bosh-azure-cpi-release/issues/545.
Issue https://github.com/cloudfoundry/bosh-azure-cpi-release/issues/545 proposed https://github.com/bingosummer/bosh-azureblobcli in addition to some integration changes.

Just for reference what the CF Cloud Controller uses here https://github.com/cloudfoundry/cloud_controller_ng/blob/8173f4677b350b79dc5c985a3005119b9644919a/Gemfile.lock#L30-L40

Current development is happening in: https://github.com/mvach/bosh-azure-storage-cli

CLI development is now happening in: https://github.com/cloudfoundry/bosh-azure-storage-cli

Still missing is the director and agent integration.

@mvach is this still in progress?

Hi, this is definitely still required, but I'm currently not taking care for the director integration because of time shortages. However if not me, then my team will take care latest in q3. I still hope to find time before.

The integration into the director and the agent consists of:
https://github.com/cloudfoundry/bosh/pull/2455
https://github.com/cloudfoundry/bosh/pull/2456
https://github.com/cloudfoundry/bosh-linux-stemcell-builder/pull/295
https://github.com/cloudfoundry/bosh-stemcells-ci/pull/14
https://github.com/cloudfoundry/docs-bosh/pull/798
Right now only the docs PR still need to be merged.

Since all PRs are merged, I'm closing this issue.


swig: 3.0.7 -> 3.0.10

Motivation for this change
Things done

[ ] Tested using sandboxing
(nix.useChroot on NixOS,
or option build-use-chroot in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@leenaars, the Travis has failed with segfault during build of swig. Could you take a look?

Travis passed now

It breaks nixos-rebuild on 64-bit systems:
$ sudo nixos-rebuild -I nixpkgs=. test
...
error: Package ‘swig-3.0.10’ in ‘/home/bfo/proj/code/forks/nixpkgs/pkgs/development/tools/misc/swig/3.x.nix:27’ is not supported on ‘x86_64-linux’, refusing to evaluate.

Fixed: d5c27859b45a1a6743e2b901b9d40b48e6f810ec.


Added Access-Control-Allow-Headers to the set of headers

Added Access-Control-Allow-Headers to the set of headers.
This is needed when calling endpoint from JavaScript in a browser, otherwise we run into an error in the OPTIONS request.

Reverted changes to MaxBuffer and added unit test for this feature.


Unable to make HttpWebRequest call using TLS 1.2

The httpWebRequest currently can't use the TLS 1.2 security protocol because of .NET 4.0. Any plans to upgrade to .NET 4.5 and to support TLS 1.2?

Hi, yes will take a look

https://github.com/mikefourie/MSBuildExtensionPack/releases/tag/<IP_ADDRESS> targets 4.7.

will push this out with the next release. if you need it now simply rebuild the code.


Crash when opening project Godot 4RC2, Pop!OS Linux

Describe the bug
When attempting to open a project with the launcher, the window disappears and the log file is full of errors.
To Reproduce

Install Godot 4 RC 2 Mono
Import an existing Godot 4 RC 2 Mono project
Attempt to open aforementioned project

Expected behavior
The launcher opens the Godot executable targeting the particular project path
Complete the Following:

OS: Linux -  Pop!_OS 22.04 LTS
Version: 0.2.1-release

Additional context
Applicable log file is attached
godot_2023-02-20_15.24.56.log

I generated an additional log file, same testing process, but it the manager was launched with --verbose to give more detailed information. I hope it helps!
godot.log

Most of these errors, will happen no matter what, cause of the were it crashes, and what is happening.  The only thing I can suggest, is to try and remove the files in %APPDATA%\Godot-Manager on Windows or ~/.local/share/Godot-Manager on Linux / Mac OS.  I am currently in the middle of a complete Re-Write of the code base, that will be doing a lot of things differently, that may solve a lot of these issues.

Debug log does not generate enough information to show how this is failing to launch.  Closing as unable to reproduce.


Do not change request.url (manipulating the basic API is not a good idea)

Connect changes request.url and sets request.originalUrl to the real url. It would be better not to touch request.url but to add another value that be used for the connects own purposes ...

this is by-design, and wont be changing in the near future (if ever). It's a very helpful abstraction, middleware shouldn't care where they are


Using a decorator would make it easier to define getInitialProps on the highest component.
function connectProps(getInitialProps) {
  return (WrappedComponent) => {
    WrappedComponent.getInitialProps = getInitialProps
    return WrappedComponent;
  };
};

function Index() {
  return (

      Hello World {this.props.userAgent}

  );
}

export default connectProps(({req}) => {
  return req
    ? { userAgent: req.headers['user-agent'] }
    : { userAgent: navigator.userAgent }
})(someOtherHOC(Index));

Another example, but a bit cleaner and shows off how this can potentially compose.
import {connectProps} from 'next';
import {someOtherHOC} from 'other-library';

function Index() {
  return (

      Hello World {this.props.userAgent}

  );
}

const connectUserAgent = connectProps(({req}) => {
  return req
    ? {userAgent: req.headers['user-agent']}
    : {userAgent: navigator.userAgent}
})

export default connectUserAgent(someOtherHOC(Index));

@amccloud I like the idea but am wondering if we should support this in next.js, or creating an external library might be enough.

I think this should become the canonical way for injecting data into a page component. To avoid shadowing getInitialProps, It's easy to explain to always wrap your export. The design also aligns with redux and the likes.

yep, but actually you'd have to explain to always wrap the outermost component.
that's kind of similar to do to always add getInitialProps to the outermost component.
Another idea is to support exporting getInitialProps like:
export function getInitialProps () {
  return { name: 'foo' }
}

export default (props) =>
hi, {props.name}

@nkzawa that wouldn't address the problem that the component isn't self-encapsulating. Systems such as Redux allow to export default connect(...)(Comp), i.e a single export suffices and then outside of it, no need to do any special wiring.
It still seems to me like some kind of tree scanning would be needed (https://github.com/zeit/next.js/issues/192), until the day React supports async lifecycle methods (https://github.com/facebook/react/issues/1739)...

Just to add another data point: this suggestion is similar to how the Meteor framework does things too and it works well. They call them containers:
import { createContainer } from 'meteor/react-meteor-data';

function SomeComponent () {
  return (

      Hello World {this.props.userAgent}

  );
}

export default createContainer(props => {
  return {
    userAgent: whatever,
  };
}, SomeComponent);

It's slightly different in that a Meteor container passes the props as arguments, rather than req/res etc, and the returned value of the container is merged in to the props. The return value of a createContainer call is "just another component"

@sedubois why would tree scanning be necessary? Btw, I arrived at this issue when trying to implement authentication also.
export default connectProps([...])(requireAuth(Index));

The component returned by requireAuth never touches getInitialProps.
@nkzawa maybe it can be called connectPage and every page component must export wrapped. Next could warn if it doesn't detect the connectPage HOC.

@amccloud I might just have misunderstood, but it sounds like this connect should still be used on every parent of components which make use of getInitialProps? For example: (see here for something complete)
// pages/index.js
import page from '../hocs/page';
import Child1 from '../components/Child1';

const Home = () => (

Welcome!

    <Child1 />

);

export default page(Home);

// components/Child1.js
import Users from '../components/Users';

const Child1 = (

something fancy

    <Users />

);

export default Child1;

// components/Users.js
import apollo from '../hocs/apollo';
import UserPreview from './UserPreview';

const Users = (props) => (props.data.allUsers
      .map(u => <UserPreview key={u.id} user={UserPreview.fragments.user.filter(u)} />);
const query = gql`{ allUsers { id, ...UserPreview } }`;
const options = { options: { fragments: UserPreview.fragments.user.fragments() } };

export default apollo(query, options)(Users);

In the above, apollo is a HOC which has a getInitialProps. If I understood right, you'd still need to add some kind of connect e.g. on Child1, and inside the page HOC, i.e they all get "polluted" just because of the single getInitialProps defined inside apollo. If this were Redux, this AFAIK wouldn't be necessary. A connect used within children does not not force a connect in the parents.
Or maybe you meant to pull all the getInitialProps logic outside of the apollo HOC and into the root component? But that would defeat the purpose of components, which is to have self-encapsulated pieces of code.
Maybe I'd better understand if there were an example with several levels of child components each in their separate file.

@amccloud I think you need to compose the components instead of modifying the original, otherwise this example won't work (prints Child2 twice):
const Child = ({ name }) =>
{name}
;
const Child1 = connectProps(() => ({ name: 'Child1' }))(Child);
const Child2 = connectProps(() => ({ name: 'Child2' }))(Child);

export default class extends React.Component {
  static getInitialProps(ctx) {
    return {
      child1: Child1.getInitialProps(ctx),
      child2: Child2.getInitialProps(ctx),
    };
  }
  render() {
    return (

        <Child1 name={this.props.child1.name} />
        <Child2 name={this.props.child2.name} />

    );
  }
}

Something like this:
// connectInitialProps.js
import React from 'react';

export default function connectInitialProps(getInitialProps) {
  return (WrappedComponent) => {
    function WithGetInitialProps(props) {
      return <WrappedComponent {...props} />;
    }
    WithGetInitialProps.getInitialProps = getInitialProps;
    return WithGetInitialProps;
  };
}

@sedubois good catch. I actually started off with a wrapped component but didn't catch this scenario.

I'm going to close this. It's a cool idea, but has been open for about 6 months 😄


Add --feature option to bdd:snippets to enable creating snippets for a subset of .feature files

Thanks, this should be fine. Esp with documentation! :+1:

Thank you!


Limit Bazel to available CCI resources of 3072 MB (of 4096 max) & 2 core

Should fix https://github.com/bazelbuild/bazel/issues/3645.
Issue as far as I can tell is that Bazel was assuming the available resources were much higher than then actually were (the machine the docker container runs on has a ton of resources but CCI limits the container to 4096 MB and 2 cores). During SASS compilation especially there are a lot of gcc calls being launched in parallel which seemed to exceed the 4096 MB max most of the time and kill the build.
Add --local_resources=3072,2.0,1.0 to the bazel build command limits the build to resources to the amounts that CCI allows by default.

Wow, nice find.
What is "CCI"? I don't find anything by googling that. I assume it's related to the kernel-level sandboxing under docker? Maybe you are close to finding the root cause of that bazel issue - it suggests under https://docs.bazel.build/versions/master/bazel-user-manual.html#flag--ram_utilization_factor that Bazel should detect the amount of RAM, it seems that detection doesn't take virtualization into account?

My shorthand for CircleCI :)

Yea. I checked the free mem in CircleCI during the build and its a huge amount. So no way for Bazel to know then limit is 4096 MB.

There has to be some way Bazel can determine that - otherwise anyone using Bazel on Circle would need this workaround flag?


Add possibility to override the job that handles the stored event

This pull request adds the ability to use a different class to handle the stored event.
For a project i'm working on, every job that is handled through the queue needs a specific property set in order to connect to the right database when the job is being handled. This way, i'm able to provide the required information.

Thank you for this. Could you also add a test to prove that this work and submit a PR to our docs repo with that extra config value?

@freekmurze I totally forgot about this mr! For now, I don't have a direct need for this mr anymore. I've fixed the problem in another way. Is it ok with you if I close it?

@megawubs Sure 👍


Can we create python models with dbt-glue?

Referring to the documentation of python models here - https://docs.getdbt.com/docs/build/python-models

I am also very much interested in this functionality!

I am also very much interested in this functionality!

This is a blocker for us as well. It seems like it should be a no-brainer since Glue supports PySpark out of the box. Is this on the roadmap? Would you accept a patch to make it happen?

@jeancochrane Your patch would be greatly appreciated. Please go ahead and submit it through a pull request on GitHub. Let me know if you have any questions or need further guidance.

This one also long waited feature for us, is there any update on it ?

It's not exactly the same thing, but we have started using the new Python model support in dbt-athena and have been getting pretty good results so far. It's still experimental, and it runs on Athena PySpark sessions rather than Glue jobs, but it may be an option to consider for folks in this thread who are interested in using Python to target Glue databases via dbt.

Is there any update on this?

Is there any update on this?


Re-raise pytest-socket errors within DelayedRequester

Fixes

Fixes #624 by @AetherUnbound
Description

This PR does address the root cause of #624, wherein pytest-socket exceptions were being raised and squelched by the DelayedRequester class unconditionally. This meant that, even though requests would not get through, the entire request retry mechanism would run and take up a significant amount of time.
Since the specific exception we need to catch will only be available in the dev container and not the one we use in production, we also needed to set up an import catch for that particular case. This change ensures that if that specific exception is met (or any others we might need to single out in the future), it is re-raised for the testing infrastructure to report rather than being caught.
Note: CI will fail for this DAG until we merge #628 and rebase this! This was rebased and is now working as expected!
Testing Instructions

Run just test on c294e3e2bfc366a8e54e6897997dbd260466a94d and ensure that the tests run successfully (albeit around ~40s or more). Then run just test on this branch and ensure that there is 1 Stocksnap test failure that is caused by a pytest_socket.SocketConnectBlockedError exception.
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[x] I added or updated tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

It should have been tricky to identify the cause, as this setup!

Intuition and sheer happenstance graced me with a quick realization of what it might be 😄 I'm thankful it was easy enough to diagnose once I had an idea!


[DropDownMenu] Add defaultDisplayValue prop shown when there's no item with the corresponding value

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Fixes #4891 introduced by #4822.
Normally (at least accordingly to HTML specs), a select box shouldn't be empty, unless you there's an empty option, even if the value doesn't correspond to any item. So, you can specify a string in defaultDisplayValue prop to be shown in this case.

Does it work with hintText?
So we should only specify defaultDisplayValue={} and hintText={'my placeholder'}?

When defaultDisplayValue isn't specified, it will work as in the earlier versions. But when both are specified, they will still overlap each other. Not sure which one we should prioritize , and which to ignore in this case.

Added the prop also to SelectField, so it will be used only when no hintText and floatingLabelText specified.

@zalmoxisus As far as I have investigated the issue, we need the <TextField /> to know about the state of the <DropDownMenu />.
But the TextField is a parent of the DropDownMenu. I think that it should be the other way around. Having this order makes use do crazy stuff like:

Accessing the children value with:

const propsLeaf = children ? children.props : this.props;

Expose this imperative method:

  /**
   * This method is deprecated but still here because the TextField
   * need it in order to work. TODO: That will be addressed later.
   */
  getInputNode() {
    const root = this.refs.root;

    root.focus = () => {
      if (!this.props.disabled) {
        this.setState({
          open: !this.state.open,
          anchorEl: this.refs.root,
        });
      }
    };

    return root;
  }

I'm closing this PR as quite old now and inactive. Thanks helping us moving forward.
I have gathered some thought around how we could improve thing here https://github.com/callemall/material-ui/issues/4891#issuecomment-250904546.
That may require quite some work, so doing on the next branch might be better.


Eliminate the need for the IAM SA keys as Kubernetes secrets

It is a best practice not to use security key (whenever possible). But currently for Forseti on GKE, IAM service account key is obtained from GCP and added as a secret to kubernetes.
Per discussion with @kevensen, it is possible to create a dedicated Forseti nodepool in the cluster and bind the SA to the nodes, without using a key. i.e. "taint" these nodes as described above for the sole-use of Forseti.

Ought to be fixed going in to beta

@kevensen Please see @morgante's idea to use Workload Identity to solve this issue.
https://github.com/forseti-security/terraform-google-forseti/issues/250


Syncdev

Issue #, if available:
Description of changes:
merging master into develop
Description of how you validated changes:
make pr is successful
Checklist:

[x] make pr passes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #1266 into develop will decrease coverage by 0.06%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1266      +/-   ##
===========================================
- Coverage    94.48%   94.42%   -0.07%
===========================================
  Files           72       71       -1
  Lines         3738     3624     -114
  Branches       740      714      -26
===========================================
- Hits          3532     3422     -110
+ Misses         104      103       -1
+ Partials       102       99       -3

Impacted Files
Coverage Δ

samtranslator/model/lambda_.py
88.46% <ø> (ø)
:arrow_up:

samtranslator/model/eventsources/pull.py
94.64% <100%> (+0.52%)
:arrow_up:

samtranslator/__init__.py
100% <100%> (ø)
:arrow_up:

samtranslator/plugins/api/implicit_api_plugin.py
96.47% <0%> (-2.14%)
:arrow_down:

samtranslator/model/eventsources/push.py
89.49% <0%> (-0.32%)
:arrow_down:

...el/preferences/deployment_preference_collection.py
91.13% <0%> (-0.22%)
:arrow_down:

samtranslator/model/sam_resources.py
95.49% <0%> (-0.13%)
:arrow_down:

samtranslator/model/apigateway.py
97.79% <0%> (-0.11%)
:arrow_down:

samtranslator/model/iam.py
81.25% <0%> (ø)
:arrow_up:

...nslator/model/preferences/deployment_preference.py
100% <0%> (ø)
:arrow_up:

... and 8 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 3725f00...76dfb3f. Read the comment docs.


Update Connect Sync positive filtering for clarity

Closes #907
The original phrasing could be misinterpreted to mean the opposite.

@billmath
Can you review this PR? Sign off or approve if you accept the changes
Note: To sign off, add a #sign-off comment to the PR.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


fix(gatsby-theme-docz): use options from gatsby-config

NOTE: This is a PR against the v1 branch
Description
The gatsby-node onPreInit hook passes in two arguments, the second of which is the plugin options.
This fixes merging of options defined for gatsby-theme-docz in a project's gatsby-config.js.

thanks @lettertwo, really... btw, did you testing v1?

Yes! Using v1 alpha in a project.  I’ve got a few temporary hax in place to make it work, but it’s early days on the project, so I’m planning to keep up to date with the v1 progress.


Integrated Terminal Not Working

Issue Type: Bug
Integrated terminal does not load and cannot select a "default shell".
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:40.634Z)
OS version: Linux x64 5.0.0-29-generic snap

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 4600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: unavailable_offviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
0, 0, 0

Memory (System)
31.35GB (23.99GB free)

Process Argv
/home/micahpearlman/dev/work/fs/thirdwave/forklift-sim/tw-forklift-sim-unity -g /home/micahpearlman/dev/work/fs/thirdwave/forklift-sim/tw-forklift-sim-unity/Assets/TWSim/Scripts/VehicleControllers/TWRaymond7500VehicleController.cs:1:0

Screen Reader
no

VM
0%

Extensions (20)

Extension
Author (truncated)
Version

shaderlabvscodefree
aml
1.1.5

path-intellisense
chr
1.4.2

xml
Dot
2.5.0

docker-explorer
for
0.1.6

auto-using
Fud
0.7.9

vscode-nuget-package-manager
jmr
1.1.6

docomment
k--
0.1.8

unity-code-snippets
kle
1.3.0

shaderlabformatter
lit
0.3.0

vscode-docker
ms-
0.8.1

python
ms-
2019.10.41019

cpptools
ms-
0.26.0

csharp
ms-
1.21.5

shader
sle
1.1.4

urdf
smi
0.1.0

unity-tools
Tob
1.1.1

unity-debug
Uni
2.7.2

vscode-lldb
vad
1.3.0

cmake-tools
vec
1.1.3

clang-format
xav
1.9.0

It looks like your report is missing some important information, See this wiki page for more info on how to report actionable terminal issues.

My setup is a little different than above, but I have the same issue.

Version: 1.40.0-insider
Commit: be68a4e14c28cc81cdf422739af23123b3c91fd2
Date: 2019-10-16T09:58:27.703Z
Electron: 6.0.12
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.0.0-31-generic snap

I uninstalled and reinstalled and now it works.  :-/

@micahpearlman did you reinstall using the snap?
@chikaj any errors in devtools? Can you share your settings.json file? Trace logging could help identify where the init process breaks down https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

@Tyriar I did reinstall using snap.  FYI:  My issue looked exactly the same as @chikaj

FYI: The issue came back.  Not clear if it auto-updated and I didn't notice.

Video of the issue: https://www.dropbox.com/s/ikt3ymnz41s9nmv/broken-vscode-integrated-terminal.mp4?dl=0

@micahpearlman please try enabling trace logging and see what the logs say when you open a terminal https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

@Tyriar [2019-10-18 09:35:26.421] [renderer3] [error] A system error occurred (EACCES: permission denied, open '/proc/1/environ'): Error: EACCES: permission denied, open '/proc/1/environ'

Ah, remove the inheritEnv setting
/duplicate https://github.com/microsoft/vscode/issues/76542


Update number of dimensions of Y

X is 2 dimensional, but make Y multi dimensional.

On Development


Update automated email (fixes #382)

Description of changes
Copy updates to the automated email for readability and onboarding. Removes outdated links.
Issue Resolved
Fixes #382

Travis build isn't reporting here that it worked. But the status is actually complete on the travis site:


Add method to set app id

It is easy enough to put that method in native, but I figured it would be more useful to add a method here.

@Bhullnatik can you resolve your merge conflicts?

@Bhullnatik Is your branch working?
Tried it here and was unable to get it to work

With the latest version of the Google Mobile Ads SDK you must specify the app id in the AndroidManifest.xml (for Android) and Info.plist (for iOS).


⚠ AGEG website (prod) has degraded performance

In c7c40a8, AGEG website (prod) (https://www.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2258 ms

Resolved: AGEG website (prod) performance has improved in 51d5ca4.


[BrokenLinksH2] Fixed the link path

Fixed the link

Docs Build status updates of commit c164221:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/ReleaseNotes/CNTK_1_6_Release_Notes.md
:bulb:Suggestion
View
Details

articles/ReleaseNotes/CNTK_1_6_Release_Notes.md

Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix broken links
@chrisbasoglu
The Content & Learning team is fixing broken links on docs.microsoft.com for the rest of H2. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only link fixes and does not change other content. I’d very much appreciate your timely review and feedback on the link changes I’ve suggested. Thanks!


[FLOC-4247] Allow the client and node AMI maps to be supplied on the command line

Fixes: https://clusterhq.atlassian.net/browse/FLOC-4247
Stacked on #2665

Reviewing at https://github.com/ClusterHQ/flocker/pull/2671/files Cause I didn't want to figure out what change was part of which PR.

Couple review notes on the other PR. Consider them or not.
If the intention is that this script will only ever be run by some automated process feel free to ignore them. I'm just a bit concerned if I'm expected to write large JSON blobs every time I want to run this script.


Update sass colour variables to use colour palettes and sass maps

This item is under review to assess the benefits.

Reviewed and unchanged.


Phaser 2.5.0 - Phaser.Text Changing text dynamically causes game to lag

Changing text in global update method causes game to lag in Phaser 2.5.0, while it works smooth in 2.4.8.

Thanks for opening this issue. As much as we'd love to help you, we need a fully working code sample to do so. Please provide one and then we'll re-open this issue and look at resolving it for you if possible.
If it's easier you can use the Phaser Sandbox to create a code sample (as this is now running the latest build of Phaser). Enter your code, click the 'save icon' in any of the editor tabs, and paste the URL here.


StateDirectory.get_current_end() doesn't work as expected in godot4

Sorry to bother you.
From Godot 3.x to 4.x, has there been any modification to string.right()?
I cannot get the value of right(0) in 4.x, whereas it was possible in 3.x.
current_path = “Idle”
return current_path.right(current_path.rfind("/") + 1)
//return "Idle" in v3.5.2 but return "" in v4.0.3

This problem affects the return value of get_current_end() in StateDirectory.gd, making it impossible for me to get in any state using the way of match to_dir.next() just like the demo.

Yes. In 4.x it returns a substring of the specified length from the end of the string.

This remind me to port the demo to godot4


v0.6.0 navigation is buggy

Thanks for filing a bug report :-)
Steps to Reproduce

Go to https://lightclient.raiden.network/
Click on channels
Click back button

Expected Result

I see my channels (2.)
I go to the transfer screen (3.)

Actual Result

I don't see my channels
I am routed to the "Connect new token" screen

Additional Infos (Optional)
Firefox

@kelsos Could you take a look at it? The release does not seem to be usable at the moment. Thanks for your support :)

Sure, also evaluating routes seems broken I will take a look.

Maybe it is also an issue with the closed channels of the hub in combination with the local state.
I did not take a screenshot, but after I was clicking on connect, I was directed to the transfer screen, the TTT token was shown, but with amount of 0.0.
So, what happened above seemed to be fine (seeing no channels and being navigated to the connect token screen).

A yes this thing happened to me too on a channel with the old state but after a couple of minutes, everything was ok. I will have a look anyway and we need to see if it is possible to handle this situation.

Do you think, that the navigation is buggy?
If not, we should close the issue and open a new on for the problem:

after I was clicking on connect, I was directed to the transfer screen, the TTT token was shown, but with amount of 0.0 and the channel list was empty because there haven't been channels any more

I have a navigation issue already open but it has to do with the link evaluation.
The closed channels issue is tricky because we don't have an easy way to navigate to channels if there are settleable channels available.

@kelsos Thanks :) Closing this issue


Enable EPEL repo for rhel 6

Ref https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1470
Added a task into Redhat.yml which adds the EPEL repo for rhel 6.
Tested on a rhel 6 x86 machine. EPEL repo and libdwarf-devel are both installed without error. Im unable to test this on other architectures as only x86 rhel 6 machines are available to me through fyre. However, according to https://fedoraproject.org/wiki/EPEL#What_packages_and_versions_are_available_in_EPEL.3F, for rhel 6, EPEL is only available on x86 and i386. Hence I have added a condition which only installs the EPEL repo on x86

Is this also an issue on Centos 6?

@Haroon-Khel https://github.com/AdoptOpenJDK/openjdk-infrastructure/blob/9a8939be81093e4d91784cfe42dc2008204b9fda/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/CentOS.yml#L9
Don't believe so

The ignore_errors: yes can ignore the cases when installing the epel repo for rhel 6 on unsupported architectures as mentioned above


[WIP][Common] The abstraction of Incremental Snapshot Framework

Add a new module(flink-connector-base) which contain the common abstraction of incremental snapshot framework. So other db connectors could implement the Incremental Snapshot algorithm more easier. #724

@leonardBang  Thanks for you reviewing.
I have rebased my branch.
And adding new module to validate the new framework that idea is good to me. I will do more test work.

@YesOrNo828 @GOODBOY008 I help fix the code style and conflicts, we can review&develop base on current code base.

Hi @YesOrNo828, @leonardBang , does this feature can apply to postgres-cdc when it complete.

Thanks @YesOrNo828 for the great work, I make some improvement base on your work, I think it's ok to merge now as the first version of framework.

Hi @YesOrNo828, @leonardBang , does this feature can apply to postgres-cdc when it complete.

+1


3 ➡ 4

Forward-porting ign-gazebo3 to ign-gazebo4.
Do not squash or rebase, create merge commit.

I just saw #602, closing in favor of that


Update for Metrix v<IP_ADDRESS>

@nibbles83 I'm clearing the backlog of coin update requests. Are you still interested in updating Metrix? I see there's a newer version now, <IP_ADDRESS>


Completed general functionality of delay staircase experiment.

Do not have the algorithm for reward increase / decrease from the example, so merely used division calculation. Can be easily changed.

To keep the code clean and more manageable when it gets long, rename html as experiment.html and keep the javascript code in a separate .js file called experiment.js. Take a look at Maham's symbol counting task directory.

Do not have the algorithm for reward increase / decrease from the example, so merely used division calculation. Can be easily changed.

I'll draw a diagram later to illustrate the algorithm.

sdafds


firefox{,-bin}: 102.0.1 -> 103.0; firefox-esr-102: 102.0.1esr -> 102.1.0esr; firefox-esr-91: 91.11.0esr -> 91.12.0esr; spidermonkey_91: 91.11.0 -> 91.12.0

https://www.mozilla.org/en-US/firefox/103.0/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2022-28/
https://www.mozilla.org/en-US/firefox/102.1.0/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2022-30/
https://www.mozilla.org/en-US/firefox/91.12.0/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2022-29/
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Test protocol

YouTube
WebGL
Webcam, Microphone, Screensharing

On x86_64-linux with sway & pipewire

[x] Firefox 103.0
[ ] Firefox 102.1.0esr
[ ] Firefox 91.12.0esr

See also #179398!

Release notes are up, added security advisories CVE identifiers to the individual commits. I think we are good to go!

OK, no issues for me with firefox so far.


Google Nest HQ camera not showing in apple Homekit

I use homebridge to stream google nest cam's into homekit.
The Google nest HQ cam showed when installing but disappeared after 1 week.

Wondering if you've tried to remove the HQ Cam from Homebridge cache and restart plugin?

The HQ cam does not show up at all, so no possibility to remove it from Homebridge cache. Other nest cam's like the doorbell do.

Just confused, as you said it was working or showed initially? Can you run no,en ridge with debugging and post output when starting the plugin for this?


Proxy websocket when using gulp, browsersync, ng-websocket

Hi,
Can you please review the http-proxy-middleware config below?
I'm not able to proxy local websocket (separate) process with http-proxy-middleware as I see "[HPM] Upgrading to WebSocket" message on the window where I ran "gulp serve", and the error "WebSocket connection to 'ws://localhost:3000/ws/myobjects' failed: Connection closed before receiving a handshake response" on the browser console window.
I'm using v0.9.0 of http-proxy-middleware, v0.2.1 of ng-websocket, v2.8.3 of browser-sync.
When browser makes a websocket call to "ws://localhost:3000/ws/myobjects" I expect the call to be served by a server listening for web socket connection on "ws://localhost:10009/ws/myobjects"
There are other static assets served under http://localhost:3000 that are not related to websockets.
function browserSyncInit(baseDir, browser) {
  browser = browser === undefined ? 'default' : browser;

  var routes = null;
  if(baseDir === conf.paths.src || (util.isArray(baseDir) && baseDir.indexOf(conf.paths.src) !== -1)) {
    routes = {
      '/bower_components': 'bower_components'
    };
  }

  var server = {
    baseDir: baseDir,
    routes: routes
  };

  /*
   * You can add a proxy to your backend by uncommenting the line bellow.
   * You just have to configure a context which will we redirected and the target url.
   * Example: $http.get('/users') requests will be automatically proxified.
   *
   * For more details and option, https://github.com/chimurai/http-proxy-middleware/blob/v0.0.5/README.md
   */
   server.middleware = proxyMiddleware('/ws/myobjects', {
     target: 'http://localhost:10009',
     ws: true,
     changeOrigin : true,
     proxyTable: {
       'localhost:3000/ws/myobjects' : 'http://localhost:10009'
     }
   });

  browserSync.instance = browserSync.init({
    startPath: '/',
    server: server,
    browser: browser
  });
}

This is a known WebSocket issue (https://github.com/chimurai/http-proxy-middleware/issues/15) when http-proxy-middleware is used in browser-sync.
With express and connect this issue does not seem to occur.
Issue is also reported @ https://github.com/BrowserSync/browser-sync/issues/780.
Unfortunately there is no fix available yet for this problem.

Closing this issue to keep the conversations centralized.


Example doesn't work

If I try the example as-is:
@for $i from 1 to 3 {
  .b-$i { width: $i px; }
}

I end up with this:

The problem is the extra space. Works without the space:

So if I change the example to not have a space:
@for $i from 1 to 3 {
  .b-$i { width: $ipx; }
}

I end up with this:

Any way to get around this?

@kentcdodds thanks! It seems I should have checked the example :smile:
'$i' is a postcss-simple-var
So you can write like this:
@for $i from 1 to 3 {
  .b-$i { width: $(i)px; }
}

@kentcdodds thanks! It seems I should have checked the example :smile:
'$i' is a postcss-simple-var
So you can write like this:
@for $i from 1 to 3 {
  .b-$i { width: $(i)px; }
}


System.IO.IOException: Unable to write data to the transport connection: Broken pipe.

When running a .NET Core 2.1 app in Docker, after a few minutes, the app exits with the following exception:
identity-api         |    Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.) ---> System.IO.IOException: Unable to write data to the transport connection: Broken pipe. ---> System.Net.Sockets.SocketException: Broken pipe
identity-api         |    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
identity-api         |    --- End of inner exception stack trace ---
identity-api         |    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
identity-api         |    at System.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(Byte[] buffer, Int32 offset, Int32 count, CancellationToken token, Boolean async)
identity-api         |    --- End of inner exception stack trace ---
identity-api         |    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
identity-api         |    at System.Threading.Tasks.Task.Wait()
identity-api         |    at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)
identity-api         |    at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory`1 buffer)
identity-api         |    at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory`1 buffer)
identity-api         |    at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)
identity-api         |    at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
identity-api         |    at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)
identity-api         |    at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)
identity-api         |    at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)
identity-api         |    at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()
identity-api         |    at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()
identity-api         |    at System.Data.SqlClient.TdsParserSessionPool.Dispose()
identity-api         |    at System.Data.SqlClient.TdsParser.Disconnect()
identity-api         |    at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()
identity-api         |    at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)
identity-api         |    at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
identity-api         |    at System.Threading.TimerQueueTimer.CallCallback()
identity-api         |    at System.Threading.TimerQueueTimer.Fire()
identity-api         |    at System.Threading.TimerQueue.FireNextTimers()

There are two containers that access SQL, they both exit around the same time.
This happens consistently. I've tried Alpine and non-Alpine images.  The apps are both MVC and the DataContexts have been unused other than running the migrations.

Also having exactly the same issue in the ASP.NET 2.2 / Linux / Kubernetes / SQL Azure environment.
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.) ---> System.IO.IOException: Unable to write data to the transport connection: Broken pipe. ---> System.Net.Sockets.SocketException: Broken pipe    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)    --- End of inner exception stack trace ---    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)    at System.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(Byte[] buffer, Int32 offset, Int32 count, CancellationToken token, Boolean async)    --- End of inner exception stack trace ---    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)    at System.Threading.Tasks.Task.Wait()    at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)    at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)
at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)    at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)    at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)    at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)    at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)    at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)    at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()    at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()    at System.Data.SqlClient.TdsParserSessionPool.Dispose()    at System.Data.SqlClient.TdsParser.Disconnect()    at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()    at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)    at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)    at System.Threading.TimerQueueTimer.CallCallback()    at System.Threading.TimerQueueTimer.Fire()    at System.Threading.TimerQueue.FireNextTimers()

Having this same issue with a Docker service hosted within Azure as a Web App for Containers resource.  The WebApi hosted in a container is connecting to an Azure SQL Database.  This was not an issue when the WebApi was hosted internally on a Docker server pointed to an internally hosted SQL Server instance.  After moving the container to be hosted in Azure as a Web App for Containers and using an Azure SQL database, the issue occurred.  When developing local with the WebApi running as a local process this is noticed after a few minutes of running the service.  However, running the container within Azure, the issue only happens once every day or so.  When running in Azure as a Web Container, the container restarts after receiving the exception.  Following is the application log and it is exactly the same as others listed:
2019-07-07T12:07:21.144590240Z
2019-07-07T12:07:21.354835247Z Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.) ---> System.IO.IOException: Unable to write data to the transport connection: Broken pipe. ---> System.Net.Sockets.SocketException: Broken pipe
2019-07-07T12:07:21.354873348Z    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
2019-07-07T12:07:21.354879249Z    --- End of inner exception stack trace ---
2019-07-07T12:07:21.354883049Z    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
2019-07-07T12:07:21.354886949Z    at System.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(Byte[] buffer, Int32 offset, Int32 count, CancellationToken token, Boolean async)
2019-07-07T12:07:21.354891049Z    --- End of inner exception stack trace ---
2019-07-07T12:07:21.354894749Z    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
2019-07-07T12:07:21.354910050Z    at System.Threading.Tasks.Task.Wait()
2019-07-07T12:07:21.354914050Z    at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)
2019-07-07T12:07:21.354918050Z    at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer) 2019-07-07T12:07:21.354933651Z    at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)
2019-07-07T12:07:21.354937751Z    at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)
2019-07-07T12:07:21.354941851Z    at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
2019-07-07T12:07:21.354945851Z    at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)
2019-07-07T12:07:21.354949751Z    at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)
2019-07-07T12:07:21.354953752Z    at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)
2019-07-07T12:07:21.354957752Z    at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()
2019-07-07T12:07:21.354961852Z    at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()
2019-07-07T12:07:21.354965752Z    at System.Data.SqlClient.TdsParserSessionPool.Dispose()
2019-07-07T12:07:21.354969752Z    at System.Data.SqlClient.TdsParser.Disconnect()
2019-07-07T12:07:21.354981753Z    at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()
2019-07-07T12:07:21.354986053Z    at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)
2019-07-07T12:07:21.354989853Z    at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
2019-07-07T12:07:21.354994453Z    at System.Threading.TimerQueueTimer.CallCallback()
2019-07-07T12:07:21.354998453Z    at System.Threading.TimerQueueTimer.Fire()
2019-07-07T12:07:21.358832809Z    at System.Threading.TimerQueue.FireNextTimers()
2019-07-07T12:08:49.664615781Z warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
2019-07-07T12:08:49.664684484Z       No XML encryptor configured. Key {008e5fce-9c78-423e-bcd4-bcf0cfa63614} may be persisted to storage in unencrypted form.
2019-07-07T12:08:50.055775592Z Hosting environment: Test
2019-07-07T12:08:50.083971732Z Content root path: /opt/apis/xxxxxxx.xxxxx.WebApi
2019-07-07T12:08:50.113987245Z Now listening on: http://[::]:80
2019-07-07T12:08:50.114015047Z Application started. Press Ctrl+C to shut down.

Getting the same error running the following stack.
ASP.NET Core 2.2 / Windows with Linux containers /  SQL Azure environment.
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.)
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)    at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)
at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)
at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)
at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)
at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()
at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()
at System.Data.SqlClient.TdsParserSessionPool.Dispose()
at System.Data.SqlClient.TdsParser.Disconnect()
at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()
at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)
at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
Inner Exception 1:
IOException: Unable to write data to the transport connection: Broken pipe.
Inner Exception 2:
SocketException: Broken pipe

Getting the same error running the following:
Netcoreapp2.2 / Linux container (mcr.microsoft.com/dotnet/core/runtime:2.2) / Kubernetes / SQL Azure ( Elastic Pools, Standard Plan )
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.) ---> System.IO.IOException: Unable to write data to the transport connection: Broken pipe. ---> System.Net.Sockets.SocketException: Broken pipe
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(Byte[] buffer, Int32 offset, Int32 count, CancellationToken token, Boolean async)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory`1 buffer)
   at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory`1 buffer)
   at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)
   at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)
   at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)
   at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()
   at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()
   at System.Data.SqlClient.TdsParserSessionPool.Dispose()
   at System.Data.SqlClient.TdsParser.Disconnect()
   at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()
   at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)
   at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()

This causes the pods to restart with a 139 exit code, and we can't prevent it 😞

Could you let us know what authentication mode is in use?
Is it possible to test with Non-SNI dependent authentication mode, e.g. SqlPassword Authentication and let us know if there's still a problem? Just trying to understand the source of the problem..

@cheenamalhotra we are using username/password in our connection string to authenticate to sql server.
I am not too sure how to make it a Non-SNI dependent authentication mode?
I looked at https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnectionstringbuilder.authentication and that seems to be only available for netfull not netstandard/netcore ?
So can you please give us more info?

@cheenamalhotra here is our connection string
Server=tcp:#{SqlServerName}.database.windows.net,1433;Initial Catalog=#{InstanceId};Persist Security Info=False;User ID=#{InstanceId};Password=#{SqlLoginPassword};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;ConnectRetryCount=3;

Forgot to mention what we also set in code:
var connectionStringBuilder = new SqlConnectionStringBuilder(connectionString)
{
                MultipleActiveResultSets = true,
                ApplicationName = applicationName
};

If you just google "Kubernetes broken pipe", it turns out to be an issue for many Kubernetes TCP applications. Looks like more of a Kubernetes networking issue to me.
Have you tried port forwarding and ensure you're using Kubernetes State Metrics version > 1.5.0?
Similar Reported Issue seems to be fixed in one of their PRs.

Same for Docker images.. there are many reported issues on the same topic..

Ensure Port forwarding is applied correctly.
Look for any Networking Service running in background that is looking for idle TCP connections and times them out, e.g. vpnkit.
Ensure you're using latest docker/Kubernetes versions of environments to avoid any issues that have already been addressed.

Similar issues that have been addressed:

https://github.com/docker/for-mac/issues/2442
https://github.com/kubernetes/kube-state-metrics/issues/550

Even if K8 is causing the connection to fail, there could be many other reasons as well (e.g. network cable unplugged). I think the application should not exit due to that happening.

If I'm reading the stack trace correctly then this error occurs when a connection is being disposed/destroyed. System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj).
I would expect this operation to execute in a way that doesn't return any errors to the application.

@pawelpabich @mifurm @droyad @johnsimons
Is it possible to provide a link to repro app to reproduce the issue locally and study traces?
I agree that the application should not exit leading to Pod restart if the trigger is this IO exception. I can take a deeper look with user-scenario handy, and then provide some insights.

This issue seems to be related to https://github.com/dotnet/SqlClient/issues/60

@cheenamalhotra
We are seeing this issue running in an Azure AKS cluster version 1.13.5, which was until recently the latest non-preview version supplied by Azure.
If there is any idle connection timeout functionality, it would have been implemented by AKS as we have not added any custom functionality here.
Port mapping is all done using the standard Kubernetes functionality via services.
AKS uses the metrics-server rather than kube-state-metrics.
We have relied on AKS as much as possible to provide sensible defaults for our environment, and would prefer not to have to tweak this managed service to support .NET Core apps (indeed if such tweaks are possible and supported by AKS at all).

@cheenamalhotra https://github.com/dotnet/SqlClient/issues/60 seems to have a repro for this issue, is that enough for you to chase this one?

Exactly the same issue for us.  It's a showstopper and I'm having to migrate the service onto a classic Azure worker.
microsoft/dotnet:2.2-sdk-alpine
Trace:
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.) ---> System.IO.IOException: Unable to write data to the transport connection: Broken pipe. ---> System.Net.Sockets.SocketException: Broken pipe
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(Byte[] buffer, Int32 offset, Int32 count, CancellationToken token, Boolean async)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)    at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)
at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)
at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)
at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)
at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()
at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()
at System.Data.SqlClient.TdsParserSessionPool.Dispose()
at System.Data.SqlClient.TdsParser.Disconnect()
at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()
at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)
at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()

For those experiencing this issue, are you able to disable MARS (MultipleActiveResultSets = false) and see if the exceptions go away?
@kieronlanning @misterspeedy @mcasperson @johnsimons @gl1tch @grecosoft @alexavrutin @DaEkstrim @mifurm @SeymourRu @Hartdrooz @TerryAspen @DenKn
@mifurm You said you could provide a repro. (Hopefully a simple one.) Would that still be possible?

@david-Engel as I said before https://github.com/dotnet/SqlClient/issues/60 seems to repro it

@david-Engel I have also created https://github.com/dotnet/SqlClient/issues/141 which it may be related

@johnsimons I looked at #60 and I don't see the similarities with this issue. #141 also appears to be different to me, though I doubt it is the same as 129, as that was specific to Async and CommandBehavior.CloseConnection.

@David-Engel Thanks for jumping in!  I'll try turning MARS off and report back. If that doesn't work I'll set up a repo with a min reproducible case and share here.

Ok, quick update: I've written a repro which I think is doing the same thing as my real app and... the issue does not occur. (Works fine with MARS either turned off or turned on.)  Doing some  work now to try and work out what is different about my real app that is triggering the problem.  Will update here when there is news.

Couldn't work out what the difference was between my attempted repro project (which doesn't show the issue) and the real app (which does).  Therefore I've tried disabling MARS on the live app and have left it running.  It's a super-low-volume (but important!) service so it'll be a while before I know whether disabling MARS fixed the issue.  Will report back when I know.

@David-Engel Unfortunately, we can't disable MARS without rewriting portions of the application. I'll see whether we can redesign these segments. Issue is that the last time we faced this error was on 28th July (it's sporadic and not frequent), so we have no way of knowing for sure whether removing MARS circumvents the error without waiting for months.

OK, our live system has just successfully processed several events (and written to SQL database), so it seems that turning MARS off (when possible) does work around the problem.

I noticed a very suspicious throw introduced long ago that would easily cause this issue if disposing a broken, mars-enabled connection:
https://github.com/dotnet/corefx/pull/4594/files#diff-a8e6146000f306b97ce4e48207f7cd9fR69
I plan to remove the throw for the next M.D.SqlClient preview.

Nice one, thanks @David-Engel !

Preview release v1.0.19221.1 has been published containing fix. Closing issue.

The issue persists for me with 1.0.19239.1
I have this stack trace:
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to write data to the transport connection: Broken pipe.) ---> System.IO.IOException: Unable to write data to the transport connection: Broken pipe. ---> System.Net.Sockets.SocketException: Broken pipe    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)    --- End of inner exception stack trace ---    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)    at System.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(Byte[] buffer, Int32 offset, Int32 count, CancellationToken token, Boolean async)    --- End of inner exception stack trace ---    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)    at System.Data.SqlClient.SNI.SslOverTdsStream.Write(Byte[] buffer, Int32 offset, Int32 count)    at System.Net.Security.SslStreamInternal.WriteSingleChunk[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)
at System.Net.Security.SslStreamInternal.WriteAsyncInternal[TWriteAdapter](TWriteAdapter writeAdapter, ReadOnlyMemory1 buffer)    at System.Net.Security.SslStreamInternal.Write(Byte[] buffer, Int32 offset, Int32 count)    at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)    at System.Data.SqlClient.SNI.SNITCPHandle.Send(SNIPacket packet)    at System.Data.SqlClient.SNI.SNIMarsConnection.Send(SNIPacket packet)    at System.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(SNISMUXFlags flags)    at System.Data.SqlClient.SNI.SNIMarsHandle.Dispose()    at System.Data.SqlClient.SNI.TdsParserStateObjectManaged.Dispose()    at System.Data.SqlClient.TdsParserSessionPool.Dispose()    at System.Data.SqlClient.TdsParser.Disconnect()    at System.Data.SqlClient.SqlInternalConnectionTds.Dispose()    at System.Data.ProviderBase.DbConnectionPool.DestroyObject(DbConnectionInternal obj)    at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)    at System.Threading.TimerQueueTimer.CallCallback()    at System.Threading.TimerQueueTimer.Fire()    at System.Threading.TimerQueue.FireNextTimers()
I traced through the code side by side and got as far as SNITcpHandle.cs
https://github.com/dotnet/SqlClient/blob/master/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNITcpHandle.cs#L420
I can see handles for 4 possible exception types, but nothing for the exception type of my stack trace which is System.AggregateException
I propose that unusual exceptions which reach back to System.Data.ProviderBase.DbConnectionPool.CleanupCallback be handled gracefully, becuase allowing the exception to fall through at this point will crash the main thread.

@cheenamalhotra  Should I create a new issue or can you re-open this?

I've realised that my second crash was because I had another service in the application using an old version of this package, as its using Microsoft.EntityFrameworkCore.SqlServer which uses System.Data.SqlClient
Its most likely that the error is in fact fixed by the aforementioned patch.

Hi there, I'm having the same issue.
I'm using Microsoft.EntityFrameworkCore.SqlServer version 2.2.1 already.
Any other clues on how to fix this issue?

@marcelaldecoa From the dependencies listed in the Microsoft.EntityFrameworkCore.SqlServer 2.2.1 nuget page looks like it's still using System.Data.SqlClient. Can you try Microsoft.EntityFrameworkCore.SqlServer 3.0.0, which has a dependency on Microsoft.Data.SqlClient driver version >= 1.0.19249.1.

Hi @yukiwongky thanks for you message.
Unfortunately I can't upgrade easily Microsoft.EntityFrameworkCore.SqlServer to version 3.0.0, it would require me to update to netstandard2.1, which requires .net core 3.0 and my stack is running with .net core 2.2.
I've updated Microsoft.EntityFrameworkCore.SqlServer from 2.2.1 to 2.2.6 but I don't see it fixed the issue either.

Hi @marcelcandidoferreira we're planning to port the fix to System.Data.SqlClient. We'll let you know once it's ready.

Hi @marcelcandidoferreira we're planning to port the fix to System.Data.SqlClient. We'll let you know once it's ready.

had the fix released? which version could be used? @yukiwongky

@WeihanLi
Yes, it would be System.Data.SqlClient v4.8.1

@WeihanLi
Yes, it would be System.Data.SqlClient v4.8.1

Thanks @cheenamalhotra


GROOVY-9556: Stub generated without the effect of AST transformation …

…makes joint compilation fail
See https://issues.apache.org/jira/browse/GROOVY-9556

+1, also fixes the broken test case for GROOVY-9506 on 3/4 branches.

Merged, thanks!


[Bug?]:SyntaxError: Unexpected token 'N', "Not Found" is not valid JSON

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
No response
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
1.npm create jd-app@latest
2.What is the name of the app? apri
3.Will you deploy this project to vercel? If so, how None
4.Copied template files to D:\path\to\create-jd-app\project
5. What should we use for this app? AuthJS, Prisma, TailwindCSS, pRPC
6. cd project
7. npm run push
8. npm run dev
Context 🔦
No response
it was caused by AuthJS, but i do not know how to fix it.
Your environment 🌎
No response

/

Do you have any .json() calls anywhere? seems like it's trying to decode a non-existent json.

I just ran into this via an npm update. No code changes, just updating @solid-mediakit/auth from 2.1.2 to 2.1.3 (this commit). I'm not sure what's wrong though, the stack trace is not easy to understand.

I just ran into this via an npm update. No code changes, just updating @solid-mediakit/auth from 2.1.2 to 2.1.3 (this commit). I'm not sure what's wrong though, the stack trace is not easy to understand.

Not really, I just run those command to initial the project, I suppose it was caused by none-config of AuthJS, because it goes correctly when I start a new project without selected AuthJS.

Not really, I just run those command to initial the project

Not really, I just run those command to initial the project without changing any code.

Downgrading @solid-mediakit/auth to v2.1.2 solved the issue for me.

This solved the problem for me:
I've set config.basePath to '/api/auth' in src/server/auth.ts
(I've created an issue in mediakit as it is related to their package and not solid-start directly: https://github.com/solidjs-community/mediakit/issues/103)

A new version of create-jd-app was released the other day might be worth double checking. In either case I'd consider opening the issue there or in mediakit as this seems specific to those libraries.