Bug: Circular type reference in Machine Definition resolves as Actor

XState version
XState version 5
Description
If i add types for ActorRefFrom to Child and Parent I get a Error:
// Type error:
 'A' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.(7022)

Expected result
Expected o circular types to work.
Actual result
Resolves as Actor<any>
Reproduction
https://stackblitz.com/edit/github-7zo8fh?file=src%2Fmain.ts
Additional context
Discord Thread: https://discord.com/channels/795785288994652170/1192785773079052298

This isn't fixable since this relationship is, indeed, circular and TypeScript has to resolve it eagerly. One side has to be typed here without the typeof query to avoid this circularity

I got profit from the most legitimate project  multiminners.com
Contact me
+1<PHONE_NUMBER>

Is there a recommended way of assigning a type here without typeof?

Any updates/workarounds with this? Facing the same issue

Any updates/workarounds with this? Facing the same issue

In the above case, AnyActorRef can simply be used since the sender does not have any known events.
Otherwise, you can separate the event type and use that:
type ParentEvents = { type: 'someEvent' } | { type: 'otherEvent' };

const parentMachine = setup({
  types: {
    events: {} as ParentEvents
  }
}).createMachine(/* ... */);

const childMachine = setup({
  context: {
    worker: ActorRefFrom<any, ParentEvents>
  }
});


tests: use NIT_TESTING_ID in neo4j tests

Signed-off-by: Alexandre Terrasa<EMAIL_ADDRESS>

This seems promising, there is a lot of conflicts in the other tests, but none in the two modified files.

test this please

+1


Data mapper doesn't seem to support schema imports

Describe the Bug with repro steps
I have a situation where one XSDs is importing 3 local XSDs. However, datamapper doesn't seem to support this. All of these schemas are located in the same directory and are valid. An example:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:test123="test1234" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="schema1.xsd" namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" />
  <xs:import schemaLocation="schema3.xsd" namespace="test1234" />

Can someone validate this?
Screenshots or Videos
No response
Version
v2.81.5
Additional context
No response

Yes we do not support this yet, but we are planning on implementing this as a feature soon! We can use this item for tracking

Not much frontend impact for this. This scenario would be simple to support from the backend. Question then becomes if we should work to support this with integration accounts.

Can we have a status update for this one? Is there a workaround?

Yes I am working to get an update on this for you!

I am now having trouble reproducing the issue. We tested with our own example as you can see in the screenshot below. @fijsh are you seeing an error message?

Thanks for looking into it @DanielleCogs. I get the following error:
400 - InvalidSchema: The provided schema content is not valid. If the schema has any references, please upload the referenced schemas to the Integration Account first. The compilation of schema failed with error: 'The global element 'Name' has already been declared.'.
Only now I see the error message:  'The global element 'Name' has already been declared.'.
But, the Xsd seems to be valid. I can successfully open it with Visual Studio and use the schema explorer to view the schema. When I load it into a SchemaSet it is valid and I can also create a class from it using [Xsd.exe.] See attached my schema files.
The message about the integration account is a bit confusing for me.

(url)
InvoiceDetails.zip


Support setting proxy settings via configuration

Some environments you don't want to set the HTTP_PROXY or HTTPS_PROXY as only go-c8y-cli commands should be routed through a custom proxy/tunnel.
When setting the HTTP_PROXY environment variable, this affects other tooling such as curl, wget, python which then makes it difficult to use when these tools when they should not go through the proxy/tunnel.

Actually this is already support via the following environment variable:
export C8Y_SETTINGS_DEFAULTS_PROXY="localhost:8118"
c8y devices list

Though it it is not supported via the c8y settings update so I will leave this ticket open until it is supported there as well.


Update to hmat-oss 1.2

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

dup of #4 ?

sorry did not see #4, I close the PR


Fixing bug when playing mp4

Problem: when playing mp4 using JZMediaSystem with JZVideoPlayerStandard, the loading overlay doesn't hide, so the player can't show the playback controls.
Why: because file extension mp4, the JZMediaSystem class can't call getCurrentJzvd().onPrepared that delegates to onStatePlaying.
Solution: just remove this verification.

maybe something wrong with it.

Hm... but why this code is calling only if file contains .mp3? I guess it should be called for every file, right?

The video is ready to complete the logo is the beginning of the rendered image, play mp3 will not render the image

Hm... I'm not sure about it. I'll investigate a bit more.

that line should not be removed

Thank you very much brother.

你好，咱们项目推出数字通证饺子token，https://github.com/lipangit/JZT， 给所有提交过pr的朋友30000个JZT，表示对你过去对项目支持的感谢。
请下载币威钱包https://www.bitcv.app/，把里面的以太坊地址给我，币威的地址站内转账不需要手续费。这东西值不值钱不重要，玩的是信仰。
Hello, let's launch the JiaoZiToken, https://github.com/lipangit/JZT, and give all the friends who submitted pr 30,000 JZT, thank you for your support of the project.
Please download the coin wallet https://www.bitcv.app/?from=bitcvCom and give me the address of the Ethereum. There is no charge for transferring money at the address station. It is not important that the value of this thing is worthless. It is faith.


