Realm Missing

Hi I am trying to setup APIMan developer portal. I have built the docker image and tried running that image
I am getting the following error in my console.

Any leads will be helpful.

@msavy Can you help me on this? Thanks

Hi @AghaSaad04.

Can you explain to us what steps you already tried?
What version of apiman are you using? (quickstart will not work)
Did you changed something about your keycloak settings?

So I just cloned the repository using git clone https://github.com/apiman/apiman-developer-portal.git
and tried building docker image by running docker build ./ command in Dockerfile folder.
Then I ran docker run -p 8080:80 <image id>
After this I opened up the browser and getting this output in console

Please use the docker-compose.yml to start the developer portal. (See Readme)
The docker-compose will set some variables that are required for the developer portal to run.
You need an apiman setup with keycloak and elasticsearch as data storage for the Manager UI.
Other storages for the Manager UI are not available at the moment.

@volkflo I did try that method as well. Let me show you the configurations and output:
docker-compose.yml

When I tries to access VM-IP:8445 it redirects to http://localhost:8443/auth/realms/apiman/protocol/openid-connect/auth?client_id=devportal&redirect_uri=http%3A%2F%2Fapiman.ddns.net%3A8445%2F&state=619bf51f-403e-4ec0-a7d4-7ebabf09cf37&response_mode=fragment&response_type=code&scope=openid&nonce=713bd405-70fc-479f-b487-db7eb244dc90
and doesn't show any UI

Did you change the redirect URL in keycloak on the client devportal to match http and the changed port?

Also, check the environment variables again, I think your keycloak/apiman is not running http on port 8443?

I am unable to get any KeyCloak UI yet, so I cannot change anything from UI. So far I have only made changes in docker-compose.yml file and enabled http configs.

Did you already start/configured your setup of apiman?
The Apiman Developer Portal is an application that requires a running apiman setup with a separate running keycloak setup. It is not able to run standalone without apiman.

