s3store: Experiment with optimistic part uploads to S3

Right now, an incoming PATCH request is split into multiple parts. Each part is saved on disk (or optionally in memory) and then queued to be uploaded to S3. These uploads can be performed in parallel. However, it seems as if this process can be very CPU-intensive (see #924 and many other reports about performance concerns of the s3store).
I wonder if it we can skip the step reading the parts into a temporary buffer (on disk or in memory) altogether. The reason for first reading into a buffer is that we want to know the size of the part before uploading it to S3. The UploadPart and PutObject calls in S3 require the Content-Length header to be present, so we must know the size before starting an object/part upload (I get this understanding from their docs and my past experiments; maybe this is not true anymore). Thus, we have to supply some part size when starting the upload to S3.
An alternative approach is to estimate the part size when we start receiving data from the PATCH request. If we know the total tus upload size and the request's size, we can estimate what size the next part will have. If not, we will just assume that a full part is filled. Then, we open a new UploadPart request to S3 with out estimated Content-Length and start piping the PATCH request's content directly into the request to S3. If the amount of data read from the incoming request is smaller than the Content-Length that we provided to S3, the upload will fail and we have to fallback to uploading it into a .part object using PutObject, so that data can be used for resuming the upload in the next PATCH request. However, this would mean that we have to keep some data in memory, so we can fallback to storing the temporary data in a .part object. Maybe in the end, this is not much different than just buffering the parts in memory.

Hi @Acconut , that is an interesting find. I was studying the tusd implementation and also thought this as an issue. Do you have any updates on this experimentation ?

There has been no further investigation since I opened this issue. I think it's still interesting, but I am more concerned about the memory usage here. In the comment above I wrote:

However, this would mean that we have to keep some data in memory, so we can fallback to storing the temporary data in a .part object.

If the part size 50MB, then 100 uploads would already consume 5GB of memory. When we want to scale tusd to support many parallel uploads, this might lead to issues.


Update index.html

Issue: The issue was in the index.html file, and it has been resolved; please look at the same and let me know.

@shahednasser ah, okay. Got you. i'll add description of the project and get it done. thank you for guiding and keeping patience!

is this issue still to be resolved can you please link the respective isuue.

@medhavisinha are you still working on this?

@shahednasser yes, i am. give me four days' time. i've my end semester exams going on. sorry for the delay.

Hello @medhavisinha I have unassigned you due to inactivity and will be closing this PR. @mayankmohak if you want to work on this please comment on the issue to be assigned.


atom module no longer available in tasks

Prerequisites

[x] Can you reproduce the problem in safe mode?
[x] Are you running the latest version of Atom?
[x] Did you check the debugging guide?
[x] Did you check the FAQs on Discuss?
[x] Are you reporting to the correct repository?
[x] Did you perform a cursory search to see if your bug or enhancement is already reported?

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.
Description
The atom module can no longer be required in a task created using the Task class. It breaks the fuzzy-finder as well as any other packages that uses core classes from that module (like the Emitter or the Disposable classes).
For instance, when running in safe mode, the fuzzy-finder package is failing with:
Cannot find module 'atom' Error: Cannot find module 'atom'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/fuzzy-finder/lib/load-paths-handler.js:12:19)
    at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/fuzzy-finder/lib/load-paths-handler.js:180:4)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/task-bootstrap.js:110:13)
    at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/task-bootstrap.js:112:4)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at [eval]:2:1
    at Object.exports.runInThisContext (vm.js:54:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:425:26)
    at node.js:602:27
    at doNTCallback0 (node.js:443:9)
    at process._tickCallback (node.js:372:13)(anonymous function) @ /Applications/Atom.app/Contents/Resources/app.asar/src/task.js:52
/Applications/Atom.app/Contents/Resources/app.asar/src/task.js:52 Cannot read property 'bind' of null TypeError: Cannot read property 'bind' of null
    at process.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/task-bootstrap.js:82:23)
    at emitTwo (events.js:87:13)
    at process.emit (events.js:172:7)
    at handleMessage (internal/child_process.js:686:10)
    at Pipe.channel.onread (internal/child_process.js:440:11)(anonymous function) @ /Applications/Atom.app/Contents/Resources/app.asar/src/task.js:52

I suspect this is a bug and was not an intended change, but if it was I may point out that this will likely break a lot of packages and should trigger a major version bump.
Versions
> atom --version
Atom    : 1.7.0-dev-579b6b7
Electron: 0.36.8
Chrome  : 47.0.2526.110
Node    : 5.1.1

It appears the issue appeared with either commit 430a0e0 or 63ec054, but I haven't identified the root cause yet.

https://github.com/atom/atom/pull/11153 seems like a likely fix.

Yes, looks like it is. I close my issue then since @lee-dohm caught it already, I should have searched in PRs too.

No worries! Definitely a good to make sure we didn't miss it.


[stable/elasticsearch-curator] Remove duplicated labels key

What this PR does / why we need it:
Remove unnecessary duplicated labels key on the pod security policy template for the elasticsearch-curator chart.
Which issue this PR fixes

fixes #16481

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @desaintmartin

/assign @gianrubio

Hi @Angelmmiguel anything else I'm required to do to have the go head for the /ok-to-test ? 🙂

Thanks!
/ok-to-test
/lgtm


Wildcard lucene search

Hello
We are using Quickwit with Grafana as UI, and we couldnt set wildcard searches in lucene, for example:
cluster:"prod-*" AND error.exception: *

the error.exception: *  is for existence filter , only docs that the field are exists there
If its exists somehow, would like to get some docs how to do it
Would be much appriciate !

If you use the docker edge version or the nightly-built version, you should be able to use:

cluster:"prod-"*
error.exception:""*

This syntax is a bit weird and we may change it before the version 0.7 that should be release first week or second week of January.

tested on 0.7 and it's works , thanks !


Testing EventSource Streams

Is it possible to test EventSource streams with Supertest? I couldn't find any documentation about this.

Hi @roundrobin, did you find means to test EventSource streams?


fix(connect-ui): center text alignment in SendFunds form

TL;DR
This pull request centers the text and aligns the spinner in the SendFunds button within the ConnectWallet screen.
What changed?

Added textAlign: "center" to the button style to center the text
Moved the spinner alignment condition to ensure it appears correctly when the button is in a pending state

How to test?

Navigate to the ConnectWallet screen
Trigger the SendFunds action
Verify that the button text is centered and the spinner is correctly aligned during pending state

Why make this change?
This change improves the UI by ensuring the button text is consistently centered and the spinner is appropriately aligned during the fund sending process.

#3800  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @gregfromstl and the rest of your teammates on  Graphite


Crash with JoshariasSurvival when connected to minnesotags' server - sync between server/client?