(#285) pre interview reminders

#285
Changes include:

Template for interview reminder
Artisan command to send interview reminders to applicants and interviewers for today's scheduled application rounds.

@bohraji going ahead with the merge. This is something we need on priority and should be tested thoroughly. We'll be able to start the testing and meanwhile fix other review feedback separately.


Unable to press single button (esc) via keys actions

Hello community.
I'm unable to press single button with "macos: keys" action
OS: Big Sur 11.1
Xcode version: 12.4
Appium version: 1.20.2
Logs from server:
[HTTP] {"script":"macos: keys","args":[{"keys":["XCUIKeyboardKeyEscape"]}]}
[debug] [W3C (04cb5dd3)] Calling AppiumDriver.execute() with args: ["macos: keys",[{"keys":["XCUIKeyboardKeyEscape"]}],"04cb5dd3-3766-425c-b1e7-377ca9a55f22"]
[Mac2Driver] Executing extension command 'macos: keys'
[debug] [WD Proxy] Proxying [POST /wda/keys] to [POST http://<IP_ADDRESS>:10100/session/C64AAD18-5514-4F90-A4EA-2E498C5C9779/wda/keys] with body: {"keys":["XCUIKeyboardKeyEscape"]}
[WD Proxy] Got response with status 500: {"value":{"error":"unknown error","message":"Input key 'XCUIKeyboardKeyEscape' is too long (21 characters). Use XCUIElement.typeText for strings with more than 1 character.","traceback":"(\n\t0   CoreFoundation                      0x00007fff204df6af __exceptionPreprocess + 242\n\t1   libobjc.A.dylib                     0x00007fff202173c9 objc_exception_throw + 48\n\t2   CoreFoundation                      0x00007fff204df513 +[NSException raise:format:] + 189\n\t3   XCTest                              0x000000010104430d -[XCUIElement(XCUIElementKeyboardEvents) typeKey:modifierFlags:] + 124\n\t4   WebDriverAgentLib                   0x00000001036667a4 +[FBElementCommands handleKeys:] + 1332\n\t5   WebDriverAgentLib                   0x000000010369b976 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182\n\t6   WebDriverAgentLib                   0x00000001036952d6 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 854\n\t7   WebDriverAgentLib                   0x000000010368e3cb -[RoutingHTTPServe...
[debug] [W3C] Matched W3C error code 'unknown error' to UnknownError
[debug] [W3C (04cb5dd3)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Input key 'XCUIKeyboardKeyEscape' is too long (21 characters). Use XCUIElement.typeText for strings with more than 1 character.
[debug] [W3C (04cb5dd3)]     at errorFromW3CJsonCode (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[debug] [W3C (04cb5dd3)]     at ProxyRequestError.getActualError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
[debug] [W3C (04cb5dd3)]     at WDAMacProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:273:19)
[debug] [W3C (04cb5dd3)]     at processTicksAndRejections (internal/process/task_queues.js:97:5)

Logs says that this is should be 'typeText' command, but currently mac2 driver unable to execute that command (as i understood)
Unknown extension command "typeText". Only setValue,click,scroll,rightClick,hover,doubleClick,clickAndDrag,clickAndDragAndHold,clickAndHold,keys,source,launchApp,activateApp,terminateApp,queryAppState,appleScript,startRecordingScreen,stopRecordingScreen commands are supported.

typeText is mapped to sendKeys W3C API: https://github.com/appium/appium-mac2-driver/blob/1cae6023d3b1c19f81a1ce20a007d9b29d5a004e/WebDriverAgentMac/WebDriverAgentLib/Commands/FBElementCommands.m#L143

Actually, it makes sense to add such feature to the driver to be able to type special key by providing its name.

The patch has been pushed to appium@beta

Hi Nick 😃
Will there be a release of java-client soon? Because the last release from November does not have the mac2-driver support in it.


Modify the colors of Header and Footer and update the banner

I think this may be one of the sub-tasks of https://github.com/apache/incubator-kvrocks/issues/1257, hence there is some consensus.
But as mentioned by @tison, we need to keep these ASF notice and copyright declarations.

Thank you for your review. The designer omitted the ASF notice and copyright declarations on the blueprint created using Lanhu in order to save time. I forgot to remind her to add it. I suppose that she would update it when she has time.  @SongYuQiu

The Preview.

BTW, when I click on the button with the Slack logo, it takes me to the homepage of Slack instead of the [link].(https://kvrocks.slack.com/join/shared_invite/zt-p5928e3r-OUAK8SUgC8GOceGM6dAz6w#/shared-invite/email).

@SongYuQiu Do you need help to push the PR forward?

Moved to #64.


Extract .pt file from the .msh file

Hi! Recently I trained my own agent in a new robot env, but I find that it uses the mushroom rl so that it save the file format of .msh, so is there any methods I can change the .msh to .pt file?

Hi!
after you load an agent with
from mushroom_rl.core import Agent
path = "your_path"
agent  = Agent.load(path)

You can access the Gaussian policy's mean network with "agent.policy._mu.network" and save it however you like.

Dear Firas,
Thank you for your reply! I can now load the .msh file to my a .pt file to
the environment.
I am working on the GR1T1 and GR1T2 from Fourier Intelligence, the expert
trajectory seems very well and behave quite like a human, but after
epochs of training, the robot can only walk using small steps. So can you
please judge my model and speculate the reasons? The training Hyper_params
just keeps similar with Unitree H1 and G1.
Best regards,
Xuanbo
run_expert.mp4
https://drive.google.com/file/d/1fZQ9lgWznhHIHovBI6wLWWiKHdieTxVl/view?usp=drive_web
walk_expert.mp4
https://drive.google.com/file/d/1lB7-GKh90Jc-f0qitpwoOX3Fo1pW_XsA/view?usp=drive_web
2024-07-12 09-59-18.mp4
https://drive.google.com/file/d/1D4ehH0u7WVGTSrY-u1hJEFd3LO2dHCR9/view?usp=drive_web
Firas Al-Hafez @.***> 于2024年7月11日周四 18:57写道：

Hi!
after you load an agent with
from mushroom_rl.core import Agentpath = "your_path"agent  = Agent.load(path)
You can access the Gaussian policy's mean network with
"agent.policy._mu.network" and save it however you like.
—
Reply to this email directly, view it on GitHub
https://github.com/robfiras/loco-mujoco/issues/37#issuecomment-2222628108,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7ND7MLWEZFMB27VQACQJ2TZLZQILAVCNFSM6AAAAABKR7ZUZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRSGYZDQMJQHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


ups

I found no other way to communicate with you

Per the README, you can reach me on discord. I don't have time these days to stay on top of making sure this lib is up-to-date, so I recommend using R4J, which stelar does a great job of keeping current.
If I spin back up on this type of work I may try to get this lib caught up to the latest. If you'd like to chat about helping out in a maintainer role let me know.


Add annotation support

Have a way to add annotation support for Centreon events

Include Centreon timeline events for annotation support

Events
Comments
Acknowledgments
Downtimes


Change name "Active" to "Graduated".

This also removes the section on Promoted Release because it is not one of the states a project
can be in.
Signed-off-by: Arnaud J Le Hors<EMAIL_ADDRESS>

The Promoted release section needs some work.

I ended up removing it (which I had been tempted to do earlier) and simply linking to the criteria for promoted release. I must say that I wonder whether the stated criteria are enforced. I can't remember a project coming to the TSC for approval... I'm wondering whether this isn't really something that applied to First Major Release and is no longer relevant? We might want to look into this, independently from this change.

@tkuhrt ok now?


Add Facetting

Add facetting attributes to algolia settings in _config.yml. Right now it loses that whenever we re-index our documentation to Algolia (effectively breaking the filters on the search page)

Fixed in 424ff0a


CMS_ReceiptRequest_create0_ex propq param has been marked as unused.

This function only requires access to the libctx currently in order to
access the rand generator.
Fixes #13943.

Checklist

[x] documentation is added or updated
[ ] tests are added or updated

IMO we should not add a propq parameter "just-in-case". It should be removed unless there is a good reason it will be needed in future.

@mattcaswell do you agree?

I don't see a need to have it here.
Adding a propq to the RAND_bytes calls would make it used but that looks like an horrible mess and a path to madness.

I tend to prefer having the propq.

Looks like a OTC decision then?

This PR is in a state where it requires action by @openssl/otc but the last update was 61 days ago

OTC: A PR to remove this parameter is welcome

See #14943


Added Questions API and Nodes to the Database

Description
Added the Questions Node to the Neo4j Database. This can be verified via the endpoints questions/{question_id} where you can see a JSON message corresponding to every Question.
Issue Reference
The Jira Ticket is available here
Testing
Steps to run the Code:

Connect to the Database Host, either on a Local System or on the Remote Database.

Specify the password for the Database. The user would be the default neo4j

Run the command: uvicorn main:app --reload

Go to the endpoint: /question/{question_id} and you will see a JSON message specifying the question that has been requested for.

There are 4 IDs and an invalid ID would display a JSON message that the endpoint is invalid.

Tester can verify the Nodes created by opening the Neo4j Browser and see all the Nodes (albeit without any relationships).

I have made the changes @avinash010
Kindly review it.

Looks good Harsh


Hydra.nixos.org problems with database (probably)

Jobsets now fail to evaluate with errors like this extended example from trunk-combined:
Errors occurred at 2020-05-22 19:58:57.

DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR:  insert or update on table "builds" violates foreign key constraint "fk3"
DETAIL:  Key (project, jobset, job)=(nixos, trunk-combined, nixpkgs.xfce.xfce4_eyes_plugin.x86_64-linux) is not present in table "jobs". [for Statement "UPDATE builds SET iscurrent = ? WHERE ( id IN ( SELECT build.id FROM jobsetevalmembers me  JOIN builds build ON build.id = me.build WHERE ( me.eval = ? ) ) )" with ParamValues: 1='1', 2='1588817'] at /nix/store/zwhrmhwqkwwvg6454z320993g6947z0c-hydra-0.1.20200512.15a45f1/bin/.hydra-eval-jobset-wrapped line 750

It seems very unlikely to have been caused by nixpkgs changes, as I see it on multiple branches.  (I'm opening here anyway, for lack of knowledge of a better place.)

@grahamc: I hope you know who might look into this.

Just now after I wanted staging-next to be evaluated (about half an hour ago, so May 23rd 10:30 CEST).
https://hydra.nixos.org/jobset/nixpkgs/staging-next#tabs-errors
Errors occurred at 2020-05-23 10:58:22.

DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR:  insert or update on table "builds" violates foreign key constraint "fk3"
DETAIL:  Key (project, jobset, job)=(nixpkgs, staging-next, xfce.xfce4_cpugraph_plugin.x86_64-linux) is not present in table "jobs". [for Statement "UPDATE builds SET iscurrent = ? WHERE ( id IN ( SELECT build.id FROM jobsetevalmembers me  JOIN builds build ON build.id = me.build WHERE ( me.eval = ? ) ) )" with ParamValues: 1='1', 2='1588935'] at /nix/store/zwhrmhwqkwwvg6454z320993g6947z0c-hydra-0.1.20200512.15a45f1/bin/.hydra-eval-jobset-wrapped line 750

Not all jobsets suffer from this, e.g. the -small ones still appear to work fine.
I don't know... say, transaction size might be relevant or something.  I'm not a database person.

Just saying this is a bit out of my league so far. I've pinged Eelco to try and take a look.

The python-unstable job also presented the same error, however, eventually did proceed and jobs are building now.

Fixed, see https://github.com/NixOS/hydra/issues/766#issuecomment-634655430.


Fix no-homogenous-tags rule not working with examples

Additionally:

Remove console.log statement from allowed tags rule, which was a
leftover from debugging
Make demo only run against features in test-data-wip folder and check
for dupe scenario names just inside the same feature, so that its output
is shorter

fixes: #166

Pull Request Test Coverage Report for Build 463

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 97.505%

Totals

Change from base Build 461:
0.02%

Covered Lines:
633

Relevant Lines:
642

💛  - Coveralls


Fix album title metadata in media item conversion

Spotted a small issue in MediaItem conversion from cast MediaQueueItem

Thanks!
I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks!


Bluetooth: hci_usb example returning "Unknown HCI Command" after reset.

Describe the bug
A hci_usb firmware built on the Zephyr 2.7.0 with DTM support (CONFIG_BT_TESTING) is used for DTM tests. After a reset of the hardware a transmitter test can be started with the "LE Transmitter Test" command. When this running test is stopped with a "Controller Reset" (instead of a regular test termination) the next start of a test returns "Unknown HCI Command".
To Reproduce
Steps to reproduce the behavior:

Extend configuration for hci_usb sample with DTM support
Build project and flash it to a nrf52840dk board.
Initiate a "LE transmitter Test" command
Reset by a "Reset Controller" command
Initiate a 2nd "LE transmitter Test" command
See error

Expected behavior
It is expected that a DTM test may be restarted normally after a controller reset.
Impact
annoyance
Logs and console output
I've recorded the HCI communication and stored it to a cfa file for wireshark:
HCI-Log.zip
Environment (please complete the following information):

OS: Windows
Toolchain Zephyr SDK
Version 2.7.0

Today I had a closer look at the issue.
The problem is that the reset doesn't "stop" the test the had been started before the reset. In the module lll_test.c the variable started is still set to started after a reset. This causes the function to return 1. The module hci.c translates this somehow to a failure unknown command.
Is my expectation correct that the reset should reset the radio and also reset the variables that indicate a running test?

@AdrianEggenberger Thank you for the investigation, I have created a PR #40342, please test and leave your comment in the PR.


add exception for svg when reverting v1 styles

Changes
Problem: https://stackblitz.com/edit/vitejs-vite-12mizp?file=src%2FApp.jsx
This was happening because the properties that are set on the internal svg elements (through html attributes) were being reverted.

Solution: Added an exception for svg * when reverting.
Testing
Before:

After:

Docs
N/A

Initially I was a bit hesitant but now I feel confident about this approach after looking at The New CSS Reset which also adds an except for svg *.

The other interesting part in that selector is img which can have similar issues as svg. But no one has reported any problems so far; if someone does, then we can think about adding an exception for img in the future.

Initially I was a bit hesitant but now I feel confident about this approach after looking at The New CSS Reset which also adds an exception for svg *.
The other interesting part in that selector is img which can have similar issues as svg. But no one has reported any problems so far; if someone does, then we can think about adding an exception for img in the future.

looking at this, do you think it makes sense for you to tackle svg itself too, not only svg children?

looking at this, do you think it makes sense for you to tackle svg itself too, not only svg children?

I don't think so. We target svg in lots of places, so we do want to revert v1 styles for them.


io/bufio/http : io.ReadAll costs a long time to read http request payload

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

$ go version
1.19.3 1.20.1

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
macOS linux

What did you do?

When i send a request  and use io.ReadAll to read the json request payload , it cost almost 2-3s on k8s env, that's unacceptable for us ,so i tried to reproduce it on my mac , but it only cost 5ms , i think that's just the exact result.
So i tried to found out  the root cause.
Here are my steps:

copy the io.ReadAll code to my project , and add logs to record the time every line costs.

as the screenshot shows , i logged the expansion length / how long the read operation costs / how many times the slice b expanded.

Run the method on vsCode on my mac and get the logs.

content length is 604355
b length is 0 , cap is 512
read to b from b(0) to c(512) , length is 512
read cost 0 ms  ,len is 0 , n is 512 ,cap is 512
b[:len(b)+n] cost 0ms  ,len is 512 , cap is 512
b length is 512 , cap is 512
append len=(512) cap=(896) add length 384
read to b from b(512) to c(896) , length is 38
read cost 0 ms  ,len is 512 , n is 384 ,cap is 896
b[:len(b)+n] cost 0ms  ,len is 896 , cap is 896
b length is 896 , cap is 896
append len=(896) cap=(1408) add length 512
read to b from b(896) to c(1408) , length is 512
read cost 0 ms  ,len is 896 , n is 512 ,cap is 1408
b[:len(b)+n] cost 0ms  ,len is 1408 , cap is 1408
b length is 1408 , cap is 1408
append len=(1408) cap=(2048) add length 640
read to b from b(1408) to c(2048) , length is 640
read cost 0 ms  ,len is 1408 , n is 640 ,cap is 2048
b[:len(b)+n] cost 0ms  ,len is 2048 , cap is 2048
b length is 2048 , cap is 2048
append len=(2048) cap=(3072) add length 1024
read to b from b(2048) to c(3072) , length is 1024
read cost 0 ms  ,len is 2048 , n is 1024 ,cap is 3072
b[:len(b)+n] cost 0ms  ,len is 3072 , cap is 3072
b length is 3072 , cap is 3072
append len=(3072) cap=(4096) add length 1024
read to b from b(3072) to c(4096) , length is 1024
read cost 0 ms  ,len is 3072 , n is 764 ,cap is 4096
b[:len(b)+n] cost 0ms  ,len is 3836 , cap is 4096
b length is 3836 , cap is 4096
read to b from b(3836) to c(4096) , length is 260
read cost 0 ms  ,len is 3836 , n is 260 ,cap is 4096
b[:len(b)+n] cost 0ms  ,len is 4096 , cap is 4096
b length is 4096 , cap is 4096
append len=(4096) cap=(5376) add length 1280
read to b from b(4096) to c(5376) , length is 1280
read cost 0 ms  ,len is 4096 , n is 1280 ,cap is 5376
b[:len(b)+n] cost 0ms  ,len is 5376 , cap is 5376
b length is 5376 , cap is 5376
append len=(5376) cap=(6912) add length 1536
read to b from b(5376) to c(6912) , length is 1536
read cost 0 ms  ,len is 5376 , n is 1536 ,cap is 6912
b[:len(b)+n] cost 0ms  ,len is 6912 , cap is 6912
b length is 6912 , cap is 6912
append len=(6912) cap=(9472) add length 2560
read to b from b(6912) to c(9472) , length is 2560
read cost 0 ms  ,len is 6912 , n is 1020 ,cap is 9472
b[:len(b)+n] cost 0ms  ,len is 7932 , cap is 9472
b length is 7932 , cap is 9472
read to b from b(7932) to c(9472) , length is 1540
read cost 0 ms  ,len is 7932 , n is 1540 ,cap is 9472
b[:len(b)+n] cost 0ms  ,len is 9472 , cap is 9472
b length is 9472 , cap is 9472
append len=(9472) cap=(12288) add length 2816
read to b from b(9472) to c(12288) , length is 2816
read cost 0 ms  ,len is 9472 , n is 2556 ,cap is 12288
b[:len(b)+n] cost 0ms  ,len is 12028 , cap is 12288
b length is 12028 , cap is 12288
read to b from b(12028) to c(12288) , length is 260
read cost 0 ms  ,len is 12028 , n is 260 ,cap is 12288
b[:len(b)+n] cost 0ms  ,len is 12288 , cap is 12288
b length is 12288 , cap is 12288
append len=(12288) cap=(16384) add length 4096
read to b from b(12288) to c(16384) , length is 4096
read cost 0 ms  ,len is 12288 , n is 3836 ,cap is 16384
b[:len(b)+n] cost 0ms  ,len is 16124 , cap is 16384
b length is 16124 , cap is 16384
read to b from b(16124) to c(16384) , length is 260
read cost 0 ms  ,len is 16124 , n is 260 ,cap is 16384
b[:len(b)+n] cost 0ms  ,len is 16384 , cap is 16384
b length is 16384 , cap is 16384
append len=(16384) cap=(21760) add length 5376
read to b from b(16384) to c(21760) , length is 5376
read cost 0 ms  ,len is 16384 , n is 3836 ,cap is 21760
b[:len(b)+n] cost 0ms  ,len is 20220 , cap is 21760
b length is 20220 , cap is 21760
read to b from b(20220) to c(21760) , length is 1540
read cost 0 ms  ,len is 20220 , n is 1540 ,cap is 21760
b[:len(b)+n] cost 0ms  ,len is 21760 , cap is 21760
b length is 21760 , cap is 21760
append len=(21760) cap=(28672) add length 6912
read to b from b(21760) to c(28672) , length is 6912
read cost 0 ms  ,len is 21760 , n is 2556 ,cap is 28672
b[:len(b)+n] cost 0ms  ,len is 24316 , cap is 28672
b length is 24316 , cap is 28672
read to b from b(24316) to c(28672) , length is 4356
read cost 0 ms  ,len is 24316 , n is 4356 ,cap is 28672
b[:len(b)+n] cost 0ms  ,len is 28672 , cap is 28672
b length is 28672 , cap is 28672
append len=(28672) cap=(40960) add length 12288
read to b from b(28672) to c(40960) , length is 12288
read cost 0 ms  ,len is 28672 , n is 12288 ,cap is 40960
b[:len(b)+n] cost 0ms  ,len is 40960 , cap is 40960
b length is 40960 , cap is 40960
append len=(40960) cap=(57344) add length 16384
read to b from b(40960) to c(57344) , length is 16384
read cost 0 ms  ,len is 40960 , n is 16384 ,cap is 57344
b[:len(b)+n] cost 0ms  ,len is 57344 , cap is 57344
b length is 57344 , cap is 57344
append len=(57344) cap=(73728) add length 16384
read to b from b(57344) to c(73728) , length is 16384
read cost 0 ms  ,len is 57344 , n is 16384 ,cap is 73728
b[:len(b)+n] cost 0ms  ,len is 73728 , cap is 73728
b length is 73728 , cap is 73728
append len=(73728) cap=(98304) add length 24576
read to b from b(73728) to c(98304) , length is 24576
read cost 1 ms  ,len is 73728 , n is 24576 ,cap is 98304
b[:len(b)+n] cost 1ms  ,len is 98304 , cap is 98304
b length is 98304 , cap is 98304
append len=(98304) cap=(131072) add length 32768
read to b from b(98304) to c(131072) , length is 32768
read cost 1 ms  ,len is 98304 , n is 32768 ,cap is 131072
b[:len(b)+n] cost 1ms  ,len is 131072 , cap is 131072
b length is 131072 , cap is 131072
append len=(131072) cap=(172032) add length 40960
read to b from b(131072) to c(172032) , length is 40960
read cost 1 ms  ,len is 131072 , n is 40960 ,cap is 172032
b[:len(b)+n] cost 1ms  ,len is 172032 , cap is 172032
b length is 172032 , cap is 172032
append len=(172032) cap=(221184) add length 49152
read to b from b(172032) to c(221184) , length is 49152
read cost 1 ms  ,len is 172032 , n is 49152 ,cap is 221184
b[:len(b)+n] cost 1ms  ,len is 221184 , cap is 221184
b length is 221184 , cap is 221184
append len=(221184) cap=(278528) add length 57344
read to b from b(221184) to c(278528) , length is 57344
read cost 1 ms  ,len is 221184 , n is 57344 ,cap is 278528
b[:len(b)+n] cost 1ms  ,len is 278528 , cap is 278528
b length is 278528 , cap is 278528
append len=(278528) cap=(352256) add length 73728
read to b from b(278528) to c(352256) , length is 73728
read cost 1 ms  ,len is 278528 , n is 73728 ,cap is 352256
b[:len(b)+n] cost 1ms  ,len is 352256 , cap is 352256
b length is 352256 , cap is 352256
append len=(352256) cap=(442368) add length 90112
read to b from b(352256) to c(442368) , length is 90112
read cost 1 ms  ,len is 352256 , n is 90112 ,cap is 442368
b[:len(b)+n] cost 1ms  ,len is 442368 , cap is 442368
b length is 442368 , cap is 442368
append len=(442368) cap=(557056) add length 114688
read to b from b(442368) to c(557056) , length is 114688
read cost 2 ms  ,len is 442368 , n is 114688 ,cap is 557056
b[:len(b)+n] cost 2ms  ,len is 557056 , cap is 557056
b length is 557056 , cap is 557056
append len=(557056) cap=(704512) add length 147456
read to b from b(557056) to c(704512) , length is 147456
read cost 3 ms  ,len is 557056 , n is 47299 ,cap is 704512
b[:len(b)+n] cost 3ms  ,len is 604355 , cap is 704512
index is 31
As the logs show  , the slice b expanded 31 times but only cost 3ms to read 604355 bytes payload.

build a docker image and run on k8s .

content length is 604355
b length is 0 , cap is 512
read to b from b(0) to c(512) , length is 512
read cost 0 ms  ,len is 0 , n is 512 ,cap is 512
b[:len(b)+n] cost 0ms  ,len is 512 , cap is 512
b length is 512 , cap is 512
append len=(512) cap=(896) add length 384
read to b from b(512) to c(896) , length is 384
read cost 0 ms  ,len is 512 , n is 384 ,cap is 896
b[:len(b)+n] cost 0ms  ,len is 896 , cap is 896
b length is 896 , cap is 896
append len=(896) cap=(1408) add length 512
read to b from b(896) to c(1408) , length is 512
read cost 0 ms  ,len is 896 , n is 288 ,cap is 1408
b[:len(b)+n] cost 0ms  ,len is 1184 , cap is 1408
b length is 1184 , cap is 1408
read to b from b(1184) to c(1408) , length is 224
read cost 0 ms  ,len is 1184 , n is 224 ,cap is 1408
b[:len(b)+n] cost 0ms  ,len is 1408 , cap is 1408
b length is 1408 , cap is 1408
append len=(1408) cap=(2048) add length 640
read to b from b(1408) to c(2048) , length is 640
read cost 0 ms  ,len is 1408 , n is 640 ,cap is 2048
b[:len(b)+n] cost 0ms  ,len is 2048 , cap is 2048
b length is 2048 , cap is 2048
append len=(2048) cap=(3072) add length 1024
read to b from b(2048) to c(3072) , length is 1024
read cost 0 ms  ,len is 2048 , n is 1024 ,cap is 3072
b[:len(b)+n] cost 0ms  ,len is 3072 , cap is 3072
b length is 3072 , cap is 3072
append len=(3072) cap=(4096) add length 1024
read to b from b(3072) to c(4096) , length is 1024
read cost 0 ms  ,len is 3072 , n is 1024 ,cap is 4096
b[:len(b)+n] cost 0ms  ,len is 4096 , cap is 4096
b length is 4096 , cap is 4096
append len=(4096) cap=(5376) add length 1280
read to b from b(4096) to c(5376) , length is 1280
read cost 0 ms  ,len is 4096 , n is 1184 ,cap is 5376
b[:len(b)+n] cost 0ms  ,len is 5280 , cap is 5376
b length is 5280 , cap is 5376
read to b from b(5280) to c(5376) , length is 96
read cost 0 ms  ,len is 5280 , n is 96 ,cap is 5376
b[:len(b)+n] cost 0ms  ,len is 5376 , cap is 5376
b length is 5376 , cap is 5376
append len=(5376) cap=(6912) add length 1536
read to b from b(5376) to c(6912) , length is 1536
read cost 0 ms  ,len is 5376 , n is 1536 ,cap is 6912
b[:len(b)+n] cost 0ms  ,len is 6912 , cap is 6912
b length is 6912 , cap is 6912
append len=(6912) cap=(9472) add length 2560
read to b from b(6912) to c(9472) , length is 2560
read cost 0 ms  ,len is 6912 , n is 2464 ,cap is 9472
b[:len(b)+n] cost 0ms  ,len is 9376 , cap is 9472
b length is 9376 , cap is 9472
read to b from b(9376) to c(9472) , length is 96
read cost 0 ms  ,len is 9376 , n is 96 ,cap is 9472
b[:len(b)+n] cost 0ms  ,len is 9472 , cap is 9472
b length is 9472 , cap is 9472
append len=(9472) cap=(12288) add length 2816
read to b from b(9472) to c(12288) , length is 2816
read cost 0 ms  ,len is 9472 , n is 1076 ,cap is 12288
b[:len(b)+n] cost 0ms  ,len is 10548 , cap is 12288
b length is 10548 , cap is 12288
read to b from b(10548) to c(12288) , length is 1740
read cost 2 ms  ,len is 10548 , n is 1740 ,cap is 12288
b[:len(b)+n] cost 2ms  ,len is 12288 , cap is 12288
b length is 12288 , cap is 12288
append len=(12288) cap=(16384) add length 4096
read to b from b(12288) to c(16384) , length is 4096
read cost 2 ms  ,len is 12288 , n is 2356 ,cap is 16384
b[:len(b)+n] cost 2ms  ,len is 14644 , cap is 16384
b length is 14644 , cap is 16384
read to b from b(14644) to c(16384) , length is 1740
read cost 2 ms  ,len is 14644 , n is 1740 ,cap is 16384
b[:len(b)+n] cost 2ms  ,len is 16384 , cap is 16384
b length is 16384 , cap is 16384
append len=(16384) cap=(21760) add length 5376
read to b from b(16384) to c(21760) , length is 5376
read cost 2 ms  ,len is 16384 , n is 2356 ,cap is 21760
b[:len(b)+n] cost 2ms  ,len is 18740 , cap is 21760
b length is 18740 , cap is 21760
read to b from b(18740) to c(21760) , length is 3020
read cost 2 ms  ,len is 18740 , n is 3020 ,cap is 21760
b[:len(b)+n] cost 2ms  ,len is 21760 , cap is 21760
b length is 21760 , cap is 21760
append len=(21760) cap=(28672) add length 6912
read to b from b(21760) to c(28672) , length is 6912
read cost 2 ms  ,len is 21760 , n is 1076 ,cap is 28672
b[:len(b)+n] cost 2ms  ,len is 22836 , cap is 28672
b length is 22836 , cap is 28672
read to b from b(22836) to c(28672) , length is 5836
read cost 2 ms  ,len is 22836 , n is 5836 ,cap is 28672
b[:len(b)+n] cost 2ms  ,len is 28672 , cap is 28672
b length is 28672 , cap is 28672
append len=(28672) cap=(40960) add length 12288
read to b from b(28672) to c(40960) , length is 12288
read cost 2 ms  ,len is 28672 , n is 3806 ,cap is 40960
b[:len(b)+n] cost 2ms  ,len is 32478 , cap is 40960
b length is 32478 , cap is 40960
read to b from b(32478) to c(40960) , length is 8482
read cost 191 ms  ,len is 32478 , n is 8482 ,cap is 40960
b[:len(b)+n] cost 191ms  ,len is 40960 , cap is 40960
b length is 40960 , cap is 40960
append len=(40960) cap=(57344) add length 16384
read to b from b(40960) to c(57344) , length is 16384
read cost 191 ms  ,len is 40960 , n is 7902 ,cap is 57344
b[:len(b)+n] cost 191ms  ,len is 48862 , cap is 57344
b length is 48862 , cap is 57344
read to b from b(48862) to c(57344) , length is 8482
read cost 192 ms  ,len is 48862 , n is 8482 ,cap is 57344
b[:len(b)+n] cost 192ms  ,len is 57344 , cap is 57344
b length is 57344 , cap is 57344
append len=(57344) cap=(73728) add length 16384
read to b from b(57344) to c(73728) , length is 16384
read cost 192 ms  ,len is 57344 , n is 7902 ,cap is 73728
b[:len(b)+n] cost 192ms  ,len is 65246 , cap is 73728
b length is 65246 , cap is 73728
read to b from b(65246) to c(73728) , length is 8482
read cost 192 ms  ,len is 65246 , n is 8482 ,cap is 73728
b[:len(b)+n] cost 192ms  ,len is 73728 , cap is 73728
b length is 73728 , cap is 73728
append len=(73728) cap=(98304) add length 24576
read to b from b(73728) to c(98304) , length is 24576
read cost 192 ms  ,len is 73728 , n is 7902 ,cap is 98304
b[:len(b)+n] cost 192ms  ,len is 81630 , cap is 98304
b length is 81630 , cap is 98304
read to b from b(81630) to c(98304) , length is 16674
read cost 381 ms  ,len is 81630 , n is 16384 ,cap is 98304
b[:len(b)+n] cost 381ms  ,len is 98014 , cap is 98304
b length is 98014 , cap is 98304
read to b from b(98014) to c(98304) , length is 290
read cost 383 ms  ,len is 98014 , n is 290 ,cap is 98304
b[:len(b)+n] cost 383ms  ,len is 98304 , cap is 98304
b length is 98304 , cap is 98304
append len=(98304) cap=(131072) add length 32768
read to b from b(98304) to c(131072) , length is 32768
read cost 383 ms  ,len is 98304 , n is 3806 ,cap is 131072
b[:len(b)+n] cost 383ms  ,len is 102110 , cap is 131072
b length is 102110 , cap is 131072
read to b from b(102110) to c(131072) , length is 28962
read cost 383 ms  ,len is 102110 , n is 28672 ,cap is 131072
b[:len(b)+n] cost 383ms  ,len is 130782 , cap is 131072
b length is 130782 , cap is 131072
read to b from b(130782) to c(131072) , length is 290
read cost 383 ms  ,len is 130782 , n is 290 ,cap is 131072
b[:len(b)+n] cost 383ms  ,len is 131072 , cap is 131072
b length is 131072 , cap is 131072
append len=(131072) cap=(172032) add length 40960
read to b from b(131072) to c(172032) , length is 40960
read cost 383 ms  ,len is 131072 , n is 3806 ,cap is 172032
b[:len(b)+n] cost 383ms  ,len is 134878 , cap is 172032
b length is 134878 , cap is 172032
read to b from b(134878) to c(172032) , length is 37154
read cost 383 ms  ,len is 134878 , n is 12288 ,cap is 172032
b[:len(b)+n] cost 383ms  ,len is 147166 , cap is 172032
b length is 147166 , cap is 172032
read to b from b(147166) to c(172032) , length is 24866
read cost 384 ms  ,len is 147166 , n is 16384 ,cap is 172032
b[:len(b)+n] cost 384ms  ,len is 163550 , cap is 172032
b length is 163550 , cap is 172032
read to b from b(163550) to c(172032) , length is 8482
read cost 384 ms  ,len is 163550 , n is 8482 ,cap is 172032
b[:len(b)+n] cost 384ms  ,len is 172032 , cap is 172032
b length is 172032 , cap is 172032
append len=(172032) cap=(221184) add length 49152
read to b from b(172032) to c(221184) , length is 49152
read cost 384 ms  ,len is 172032 , n is 24286 ,cap is 221184
b[:len(b)+n] cost 384ms  ,len is 196318 , cap is 221184
b length is 196318 , cap is 221184
read to b from b(196318) to c(221184) , length is 24866
read cost 576 ms  ,len is 196318 , n is 16384 ,cap is 221184
b[:len(b)+n] cost 576ms  ,len is 212702 , cap is 221184
b length is 212702 , cap is 221184
read to b from b(212702) to c(221184) , length is 8482
read cost 577 ms  ,len is 212702 , n is 8482 ,cap is 221184
b[:len(b)+n] cost 577ms  ,len is 221184 , cap is 221184
b length is 221184 , cap is 221184
append len=(221184) cap=(278528) add length 57344
read to b from b(221184) to c(278528) , length is 57344
read cost 578 ms  ,len is 221184 , n is 7902 ,cap is 278528
b[:len(b)+n] cost 578ms  ,len is 229086 , cap is 278528
b length is 229086 , cap is 278528
read to b from b(229086) to c(278528) , length is 49442
read cost 579 ms  ,len is 229086 , n is 16384 ,cap is 278528
b[:len(b)+n] cost 579ms  ,len is 245470 , cap is 278528
b length is 245470 , cap is 278528
read to b from b(245470) to c(278528) , length is 33058
read cost 583 ms  ,len is 245470 , n is 33058 ,cap is 278528
b[:len(b)+n] cost 583ms  ,len is 278528 , cap is 278528
b length is 278528 , cap is 278528
append len=(278528) cap=(352256) add length 73728
read to b from b(278528) to c(352256) , length is 73728
read cost 584 ms  ,len is 278528 , n is 73728 ,cap is 352256
b[:len(b)+n] cost 584ms  ,len is 352256 , cap is 352256
b length is 352256 , cap is 352256
append len=(352256) cap=(442368) add length 90112
read to b from b(352256) to c(442368) , length is 90112
read cost 584 ms  ,len is 352256 , n is 17324 ,cap is 442368
b[:len(b)+n] cost 584ms  ,len is 369580 , cap is 442368
b length is 369580 , cap is 442368
read to b from b(369580) to c(442368) , length is 72788
read cost 584 ms  ,len is 369580 , n is 39730 ,cap is 442368
b[:len(b)+n] cost 584ms  ,len is 409310 , cap is 442368
b length is 409310 , cap is 442368
read to b from b(409310) to c(442368) , length is 33058
read cost 764 ms  ,len is 409310 , n is 16384 ,cap is 442368
b[:len(b)+n] cost 764ms  ,len is 425694 , cap is 442368
b length is 425694 , cap is 442368
read to b from b(425694) to c(442368) , length is 16674
read cost 769 ms  ,len is 425694 , n is 16384 ,cap is 442368
b[:len(b)+n] cost 769ms  ,len is 442078 , cap is 442368
b length is 442078 , cap is 442368
read to b from b(442078) to c(442368) , length is 290
read cost 770 ms  ,len is 442078 , n is 290 ,cap is 442368
b[:len(b)+n] cost 770ms  ,len is 442368 , cap is 442368
b length is 442368 , cap is 442368
append len=(442368) cap=(557056) add length 114688
read to b from b(442368) to c(557056) , length is 114688
read cost 770 ms  ,len is 442368 , n is 3806 ,cap is 557056
b[:len(b)+n] cost 770ms  ,len is 446174 , cap is 557056
b length is 446174 , cap is 557056
read to b from b(446174) to c(557056) , length is 110882
read cost 770 ms  ,len is 446174 , n is 12288 ,cap is 557056
b[:len(b)+n] cost 770ms  ,len is 458462 , cap is 557056
b length is 458462 , cap is 557056
read to b from b(458462) to c(557056) , length is 98594
read cost 770 ms  ,len is 458462 , n is 16384 ,cap is 557056
b[:len(b)+n] cost 770ms  ,len is 474846 , cap is 557056
b length is 474846 , cap is 557056
read to b from b(474846) to c(557056) , length is 82210
read cost 771 ms  ,len is 474846 , n is 16384 ,cap is 557056
b[:len(b)+n] cost 771ms  ,len is 491230 , cap is 557056
b length is 491230 , cap is 557056
read to b from b(491230) to c(557056) , length is 65826
read cost 772 ms  ,len is 491230 , n is 16384 ,cap is 557056
b[:len(b)+n] cost 772ms  ,len is 507614 , cap is 557056
b length is 507614 , cap is 557056
read to b from b(507614) to c(557056) , length is 49442
read cost 777 ms  ,len is 507614 , n is 32768 ,cap is 557056
b[:len(b)+n] cost 777ms  ,len is 540382 , cap is 557056
b length is 540382 , cap is 557056
read to b from b(540382) to c(557056) , length is 16674
read cost 777 ms  ,len is 540382 , n is 16674 ,cap is 557056
b[:len(b)+n] cost 777ms  ,len is 557056 , cap is 557056
b length is 557056 , cap is 557056
append len=(557056) cap=(704512) add length 147456
read to b from b(557056) to c(704512) , length is 147456
read cost 778 ms  ,len is 557056 , n is 32478 ,cap is 704512
b[:len(b)+n] cost 778ms  ,len is 589534 , cap is 704512
b length is 589534 , cap is 704512
read to b from b(589534) to c(704512) , length is 114978
read cost 778 ms  ,len is 589534 , n is 14821 ,cap is 704512
b[:len(b)+n] cost 778ms  ,len is 604355 , cap is 704512
index is 57
the index value here is 57 which means the slice b expanded 57 times during read payload.
As we know , the more times slice expansion , the more time process spend on read payload to slice b , because  the read operation can only read limit bytes contents one time, and with the length of b increases , read operation costs more time.
Another difference between them is , even to read the same length contents , the method on k8s also much slower than local.
I also tried to use io.Copy to replace io.ReadAll , it's true that the io.Copy faster than  io.ReadAll , but it doesn't helps us much.
What did you expect to see?
io.ReadAll shouldn't cost such a long time
Question

Is there any go env configs that may affect the io.ReadAll efficiency ？
Does the  io.ReadAll efficiency are different on different OS ?
io.ReadAll sometimes fast but sometimes slow on the k8s env , what may caused that ?

no
no
There are many things that can affect performance on k8s (network, sender, cpu limits, etc), all outside the control of Go. io.ReadAll has to make a tradeoff between allocating too large slices and efficiency. If you care about allocations, you could use something like bytes.Buffer with a preallocated slice.

I don't see anything wrong with Go in this report.


fix Pagination Contributions jumps to wrong Page

🍰 Pullrequest
navigate with pagenation is solved
Issues

fixes #2278

https://user-images.githubusercontent.com/1324583/196939002-1f96c610-1e75-4da8-a677-d86fab841f02.mp4


redisClient.connect is not a function. createClient gives me different object in terminal

redisClient.connect is not a function.

createClient function gives me RedisClient instance when I use it in my application.
createClient function gives me Commander instance when I use it in the terminal.

Environment:

Node.js Version:v12.22.9 - npm 6.14.15
Redis Server Version: 3.0.6
Node Redis Version: `--<EMAIL_ADDRESS>Platform:  Ubuntu 20.04.3
Docker image: node:12-alpine

Node from terminal

/home/Backend $ node
Welcome to Node.js v12.22.9.
Type ".help" for more information.
> redis = require('redis');
{
  createClient: [Function: createClient],
  createCluster: [Function: createCluster],
  commandOptions: [Getter],
  defineScript: [Getter],
  AbortError: [Getter],
  WatchError: [Getter],
  ConnectionTimeoutError: [Getter],
  ClientClosedError: [Getter],
  DisconnectsClientError: [Getter],
  SocketClosedUnexpectedlyError: [Getter],
  AuthError: [Getter],
  RootNodesUnavailableError: [Getter],
  ReconnectStrategyError: [Getter],
  SchemaFieldTypes: [Getter],
  SchemaTextFieldPhonetics: [Getter],
  AggregateSteps: [Getter],
  AggregateGroupByReducers: [Getter]
}
> redisClient = redis.createClient()
Commander {
  _events: [Object: null prototype] {},
  _eventsCount: 0,
  _maxListeners: undefined,
  commandOptions: [Function: commandOptions],
  select: [AsyncFunction: SELECT],
  subscribe: [Function: SUBSCRIBE],
  pSubscribe: [Function: PSUBSCRIBE],
  unsubscribe: [Function: UNSUBSCRIBE],
  pUnsubscribe: [Function: PUNSUBSCRIBE],
  quit: [Function: QUIT],
  bf: { self: [Circular] },
  cms: { self: [Circular] },
  cf: { self: [Circular] },
  topK: { self: [Circular] },
  json: { self: [Circular] },
  ft: { self: [Circular] },
  ts: { self: [Circular] },
  [Symbol(kCapture)]: false
}
> redisClient.connect
[AsyncFunction: connect]
>

Application Code
// this is my code on the server..
const redisClient = redis.createClient({
    url: `redis://${REDIS_HOST}:${REDIS_PORT}`
})
console.log('redisClient', redisClient);
console.log('connect function', redisClient.connect);

Application Output
redisClient RedisClient {
  _events: [Object: null prototype] { newListener: [Function] },
  _eventsCount: 1,
  _maxListeners: undefined,
  address: 'redis:6379',
  connection_options: { port: 6379, host: 'redis', family: 4 },
  connection_id: 0,
  connected: false,
  ready: false,
  should_buffer: false,
  max_attempts: 0,
  command_queue: Deque { _capacity: 16, _length: 0, _front: 0 },
  offline_queue: Deque { _capacity: 16, _length: 0, _front: 0 },
  pipeline_queue: Deque { _capacity: 16, _length: 0, _front: 0 },
  connect_timeout: 3600000,
  enable_offline_queue: true,
  retry_max_delay: null,
  retry_timer: null,
  retry_totaltime: 0,
  retry_delay: 200,
  retry_backoff: 1.7,
  attempts: 1,
  pub_sub_mode: 0,
  subscription_set: {},
  monitoring: false,
  message_buffers: false,
  closing: false,
  server_info: {},
  auth_pass: undefined,
  selected_db: undefined,
  old_state: null,
  fire_strings: true,
  pipeline: false,
  sub_commands_left: 0,
  times_connected: 0,
  buffers: false,
  options: {
    port: '6379',
    host: 'redis',
    url: 'redis://redis:6379',
    socket_nodelay: true,
    socket_keepalive: true,
    return_buffers: false,
    detect_buffers: false
  },
  reply: 'ON',
  reply_parser: JavascriptRedisParser {
    optionReturnBuffers: false,
    optionStringNumbers: false,
    returnError: [Function: returnError],
    returnFatalError: [Function: returnFatalError],
    returnReply: [Function: returnReply],
    name: 'javascript',
    offset: 0,
    buffer: null,
    bigStrSize: 0,
    bigOffset: 0,
    totalChunkSize: 0,
    bufferCache: [],
    arrayCache: [],
    arrayPos: []
  },
  stream: Socket {
    connecting: true,
    _hadError: false,
    _parent: null,
    _host: 'redis',
    _readableState: ReadableState {
      objectMode: false,
      highWaterMark: 16384,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: null,
      pipesCount: 0,
      flowing: true,
      ended: false,
      endEmitted: false,
      reading: false,
      sync: true,
      needReadable: false,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: true,
      emitClose: false,
      autoDestroy: false,
      destroyed: false,
      defaultEncoding: 'utf8',
      awaitDrainWriters: null,
      multiAwaitDrain: false,
      readingMore: false,
      decoder: null,
      encoding: null,
      [Symbol(kPaused)]: false
    },
    readable: false,
    _events: [Object: null prototype] {
      end: [Array],
      connect: [Function],
      data: [Function],
      error: [Function],
      clientError: [Function],
      close: [Function],
      drain: [Function]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: false,
      needDrain: false,
      ending: false,
      ended: false,
      finished: false,
      destroyed: false,
      decodeStrings: false,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: true,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: null,
      writelen: 0,
      afterWriteTickInfo: null,
      bufferedRequest: null,
      lastBufferedRequest: null,
      pendingcb: 0,
      prefinished: false,
      errorEmitted: false,
      emitClose: false,
      autoDestroy: false,
      bufferedRequestCount: 0,
      corkedRequestsFree: [Object]
    },
    writable: true,
    allowHalfOpen: false,
    _sockname: null,
    _pendingData: null,
    _pendingEncoding: '',
    server: null,
    _server: null,
    [Symbol(asyncId)]: 28,
    [Symbol(kHandle)]: TCP {
      reading: false,
      onconnection: null,
      [Symbol(owner_symbol)]: [Circular]
    },
    [Symbol(kSetNoDelay)]: true,
    [Symbol(lastWriteQueueSize)]: 0,
    [Symbol(timeout)]: null,
    [Symbol(kBuffer)]: null,
    [Symbol(kBufferCb)]: null,
    [Symbol(kBufferGen)]: null,
    [Symbol(kCapture)]: false,
    [Symbol(kBytesRead)]: 0,
    [Symbol(kBytesWritten)]: 0
  },
  [Symbol(kCapture)]: false
}
connect function undefined

Looks like you have 2 versions of node-redis installed, try to
console.log(`node-redis version is ${require('redis/package.json').version}`);

in both the app and the terminal

somehow I have 2 node_modules and one of them has its own redis :(

@leibale I got the same issue. But I don't have any sense of how I can fix this.
This is on terminal.

This is on app.

@CaCaBlocker IIRC, v3 had no connect function. https://github.com/redis/node-redis/tree/v3.1.2

@CaCaBlocker IIRC, v3 had no connect function (you need to wait for the connect event if you want to make sure the client is connected). https://github.com/redis/node-redis/tree/v3.1.2

Thanks. I convert the version successfully. 😊


可否支持多个不同的openai api base url

换句话就是能够为每个api key指定不同的base url。。。

I was also thinking about this feature. this would be more efficient for load balancing. +1

有一个开源项目，one-api可以实现，去看看吧


[cluster setup]But the first setup 3 agency is failed. I don't know how to fix it.

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series: 3.1.4, official docker library.
I use the latest image.
my issue
I want setup a cluster to test. But the first setup 3 agency is failed. I don't know how to fix it.
agency setup cmds
agency1
docker run -d -e ARANGO_NO_AUTH=1 -p <IP_ADDRESS>:15001:5001 --name agency1 arangodb/arangodb arangod --server.endpoint tcp://<IP_ADDRESS>:5001 --agency.my-address=tcp://<IP_ADDRESS>:15001 --server.authentication false --agency.activate true --agency.size 3 --agency.endpoint tcp://<IP_ADDRESS>:15001 --agency.supervision true
agency2
docker run -d -e ARANGO_NO_AUTH=1 -p <IP_ADDRESS>:15002:5001 --name agency2 arangodb/arangodb arangod --server.endpoint tcp://<IP_ADDRESS>:5001 --agency.my-address=tcp://<IP_ADDRESS>:15002 --server.authentication false --agency.activate true --agency.size 3 --agency.endpoint tcp://<IP_ADDRESS>:15001  --agency.supervision true
agency3
docker run -d -e ARANGO_NO_AUTH=1 -p <IP_ADDRESS>:15001:5001 --name agency3 arangodb/arangodb arangod --server.endpoint tcp://<IP_ADDRESS>:5001 --agency.my-address=tcp://<IP_ADDRESS>:15001 --server.authentication false --agency.activate true --agency.size 3 --agency.endpoint tcp://<IP_ADDRESS>:15001  --agency.endpoint tcp://<IP_ADDRESS>:15002 --agency.supervision true
agency1 log
[root@host81 ~]# docker logs -f agency1
2016/12/15 10:27:07 Error resolving syscall name execveat: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name getrandom: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name memfd_create: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name renameat2: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name sched_getattr: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name sched_setattr: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name seccomp: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name breakpoint: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name cacheflush: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:27:07 Error resolving syscall name set_tls: could not resolve name to syscall - ignoring syscall.
Initializing database...Hang on...
Database initialized...Starting System...
2016-12-15T10:27:14Z [1] INFO ArangoDB 3.1.4 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8 <IP_ADDRESS>, OpenSSL 1.0.1t  3 May 2016
2016-12-15T10:27:14Z [1] INFO using SSL options: SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_TLS_ROLLBACK_BUG
2016-12-15T10:27:14Z [1] INFO file-descriptors (nofiles) hard limit is 1048576, soft limit is 1048576
2016-12-15T10:27:14Z [1] INFO JavaScript using startup '/usr/share/arangodb3/js', application '/var/lib/arangodb3-apps'
2016-12-15T10:27:15Z [1] INFO In database '_system': Found 14 defined task(s), 1 task(s) to run
2016-12-15T10:27:15Z [1] INFO In database '_system': state standalone/existing, tasks updateUserModels
2016-12-15T10:27:15Z [1] INFO In database '_system': existing cleanup successfully finished
2016-12-15T10:27:15Z [1] INFO using endpoint 'http+tcp://<IP_ADDRESS>:5001' for non-encrypted requests
2016-12-15T10:27:16Z [1] INFO ArangoDB (version 3.1.4 [linux]) is ready for business. Have fun!
2016-12-15T10:27:17Z [1] INFO {agency} Entering gossip phase ...
2016-12-15T10:29:22Z [1] INFO {agency} Adding c25876a4-532d-4eef-915b-4cb4c47f9100(tcp://<IP_ADDRESS>:15001) to agent pool
2016-12-15T10:34:06Z [1] INFO {agency} Adding 07ca864b-ba46-4e7f-97f9-920a1230254c(tcp://<IP_ADDRESS>:15002) to agent pool
2016-12-15T11:27:21Z [1] INFO {agency} Estimating RAFT timeouts ...
2016-12-15T11:27:37Z [1] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:15002'
2016-12-15T11:27:52Z [1] WARNING {agency} Timed out waiting for other measurements. Auto-adaptation failed!Will stick to command line arguments
2016-12-15T11:27:52Z [1] INFO {agency} Activating agent.
agency2 log
[root@host81 ~]# docker logs -f agency2
2016/12/15 10:33:55 Error resolving syscall name execveat: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name getrandom: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name memfd_create: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name renameat2: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name sched_getattr: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name sched_setattr: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name seccomp: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name breakpoint: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name cacheflush: could not resolve name to syscall - ignoring syscall.
2016/12/15 10:33:55 Error resolving syscall name set_tls: could not resolve name to syscall - ignoring syscall.
Initializing database...Hang on...
Database initialized...Starting System...
2016-12-15T10:34:02Z [1] INFO ArangoDB 3.1.4 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8 <IP_ADDRESS>, OpenSSL 1.0.1t  3 May 2016
2016-12-15T10:34:02Z [1] INFO using SSL options: SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_TLS_ROLLBACK_BUG
2016-12-15T10:34:02Z [1] INFO file-descriptors (nofiles) hard limit is 1048576, soft limit is 1048576
2016-12-15T10:34:02Z [1] INFO JavaScript using startup '/usr/share/arangodb3/js', application '/var/lib/arangodb3-apps'
2016-12-15T10:34:02Z [1] INFO In database '_system': Found 14 defined task(s), 1 task(s) to run
2016-12-15T10:34:02Z [1] INFO In database '_system': state standalone/existing, tasks updateUserModels
2016-12-15T10:34:02Z [1] INFO In database '_system': existing cleanup successfully finished
2016-12-15T10:34:02Z [1] INFO using endpoint 'http+tcp://<IP_ADDRESS>:5001' for non-encrypted requests
2016-12-15T10:34:04Z [1] INFO ArangoDB (version 3.1.4 [linux]) is ready for business. Have fun!
2016-12-15T10:34:05Z [1] INFO {agency} Entering gossip phase ...
2016-12-15T10:34:05Z [1] INFO {agency} Adding 61dd4bac-f642-4054-990e-a9b07888e9b6(tcp://<IP_ADDRESS>:15001) to agent pool
2016-12-15T10:34:05Z [1] INFO {agency} Adding c25876a4-532d-4eef-915b-4cb4c47f9100(tcp://<IP_ADDRESS>:15001) to agent pool
2016-12-15T11:34:09Z [1] INFO {agency} Estimating RAFT timeouts ...
2016-12-15T11:34:25Z [1] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:15001'
2016-12-15T11:34:40Z [1] WARNING {agency} Timed out waiting for other measurements. Auto-adaptation failed!Will stick to command line arguments
2016-12-15T11:34:40Z [1] INFO {agency} Activating agent.
agency3 log
Initializing database...Hang on...
Database initialized...Starting System...
2016-12-15T10:29:20Z [1] INFO ArangoDB 3.1.4 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8 <IP_ADDRESS>, OpenSSL 1.0.1t  3 May 2016
2016-12-15T10:29:20Z [1] INFO using SSL options: SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_TLS_ROLLBACK_BUG
2016-12-15T10:29:20Z [1] INFO file-descriptors (nofiles) hard limit is 65536, soft limit is 65536
2016-12-15T10:29:20Z [1] INFO JavaScript using startup '/usr/share/arangodb3/js', application '/var/lib/arangodb3-apps'
2016-12-15T10:29:20Z [1] INFO In database '_system': Found 14 defined task(s), 1 task(s) to run
2016-12-15T10:29:20Z [1] INFO In database '_system': state standalone/existing, tasks updateUserModels
2016-12-15T10:29:20Z [1] INFO In database '_system': existing cleanup successfully finished
2016-12-15T10:29:20Z [1] INFO using endpoint 'http+tcp://<IP_ADDRESS>:5001' for non-encrypted requests
2016-12-15T10:29:22Z [1] INFO ArangoDB (version 3.1.4 [linux]) is ready for business. Have fun!
2016-12-15T10:29:23Z [1] INFO {agency} Entering gossip phase ...
2016-12-15T10:29:23Z [1] INFO {agency} Adding 61dd4bac-f642-4054-990e-a9b07888e9b6(tcp://<IP_ADDRESS>:15001) to agent pool
2016-12-15T10:34:05Z [1] INFO {agency} Adding 07ca864b-ba46-4e7f-97f9-920a1230254c(tcp://<IP_ADDRESS>:15002) to agent pool
2016-12-15T10:34:10Z [1] INFO {agency} Agent pool completed. Stopping active gossipping. Starting RAFT process.
2016-12-15T10:34:10Z [1] INFO {agency} Estimating RAFT timeouts ...
2016-12-15T10:34:26Z [1] WARNING {agency} Timed out waiting for other measurements. Auto-adaptation failed!Will stick to command line arguments
2016-12-15T10:34:26Z [1] INFO {agency} Activating agent.

I change agency2 and agency3 to <IP_ADDRESS>, It seems work now. And these web information seems ok. It seems <IP_ADDRESS>, this machine has some limit for connecting to itself.
##These logs are very strange.
2016-12-15T11:27:37Z [1] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:15002'
2016-12-15T11:34:25Z [1] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:15001'
##agency1: http://<IP_ADDRESS>:15001/_db/_system/_admin/aardvark/index.html#collection/configuration/0
{
"cfg": {
"active": [
"d4671072-9f84-4043-8956-ce7bda254046",
"da963085-1daa-4e06-be14-a9203590a6dd",
"e99e947b-45ef-4bb6-9db4-78a57ca3bd07"
],
"agency size": 3,
"compaction step size": 1000,
"endpoint": "tcp://<IP_ADDRESS>:15001",
"id": "da963085-1daa-4e06-be14-a9203590a6dd",
"max ping": 2.5,
"min ping": 0.5,
"pool": {
"da963085-1daa-4e06-be14-a9203590a6dd": "tcp://<IP_ADDRESS>:15001",
"e99e947b-45ef-4bb6-9db4-78a57ca3bd07": "tcp://<IP_ADDRESS>:15002",
"d4671072-9f84-4043-8956-ce7bda254046": "tcp://<IP_ADDRESS>:15001"
},
"pool size": 3,
"startup": "origin",
"supervision": true,
"supervision frequency": 5,
"supervision grace period": 15,
"version": 1
}
##agency2: http://<IP_ADDRESS>:15001/_db/_system/_admin/aardvark/index.html#collection/configuration/0
{
"cfg": {
"active": [
"d4671072-9f84-4043-8956-ce7bda254046",
"da963085-1daa-4e06-be14-a9203590a6dd",
"e99e947b-45ef-4bb6-9db4-78a57ca3bd07"
],
"agency size": 3,
"compaction step size": 1000,
"endpoint": "tcp://<IP_ADDRESS>:15001",
"id": "d4671072-9f84-4043-8956-ce7bda254046",
"max ping": 2.5,
"min ping": 0.5,
"pool": {
"d4671072-9f84-4043-8956-ce7bda254046": "tcp://<IP_ADDRESS>:15001",
"e99e947b-45ef-4bb6-9db4-78a57ca3bd07": "tcp://<IP_ADDRESS>:15002",
"da963085-1daa-4e06-be14-a9203590a6dd": "tcp://<IP_ADDRESS>:15001"
},
"pool size": 3,
"startup": "origin",
"supervision": true,
"supervision frequency": 5,
"supervision grace period": 15,
"version": 1
}
}
##agency3: http://<IP_ADDRESS>:15002/_db/_system/_admin/aardvark/index.html#collection/configuration/0
{
"cfg": {
"active": [
"d4671072-9f84-4043-8956-ce7bda254046",
"da963085-1daa-4e06-be14-a9203590a6dd",
"e99e947b-45ef-4bb6-9db4-78a57ca3bd07"
],
"agency size": 3,
"compaction step size": 1000,
"endpoint": "tcp://<IP_ADDRESS>:15002",
"id": "e99e947b-45ef-4bb6-9db4-78a57ca3bd07",
"max ping": 2.5,
"min ping": 0.5,
"pool": {
"e99e947b-45ef-4bb6-9db4-78a57ca3bd07": "tcp://<IP_ADDRESS>:15002",
"da963085-1daa-4e06-be14-a9203590a6dd": "tcp://<IP_ADDRESS>:15001",
"d4671072-9f84-4043-8956-ce7bda254046": "tcp://<IP_ADDRESS>:15001"
},
"pool size": 3,
"startup": "origin",
"supervision": true,
"supervision frequency": 5,
"supervision grace period": 15,
"version": 1
}

So many error, when i restart a db, and then move shard between the two dbs, one coordinator is broken, i can't get data from my test collection now.
2016-12-16T02:11:38Z [1] ERROR {cluster} cannot create connection to server 'DBServer001' at endpoint 'tcp://<IP_ADDRESS>:18529'
2016-12-16T02:11:38Z [1] ERROR {cluster} ClusterComm::performRequests: got BACKEND_UNAVAILABLE or TIMEOUT from shard:s101434:/_db/_system/_api/collection/s101434/count
2016-12-16T02:11:49Z [1] ERROR {cluster} cannot create connection to server 'DBServer001' at endpoint 'tcp://<IP_ADDRESS>:18529'
2016-12-16T02:11:49Z [1] ERROR {cluster} ClusterComm::performRequests: got BACKEND_UNAVAILABLE or TIMEOUT from shard:s101434:/_db/_system/_api/collection/s101434/count

tcp        0      0 <IP_ADDRESS>:18529      <IP_ADDRESS>:*               LISTEN      12233/docker-proxy

Recreate the coordinator also failed. Log ouput this error all the time:
2016-12-16T02:30:22Z [1] ERROR Service "/_admin/aardvark" encountered error 500 while handling GET http://<IP_ADDRESS>:18531/_db/_system/_admin/aardvark/statistics/coordshort
2016-12-16T02:30:22Z [1] ERROR SyntaxError: Unexpected token u in JSON at position 0
2016-12-16T02:30:22Z [1] ERROR     at Object.parse (native)
2016-12-16T02:30:22Z [1] ERROR     at coordinators.map.e (/usr/share/arangodb3/js/apps/system/_admin/aardvark/APP/statistics.js:504:19)
2016-12-16T02:30:22Z [1] ERROR     at Array.map (native)
2016-12-16T02:30:22Z [1] ERROR     at Route._handler (/usr/share/arangodb3/js/apps/system/_admin/aardvark/APP/statistics.js:499:39)
2016-12-16T02:30:22Z [1] ERROR     at next (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/router/tree.js:385:15)
2016-12-16T02:30:22Z [1] ERROR     at /usr/share/arangodb3/js/node/node_modules/lodash/lodash.js:9378:25
2016-12-16T02:30:22Z [1] ERROR     at Middleware.router.use (/usr/share/arangodb3/js/apps/system/_admin/aardvark/APP/statistics.js:405:3)
2016-12-16T02:30:22Z [1] ERROR     at next (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/router/tree.js:387:15)
2016-12-16T02:30:22Z [1] ERROR     at next (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/router/tree.js:383:7)
2016-12-16T02:30:22Z [1] ERROR     at next (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/router/tree.js:383:7)
2016-12-16T02:30:26Z [1] ERROR Couldn't read statistics response: undefined

https://www.arangodb.com/2016/12/starting-arangodb-cluster-easy-way/  Tool in this article simplified test deployment.

iptables prohibit docker container and host connection.
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited
10:58:18.288121 IP <IP_ADDRESS>.36624 > host81.18529: Flags [S], seq 290103964, win 14600, options [mss 1460,sackOK,TS val<PHONE_NUMBER> ecr 0,nop,wscale 7], length 0
10:58:18.288121 IP <IP_ADDRESS>.36624 > host81.18529: Flags [S], seq 290103964, win 14600, options [mss 1460,sackOK,TS val<PHONE_NUMBER> ecr 0,nop,wscale 7], length 0
10:58:18.288145 IP host81 > <IP_ADDRESS>: ICMP host host81 unreachable - admin prohibited, length 68
10:58:18.288147 IP host81 > <IP_ADDRESS>: ICMP host host81 unreachable - admin prohibited, length 68


Feature request: Global 64-bit atomics

It would be interesting if we could get access to GCN's 64-bit global memory atomic operations as intrinsics, like 64-bit atomic min . For example, to do things like what was shown here: https://timothylottes.github.io/20161121.html

+1

+1

These are all in AGS now.


Set Table form field display

Have downloaded and installed the latest version of Set Table and noticed the table is not displaying any rows (see screenshot). I am using the field type on a structure entry page and stand alone (i.e. not within a matrix field type).

The below screenshot shows the settings I am using to configure the field type for the structure entry.

@richhayler Sorry about that - try the latest release and you should be good to go.

Updated and works a charm and tested implementation for multiple entries and that is working beautifully now. Thank you very, very much. This plugin is going to be extremely useful and valuable for me and my team.

Great to hear!


Make sure cirq gates and operations decompose to XPow/YPow/ZPow/CZPow + Measurement

Fixes https://github.com/quantumlib/Cirq/issues/4858
This PR makes sure that most cirq gates and operations decompose to a default cirq gateset, which is defined to be XPow/YPow/ZPow/CZPow/Measurement and GlobalPhaseGate.
cirq.testing.assert_implements_consistent_protocols is extended to also check that if an object (gate / operation) has a _decompose_ method defined, then it should always end up decomposing to the cirq default gateset.
Note that some gates, like MatrixGates on more than 3 qubits, Controlled gates acting on qudits / multi-qubit matrix gates etc.  can still not be decomposed into the default gateset always.

This cannot be split into two parallel PRs because I'm adding the new assert_decompose_ends_at_default_gateset to the standard assert_implements_consistent_protocols, which in-turn is then used in tests for all gates to make sure that their decomposition ends at the target gateset.
I can split it into 3 sequential PRs -- one that adds decomposition for Matrix gates, one for Controlled Gates and third which adds assert_decompose_ends_at_default_gateset, but I'll need to add redundant tests in the first 2 PRs for coverage, which will then be replaced by the standard assert_implements_consistent_protocols in the 3rd PR.
Let me know your preference.

Hmmm could we do three just to be on the safe side ?

sure, I'll send the individual PRs shortly.


ci(travis): add missing platforms

The Travis configuration is currently missing some platforms because there are issues:
https://github.com/apache/cordova-plugin-geolocation/issues/159
https://github.com/apache/cordova-plugin-geolocation/issues/158
When those are fixed, this can be merged to improve the coverage of the CI.

Superseded by https://github.com/apache/cordova-plugin-geolocation/pull/234


Failed to parse response. KeyError: GET_MAP_OBJECTS

See screen capture below.  Tried using most recent commit, same issue.  Has been happening since this morning without -c.
http://imgur.com/a/mqQTp

I second this issue

Command line output? Probably related to #58.


About the training intermediate result.

Hello, really thanks for your great work,
I have a question about the intermediate result. I am trying to reproduce the result in the video domain, but it is really hard to train and the loss does not drop significantly and it keeps producing the pure image where this whole image contains only one color. I just want to ask is it also true for the intermedia result in the Maskgit ?
Really looking forward and thanks for your reply

Hello,
I did not have this problem when training on ImageNet. The images looked bad in the beginning, but in a constant improvement all along the training, as well as the loss. After ~50epochs the object in the generated image was quite recognizable.
Best,
Victor


Permit null for identity & label arguments.

We currently require these values, if specified, to be undefined
or an object/string; we should accept null as well.

Note that these lines are too long, but I wasn't sure yet what the correct wrapping convention is for such things.

Thanks. Pushed a new version.


Noobaa is not starting the service by reading the configuration stored in the mount system post the system reboot.

Environment info

NooBaa Version: 5.15.0-20240221
Platform: standalone

Actual behavior

[root@test ~]#  Service is coming up with default configuration

Feb 28 04:46:44 c83f1-app2 kernel: Linux version 5.14.0-362.8.1.el9_3.x86_64<EMAIL_ADDRESS>(gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2), GNU ld version 2.35.2-42.el9) #1 SMP PREEMPT_DYNAMIC Tue Oct 3 11:12:36 EDT 2023
Feb 28 04:46:44 c83f1-app2 kernel: The list of certified hardware and cloud instances for Red Hat Enterprise Linux 9 can be viewed at the Red Hat Ecosystem Catalog, https://catalog.redhat.com/.
Feb 28 04:46:44 c83f1-app2 kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.14.0-362.8.1.el9_3.x86_64 root=/dev/mapper/rhel_c83f1--app2-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_c83f1--app2-swap rd.lvm.lv=rhel_c83f1-app2/root rd.lvm.lv=rhel_c83f1-app2/swap
Feb 28 04:46:44 c83f1-app2 kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 28 04:46:44 c83f1-app2 kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Feb 28 04:46:44 c83f1-app2 kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Feb 28 04:46:44 c83f1-app2 kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Feb 28 04:46:44 c83f1-app2 kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
Feb 28 04:46:44 c83f1-app2 kernel: signal: max sigframe size: 1776
Feb 28 04:46:44 c83f1-app2 kernel: BIOS-provided physical RAM map:
....
Feb 28 04:46:53 c83f1-app2 NetworkManager[2313]:   [1709113613.9775] device (ens1f0np0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 28 04:46:53 c83f1-app2 systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 28 04:46:53 c83f1-app2 systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Feb 28 04:46:54 c83f1-app2 node[2318]: load_nsfs_nc_config.setting config.NSFS_NC_CONF_DIR /cesSharedRoot//ces/s3-config
Feb 28 04:46:54 c83f1-app2 node[2318]: config.load_nsfs_nc_config could not find config.json... skipping
Feb 28 04:46:54 c83f1-app2 node[2318]: [Upgrade/2318] #033[36m   [L0]#033[39m UPGRADE:: upgrade manager started..
Feb 28 04:46:54 c83f1-app2 node[2318]: #033[32mFeb-28 4:46:54.245#033[35m [Upgrade/2318] #033[36m   [L0]#033[39m UPGRADE:: upgrade manager started..
Feb 28 04:46:54 c83f1-app2 node[2318]: [Upgrade/2318] #033[33m [WARN]#033[39m CONSOLE:: config.load_nsfs_nc_config could not find config.json... skipping
Feb 28 04:46:54 c83f1-app2 node[2318]: #033[32mFeb-28 4:46:54.250#033[35m [Upgrade/2318] #033[33m [WARN]#033[39m CONSOLE:: config.load_nsfs_nc_config could not find config.json... skipping
Feb 28 04:46:54 c83f1-app2 node[2318]: [Upgrade/2318] #033[36m  [LOG]#033[39m CONSOLE:: read_rand_seed: reading 32 bytes from /dev/random ...
Feb 28 04:46:54 c83f1-app2 node[2318]: #033[32mFeb-28 4:46:54.250#033[35m [Upgrade/2318] #033[36m  [LOG]#033[39m CONSOLE:: read_rand_seed: reading 32 bytes from /dev/random ...
Feb 28 04:46:54 c83f1-app2 node[2318]: [Upgrade/2318] #033[33m [WARN]#033[39m core.util.json_utils:: could not find json file /cesSharedRoot/ces/s3-config/system.json. returning empty data
Feb 28 04:46:54 c83f1-app2 node[2318]: #033[32mFeb-28 4:46:54.250#033[35m [Upgrade/2318] #033[33m [WARN]#033[39m core.util.json_utils:: could not find json file /cesSharedRoot/ces/s3-config/system.json. returning empty data
Feb 28 04:46:54 c83f1-app2 node[2318]: [Upgrade/2318] #033[36m  [LOG]#033[39m UPGRADE:: system does not exist. no need for an upgrade
Feb 28 04:46:54 c83f1-app2 node[2318]: #033[32mFeb-28 4:46:54.250#033[35m [Upgrade/2318] #033[36m  [LOG]#033[39m UPGRADE:: system does not exist. no need for an upgrade
Feb 28 04:46:54 c83f1-app2 node[2318]: [Upgrade/2318] #033[36m   [L0]#033[39m UPGRADE:: upgrade completed successfully!
Feb 28 04:46:54 c83f1-app2 node[2318]: #033[32mFeb-28 4:46:54.250#033[35m [Upgrade/2318] #033[36m   [L0]#033[39m UPGRADE:: upgrade completed successfully!
Feb 28 04:46:54 c83f1-app2 systemd[1]: Started The NooBaa nsfs service..
Feb 28 04:46:54 c83f1-app2 kernel: mlx5_core 0000:41:00.0 ens1f0np0: Link up
Feb 28 04:46:54 c83f1-app2 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): ens1f0np0: link becomes ready
Feb 28 04:46:54 c83f1-app2 NetworkManager[2313]:   [1709113614.3342] manager: (ens1f1np1): new Ethernet device (/org/freedesktop/NetworkManager/Devices/4)
...
Feb 28 04:46:54 c83f1-app2 node[2356]: load_nsfs_nc_config.setting config.NSFS_NC_CONF_DIR /cesSharedRoot//ces/s3-config
Feb 28 04:46:54 c83f1-app2 node[2356]: config.load_nsfs_nc_config could not find config.json... skipping
Feb 28 04:46:54 c83f1-app2 kernel: mlx5_core 0000:41:00.1 ens1f1np1: Link up
Feb 28 04:46:54 c83f1-app2 NetworkManager[2313]:   [1709113614.7042] manager: (ens5f0np0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/5)
Feb 28 04:46:54 c83f1-app2 NetworkManager[2313]:   [1709113614.7044] device (ens5f0np0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 28 04:46:55 c83f1-app2 kernel: mlx5_core 0000:a1:00.0 ens5f0np0: Link down
....
....
....
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.718#033[35m [nsfs/2356] #033[33m [WARN]#033[39m core.util.json_utils:: could not find json file
/cesSharedRoot/ces/s3-config/system.json. returning empty data
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[36m  [LOG]#033[39m CONSOLE:: init_rand_seed: seeding with 32 bytes
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.719#033[35m [nsfs/2356] #033[36m  [LOG]#033[39m CONSOLE:: init_rand_seed: seeding with 32 bytes
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[31m[ERROR]#033[39m CONSOLE:: failed to create NSFS system data [Error: ENOENT: no such file or directo
ry, unlink '/cesSharedRoot/ces/s3-config/system.json.lt5m4c9q-34357b75'] { errno: #033[33m-2#033[39m, code: #033[32m'ENOENT'#033[39m, syscall: #033[32m'un
link'#033[39m, path: #033[32m'/cesSharedRoot/ces/s3-config/system.json.lt5m4c9q-34357b75'#033[39m }
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.719#033[35m [nsfs/2356] #033[31m[ERROR]#033[39m CONSOLE:: failed to create NSFS system data [Err
or: ENOENT: no such file or directory, unlink '/cesSharedRoot/ces/s3-config/system.json.lt5m4c9q-34357b75'] { errno: #033[33m-2#033[39m, code: #033[32m'EN
OENT'#033[39m, syscall: #033[32m'unlink'#033[39m, path: #033[32m'/cesSharedRoot/ces/s3-config/system.json.lt5m4c9q-34357b75'#033[39m }
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: endpoint: replacing old umask:  22 with new umask:  0
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.767#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: endpoint: replacing old
umask:  22 with new umask:  0
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Configured Virtual Hosts: []
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.768#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Configured Virtual Host
s: []
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Configured Location Info: { region: #033[32m''#033[39m }
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.768#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Configured Location Inf
o: { region: #033[32m''#033[39m }
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[36m  [LOG]#033[39m CONSOLE:: generate_entropy: entropy_avail 256
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.768#033[35m [nsfs/2356] #033[36m  [LOG]#033[39m CONSOLE:: generate_entropy: entropy_avail 256
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[36m   [L0]#033[39m core.util.ssl_utils:: SSL certificate not found in dir /cesSharedRoot/ces/s3-co
nfig/certificates/
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.773#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.util.ssl_utils:: SSL certificate not found
in dir /cesSharedRoot/ces/s3-config/certificates/
Feb 28 04:46:58 c83f1-app2 node[2356]: [nsfs/2356] #033[33m [WARN]#033[39m core.util.ssl_utils:: Generating self-signed SSL certificate for S3
Feb 28 04:46:58 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:58.773#033[35m [nsfs/2356] #033[33m [WARN]#033[39m core.util.ssl_utils:: Generating self-signed SSL
certificate for S3
Feb 28 04:46:59 c83f1-app2 node[2356]: [nsfs/2356] #033[33m [WARN]#033[39m core.util.ssl_utils:: Certificate folder  /cesSharedRoot/ces/s3-config/certific
ates/  does not exist. New certificate won't be loaded.
Feb 28 04:46:59 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:59.043#033[35m [nsfs/2356] #033[33m [WARN]#033[39m core.util.ssl_utils:: Certificate folder  /c
esSharedRoot/ces/s3-config/certificates/  does not exist. New certificate won't be loaded.
Feb 28 04:46:59 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:59.073#033[35m [nsfs/2356] #033[33m [WARN]#033[39m core.endpoint.endpoint:: HTTP is not allowed for NC NSFS.
Feb 28 04:46:59 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:59.073#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Starting S3 HTTPS #033[33m6443#033[39m
Feb 28 04:46:59 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:59.074#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Started S3 HTTPS successfully
Feb 28 04:46:59 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:59.074#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.endpoint.endpoint:: Starting metrics server #033[33m7004#033[39m
Feb 28 04:46:59 c83f1-app2 node[2356]: #033[32mFeb-28 4:46:59.074#033[35m [nsfs/2356] #033[36m   [L0]#033[39m core.server.analytic_services.prometheus_reporting:: Starting prometheus metrics server on HTTP port #033[33m7004#033[39m
...
Expected behavior
1.Service should come up by reading from the configured configuration file
Steps to reproduce

. [root@test ~]# cat /mnt/ces/s3-config/config.json
{
"ENDPOINT_FORKS": 2,
"ENDPOINT_PORT": 6001,
"ENDPOINT_SSL_PORT": 6443,
"ALLOW_HTTP": true,
"UV_THREADPOOL_SIZE": 16,
"TEST_DL_PATH": "/usr/lpp/mmfs/lib/libtest.so",
"NOOBAA_LOG_LEVEL": "default",
"NSFS_NC_STORAGE_BACKEND": "test",
"NSFS_NC_CONFIG_DIR_BACKEND": "test",
"NSFS_DIR_CACHE_MAX_DIR_SIZE": 268435456,
"NSFS_DIR_CACHE_MAX_TOTAL_SIZE": 805306368
}
Reboot the system.
Post reboot of the system  when the noobaa comes up it is using default configuration instead of reading of config.json.
This issue happens when the service starts before the mounting is available

More information - Screenshots / Logs / Other output

@ramya-c3 @tangledbytes
looks like NooBaa is aware of the missing config dir, but we continue to run the server -
failed to create NSFS system data [Error: ENOENT: no such file or directo
ry, unlink '/cesSharedRoot/ces/s3-config/system.json.lt5m4c9q-34357b75'] { errno: https://github.com/noobaa/noobaa-core/pull/33[33m-2#033[39m, code: https://github.com/noobaa/noobaa-core/pull/33[32m'ENOENT'https://github.com/noobaa/noobaa-core/pull/33[39m, syscall: https://github.com/noobaa/noobaa-core/pull/33[32m'un
link'https://github.com/noobaa/noobaa-core/pull/33[39m, path: https://github.com/noobaa/noobaa-core/pull/33[32m'/cesSharedRoot/ces/s3-config/system.json.lt5m4c9q-34357b75'

I suggest failing the nsfs.js script completely on this case @tangledbytes WDYT?

noobaa_nsfs service already checking for gpfs file mount before starting the service in noobaa_nsfs.service. Looks like it's not working as expected,
After=gpfs-wait-mount.service
@janfrode @ramya-c3 Could you please provide more specific preconditions check that validate file mount.

According to the documentation, gpfs-wait-mount.service should be correct I think:
https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=gpfs-planning-systemd
gpfs-wait-mount.service
Marker service which switches to active after the GPFS filesystems have been mounted. It uses the filesystem state as shown in the mmhealth node show command output for its status. The status for the mmhealth command only looks at filesystems which have automount value set to yes.

But checking c83f1-app2 which I think was the machine @ramya-c3 had issue with, I see that this service has not been enabled. Maybe that's the problem, that we must make sure to enable the gpfs-wait-mount.service for the After= to have an effect?
[root@c83f1-app2 ~]# systemctl status gpfs-wait-mount.service
○ gpfs-wait-mount.service
     Loaded: loaded (/usr/lib/systemd/system/gpfs-wait-mount.service; disabled; preset: disabled)
     Active: inactive (dead)

https://serverfault.com/questions/812584/in-systemd-whats-the-difference-between-after-and-requires
Also, the way I understand it (although I can't test that now and don't find a reference), After= is "loose coupling", which effectively means that a service with an After statement would still run even if the one named in the After= line isn't started at all, while Requires= would prevent its start if the requirement isn't met.
So maybe it should be Requires= instead of After=.  If we do Requires=, that would automatically trigger the gpfs-wait-mount.service to be enabled when noobaa_nsfs service is enabled. But that would break this service on non-GPFS systems..

@janfrode looks like the After= won't start the gpfs service, but if we will add Wants= the gpfs wait mount service will be started when noobaa_nsfs is started...
WDYT? (Requires= won't be working for non GPFS deployments as you mentioned in the github issue)

re-opening for validation, @ramya-c3 this fix can currently be validated using upstream RPMs


converted into constrant layout issue #149.

NOTE: Please review the pull request process before opening your first PR: https://github.com/WikiEducationFoundation/apps-android-wikiedudashboard/blob/master/CONTRIBUTING.md#pull-request-process
What this PR does
Fixes #issueNumber
< describe the purpose of this pull request and note the issue it addresses >
Screenshots
Before:
< add a screenshot of the UI before your change >
After:
< add a screenshot of the UI after your change >
Open questions and concerns
< anything you learned that you want to share, or questions you're wondering about related to this PR >

sir @ujjwalagrawal17 let me know if i did something wrong else merge it.

We need to remove the nested linear, relative layouts too. Also, we follow camelCase naming convention in XML files because we are using kotlin synthetic for binding views.


implemented state and category filters

Still working on test and readability of code but would like some feedback before continuing. I added the mock-data geospatial short-names and "Category 01, Category 02," to the selections so that the filtering would work with it.
Signed-off-by: felizj17<EMAIL_ADDRESS>

The filtering is working and the test have been updated. Awaiting review for merge

@felizj17 Thanks again for your contribution during Hacktoberfest :)! We would like to invite you to join us for our Hacktoberfest Demo Day on October 29th where we'll be highlighting contributions and thanking everyone who participated. Let me know if you can make it! https://www.crowdcast.io/e/hacktoberfest-demo-day/register
Also we'll be calling on a few contributors to speak about issues they worked on during Hacktoberfest. Let me know if you'd be interested/available to do that: either live or by providing us some text ahead of the event.


M1 Support?

I was testing the one_file_rey.py on my m1 pro 32 gb unified memory, and was running into issues relating to converting the model to use mps or even cpu instead, ran into this first
NotImplementedError: The operator 'aten::view_as_complex' is not currently implemented for the MPS device. If you want this op to be added in priority during the prototype phase of this feature, please comment on https://github.com/pytorch/pytorch/issues/77764. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. WARNING: this will be slower than running natively on MPS.

So with that flag enabled I run into
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, mps:0 and cpu!

so switching everything to cpu even though it will be slow af results in
RuntimeError: "log_vml_cpu" not implemented for 'Half'

Any ideas, or do I simply have to learn how to configure a CUDA runtime properly?

Maybe this is a different approach https://advanced-stack.com/resources/running-inference-using-mistral-ai-first-released-model-with-llama-cpp.html ?

Another approach https://ollama.ai

Thank you, testing out ollama now if not I will try ggml and pr a demo script using that

Ollama support worked, thank you @olso


updated package.json

@RANJITHROSAN17 thanks for the PR. Can you also please update the lock file?

@RANJITHROSAN17 thanks for the PR. Can you also please update the lock file?

sir i am new to github. i removed package and updated lock.json file. that was successful but i dont know how to send that updated lock.json to github. as i am new to github i dont know let me see in youtube and try to solve.
have a nice day.

I am fresher b.tech student.
You give me one star to my profile it will boost me.
Bye sir


Translate

We should add an option to define the language of components.

@regisnew, aside from the one-time binding of certain labels in the datepicker (see #4692), what component are you thinking needs i18n support?

Datepicker

Ok, I'm going to close this as a duplicate of #4692 then.  Maybe we decide to use this one over that one, but we don't want multiple issues tracking i18n of the datepicker.  Thanks.


Javascript SDK and SPA Sample

This is to track Javascript OIDC SDK development and React based SPA sample

Duplicates: https://github.com/wso2/product-is/issues/8270


auto allocate ips based on hashing

To prevent unnecessary listener draining and to have a stable IP allocated for service entries.

[ ] Ambient
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
c5e10f59f988cca3f200fd60bc91e3d153eed9ca
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
c5e10f59f988cca3f200fd60bc91e3d153eed9ca
link
true
/test unit-tests-arm64

unit-tests_istio
c5e10f59f988cca3f200fd60bc91e3d153eed9ca
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
c5e10f59f988cca3f200fd60bc91e3d153eed9ca
link
true
/test unit-tests

unit-tests-arm64_istio
42fc3b447be336b843a7eec6ef5104cb6ca715c1
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
42fc3b447be336b843a7eec6ef5104cb6ca715c1
link
true
/test unit-tests-arm64

unit-tests_istio
42fc3b447be336b843a7eec6ef5104cb6ca715c1
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

i.e. update the status of the Service entry with the IP ?

This is not viable, service entry and Service are not 1:1 mapping

It doesn't have to be 1:1 mapping. If a ServiceEntry defines 5 hosts - we
can add 5 annotations or status entries, one for each host, so
for example if ServiceEntry has 5 hosts - we allocate 5 IPs ( we can
probably allocate a single IP for a *.example.com host ).
K8S Service is different - and many believe it is not ideally suited for IP
and DNS config, with plans to replace it with something
better. So it may not be ideal to use annotations or status on ServiceEntry

but it's just a placeholder until K8S figures this out.

On Mon, Jan 2, 2023 at 7:07 PM Zhonghu Xu @.***> wrote:

i.e. update the status of the Service entry with the IP ?
This is not viable, service entry and Service are not 1:1 mapping
—
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/42624#issuecomment-1369348931, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAUR2XA77LK2NITOEUAX5TWQOJVJANCNFSM6AAAAAATOUGHDU
.
You are receiving this because your review was requested.Message ID:
@.***>

I think the hash based allocation would mostly solve all cases and we may not need to go down the path of updating status and coordinating across all Istio instances (we will have to deal with conflicts or do some sort of leader election or do it in a webhook). So there is a bit a complexity and needs more thinking. I prefer we move forward with this if this looks good, while thinking about Status/Annotations

We have plenty of leader election code to update status, that's a given.
I'm not against using the hash or this PR - but maybe we can at least read
if a status or annotation is present on the ServiceEntry (created
by some other controller - maybe a future version of istiod or some
standalone controller ) we can use it ? Those days it's pretty easy
to write controllers or even simple shell scripts to add an annotation or
patch a resource, and having stable, persistent IPs is more
deterministic and easier to debug. So keep the hash, don't write status -
but read a status or annotation if present and use it.
On Tue, Jan 3, 2023 at 7:44 PM Rama Chavali @.***>
wrote:

I think the hash based allocation would mostly solve all cases and we may
not need to go down the path of updating status and coordinating across all
Istio instances (we will have to deal with conflicts or do some sort of
leader election or do it in a webhook). So there is a bit a complexity and
needs more thinking. I prefer we move forward with this if this looks good,
while thinking about Status/Annotations
—
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/42624#issuecomment-1370455861, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAUR2UKYSGY4EURFGPS2DDWQTW3NANCNFSM6AAAAAATOUGHDU
.
You are receiving this because your review was requested.Message ID:
@.***>

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
7a7a0b9cc743f532756c0f4860cab8a2cd6fba4f
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
7a7a0b9cc743f532756c0f4860cab8a2cd6fba4f
link
true
/test unit-tests-arm64

unit-tests_istio
7a7a0b9cc743f532756c0f4860cab8a2cd6fba4f
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn made changes. PTAL when you get chance

@howardjohn PTAL when you get chance. Addressed all comments


make sure Survive!() works

Function survive at in eco_loop_functions.jl has one of the faulty hcat() constructions that also appeared to be at fault in #54. We should check whether it works or breaks something and fix it if it does

I checked - this works as intended!


[Signal-K addon for Hassio] - Unable to expose additional ports required for signal k

Description
Hello,
Trying to open up additional data connections to allow data to feed into Signal K addon.
However I believe home assistant is blocking it at the addon level as the port is a custom port.
Can we add a field(s) on the home assistant configuration where we configure the other default ports to add a few custom ports?
For example I am trying to open 1459/udp at this point in time.
Thanks!
Reproduction steps
Port show as not open due to Hass blocking it before it gets to the addon.

Addon Logs
No logs as it is port closed.

Architecture
No response
OS
No response

Agreed, I would only expose select ports.
Can we setup 3 custom ports with defaults being the following:
Named Custom 1/2/3: Perhaps starting at 1458udp/1459tcp/1460udp
Have them setup on the page the same way and they can always be changed to use the end user for which ports they want.
Is it possible to put a toggle there to enable or disable them?

Hi, they will be added but disabled by default. You'll need to allocate manually a port in the add-on options for them to work

Just wanted to add thanks and it works as expected!

Thanks for the feedback! Enjoy!


Removed the ContentLenth param from upload method

Fixed #118 issue.
When file size exceed of 16777216 bytes (Aws\S3\ObjectUploader::DEFAULT_MULTIPART_THRESHOLD), then the S3Client use Aws\S3\MulitpartUploader and uploading each file part with wrong Content-Length header.

That's already fixed in AWS SDK 3.31.3 https://github.com/aws/aws-sdk-php/blob/3.31.3/CHANGELOG.md


imports github.com/iovisor/gobpf/bcc: build constraints exclude all Go files in<EMAIL_ADDRESS>

Hi
Try to build it on Ubuntu 20.04, It can build OK.

I try to build it on debian arm64 system. But get error as following:
Log:
go: downloading golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c
package github.com/bytedance/netcap
imports github.com/bytedance/netcap/cmd
imports github.com/bytedance/netcap/pkg/dump
imports github.com/bytedance/netcap/pkg/dump/driver
imports github.com/iovisor/gobpf/bcc: build constraints exclude all Go files in<EMAIL_ADDRESS>
Could you give me some advise ?

https://github.com/iovisor/bcc/blob/master/INSTALL.md#install-and-compile-bcc-1   Install bcc from source code may help

Thanks your so much. it can be solved by compiling bcc from source code.


pip install faster-whisper and python version

The installation in a Conda environment with Python 3.12.7 always gave me an error.  A downgrade of Python in a fresh Conda environment to Python 3.11.0 solved the problem.

What was the error?