Ohh I thought it's a standalone application.
I did configure apiman setup earlier but it was not in running state. Now I run both the APIMan with wildfly and apiman-devportal. I am able to access KeyCloak at VM-IP/auth
I have created the client with the clientid : devportal in apiman realm and set redirect url as http:locahost:8445/* and tried to access devportal by VM-IP:8445 but it is still redirecting to http://localhost:8443/auth/realms/apiman/protocol/openid-connect/auth?client_id=devportal&redirect_uri=http%3A%2F%2Fapiman.ddns.net%3A8445%2F&state=d1457e0e-3d66-4144-831e-ae2446c83ff0&response_mode=fragment&response_type=code&scope=openid&nonce=36a7479a-b859-4e85-81da-3b460a6db946

I am a bit confuse regarding configs. In the following attachment should red box ports be same?

I have made changes in docker-config file and now it redirects to KeyCloak and ask for login credentials. After submitting the form, I am getting this CORS policy error.

@volkflo
Update:
CORS issue has been resolved. Now I am getting authorization issue once logged in.

Cool, you made some good progress.
The auth problem is related to a configuration mismatch we did not fixed yet.
There are three groups within keycloak:

They are renamed to
*API-Management-Administrators
*API-Management-Developer-Portal-Users
*API-Management-Users
Your user must be then in the API-Management-Administrators group to administrate the Developer Portal or in the API-Management-Developer-Portal-Users group to view only the user's data.
You can have a look into our default/example realm for keycloak here:
https://github.com/apiman/apiman/blob/85d0e2cf67a49b7a590ab745e05678e96d3c0a1d/distro/data/src/main/resources/data/apiman-realm-for-keycloak.json#L421-L464

@volkflo thanks for sharing the default configs.
But I dont have any groups in my KeyCloak, I just created two of them. I have added users in these groups.

Below are the available roles, I am unable to find one for the devportaluser. I have added four of them but still getting not authorized
API-Management-Administrators:

API-Management-Developer-Portal-Users:

Update:
Resolved the error by creating a new realm role and adding that for user/group.
Now I cannot see any apis here. But I have created in APIMan, logged in as an admin.
APIMan:

Developer Portal:

Cool @AghaSaad04. I fixed the bug with the broken realm this morning in the upstream. You can use the apiman file from distro/data/src/main/resources/data/apiman-realm-for-keycloak.json to create a preconfigured realm.
Regarding the problem of not seeing an API could have multiple reasons:

the backend of apiman currently must be elasticsearch it will not work with SQL DB (we working on that)
only public APIs are shown automatically
private APIs must be mapped to a user

You can have further documentation here:
https://doc.scheer-pas.com/display/APIMGMNT/Developer+Portal

Thanks @volkflo I will go through the docs you have shared. Moreover, API is publicly available.
Console is giving CORS error in API tab.

Which version of apiman are you using?
Apiman 2.0.0.Final was released before the Developer Portal was included.
At the moment you have to build apiman on your own (the next apiman release coming in a few weeks).

Yes I am using Apiman 2.0.0.Final.

You can try to build the current master branch of apiman our you could wait till we release the next version of apiman.Let us know if you need further help :)Am 03.06.21, 15:44 schrieb Agha Saad Fraz @.***>:
Yes I am using Apiman 2.0.0.Final.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

For now I will try building the master branch and will use the new release afterwards. I am closing this issue for now. will reopen or create a new one if I further need help. Thanks a lot for the quick and detailed responses.


Changing collision in external tileset resource isn't visible until resource is saved

Godot version:
3.2-beta
OS/device including version:
Debian bullseye/sid
Issue description:
Could be related to #27833. Changing collisions in a linked tileset doesn't mark it as "dirty" apparently, it's not saved on scene save and the changes are not visible in the game until you save the resource manually. Even worse, after making modifications you can close the editor and it won't warn you about unsaved changes so it's easy to lose your work. The collisions are updated correctly if the resource is embedded into the scene though.
Steps to reproduce:

Enable "Visible Collision Shapes" in editor.
Run the scene and observer the collision shape.
Edit the collision in the tileset to become a square.
Run the scene again and observe no changes.
Open the tileset and save the resource.
Upon running the scene you should see the changes applied.
Try to edit the collision shape, save the scene and close the editor.
Expect a warning about unsaved changes in resource but there's none and after reopening your project the changes to the collision will be lost.
You can also trigger the resource autosave by adding more tiles, changing occlusion or navigation shapes.
Remove the resource path in inspector thus making it embedded.
Try to change the collisions, now they are applied immediately.

 In https://github.com/godotengine/godot/blob/719254ae0d4e1b7c9be36a4399809caf270d7e86/editor/editor_node.cpp#L1127 we only handle objects and skip arrays and dictionaries. Other polygonal properties (like occlusion and navigation) in TileSet can only have one instance, if you add another shape it replaces the existing one. In the similar function https://github.com/godotengine/godot/blob/719254ae0d4e1b7c9be36a4399809caf270d7e86/editor/editor_node.cpp#L941 all those types are handled properly so explicit saving works fine.

Probably this should also be closed as #33764. The scene can't be loaded in Godot 4 (current master), the editor complaints it's "invalid/corrupt" and it seems that resources are saved automatically now anyway.


Angular5 support

I assume you have it on your plate to fix up package.json to support Angular 5?

We do. There's some minor things we need to fix first, will get to it first thing this week.

hope to see this implemented soon! :smiley:

Are there any news?

I'm running fine on Angular v5 (only installation warnings), but gets errors with firebase 4.6+ (needs 4.5)

No more peer deps warnings thanks to the hard work of @jamesdaniels!


Documentation for v0.2.x

related #4

Codecov Report

Merging #17 (2ce89f4) into master (1385e4b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #17   +/-   ##
=======================================
  Coverage   97.35%   97.35%
=======================================
  Files          25       25
  Lines         492      492
  Branches      118      118
=======================================
  Hits          479      479
  Misses          2        2
  Partials       11       11

Continue to review full report at Codecov.

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


lp-149 Tiltfile required to run local image

JIRA: https://companieshouse.atlassian.net/browse/LP-149
Added tiltfile based on what we have for the oe api.

Not required so will close this PR.


Int to Words with tests

Changes Unknown when pulling<PHONE_NUMBER>38b61fa221bfc55ad7d7dee34bfa64 on beautiousmax:develop into ** on cdgriffith:develop**.

Changes Unknown when pulling 1dbd242ca0f0c95e7e79633e973c1ab8496148d3 on beautiousmax:develop into ** on cdgriffith:develop**.

Changes Unknown when pulling 1305ac15de531d64a28abe3e86b6941d00cda6de on beautiousmax:develop into ** on cdgriffith:develop**.

Don't forget to update changelog as well

Coverage increased (+0.09%) to 97.592% when pulling<PHONE_NUMBER>40986d4b82d9793c91f81616b5f56c on beautiousmax:develop into d6966cdb38be57093e945fcf702dffac02a0f42e on cdgriffith:develop.

Coverage increased (+0.1%) to 97.652% when pulling d21d3167de1585b7137000c4203191f80c27f5f4 on beautiousmax:develop into d6966cdb38be57093e945fcf702dffac02a0f42e on cdgriffith:develop.

Coverage increased (+0.1%) to 97.65% when pulling 5443fe8cd5d107c4a44bc0a7c78c49d2bf727c95 on beautiousmax:develop into d6966cdb38be57093e945fcf702dffac02a0f42e on cdgriffith:develop.


Create official Docker Hub image

Provide official Docker images via automated builds on Docker Hub. This adds another distribution method for PhantomJS.
https://docs.docker.com/docker-hub/official_repos/

It would be nice, but right now our (small) team does not have extra bandwidth to do this + maintain it.


feat: separate database per contract

https://github.com/kriszyp/lmdb-js#dbopendbdatabase-stringnamestring
Currently the cache in lmdb is organized in a flat structure - contractTxId|sortKey.
It would be better to open a separate database per contract - or keep each contract in a separate file/"root" database

I made a simple benchmark and it turns out that:

There's no API for getting all databases in env, we'd have to store contract ids in a separate database
Many dbs are consume 20x more space, e.g. 100k contracts single db takes 18MB, many 400MB
It takes 4x longer to insert in to manydbs, eg. many dbs 0.2ms, single db 0.05ms

All tests are with only one interaction per contract (each db contained 1 element)


Add primary category field to post api data

The Primary Category field in the Categories selection block for posts is added by Yoast. Its value isn't included in API data by default. Need to register a API field for posts that will add a primary_category prop to post API data.
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/
Yoast provides WPSEO_Primary_Term function to look up a primary term from a given taxonomy for a post.

Looks like the Yoast GraphQL plugin adds a isPrimary flag to post category edges (https://github.com/ashhitch/wp-graphql-yoast-seo#edge-and-page-info-data). Should be able to use this to show the correct primary category for a story. Closing this issue here. Will add ticket in frontend repo to include use of this property.

After working with the isPrimary property, it became necessary to only want to query for categories with isPrimary = true, which Yoast doesn't add to the schema. In my efforts to add this filter argument, it became evident to be easier to add the primary term to the post as a field directly. Reopening this for incoming PR.


[metrics] Add health check endpoint, setup metrics server earlier

Start the metrics server earlier so we can collect metrics even if
startup takes a long time.
Add /-/healthy endpoint to use for healthchecks. For now it always
returns 200.

@bors-libra r=davidiw

:pushpin: Commit 59072d1 has been approved by davidiw

:hourglass: Testing commit 59072d1fbef57744d87bf036c5f78f62637ee9e5 with merge 3a5ffeb92d65ca0bc29b2fcb4bf133ea0b98e809...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: davidiw
Pushing 3a5ffeb92d65ca0bc29b2fcb4bf133ea0b98e809 to master...


Adding a new document

Hello,
I'm implementing a simple chat using firestore, and I need a pagination. and this library sounds amazing, it handles loaders, pagination, search, all the stuff. Thanks!
However, I want to add a new document to the collection. the new document is not appended to the list view but it's added in the collection in firestore. and it works if I refresh the listview.
Is there any good way to add elements without refreshing the list?

Sorry! refreshing the listview is the solution for now. But it can done when streaming is implemented.

Thanks @excogitatr , I'm closing in favor of #1


Implement dynamic linking feature

The Bevy game engine has a nice dynamic linking features which, coupled with the lld linker, significantly improves compile times.
I have added this to iced for faster compiling iterations (down to about 2.3 from 3.8 for a personal project) . What do you think?
Relevant issue: #849

Awesome!
Just out of curiosity, does this have any runtime performance degradation?
This just curious as how to best use this, should this feature only be enabled in the project's Cargo.toml for development compile to speed up dev speed, and then static compile for prod?

Just out of curiosity, does this have any runtime performance degradation?
This just curious as how to best use this, should this feature only be enabled in the project's Cargo.toml for development compile to speed up dev speed, and then static compile for prod?

Probably not? Bevy says it's better to be used for development, but I don't think there should be much runtime overhead. The only thing it might effect is the program's start-up time while it tries to search for one extra shared library (on top of all the other shared libraries it already has to find). Either way, if the dynamic feature is used for release builds, the shared binary would have to be packaged with the executable so it's probably not desirable.
I usually just use it in the cli as cargo run --features iced/dynamic

I copied the tour of iced example to a separate folder and pointed the iced dependency to my fork to do some testing.
I am getting consistently about 1-2 second higher for static linking.
// Static Compilation:			3.02s, 3.48s, 2.69s, 2.33s, 2.74, 2.80s, 2.17s, 2.15s, 2.17s, 2.68s, 2.81s, 3.09s
// Dynamic Compilation (no lld):	1.50s, 1.47s, 2.06s, 1.38s, 1.97s, 1.40s, 1.45, 1.95s, 1.99s, 1.36s, 1.51s, 1.99s
// Dynamic Compilation (with lld):	1.47s, 1.40s, 1.48s, 1.39s, 1.42s, 1.42s, 1.43s, 1.98s, 1.41s, 2.02s, 1.42s, 1.39s

I kinda expected lld to improve times a bit more, but there could be other reasons that the times are similar.

How are you timing with the compile times, (and what OS)?
I am interested in testing the compile times with my project that is much larger than the tour example.

How are you timing the compile times, (and what OS)?
I am interested in testing the compile times with my project that is much larger than the tour example.

I'm using NixOS (with this flake.nix). To run each test, I modify the main.rs file a bit to trigger an iterative recompile and then note down the output time of cargo run. I'm not sure if there is a built-in way to do this though...

Ok cool!
I'll give it a try later today

Oh wow. The effects of dynamic linking seems to have a greater effect on bigger projects.
I have a ~9k line project that I tested your PR on

Static Linking
9.25s

Dynamic Linking
5.32s

:+1: :+1: Great job!

To do that wouldn't you need to duplicate use statements for each file that uses iced? Also, iced would still need a folder with a Cargo.toml enabling dylib for the user to include (which would itself include iced as a dependency).
Also, having people configure the dynamic linking themselves might put off people who are new to rust. The first time I used iced, I was annoyed by how long it took to recompile small changes. (>10 seconds sometimes!). If you are worried about dependency messiness, iced could do something like what Bevy does and move all the modules into a crates folder which would shorten the workspace list:
[workspace]
members = ["crates/*", "examples/*"]

I agree with zyan, if possible manually configuring dynamic linking should be avoided, for both newbies and lazy people :grinning: :point_left:

It's necessary because the iced crate needs to be able to easily switch between the static version of a Cargo.toml and a dynamic version of a Cargo.toml (with crate-type = ["dylib"]) features don't allow for this kind of thing AFAIK so the only way to do it is to have an internal crate and a dynamic crate that aliases the internal crate but with dylib compilation.
bevy does the same thing with the main Cargo.toml (and src/lib.rs) simply exporting internal crates (including bevy_internal and bevy_dynamic) based on feature flags.

Is there a rust issue for this? This seems like something Cargo should support.

When I investigated how Bevy's dynamic linking worked, it seems like it was a neat trick based on how Cargo handles dependency linkage.
Rust Reference

If an executable is being produced and the -C prefer-dynamic flag is not specified, then dependencies are first attempted to be found in the rlib format. If some dependencies are not available in an rlib format, then dynamic linking is attempted (see below).

If a dynamic library or an executable that is being dynamically linked is being produced, then the compiler will attempt to reconcile the available dependencies in either the rlib or dylib format to create a final product.

A major goal of the compiler is to ensure that a library never appears more than once in any artifact. For example, if dynamic libraries B and C were each statically linked to library A, then a crate could not link to B and C together because there would be two copies of A. The compiler allows mixing the rlib and dylib formats, but this restriction must be satisfied.
The compiler currently implements no method of hinting what format a library should be linked with. When dynamically linking, the compiler will attempt to maximize dynamic dependencies while still allowing some dependencies to be linked in via an rlib.
For most situations, having all libraries available as a dylib is recommended if dynamically linking. For other situations, the compiler will emit a warning if it is unable to determine which formats to link each library with.

Dynamic linking will probably be a lot easier once the Rust ABI gets stabilized, but who knows when that will happen...

I am getting a lot of linking errors when trying to compile a project of mine using this new feature:
[...]

 "core::fmt::ArgumentV1::new::h99acd15b0d810580", referenced from:
                hyper::proto::h2::client::handshake::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h66050cc4f757c305 in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.0.rcgu.o)
                _$LT$hyper..proto..h2..client..ClientTask$LT$B$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hd336b96c90d51f4d in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.0.rcgu.o)
                _$LT$hyper..proto..h2..client..ClientTask$LT$B$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h1a51a433330ee9cc in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.0.rcgu.o)
            "_$LT$hyper..proto..h1..dispatch..Client$LT$B$GT$$u20$as$u20$hyper..proto..h1..dispatch..Dispatch$GT$::poll_msg::CALLSITE::hc47fe63017ec44b1", referenced from:
                _$LT$hyper..proto..h1..dispatch..Client$LT$B$GT$$u20$as$u20$hyper..proto..h1..dispatch..Dispatch$GT$::poll_msg::h317a453411800ae0 in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.6.rcgu.o)

ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Also, I think I've been able to build the dynamic linking completely on top of the current iced crate, as I explained in https://github.com/hecrj/iced/pull/867#issuecomment-835037346. Check out the feature/dynamic-linking branch. You can see the changes here: https://github.com/hecrj/iced/compare/master...feature/dynamic-linking
Unfortunately, it produces the same linking errors I mentioned in https://github.com/hecrj/iced/pull/867#issuecomment-853833543.

I am getting a lot of linking errors when trying to compile a project of mine using this new feature:
[...]

 "core::fmt::ArgumentV1::new::h99acd15b0d810580", referenced from:
                hyper::proto::h2::client::handshake::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h66050cc4f757c305 in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.0.rcgu.o)
                _$LT$hyper..proto..h2..client..ClientTask$LT$B$GT$$u20$as$u20$core..future..future..Future$GT$::poll::hd336b96c90d51f4d in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.0.rcgu.o)
                _$LT$hyper..proto..h2..client..ClientTask$LT$B$GT$$u20$as$u20$core..future..future..Future$GT$::poll::_$u7b$$u7b$closure$u7d$$u7d$::h1a51a433330ee9cc in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.0.rcgu.o)
            "_$LT$hyper..proto..h1..dispatch..Client$LT$B$GT$$u20$as$u20$hyper..proto..h1..dispatch..Dispatch$GT$::poll_msg::CALLSITE::hc47fe63017ec44b1", referenced from:
                _$LT$hyper..proto..h1..dispatch..Client$LT$B$GT$$u20$as$u20$hyper..proto..h1..dispatch..Dispatch$GT$::poll_msg::h317a453411800ae0 in libreqwest-0cd9e7c87c592796.rlib(reqwest-0cd9e7c87c592796.reqwest.239vdzex-cgu.6.rcgu.o)

ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am also getting these linker errors... I tried using Rust's linker, gold, lld and all of them give linker errors.

Also, I think I've been able to implement the dynamic linking feature completely on top of the current iced crate, as I explained in #867 (comment). Check out the feature/dynamic-linking branch. You can see the changes here: master...feature/dynamic-linking

I got your pull request working with one of the examples by changing
iced = { path = "../.." features = ["canvas", "tokio", "debug"] }

to
iced = { path = "../../dynamic", package="iced_dynamic", features = ["canvas", "tokio", "debug"] }

which seems to be a fine way to do it (you could put one in dependencies and one in dev-dependencies and it should work fine)

Unfortunately, it produces the same linking errors I mentioned in #867 (comment).

I'm using rust nightly on NixOS with a custom wrapped lld linker so maybe my linker is configured differently? What OS/setup do you have?
my flake.nix file: https://github.com/zyansheep/Grasslandia/blob/main/flake.nix

I am getting a lot of linking errors when trying to compile a project of mine using this new feature:
do you think you could try to compile bevy with the --features dynamic flag to see if you get the same error?

@zyansheep I tried compiling Bevy with the dynamic feature and it compiled just fine.
I believe the issue here may be related to using async. CI is also failing with weird errors...
I'm closing this for now, but feel free to reopen it if you make any progress towards figuring out the cause of these issues.


110-Balanced-Binary-Tree.java

Betterway to solve the problem using the approach from Diameter of a Binary Tree Solution

File(s) Modified: 0001-two-sum.py, 0002-add-two-numbers.py, etc...
Language(s) Used: python, javascript, etc...
Submission URL: _https://leetcode.com/problems/[problem-name]/submissions/xxxxxxxxx/_

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

Hello, thanks for your contribution. Some pointers to help you out:
This solution already exists, see here . The filenames are named using the guidelines, so problem 71 is called with 0071-balanced-binary-tree.java.
If you think the code is wrong/ can be better / is not coded as in the video / you want to add another way of solving the problem, you are more than welcome to contribute.
But please, follow the contribution guidelines, you can see those here. Use the filenaming convention and provide your Leetcode submission URL when creating a Pull request.
Thanks!


[rng_bits] Building floats with less intense usage of RNG

Functions to fetch required number of bits from RNG and to create
random chains of 0s and 1s to build random floats.
Small corrections in the definition (some names of macros replaced
with common pattern, e.g. FP16 -> FLOAT16).

I'm still not convinced that this will result in a better distribution of values.
I think this needs top be run through some deep analysis of the values created to determine if this is an improvement or a drop in FP dataspace coverage.  I also think this needs to go through the SDE cluster to check the impact on existing testing.


Make knownWarnings db-specific

done
also added support for defs of app-specific warnings in conf file


dataset history error when use cmd 'swcli dataset history DATASET'

Describe the bug
error log:

To Reproduce

Expected behavior

Environment

fixed by https://github.com/star-whale/starwhale/pull/1242


add reference to boron dataset info button

fretrieved from data-raw readme:
tags$a("Canadian Council of Ministers of the Environment. 2009. Canadian water quality guidelines for the protection of aquatic life: Boron. In: Canadian  environmental  quality guidelines, 2009, Canadian Council of  Ministers of the Environment, Winnipeg.", href = "http://ceqg-rcqe.ccme.ca/download/en/324/"))

done


RabbitMQ Tutorial implementation examples

In addition to the tutorials in the readme, it occured to me that it might be a good idea to also have the Bunny implementations from the official RabbitMQ PHP tutorials http://www.rabbitmq.com/tutorials/ so developers have reference material:

[X] Hello World
[X] Work Queues
[X] Publish/Subscribe
[X] Routing
[X] Topics
[X] RPC
[X] Readme's

All examples are implemented, and readme's added to all directories


Support Webflux

Expected Behavior

We strongly request the addition of webflux support, as we are an authentication center that interfaces with many clients and each client has many users. And OAuth2 Server doesn't have many endpoints either
Current Behavior

Context

Closing as duplicate of gh-418.


Script to import mcux sdk

New versions of the mcux sdk need to be imported whenever a new nxp soc is added to zephyr, or when nxp releases updated mcux drivers for an existing soc. Create a script to automate importing the mcux sdk into zephyr.

Fixed by #8923


Web component: Masthead-With custom data - Product & solution Service & consulting - Accessibility Checker issue.

Detailed description
Issue:
The element with "listitem" role is not contained in or owned by an element with one of the following WAI-ARIA roles: "list, group"
Expected:
If it supposed to be a list then, role=list item should have appropriate parent role.
Or
If it not supposed to be a list remove the role attribute.
Example:- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/List_role
Additional information

Hey @Praveen-sr, would you please check if the update to the Masthead items fix this issue?

@BrunnoM7 Re tested this on Web components, working as expected now.


I have a question that when I set predict box and groudth  box as same,why  lamr is 0.5?I think it is wrong

Good question, can you please try it on matlab an see if you also get 0.5?


Feature: Missing BackToTop Button in Events Page | Missing ProgressBar in Badges, Events, Learn and Compare Pages

Is your feature request related to a problem? Please describe.
Yes, Fixes are as Folows :-

Missing B2T in Learn Page.
Missing ProgressBar in Badges, Events, Learn and Compare Pages.

Describe the solution you'd like
https://github.com/user-attachments/assets/485cb5b7-f57f-4aa3-9780-f36fd07b3568

@sanjay-kv sir, again you have forgot to add gssoc labels to my PR


Update README.rst

easier command for spatially-enabling database for new PostgreSQL installs.

No action on this; closing.


UWP Migrations:Could not load type 'Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionExtensions'

Exception Message:
Add-Migration MyFirstMigration
System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionExtensions' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.AddOptions(IServiceCollection services)
at Microsoft.EntityFrameworkCore.Design.Internal.StartupInvoker.ConfigureHostServices(IServiceCollection services)
at Microsoft.EntityFrameworkCore.Design.Internal.StartupInvoker.ConfigureServices()
at Microsoft.EntityFrameworkCore.Design.DbContextOperations..ctor(ILoggerProvider loggerProvider, Assembly assembly, Assembly startupAssembly, String environment, String contentRootPath)
at Microsoft.EntityFrameworkCore.Design.MigrationsOperations..ctor(ILoggerProvider loggerProvider, Assembly assembly, AssemblyLoader startupAssemblyLoader, Assembly startupAssembly, String environment, String projectDir, String contentRootPath, String rootNamespace)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.<>c__DisplayClass5_0.<.ctor>b__5()
at Microsoft.EntityFrameworkCore.Internal.LazyRef1.get_Value()    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_1.<.ctor>b__0()    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_01.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Could not load type 'Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionExtensions' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
EF Core Version:
Microsoft.EntityFrameworkCore.Sqlite: 1.0.0
Microsoft.EntityFrameworkCore.Tools: 1.0.0-preview2-final
Operating system:
Windows 10 x64
Visual Studio version:
VS 2015 Update 3
Followed Below Link:
https://docs.efproject.net/en/latest/platforms/uwp/getting-started.html

This was a breaking change from RC2 to RTM. See https://github.com/aspnet/Announcements/issues/187. This error is generally caused by mixing pre-release preview1/1.0.0-rc2 and preview2/1.0.0 (RTM) packages. Can you share the full project.json file?

Triage: going ahead and closing as the symptoms are really typical of package mismatches, but feel free to respond with the information @natemcmaster asked for in case we can help.

@natemcmaster Find below Package.Json
{
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
"Microsoft.ApplicationInsights": "2.1.0",
"Microsoft.ApplicationInsights.PersistenceChannel": "1.2.3",
"Microsoft.ApplicationInsights.WindowsApps": "1.1.1",
"Microsoft.EntityFrameworkCore.Sqlite": "1.0.0",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}

Remove EntityFramework.Commands. It's the package bringing in the old version of DependencyInjection. Commands was deprecated and replaced by the .Tools package.

@natemcmaster  if i do so and run migration command i received an error.
PM> Add-Migration MyFirstMigration
Build failed.

@utpal-patel Is your issue resolve when you fix your build errors? If removing EntityFramework.Commands causes build errors, chances are good you need to update APIs. RC1 to RC2 was a major change and will break most APIs. See  https://docs.efproject.net/en/latest/miscellaneous/rc1-rc2-upgrade.html


Bundle of fixes (main)

All tests passed.
Have to add a test for the commit containing (TEST THIS) in the commit message.

After some discussion, we've decided to drop the commit containing (TEST THIS).
Original work can be found here: https://github.com/korydraughn/irods_rule_engine_plugin_logical_quotas/tree/return_violation_on_matching_total_max_data_size.m

Can we walk up the tree as-is, and then, if a permission error is hit, switch to adminFlag?   So we get speed for normal cases, and then have a silent, successful fallback for the scenario you describe?

That is possible. Just need to determine if that's a simple/quick tweak or not.

It's a complex / not-obvious scenario.   So, it can wait if there are other things, I think.

Not a blocker for sure. It was something that crossed my mind. I'll put it in an issue so it's not lost.
You agree with the additional wording in the README?

You agree with the additional wording in the README?

Sure.   This is good - and helps people think about ramifications of alternate approaches.

All tests passed.
Squashing.

Squashed.

Merging.


updates for v1.27.3

Signed-off-by: Tom Zhang<EMAIL_ADDRESS>

Looks good if release_notes: v1_27_3 is valid.

confirmed from doc squad that v1_27_3 is valid.


sdcard: autotx fix bit in wrong position

Mirrors x16emu fix here: https://github.com/X16Community/x16-emulator/pull/241

Awesome, thanks!


Videos are saved to default folder

Hi,
It seems videos are saved to default folder "video_output" regardless of config value. However. Available Videos correctly display videos in folder specified in config.

@LazyPotato I will try and look at this later today or tomorrow.

@LazyPotato I am still looking into this. I notice the same thing as you (Videos are saved to the video_output directory as well as the directory mentioned in the config file).
Are you seeing this on a machine that is a node + hub? Or on a machine that is only a node?
Thanks.

@smccarthy,
seems that nodes save videos to the correct folder (defined in config, for example, "video_output_custom"), but hub stores them in default ("video_output"). Thus, for node + hub, two directories are created: "video_output_custom"  and "video_output". Maybe i'm missing some parameters in config?

Hi @LazyPotato , I think you can not change where the videos are saved on the hub. There is a feature in SeleniumGridExtras, that transfers the videos from the node to the hub. As of right now, the hub can not change the default directory (it is set to video_output).
You aren't missing anything in the config. I don't believe there is a custom directory for the hub. Maybe the hub directory should be the same as the node directory (from the config)?

Hi, @smccarthy
I'm pretty sure it is possible to set custom directory for the hub. Looking deeper in the source code i can see that folder is set to default in downloadVideoFromUri method of HttpUtility.java class at this point
if (RuntimeConfig.getConfig() != null) {
           destinationDir = RuntimeConfig.getConfig().getVideoRecording().getOutputDir();
       } else {
           destinationDir = new File(DefaultConfig.VIDEO_OUTPUT_DIRECTORY);
       }

So the problem is in RuntimeConfig.getConfig() which returns null. Correct me if i am wrong.


Add Token Usage Reporting Feature + Default formatting using ruff + Documentation Updates

This fixes the following:

#16

Token Usage Information
--token-usage / -tu flags have been added. When specified, it prints detailed token usage, including:
- Completion tokens
- Prompt tokens
- Total tokens
- Timing information (completion time, prompt time, queue time, total time)
All of this information is printed in green to stderr.

VSCode Formatting with Ruff
I love to look at clean code 🤣 so I thought I'd add this here so that it is easier for you to scale this project in the future as well.

It is basically automatic formatting using ruff, a linter, to ensure consistency across all Python files. This is the reason you will notice several formatting changes in the codebase, such as adjusted indentations, line breaks, and spacing.
The code will now be automatically formatted every time it is saved in VSCode. This improves maintainability and code readability while reducing human error during formatting.
The default configuration for ruff has been added to the project (/vscode/settings.json), ensuring all contributors maintain the same formatting standards.

Documentation Updates

The README.md file has been updated to include instructions on the new --token-usage / -tu flag.

Most importantly ....
I noticed something was wrong with your spinner. Every time something was printed to the console, the spinner reloaded repeatedly, as shown in the screenshot below:

The issue occurred because each time a chunk of content was printed, it disrupted the spinner. To fix this, I changed the way content is handled by removing the live printing inside the loop and instead concatenating the content into a single string. Once the content is fully received, it's processed or printed all at once, avoiding interference with the spinner.
🟠 Before: Each chunk was printed immediately within the loop, causing the spinner to reload.
if chunk_content:
    if output is None:
        print(chunk_content, end="")
    else:
        content += chunk_content

🟢 After: Now, the content is stored in a variable and printed once at the end, preventing spinner interruptions.
if chunk_content:
    content += chunk_content

This ensures smoother spinner behavior and avoids the repeated reloads caused by frequent console prints.

I have tested the changes and its working as expected.


BuiltIn Metrics

Wanted to get stuff out there so we could use this for discussion.
Currently I'm thinking of introducing a new metric type ( MetricBuiltIn ) to facilitate our ability to include metrics out of the box.
This will eventually expand to:

include a prometheus deployment
include built in metrics

these are ultimately prometheus metrics, but allow for generating the prometheus server url and inject additional metadata ( label selectors, query ranges, etc )

incorporate the built in metrics automatically as part of a trial run

The workflow would be something like:

experiment gets created
prometheus server and kube state metrics get deployed alongside experiment
during trial run, prometheus server scrapes cadvisor and kube state metrics
after trial run, user provided metrics and builtin metrics are evaluated
profit(?)

In general I don't think we should add a new metric type for this, I think we should just make the existing Prometheus type smarter about defaulting to our Prometheus server and the using nested templates (or template functions) to generate the more complex PromQL queries.

Breaking out a couple of the changes to #158 #159 . Will rebase after those land.


[Bug] Get Function("run") runned in std::thread ,the thread would not exit correctly

Expected behavior
i want it run in std::thread to do a job, and  exit correctly.but faild.
Actual behavior
when the thread exit,it will throw a exception called urctbase.pdb not loaded.
Environment
vs 2019 and vs2022 happended the same thing.
cuda 10.1
i tried tvm v0.10.0 and v0.11.0
Steps to reproduce
 void test(){
    myTvmClass tvm;
   tvm.loadModule();
cv::Mat image = cv::imread(path);
tvm.run(image);

}
int main(){
std::thread(test).join();
return 0;
}

the error message is:
Exception thrown at 0x00007FFA40B0039C in tvmThreadTest.exe: Microsoft C++ exception: tvm::runtime::InternalError at memory location 0x000000EF98FFF960.
Unhandled exception at 0x00007FFA4109F61E (ucrtbase.dll) in tvmThreadTest.exe: Fatal program exit requested.

This doesn't sound like a TVM's problem.

yes,this is a tvm's problem. i used the debug tvm_runtime.dll. and when i finished the thread, it would be crashed in "~WorkspacePool()" at the line number 146 "array_[i]->Release(dev, device_);"
because time is urgent，i am diable this line now. and the project is running well.


help understanding TRUN special char overflow

I am a student using vulnserver to learn BO. It seems TRUN only overflows when prepending the fuzz with a special char. I cannot find any explanation why, just folks saying OH USE SPIKE FUZZER!
If I sent this  it does not overflow.
payload = "TRUN "
payload += "A" * 10000
If I sent this it does overflow
payload = "TRUN ."
payload += "A" * 10000
Could you help me understand this or point me in the right direction?
Thanks!!!

Often when exploiting a vulnerable service, you need to ensure that you provide input that ensures that a code path to the location of vulnerable code is taken.  So... what do you see when you look here...
https://github.com/stephenbradshaw/vulnserver/blob/master/vulnserver.c#L208

Closing due to no updates for a while.


update packages

Update to Angular 8 and NGRX 8

@itprodavets Why do you disappoint the pull request?


Invert NO_MULTIPROCESSING flag

Hi, may I ask what is the purpose of this change?

Certainly!  It's confusing to maintain booleans that are described as a negative.  So instead of not_found = True it usually makes more sense to use found = False.  In a way of thinking, it folds the constant NOT_ into the boolean the variable contains, simplifying the expressions.  In this case, it removes the somewhat confusing if not NO_MULTIPROCESSING:.

Thanks.Agree that it is ncer. I am very concerned though that this cosmetic change breaks  backwards compatibility so I would rather not merge it in.

How's that?

Actually, thinking about it... It is an internal param so no back-compatibility is needed. Will merge on Sunday without the last commit. Thanks!

Thanks for the PR!
Merged and squashed in https://github.com/RaRe-Technologies/smart_open/commit/cde325845886a5eec6547a89c5dbf829964fb1a7


Fix: redirect away from login if already logged in

@timothyej can you check this?  Thanks!
To test:

Build the distribution with grunt dist

Copy the distribution to a sample project, such as express-stormpath-angular-sample-project

In your project, assert the following:

When not logged in, you can navigate to the /login page and login
When logged in, you cannot navigate to the /login page

Thanks!

:+1:


No logs being generated in case of a masakari service failure

While setting up and running Masakari for the first time. Instance monitor failed to start without generating any log files. Running python files for the particular service directly from the code throws out errors on console. There should be a way where such errors are reported directly in instancemonitor.log file even if the service is failing to start.
service masakari-instancemonitor start
Starting masakari-instancemonitor:  *
service masakari-instancemonitor status
* masakari-instancemonitor is not running
python /opt/masakari/instancemonitor/masakari_instancemonitor.py
Traceback (most recent call last):
  File "/opt/masakari/instancemonitor/masakari_instancemonitor.py", line 29, in <module>
    import libvirt_eventfilter as evf
  File "/opt/masakari/instancemonitor/libvirt_eventfilter.py", line 29, in <module>
    from libvirt_callback import *
  File "/opt/masakari/instancemonitor/libvirt_callback.py", line 223, in <module>
    from httplib2 import Http
ImportError: No module named httplib2

pip install httplib2
service masakari-instancemonitor start
Result: SUCCESS
* masakari-instancemonitor is running

@MoizArif thank you.
I think we have to fix,
(1) loging
(2) change the rule file to install requirment.txt before setup


fix: move condition definition to own mode

Declared a new mode for definitions of conditions, and their parameters and types.
Following is now valid;
model
    schema 1.1
type list
type map

Description

Moved condition definition to own mode
Specified shared tokens for all modes at head of Lexer
Overrode types in conditions to reduce need to rewrite parser logic to deal with new token types
Updated 4 tests because their type suggestion order had now changed (least impactful I could be)
Automatic linting of both tests and antlr4 files
Added a small test

References

Review Checklist

[ ] I have clicked on "allow edits by maintainers".
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[ ] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected

@d-jeffery, this replaces #109 right? Can we close that?
And do you think we can redo #104 after we merged the changes in this PR?

@d-jeffery, this replaces #109 right? Can we close that?

Yes!

And do you think we can redo #104 after we merged the changes in this PR?

Sounds good.


Cop Ideas Enforce/Disallow &method

Ruby has a syntax which allows the an iterator to pass an object to method as an argument using &method. There are reason in which you might want to use this syntax and instances in which you might not want to use this syntax. It would be nice if RuboCop could help enforce some standards around this. If possible, we would like to have a configuration to disallow &method and a configuration that would enforce it. This is similar to Style/SymbolProc so I don't know if it should be part of that cop or a different cop.

See #3826 for a discussion on this syntax.
See https://andrewjgrimm.wordpress.com/2011/10/03/in-ruby-method-passes-you/ for information on how &method works.
See http://stackoverflow.com/questions/6976629/is-the-methodmethod-name-idiom-bad-for-perfomance-in-ruby for information on performance

That would be a useful cop. I definitely would keep it separate from SymbolProc.

Dear future readers who land here from a google search 😸 ...
This can now be enforced with the rubocop-performance gem: https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemethodobjectasblock


Show summary tooltip on merge footer

Show on:hover an analytic summary of the opperation you're about to do.
e.g: you're going to 'operation_type' the 'dataset_name' dataset with 'column_name'

so this is basically the idea. Would need some help with the texts, but this will show when hovering the puzzle piece:

we should revisit those texts... @javierarce

Sure!

Maybe @brittanymicek could help us here

You are merging actor_displayname column with pob_00_002 column
You’re merging actor_displayname column with pob_00_002
Merging actor_displayname column with pob_00_002 column
Merge actor_displayname column with pob_00_002 column [this one is my
favorite]
On Thu, Aug 13, 2015 at 12:39 PM, josecruz<EMAIL_ADDRESS>wrote:

Maybe @brittanymicek https://github.com/brittanymicek could help us here
—
Reply to this email directly or view it on GitHub
https://github.com/CartoDB/cartodb/issues/4647#issuecomment-130753426.

--
Brittany Micek
Content Writer
CartoDB—Map Your World's Data
143 Roebling St 2A, New York, 11211, USA
T: + <%2B34695497365>19174633232
W: www.cartodb.com
Live sessions to learn CartoDB http://cartodb.com/webinars/

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


Rename to pytest-messenger

Rename pytest-slack to pytest-messenger
and add support for :
Telegram and Discord

Done


Rename project to avoid confusion with recursion schemes

Catamorph included, we have three projects that can be confused for recursion scheme projects:

Mu (not a recursion scheme project, but Mu is used as fixed point type in recursion schemes)
Catamorph (not a recursion scheme project, but a catamorphism is a recursion scheme for a basic structured fold)
Droste (this is actually supposed to be about recursion schemes 😄)

I'd like to avoid confusion with the Higher Kindness projects, so I'd suggest we rename this project to "compendium", which means "a collection of concise but detailed information about a particular subject, especially in a book or other publication."

Mu being a greek letter, it's hard to only associate it with recursion schemes.  It's mu for the micro microservices, so I think we shouldn't change that one.
Regarding catamorph, I liked the name, and the idea of having a bunch of *morph projects, but I have received the complaint from enough people already, I agree in changing the name.
I like compendium as well :)

The naming for the Mu project is very reasonable. I just wanted to point out that it does have a recursion scheme connotation.

+1 compendium

I'm going to go ahead and rename the repo!


Generate multiple Border Wallets

“Ability to generate multiple wallets without uninstalling the app”.

The tile saying “Add Lighting Wallet” changes back to just “Add account/ wallet”
The user has two option here - Lightning Wallet and new Border Wallet
Lightning follows the existing process
Border wallet follows the same steps as for Border wallet creation when app starts. The new mnemonic is saved in the account structure as a new wallet - similar to Keeper when a wallet is imported. Also this is in the App Image.
The Check backup health is now a setting item and follows the same process as for the Backed up with Border Wallet piece.

https://xd.adobe.com/view/e7fe32c6-047a-42b3-b3fe-fe92b4d9e11b-b2ad/screen/7db2609e-3975-4e94-8826-24486977e36b/

Resolved


Not able to use "Add tools" to add tools that require oauth credential flow (outlook, notion tool)

Electron build used -  08213a013cc
Make sure that you have not authenticated with outlook tool  already and you  dont have outlook.mail.manage credential.
Steps to reproduce the problem:

Chat with default assistant by going to chat
Use "Add tool" to add OutlookMail tool.
After this , notice that the chat gets stuck in "Loading your assistant..." page forever.

I see the following error message in console:
[98144:0812/134114.193114:ERROR:shared_image_manager.cc(223)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.

Note - I was able to get Add tool to OutlookMail tool successfully when we are already authenticated with outlook tool  and have outlook.mail.manage credential.
Also I was able to go thru the outlook mail authentication process successfully when I chat with an assistant that has the outlook tool added to it.

Reassigning to @njhale since he is working on this

This issue is not seen when testing desktop with commit id -1eeb6f0161e


Can you add select list and toggle elements?

Can you add select list and toggle elements?

I think I saw another plugin doing this. Maybe with Roels?
https://apex.world/ords/f?p=100:710:13058905949542::::P710_PLG_ID:NL.APEXCONSULTING.IG_EXTEND_TOOLBAR


Add mock journal entries

imma let IANEEN do this because he knows what should go into each journal entry better than the rest of this

This ticket blocks the calendar view and previous journal entry tickets


Restore missing home page content

closes #213

Figured it out @jordangov! Any layout type can have the hero banner stuff that used to be home page only. The home page layout no longer supports additional content


[SPARK-33434][PYTHON][DOCS] Added RuntimeConfig to PySpark docs

What changes were proposed in this pull request?
Documentation for SparkSession.conf.isModifiable is missing from the Python API site, so I included the rst file for pyspark.sql.conf.RuntimeConfig and linked to it via a :class: reference in the SparkSession.conf docstring.
Why are the changes needed?
No docs were generated for SparkSession.conf.isModifiable.
Does this PR introduce any user-facing change?
Yes. I added a Returns section of the SparkSession.conf docstring, so this will now show a link to the pyspark.sql.conf.RuntimeConfig page. This is a change compared to both the released Spark version and the unreleased master branch.
How was this patch tested?

Built the Python docs:

cd $SPARK_HOME/docs
SKIP_SCALADOC=1 SKIP_RDOC=1 SKIP_SQLDOC=1 jekyll serve

Verified that no RuntimeConfig link displayed on Spark Session APIs listing (since the toctree item is hidden):
http://localhost:4000/api/python/reference/pyspark.sql.html#spark-session-apis

Verified that the RuntimeConfig link displayed on the SparkSession.conf page:
http://localhost:4000/api/python/reference/api/pyspark.sql.SparkSession.conf.html#pyspark.sql.SparkSession.conf

Verified that the RuntimeConfig page displayed:
http://localhost:4000/api/python/reference/pyspark.sql.conf.RuntimeConfig.html#pyspark.sql.conf.RuntimeConfig

Can one of the admins verify this patch?

ok to test

For reviews, could you put the screenshot of the updated doc in the PR description?

Can one of the admins verify this patch?

Test build #134920 has started for PR 31483 at commit 3a28304.

Test build #134920 has finished for PR 31483 at commit 3a28304.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134920/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39503/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39503/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39503/

Test build #135111 has started for PR 31483 at commit f310c97.

Test build #135111 has finished for PR 31483 at commit f310c97.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39693/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/135111/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39693/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39693/

It looks merged into master only. I merged it into branch-3.1 too.


iPad: LazyGrid to display the list of available hosts and keys, rather than lists.

It is a little tricky, as I will need to replace the navigation view entirely with something else, or use an iPad specific version, because navigationlink does not blend well with multiple columns from the grids.

Will wait for the next iOS


TestNG cannot handle load

Hi,
I tried to run regression for almost 1000 suites. The performance with testng is fine till I ran 500-600 suites, but when the load increases, testng is getting stuck at topologicalsort in MethodHelper.class.
Please let me know if anyone faced this issue or if there is any way to resolve this.
Regards,
Udaya

Stuck as in "it stops moving" or it's just slow?
Any way we can reproduce this?
--
Cédric
On Tue, Jun 28, 2016 at 1:23 PM, Udaya Duvvuri<EMAIL_ADDRESS>wrote:

Hi,
I tried to run regression for almost 1000 suites. The performance with
testng is fine till I ran 500-600 suites, but when the load increases,
testng is getting stuck at topologicalsort in MethodHelper.class.
Please let me know if anyone faced this issue or if there is any way to
resolve this.
Regards,
Udaya
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cbeust/testng/issues/1077, or mute the thread
https://github.com/notifications/unsubscribe/AAFoopKkftQWUsv_UkfT7955ccwa1WRIks5qQZDGgaJpZM4JAjTE
.

It keeps on moving but it is slow.  When we start the regression run using selenium grid, we had set max instances as 5. When we run less number of suites all the 5 instances of firefox are occupied, but as the suite count increases, there is only one instance of firefox active most of the time.
We have the testng.xml with around 1160 suites. I tried to debug and check the code.
We have a testrunner which contains a dataprovider that reads all the suites from xml. @Factory is creating the instances and returning an Object.
Then the instance list is passed to MethodHelper.class ( private static Graph topologicalSort). I don't know the exact reason why the execution hangs in here for a lot of time.
For the firefox instances to start it takes 10-15 mins. The thread count I set in testng.xml is 5 and I had set parallel ="instances".

If you have narrowed this down to a data provider, could you try to make
this data provider lazy? (returning an iterator instead of an array)
--
Cédric
On Wed, Jun 29, 2016 at 1:31 PM, Udaya Duvvuri<EMAIL_ADDRESS>wrote:

It keeps on moving but it is slow. When we start the regression run using
selenium grid, we had set max instances as 5. When we run less number of
suites all the 5 instances of firefox are occupied, but as the suite count
increases, there is only one instance of firefox active most of the time.
We have the testng.xml with around 1160 suites. I tried to debug and check
the code.
We have a testrunner which contains a dataprovider that reads all the
suites from xml. @Factory https://github.com/Factory is creating the
instances and returning an Object.
Then the instance list is passed to MethodHelper.class ( private static
Graph topologicalSort). I don't know the exact reason why the execution
hangs in here for a lot of time.
For the firefox instances to start it takes 10-15 mins. The thread count I
set in testng.xml is 5 and I had set parallel ="instances".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cbeust/testng/issues/1077#issuecomment-229495229, or mute
the thread
https://github.com/notifications/unsubscribe/AAFooj9Ep83q1HmgKkipH2fAX0vhVxY1ks5qQuQhgaJpZM4JAjTE
.

And use 6.9.12 which fixes some issues with lazy data provider.

@lud200 Do you have some dependencies between methods?

Not too many dependencies. I had one dependency for retry of failed methods.

Ok. In fact, only one dependsOnXxx with many tests is making the issue. See #1081, I think it is the same problem.

Wow, that worked like magic. Thanks a lot.

The problem looks similar to #1081 But if I remove the dependson method at several places, this is going to change the structure of entire framework. Is there a solution for this issue? I tried a couple of things like grouping the test suites and calling the group of test suites and changing Parallel="methods" but this is not allocating all the instances as expected. Is there an alternative approach to resolve this issue?

We don't have a solution for the moment. We expect to fix the both issue at the same moment.


Source code leak

This issue seems to have arisen in version 2.3.1
https://github.com/herberttn/bytenode-webpack-plugin/issues/15

This issue only occurs on Windows

Your link doesn't seem to work for some reason. You're saying that this issue has re-emerged on Windows in the current version (2.3.1)?
I wrote a source code leak test for the electron-bytenode-webpack project, but I don't think I've updated that since 2.3.1. I'll update that soon and see if I can confirm. It would probably be a good idea to have source code leak tests as part of the tests in this repo too.

I just added some automated testing to the electron-bytenode-example project and I cannot replicate this bug for Windows, Linux, or Mac… at least for an Electron build.
I can't speak for @herberttn, but I'm guessing he's going to need more detail about your issue.

I can't speak for @herberttn, but I'm guessing he's going to need more detail about your issue.

Absolutely. Right now there are no details, at all.
I'll need a reproduction repository to try and fix it.
@zhangyandong can you make one?

I just added some automated testing to the electron-bytenode-example project and I cannot replicate this bug for Windows, Linux, or Mac… at least for an Electron build.

@jjeff There is a leak test here, added when I fixed #15

@zhangyandong does this still happen? If so, can you create a reproduction repo?

Still seems to happen on a fresh clone of bytenode electron. I tried running the test, the test passes with asar mode on and off. but I can see the string in the code.


Added Ballerina Test for getDisposition without parameters

Purpose
Examples
Checklist

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

Codecov Report

Merging #8 (c6e0b10) into master (f7ed9ca) will increase coverage by 0.57%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   78.23%   78.80%   +0.57%
==========================================
  Files          18       18
  Lines        1052     1052
  Branches      279      279
==========================================
+ Hits          823      829       +6
+ Misses        148      147       -1
+ Partials       81       76       -5

Impacted Files
Coverage Δ

...n/java/org/ballerinalang/mime/util/HeaderUtil.java
73.07% <0.00%> (+1.92%)
:arrow_up:

...ain/java/org/ballerinalang/mime/util/MimeUtil.java
70.81% <0.00%> (+2.70%)
:arrow_up:

Continue to review full report at Codecov.

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


Update Mesos docs (in this repo) to reference new CNI plugin release

This issue was moved to projectcalico/calico#67


I stumbled upon a Vike bug.

Description
3:54:32 p.m. [vike@0.4.193][request(2)][Bug] You stumbled upon a Vike bug. Go to https://github.com/vikejs/vike/issues/new and copy-paste this error. A maintainer will fix the bug (usually under 24 hours).
    at assertPlusFileExport (file:///home/mean-ui-thread/git/vike-test/node_modules/vike/dist/esm/shared/page-configs/assertPlusFileExport.js:30:5)
    at parseValueSerialized (file:///home/mean-ui-thread/git/vike-test/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigs.js:107:9)
    at file:///home/mean-ui-thread/git/vike-test/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigs.js:59:48
    at Array.map (<anonymous>)
    at file:///home/mean-ui-thread/git/vike-test/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigs.js:58:43
    at Array.forEach (<anonymous>)
    at parseConfigValuesSerialized_tmp (file:///home/mean-ui-thread/git/vike-test/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigs.js:54:44)
    at parseConfigValuesSerialized (file:///home/mean-ui-thread/git/vike-test/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigs.js:8:26)
3:54:32 p.m. [vike][request(2)] HTTP response / ERR

I think the issue was actually on my side. I forgot to add export default in front of function Head() { in my +Head.tsx file. I still raised the issue just in case it means something else :shrug:


QUESTION: Should this chart deploy CRDs by default?

The k8s monitoring chart deploys two sources of CRDs:

Prometheus Operator CRDs (e.g. ServiceMonitor, PodMonitor, Probe, etc...)
Grafana Agent CRDs (PodLogs)

This was to keep continuity with users that are migrating from Operator deployments and don't want to be forced to migrate their ServiceMonitor objects to flow components in .extraConfig. Since then, it seems like it's causing more trouble that it's worth.
But, I don't want to discount the idea that I'm only hearing the failures, because successful users don't often speak up.
I'm opening this up to a vote:
Should the Kubernetes Monitoring Helm chart continue to deploy CRDs by default?
👍🏻 -> Yes, keep things the way they are
👎🏻 -> No, don't deploy by default, but make it possible to deploy with a simple values file change.

While I can understand the concerns of migrating users, as someone NOT migrating from Operator, I am using this in all clusters where there is no prometheus-server deployment. I have one cluster, the primary one, that has the flag set to false because the prometheus-server chart seems to install them.
Having this be an option flag is the best way to solve this and doesn't forget every other user for the sake of one use case.

Please consider https://github.com/helm/community/blob/main/hips/hip-0011.md when considering this.
One problem with managing CRDs via helm template, if you uninstall the release (say something's messed up and you want to start over), you also delete all the associated custom resources a user may have added external to this release. This runs contrary to the principal of least surprise.

This has been around a while and the votes to "keep things the way they are" are winning, so I'll do that.
Closing this issue.


API: Remove three-control-Cs shortcut, making way for RE.halt.

See doc changes.

Current coverage is 82.94% (diff: 100%)

Merging #583 into master will decrease coverage by 0.01%

@@             master       #583   diff @@
==========================================
  Files            20         20
  Lines          4144       4140     -4
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           3438       3434     -4
  Misses          706        706
  Partials          0          0

Powered by Codecov. Last update 8f3461b...cf65050

-- . .-. --. . -..      -----> merged

.... .- -. -.- ... .-.-.-


Add Package.discontinuedMessage

Why: let authors (or site maintainers) provide "Use this instead..." messaging without pushing a new version.
Then map isDiscontinued => discontinuedMessage != null
If there is no message, just store empty string...or something.
https://github.com/dart-lang/pub-dartlang-dart/blob/a5a1c03ab71ed70ae1dd3e859de38009a9215748/app/lib/frontend/models.dart#L53

CC @mit-mit

For now the recommendation is to update pubspec.yaml


Why not implement DCN in ResNet18 and ResNet34?

I think ResNet18 or 34 can use DCN, but there is no pre-trained backbone yet.

I think ResNet18 or 34 can use DCN, but there is no pre-trained backbone yet.

I try to add dcn to res18 by myself, just like below:
class BasicBlock(BaseModule):
    expansion = 1

    def __init__(self,
                 inplanes,
                 planes,
                 stride=1,
                 dilation=1,
                 downsample=None,
                 style='pytorch',
                 with_cp=False,
                 conv_cfg=None,
                 norm_cfg=dict(type='BN'),
                 dcn=None,
                 plugins=None,
                 init_cfg=None):
        super(BasicBlock, self).__init__(init_cfg)
        assert plugins is None, 'Not implemented yet.'

        self.norm1_name, norm1 = build_norm_layer(norm_cfg, planes, postfix=1)
        self.norm2_name, norm2 = build_norm_layer(norm_cfg, planes, postfix=2)

        self.conv1 = build_conv_layer(
            conv_cfg,
            inplanes,
            planes,
            3,
            stride=stride,
            padding=dilation,
            dilation=dilation,
            bias=False)
        self.add_module(self.norm1_name, norm1)
        # add dcn to Basic Block
        self.dcn = dcn
        self.with_dcn = dcn is not None
        fallback_on_stride = False
        if self.with_dcn:
            fallback_on_stride = dcn.pop('fallback_on_stride', False)
        if not self.with_dcn or fallback_on_stride:
            self.conv2 = build_conv_layer(
                conv_cfg, planes, planes, 3, padding=1, bias=False)
        else:
            # get deformable conv
            self.conv2 = build_conv_layer(
                dcn, planes, planes, 3, padding=1, bias=False)
        self.add_module(self.norm2_name, norm2)

        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride
        self.dilation = dilation
        self.with_cp = with_cp

with config:
backbone=dict(
        type='ResNetZ',
        depth=18,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=1,
        norm_cfg=dict(type='BN', requires_grad=True),
        norm_eval=True,
        dcn=dict(type='DCNv2', deform_groups=1, fallback_on_stride=False),
        stage_with_dcn=(False, True, True, True),
        style='pytorch',
        init_cfg=dict(
            type='Pretrained',
            checkpoint='torchvision://resnet18')),

But I got the error:
Traceback (most recent call last):
  File "train.py", line 190, in <module>
    main()
  File "train.py", line 186, in main
    meta=meta)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/apis/train.py", line 211, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 130, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 53, in train
    self.run_iter(data_batch, train_mode=True, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 31, in run_iter
    **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/parallel/data_parallel.py", line 75, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/base.py", line 256, in train_step
    losses = self(**data)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 110, in new_func
    return old_func(*args, **kwargs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/base.py", line 174, in forward
    return self.forward_train(img, img_metas, **kwargs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/single_stage.py", line 82, in forward_train
    x = self.extract_feat(img)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/single_stage.py", line 45, in extract_feat
    x = self.neck(x)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 110, in new_func
    return old_func(*args, **kwargs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/necks/fpn.py", line 159, in forward
    for i, lateral_conv in enumerate(self.lateral_convs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/necks/fpn.py", line 159, in <listcomp>
    for i, lateral_conv in enumerate(self.lateral_convs)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/cnn/bricks/conv_module.py", line 201, in forward
    x = self.conv(x)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 443, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 440, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Given groups=1, weight of size [256, 512, 1, 1], expected input[2, 128, 76, 128] to have 512 channels, but got 128 channels instead

Could you please tell me why this happen? Thanks!

I think ResNet18 or 34 can use DCN, but there is no pre-trained backbone yet.

I try to add dcn to res18 by myself, just like below:
class BasicBlock(BaseModule):
    expansion = 1

    def __init__(self,
                 inplanes,
                 planes,
                 stride=1,
                 dilation=1,
                 downsample=None,
                 style='pytorch',
                 with_cp=False,
                 conv_cfg=None,
                 norm_cfg=dict(type='BN'),
                 dcn=None,
                 plugins=None,
                 init_cfg=None):
        super(BasicBlock, self).__init__(init_cfg)
        assert plugins is None, 'Not implemented yet.'

        self.norm1_name, norm1 = build_norm_layer(norm_cfg, planes, postfix=1)
        self.norm2_name, norm2 = build_norm_layer(norm_cfg, planes, postfix=2)

        self.conv1 = build_conv_layer(
            conv_cfg,
            inplanes,
            planes,
            3,
            stride=stride,
            padding=dilation,
            dilation=dilation,
            bias=False)
        self.add_module(self.norm1_name, norm1)
        # add dcn to Basic Block
        self.dcn = dcn
        self.with_dcn = dcn is not None
        fallback_on_stride = False
        if self.with_dcn:
            fallback_on_stride = dcn.pop('fallback_on_stride', False)
        if not self.with_dcn or fallback_on_stride:
            self.conv2 = build_conv_layer(
                conv_cfg, planes, planes, 3, padding=1, bias=False)
        else:
            # get deformable conv
            self.conv2 = build_conv_layer(
                dcn, planes, planes, 3, padding=1, bias=False)
        self.add_module(self.norm2_name, norm2)

        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride
        self.dilation = dilation
        self.with_cp = with_cp

with config:
backbone=dict(
        type='ResNetZ',
        depth=18,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=1,
        norm_cfg=dict(type='BN', requires_grad=True),
        norm_eval=True,
        dcn=dict(type='DCNv2', deform_groups=1, fallback_on_stride=False),
        stage_with_dcn=(False, True, True, True),
        style='pytorch',
        init_cfg=dict(
            type='Pretrained',
            checkpoint='torchvision://resnet18')),

But I got the error:
Traceback (most recent call last):
  File "train.py", line 190, in <module>
    main()
  File "train.py", line 186, in main
    meta=meta)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/apis/train.py", line 211, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 130, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 53, in train
    self.run_iter(data_batch, train_mode=True, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 31, in run_iter
    **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/parallel/data_parallel.py", line 75, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/base.py", line 256, in train_step
    losses = self(**data)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 110, in new_func
    return old_func(*args, **kwargs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/base.py", line 174, in forward
    return self.forward_train(img, img_metas, **kwargs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/single_stage.py", line 82, in forward_train
    x = self.extract_feat(img)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/detectors/single_stage.py", line 45, in extract_feat
    x = self.neck(x)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 110, in new_func
    return old_func(*args, **kwargs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/necks/fpn.py", line 159, in forward
    for i, lateral_conv in enumerate(self.lateral_convs)
  File "/gpfs/home/sist/tqzouustc/code/mmdetection_latest/mmdet/models/necks/fpn.py", line 159, in <listcomp>
    for i, lateral_conv in enumerate(self.lateral_convs)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.conda/envs/openmmlab_a100_latest/lib/python3.7/site-packages/mmcv/cnn/bricks/conv_module.py", line 201, in forward
    x = self.conv(x)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 443, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/home/sist/tqzouustc/.local/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 440, in _conv_forward
    self.padding, self.dilation, self.groups)
RuntimeError: Given groups=1, weight of size [256, 512, 1, 1], expected input[2, 128, 76, 128] to have 512 channels, but got 128 channels instead

Could you please tell me why this happen? Thanks!

Solve it!

Hello, could you share how you solve this problem? Thank you very much! @Icecream-blue-sky

Hello, could you share how you solve this problem? Thank you very much! @Icecream-blue-sky

Just add the DCN conv to BasicBlock in resnet.py:
class BasicBlock(BaseModule):
    expansion = 1

    def __init__(self,
                 inplanes,
                 planes,
                 stride=1,
                 dilation=1,
                 downsample=None,
                 style='pytorch',
                 with_cp=False,
                 conv_cfg=None,
                 norm_cfg=dict(type='BN'),
                 dcn=None,
                 plugins=None,
                 init_cfg=None):
        super(BasicBlock, self).__init__(init_cfg)
        assert plugins is None, 'Not implemented yet.'

        self.norm1_name, norm1 = build_norm_layer(norm_cfg, planes, postfix=1)
        self.norm2_name, norm2 = build_norm_layer(norm_cfg, planes, postfix=2)

        self.conv1 = build_conv_layer(
            conv_cfg,
            inplanes,
            planes,
            3,
            stride=stride,
            padding=dilation,
            dilation=dilation,
            bias=False)
        self.add_module(self.norm1_name, norm1)
        # add dcn to Basic Block
        self.dcn = dcn
        self.with_dcn = dcn is not None
        fallback_on_stride = False
        if self.with_dcn:
            fallback_on_stride = dcn.pop('fallback_on_stride', False)
        if not self.with_dcn or fallback_on_stride:
            self.conv2 = build_conv_layer(
                conv_cfg, planes, planes, 3, padding=1, bias=False)
        else:
            # get deformable conv
            self.conv2 = build_conv_layer(
                dcn, planes, planes, 3, padding=1, bias=False)
        self.add_module(self.norm2_name, norm2)

        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride
        self.dilation = dilation
        self.with_cp = with_cp

and chang the config to below (FPN in_channels should be changed when use res18 and res34:
model = dict(
    type='FCOS',
    backbone=dict(
        type='ResNetZ',
        depth=34,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=1,
        norm_cfg=dict(type='BN', requires_grad=True),
        norm_eval=True,
        dcn=dict(type='DCNv2', deform_groups=1, fallback_on_stride=False),
        stage_with_dcn=(False, True, True, True),
        style='pytorch',
        init_cfg=dict(
            type='Pretrained',
            checkpoint='torchvision://resnet34')),
    neck=dict(
        type='FPN',
        in_channels=[64, 128, 256, 512],
        out_channels=256,
        start_level=1,
        add_extra_convs='on_output',
        num_outs=5,
        relu_before_extra_convs=True),

Hello, could you share how you solve this problem? Thank you very much! @Icecream-blue-sky

Just add the DCN conv to BasicBlock in resnet.py:
class BasicBlock(BaseModule):
    expansion = 1

    def __init__(self,
                 inplanes,
                 planes,
                 stride=1,
                 dilation=1,
                 downsample=None,
                 style='pytorch',
                 with_cp=False,
                 conv_cfg=None,
                 norm_cfg=dict(type='BN'),
                 dcn=None,
                 plugins=None,
                 init_cfg=None):
        super(BasicBlock, self).__init__(init_cfg)
        assert plugins is None, 'Not implemented yet.'

        self.norm1_name, norm1 = build_norm_layer(norm_cfg, planes, postfix=1)
        self.norm2_name, norm2 = build_norm_layer(norm_cfg, planes, postfix=2)

        self.conv1 = build_conv_layer(
            conv_cfg,
            inplanes,
            planes,
            3,
            stride=stride,
            padding=dilation,
            dilation=dilation,
            bias=False)
        self.add_module(self.norm1_name, norm1)
        # add dcn to Basic Block
        self.dcn = dcn
        self.with_dcn = dcn is not None
        fallback_on_stride = False
        if self.with_dcn:
            fallback_on_stride = dcn.pop('fallback_on_stride', False)
        if not self.with_dcn or fallback_on_stride:
            self.conv2 = build_conv_layer(
                conv_cfg, planes, planes, 3, padding=1, bias=False)
        else:
            # get deformable conv
            self.conv2 = build_conv_layer(
                dcn, planes, planes, 3, padding=1, bias=False)
        self.add_module(self.norm2_name, norm2)

        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride
        self.dilation = dilation
        self.with_cp = with_cp

and chang the config to below (FPN in_channels should be changed when use res18 and res34:
model = dict(
    type='FCOS',
    backbone=dict(
        type='ResNetZ',
        depth=34,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=1,
        norm_cfg=dict(type='BN', requires_grad=True),
        norm_eval=True,
        dcn=dict(type='DCNv2', deform_groups=1, fallback_on_stride=False),
        stage_with_dcn=(False, True, True, True),
        style='pytorch',
        init_cfg=dict(
            type='Pretrained',
            checkpoint='torchvision://resnet34')),
    neck=dict(
        type='FPN',
        in_channels=[64, 128, 256, 512],
        out_channels=256,
        start_level=1,
        add_extra_convs='on_output',
        num_outs=5,
        relu_before_extra_convs=True),

Thanks, it works!


PKIX path building failed. Unable to find valid certification path to requested target

¿Its posible configure the client to ignore the SSL Context Verification?

Hi @jlparrilla if your server is under SSL (https) you shouldn't use the wc-api-java library. It's only for servers under http.

@jlparrilla could you please provide more details about the issue?

I intended use to get orders from one woocommerce store. The problem is that all time throw this excepcion:
PKIX path building failed. Unable to find valid certification path to requested target
The webstore is configured under SSL with a valid certification path, from Digicert


Possibility to run commands after alice is done

Is there a possibility to run commands (query commands, symfony commands, shell commands, etc.) when alice is done loading fixtures into the database.
My use-case is as follows:
I have some fixtures for some entities, but that data needs to be compiled in some cache system (in our case, the same database).
There is a service which "recalculates" the cached value, and that service should be called whenever alice is done. This way the faked data is stored in that compiled cache system instead of having to write fakes for that too.

Maybe create a command that will run Alice first and then your command

Indeed the AliceBundle command is merely a Symfony command. The only thing done in this bundle besides that is the finder logic to locate the fixtures which can easily be re-used so you should not have a problem to roll your own command if necessary which I think is more reliable than trying to allow to tweak the HautelookAliceBundle command to allow all sort of customization


chore(deps): update dependency @aws-sdk/lib-dynamodb to v3.398.0

This PR contains the following updates:

Package
Type
Update
Change

@aws-sdk/lib-dynamodb (source)
dependencies
minor
3.362.0 -> 3.398.0

Release Notes

aws/aws-sdk-js-v3 (@aws-sdk/lib-dynamodb)
v3.398.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.395.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.391.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.388.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.387.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.386.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.385.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.382.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
3.379.1 (2023-07-28)
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.379.1
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.378.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.377.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.370.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.369.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.365.0
Compare Source
Note: Version bump only for package @aws-sdk/lib-dynamodb
v3.363.0
Compare Source
Features

client-dynamodb: This release adds ReturnValuesOnConditionCheckFailure parameter to PutItem, UpdateItem, DeleteItem, ExecuteStatement, BatchExecuteStatement and ExecuteTransaction APIs. When set to ALL_OLD,  API returns a copy of the item as it was when a conditional write failed (cef0845)
clients: use migrated @smithy packages (#4873) (d036e2e)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.

⚠ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: src/lambdas/retrieve-historic-recipes/package-lock.json

File name: src/lambdas/persist-recipes/package-lock.json

File name: package-lock.json

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.

⚠ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: src/lambdas/retrieve-historic-recipes/package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/client-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/lib-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR!  ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/client-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/lib-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR!  ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/client-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/lib-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate/cache/others/npm/_logs/2024-04-29T19_36_07_709Z-debug-0.log

⚠ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: src/lambdas/retrieve-historic-recipes/package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/client-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/lib-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR!  ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/client-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/lib-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR!  ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/client-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@aws-sdk/lib-dynamodb
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR!


Add Server-Timing header to unread page

To be used as a basis to discuss #722. Current metrics may not be the
most interesting ones.
This is not deactivable at the moment, the header is:
server-timing: prep;dur=30.548655,sql_unread;dur=8.762088,sql_entries;dur=16.670605,render;dur=566.738683

Do we want this feature to be configurable?
The construction advised by the library
defer timing.NewMetric(name).Start().Stop()

does not work, the metric has a duration of 0s. I suspect this is due to
the request being finalized too early for the header to be added. Some
more granular metrics as added in this patch may be more relevant anyway.
Example result in browser:

To deactivate headers by default, I could make a PR to the upstream library to add an option disabling healders:
 uiRouter.Use(func(h http.Handler) http.Handler {
        return servertiming.Middleware(h, servertiming.MiddlewareOpts{DisableHeaders: true})
 })

This would ensure that headers are not written in the final requests, even if the measurements would be gathered.
I’ve applied the suggested names.

Sure, if they accepts the PR it's ok.

@fguillot I think this PR is ready for you to have another look, when you have time.

I think it is ready for you to take another look @fguillot.


bootstrap 3.3.7 examples - downloaded the bootstrap repository - navbar link broken: File not found

I downloaded and installed the bootstrap 3.3.7 repository to my windows 7 pc.
Using windows explorer, I select from examples folder,  this navbar html file to run locally:
bootstrap3.3.7/docs/examples/navbar/index.html
My Chrome browser displays the navbar example,  The example contains a button link:
View navbar docs >>
When I click on the above button, I get a broken link with the message FILE NOT FOUND
The navbar index.html contains this markup for the broken link:
View navbar docs »
I installed everything I needed to install grunt and run 'grunt docs' as I thought I might have missed
this step to run the examples locally.  Am I doing something wrong or is there a bug within the
bootstrap3.3.7/docs/examples/navbar/index.html ?

Bootstrap 3 is no longer maintained. You can read more about the reasoning from Mark's post at #20631. That said, someone in Slack or IRC may be able to help you out.

That is too bad considering bootstrap 4 is still in its alpha version and not beta.  Topic now closed.