I hit this myself earlier today but didn't think too much of it as I was running from my big messy mega-workspace with a data dir I've used for quite a while. But we just had a report on IRC from a guest who had connected to the server as well and crashed after about 5 minutes
Exact error is the same although I didn't capture any extra details from my log. Guest log:
12:02:05.541 [main] WARN  o.t.engine.internal.TimeBase - Delta too great (2098), capping to 1000
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome MOUNTAINS with short id 0.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome SNOW with short id 1.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome DESERT with short id 2.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome FOREST with short id 3.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome OCEAN with short id 4.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome BEACH with short id 5.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome PLAINS with short id 6.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Registering biome org.terasology.world.biomes.UnknownBiome@80fafd with short id 0.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:ocean with short id 4 from save game.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:mountains with short id 1 from save game.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:forest with short id 7 from save game.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:beach with short id 2 from save game.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:desert with short id 3 from save game.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:snow with short id 5 from save game.
12:02:05.541 [main] INFO  o.t.world.biomes.BiomeManager - Restored biome Core:plains with short id 6 from save game.
12:02:05.758 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:05.809 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:05.954 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:05.966 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:05.982 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.003 [main] WARN  o.t.p.s.ComponentSerializer - Cannot deserialize unknown field 'groundFriction' onto 'engine:CharacterMovement'
12:02:06.003 [main] WARN  o.t.p.s.ComponentSerializer - Cannot deserialize unknown field 'maxGroundSpeed' onto 'engine:CharacterMovement'
12:02:06.003 [main] WARN  o.t.p.s.ComponentSerializer - Cannot deserialize unknown field 'distanceBetweenSwimStrokes' onto 'engine:CharacterMovement'
12:02:06.143 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'Breather'
12:02:06.181 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.217 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.242 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.247 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.248 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.287 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.352 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:06.371 [main] ERROR o.t.p.serializers.PrefabSerializer - Prefab contains unknown component 'ChangingBlocks'
12:02:08.012 [main] ERROR o.t.n.internal.NetworkSystemImpl - Server has unknown field 'depthRange' on 'OreGeneration:DepthPocketOreGen'
12:02:08.012 [main] ERROR o.t.n.internal.NetworkSystemImpl - Server has unknown field 'depth' on 'OreGeneration:DepthPocketOreGen'
12:02:08.075 [main] WARN  o.t.rendering.nui.asset.UIFormat - Field 'emptyIcon' not recognized for interface org.terasology.rendering.nui.UIWidget in {"type":"UIIconBar","id":"breathBar","icon":"engine:icons#bubble","family":"breathBar","emptyIcon":"engine:icons#burstBubble","halfIconMode":"shrink","spacing":2,"maxIcons":10,"layoutInfo":{"use-content-width":true,"use-content-height":true,"position-left":{"target":"CENTER"},"position-right":{"target":"RIGHT","widget":"toolbar"},"position-bottom":{"target":"TOP","widget":"toolbar","offset":1}}}
12:02:08.075 [main] WARN  o.t.rendering.nui.asset.UIFormat - Field 'crosshairIcon' not recognized for interface org.terasology.rendering.nui.UIWidget in {"type":"UICrosshair","id":"crosshair","crosshairIcon":"engine:gui#crosshair","chargeStages":["engine:gui#crosshairCharge1","engine:gui#crosshairCharge2","engine:gui#crosshairCharge3","engine:gui#crosshairCharge4","engine:gui#crosshairCharge5","engine:gui#crosshairCharge6","engine:gui#crosshairCharge7","engine:gui#crosshairCharge8"],"layoutInfo":{"use-content-width":true,"use-content-height":true,"position-horizontal-center":{},"position-vertical-center":{}}}
12:02:08.299 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 580, netId = 10621}
12:02:08.487 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 606, netId = 10648, prefab = 'JoshariasSurvival:Blueberry'}
12:02:08.487 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 607, netId = 10649, prefab = 'JoshariasSurvival:BlueberryBushFull'}
12:02:08.518 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 624, netId = 10677, prefab = 'JoshariasSurvival:BlueberryBushFull'}
12:02:08.518 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 623, netId = 10676, prefab = 'JoshariasSurvival:Blueberry'}
12:02:08.814 [main] ERROR o.t.w.p.i.BlockFamilyOutputComponent - Bad block: IRLCorp:IronFluidPipe
12:02:08.814 [main] WARN  o.t.w.s.DefaultWorkstationProcessFactory - Invalid Process: IRLCorp:AssembleIronFluidPipe. Could not create output items in BlockFamilyOutputComponent
12:02:09.136 [main] INFO  o.t.r.world.RenderableWorldImpl - New Viewing Distance: Near
12:02:11.064 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 630, netId = 10687, prefab = 'JoshariasSurvival:BlueberryBushFull'}
12:02:11.064 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 629, netId = 10686, prefab = 'JoshariasSurvival:Blueberry'}
12:02:11.256 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 636, netId = 10697, prefab = 'JoshariasSurvival:BlueberryBushFull'}
12:02:11.256 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 635, netId = 10696, prefab = 'JoshariasSurvival:Blueberry'}
12:02:22.225 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 582, netId = 10623, prefab = 'engine:iconItemPickup'}
12:02:27.223 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 596, netId = 10637, prefab = 'JoshariasSurvival:Blueberry'}
12:02:42.784 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 3588, netId = 10755, prefab = 'JoshariasSurvival:BlueberryBushFull'}
12:02:42.784 [main] INFO  o.t.network.internal.ServerImpl - Destroying entity: EntityRef{id = 3587, netId = 10754, prefab = 'JoshariasSurvival:Blueberry'}
12:02:46.069 [main] ERROR o.t.network.internal.ServerImpl - Updating entity with no network component: EntityRef{id = 620}, expected netId 10673
12:02:46.280 [main] ERROR o.t.network.internal.ServerImpl - Updating entity with no network component: EntityRef{id = 620}, expected netId 10673
12:02:46.481 [main] ERROR o.t.network.internal.ServerImpl - Updating entity with no network component: EntityRef{id = 620}, expected netId 10673
12:02:46.720 [main] ERROR o.t.network.internal.ServerImpl - Updating entity with no network component: EntityRef{id = 620}, expected netId 10673
12:02:46.877 [main] ERROR o.terasology.engine.TerasologyEngine - Uncaught exception, attempting clean game shutdown
java.lang.NullPointerException: null
	at org.terasology.world.internal.EntityAwareWorldProvider.updateBlockEntityComponents(EntityAwareWorldProvider.java:237) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.world.internal.EntityAwareWorldProvider.updateBlockEntity(EntityAwareWorldProvider.java:153) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.world.internal.EntityAwareWorldProvider.setBlock(EntityAwareWorldProvider.java:124) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.world.internal.WorldProviderWrapper.setBlock(WorldProviderWrapper.java:52) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.network.internal.ServerImpl.processBlockChanges(ServerImpl.java:299) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.network.internal.ServerImpl.processMessages(ServerImpl.java:260) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.network.internal.ServerImpl.update(ServerImpl.java:176) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.network.internal.NetworkSystemImpl.update(NetworkSystemImpl.java:322) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.engine.subsystem.common.NetworkSubsystem.preUpdate(NetworkSubsystem.java:47) ~[engine-0.54.3-SNAPSHOT.jar:1539, develop, 1539, pre-alpha]
	at org.terasology.engine.TerasologyEngine.mainLoop(TerasologyEngine.java:407) ~[engine-0.54.3-SNAPSHOT.jar:1539, origin/develop, 1539]
	at org.terasology.engine.TerasologyEngine.run(TerasologyEngine.java:369) ~[engine-0.54.3-SNAPSHOT.jar:1539, origin/develop, 1539]
	at org.terasology.engine.Terasology.main(Terasology.java:154) [Terasology.jar:1539, origin/develop, 1539]
12:02:46.878 [main] INFO  o.terasology.engine.TerasologyEngine - Shutting down Terasology...
12:02:46.884 [main] INFO  o.t.n.internal.NetworkSystemImpl - Network shutdown
12:02:46.900 [main] WARN  org.reflections.Reflections - given scan urls are empty. set urls in the configuration
12:02:47.576 [main] WARN  o.t.rendering.nui.asset.UIFormat - Field 'emptyIcon' not recognized for interface org.terasology.rendering.nui.UIWidget in {"type":"UIIconBar","id":"breathBar","icon":"engine:icons#bubble","family":"breathBar","emptyIcon":"engine:icons#burstBubble","halfIconMode":"shrink","spacing":2,"maxIcons":10,"layoutInfo":{"use-content-width":true,"use-content-height":true,"position-left":{"target":"CENTER"},"position-right":{"target":"RIGHT","widget":"toolbar"},"position-bottom":{"target":"TOP","widget":"toolbar","offset":1}}}
12:02:47.577 [main] WARN  o.t.rendering.nui.asset.UIFormat - Field 'crosshairIcon' not recognized for interface org.terasology.rendering.nui.UIWidget in {"type":"UICrosshair","id":"crosshair","crosshairIcon":"engine:gui#crosshair","chargeStages":["engine:gui#crosshairCharge1","engine:gui#crosshairCharge2","engine:gui#crosshairCharge3","engine:gui#crosshairCharge4","engine:gui#crosshairCharge5","engine:gui#crosshairCharge6","engine:gui#crosshairCharge7","engine:gui#crosshairCharge8"],"layoutInfo":{"use-content-width":true,"use-content-height":true,"position-horizontal-center":{},"position-vertical-center":{}}}

When it happened to me I had mined some coal and had picked up a few. On jumping into the last dropped block I crashed, almost as if it happened as the block was transformed from being in the world to being put in my inventory.
Both my local source workspace plus the guest's binary are a few versions ahead of @minnesotags' server at this point, mainly with some module tweaks by @Josharias. So that could possibly be the issue?
If it isn't something obvious or easy to reproduce we should probably upgrade the server to use the next release (out real soon) and see if it happens when using the exact same version server & client side.
Edit: I was alone on the server when it happened to me.

Seems like there is some older stuff in that save game (or is it a server game?) Ironfluidpipe was replaced by fluidpipe a while ago.  Possibly we are dealing with just some version mismatch stuff?
Yes, I definitely need to start doing versioning more right in my modules for this reason.

@minnesotags just updated the server to latest develop and reset the world. Played around a little bit and no problem, we should hit the server some more and see if we can produce any issues :-)
I've hit the key_k issue being grabbed by another module now too (Tasks). I guess manually reassigning it in config.cfg should work. Or some grander reorientation to avoid hot key sprawl - we still need a character screen on c one day, that would probably be a good place for a simple section / button for skills :-)
@MarkDerosier (chessandgo) - ping! Sorry, requested a world reset. But in better news the ore distribution is fixed, I found iron one block from a sandy beach meeting a hill :D
If either of you can replicate the light merge issue we should get some better logging.

Closing this as a likely non-issue. The lighting merge is covered in #1969


Put all docarray method in document and da into a common namespace

context
as we allow flexible schema we need a way to prevent user to use a key name that is already used by docarray. The best way to do it is to have a namespace for al of the method of Document.
Example:
doc.from_protobuf -> doc.doc_from_protobuf
or
doc.da_from_protobug
then we just need to tell the user you cannot have a key name that start with doc as it is reserved for docarray method.
Pydantic v2 will have a similar approach : https://docs.pydantic.dev/blog/pydantic-v2/#model-namespace-cleanup

HI!
I would please like to work on this issue.

Hey @AsRaNi1 your contribution would be gladly appreciate!
The idea is that for every not private function on the class BaseDocument and the class AnyDocumentArray, DocumentArray and DocumentArrayStacked we want to rename to add the doc namespace.
Feel free to ask question if this is not clear.
FYI: this issue concern DocArray v2, you can see here how to contribute to v2 : https://github.com/docarray/docarray/blob/feat-rewrite-v2/CONTRIBUTING.md
You will need to create a PR towards this dev branch of DocArray v2 : https://github.com/docarray/docarray/tree/feat-rewrite-v2

Hey @AsRaNi1 your contribution would be gladly appreciate!
The idea is that for every not private function on the class BaseDocument and the class AnyDocumentArray, DocumentArray and DocumentArrayStacked we want to rename to add the doc namespace.
Feel free to ask question if this is not clear.
FYI: this issue concern DocArray v2, you can see here how to contribute to v2 : https://github.com/docarray/docarray/blob/feat-rewrite-v2/CONTRIBUTING.md
You will need to create a PR towards this dev branch of DocArray v2 : https://github.com/docarray/docarray/tree/feat-rewrite-v2

Yes sure!!
I'll form a PR soon

@samsja changes in the names of the not private methods of the following classes are made, the test files and some other files have the previous name without the doc namespace so am changing that currently and then will form the PR.
example of the changes made:  stack  --> doc_stack

Nice, in which PR did you do your modification ?

Nice, in which PR did you do your modification ?

I have not made a PR yet, 4 tests are failing and i'm figuring out why!
Mostly because the name of the methods has changed so i am looking for all instances where the objects for these classes have been created and methods are called, i may have missed some instances

@samsja I have changed all the references for the methods in the codebase, but it is throwing multiple errors while testing.
Shall i change the names of methods in other classes aswell?

Shall i change the names of methods in other classes aswell?

only on BaseDocument and on DocumentArray I believe

Hi @samsja I would like to take the issue.

@RStar2022 Lets wait we did not figure it out on far we want to go with this issue

Action point:

[ ] Do not implement it.
[ ] Check if we can warn user when instantiating class.

There's already an informative error message thrown when using an invalid field name, so we can close the ticket.
from docarray import BaseDocument

class MyDoc(BaseDocument):
    to_bytes: str

doc = MyDoc(to_bytes='strrr')

NameError: Field name "to_bytes" shadows a BaseModel attribute; use a different field name with "alias='to_bytes'".


Integration with other open source models

