FlatEMinus Generator

Files to use flateminus generator

Hi @sophiemiddleton,
You have proposed changes to files in these packages:

Tests
JobConfig

which require these tests: build.
@Mu2e/write have access to CI actions on main.
:hourglass: The following tests have been triggered for cfefe2faf492ab4ee7fd2e56aba94ee48ebc0006: build  (Build queue has 1 jobs)
About FNALbuild. Code review on Mu2e/Offline.

Done most of these - just my question on the maxEventstoSkip to answer and then I will update that file

:umbrella: The tests failed for cfefe2faf492ab4ee7fd2e56aba94ee48ebc0006.

Test
Result
Details

merge
:white_check_mark:
Merged cfefe2faf492ab4ee7fd2e56aba94ee48ebc0006 at c947ccaf2b0e4e6d66091c258cad8a58a49169d0

build (prof)
:white_check_mark:
Log file. Build time: 12 min 57 sec

ceSimReco
:white_check_mark:
Log file.

g4test_03MT
:white_check_mark:
Log file.

transportOnly
:white_check_mark:
Log file.

POT
:white_check_mark:
Log file.

g4study
:white_check_mark:
Log file.

cosmicSimReco
:white_check_mark:
Log file.

cosmicOffSpill
:white_check_mark:
Log file.

ceSteps
:white_check_mark:
Log file.

ceDigi
:x:
Log file. Return Code 90.

muDauSteps
:white_check_mark:
Log file.

ceMix
:white_check_mark:
Log file.

rootOverlaps
:white_check_mark:
Log file.

g4surfaceCheck
:white_check_mark:
Log file.

FIXME, TODO
:white_check_mark:
TODO (0) FIXME (0) in 0 files

clang-tidy
:white_check_mark:
0 errors 0 warnings

N.B. These results were obtained from a build of this Pull Request at cfefe2faf492ab4ee7fd2e56aba94ee48ebc0006 after being merged into the base branch at c947ccaf2b0e4e6d66091c258cad8a58a49169d0.
For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

@FNALbuild run build test

:hourglass: The following tests have been triggered for 0a4dbf6675038f2adc199ce965769ee1fb46243f: build  (Build queue has 2 jobs)

:umbrella: The tests failed for 0a4dbf6675038f2adc199ce965769ee1fb46243f.

Test
Result
Details

merge
:white_check_mark:
Merged 0a4dbf6675038f2adc199ce965769ee1fb46243f at c947ccaf2b0e4e6d66091c258cad8a58a49169d0

build (prof)
:white_check_mark:
Log file. Build time: 14 min 59 sec

ceSimReco
:white_check_mark:
Log file.

g4test_03MT
:white_check_mark:
Log file.

transportOnly
:white_check_mark:
Log file.

POT
:white_check_mark:
Log file.

g4study
:white_check_mark:
Log file.

cosmicSimReco
:white_check_mark:
Log file.

cosmicOffSpill
:white_check_mark:
Log file.

ceSteps
:white_check_mark:
Log file.

ceDigi
:x:
Log file. Return Code 90.

muDauSteps
:white_check_mark:
Log file.

ceMix
:white_check_mark:
Log file.

rootOverlaps
:white_check_mark:
Log file.

g4surfaceCheck
:white_check_mark:
Log file.

FIXME, TODO
:white_check_mark:
TODO (0) FIXME (0) in 0 files

clang-tidy
:white_check_mark:
0 errors 0 warnings

N.B. These results were obtained from a build of this Pull Request at 0a4dbf6675038f2adc199ce965769ee1fb46243f after being merged into the base branch at c947ccaf2b0e4e6d66091c258cad8a58a49169d0.
For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

Sophie: to see the error message from ceDigi, do the following
Log into any Mu2e interactive machine.  Then grab the url to the log file and
curl -O url
You do this on your own machine if you are on lab VPN.  The error is:
Failed to parse the configuration file 'Production/Validation/ceDigi.fcl' with exception
---- search_path BEGIN
Can't find file "gen/fcl/Trigger/OnSpillTrigMenu/OnSpillTrigMenu.fcl"
---- search_path END
Art has completed and will exit with status 90.
Return Code: 90
This looks like another issue related to the "include shift"

Yes, Dave said to remove the "Offline" in that path....I can add it back

@FNALbuild run build test

:hourglass: The following tests have been triggered for babd3589e76c172df73c32307c88108ed8972f30: build  (Build queue has 1 jobs)

:sunny: The tests passed at babd3589e76c172df73c32307c88108ed8972f30.

Test
Result
Details

merge
:white_check_mark:
Merged babd3589e76c172df73c32307c88108ed8972f30 at c947ccaf2b0e4e6d66091c258cad8a58a49169d0

build (prof)
:white_check_mark:
Log file. Build time: 12 min 51 sec

ceSimReco
:white_check_mark:
Log file.

g4test_03MT
:white_check_mark:
Log file.

transportOnly
:white_check_mark:
Log file.

POT
:white_check_mark:
Log file.

g4study
:white_check_mark:
Log file.

cosmicSimReco
:white_check_mark:
Log file.

cosmicOffSpill
:white_check_mark:
Log file.

ceSteps
:white_check_mark:
Log file.

ceDigi
:white_check_mark:
Log file.

muDauSteps
:white_check_mark:
Log file.

ceMix
:white_check_mark:
Log file.

rootOverlaps
:white_check_mark:
Log file.

g4surfaceCheck
:white_check_mark:
Log file.

FIXME, TODO
:white_check_mark:
TODO (0) FIXME (0) in 0 files

clang-tidy
:white_check_mark:
0 errors 0 warnings

N.B. These results were obtained from a build of this Pull Request at babd3589e76c172df73c32307c88108ed8972f30 after being merged into the base branch at c947ccaf2b0e4e6d66091c258cad8a58a49169d0.
For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

I think the spaces have been removed now


Action nodes redesign to improve visual canvas' readability

Description
Currently, all the action nodes have the same format(Label-sublabel) which works for few, but not for the others. This is demanding a redesign sooner or later.
The redesign's goal is to improve the overall readability of visual canvas through a flexible design system – you should be able to quickly scan through it and understand the flow, where to find what.
Execution plan