I've been playing around with other language models such as GPT4all, Vicuna 13B, Alpaca and the results have been promising so far. Is there any way for me to test SuperAGI with other open source models? That would be great!

Bump on this! Just getting into the project, curious to see how this one evolves

@Phoenix2809 Maybe scoot to a discussion, instead of an issue?

There's been a PR! : https://github.com/TransformerOptimus/SuperAGI/pull/289

Local LLM support is currently live. Follow here: https://github.com/TransformerOptimus/SuperAGI/pull/289
Hence closing this.


[FEATURE]: Not-allowed alert in tailwind

Description
Need to create code for Not-allowed alert as per below image.

The final code should be placed under path tailwind_components/alerts with file name as not_allowed_alert.jsx
The file as to be imported to tailwind_components/alerts/collection.js file as per example and added to the alertCollections list
The alert should close on clicking cross icon
Post these process, go to components tab (components/alert) in website and check whether the codepen is updated

For PR reference - https://github.com/jsvigneshkanna/tailwind_ui_components/pull/76/files
For any issue while creating / importing the component code file, check below sample files
https://github.com/jsvigneshkanna/tailwind_ui_components/tree/master/tailwind_components/buttons
For icons please refer - https://heroicons.com/
Screenshot of the tailwind component

Are you taking this fetaure implementaion
no

Hey, I want to contribute to this project. Please assign me!

@raazseth , sure please go on
Also check for other alert components too!

There is no hacktoberfest-accepted label, So I just need confirmation if this part of the code is Hacktoberfest or not.

@raazseth ,
Apologies, missed this isssue's labels. But your PR would be counted to hacktoberfest as this repo has hacktoberfest labels

@raazseth , reopened this issue, this will be counted towards hacktoberfest

Made a new PR #135. Please check it!

Closing as done @raazseth
Thank you for your valuable contributions

The


Add Danger-Swiftlint

Codecov Report

Merging #81 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #81   +/-   ##
======================================
  Coverage    98.5%   98.5%
======================================
  Files          32      32
  Lines         469     469
======================================
  Hits          462     462
  Misses          7       7

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 86369f0...77a7e35. Read the comment docs.


Support file uploads using a stream

The current implementation requires a file to exist in the local filesystem, which is an uncommon scenario for production use cases. Instead, files are typically either stored in an appropriate external storage system like GCS or are supplied directly by the user over the network.
This change adds the ability to supply a file upload as a stream, and improves the existing filesystem flow by streaming the file's contents rather than attempting to load it into memory first (it was previously using the blocking call, which is only really appropriate for init stage file loading, quick demos, or systems that don't need to support concurrent requests).

Heyo - I just want to check whether a streaming approach is something that will be considered in this project. We've been patching this locally during development, but if this is unlikely to be merged or made possible through an alternate implementation, we'll just go ahead and publish a fork of this package.

In case it's helpful to anyone, here's a pretty straightforward workaround, largely just copying the existing implementation.

Really appreciate you trying to PR this, and thank you for the workaround.


codestyle

Codecov Report

Merging #50 (3de7f16) into master (552a695) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #50      +/-   ##
============================================
- Coverage     99.26%   99.25%   -0.02%
  Complexity      122      122
============================================
  Files             4        4
  Lines           272      267       -5
============================================
- Hits            270      265       -5
  Misses            2        2

Impacted Files
Coverage Δ

src/Tokenizer/Token.php
100.00% <100.00%> (ø)

src/Tokenizer/Tokenizer.php
100.00% <100.00%> (ø)

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 552a695...3de7f16. Read the comment docs.


Chore: Fix vscode test, add basic vitest, clean-up package tasks

Added basic unit testing via Vitest

Fixed VSCode testing

Previously, tests were not running. Updated the configuration to point to a new directory for segmenting VSCode-specific tests.

Updated the tsconfig to output CommonJS:

The extension is built with esbuild, so this change does not affect the extension build process.

This is necessary because VSCode needs to load the extension and execute the test JavaScript code. The solution is to build to CommonJS in the out directory, allowing VSCode to load the VSIX extension and then call the test JavaScript code in out.

Added some very basic tests to verify that the extension loads and works. These can obviously be expanded later.

Added a CI workflow to GitHub Actions to run the basic test suite on PRs and the main branch. (See this in action here - Runs in around 30s.)

CI runs linting, formatting and testing on every push to main or on PRs targeting main.

TODO: WebUI tests are not running yet; this is likely better suited for a separate PR.

@saoudrizwan I simplified this down to be a pretty basic sanity test, plus a small example test. The only additional package in 'vitest', but I'm open to alternatives

Thank you Mark! 🙏


Support Tracing for Rate Limit Service

Description:
Tracing is supported in the RateLimit Service today https://github.com/envoyproxy/ratelimit?tab=readme-ov-file#tracing
This can be exposed via the EnvoyGateway API https://gateway.envoyproxy.io/latest/api/extension_types/#ratelimittelemetry

A small question, my idea is: add support at the api level, and at the same time add the enable/disable trace function for ratelimit at the infra level, right?  :)

yah @ShyunnY it would look very similar to https://github.com/envoyproxy/gateway/blob/main/api/v1alpha1/tracing_types.go but live in the EnvoyGateway config within RateLimit

/assign


Database name update doesn't update the references in other resources

Provider Version
0.16.0
Terraform Version
v0.13.3
Describe the bug

Create a snowflake_database with name db01
Create a snowflake_schema and snowflake_stage attached to db01 database
Change the database name to db02, and schema and stage names to new names and run terraform apply
Database gets updated, but when it comes to updating schema and stage, an error message Database  "db01" does not exist is shown.
Edit the file terraform.tfstate manually and replace the references to db01 with db02 and rerun terraform apply
Resources get updated successfully.

Expected behavior

Create a snowflake_database with name db01
Create a snowflake_schema and snowflake_stage attached to db01 database
Change the database name to db02, and schema and stage names to new names and run terraform apply
All resources get updated at the same time without an issue.

Code samples and commands
Above description might provide enough information.
Additional context
The IDs of the other resources that refer to databases should be updated when an update happens to database resources. I was not able to find a good example of where this happens at the moment in other providers.

I think the problem is in the fact that the ID contains the database name (in many resources). And to replace ID terraform has to re-create, so you would loose your schema (and data) if the provider runs DROP SCHEMA ...; CREATE SCHEMA...
This is kind of unfortunate - but afaik Snowflake does not provide unique object IDs like Microsoft SQL Server - where you would be able to assign for every table, schema, database a unique number.

I think @funes79 is right on this one. If you disagree @chamilad, some example code would be helpful.

Maybe we should ask Snowflake to expose their object id's via some system level table or view or function call (Like Microsoft does here https://docs.microsoft.com/en-us/sql/t-sql/functions/object-id-transact-sql?view=sql-server-ver15) and then we could rewrite the whole provider to use those :-)

@funes79 that would be very helpful, for sure

Thinking about this more, I think I agree with your idea on this is @funes79 @ryanking .  As an outcome of this issue, should this behavior be documented (if not already done)?


Add support for Leap UnityModules 4.9.1

Overview
Add support for 4.9.1 UnityModules - release notes available here.
Verification
Run through Using Leap and try out the example scenes in Head and Desk mode. 4.9.1 can be downloaded from the release page above or from the Ultraleap Developer Site.
Pull request for the docs repo to come shortly.

@keveleigh @Craig-J I'm just sitting together with UltraLeap in the MS MTC in Munich :) I think in general enabling every single minor version of LeapMotion is exhausting. It seems since version 4.7.1 the versioning mess is gone and the asmdef is also not needed anymore. I suggest we either use a regex for the version check like 4.* or just automatically allow all new versions. I will reach out to the UltraLeap dev team to make them aware of this issue.

I'm part of the dev team at Ultraleap which is responsible for UnityModules. I don't think it's a lot of effort to support new versions especially now that we're back on track keeping the version.txt up to date.
We will likely want to revisit the configuration checker in the next major versions of both our plugin (5.x - as there is likely to be breaking changes requiring new or modified logic) and MRTK (3.x - the major version bump is an opportunity to remove any deprecated logic no longer required for UnityModules versions that the MRTK team no longer want to support).

@Craig-J thanks for the clarification. And sorry, I didn't see that you're from ultraleap :) We were prototyping an ultrahaptic integration for MRTK/HoloLens 2.

We will likely want to revisit the configuration checker in the next major versions of both our plugin (5.x - as there is likely to be breaking changes requiring new or modified logic) and MRTK (3.x - the major version bump is an opportunity to remove any deprecated logic no longer required for UnityModules versions that the MRTK team no longer want to support).

@Craig-J Yes we will, MRTK v3 will likely utilize the LeapMotion OpenXR plugin (https://developer.leapmotion.com/openxr) and remove the logic required for the v2 configuration checker.


Unable to restore from PG snapshot

Environment
Docker-compose
Alternatively, what release or Git revision are you using:
6.1.0
Platform

[ x] Linux / Ubuntu
[ ] Linux / Other
[ ] macOS
[ ] Windows

Platform version:
20.04LTS
Runtime

[ ] Node.js
[ x] Docker

Runtime version:
Server: Docker Engine - Community
Engine:
Version:          20.10.2
API version:      1.41 (minimum version 1.12)
Go version:       go1.13.15
Git commit:       8891c58
Steps to reproduce the bug
RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/12/db-sync-snapshot-schema-12-block-6793499-x86_64.tgz
docker-compose up -d
What is the expected behavior?
PG restored from snapshot and started
Observed behavior
cardano-db-sync-extended_1  | db-sync-snapshot-schema-12-block-6793499-x86_64.tgz: OK                                                                   [92/1995]
postgres_1                  | 2022-01-27 16:35:11.252 UTC [182] ERROR:  cannot drop objects owned by role postgres because they are required by the database syst
em
postgres_1                  | 2022-01-27 16:35:11.252 UTC [182] STATEMENT:  DROP OWNED BY CURRENT_USER;
cardano-db-sync-extended_1  | ERROR:  cannot drop objects owned by role postgres because they are required by the database system

Try dropping the postgres and db-sync volumes and retrying: https://github.com/input-output-hk/cardano-graphql/wiki/Docker#rebuild-cardano-db

See: Getting started with Cardano GraphQL

Dropping the volumes did not work for me.


Library not work in SPI1 only works in SPI0

My question is simple, I need it to work on SPI1, so I see I change the pins and it doesn't work, only on SPI0 is it possible to make it selectable?
Thank you so much.

 I don't think I'll answer this type of question next time
Anyway, check RASPBERRY_PI_PICO pins_arduino.h#L44-L48 and see ArduinoCore-mbed core only support 1 SPI
// SPI
#define PIN_SPI_MISO  (4u)
#define PIN_SPI_MOSI  (3u)
#define PIN_SPI_SCK   (2u)
#define PIN_SPI_SS    (5u)

while as in rpipico pins_arduino.h#L17-L26, arduino-pico core can support 2 SPIs
// SPI
#define PIN_SPI0_MISO  (16u)
#define PIN_SPI0_MOSI  (19u)
#define PIN_SPI0_SCK   (18u)
#define PIN_SPI0_SS    (17u)

#define PIN_SPI1_MISO  (12u)
#define PIN_SPI1_MOSI  (15u)
#define PIN_SPI1_SCK   (14u)
#define PIN_SPI1_SS    (13u)

In order to use something special and custom, it requires some more research, even some modifications done by yourself.

Moreover, check Librrary's Features

This library was created as an effort to use SD Card while the arduino-pico core still has issue SD card FILE_WRITE issue #214, which has been fixed from core v1.8.6.
It's better to use the built-in SD library for Earle Philhower's arduino-pico core v1.8.6+.
But if you need to write codes to be used in both Arduino-mbed RP2040 core and Earle Philhower's arduino-pico core without having to modify the code, you can have the option to use this library.

Thank you very much for the answer, I installed the pico core and the problem was solved. I already read the SD now I have to see how to make the BMP visualize me but it is with another library.
It served me a lot.
sorry for not giving you more info.
I still can't see the bmp but I rescue the attributes, which is a problem with my program that reads the BMP file.
Regards.

I'm glad you've solved the issue and appreciate  you post the good result / experience, which will also help many other users
Regards,

Thanks to your help and the author of the tft_espi library for the raspberry pico I was able to play BMP files with the SD and on the 3.5 "display of the raspberry pi.
I'll pass it to you in case anyone is interested.
This is the project link:
https://github.com/AndresBellero74/Raspberry-PI-PICO-display-RPI35
Regards.


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add wasm in MIME-types

Hi, i test simple example from https://developer.mozilla.org/ru/docs/WebAssembly/Using_the_JavaScript_API, and get the error "response has unsupported MIME types"
I added application/wasm in 4 places in ABC.js final bundle and everything is working well now!
screenshot: https://user-images.githubusercontent.com/75129392/102251578-5fa86a00-3f48-11eb-8f8c-b70d545810cd.jpg
I think, you may want to add this MIME in the next update so that other developers do not encounter this error!

fixed on https://github.com/zhmushan/abc/commit/df36b1baff6495b15c44c7681373a058cd9f2054


Don't add comment if already inside a comment

Love this extension - right now if I'm already in a comment - it would be nice to not add the //
like this
Start: /* eslint */
Then the snippet gives me this:

I googled around and don't see any support for knowing if you are in a comment block already.
Going to close out as will not address.
Have a good one Wes, I've enjoyed your content over the years.


Update Spring Boot to 2.5.5

Might be a relevant milestone for resolving Java 17 issues

Yeah it seems like this fixes the issue with exporting the module to lombok


Don't use Spring MVC annotations on Feign by default

I did it originally for familiarity. Developers are trying to share the interface between the client and server. I'd rather use Feigns default parameters than promote that practice.
@adriancole @dsyer @mstine @mheath any opinions?

yeah it is too tempting. Ex. in feign itself, there are a fraction of devs
tempted to share JAX-RS interfaces, and it works until it doesn't. When it
doesn't, it is a mutually awful experience because someone is "so..
close.." to having what they need work on both client and server side, but
making that happen begins a yak hair-weave studio.
iotw, yeah I'd recommend against feigning server interfaces as client ones.

@joshlong or @kbastani any thoughts?

I don't really know that this is a case of promoting bad practices or that it is really just a requirement of someone's bad architecture decisions (referring to #646). What we have here is a good pattern for implementation but a side-effect of bad practice leading to tight coupling. I say we keep the annotations and be opinionated in the documentation that it isn't advised to try and use a Feign client by extending a shared interface that the server-side controller has implemented. It is far better for service teams to publish versioned feign clients as artifacts so that client-side teams don't have to write them. The upside to this is that you can write integration tests against your versioned client-side contract and break the build, preventing breaking changes to consumers of the service. Alternatively, you can throw an exception in a controller that implements an interface with a feign client annotation.

Additionally the Feign support is still akin to a Spring Data repository like experience for building REST clients. It's powerful and convenient.

I'm not saying drop feign support. Just support for using the mvc annotations. So instead of @RequestMapping you use the feign annotations like:
interface GitHub {
  @RequestLine("GET /repos/{owner}/{repo}/contributors")
  List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);
}

Maybe springmvc annotations is opt-in, rather than the default?

Maybe use @ResponseMapping instead of @RequestMapping

looking forward, Spring 5's  reactive story features - wherever possible (of course) - Spring MVC annotations like @RequestMapping. it'd make sense to keep this support and let those annotations become a lingua franca for all things declarative and HTTP in Spring-land. Plus, it's one less conceptual jump. I think people would sooner use the JAX-RS annotations than anything Feign-specific, and I can't see how that's any better an outcome (not to mention an easier cognitive leap)

If the server side client artifact offers versioned Interface's (that shall be done always if not downwards compatible) with  Mvc Anotations, why to forbid to make use of this contract on client side?
I think it's worth to point out in in which situations you could be drapped into the "yak hair-weave studio" and therfore it's no good practice. I can't see also why its better mixing JAX-RS anotations  with Feign instead of MVC.

I think the general problem with trying to share HTTP server interfaces w/ clients fall in at least three categories:

state that's totally irrelevant on the client (such as a parameter for a pending http response), yet passed as args... and visa versa
needing to keep track of who you are (client or server) to understand method-scoped annotations. Ex. content-type, accept etc.
server interfaces tend to be fancier than clients, which leads to more deps and/or understanding required to understand what clients should not interpret.

All of the above doesn't mean it is a fools errand, some things can work well enough (provided one actually answers what enough is). Regardless, the result of attempts to share interfaces not designed to be shared usually means maintenance++ (and not very fun maintenance to review or maintain later)

We find feign spring-mvc annotations support useful for end-to-end testing spring boot apps using @WebIntegrationTest. We simply generate an interface off the controller, make it a feign client, and start using it in our tests. We've used a similar approach with CXF's(JAX-RS) JAXRSClientFactory and its been working great as well.
I'd like to suggest we keep this support primarily to ease end-to-end testing above all other reasons.

Hi,
This is related to https://github.com/Netflix/feign/issues/391
On server side, we consumes and produces specific type of content
Now, I was using feign client. What It does in case of GET when there is no requestBody it neither adds Content-Type to headers nor it creates a blank RequestBody and adds mediaType by converting Content-Type header. Whereas if the request is POST/PUT it create empty RequestBody if it is passed null and also passed the mediaType.
Shouldn't it be added Content-Type to headers in any of the above case because server consumes only specific type of Content. If we don't send Content-Type then server throws Unsupported media type exception.
My application is Spring based.

@gauravrmazra is that relevant to the discussion here? If you are asking a new question or want to request a new feature, can you open a new issue?

@dsyer  I was redirected to this issue when I originally asked my question in feign okhttp project. Any how this is not related to spring-cloud-netflix.
Sorry for any inconvenience. :(

ps I referred to this issue, because it was an example for where using the same interface on the client and server became troublesome, in this case confusion on how to handle Content-Type (ex there's desire to send Content-Type when requesting content as opposed to Accept). If we didn't support using the same interface on the client and server side, folks wouldn't run into confusing topics like this.

I'd like to make the Spring MVC annotations opt-in in Edgware.

Sgtm want to summarise rationale and/or link to issue that led to this?

Please don't deprecate, we sucessfully use this Api contract first provided
from the service app
Adrian Cole<EMAIL_ADDRESS>schrieb am Do., 6. Okt. 2016, 02:18:

Sgtm want to summarise rationale and/or link to issue that led to this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/spring-cloud/spring-cloud-netflix/issues/659#issuecomment-251835936,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYARio-2Nyg8ZrmjYkFJcTdh8ZUsyUrks5qxD5HgaJpZM4Gmy8_
.

@cforce I guess deprecation might be too strong a word. It would not be enabled by default, you would have to opt in.

On balance we believe that people will use MVC annotations even if they are not the default. So we can’t take them away, and therefore they might as well be the default.

feign must use @RequestMapping ,why can't use @PostMapping ?

@maliqiang, please don't comment on unrelated issues. As far as I know you can use post mapping


What do we mean by "training doesn't work very well"?

In the readme file, there is a mention - "training doesn't work very well."
What does it mean by that? Request you to please elaborate.
Also, if there is a way to fix it, please suggest.
Also, can you suggest what is the size of the training data required for training?

Hello,
Thanks for the issue. I wasn't being clear in the readme. I meant to say that the training script has some bugs right now. You can't just take the training script and begin to train your own model.
You should have at least 20K training samples. In general, you want to maximize both the quantity and quality of the training data.
I hope this helps!
Neil


Add ability to change div-container class name

I need to change popover div-container class name to apply my own styling through separate css file, not through props containerStyle

@iJoyCode I've added support for this feature in 3.3.0, now published to npm!


menu connector not showing ticks where buttons are generated via the first page to last page options.

Hi all
I just committed an optional property to allow the menu connector to span multiple columns. https://github.com/thexerteproject/xerteonlinetoolkits/commit/92e82d98a75c97a24dea92a6df03c958732fed94
That all works fine except in testing I noticed a bug and can't work out what's causing that bug. As far as I can see it's not my commit that has caused this because I checked on a separate copy of develop that doesn't have my changes. I also tested on a 3.9-13 install and it works fine on that too.
To replicate:
Create a new project and add a menu connector page or add a menu connector page to an existing project.
Set the optional property to Tick When Viewed.
Use the First Entry and Last Entry optional properties to link to a set of pages rather than adding manual links to specific pages.
Use the menu or navigate to the linked pages then back to the menu. No ticks are shown?
Duplicate that menu connector and remove the First Entry and Last Entry options and add some manual links to pages.
Use the menu or navigate to the linked pages then back to the menu. Ticks are now shown?
@torinfo @FayCross Can you replicate this? Any idea of the cause/solution?

I made some changes to this page a couple of weeks ago so I might have caused this. I’ll look when I’m back in.

I made some changes too, so I will check as well.


New View Layer

Currently in PPI there is a PPI\View component.

It supports specifying a 'layout file'.
Then you have an 'action file' which is specified by your controller's action.
You can pass parameters into your template process from the controller.
You can pass options to the rendering process to tell it wether this is a 'parital' load, to just load the action file, or load the entire template as normal.
It has multiple "Template Adapters" which consist of PHP, Smarty, Twig.

I would much prefer to re-use an existing libraries implementation of the above, have something to connect my controller to.
I looked at ZF2's View implementation, it looked a bit crazy and over-complicated, but maybe theres parts we can cherry pick ?
What about symfony?

This looks pretty clean
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Templating/PhpEngine.php#L304

Specs

Fundamentally needs to load .php files from specied $path
Needs 'extend' functionality which i've seen as $view->extend() on some SF code
Needs 'slots' helper functionality to introduce 'blocks' or 'sub-views'


The tests are broken due to broken mpich dependency

ResolvePackageNotFound:

mpich==3.2=5

Should it not be

mpich2 1.4.1p1 0
as seen from
conda info mpich2

Solved, test are fine again.
Both for linux and mac OSX the environment create has been successfully tested with the dropped mpich dependency.
For linux replacing
mpich=3.2=5
by
mpich2=1.4.1p1=0
did also work. However if the dependency (or its specification) of mpich is not needed, it can be dropped.
Closing the issue.


Feat: Change the font style

Describe the feature
I woud like to change the fonr style to something more simplistic and professional
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Hello @Suchitra-Sahoo, I'm interested in contributing to the project by enhancing project's visual appeal by improving font styling. Could you please assign this task to me under GSSoC'24 with appropriate level?

Hi @Suchitra-Sahoo
I hope you are doing well.
My name is Aakanksha Singh, and I am a participant in the Girlscript Summer of Code 2024. I am very interested in working on this issue because it aligns with my interests in frontend development, and would make this project more visually appealing.
Could you please assign this issue to me? I am confident that I can address it.
Thank you for considering my request. I look forward to contributing to this project.

Hello @Suchitra-Sahoo
I'm interested to contribute in this issue because this is the field of my interest. So, please assign this to me.
Thank you

I want to work in this issue. Please assign me this task.


[FLINK-7000] Add custom configuration local environment in Scala StreamExecutionEnvironment

See description in FLINK-7000

you're modifying an existing method, didn't you mean to add a new one?

Hi @zentol , thanks for taking time for reviewing :)
It was my original thought.
However turns out due to Scala supports default value in parameters, in order to achieve same behaviour as Java, adding a new method is not working here.
This is what currently Java has:
1. createLocalEnvironment()
2. createLocalEnvironment(Int)
3. createLocalEnvironment(Int, Configuration)

Before this PR, in Scala we have:
createLocalEnvironment(Int = defaultValue)

So a Scala user can access this method by createLocalEnvironment() or createLocalEnvironment(someValue).
If I add another method createLocalEnvironment(Int = defaultValue, conf = defaultValue), compiler will complain because at this moment createLocalEnvironment(someValue) is ambiguous.
My opinion is by just adding a parameter with default value to existing method, it doesn't change the existing way to access the method.
How do you think?

This method is part of the public API and thus must not be changed.
Does the compiler still complain if there is no default value for the configuration?

Do you mean a new method with createLocalEnvironment(Int, conf)?
By this way compiler won't complain, just both the value have to be entered.
However, I do agree that the way that you have suggested could allows user to pass in custom configuration without modifying public API
I could update the PR in a moment.

Hi @zentol ,
I have updated PR by adding a new method without default values.
Thanks =)

Thank you @zentol !


CARLA 0.9.13 crashes with vulkan device error

CARLA version: 0.9.13
Platform/OS: Ubuntu-18
Problem you have experienced: Carla release package: Using ./CarlaUE4.sh  crashes with not a compatible vulkan device found error. However, Carla 0.9.11 launches without an issue.
vulkaninfo | less gives me the following output

Edit: I think, the issue is caused by the new Unreal Engine version. I tried to find the vulkan version that Unreal 4.26 needs, I could not find any information.

Is CARLA 0.9.13 compatible with only Ubuntu 20 LTS?

Resolved the issue by downgrading the nvidia driver from 495.x to 465.x.

building from source make launch works, but when I package or use the already shipped version from the team, I always get the above error. Please let me know where I'm going wrong!

I have the same issue. Have you solved that? Thanks a lot

I have the same issue


When entering an educator name for a Service, autocomplete doesn't work when you've typed a comma.

If a valid educator's name is "Principal, Laura" and I start typing that in, the autocomplete window will suggest her name to me up until I type the comma. Then it stops.

I was running into this with my autocomplete changes. Is this the only name that seems to be an issue?

I think it's any name.

Cool, I think I found a suspect. Check this out (Under the String section). Typing "Teacher" into the box will send off a GET to /educators/services_dropdown/?term=teacher. I'm willing to bet that /educators/services_dropdown/?term=teacher, test will cause issues. I'll leave it be for now so maybe someone new can jump in at CFB!

@awalker4 @erose The filtered_names method in EducatorsController line 30 may be relevant here.


Base structure

Man, please create base structure of baron and add to tutorial.
I have been workiing with baron already two hours and dont understanding how it works.
For example
HTML

bla bla bla
CSS
.baron{}
.baron_scroller{}

bla bla bla
only rules that real needing for initialize baron
JS
baron({
   scroller: ''
});

only options that real needing for initialize baron
Thanks

Same stuff for me)