[ ] (in PR #2005 ) Layout: smart layouter, support size-sensitive node blocks
[ ] (in PR #2017 ) Widget: enhance the appearance of SetProperties as a multi-line node, extract shared elements
[ ] Widget: implement multi-section node widget which is split by '-------v-------', apply to specific $types
[ ] LG: Syntax hightlighting lib of LanguageGeneration(LG) text
[ ] Layout: node size adjustment and node styles fine tune

Other context
Design link: https://www.figma.com/file/04DymSq4xElhOBdAyutvvTbq/Composer-SH-06.19?node-id=4585%3A1049

It's really nice!

@hibrenda Could you add this to the R8 design discussion as well?

Final design : https://www.figma.com/file/04DymSq4xElhOBdAyutvvTbq/Composer-SH-06.19?node-id=4585%3A1049

@Kaiqb I think this one is in progress. Does anyone else have other design needs?

@Kaiqb I think this one is in progress. Does anyone else have other design needs?

Awesome work! Alan and I are taking actions on it 💯
Just want to check two extra things:

A choice can have synonyms, do we want to show it?

There is a DeleteProperties type which is quite similar to SetProperties. Do we want to show it as a list?

@sangwoohaan @DesignPolice

Execution plan:

[ ] [layout] Smart layouter: support size-sensitive node blocks - #2005
[ ] [widget & sdk] Enhance the appearance of SetProperties as a multi-line node, extract shared elements - #2017
[ ] [widget & sdk] Implement multi-section node widget which is split by '-------v-------', apply to specific $types
[ ] [lg] Syntax hightlighting lib of LanguageGeneration(LG) text
[ ] [layout] node size adjustment

addressed via https://github.com/microsoft/BotFramework-Composer/pull/2136


Need some help

[code]
$this->db->select("news", ["[>]news_cats" => ["cat_id" => "id"]], [
"news.*",
"news_cats.name"
], [
        "ORDER" => "news.id DESC",
        "LIMIT" => [$start,$limit]
    ]);

[/code]
see this is my issue.
its not showing properly.
so can someone help me out with this code. please
it would be thankful. I am going insane with how its not giving results.
this is what i am getting when i try it:
[code]
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '."author","news"."title","news"."postdate","news"."cat_id","news"."id","news_cat' at line 1
[/code]

I got it to work. but can someone still explain to me how it works better. the docs isn't really friendly.

The filed author was not used in your PHP code. Maybe the error caused by other query.
Please add debug method $this->db->debug()->select(... to print the SQL code generated by Medoo to debug.
BTW, you can use Markdown 4-space-indent  to present code block.

Do not use news.* for table joining.


US89390 Make client lib more tolerant to network/landlord glitches

[ ] This branch MUST NOT be merged until Landlord Prod healthcheck shows: 1.4.*
https://landlord.brightspace.com/health

Coverage remained the same at 41.065% when pulling 66f56be1fe5cb87316449086a534acc302c724fa on IhabAlkabary:master into bf311dd90268f1e6ad036921fc3e5038c51cddfb on Brightspace:master.

Trying to understand the reasoning behind the change. Healthchecks are red sometimes because of network blips?

@omsmith We are seeing intermittent failures in this ping and no clear idea on why, so until we form a clear understanding, we thought we can make the the process more tolerant by adding timeout and retry and continue monitoring it.

Given this is going to get used for an external service, isn't that just going to hide the fact that "at this particular time that you asked, I am actually unable to contact landlord"?
Is it just tcp pings that are having intermittent failures? Can landlord add an http route of "/ping" that we could hit instead that might be more stable?

We already have the healthcheck for that, we are developing a healthcheck with "details" if you add a query param.

Yes, I personally do not see issues with the healthcheck, just the ping

So if I go to "https://landlord.brightspace.com/healthcheck" or whatever, it just returns 200 OK and does no other checks?

This validateConfiguration function is used in many services in their healthchecks, determining whether landlord can be reached.
I feel like adding retries hides that. If there's another mechanism for reaching out to landlord to verify connect-ability without causing any real processing on Landlord's side, which is different than a tcp ping, happy to switch to that.

Yes, currently all it does is this:
https://landlord.brightspace.com/health
{ application: { identification: { name: "Landlord", version: "1.1.211" }, health: { general: { status: "good", description: "" }, services: [ { name: "Landlord Web", description: "web service", components: [ ], metrics: [ ] } ] }, test: true } }

I would assume switching to pinging using the current health check will add a bit of load on Landlord. Wouldn't just pinging be lighter?

Seems like the /health route:

Reads a file from disk
Makes a DB call to lookup my non-token

That's why I'm not suggesting calling landlords healthcheck.
This is an example of a /ping route we use in our services, which calling should caught approximately zero load.
const pingGet = route.unauthed.get(routes.ping.href,
	/* @this */ function *handlePingGet() {
		this.set('Cache-Control', 'no-cache');
		this.status = 200;
	}
);

I'm also happy to stick with the tcp-ping, but you're saying it fails sometimes and you have no indication why because as far as you can tell it shouldn't. I don't think retrying the tcp-ping three times is the correct direction to go in for a "please verify you can successfully contact your configured landlord location" function.

Coverage increased (+1.2%) to 42.292% when pulling bf9c8c19285a3f0d906f03d59e3b360d3a599607 on IhabAlkabary:master into bf311dd90268f1e6ad036921fc3e5038c51cddfb on Brightspace:master.

Coverage increased (+0.8%) to 41.833% when pulling 6cac59dec10dd0c1a502493b11143685484bdf5d on IhabAlkabary:master into bf311dd90268f1e6ad036921fc3e5038c51cddfb on Brightspace:master.

Coverage increased (+0.8%) to 41.833% when pulling db97d29827dfc40776c3df92f23165cac1ce6eba on IhabAlkabary:master into bf311dd90268f1e6ad036921fc3e5038c51cddfb on Brightspace:master.

Landed as 96c9aa1..3fa7a72


Hands on labs on New  docs.microsoft.com

🛑 IMPORTANT: You can get your feedback addressed faster if you use the comment section for the article in which you encountered a problem (if available).
Link to article:
Go to  docs.microsoft.com > Hands on Labs and you get
Oops, it looks like you do not have permissions. But if you click on the link on the top of the page "Self-paced Labs" you get to https://www.microsoft.com/handsonlabs/selfpacedlabs. From there I select the lab "Azure Portal and Navigation SP-AZ100000".
Problem:
I click on the "Launch" button and I end up on this page "https://docs.microsoft.com/en-us/learn/azure/". There is no lab to be found. It's like bait and switch because the next page is a bunch of different Learning Paths....etc.

Started looking for something called comments section and finally saw the send feed back icon. Also the correct url is https://docs.microsoft.com/en-us/welcome-to-docs then scroll down the page to Hands on Labs and you end up on a page that says: Oops, it looks like you do not have permissions. I just discovered that if you click the back arrow in the browser and then click on "Hands on Labs" again then it will work. Click the link https://www.microsoft.com/handsonlabs/selfpacedlabs. Scroll down the page to Azure Portal and Navigation SP-AZ100000 and click the Launch button. You get redirected to the new Microsoft Learns site: https://docs.microsoft.com/en-us/learn/azure/, but there is no Azure Portal and Navigation SP-AZ100000 course to be found.

The Feed back icon it seems is for Edge and not the web site. There is no comments section that I could find.

@leboykin Self-Paced Hands-On Labs were retired.


Allow Node.js to work with https

Detect the protocol and pick the right module as needed.
Fixes #2613

PTAL

Current coverage is 87.74% (diff: 95.83%)

Merging #2667 into master will increase coverage by 0.09%

@@             master      #2667   diff @@
==========================================
  Files           242        243     +1
  Lines         18122      18143    +21
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits          15885      15920    +35
+ Misses         1974       1960    -14
  Partials        263        263

Diff Coverage
File Path

••••••••   80%
js/noms/src/fetch.js

•••••••••• 100%
new js/noms/src/fetch-test.js

Powered by Codecov. Last update 4a562d8...50bdecb


Move user configuration from root to sub folder

To clean-up the Bench root directory, the files apps.md and config.ps1 should be moved into their own sub folder. Possible names for the sub folder are user and config.

Resolved by 08e0e6c11ee3200e6cd3fb4f3d9d08127211002c


From what I can remember I extracted this from Babel, but it might have come from somewhere else before that. It's 4 lines so I probably didn't really think much of just copying it. Sorry about that...
How can I fix this? What kind of credit?

In the license header you just list all the authors starting from the original like this:
Copyright (c) <year1> <Original author1>
                      <year2> <Original author2>
                      <year3> <Your name>

[MIT boilerplate]

I hope this is what you wanted: https://github.com/sindresorhus/to-fast-properties/commit/3c97b1f9474bff5203d3a602c152ca43a9236e4a If not, let me know :)

Yeah looks good, thank you.


Provide Docker image and docker compose example

I'm happy to run experiments in my home network, but I would be happier if I could run these in a self-contained docker image without access to the rest of my computer...
My suggestion would be:

[ ] Provide a docker image on https://hub.docker.com/ with the minimal amount of permissions required
[ ] Provide an example Docker compose file showcasing how to use it (I'd expect it only requires "host" networking caps and maybe an env var for the API key)

PS: it seems https://github.com/dennis-tra/punchr/blob/main/docker-compose.yml is not doing what I'm asking here.

Notice this would also enable "windows" support indirectly.

Hi @AnomalRoil, great suggestion!
I went ahead and pushed an image of the client to: https://hub.docker.com/repository/docker/dennistra/punchr-client
I added the Dockerfile's to the docker subfolder if you want to have a look.

PS: it seems https://github.com/dennis-tra/punchr/blob/main/docker-compose.yml is not doing what I'm asking here.

Indeed, that's for the server deployment. It's quite confusing with all those different parts not properly separated. I replaced that with the one I'd use for running the client and moved the original one to the deploy subfolder.
IIRC one can somehow configure container capabilities that limits what they can do - though I've never done this before so just added a plain docker-compose file. Not sure if you were referring to a proper container capability configuration.
Also, the docker-compose containerized client currently doesn't get public addresses for me. This could be due to my current network setup and very well work for you. So, just a heads up. I'll investigate further 👍
Thanks again!

I tried it on my machine and it doesn't even start, it seems:
$ docker compose up
[+] Running 1/1
 ⠿ Container punchr_client  Recreated 0.1s
Attaching to punchr_client
punchr_client  | exec /bin/sh: exec format error
punchr_client exited with code 1
punchr_client exited with code 1

(I didn't have any API key, maybe that's the issue?)

Hi @AnomalRoil, thanks for reporting! That shouldn't be an issue. I thought of having tested it :/ could you share your docker-compose file? I'll check back tomorrow.

@dennis-tra  I took yours:
version: "3.9"
services:
  punchr:
    image: dennistra/punchr-client:latest
    container_name: punchr_client
    restart: always
    user: punchr
      #    environment:
      # More option at pkg/client/app.go
    network_mode: host

@dennis-tra  is the docker image ARM only?
$ docker run --rm -it --net=host dennistra/punchr-client:latest
Unable to find image 'dennistra/punchr-client:latest' locally
latest: Pulling from dennistra/punchr-client
261da4162673: Pull complete
c1091238f9cf: Pull complete
2689c447030b: Pull complete
ef3e42633916: Pull complete
Digest: sha256:4db49cf33fa9e7b211e1c78f24a393dd6fa2c6d7dd76edc4ddca67b34869fbc7
Status: Downloaded newer image for dennistra/punchr-client:latest
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
exec /bin/sh: exec format error

$ docker run --rm -it --net=host --platform linux/amd64 dennistra/punchr-client:latest
Unable to find image 'dennistra/punchr-client:latest' locally
latest: Pulling from dennistra/punchr-client
Digest: sha256:4db49cf33fa9e7b211e1c78f24a393dd6fa2c6d7dd76edc4ddca67b34869fbc7
Status: Image is up to date for dennistra/punchr-client:latest
WARNING: image with reference dennistra/punchr-client was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8
docker: Error response from daemon: image with reference dennistra/punchr-client:latest was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8.
See 'docker run --help'.


Update image ghcr.io/zoriya/kyoo_scanner to 78a3682

This PR contains the following updates:

Package
Update
Change

ghcr.io/zoriya/kyoo_scanner
digest
64cfcda -> 78a3682

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


[New conversation] Land back on correct page when leaving assistant builder

On an existing conversation if started by Clicking "…"  on an assistant, then "edit"
on "Manage Assistant" in Builder
on "New conversation" otherwise

As described in item 3. of the framing issue
///
Full Figma here

At this point, the "My assistants" page will not be accessible from anywhere so all code related to it should also be deleted
cc @spolu as discussed irl


1.67.0 is missing on PyPI

What version of gRPC and what language are you using?
Python
What did you expect to see?
It says here that new minor versions are guaranteed to exist for all languages.

gRPC Python is developed in a monorepo shared with implementations of gRPC in other programming languages. While the minor versions are released in lock-step with other languages in the repo (e.g. 1.63.0 is guaranteed to exist for all languages), patch versions may be specific to only a single language. For example, if 1.63.1 is a C++-specific patch, 1.63.1 may not be uploaded to PyPi. As a result, it is not a good assumption that the latest patch for a given minor version on Github is also the latest patch for that same minor version on PyPi.

1.67.0 is released last week and release notes have a section for Python.
What did you see instead?
1.67.0 is missing on PyPI.

Python is not uploaded yet. @sreenithi is our Python release manager for 1.67.
Sreenithi, please upload 1.67 when you got time.

+1 to this issue 🙏

Hi, apologies for the delay. 1.67.0 is now uploaded on PyPi: https://pypi.org/project/grpcio/


Why are all the examples broken?

hi, seems all the examples in the  codesandbox is broken, any hope that it will be fixed?

+1 Hope it's fixed soon.


Add Plugin to Drone Plugin Index

Hi,
you should totally add this cool integration to the drone-plugin-index repostiory 👍
Greetings
Jack

I think I should fix the secrets handling to be in line with the other plugins first. @tboerger said something about this, but it got lost in chat history.

Secrets should be accepted as MATRIX_ env variables, this should be overwritten by the PLUGIN_ vars if they are present. It's up to you if you add it only for username and token or also for values like the homeserver

When the structure is compliant to to the other plugins I'm also fine to transfer it to drone-plugins where I can add you as an additional maintainer

I agree with @tboerger , username, password, roomid and accesstoken should definitely be secrets, but while we're at it homeserver could also be a secret.
In any case, I think it's fine to use https://matrix.org as the default homeserver when the env var / secret is not specified, e.g.:
https://github.com/ptman/drone-plugin-matrix/blob/master/main.go#L14
homeServer := os.Getenv("PLUGIN_HOMESERVER")
if homeServer == "" {
    homeServer = "https://matrix.org"
}

https://github.com/ptman/drone-plugin-matrix/commit/f69a402322ea5d3661f5c8e3f84cc82350d8dfd4

@tboerger so does this count as structure being compliant?

Not exactly to transfer it to the drone-plugins org, but makes sense to add it to the plugin index at https://github.com/drone/drone-plugin-index

As PR https://github.com/drone/drone-plugin-index/pull/79 has been closed and the docs are published at http://plugins.drone.io/ptman/drone-plugin-matrix/
Awesome!


[Backport 2.x] Initial commit for RemoteRoutingTableService setup (#13304)

Backport for #13304 .
[Remote Routing Table] Initial commit for RemoteRoutingTableService setup (#13304)

Initial commit for RemoteRoutingTableService setup

Signed-off-by: Himshikha Gupta<EMAIL_ADDRESS>(cherry picked from commit 51214092ca532b557b6775ff8620025a51f92fcc)

Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]

Check List

[ ] Functionality includes testing.
[ ] API changes companion pull request created, if applicable.
[ ] Public documentation issue/PR created, if applicable.

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

Gradle check failing with Flaky tests

#https://github.com/opensearch-project/OpenSearch/issues/10006
#https://github.com/opensearch-project/OpenSearch/issues/13939
#https://github.com/opensearch-project/OpenSearch/issues/13473

Gradle check still failing for flaky test https://github.com/opensearch-project/OpenSearch/issues/13711

Failed flaky test https://github.com/opensearch-project/OpenSearch/issues/13828


Ignore leading comments and empty lines when parsing commit via stdin

Is your feature request related to a problem? Please describe.
I just implemented commit-msg git hook linting with convco: https://github.com/fedimint/fedimint/pull/1573/files
I had to do some extra work, because the commit message can actually be prefixed with newlines and comment lines which git will happily throw away before turning the whole message into a actual commit, but convco will complain about.
Describe the solution you'd like
Not sure if should be the default behavior altogether, or just when parsing from stdin, or maybe an option, but it would be easier if convco could take care of it (ignore leading newlines and comments).

convco does this in the commit subcommand. And it looks like this is documented in git:

The commit-msg hook takes one parameter, which again is the path to a temporary file that contains the commit message written by the developer.

as this repository follows conventional commits, comments and extra newlines should be seen as an error, so i think the best way is to add a flag --ignore-newlines-and-comments

The behaviour of git can depend on the --cleanup mode.

-ignore-newlines-and-comments gets long and without "leading" a bit incorrect, so maybe --cleanup instead as well? :D

I used --strip other modes can be implemented later.

fixed in #116


Where does the rom variable in controller come from ?

Could I ask here?

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

It's a method defined by rom-rails railtie. It defines it on ApplicationController

QUESTION is, remove the require, why the test passed?
module RomTodoApp
class Application < Rails::Application
#require 'rom-rails'

probably because bundler requires it anyway

I'm going to close this issue. If you see any weird behavior and think there's a bug please report it under rom-rails project.


Revert one-click-review-submission changes from #7385

I know the actionsRow changes need to be reverted, I'll check the April 2024 comments in the AM as well.

Still need both sections sadly.


ASan: QUICNetVConnection::_unschedule_path_validation_timeout()

[Jun  4 07:00:46.232] {0x7fe9c1cf7700} DEBUG: <QUICPacket.cc:730 (create)> (quic_packet)                    [00000000-1f26e114] Decrypting PROTECTED packet #126816428 using PHASE_0
[Jun  4 07:00:46.232] {0x7fe9c1cf7700} DEBUG: <QUICNetVConnection.cc:1504 (_dequeue_rec> (quic_net)                       [1b104fe5-1f26e114] Dequeue PROTECTED pkt_num=126816428 size=54
[Jun  4 07:00:46.233] {0x7fe9c1cf7700} DEBUG: <QUICFrameDispatcher.cc:65 (receive_frame> (quic_net)                       [1b104fe5-1f26e114] [RX] type=CONNECTION_CLOSE size=18
[Jun  4 07:00:46.233] {0x7fe9c1cf7700} DEBUG: <QUICNetVConnection.cc:1346 (_recv_and_ac> (quic_flow_ctrl)                 [1b104fe5-1f26e114] [LOCAL] 7/131072
[Jun  4 07:00:47.222] {0x7fe9c2f8e700} DEBUG: <QUICNetVConnection.cc:443 (retransmit_pa> (quic_net)                       [1b104fe5-1f26e114] Retransmit packet #3207176893 type PROTECTED
[Jun  4 07:00:47.222] {0x7fe9c2f8e700} DEBUG: <QUICNetVConnection.cc:443 (retransmit_pa> (quic_net)                       [1b104fe5-1f26e114] Retransmit packet #3207176894 type HANDSHAKE
[Jun  4 07:00:47.222] {0x7fe9c2f8e700} DEBUG: <QUICNetVConnection.cc:443 (retransmit_pa> (quic_net)                       [1b104fe5-1f26e114] Retransmit packet #3207176895 type PROTECTED
[Jun  4 07:00:47.222] {0x7fe9c2f8e700} DEBUG: <QUICCongestionController.cc:100 (on_pack> (quic_cc)                        [1b104fe5-1f26e114] window: 2920 bytes: 0 ssthresh: 2920 packet lost, window changed
[Jun  4 07:00:47.222] {0x7fe9c2f8e700} DEBUG: <QUICLossDetector.cc:358 (_on_loss_detect> (quic_loss_detector)             [1b104fe5-1f26e114] Unacked packets 0 (retransmittable 0, includes 0 handshake packets)
[Jun  4 07:00:47.222] {0x7fe9c2f8e700} DEBUG: <QUICLossDetector.cc:282 (_set_loss_detec> (quic_loss_detector)             [1b104fe5-1f26e114] Loss detection alarm has been unset
ASAN:DEADLYSIGNAL
=================================================================
==20925==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000bc74ab bp 0x7fe9c1cf6630 sp 0x7fe9c1cf6620 T9)
==20925==The signal is caused by a READ memory access.
==20925==Hint: address points to the zero page.
    #0 0xbc74aa in QUICNetVConnection::_unschedule_path_validation_timeout() /usr/local/src/trafficserver/iocore/net/QUICNetVConnection.cc:1629
    #1 0xbc9b70 in QUICNetVConnection::_switch_to_close_state() /usr/local/src/trafficserver/iocore/net/QUICNetVConnection.cc:1750
    #2 0xbb6998 in QUICNetVConnection::state_connection_draining(int, Event*) /usr/local/src/trafficserver/iocore/net/QUICNetVConnection.cc:711
    #3 0x5fd62c in Continuation::handleEvent(int, void*) /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:160
    #4 0xcc4545 in EThread::process_event(Event*, int) /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:132
    #5 0xcc5491 in EThread::execute_regular() /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:245
    #6 0xcc60a9 in EThread::execute() /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:326
    #7 0xcc2789 in spawn_thread_internal /usr/local/src/trafficserver/iocore/eventsystem/Thread.cc:85
    #8 0x7fe9ca42d36c in start_thread (/lib64/libpthread.so.0+0x736c)
    #9 0x7fe9c96a7b4e in __clone (/lib64/libc.so.6+0x110b4e)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /usr/local/src/trafficserver/iocore/net/QUICNetVConnection.cc:1629 in QUICNetVConnection::_unschedule_path_validation_timeout()
Thread T9 ([ET_NET 7]) created by T0 ([TS_MAIN]) here:
    #0 0x7fe9cc044a2f in pthread_create (/lib64/libasan.so.4+0x37a2f)
    #1 0xcc201e in ink_thread_create ../../lib/ts/ink_thread.h:155
    #2 0xcc28b7 in Thread::start(char const*, void*, unsigned long, std::function<void ()> const&) /usr/local/src/trafficserver/iocore/eventsystem/Thread.cc:102
    #3 0xccc02f in EventProcessor::spawn_event_threads(int, int, unsigned long) /usr/local/src/trafficserver/iocore/eventsystem/UnixEventProcessor.cc:383
    #4 0xccc8d6 in EventProcessor::start(int, unsigned long) /usr/local/src/trafficserver/iocore/eventsystem/UnixEventProcessor.cc:446
    #5 0x6534b7 in main /usr/local/src/trafficserver/proxy/Main.cc:1842
    #6 0x7fe9c95b7889 in __libc_start_main (/lib64/libc.so.6+0x20889)

==20925==ABORTING

Should be fixed by 7b8f86e28457b96d2aa61e70be0b92bd99a03546


fix: Instant Jobs should be executed with highest priority

Instant Jobs take priority over CRON jobs

Looks good


[cfe/ffi]: Removing .address invalid expression in leaf call to prevent errors

I actually tried to use git cl but i faced several issues (i.e i solved few but finally the below one which i dint solve).
saving CL description to D:\Programming\Binaries\depot_tools\.git_cl_description_backup

info: please complete authentication in your browser...
To https://github.com/codesculpture/sdk.git
 * [new reference]           2059beb8af4682405a0ba5348df44b644fd08205 -> refs/for/refs/heads/main%m=Initial_upload
Traceback (most recent call last):
  File "D:\Programming\Binaries\depot_tools\metrics.py", line 302, in print_notice_and_exit
    yield
  File "D:\Programming\Binaries\depot_tools/git_cl.py", line 7092, in <module>
    sys.exit(main(sys.argv[1:]))
             ^^^^^^^^^^^^^^^^^^
  File "D:\Programming\Binaries\depot_tools/git_cl.py", line 7073, in main
    return dispatcher.execute(OptionParser(), argv)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programming\Binaries\depot_tools\subcommand.py", line 254, in execute
    return command(parser, args[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programming\Binaries\depot_tools/git_cl.py", line 5324, in CMDupload
    UploadAllSquashed(options, orig_args)
  File "D:\Programming\Binaries\depot_tools/git_cl.py", line 5472, in UploadAllSquashed
    cl.PostUploadUpdates(options, new_upload, change_numbers[i])
IndexError: list index out of range

@codesculpture you need to clone from https://dart.googlesource.com/sdk instead of GitHub if you want to use git-cl / Gerrit


Build RPMs via GitHub Actions

Signed-off-by: Major Hayden<EMAIL_ADDRESS>

(I will wait for the CI to finish)

Going to tinker with some matrix configs -- don't merge yet.

The last job in Travis-CI seems to be failing due to some failed HTTP/HTTPS connections. Retrying them. :/

Bleh.
test_rpm (test.test_stages.TestDescriptions) ... curl: (7) Failed to connect to fedora.uib.no port 80: Connection timed out

A nearby Fedora mirror is displeased.


[Carthage] scheme for framework is not shared

When I running carthage update, I got following error.
*** Skipped building Swift-YouTube-Player due to the error:
Dependency "Swift-YouTube-Player" has no shared framework schemes for any of the platforms: iOS

If you believe this to be an error, please file an issue with the maintainers at https://github.com/gilesvangruisen/Swift-YouTube-Player/issues/new

I found build scheme is not shared for Swift-YouTube-Player.
Though this commit measures for this problem, this only shares the scheme for example target.
What we need to share is scheme for framework itself, which is removed by this commit.

Having the same issue when install via Carthage

Same issue.

Same issue with 0.7.0, 0.7.1 and 0.7.2 Anyone found solution ?


Unable to do multiple writes

Hello, i'm facing a problem when sending multiple sms at the same time, but for one, everything is ok.
When sending instead of two separate messages, i get only one message like:
AT+CMGS="XXXXXXXXX"
Test Message
Test Message
There is my code:
recipient.forEach(function(item) {
send(port, item.tel,message);
})
function send(serial, toAddress, message) {
setTimeout(function(){
    serial.write('AT+CMGF=1\r')
    setTimeout(function(){
        serial.write('AT+CMGS=\"'+ toAddress +'\"\r')
        setTimeout(function(){
            serial.write(message+'\r')
            setTimeout(function(){
                serial.write('\x1A')
            }, 100);
        }, 100);
    }, 100);
}, 100);

}
Everything is in last version, i tried to use the Drain functions etc, but nothing worked. Any help would be appreciated.

I would imagine that this is happening because the following loop from the program tries to send all text messages at the same time:
recipient.forEach(function(item) {
  send(port, item.tel,message);
})

If the program is refactored to send the text messages one by one and to wait for each individual text message to be sent before the next text message is sent then it's more likely to work correctly.


When a msgid contains %(keyword)s, keyword should not be translated

Thanks for this great tool !
It works well, but I have one problem, to use your lib in real-life PO files from Odoo/OCA modules. My PO file contains:
#: code:addons/l10n_fr_das2/models/l10n_fr_das2.py:0
msgid "Company '%(company)s' is configured in country '%(country)s'."
msgstr ""

When I run:
python -m polyglot translate --from EN --to FR -s filename.po

I get the following result:
#: code:addons/l10n_fr_das2/models/l10n_fr_das2.py:0
msgid "Company '%(company)s' is configured in country '%(country)s'."
msgstr "L'entreprise \"%(entreprise)s\" est configurée dans le pays \"%(pays)s\"."

The keywords 'company' and 'country' should not be translated!

Hi, thank you for reporting the issue. I will try to make the fix as soon as I have time

Hi, can you test this PR? I added an argument where you can pass the variable wrapper. in your case you just add -v  "'%(" ")s'"


As a user, i want my Geth node to report to ethstats.

https://github.com/PhilippLgh/ethereum-binaries/issues/7


lru-cache dependency breaks the declared Node.js compatibility

Adding this line:
https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/8632156c9eabf484623d974d5259bb847ea473c8/packages/core/package.json#L56
Broke the Node.js compatibility of the package.
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "18.18.0"

Commit: 33abbdb128985cc10601acb51dbcbe655e39e8d1
The package Node.js compatibility is declared as >= 18, but that dependency is not compatible with v18.
CC @andrewbranch

Suggesting to use lru-cache v10, since it was only v11 that recently dropped Node 18 according to the changelog:
https://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md

I think I’ll probably drop support for v18 myself. I feel like supporting only active LTS versions is fine for a CI tool.

Node 18.18+ is LTS at the moment, @andrewbranch

Dear @andrewbranch ,
you're making a very important tool for the community and I believe you can drop Node 18 in May 2025, but at the moment it needs a little care: please review my PR, it works fine with previous version of lru-cache.
https://github.com/arethetypeswrong/arethetypeswrong.github.io/pull/205

The workaround for yarn
  "resolutions": {
    "@arethetypeswrong/**/lru-cache": "^10"
  },


FreeBSD Support?

I was just wondering if it's possible to get this working (Spotify, specifically) with FreeBSD.
I tried to install via Ports, but it's installing 3.x instead of 4.x (seems to be only available via Flatpak, which is Linux only?), and it crashes when I attempt to start it up.
Don't know if this is OS specific, but I can't get Spotify working under Nuvola at all.

I also get an error about not having a Flash Player plugin, but I have www/flashplayer installed from Ports.
Thoughts?

Hello @czbaker. Thanks for your interest in Nuvola.

I was just wondering if it's possible to get this working (Spotify, specifically) with FreeBSD.

I don't know whether it is possible to get Nuvola 4.x working with FreeBSD as I have never tried that. If you can build Chromium Embedded Framework in FreeBSD, then it should be possible to build Nuvola as well, maybe with some minor modifications to disable Linux-only stuff if there is any.

I tried to install via Ports, but it's installing 3.x instead of 4.x (seems to be only available via Flatpak, which is Linux only?)

Nuvola 3.x was available as source code (for third-party packagers) and DEB/RPM packages (for users), Nuvola 4.x is available as source code (for third-party packagers) and Flatpak packages (for users). I guess FreeBSD ports are build from source, so the change of packaging format is irrelevant.

Don't know if this is OS specific, but I can't get Spotify working under Nuvola at all.

That error isn't OS specific. Spotify stopped working with both Nuvola 3.x and 4.x on September 11, 2017 (#374) and was broken until February 11, 2018 when Nuvola 4.9 switched from WebKitGTK+ to Chromium Embedded Framework.

Hello. I'm cleaning stale tickets after the release of Nuvola 4.16. If this ticket still concerns you, feel free to reopen it.


JaxStackTraceBeforeTransformation error with parametrized ODE

Hi,
based on this tutorial I tried to get started with Jax and neural ODEs: https://colab.research.google.com/drive/1ZlK36VgWy1vBjBNXjSUg6Cb-7zeoa3jh
However, I get the a JaxStackTraceBeforeTransformation error (detailed error message below). I boiled down the code to a small working example (also provided below) and noted the error only occors when the equation in test_func contains an argument.
Since this issue seemed similar to one raised in an earlier post (https://github.com/jax-ml/jax/issues/13629) I tried downgrading jax to version 0.4.23. I also tried setting up a fresh python environment with only the necessary packages installed. Nothing helped, so far. I'd appreciate your help :)
(Even though it's labeled JaxStack... error, @dfm pointed out it might actually be a problem with diffrax: "The error reported here is actually a TypeError being raised because of an issue with the return types in a jax.custom_jvp. It's hard to see from this error report exactly which custom_jvp is the culprit, but it seems like it must be something within diffrax or equinox, so I'd recommend opening the issue on the https://github.com/patrick-kidger/diffrax issue tracker." https://github.com/jax-ml/jax/issues/24253)
Working example:
from diffrax import diffeqsolve, ODETerm, SaveAt, Tsit5
import jax
import jax.numpy as jnp

def f(t, y, _):
  dp_dt = 0.9 * y
  return dp_dt

b0 = 2  # init condition
data_ts = jnp.linspace(0, 20, 100)
data_sol = diffeqsolve(ODETerm(f), Tsit5(), t0=0, t1=20, dt0=0.01,
                       y0=(b0), saveat=SaveAt(ts=data_ts))

def fwd_test(coeff):
    num_ts = 100
    def test_func(t, y, _coeff):
        dp_dt = y * _coeff #doesn't work
        # dp_dt = y #works
        return dp_dt

    b0 = 2
    model_ts = jnp.linspace(0, 20, num_ts)
    # Note: larger dt0 so that it runs faster; this is about as large as it can go
    model_sol = diffeqsolve(ODETerm(test_func), Tsit5(), t0=0, t1=20, dt0=0.5,
                        y0=(b0), args=coeff, saveat=SaveAt(ts=model_ts))
    model_b = model_sol.ys
    data_b = data_sol.ys
    return jnp.sum((model_b - data_b)**2)

coeff = 1.
grads = jax.grad(fwd_test)(coeff)

Error message:
JaxStackTraceBeforeTransformation         Traceback (most recent call last)
File <frozen runpy>:198, in _run_module_as_main()

File <frozen runpy>:88, in _run_code()

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel_launcher.py:18](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel_launcher.py#line=17)
     16 from ipykernel import kernelapp as app
---> 18 app.launch_new_instance()

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\traitlets\config\application.py:1075](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/traitlets/config/application.py#line=1074), in launch_instance()
   1074 app.initialize(argv)
-> 1075 app.start()

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\kernelapp.py:739](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/kernelapp.py#line=738), in start()
    738 try:
--> 739     self.io_loop.start()
    740 except KeyboardInterrupt:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\tornado\platform\asyncio.py:205](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/tornado/platform/asyncio.py#line=204), in start()
    204 def start(self) -> None:
--> 205     self.asyncio_loop.run_forever()

File [~\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py:607](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/asyncio/base_events.py#line=606), in run_forever()
    606 while True:
--> 607     self._run_once()
    608     if self._stopping:

File [~\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py:1919](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/asyncio/base_events.py#line=1918), in _run_once()
   1918     else:
-> 1919         handle._run()
   1920 handle = None

File [~\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py:80](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/asyncio/events.py#line=79), in _run()
     79 try:
---> 80     self._context.run(self._callback, *self._args)
     81 except (SystemExit, KeyboardInterrupt):

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\kernelbase.py:545](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/kernelbase.py#line=544), in dispatch_queue()
    544 try:
--> 545     await self.process_one()
    546 except Exception:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\kernelbase.py:534](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/kernelbase.py#line=533), in process_one()
    533         return
--> 534 await dispatch(*args)

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\kernelbase.py:437](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/kernelbase.py#line=436), in dispatch_shell()
    436     if inspect.isawaitable(result):
--> 437         await result
    438 except Exception:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\ipkernel.py:362](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/ipkernel.py#line=361), in execute_request()
    361 self._associate_new_top_level_threads_with(parent_header)
--> 362 await super().execute_request(stream, ident, parent)

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\kernelbase.py:778](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/kernelbase.py#line=777), in execute_request()
    777 if inspect.isawaitable(reply_content):
--> 778     reply_content = await reply_content
    780 # Flush output before sending the reply.

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\ipkernel.py:449](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/ipkernel.py#line=448), in do_execute()
    448 if accepts_params["cell_id"]:
--> 449     res = shell.run_cell(
    450         code,
    451         store_history=store_history,
    452         silent=silent,
    453         cell_id=cell_id,
    454     )
    455 else:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\ipykernel\zmqshell.py:549](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/ipykernel/zmqshell.py#line=548), in run_cell()
    548 self._last_traceback = None
--> 549 return super().run_cell(*args, **kwargs)

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\interactiveshell.py:3075](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/IPython/core/interactiveshell.py#line=3074), in run_cell()
   3074 try:
-> 3075     result = self._run_cell(
   3076         raw_cell, store_history, silent, shell_futures, cell_id
   3077     )
   3078 finally:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\interactiveshell.py:3130](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/IPython/core/interactiveshell.py#line=3129), in _run_cell()
   3129 try:
-> 3130     result = runner(coro)
   3131 except BaseException as e:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\async_helpers.py:129](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/IPython/core/async_helpers.py#line=128), in _pseudo_sync_runner()
    128 try:
--> 129     coro.send(None)
    130 except StopIteration as exc:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\interactiveshell.py:3334](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/IPython/core/interactiveshell.py#line=3333), in run_cell_async()
   3331 interactivity = "none" if silent else self.ast_node_interactivity
-> 3334 has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
   3335        interactivity=interactivity, compiler=compiler, result=result)
   3337 self.last_execution_succeeded = not has_raised

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\interactiveshell.py:3517](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/IPython/core/interactiveshell.py#line=3516), in run_ast_nodes()
   3516     asy = compare(code)
-> 3517 if await self.run_code(code, result, async_=asy):
   3518     return True

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\interactiveshell.py:3577](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/IPython/core/interactiveshell.py#line=3576), in run_code()
   3576     else:
-> 3577         exec(code_obj, self.user_global_ns, self.user_ns)
   3578 finally:
   3579     # Reset our crash handler in place

Cell In[1], line 32
     31 coeff = 1.
---> 32 grads = jax.grad(fwd_test)(coeff)
     33 # print(grads)

Cell In[1], line 24, in fwd_test()
     23 # Note: larger dt0 so that it runs faster; this is about as large as it can go
---> 24 model_sol = diffeqsolve(ODETerm(test_func), Tsit5(), t0=0, t1=20, dt0=0.5,
     25                     y0=(b0), args=coeff, saveat=SaveAt(ts=model_ts))
     26 model_b = model_sol.ys

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\diffrax\integrate.py:823](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/diffrax/integrate.py#line=822), in diffeqsolve()
    819 #
    820 # Main loop
    821 #
--> 823 final_state, aux_stats = adjoint.loop(
    824     args=args,
    825     terms=terms,
    826     solver=solver,
    827     stepsize_controller=stepsize_controller,
    828     discrete_terminating_event=discrete_terminating_event,
    829     saveat=saveat,
    830     t0=t0,
    831     t1=t1,
    832     dt0=dt0,
    833     max_steps=max_steps,
    834     init_state=init_state,
    835     throw=throw,
    836     passed_solver_state=passed_solver_state,
    837     passed_controller_state=passed_controller_state,
    838 )
    840 #
    841 # Finish up
    842 #

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\diffrax\adjoint.py:286](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/diffrax/adjoint.py#line=285), in loop()
    285     msg = None
--> 286 final_state = self._loop(
    287     terms=terms,
    288     saveat=saveat,
    289     init_state=init_state,
    290     max_steps=max_steps,
    291     inner_while_loop=inner_while_loop,
    292     outer_while_loop=outer_while_loop,
    293     **kwargs,
    294 )
    295 if msg is not None:

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\diffrax\integrate.py:429](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/diffrax/integrate.py#line=428), in loop()
    427 del filter_state
--> 429 final_state = outer_while_loop(
    430     cond_fun, body_fun, init_state, max_steps=max_steps, buffers=_outer_buffers
    431 )
    433 def _save_t1(subsaveat, save_state):

File [~\AppData\Local\Programs\Python\Python311\Lib\contextlib.py:81](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/contextlib.py#line=80), in inner()
     80 with self._recreate_cm():
---> 81     return func(*args, **kwds)

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\loop.py:107](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/loop.py#line=106), in while_loop()
    106     del kind, base
--> 107     return checkpointed_while_loop(
    108         cond_fun,
    109         body_fun,
    110         init_val,
    111         max_steps=max_steps,
    112         buffers=buffers,
    113         checkpoints=checkpoints,
    114     )
    115 elif kind == "bounded":

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\checkpointed.py:247](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/checkpointed.py#line=246), in checkpointed_while_loop()
    246 cond_fun_ = jtu.tree_map(_stop_gradient, cond_fun_)
--> 247 body_fun_ = filter_closure_convert(body_fun_, init_val_)
    248 vjp_arg = (init_val_, body_fun_)

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\common.py:463](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/common.py#line=462), in new_body_fun()
    462 buffer_val = _wrap_buffers(val, pred, tag)
--> 463 buffer_val2 = body_fun(buffer_val)
    464 # Needed to work with `disable_jit`, as then we lose the automatic
    465 # ArrayLike->Array cast provided by JAX's while loops.
    466 # The input `val` is already cast to Array below, so this matches that.

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\diffrax\integrate.py:219](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/diffrax/integrate.py#line=218), in body_fun()
    214 #
    215 # Actually do some differential equation solving! Make numerical steps, adapt
    216 # step sizes, all that jazz.
    217 #
--> 219 (y, y_error, dense_info, solver_state, solver_result) = solver.step(
    220     terms,
    221     state.tprev,
    222     state.tnext,
    223     state.y,
    224     args,
    225     state.solver_state,
    226     state.made_jump,
    227 )
    229 # e.g. if someone has a sqrt(y) in the vector field, and dt0 is so large that
    230 # we get a negative value for y, and then get a NaN vector field. (And then
    231 # everything breaks.) See #143.

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\diffrax\solver\runge_kutta.py:1041](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/diffrax/solver/runge_kutta.py#line=1040), in step()
   1035 # Needs to be an `eqxi.while_loop` as:
   1036 # (a) we may have variable length: e.g. an FSAL explicit RK scheme will have one
   1037 #     more stage on the first step.
   1038 # (b) to work around a limitation of JAX's autodiff being unable to express
   1039 #     "triangular computations" (every stage depends on all previous stages)
   1040 #     without spurious copies.
-> 1041 final_val = eqxi.while_loop(
   1042     cond_stage,
   1043     rk_stage,
   1044     init_val,
   1045     max_steps=num_stages,
   1046     buffers=buffers,
   1047     kind="checkpointed" if self.scan_kind is None else self.scan_kind,
   1048     checkpoints=num_stages,
   1049     base=num_stages,
   1050 )
   1051 _, y1, f1_for_fsal, _, _, fs, ks, result = final_val

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\loop.py:107](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/loop.py#line=106), in while_loop()
    106     del kind, base
--> 107     return checkpointed_while_loop(
    108         cond_fun,
    109         body_fun,
    110         init_val,
    111         max_steps=max_steps,
    112         buffers=buffers,
    113         checkpoints=checkpoints,
    114     )
    115 elif kind == "bounded":

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\checkpointed.py:252](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/checkpointed.py#line=251), in checkpointed_while_loop()
    249 final_val_ = _checkpointed_while_loop(
    250     vjp_arg, cond_fun_, checkpoints, buffers_, max_steps
    251 )
--> 252 _, _, _, final_val = _stop_gradient_on_unperturbed(init_val_, final_val_, body_fun_)
    253 return final_val

JaxStackTraceBeforeTransformation: TypeError: Custom JVP rule must produce primal and tangent outputs with corresponding shapes and dtypes, but got:
  primal int32[] with tangent int32[], expecting tangent ShapedArray(float0[])
  primal bool[] with tangent bool[], expecting tangent ShapedArray(float0[])
  primal bool[] with tangent bool[], expecting tangent ShapedArray(float0[])
  primal int32[] with tangent int32[], expecting tangent ShapedArray(float0[])
  primal int32[] with tangent int32[], expecting tangent ShapedArray(float0[])

The preceding stack trace is the source of the JAX operation that, once transformed by JAX, triggered the following exception.

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

The above exception was the direct cause of the following exception:

TypeError                                 Traceback (most recent call last)
Cell In[1], line 32
     28     return jnp.sum((model_b - data_b)**2)
     31 coeff = 1.
---> 32 grads = jax.grad(fwd_test)(coeff)
     33 # print(grads)

    [... skipping hidden 10 frame]

Cell In[1], line 24, in fwd_test(coeff)
     22 model_ts = jnp.linspace(0, 20, num_ts)
     23 # Note: larger dt0 so that it runs faster; this is about as large as it can go
---> 24 model_sol = diffeqsolve(ODETerm(test_func), Tsit5(), t0=0, t1=20, dt0=0.5,
     25                     y0=(b0), args=coeff, saveat=SaveAt(ts=model_ts))
     26 model_b = model_sol.ys
     27 data_b = data_sol.ys

    [... skipping hidden 27 frame]

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\checkpointed.py:1272](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/checkpointed.py#line=1271), in _stop_gradient_on_unperturbed_jvp(***failed resolving arguments***)
   1268 del primals, tangents
   1269 perturb_val, perturb_body_fun = jtu.tree_map(
   1270     lambda _, t: t is not None, (init_val, body_fun), (t_init_val, t_body_fun)
   1271 )
-> 1272 perturb_val = _resolve_perturb_val(
   1273     init_val, body_fun, perturb_val, perturb_body_fun
   1274 )
   1275 t_final_val = jtu.tree_map(
   1276     _perturb_to_tang, t_final_val, perturb_val, is_leaf=_is_none
   1277 )
   1278 return final_val, t_final_val

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\checkpointed.py:1241](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/checkpointed.py#line=1240), in _resolve_perturb_val(final_val, body_fun, perturb_final_val, perturb_body_fun)
   1238         else:
   1239             perturb_val = jtu.tree_map(operator.or_, perturb_val, new_perturb_val)
-> 1241 perturb_val = jax.eval_shape(_resolve_perturb_val_impl).value
   1242 return perturb_val

    [... skipping hidden 12 frame]

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\checkpointed.py:1214](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/checkpointed.py#line=1213), in _resolve_perturb_val.<locals>._resolve_perturb_val_impl()
   1211     return _out
   1213 # Not `jax.jvp`, so as not to error if `body_fun` has any `custom_vjp`s.
-> 1214 jax.linearize(_to_linearize, dynamic)
   1215 if new_perturb_val is sentinel:
   1216     # `_dynamic_out` in `_to_linearize` had no JVP tracers at all, despite
   1217     # `_dynamic` having them. Presumably the user's `_body_fun` has no
   1218     # differentiable dependency whatsoever.
   1219     # This can happen if all the autograd is happening through
   1220     # `perturb_body_fun`.
   1221     return Static(perturb_val)

    [... skipping hidden 5 frame]

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\equinox\internal\_loop\checkpointed.py:1207](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/equinox/internal/_loop/checkpointed.py#line=1206), in _resolve_perturb_val.<locals>._resolve_perturb_val_impl.<locals>._to_linearize(_dynamic)
   1205 def _to_linearize(_dynamic):
   1206     _body_fun, _val = combine(_dynamic, static)
-> 1207     _out = _body_fun(_val)
   1208     _dynamic_out, _static_out = partition(_out, is_inexact_array)
   1209     _dynamic_out = _record_symbolic_zeros(_dynamic_out)

    [... skipping hidden 10 frame]

File [~\AppData\Local\Programs\Python\Python311\Lib\site-packages\jax\_src\custom_derivatives.py:351](http://localhost:8888/lab/tree/ML%20for%20Astro/day3/~/AppData/Local/Programs/Python/Python311/Lib/site-packages/jax/_src/custom_derivatives.py#line=350), in _flatten_jvp(primal_name, jvp_name, in_tree, maybe_out_type, *args)
    344     msg = ("Custom JVP rule must produce primal and tangent outputs with "
    345            "corresponding shapes and dtypes, but got:\n{}")
    346     disagreements = (
    347         f"  primal {av_p.str_short()} with tangent {av_t.str_short()}, expecting tangent {av_et}"
    348         for av_p, av_et, av_t in zip(primal_avals_out, expected_tangent_avals_out, tangent_avals_out)
    349         if av_et != av_t)
--> 351     raise TypeError(msg.format('\n'.join(disagreements)))
    352 yield primals_out + tangents_out, (out_tree, primal_avals)

TypeError: Custom JVP rule must produce primal and tangent outputs with corresponding shapes and dtypes, but got:
  primal int32[] with tangent int32[], expecting tangent ShapedArray(float0[])
  primal bool[] with tangent bool[], expecting tangent ShapedArray(float0[])
  primal bool[] with tangent bool[], expecting tangent ShapedArray(float0[])
  primal int32[] with tangent int32[], expecting tangent ShapedArray(float0[])
  primal int32[] with tangent int32[], expecting tangent ShapedArray(float0[])

System info (python version, jaxlib version, accelerator, etc.)
jax:    0.4.34
jaxlib: 0.4.34
numpy:  1.26.4
python: 3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)]
jax.devices (1 total, 1 local): [CpuDevice(id=0)]
process_count: 1
platform: uname_result(system='Windows', release='10', version='10.0.19044', machine='AMD64')
jupyterlab: 4.2.2
diffrax: 0.4.1

This is a known issue that arose in JAX 0.4.34. The tangent types of integers in custom autodiff was changed from matching the primal to instead being a float0.
I've updated Equinox to be compatible in https://github.com/patrick-kidger/equinox/pull/871. I'll do a new release soon. In the mean time you can either install Equinox directly from HEAD, or you can downgrade to JAX 0.4.33.
I hope that helps! :)
(I can see that you said you already tried downgrading. I have just double-checked and Equinox v0.11.7 + JAX 0.4.33 works for me, so I think something else has probably gone wrong for you there. :) )

Don't know what I'm doing wrong here. I just tried equinox 0.11.7 and jax 0.4.33 and still the same issue.

 Set JAX_TRACEBACK_FILTERING=off to include these.

with jax==0.4.34,jaxlib==0.4.34,diffrax==0.6.0,equinox==0.11.8 on python 3.13.

Issue above is fixed with optimistix 0.0.9 :)


Upgraded to 3.1

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


Catching burger ingredients to build a burger that matches the wanted burger for each level.
How do you play your game?
Press A and D to move the bottom burger bun left and right. Press L to start game, J to restart, I to move to next level (press these when prompted). Move the bottom bun under the correct falling ingredients to collect them in the correct order to build the burger for each level. The level ends when the top bun is collected. If the burger is correct, the user moves onto the next level (there are 5 levels total). If the burger is not correct, the user must restart from the first level.
Code
Check off the items that are true.

[x ] The game was made using the Sprig editor.
[x ] The game is placed in the in the /games directory.
[ x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x ] The game runs without errors.
[x ] The name of the file/game contains only alphanumeric characters, -s, or _s.
[ x] The game name is not the same as the others from gallery

Image (If an image is used)

[ ] The image is in the /games/img directory.
[ ] The name of the image matches the name of your file.

Thanks for your PR!

@LucasHT22 Thanks, I didn't notice that error. I've fixed it now.


Restore /wmg/v2/primary_filter_dimensions in dev

Motivation
The datadog synthetics test for  /wmg/v2/primary_filter_dimensions has been disabled in dev since the endpoint isn't reliable. Link here.
Once the endpoint is fixed, this should be re-enabled
Definition of Done

Endpoint needs to be fixed (no 502s, response time less than 30s consistently)
Test is re-enabled
No failures for the foreseeable future

@atarashansky @prathapsridharan can you help add priority tag to this please? My vote is P1, since the test is temporarily disabled and decreasing test coverage. Thank you!

P1 sounds about right. I added the tag

Perfect thanks so much, Prathap!

@atarashansky for visibility - since Prathap is out, is this something you can help resolve this week or next sprint? Thank you!

I think this is blocked by the work to add caching to the discover api endpoints. Otherwise, the primary filters test will always be flakey due to cold start issues.

Isn't there a pending response to @atolopko-czi 's question - https://czi-sci.slack.com/archives/C023Q1APASK/p1693438948615669?thread_ts=1693431449.896999&cid=C023Q1APASK

[repeating my concern here]
The snapshot should be able to fully drive the FE, with necessary data being pulled via API at snapshot build time. API calls were reintroduced, I assume. But could this be avoided by including the necessary data in the snapshot?

Yes, it could! :D Sorry - I lost track of the conversation.

@atarashansky @prathapsridharan @dsadgat now that we have a solution, should we work on this next sprint? Thank you!

@atarashansky can help you add a comment here to share why this was moved from code review back to disorder? Thank you!

It's a zenhub artifact because I connected/disconnected it from the above PR.


I can't download an anime because of the title.

Hello,
First, Thank you so much for creating this amazing script <3
I'm trying to download this anime from crunchyroll:
http://www.crunchyroll.com/worldend-what-do-you-do-at-the-end-of-the-world-are-you-busy-will-you-save-us
But whenever I press enter I get [Errno 22].
I'm using this command:
anime-dl.exe -i "http://www.crunchyroll.com/worldend-what-do-you-do-at-the-end-of-the-world-are-you-busy-will-you-save-us/episode-1-733675" -u "xxxx" -p "xxxx" -r "1080"
This is the error I get after I press enter:

I tried to download 1 episode and the whole series and I got the same error, I think your script can't process the long title or something.
I have downloaded many episodes just fine and this is the 1st anime that I have issue with.
Thank you again.

From looking at the name of the episode, my best guess would be either of these 2 things :
1.) File has "?" in it. Special characters NOT writable.
2.) File name is too long.
I'll look into this.

Yeah, it has the both. (long and '?')

I'll try to fix it soon, hopefully in a day or two.

This should be fixed now. If it still causes problem, comment here and I'll re-open this.


Cloud Functions python37: Future attached to a different loop

I decided to create the issue in the docs repo. However, I don't know whether it is a right place to state the issue. Please point me to a correct place if it is needed.
Good news: python37 runtime environment allows to define handler as async def. This is a huge advantage versus sync-only handlers of AWS, for example.
Bad news: however, the handler is called using asyncio.run. This could be investigated from the traceback in case of exception: File \"/function/runtime/runtime.py\", line 157, in handle_event\n    result = asyncio.run(result). This causes RuntimeError of Task … got Future … attached to a different loop if any of the resources are created outside the function (which is a common case for initialising a database connection) since asyncio.run creates a new loop.
Example code:
import aioch

ch = aioch.Client(…)  # attached to an initially created loop

async def echo(event, ctx):
    await ch.execute('SELECT 1')  # RuntimeError

Response:
{
    "errorMessage": "Task <Task pending coro=<echo() running at /function/code/index.py:16> cb=[_run_until_complete_cb() at /function/runtime/lib/python3.7/asyncio/base_events.py:157]> got Future <Future pending cb=[_chain_future.<locals>._call_check_cancel() at /function/runtime/lib/python3.7/asyncio/futures.py:351]> attached to a different loop",
    "errorType": "RuntimeError",
    "stackTrace": [
        "  File \"/function/runtime/runtime.py\", line 157, in handle_event\n    result = asyncio.run(result)\n",
        "  File \"/function/runtime/lib/python3.7/asyncio/runners.py\", line 43, in run\n    return loop.run_until_complete(main)\n",
        "  File \"/function/runtime/lib/python3.7/asyncio/base_events.py\", line 583, in run_until_complete\n    return future.result()\n",
        "  File \"/function/code/index.py\", line 16, in echo\n    await ch.execute('SELECT 1')\n",
        "  File \"/function/code/aioch/client.py\", line 38, in execute\n    **kwargs)\n"
    ]
}

The proper way to call async serverless functions handlers is asyncio.get_event_loop().run_until_complete(result) which preserves the initially created event loop. Please see a more detailed explanation in my Stack Overflow answer for Amazon Web Services.
Could you please provide any expectations on whether it will be fixed and when? Thank you in advance.

Здравствуйте!
Вы можете попробовать протестировать новое поведение, использовав environment-переменную PYTHON_ASYNCIO_SAFE и присвоив ей значение True.


MissingAction for when no wrapper is available

What?
Add a type-unsafe subclass of action
Why?
If a wrapper is missing,

either you use the wrapper-generator to produce a complete type safe wrapper,
or you use this Missing Action where you pass only the arguments you need as a type-unsafe map.
there isn't a real point in creating your own half assed wrapper manually

Note:
@krzema12 I need this MissingAction class for the script generator,
but I also think that it's a better alternative to creating manually your own half-assed action wrapper
https://github.com/krzema12/github-actions-kotlin-dsl/pull/132

Done.
Please verify what I've done with ActionWithOutputs, I'm not familiar with it.


updates provisioner readme with tips on running tests

Description
Changes proposed in this pull request:

updates provisioner readme with tips on running tests
...
...

Related issue(s)

/retest pre-control-plane-components-provisioner

/test pre-control-plane-components-provisioner


renamed year select min-width css variable

Summary
It has been reported, that the value of the --terra-clinical-onset-picker-year-select-min-width variable in fusion theme is can be overridden by the same name variable coming from deprecated orion-fusion-theme package, which sometimes appears as dependency in some projects. To avoid that, the variable was renamed to --terra-clinical-onset-picker**-calendar**-year-select-min-width.
Testing

This change was tested using:

[ ] WDIO
[ ] Jest
[x] Visual testing (please attach a screenshot or recording)
[ ] Other (please describe below)
[ ] No tests are needed

The new variable being populated instead of the old one:

Reviews
In addition to engineering reviews, this PR needs:

[ ] UX review
[ ] Accessibility review
[ ] Functional review

Additional Details

This PR resolves:
UXPLATFORM-10364

Just a question, why can't they remove the orion-fusion-theme package dependency?

Just a question, why can't they remove the orion-fusion-theme package dependency

Per request in the UXPLATFORM-10364 that would be change in one place, which is preferable to chasing multiple teams and waiting on their release schedule.

Just a question, why can't they remove the orion-fusion-theme package dependency

Per request in the UXPLATFORM-10364 that would be change in one place, which is preferable to chasing multiple teams and waiting on their release schedule.

Understood.  How do we ensure that there are not other conflicts?  I would want to make sure that we are not making a bunch of one-off variable changes to avoid removing an outdated dependency moving forward.

Just a question, why can't they remove the orion-fusion-theme package dependency

Per request in the UXPLATFORM-10364 that would be change in one place, which is preferable to chasing multiple teams and waiting on their release schedule.

Understood. How do we ensure that there are not other conflicts? I would want to make sure that we are not making a bunch of one-off variable changes to avoid removing an outdated dependency moving forward.

In terra the variable is used in 3 files only. Its has been renamed in all 3 cases. I don't expect any complications in this specific case.


Create new release v1.2.0

Major highlights of this release:

#127
#115
#118

Looks good.
We probably no longer need the version check feature for Go 1.20 for unit testing as we now rely on 1.21.


GraphQlTester support for WebSocket

I enabled the WebSocket transport in a WebFlux Spring Graphql example, the complete source codes is here.
spring.graphql.websocket.path=/ws/graphql

I have written a test to verify the subscription like this.
@SpringBootTest()
@Slf4j
@AutoConfigureGraphQlTester
@AutoConfigureWebTestClient
class SubscriptionTests {

    @Autowired
    WebGraphQlTester graphQlTester;

    @MockBean
    PostService postService;

    @MockBean
    AuthorService authorService;

    @Autowired
    PostsDataFetcher dataFetcher;

    @Test
    void createCommentAndSubscription() {
        when(postService.addComment(any(CommentInput.class))).thenReturn(Mono.just(UUID.randomUUID()));
        when(postService.getCommentById(anyString())).thenReturn(Mono.just(
                Comment.builder().id(UUID.randomUUID().toString())
                        .content("test comment")
                        .postId(UUID.randomUUID().toString())
                        .build()
        ));

        String query = "subscription onCommentAdded { commentAdded { id postId content } }";
        var verifier = graphQlTester.query(query)
                .executeSubscription()
                .toFlux("commentAdded.content", String.class)
                .as(StepVerifier::create)
                .expectNext("test comment")
                .thenCancel()
                .verifyLater();

        // add comment
        dataFetcher.addComment(
                        CommentInput.builder()
                                .postId(UUID.randomUUID().toString())
                                .content("test content")
                                .build()
                )
                .as(StepVerifier::create)
                .consumeNextWith(comment -> assertThat(comment.getContent()).isEqualTo("test comment"))
                .verifyComplete();

        // verify the subscription now.
        verifier.verify();

        // verify the invocation of the mocks.
        verify(postService, times(1)).addComment(any(CommentInput.class));
        verify(postService, times(1)).getCommentById(anyString());
        verifyNoMoreInteractions(postService);
    }
}

I got an 404 error , /graphql url not found. The test tried to connect to HTTP not Web Socket endpoint.
In the standalone console output, found the following info:
2021-10-09 20:57:13.025  INFO 6364 --- [    Test worker] o.s.g.b.GraphQlWebFluxAutoConfiguration  : GraphQL endpoint HTTP POST /graphql
2021-10-09 20:57:13.061 DEBUG 6364 --- [    Test worker] o.s.w.r.f.s.s.RouterFunctionMapping      : 1 RouterFunction(s) in 'routerFunctionMapping'
2021-10-09 20:57:13.101 DEBUG 6364 --- [    Test worker] o.s.w.r.handler.SimpleUrlHandlerMapping  : Patterns [/webjars/**, /**] in 'resourceHandlerMapping'
2021-10-09 20:57:13.162  INFO 6364 --- [    Test worker] o.s.g.b.GraphQlWebFluxAutoConfiguration  : GraphQL endpoint WebSocket /ws/graphql
2021-10-09 20:57:13.163 DEBUG 6364 --- [    Test worker] o.s.w.r.handler.SimpleUrlHandlerMapping  : Patterns [/ws/graphql] in 'graphQlWebSocketEndpoint'
2021-10-09 20:57:13.219 DEBUG 6364 --- [    Test worker] o.s.w.r.r.m.a.ControllerMethodResolver   : ControllerAdvice beans: none
2021-10-09 20:57:13.313 DEBUG 6364 --- [    Test worker] o.s.w.s.adapter.HttpWebHandlerAdapter    : enableLoggingRequestDetails='false': form data and headers will be masked to prevent unsafe logging of potentially sensitive data
2021-10-09 20:57:13.727 DEBUG 6364 --- [    Test worker] o.s.w.s.adapter.HttpWebHandlerAdapter    : enableLoggingRequestDetails='false': form data and headers will be masked to prevent unsafe logging of potentially sensitive data
2021-10-09 20:57:13.751 DEBUG 6364 --- [    Test worker] o.s.w.s.adapter.HttpWebHandlerAdapter    : enableLoggingRequestDetails='false': form data and headers will be masked to prevent unsafe logging of potentially sensitive data
2021-10-09 20:57:13.841  INFO 6364 --- [    Test worker] com.example.demo.SubscriptionTests       : Started SubscriptionTests in 6.257 seconds (JVM running for 8.562)
2021-10-09 20:57:13.845  INFO 6364 --- [    Test worker] com.example.demo.DataInitializer         : start data initialization...
2021-10-09 20:57:14.622  INFO 6364 --- [    Test worker] com.example.demo.DataInitializer         : deleted rows: authors: 1, comments: 18, posts: 5
2021-10-09 20:57:14.713  INFO 6364 --- [    Test worker] com.example.demo.DataInitializer         : done data initialization...
2021-10-09 20:57:14.710  INFO 6364 --- [actor-tcp-nio-1] com.example.demo.DataInitializer         : author: AuthorEntity[id=72e03543-c53a-47b0-8e65-c0e82626c468, name=user<EMAIL_ADDRESS>createdAt=2021-10-09T20:57:14.629179]
2021-10-09 20:57:14.944 DEBUG 6364 --- [    Test worker] o.s.w.r.f.client.ExchangeFunctions       : [2954c429] HTTP POST /graphql
2021-10-09 20:57:14.979 DEBUG 6364 --- [     parallel-2] o.s.http.codec.json.Jackson2JsonEncoder  : [2954c429] Encoding [{query=subscription onCommentAdded { commentAdded { id postId content } }}]
2021-10-09 20:57:15.012 DEBUG 6364 --- [     parallel-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [40a06180] HTTP POST "/graphql"
2021-10-09 20:57:15.032 DEBUG 6364 --- [     parallel-2] o.s.w.r.handler.SimpleUrlHandlerMapping  : [40a06180] Mapped to ResourceWebHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/"]
2021-10-09 20:57:15.037 DEBUG 6364 --- [     parallel-2] o.s.w.r.resource.ResourceWebHandler      : [40a06180] Resource not found
2021-10-09 20:57:15.052 DEBUG 6364 --- [     parallel-2] org.springframework.web.HttpLogging      : [40a06180] Resolved [ResponseStatusException: 404 NOT_FOUND] for HTTP POST /graphql
2021-10-09 20:57:15.067 DEBUG 6364 --- [     parallel-2] o.s.http.codec.json.Jackson2JsonEncoder  : [40a06180] Encoding [{timestamp=Sat Oct 09 20:57:15 CST 2021, path=/graphql, status=404, error=Not Found, message=null, r (truncated)...]
2021-10-09 20:57:15.102 DEBUG 6364 --- [     parallel-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [40a06180] Completed 404 NOT_FOUND
2021-10-09 20:57:15.108 DEBUG 6364 --- [     parallel-2] o.s.w.r.f.client.ExchangeFunctions       : [2954c429] [44f83767] Response 404 NOT_FOUND
2021-10-09 20:57:15.123 ERROR 6364 --- [    Test worker] o.s.t.w.reactive.server.ExchangeResult   : Request details for assertion failure:

> POST /graphql
> WebTestClient-Request-Id: [1]
> Content-Type: [application/json]
> Accept: [text/event-stream]
> Content-Length: [78]

{"query":"subscription onCommentAdded { commentAdded { id postId content } }"}

< 404 NOT_FOUND Not Found
< Content-Type: [application/json]
< Content-Length: [134]

{"timestamp":"2021-10-09T12:57:15.048+00:00","path":"/graphql","status":404,"error":"Not Found","message":null,"requestId":"40a06180"}

The testing codes is working as expected against WebGraphQlTester with WebGraphQLHandler, I think here it does not use the real protocol.

It also does not work in an Integratoin tests running on a real HTTP server, check the integration tests.

This is available now as of M6 and was done as part of #317.


Synchronous call?

How can I make synchronous calls?
Like: var myImage = getPixels("image.png");

Not supported at the moment in order to maintain compatibility between browser and node APIs.
The problem is that on the browser you can't parse an image until you've waited at least one tick for the image parsing to complete.


path to run chrome wrong

Bug description
I use linux, and for some reason, the chrome execution path is like windows, check it out

Puppeteer version
latest
Node.js version
19.0.0
npm version
8.19.2
What operating system are you seeing the problem on?
Linux
Configuration file
No response
Relevant log output
No response

i tried putting executePath to /usr/share/applications/google-chrome.desktop, it gave access denied.
(im new to linux)

From looking at your terminal, it looks like you are using a windows terminal, not a Linux terminal.
We recommend posting this in Stackoverflow.


[BUG] Antd Input component does not pass input as number to create

Describe the bug
When inputing a number into create Input component and clicking save the input is passed as a string to the dataProvider.
Also when adding a rule that input must be a number fails validation.
                <Form.Item
                    label={translate("recipe.fields.quantity")}
                    name={["quantity"]}
                    rules={[
                        {
                            required: true,
                            type: "number",
                        },
                    ]}
                >
                    <Input />
                </Form.Item>

Steps To Reproduce
Add rule to Form.Item
Expected behavior
Numbers will be passed as numbers to dataProvider and number will pass validation.
Screenshot
https://i.imgur.com/sbMCAff.png
Desktop
Windows 11
Chrome
"@refinedev/core": "^4.28.2",
"@refinedev/antd": "^5.7.0",
Custom dataProvider
Mobile
No response
Additional Context
No response

Even adding a transform to the form does not correct the issue. The input is still sent as a string to variables. This is incredibly frustrating. The Chakra version sends the select values wrong and the Antd version sends the input values wrong.
                <Form.Item
                    label={translate("recipe.fields.quantity")}
                    name={["quantity"]}
                    rules={[
                        {
                            required: true,
                            type: "number",
                            transform: (value) => Number(value),
                        },
                    ]}
                >
                    <Input />
                </Form.Item>

you have to use  <InputNumber>. <Input /> and <Input type='number' /> do NOT work


Update expressroute-locations-providers.md

global connect missing in the location list

@FloKlaffenbach : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#reassign:charwen

@charwen - Could you review/resolve this pull request? Thanks!

The issue that's addressed in the PR appears to be addressed in master. We'll close the PR. If there are outstanding issues or questions, the PR can be reopened.


Add section to README explaining/demonstrating how to pass values back to the caller

This is achieved by writing a value back (as a string) to the appropriate index within the rule_args array. The caller is required to pass one or more variables as out parameters.
Here's an example:
def get_magic_number(rule_args, callback, rei):
    rule_args[0] = '42' # Notice the integer is represented as a string.

In the native rule language, you'd call the rule like so.
some_rule
{
    *magic_number = '-1'; # This is required.
    get_magic_number(*magic_number);
    writeLine('serverLog', 'The magic number is [*magic_number].');
}

It's important that the value passed and returned across REP boundaries be of type string. Passing any other type will result in an error.

note where the -1 is passed, it could be an empty string.
the 'required' comment is about the string-ness, not the value -1.


[ENH] Add functionality to deconcatenate tuple/list/collections in a column to deconcatenate_column

PR Description
Please describe the changes proposed in the pull request:

deconcatenate_column now contains logic to handle splitting collections like tuples / lists on top of splitting strings

This PR resolves nothing.
PR Checklist
Please ensure that you have done the following:

[x] PR in from a fork off your branch. Do not PR from <your_username>:dev, but rather from <your_username>:<feature-branch_name>.

[x] If you're not on the contributors list, add yourself to AUTHORS.rst.

[x] Add a line to CHANGELOG.rst under the latest version header (i.e. the one that is "on deck") describing the contribution.

Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Quick Check
To do a very quick check that everything is correct, follow these steps below:

[x] Run the command make check from pyjanitor's top-level directory. This will automatically run:

black formatting
pycodestyle checking
running the test suite
docs build

Code Changes

If you are adding code changes, please ensure the following:

[x] Ensure that you have added tests.
[x] Run all tests ($ pytest .) locally on your machine.

[x] Check to ensure that test coverage covers the lines of code that you have added.
[x] Ensure that all tests pass.

Relevant Reviewers

@ericmjl

:+1:


async getLocation() only returns first element

Describe the bug
If more than one city exists with the same name, getLocation() only returns the first element. (limet=1 in geocodeing request).
That makes it impossible to get geocoding for a city such as Wausau, FL, or Nome, TX.
To Reproduce
Steps to reproduce the behavior:
{location = await weather.getLocation({locationName: city})
console.log ("LOCATION: ",location);
}
Expected behavior
Should be able to put "city,state" in the weather.getLocation call.
Screenshots
Please complete the following information:
Node version: 16.13.2
openweather-api-node version: 1.3.2
Additional context.
Since Openweathermaps will be depricating getting weather by city, this will become a bigger issue in the future.

Sending city,state,us works, but not ideal since many countries don't have states.
So, this isn't really a bug, but a feature request. The problem is in the API.
I'll try to figure out how to determine if the request is "city,state" or "city,country".

As you said this is more of an API problem but after reading your issue I noticed that there is no method to get more then one location from query so I added one called getAllLocations. Thanks for your input. :)


Crashing on in-line schema, moving under definitions resolves it

The Error
$ morphling bash
Container ID is:
584d6828db74
Bashing into Morphling.. Type exit to exit.
root@584d6828db74:/usr/app# pm2 log
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
  0|server  | Error in getDB TypeError: Cannot read property 'replace' of undefined
  0|server  |     at getReferencesAndCount (/usr/app/src/utils/createRouterFromSwagger.js:189:46)
  0|server  |     at /usr/app/src/utils/createRouterFromSwagger.js:125:29
  0|server  |     at dispatch (/usr/app/node_modules/koa-router/node_modules/koa-compose/index.js:44:32)
  0|server  |     at next (/usr/app/node_modules/koa-router/node_modules/koa-compose/index.js:45:18)
  0|server  |     at /usr/app/node_modules/koa-router/lib/router.js:345:16
  0|server  |     at dispatch (/usr/app/node_modules/koa-router/node_modules/koa-compose/index.js:44:32)
  0|server  |     at /usr/app/node_modules/koa-router/node_modules/koa-compose/index.js:36:12
  0|server  |     at dispatch (/usr/app/node_modules/koa-router/lib/router.js:350:31)
  0|server  |     at dispatch (/usr/app/node_modules/koa-compose/index.js:42:32)
  0|server  |     at dispatch (/usr/app/node_modules/koa-router/lib/router.js:332:32)
  0|server  | (node:17) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

The OpenAPI 2 document
swagger: "2.0"

info:
  version: 1.0.0
  title: Simple API
  description: A simple API to learn how to write OpenAPI Specification

schemes:
  - https

host: simple.api
basePath: /

paths:
  /persons:
    get:
      summary: Gets some persons
      description: Returns a list containing all persons.
      responses:
        200:
          description: A list of Person
          schema:
            type: array
            items:
              required:
                - username
              properties:
                firstName:
                  type: string
                lastName:
                  type: string
                username:
                  type: string

Thanks for the feedback! Would you be willing to submit a PR on this?


Block doesn't work as expected

Under linux:
Sometimes block fails over a massive petition. Failed once on a single operation.

Closed:
It was an issue with blocking. Not a problem under linux because of self blocking system, but a headache under Windows.


As long as there is an uncleared item, created by the
alertService.start, the progress bar will keep going.
Issue
#3975
Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that your code compiles by running npm run build
[x] If this is the first time you're submitting a PR or even if you just need a refresher, consider reviewing our style guide
[x] Do not bypass Angular sanitization (bypassSecurityTrustHtml, etc.), or justify why you need to do so
[x] If displaying markdown, use the markdown-wrapper component, which does extra sanitization
[x] Do not use cookies, although this may change in the future
[x] Run npm audit and ensure you are not introducing new vulnerabilities
[x] Do due diligence on new 3rd party libraries, checking for CVEs
[x] Don't allow user-uploaded images to be served from the Dockstore domain

build issue seems relevant

TypeError: The following error originated from your application code, not from Cypress.

Cannot read properties of undefined (reading 'nativeElement')

When Cypress detects uncaught errors originating from your application it will automatically fail the current test.

Seems flaky, alas; it was marked so in CircleCI. Rebased and now it's passing.


Identity type alias causes problems

Quick Summary:
I entered an identity type alias, but elm refuses to unify LHS and RHS of the type alias later.
SSCCE
module Both.Msg exposing (..)

type alias Msg a = a

make : a -> Msg a
make = identity

=>
Something is off with the body of the `make` definition:

6| make = identity
          ^^^^^^^^
This `identity` value is a:

    a -> a

But the type annotation on `make` says it should be:

    a -> Msg a

Elm: 0.19.1
Browser: irrelevant
Operating System: irrelevant

Additional Details
Msg a and a, for all a, by definition, have to be the same type. Yet, Elm refuses to acknowledge that anything a is also Msg a.
Funny thing, the code
module Both.Msg exposing (..)

type alias Msg a = a

make : Msg a -> a
make = identity

compiles just fine.

Duplicate of https://github.com/elm/compiler/issues/2252


Automatic recognition of *.json for configuration

I am currently trying to automate my deployments of Caddy with Chef. Configuration from JSON would really make building the configuration easier. I have seen the json.go and also, that is has not been used yet.
I have not found any concrete plans about how to incorporate this into Caddy, so I will elaborate on my ideas here:

The Caddyfile would still be the default and none of the changes to made should influence the current way Caddy is configured
If -conf is not provided, Caddy would still default to ./Caddyfile or, if not found, to /Caddyfile.json
If -conf *.json, Caddy would try to read the config in JSON format
If parsing from STDIN fails for the Caddyfile format, Caddy would try to parse it from JSON format.

I would like to know your thoughts on this, if it matches the overall strategy for Caddy and if I should submit a pull request implementing this behavior.

Instead of making a pull request in this case, make a plugin. :blush: All it would have to do is look for a .json file I suppose, and convert it to Caddyfile.
However, the JSON format is intended for use with the up-and-coming web UI for Caddy; there doesn't seem to be much benefit of using JSON over the Caddyfile syntax in other situations, since Caddyfile is easier to write. Why do you want to use JSON, exactly?

I would appreciate this as well. In my setup the Caddyfile is generated by an ansible template and I've had several issues where the 'intuitive' syntax of Caddyfile caused subtle issues because there was whitespace in the wrong place.

I really think the Caddyfile is the most intuitive format for the configuration of a webserver I have seen so far.
For automated generation and modification (partial changes) however I prefer JSON because it is more widely used an there are a lot of generators for it.
I see the downside of putting this into the core however, because there would be two formats that are not compatible, which could lead to fragmentation in documentation and discussions.
I have written a plugin to relay requests to slack so I am a little familiar with plugins for caddy already. @mholt where would I tie in a plugin that executes before the parsing of the Caddyfile? Would you suggest literally writing it out to a Caddyfile so that the normal process is not modified or would you suggest replacing the Caddyfile-loader?

I really think the Caddyfile is the most intuitive format for the configuration of a webserver I have seen so far.
For automated generation and modification (partial changes) however I prefer JSON because it is more widely used an there are a lot of generators for it.

Writing a Caddyfile is as easy as concatenating strings; the JSON format that Caddy accepts is just a JSON-ified Caddyfile syntax, where instead of separating tokens by spaces, they're individual elements in an array. Mainly useful for web compatibility IMO.
Hey, cool plugin. :) Mind if I tweet it? (Also do you want to add it to the Caddy download page? You don't have to at all, or right now -- maybe you could even help test the new automated build server when I have it ready.)
As for how to do the plugin, I'd recommend trying to make this a Caddyfile loader (linked to in my previous comment).

Ok, I will probably be generating a Caddyfile directly.
As for caddyslack, feel free to tweet about it. It works but I am somewhat not quite confident about it because it would maybe be a better idea to implement a modify-body-json plugin and combine it with redir and ratelimit.
I would love to see it on the downloadpage. Reading through the guidelines I thought it would classify as specific for a freemium service and therefore be unlikely to be accepted.

@brasilikum Fair enough -- stay tuned for the new build server which will have revised policies, may or may not affect your plugin, hopefully it does, for the better!


Abilit to specify a border with different border sides for bar charts.

Currently BarChartRodData only takes a BorderSide and the choices are a full border or no border.
I need to be able to specify a top border only.

I'm intending to work on this issue.
My approach for it is to replace borderSide  attribute with another attribute of type Border. This will give the ability to specify each side independently.
This will lead to the possibility of having non-uniform borders. This type of border works when there is no border-radius specified. In other words, the bar is rectangular in shape.
if the bar is a rounded rectangle the borders must be of type uniform borders which can be specified by Border.all() or Border.fromBorderSide().
@imaNNeo

Hi @MagdyYacoub1
You are exactly correct, do that :)
btw, Flutter does the same about the border radius and non-uniform borders, it throws an exception,
You can check their logic and do the same.


Convenience Frame.load/save methods

Implement these with FFmpeg instead of PIL (e.g. via frame.to_image().save(path)).

Just out of curiosity will this allow us to use methods such as avcodec_decode_video2 methods? Or has that already been implemented elsewhere?

@TechWhizZ199: Encoding/decoding without a container is #155. Otherwise, we do decode via that function already.

Oh I see. Thank you!

I'm not sure this ticket makes sense, it doesn't feel as though it's PyAV's job

It isn't the job, no, but I feel like it would be handy enough.
I personally have a lot of silly round-trips through Pillow just for loading and saving images. FFmpeg understands those, and we could use that machinery.
They would be pretty short methods. I just threw together this one.


Dependency updates

Please have a look at the individual commit messages for the details.

Merging despite the PipFunTest failure which was fixed separately.