HTML

                           // Your content

CSS
you need @import "~baron/skins/styles.css" and select one of 3 classes(for example baron__clipper _simple like this) and your element(in this example element with id=#baron_1 must have a height, for example 300px
JS
baron({
				scroller: `#baron_1`,
				track: `.baron__track_1`,
				bar: `.baron__bar_1`
			});


Double Quote FeedKeys expr-quote \e for Error Bell

Looks like the quotes were flipped for the escape character. I haven't been able to test this in Vim yet (my docker env is borked).

Thanks for your work @ChrisCoffey, LGTM!

Boom, I just tested cherry-picking this commit before @jvican merged it, and it fixes the issue on #168 for me. Thanks!


Systematic logging overhaul

Logging is currently messy depending on the module with competing formats leading to non-uniform output logs.
Proposed standard:

date - module - operation - extra info

An example search of good logging should be undertaken to decide the future direction.

This has been largely cleaned up over time and the Tornado style has been standardized upon. Closing this, lets open specific issues as they come up.


Event Hubs trigger v5 with user-provided client utilizing Managed Identity

Question
Hi, I am trying to implement an Azure Function with Event Hubs trigger using prerelease version v5. But without providing "Connection" parameter at all. I see from the docs that it is possible to add functions settings with either conn string or namespace (to utilize Managed Identity). However, I'm using external configuration so I would like to provide my own client for the trigger to use, but I don't see a way to do so and seeking for advice\plans for this "feature?".
Working Service Bus sample
Here is an example of the end goal working for Service Bus, the trigger itself - no explicit connection:
ServiceBusTrigger("TOPIC_NAME", "SUBSCRIPTION_NAME")] MyEntity entity

Then in a FunctionsStartup:
public override void Configure(IFunctionsHostBuilder builder)
{
     ....
     Azure.Core.TokenCredential credentials = ....
     builder.Services.AddAzureClients(cfg =>
     {
           cfg.AddServiceBusClientWithNamespace("BUS_NAMESPACE").WithCredential(credentials);
     });
}

Issue with Event Hubs
Now similar trigger for Event Hubs:
[EventHubTrigger("HUB_NAME")] string[] data

and relevant section of FunctionsStartup:
public override void Configure(IFunctionsHostBuilder builder)
{
     ....
     Azure.Core.TokenCredential credentials = ....
     builder.Services.AddAzureClients(cfg =>
     {
           cfg.AddEventHubConsumerClientWithNamespace("$Default", "HUBS_NAMESPACE", "HUB_NAME").WithCredential(credentials);
     });
}

I thought that would work the same way, but I get an exception originating from EventHubClientFactory.GetEventProcessorHost line 116 (at the time of writing this):
InvalidOperationException("No event hub receiver named HUB_NAME");
Looking through the code of (Microsoft.Azure.WebJobs.Extensions.EventHubs 5.0.0-beta.5) library I see why - if I don't provide connection then I cannot use the trigger. Method of interest is EventHubTriggerAttributeBindingProvider.TryCreateAsync where the listener gets created by invoking EventHubClientFactory.GetEventProcessorHost and EventHubClientFactory.GetEventHubConsumerClient (there's the same issue if I follow the logic correctly).
So, the question is am I missing something here or there's no way to do it the intended way?
If no, then if there are any plans\roadmaps\workarounds (as last resort) for this "feature"?
Thanks in advance!
Environment:

Name and version of the Library package used: Microsoft.Azure.WebJobs.Extensions.EventHubs 5.0.0-beta.5
Other related packages: Azure.Messaging.EventHubs 5.4.1; Microsoft.Extensions.Azure 1.1.0-beta.3; Microsoft.Azure.WebJobs.Extensions.ServiceBus 4.2.1; Microsoft.Extensions.Configuration.AzureAppConfiguration 4.1.0
Hosting platform or OS and .NET runtime version: Windows 10 .NET Core 3.1
IDE and version : Visual Studio 16.7.6
Azure Functions: C#, v3: Microsoft.NET.Sdk.Functions 3.0.11

Thank you for your feedback.  Tagging and routing to the team members best able to assist.

Hi @IvaskevychYuriy,
Can you let us know what your configuration looks like here (making sure to redact any sensitive information)?
Looking through the code, I see that in the case of Service Bus we fall back to a well known config key of AzureWebJobsServiceBus, but there does not appear to be an equivalent for EventHubs.

Hi @JoshLove-msft,
Sure, so configuration-wise we use Azure App Configuration and pull data from there and you're correct, Service Bus uses 'AzureWebJobsServiceBus' by default from what I can see in the code for ServiceBusTrigger.
But actually, I think I've found an issue, after second day of troubleshooting this, it turns out there was exactly 'AzureWebJobsServiceBus' buried in launchSettings.json containing a direct connection string that was not replaced on deployment. That alone was causing a lot of troubles on non dev env, but that's another story.
Basically, I've refactored all that stuff into populating env variables (from local.settings.json or deployment pipeline).
Now both ServiceBusTrigger and EventHubTrigger contain Connection = "<config_key>" and Managed Identity works as expected in both cases now when setting "<config_key>__fullyQualifiedNamespace": "..." as per docs . It indeed has nothing to do with client provided via AddAzureClients() and the trigger creates its own instance. Side note, also bumped package Microsoft.Azure.WebJobs.Extensions.ServiceBus to 5.0.0-beta.3 for this to work.
So, I'm sorry, this was my fault - not an issue. Anyway, much thanks for the help, that actually pointed to the real problem!
This topic can be closed then, thanks again!


Handle views arguments

It's a mix of regex parameters, function arguments and views arguments.

Actually views arguments are handled by the user, overriding the get(self, request, *args, **kwargs) method of the view.


(MODULES-8819) Release prep 2.0.1

Codecov Report

Merging #21 into release will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           release      #21   +/-   ##
========================================
  Coverage    89.89%   89.89%
========================================
  Files            6        6
  Lines          188      188
========================================
  Hits           169      169
  Misses          19       19

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 bd5cdde...19d802a. Read the comment docs.


Fixes minor typo

@nickludwig
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Include Hooks in All Steps report to track failures related to Hooks

Is your feature request related to a problem? Please describe.
Currently all steps shows only the status of BDD steps/stef defs. However, if we have test failures in hooks, that detail is not being captured.

In above sample report, the test steps got passed but the test has been marked as failure as there is an issue with hooks. And this details I don't find in All Step view. I do understand, that page has been created to get an overview of a quick healthcheck snaps of the step definitions. However, keeping tab on the hooks will also be helpful.
Moreover, the dashboard says this test is failed but when I open the test report, the dashboard inside test specific report says, it is passed. If I have an issue with hooks and I tag it as failure for my overall report, I should see this test as failed here as well. If we can include any mark or a legend to confirm we have issue with hooks, that will avoid the confusion when the report is being reviewed by business with no visibility on the technicality report.
Currently, if I compare the sample report, the dashboard says there are 9 failures but the all step page says 6 failures. This may vary how we have handled the assertion and exceptions. But in case of sample report, i hope, both count should match and this can be achieved if we will project the hooks related failures in that list as well. Again this will give a quick overview around how many test failed just in hooks with no impact on test/functional flow.
Describe the solution you'd like
We can add a toggle just like the one we have in Test Report to include Hooks into list. So user will have flexibility there and the failure count in dashboard will match the failure count in All step view

Will investigate this, thanks for reporting!


Update .travis.yml for faster runs

Use Travis container for faster tests.
Cache Bundler downloads.

Coverage increased (+0.03%) to 97.12% when pulling 0933cf20b57db4a281871f8c57ef746211dea173 on jc00ke:patch-1 into 62c37b89a36170d0081651707f51d6bc51859e52 on lotus:master.

@jc00ke Thank you, Sir. :+1:


Added install instructions to README

Toke me some time to get it going. now it should be easier

Thanks!
Seems like these instructions are for System.js users, right?

Yes

Thanks!


[bug] "ada results are only available when close to the network tip. This is expected during the initial chain-sync.

Environment
{
os: {
arch: 'x64',
cpus: {
count: 8,
model: 'Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz'
},
release: '5.4.0-1038-aws',
totalMem:<PHONE_NUMBER>2,
type: 'Linux'
},
version: '4.0.0'
}
Platform

[x] Linux / Ubuntu 20.04 LTS

Runtime

[ ] Node.js
[x] Docker

Runtime version:
node -v
v14.16.0
docker version
Client: Docker Engine - Community
Version:           20.10.5
API version:       1.41
Go version:        go1.13.15
Git commit:        55c4c88
Built:             Tue Mar  2 20:18:20 2021
OS/Arch:           linux/amd64
Context:           default
Experimental:      true
Server: Docker Engine - Community
Engine:
Version:          20.10.5
API version:      1.41 (minimum version 1.12)
Go version:       go1.13.15
Git commit:       363e9a8
Built:            Tue Mar  2 20:16:15 2021
OS/Arch:          linux/amd64
Experimental:     false
containerd:
Version:          1.4.4
GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version:          1.0.0-rc93
GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version:          0.19.0
GitCommit:        de40ad0
Steps to reproduce the bug
In any guild graphql playground running v4.0.0, paste:
query {
  cardano {
    tip {
      epochNo
      number
    }
  }

  cardanoDbMeta {
    initialized
    syncPercentage
  }

  ada {
    supply {
      total
    }
  }
}

The guild network has a 1 hour epoch length. The setup is on tip. No question about it. The ada supply should be queriable, but it isn't.
What is the expected behavior?
No error.

What do you get from thew following?:
query {
  cardanoDbMeta {
    initialized
    syncPercentage
  }

I got true and 100%.
I'm switching to postgREST and rpc functions for now and might give it a shot later again.


Data race while re-using IDLE connection, connection reset by peer

Version
hyper: 0.14.28
Platform
Linux / Mac
Description
I use hyper as a reverse proxy to some uvicorn servers which are configured with the default 5s keep-alive connection.
Sometimes an IDLE connection is re-used at the same time that it is closed by the uvicorn server, when it happen hyper starts to write the new request, then when it tries to read it failed with Error connection error: Connection reset by peer (os error 54) on Mac, os error 104 on Linux.
To reproduce the bug I make a request every 5s to the server, sometimes I hit the data race.

TRACE logs : Working request (closed connection is removed)
14:42:13.721  INFO Request: GET / main.rs:154
14:42:13.721 DEBUG Creating proxied request reverse_proxy.rs:173
14:42:13.721 TRACE take? ("http", <IP_ADDRESS>:5000): expiration = Some(15s) /Users/xcid/workspace/my-hyper/src/client/pool.rs:617
14:42:13.721 TRACE removing closed connection for ("http", <IP_ADDRESS>:5000) /Users/xcid/workspace/my-hyper/src/client/pool.rs:295
14:42:13.721 TRACE checkout waiting for idle connection: ("http", <IP_ADDRESS>:5000) /Users/xcid/workspace/my-hyper/src/client/pool.rs:643
14:42:13.721 TRACE Http::connect; scheme=Some("http"), host=Some("<IP_ADDRESS>"), port=Some(Port(5000)) /Users/xcid/workspace/my-hyper/src/client/connect/http.rs:278
14:42:13.721 DEBUG connecting to <IP_ADDRESS>:5000 /Users/xcid/workspace/my-hyper/src/client/connect/http.rs:542
14:42:13.721 TRACE flushed({role=server}): State { reading: KeepAlive, writing: Init, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.751 DEBUG connected to <IP_ADDRESS>:5000 /Users/xcid/workspace/my-hyper/src/client/connect/http.rs:545
14:42:13.751 TRACE client handshake Http1 /Users/xcid/workspace/my-hyper/src/client/conn.rs:1007
14:42:13.751 TRACE handshake complete, spawning background dispatcher task /Users/xcid/workspace/my-hyper/src/client/client.rs:515
14:42:13.751 TRACE flushed({role=server}): State { reading: KeepAlive, writing: Init, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.751 TRACE flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.751 TRACE checkout dropped for ("http", <IP_ADDRESS>:5000) /Users/xcid/workspace/my-hyper/src/client/pool.rs:685
14:42:13.751 TRACE flushed({role=server}): State { reading: KeepAlive, writing: Init, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.751 TRACE Client::encode method=GET, body=None /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:1110
14:42:13.751 DEBUG flushed 240 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:318
14:42:13.751 TRACE flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.781 TRACE Conn::read_head /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:193
14:42:13.781 TRACE received 135 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:267
14:42:13.781 TRACE Response.parse /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:946
14:42:13.781 TRACE Response.parse Complete(133) /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:955
14:42:13.781 DEBUG parsed 4 headers /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:208
14:42:13.781 DEBUG incoming body is content-length (2 bytes) /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:224
14:42:13.781 TRACE decode; state=Length(2) /Users/xcid/workspace/my-hyper/src/proto/h1/decode.rs:127
14:42:13.781 DEBUG incoming body completed /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:300
14:42:13.781 TRACE maybe_notify; read_from_io blocked /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:471
14:42:13.781 TRACE flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.781 TRACE flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.781 TRACE put; add idle connection for ("http", <IP_ADDRESS>:5000) /Users/xcid/workspace/my-hyper/src/client/pool.rs:337
14:42:13.781 DEBUG pooling idle connection for ("http", <IP_ADDRESS>:5000) /Users/xcid/workspace/my-hyper/src/client/pool.rs:384
14:42:13.781 DEBUG Creating proxied response workload/sdk/src/utils/reverse_proxy.rs:157
14:42:13.781  INFO Response: 200 endpoints/proxy/src/main.rs:154
14:42:13.781 TRACE Server::encode status=200, body=Some(Known(2)), req_method=Some(GET) /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:342
14:42:13.781 TRACE sized write, len = 2 /Users/xcid/workspace/my-hyper/src/proto/h1/encode.rs:159
14:42:13.781 TRACE buffer.queue /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:595
14:42:13.782 DEBUG flushed 347 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:318
14:42:13.782 TRACE flushed({role=server}): State { reading: Init, writing: Init, keep_alive: Idle } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.782 TRACE flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.782 TRACE Conn::read_head /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:193
14:42:13.782 TRACE received 0 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:267
14:42:13.782 TRACE parse eof /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:248
14:42:13.782 TRACE State::close_read() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:955
14:42:13.782 DEBUG read eof /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:283
14:42:13.782 TRACE State::close_write() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:961
14:42:13.782 TRACE State::close_read() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:955
14:42:13.782 TRACE State::close_write() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:961
14:42:13.782 TRACE flushed({role=server}): State { reading: Closed, writing: Closed, keep_alive: Disabled } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:13.782 TRACE shut down IO complete /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:738
14:42:16.240 TRACE idle interval checking for expired /Users/xcid/workspace/my-hyper/src/client/pool.rs:796
14:42:18.859 TRACE Conn::read_head /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:193
14:42:18.859 TRACE flushed({role=server}): State { reading: Init, writing: Init, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:18.859 TRACE Conn::read_head /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:193
14:42:18.859 TRACE received 121 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:267
14:42:18.859 TRACE Request.parse /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:148
14:42:18.859 TRACE Request.parse Complete(121) /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:153
14:42:18.859 DEBUG parsed 3 headers /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:208
14:42:18.859 DEBUG incoming body is empty /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:224

TRACE logs : Failing request (closed connection is re-used)
14:42:18.860  INFO Request: GET / main.rs:154
14:42:18.861 TRACE take? ("http", <IP_ADDRESS>:5000): expiration = Some(15s) /Users/xcid/workspace/my-hyper/src/client/pool.rs:617
14:42:18.861 DEBUG reuse idle connection for ("http", <IP_ADDRESS>:5000) /Users/xcid/workspace/my-hyper/src/client/pool.rs:258
14:42:18.861 TRACE flushed({role=server}): State { reading: KeepAlive, writing: Init, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:18.861 TRACE Client::encode method=GET, body=None /Users/xcid/workspace/my-hyper/src/proto/h1/role.rs:1110
14:42:18.861 DEBUG flushed 240 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/io.rs:318
14:42:18.861 TRACE flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:18.890 TRACE Conn::read_head /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:193
14:42:18.891 TRACE State::close_read() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:955
14:42:18.891 DEBUG parse error (connection error: Connection reset by peer (os error 54)) with 0 bytes /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:273
14:42:18.891 DEBUG read_head error: connection error: Connection reset by peer (os error 54) /Users/xcid/workspace/my-hyper/src/proto/h1/dispatch.rs:274
14:42:18.891 TRACE State::close_read() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:955
14:42:18.891 TRACE State::close_write() /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:961
14:42:18.891 TRACE flushed({role=client}): State { reading: Closed, writing: Closed, keep_alive: Disabled } /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:731
14:42:18.891 DEBUG error shutting down IO: Socket is not connected (os error 57) /Users/xcid/workspace/my-hyper/src/proto/h1/conn.rs:742
14:42:18.891 DEBUG client connection error: error shutting down connection: Socket is not connected (os error 57) /Users/xcid/workspace/my-hyper/src/client/client.rs:517
14:42:18.891 ERROR Internal server error: Proxy error: Proxy Error Hyper Error connection error: Connection reset by peer (os error 54) /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/convert/mod.rs:757:9
14:42:18.891  INFO Response: 500 main.rs:154

TCP dump : Failing request (closed connection is re-used)

15:42:13.654447 IP <IP_ADDRESS>.commplex-main > xcid.57349: Flags [F.], seq 136, ack 241, win 488, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:13.654491 IP xcid.57349 > <IP_ADDRESS>.commplex-main: Flags [.], ack 137, win 2050, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:13.654798 IP xcid.57349 > <IP_ADDRESS>.commplex-main: Flags [F.], seq 241, ack 137, win 2050, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:13.685639 IP <IP_ADDRESS>.commplex-main > xcid.57349: Flags [.], ack 242, win 488, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:13.721730 IP xcid.57351 > <IP_ADDRESS>.commplex-main: Flags [S], seq<PHONE_NUMBER>, win 65535, options [mss 1240,nop,wscale 6,nop,nop,TS val<PHONE_NUMBER> ecr 0,sackOK,eol], length 0
15:42:13.751094 IP <IP_ADDRESS>.commplex-main > xcid.57351: Flags [S.], seq<PHONE_NUMBER>, ack<PHONE_NUMBER>, win 62643, options [mss 1460,sackOK,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>,nop,wscale 7], length 0
15:42:13.751142 IP xcid.57351 > <IP_ADDRESS>.commplex-main: Flags [.], ack 1, win 2053, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:13.751528 IP xcid.57351 > <IP_ADDRESS>.commplex-main: Flags [P.], seq 1:241, ack 1, win 2053, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 240
15:42:13.780872 IP <IP_ADDRESS>.commplex-main > xcid.57351: Flags [.], ack 241, win 488, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:13.781286 IP <IP_ADDRESS>.commplex-main > xcid.57351: Flags [P.], seq 1:134, ack 241, win 488, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 133
15:42:13.781287 IP <IP_ADDRESS>.commplex-main > xcid.57351: Flags [P.], seq 134:136, ack 241, win 488, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 2
15:42:13.781324 IP xcid.57351 > <IP_ADDRESS>.commplex-main: Flags [.], ack 136, win 2050, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 0
15:42:18.861644 IP xcid.57351 > <IP_ADDRESS>.commplex-main: Flags [P.], seq 241:481, ack 136, win 2050, options [nop,nop,TS val<PHONE_NUMBER> ecr<PHONE_NUMBER>], length 240
15:42:18.890857 IP <IP_ADDRESS>.commplex-main > xcid.57351: Flags [R], seq<PHONE_NUMBER>, win 0, length 0

Is it an issue with hyper, uvicorn or an expected data race ?

Unfortunately, this is somewhat expected behavior because of the racy nature of networking. The message from the server that it is closing the connection doesn't get to the client instantly, and so the client might use that connection.
The best way to deal with this is make your client side pool idle duration a little shorter than what the server is set to. For instance, if the server keeps things alive for 90s, a client idle timeout could be 88s, or something. Depends on your typical latency, too.

My old proxy was using actix awc and did not seems to have this issue.
I dug a little and it seems that awc tries to read from the connection before re-using it. If the result is not Pending then the connection is dropped.
https://github.com/actix/actix-web/blob/awc-v3.2.0/awc/src/client/pool.rs#L205
https://github.com/actix/actix-web/blob/awc-v3.2.0/awc/src/client/pool.rs#L279
I tries to implement the same logic in hyper but that not seems to be a straightforward change.
Is that something that could / should be added to hyper ?

hyper has read interest registered for the connection while it's sitting idle, so epoll should notify when the read closed event happens.
However, it could be that forcing a read anyways could help. I can't say either way. If it does, great!
I don't have in my mind exactly all the places the code would need to be touched to try that...

Looks like I also have the same issue with awc, I did not tried long enough the first time.
Thanks for the quick replies !


Expose Node Gradient In the Inspector

Allowing the gradient node from NME to be visible in the inspector.
https://github.com/BabylonJS/Babylon.js/issues/8787

LGTM!

@msDestiny14 I ll merge it as soon as the comments have been addressed :-)


Claudia - custom stage name and domain

Hi,
When i create a claudia project,

I wish to change stage name to /v1 - instead of /latest
i wish to determine (since i have custom url which is api.XXX.com) the XXX. before - how?
and how to api map it?

use --version v1 when you do claudia update or claudia create
I have no idea what you mean by XXX. You can map the API to it using ApiGateway Custom domains (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)

@gojko seeing that I create the API using claudia, is there a way I can connect my custom domain to that API in the claudia create script?

@naguibihab please use https://gitter.im/claudiajs/claudia for questions, we use github issues only for bugs


Previously, isScopeAffectingInstructionDead determined that an otherwise satisfactory load was not dead if it was a load [take]. The immediate effect was that dead load [take]s were not deleted.  The downstream effect was that otherwise dead graphs of instructions would not be deleted.  This was especially a problem for OSLogOptimization which deletes a great deal of code.
Here, the InstructionDeleter is taught to compensate for the deletion of such load [take] by inserting destroy_addrs in their stead.
rdar://117011668

@swift-ci please test

@swift-ci please apple silicon benchmark

@swift-ci please test source compatibility

### Performance (arm64): -O

**Regression**                          | **OLD** | **NEW** | **DELTA** | **RATIO**
:---                                    | ---:    | ---:    | ---:   | ---:
Set.isStrictSubset.Empty.Int            | 71.714  | 78.0    | +8.8%  | **0.92x (?)**
Set.isSubset.Empty.Int                  | 71.75   | 78.0    | +8.7%  | **0.92x (?)**
  | | | |
**Improvement**                         | **OLD** | **NEW** | **DELTA** | **RATIO**
EqualSubstringSubstring                 | 22.184  | 18.872  | -14.9% | **1.18x**
EqualSubstringString                    | 22.167  | 18.9    | -14.7% | **1.17x**
StringEnumRawValueInitialization        | 300.476 | 257.143 | -14.4% | **1.17x (?)**
EqualSubstringSubstringGenericEquatable | 22.05   | 18.871  | -14.4% | **1.17x**
LessSubstringSubstring                  | 22.028  | 18.865  | -14.4% | **1.17x (?)**
LessSubstringSubstringGenericComparable | 22.037  | 18.875  | -14.3% | **1.17x (?)**
EqualStringSubstring                    | 22.028  | 18.875  | -14.3% | **1.17x**
Data.init.Sequence.64kB.Count.RE.I      | 1.955   | 1.759   | -10.0% | **1.11x (?)**
CharacterPropertiesStashed              | 462.353 | 416.136 | -10.0% | **1.11x (?)**
StringFromLongWholeSubstring            | 2.174   | 2.017   | -7.2%  | **1.08x (?)**

### Code size: -O

### Performance (arm64): -Osize

**Improvement**                         | **OLD** | **NEW** | **DELTA** | **RATIO**
:---                                    | ---:    | ---:   | ---:   | ---:
RawBufferCopyBytes                      | 12.597  | 10.609 | -15.8% | **1.19x (?)**
EqualSubstringSubstring                 | 22.566  | 19.192 | -15.0% | **1.18x**
LessSubstringSubstring                  | 22.543  | 19.182 | -14.9% | **1.18x**
StringEnumRawValueInitialization        | 304.615 | 260.0  | -14.6% | **1.17x**
EqualSubstringSubstringGenericEquatable | 22.472  | 19.185 | -14.6% | **1.17x (?)**
EqualStringSubstring                    | 22.29   | 19.034 | -14.6% | **1.17x**
EqualSubstringString                    | 22.27   | 19.028 | -14.6% | **1.17x**
LessSubstringSubstringGenericComparable | 22.297  | 19.185 | -14.0% | **1.16x (?)**
StringFromLongWholeSubstring            | 2.33    | 2.172  | -6.8%  | **1.07x (?)**

### Code size: -Osize

### Performance (arm64): -Onone

**Regression**                          | **OLD** | **NEW** | **DELTA** | **RATIO**
:---                                    | ---:    | ---:    | ---:   | ---:
Array2D                                 | 46208.0 | 53392.0 | +15.5% | **0.87x**
Set.filter.Int100.24k                   | 62.35   | 69.848  | +12.0% | **0.89x**
Set.filter.Int100.20k                   | 52.375  | 58.6    | +11.9% | **0.89x**
Set.filter.Int100.16k                   | 42.375  | 47.351  | +11.7% | **0.89x**
Set.filter.Int100.28k                   | 74.636  | 83.345  | +11.7% | **0.90x**
ArrayAppendGenericStructs               | 771.538 | 845.0   | +9.5%  | **0.91x (?)**
  | | | |
**Improvement**                         | **OLD** | **NEW** | **DELTA** | **RATIO**
LessSubstringSubstringGenericComparable | 24.509  | 21.2    | -13.5% | **1.16x (?)**
EqualSubstringSubstringGenericEquatable | 24.485  | 21.236  | -13.3% | **1.15x**
LessSubstringSubstring                  | 25.87   | 22.457  | -13.2% | **1.15x (?)**
EqualSubstringSubstring                 | 25.396  | 22.278  | -12.3% | **1.14x**
EqualSubstringString                    | 26.14   | 23.0    | -12.0% | **1.14x (?)**
ObjectiveCBridgeStubNSDateRefAccess     | 3060.0  | 2828.0  | -7.6%  | **1.08x (?)**
ObjectiveCBridgeStubDateAccess          | 2268.0  | 2097.0  | -7.5%  | **1.08x (?)**
LineSink.scalars.complex                | 401.0   | 373.5   | -6.9%  | **1.07x (?)**
LineSink.bytes.complex                  | 401.0   | 373.667 | -6.8%  | **1.07x (?)**

### Code size: -swiftlibs

Source compat failure matches failure in baseline (CareKit).


Alex/run specs in parallel

Pull Request Test Coverage Report for Build 662

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.741%

Totals

Change from base Build 649:
0.0%

Covered Lines:
286

Relevant Lines:
286

💛  - Coveralls


feat: start Streamlit Dockerfile process

We should have a Dockerfile for people to use as a reference for getting this up and running in SPCS. We will need to ensure this works locally and then provide instructions for configuring and deploying the image to Snowflake.
I pulled the initial example for the file from the Streamlit docs.

The Streamlit app currently expects environment variables to be set and is looking for a NEWS_API_TOKEN environment variable. I think we should make this more generic and explore an alternative connection configuring strategy (possibly using connections.toml).


Avoid n+1 queries on Release.description

@miketheman noticed that the file upload view was executing a query for every single existing version that the uploading project has ever released. For projects that have been around awhile, that can mean thousands of queries.
To make matters worse, the  query it was loading was loading the Release.description column, which is a relation that points to a very large table that contains the long description of each release (both in it's raw form and in the rendered form), so it was loading our largest table, sometimes thousands of times in a single request.
Attempting to use raiseload or lazy="raise" on Release.description had no effect on the number of queries being executed, and reading through the SQLAlchemy docs, this appears to be expected if SQLAlchemy needs to execute that query to implement it's Unit of Work pattern.
Since it was triggering on every release, I guessed that it must be related to something causing SQLAlchemy to think every release was modified, so I started looking at this code:
releases = (
    request.db.query(Release)
    .filter(Release.project == project)
    .options(
        orm.load_only(Release.project_id, Release.version, Release._pypi_ordering)
    )
    .all()
)
for i, r in enumerate(
    sorted(releases, key=lambda x: packaging_legacy.version.parse(x.version))
):
    r._pypi_ordering = i

And indeed, when I removed this code completely, the N+1 queries went away.
It appears that SQLAlchemy is treating setting a column as a mutating action, even if we're setting the column to the same value that it currently holds. Since in the majority of cases we expect the r._pypi_ordering to stay the same, we can just check if the value needs to be updated, and only set the value if so.
To make matters worse, the ordering of releases can only change when a new release is created, but we were executing this sorting algorithm on every upload, so the N+1 queries were happening for every file upload rather than just the ones that could change the outcome of this query.
Technically, the N+1 queries can still occur, because it's not really N+1 queries, it's 1 query for every modified release, and the fix in this PR relies on the fact that typically people are releasing new, higher versions so the previous versions don't need their ordering number to be modified. However, if they do release a lower numbered version, then any version after that will be "shifted", and ultimately end up getting modified and trigger this behavior again.
That should hopefully be pretty rare, but if we wanted to protect against it, we could move this query out of the ORM completely and just build up a mapping of Release.id to Release._pypi_ordering and use the bulk update mechanism in SQLAlchemy "core".

Oh, and I have like 0 idea why updating Release._pypi_ordering, and integer column on Release makes SQLAlchemy think it needs to lazy load Release.description, a relationship to another table. I'm sure there's some reason, but I'm completely stumped as to why it would need to do that.


beta release

i pulled latest docker, but is it possible its not downloading the beta? only the 1.2 release?

ok, updated my old config, the non-docker version with beta files
but if i start it with "node app.js" manually, i always have the same error that i cant connect to the MQTT server , not authorized
verry strange, the config.js file is exactly the same ... if i start 1.2 , no issues
the only difference i see in the config.js file, is that there are a lot of extra comma files ,,,,,,

i needed to allow anonymous connections in my mqtt server , then it works
strange because in your config file, a user / pass was filed in, but seems its ignored

anyway, tried running the beta , downloaded that zip, did an npm install again
so beta is running, but i dont see any discovery in Home Assistant? not seeing automaticly new devices

Solved it ?

Yes


[python] Add unit tests for Python native code

This is especially critical for 'dynamics' helpers because some methods are quite complex and it would be nice to validate them. It is pretty "easy" to do it. For instance, it would be possible to run first a simulation, extracting only the motor position/velocity/acceleration, and try the recover missing data.

Part of the code is now partially tested though gym_jiminy unit tests, but it is clearly not enough, considering that now about 40% of the whole code base is pure Python.


[docs] Conditional validation not available for all validators

What steps will reproduce the problem?
See the docs: http://www.yiiframework.com/doc-2.0/guide-input-validation.html#conditional-validation
What is the expected result?
It should exist some information declaring that "... not all core validators have a when param available (e.g. 'safe')..."
What do you get instead?
Nothing talking about it. I tried to use an approach like 'when' => Yii::$app->user->can('admin') in a safe validator.
Additional info

Q
A

Yii version
2.0.8

safe is the only exception as it is not really a validator...

That is one more reason to have that information. To be either a marker or a real validator would not necessarily prevent it to have when. It is a simple info that can avoid a bit of wasting of time.
Thanks for mark it like type: docs.


added dashboard, search, firebase functions, image, responsiveness, f…

…unctioning as counsellor and as student, college detail view page
Description
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #(issue_no)
Replace issue_no with the issue number which is fixed in this PR
Screenshots

Checklist

[ ] Tests have been added or updated to cover the changes
[ ] Documentation has been updated to reflect the changes
[ ] Code follows the established coding style guidelines
[ ] All tests are passing

Avoid .bind() or local functions in JSX properties
I recommend to use this ...and their are too many bugs occurred let's fix this one by one
function CardWrapper() {
// handleClick is no longer recreated on every render.
const handleClick = React.useCallback((e) => displayCardDetails(e))
return
}
class CardWrapper_ extends React.Component {
handleClick(e) {
displayCardDetails(e)
}
render() {
    return <Card onClick={this.handleClick} />
}

}

@hereisSwapnil Update the PR according to latest changes !


Hey, from Devpost. #1

As you are working solo.
I am looking for a partner to work with for the upcoming Hackathon submission.
Are you willing to pair up?
There wasn't other way to message you, So...

What hackathon are you interested in working on?

Dear kira-kaur-sidhu,
Thank you for reaching out to me. I saw your project, quterus, and I must say, I liked it. Winning hackathons is not my main goal; what interests me most is the journey of learning and improving my skills. Participating in a hackathon can make the learning process more enjoyable and teach valuable soft skills, especially teamwork.
As of now, I don't have a specific hackathon in mind, but I find that our interests align, and I believe we could make great coding buddies. Having a partner helps with accountability and allows for learning from each other. Plus, it develops essential soft skills like empathy and communication.
Currently, I am focusing on various skills such as Python, JavaScript, Machine Learning, Data/Big Data, C++, Front-end and Back-end development, and learning the fundamentals of Computer Science. Additionally, I am working on Data Structures and Algorithms with Python and exploring Django and Linux.
I believe that taking up pragmatic projects, like your impressive quterus, is an efficient way to become proficient. My uniqueness lies in out-of-the-box thinking and coming up with unique ideas and solutions.
I look forward to the opportunity to work with you on any project you choose. The experience of collaborating with someone like you, who shares similar interests, would be truly enriching.
Best regards,
NitkarshChourasia

At least close it, didi.


ModifyResponseGatewayFilter is not using newContentType from Config

Problem:
I wanted to modify response body with changing Content-type, but probably SCG ignoring newContentType
ModifyResponseGatewayFilter is not using newContentType in code as expected to set response 'Content-Type' header.
Don't see any usage of newContentType here:
https://github.com/spring-cloud/spring-cloud-gateway/blob/main/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyResponseBodyGatewayFilterFactory.java#L91
SCG version 3.1.2
Example:
    @Bean
    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
        return builder.routes()
                      .route("r1", r ->
                              r.path("/megatest")
                               .filters(gatewayFilterSpec -> {
                                   return gatewayFilterSpec
                                           .modifyResponseBody(c -> c
                                                   .setInClass(String.class)
                                                   .setOutClass(String.class)
                                                   .setNewContentType(MediaType.TEXT_PLAIN_VALUE)
                                                   .setRewriteFunction((exchange, o) -> Mono.just(((String) o).toUpperCase())))
                                           .setPath("/target");
                               })
                               .uri("http://localhost:9999"))
                      .build();
    }

Current behaviour:
Response content-type is set from actual target response from external system.
I'am not getting 'text/plain' as expected
Expected behaviour:
Response content-type is set from newContentType field and equals 'text/plain'.
Further:
I can manage to fix this problem after discussion.

closing in favor of #2649