MySQL ECONNRESET

Environment
Knex version: 0.14.2
Database + version: MySQL 5.5.56 (ClearDB)
OS: Windows 10 - Pro
Node: 8.9.3
Bug

Explain what kind of behaviour you are getting and how you think it should do

After inactivity on a web app, I am receiving an ECONNRESET which after refreshing the page, appears to resolve the some connection issue. I am guessing it's an issue of MySQL ending the connection and knex being unable to realize that.

Error message
Terminal: Knex:warning - Connection Error: Error: Connection lost: The server closed the connection.

Knex response:
select * from `tblcustomers` where `idCustomers` = 60381 - read ECONNRESET
Error: read ECONNRESET
    at _errnoException (util.js:1024:11)
    at TCP.onread (net.js:615:25)
    --------------------
    at Protocol._enqueue (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\mysql\lib\protocol\Protocol.js:145:48)
    at Connection.query (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\mysql\lib\Connection.js:208:25)
    at D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\knex\lib\dialects\mysql\index.js:156:18
    at Promise._execute (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\debuggability.js:303:9)
    at Promise._resolveFromExecutor (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\promise.js:79:10)
    at Client_MySQL._query (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\knex\lib\dialects\mysql\index.js:150:12)
    at Client_MySQL.query (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\knex\lib\client.js:211:17)
    at Runner.<anonymous> (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\knex\lib\runner.js:149:36)
    at Runner.tryCatcher (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\util.js:16:23)
    at Runner.query (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\method.js:15:34)
    at D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\knex\lib\runner.js:61:21
    at tryCatcher (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\util.js:16:23)
    at D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\using.js:185:26
    at tryCatcher (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Users\Chris-PC\Documents\Web Design\KnexIssueTest\node_modules\bluebird\js\release\promise.js:512:31)

Reduced test code, for example in https://npm.runkit.com/knex or if it needs real
database connection to mysql or postgresql, then single file example which initializes
needed data and demonstrates the problem.

My config:
const knex = require("knex")({
    client: 'mysql',
    connection: {
        host: '',
        user: '',
        password: '',
        database: '',
        //debug: true,
        pool: {
            min: 0,
            max: 2
        }
    }
});

After running the following code (which was provided in the other thread) with the connection to my ClearDB mysql database I got the error.
const knex = require('knex')({
    client: 'mysql',
    connection: {
        host: '',
        user: '',
        password: '',
        database: '',
        //debug: true,
        pool: {
            min: 2,
            max: 10
        }
    }
});

console.log(new Date());

const Bluebird = require('bluebird');
function periodOfTime () {
  return Bluebird.delay(1000 * 60 * 15);
}

async function main () {
  await knex.raw('select 1');
  await periodOfTime();
  await knex.raw('select 1');
}

main();

(node:16336) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: select 1 - read ECONNRESET
(node:16336) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

You do not catching a error, try:
async function main () {
 try{
  await knex.raw('select 1');
  await periodOfTime();
  await knex.raw('select 1');
 }catch(e=>console.error(e))
}

2018-02-02T01:08:47.496Z
{ Error: read ECONNRESET
    at _errnoException (util.js:1024:11)
    at TCP.onread (net.js:615:25)
    --------------------
    at Protocol._enqueue (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\mysql\lib\protocol\Protocol.js:145:48)
    at Connection.query (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\mysql\lib\Connection.js:208:25)
    at d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\dialects\mysql\index.js:156:18
    at Promise._execute (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\debuggability.js:303:9)
    at Promise._resolveFromExecutor (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\promise.js:79:10)
    at Client_MySQL._query (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\dialects\mysql\index.js:150:12)
    at Client_MySQL.query (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\client.js:211:17)
    at Runner.<anonymous> (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\runner.js:149:36)
    at Runner.tryCatcher (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\util.js:16:23)
    at Runner.query (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\method.js:15:34)
    at d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\runner.js:61:21
    at tryCatcher (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\util.js:16:23)
    at d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\using.js:185:26
    at tryCatcher (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (d:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\promise.js:512:31)
  code: 'ECONNRESET',
  errno: 'ECONNRESET',
  syscall: 'read',
  fatal: true }

How long did you example ran before throwing the error 15 minutes? is there any way to get local ClearDB installation to try that out? I did ran that test code against mariadb and mysql and I never got any errors.

since that try - catch help I suppose the error is thrown from the second query... not during waiting period like in the other thread.

I only ran it for 15 minutes, and the error is thrown on the second select. ClearDB is just a MySQL as a service provider.

So ClearDB finally got back to me about their connection timeout, and they say that connections are cut after 90 seconds (I am following up if this is from initial connection or idle).

I'll try that with short timeout running mysql in docker. I haven't been able to have this kind of errors when I have tested doing queries to connections closed by server.

@elhigu if needed, I can set up a test cleardb database if that would help at all

have you tried mysql2 dialect instead? I should be able to reproduce that with mysql and just setup connection timeout smaller.

I attempted to use the mysql2 dialect which did not resolve anything, but I can attempt again using the one file to see if it has any success. ClearDB had mentioned using a keep-alive ping that would keep the connections alive. However in my testing when I had done this, I used a setInterval for 5000 ms, which would do knex.raw("SELECT 1"); and did not seem to help. Is there perhaps a better way of doing a 'keep alive'/ping with knex?

I have the same question. Anybody know the reason?

My situation:

knex: 0.14.2
MySQL: 5.7.21

wait_timeout is default (28800)
caught the bellow error 8 hours later:
at _errnoException (util.js:1022:11)
    at TCP.onread (net.js:615:25)
    --------------------
    at Protocol._enqueue (/home/node/code/node_modules/mysql/lib/protocol/Protocol.js:145:48)
    at Connection.query (/home/node/code/node_modules/mysql/lib/Connection.js:208:25)
    at /home/node/code/node_modules/knex/lib/dialects/mysql/index.js:156:18
    at Promise._execute (/home/node/code/node_modules/bluebird/js/release/debuggability.js:303:9)
    at Promise._resolveFromExecutor (/home/node/code/node_modules/bluebird/js/release/promise.js:483:18)
    at new Promise (/home/node/code/node_modules/bluebird/js/release/promise.js:79:10)
    at Client_MySQL._query (/home/node/code/node_modules/knex/lib/dialects/mysql/index.js:150:12)
    at Client_MySQL.query (/home/node/code/node_modules/knex/lib/client.js:211:17)
    at Runner.<anonymous> (/home/node/code/node_modules/knex/lib/runner.js:149:36)
    at Runner.tryCatcher (/home/node/code/node_modules/bluebird/js/release/util.js:16:23)
    at Runner.query (/home/node/code/node_modules/bluebird/js/release/method.js:15:34)
    at /home/node/code/node_modules/knex/lib/runner.js:61:21
    at tryCatcher (/home/node/code/node_modules/bluebird/js/release/util.js:16:23)
    at /home/node/code/node_modules/bluebird/js/release/using.js:185:26
    at tryCatcher (/home/node/code/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/node/code/node_modules/bluebird/js/release/promise.js:512:31)

@CNaismith I'll try to setup stress test script which uses some proxy for closing connections.

mysql driver doesn't seem to crash when connections are closed by proxy, @CNaismith could you verify it with cleardb?

This should be fixed in 0.14.4, reopen and more testing if after that it still fails.

@elhigu I am still able to get this with 0.14.4

@CNaismith I need to see some complete test code since I'm not able to reproduce the problem. I've tried killing connections everywhere in midway of communication between client and server.
I have tried killing connections gracefully from db side and killing forcefully at router layer and both mysql and mysql2 are running stable without leaking exceptions nor memory.

Can you show output of this code?
const knex = require('knex')({
    client: 'mysql',
    connection: {
        host: '',
        user: '',
        password: '',
        database: '',
        //debug: true,
        pool: {
            min: 2,
            max: 10
        }
    }
});

console.log(new Date());

const Bluebird = require('bluebird');
function periodOfTime () {
  return Bluebird.delay(1000 * 60 * 15);
}

async function main () {
  try {
    await knex.raw('select 1');
    await periodOfTime();
    await knex.raw('select 1');
  } catch (e) {
    console.log(e);
  }
}

main().then(() => {
  console.log('Main ended with success');
});

process.on('unhandledRejection', (reason, p) => {
  console.log('Unhandled Rejection at:', p, 'reason:', reason);
});

process.on('uncaughtException', (err) => {
  console.log('Unhandled Exception!', err);
});

2018-02-21T14:08:58.364Z
{ Error: read ECONNRESET
    at _errnoException (util.js:1024:11)
    at TCP.onread (net.js:615:25)
    --------------------
    at Protocol._enqueue (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\mysql\lib\protocol\Protocol.js:145:48)
    at Connection.query (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\mysql\lib\Connection.js:208:25)
    at D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\dialects\mysql\index.js:161:18
    at Promise._execute (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\debuggability.js:303:9)
    at Promise._resolveFromExecutor (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\promise.js:79:10)
    at Client_MySQL._query (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\dialects\mysql\index.js:155:12)
    at Client_MySQL.query (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\client.js:199:17)
    at Runner.<anonymous> (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\runner.js:149:36)
    at Runner.tryCatcher (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\util.js:16:23)
    at Runner.query (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\method.js:15:34)
    at D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\knex\lib\runner.js:61:21
    at tryCatcher (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\util.js:16:23)
    at D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\using.js:185:26
    at tryCatcher (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Users\Chris-PC\Documents\Web Design\KnexSecondTest\node_modules\bluebird\js\release\promise.js:512:31)
  code: 'ECONNRESET',
  errno: 'ECONNRESET',
  syscall: 'read',
  fatal: true }
Main ended with success`

I cannot reproduce that functionality.
Maybe cleardb is cutting connection in a way that it actually does not cut TCP connection straight away, but cuts it when next time data is tried to be sent through connection after certain timeout.
Could you get more info about how they are cutting connection in router layer?
Mikaels-MacBook-Pro-2:knex mikaelle$ node scripts/stress-test/mysql-not-recognizing-connection-drop.js
Knex:warning - Connection Error: Error: Connection lost: The server closed the connection.
Main ended with success

^C
Mikaels-MacBook-Pro-2:knex mikaelle$

const toxiproxy = require('toxiproxy-node-client');
const toxicli = new toxiproxy.Toxiproxy('http://localhost:8474');
const rp = require('request-promise-native');
const Bluebird = require('bluebird');

const knex = require('../../lib')({
  client: 'mysql',
  connection: 'mysql://root:mysqlrootpassword@localhost:23306/?charset=utf8',
  pool: {
      min: 2,
      max: 10
  }
});

async function main () {
  await recreateProxy('mysql', 23306, 3306);
  try {
    await knex.raw('select 1');
    await Bluebird.delay(1000 * 1);
    await recreateProxy('mysql', 23306, 3306); // cut connection router level
    await Bluebird.delay(1000 * 1);
    await knex.raw('select 1');
  } catch (e) {
    console.log(e);
  }
}

main().then(() => {
  console.log('Main ended with success');
});

process.on('unhandledRejection', (reason, p) => {
  console.log('Unhandled Rejection at:', p, 'reason:', reason);
});

process.on('uncaughtException', (err) => {
  console.log('Unhandled Exception!', err);
});

async function recreateProxy(serviceName, listenPort, proxyToPort) {
  try {
    await rp.delete({
      url: `${toxicli.host}/proxies/${serviceName}`
    });
  } catch(err) {}

  const proxy = await toxicli.createProxy({
    name: serviceName,
    listen: `<IP_ADDRESS>:${listenPort}`,
    upstream: `${serviceName}:${proxyToPort}`
  });
}

If clear DB is not showing us any event about connection being closed until data is sent, in that case there is no way that we can recognize before actually doing the query unless we add option for pool validate connection to test connection by sending en extra select 1; query before deciding if connection is fine or not. That will cause lots of innecessary queries going on.
Maybe in your case you could set some pool timeout setting to discard idle connections before cleardb breaks them?

tarn.js pool has timeout option for this:
  // free resouces are destroyed after this many milliseconds
  idleTimeoutMillis: 30000,

Looks like that default value should have already thrown away your idle connection...

Yep... looks like you should never keep idle connections in pool with cleardb. So maybe it starts working if you set your pool min to be 0 so that all idle connections will be discarded after idleTimeoutMillis.

@Naismith , very late to this, but were you able to solve this issue? I couldn't find a proper solution anywhere.


Upgrade Linux Kernel for flatcar-3941 from 6.6.28 to 6.6.30

Subject says it all.

Pushed a build fix for revert-pahole-flags.


(#6) Add Windows icons support

Closes #6

@ForNeVeR Since you mentioned asynchronous loading of icons, I decided to add this improvement as part of this issue: click here

I'm interested to know your suggestions about migrating from System.Drawing to Skia.
Do I understand correctly that we need to access ShellApi.ExtractIconA and then draw the result using Skia?


Tags for the Joint Committee on the Status of Women

Make these as preset tags that are selectable and searchable:
Professional interests:
Women in Medicine in Science
Diversity and Inclusion
Clinical interests:
Women’s Health
Primary Care

c01b3cefa59efa8a27e7e0ad535abe69da793ef0


OAUTH Scopes for Deployment have become invalid

(Please ensure you are running the latest version of Cloud Tools for IntelliJ with Help > Check for Updates)

Cloud Tools for IntelliJ version: 17.8.1
Google Cloud SDK version: 166.0.0
OS: Windows 10 10.0

What did you do?
Try to sign-in to my account to select an application for deployment.
What did you expect to see?
Acceptance of account and list of projects in my account
What did you see instead?
400. That’s an error.
Error: invalid_scope
Some requested scopes cannot be shown: [https://www.googleapis.com/auth/projecthosting, https://www.googleapis.com/auth/appengine.admin, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/cloud_debugger]
Request Details
(screenshots are helpful)
Feel free to deviate from this template as needed, especially if you are submitting a feature request.

Thanks for the report. We are looking into this.

@veridian-labs sorry for the inconvenience. If you update the plugin to version 17.8.2 it should be resolved. Closing the issue for now.

Same issue. To be fair gcloud init produces the same result. Amazing job by google.

Thanks for reporting. We'll fix this asap.

I confirmed its happening with gcloud init and that this issue is beyond the intellij plugin. But it is being looked into and will be addressed. I'll update here when I know more.

hi @developer91234 the issue should be resolved. Could you please confirm? Thanks again.

Hi @etanshaul, I can confirm it now works again. Had the same problem as @developer91234 earlier.

great. thanks @danielandersson


coap: Early clean up steps

This is the first of several end-to-end PRs to come that each represent some progress on the CoAP road map (#226). At this early stage, this is not yet about moving things into the proper modules, but about refactoring and pulling the components into local modules.

The fixed slots are replaced with an LRUish pool
Writes to stdout are redirected to a configurable logger, which the main application directs into a buffer accessible through CoAP, more precisely, only through secure connections that presented a known credential, but not to those just connecting "without client authentication" (there is no such thing in EDHOC, but the client presenting a raw public key is the closest approximation thereof).
The unsafety of turning a &mut impl T into the known implementation is enhanced from wild-west "I know what I'm doing" style to the unsafe-but-justifiable downcast of coap_message.
Minimal authentication (boolean access to stdout) is considered
Lakers is updated to provide access to C_I that was previously only available through knowledge of the peer's choices
The terminal script is runnable standalone through published components on PyPI

Testing

Run with some USB example; I use laze -C examples/coap build -b particle-xenon run
Run any number of terminals with ./fauxhoc.py; notice that they all show the same log output (with up to a second of delay), but once a 5th is started, one of the others terminates.
If you have lakers-python installed from git locally, you can also run python3 fauxhoc.py --random-identity. The client will use a random identity, but still verify the server. In return, the server will answer some of the more basic request, but refuse to send stdout.

Thanks for the review, I've applied the trivial changes and added two more cleanup steps that I merely forgot to push.

in five different terminals as you said, one of the first four ones did get disconnected when starting the fifth one. I obtained quite some output (with some Latin in there, cool), the last lines being:

It's from coap-message-demos -- the convenient thing about Latin poetry is that it's easy to verify that copyright has expired before the concept even existed :-)

which I suppose means it's working.

Kind of; the best indication you got was that they produced stdout in the first place. (You might the key displays even for connections that fail, but you'll see the messages in the output of the programs that worked).

Additionally, could we add another message after the Sending GET to <IP_ADDRESS>:1234... line, when that request got a successful response

That section is barely functional as it is; if there is a response it will be printed, but there is no timeout or anything like that that'd indicate an error (let alone ICMP processing), so I'd postpone that to the next iteration.

, and add a more obvious "It is working!" message to the Python script output? That script could also use a high-level description of that it's trying to do (what requests are made/responses are sent) I think, and have a clearer success criterion in there so it can more or less act as a human-in-the-loop test.

Yes, will do.

It could also be useful to link to the examples/README.md networking configuration in the coap example README because that's the only example that currently relies on the configured computer's IP address by default (not just the device's IP address).

It's not relying on that (see above, "barely functional"), and I had hoped that by the time I'm making progress here there'd be link-local IPv6 around and I wouldn't need that README any more, but as things are, yes, that link will be warranted.

I think I've addressed all comments; when you say it's good to squash, I'll see how good git absorb is with commits :-)

Is it mangled worse than just being trimmed from the start? (There is only a limited buffer; future versions of coap_console might add information like "[n bytes of data could not be retreived]" to it, but that'd be up to that package).

OK thanks, squashing.
Yeah, that's just front truncation. There are lots of things future coap_console iterations might do: color coding missing areas, even leaving gaps when racing to read the latest data, annotating them with [200 bytes missing, {attempting to recover|recovery failed}]. But those might not be fun to do on the console. Maybe they are fun to do in the browser though, I've already tested lakers in the browser through Python:

(We do want to eventually run IoT in to our phones, and the only sane dev environment there are PWAs, right...?)

Squashed and rebased. The latest two commits introduce formatting that was previously not checked, the commit before has the same tree as the pre-squash commit.

I've taken the liberty to add one more commit very suitable to the update: Geovanne has released lakers 0.6.0, so just in time for merging, we're running on aversion from crates.io again.

Looks like this is finally green :-)
@ROMemories, any final comments?

@ROMemories, any final comments?

@ROMemories is on vacations, he let me know offline that he's fine with this PR (now that it doesn't revert those recent main changes anymore /scnr).

Thanks, merging once CI is through.


[Explore]multiple cosmetic issues in Explore popover (metrics, filters)

Text area  and buttons overlap
Text area should have a smaller fixed height, scroll bar should stay within the text area

Save and Close button
Save should be on the right, Close on the left

Resize icon
shrink icon and enough spacing between icon and button

@kgabryje 🙏

@junlin I think we're good here, but I'll let you verify on master :)
Also surprised GH doesn't automatically close issues when the PR says "Fixes #xyz"

@rusackas The fixes syntax works only when it's in the title, commit message, or description. You can also link the issue with the little widget on the right.
https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue

I did it in the description not long ago and it didn't seem to work there. I've never tried the manual linking widget... will do next time for fun :D

all looking good! we can finally move on from popover!! 😆


WFFHCOHORT235 and WFFHCOHORT-265

Added support for execute UI export bundles (235) and loading measures by canonical URL in the MeasureEvaluator (265). See individual commit messages for complete details.

I personally feel like it's worth creating another package within com.ibm.cohort.engine.measure (or next to measure) for all the resolution providers... but that's just a preference thing.


add cascade macros

Hello!
Thanks for the 7Gui on FLTK.
I made some minor edits.
I hope they are useful.
Thanks.

Thanks for your contribution!
I can see the appeal of the cascade macro. However, I'm hesitant to use it here because this repository is primarily an example for fltk-rs, and adding the macro might make the code less immediately clear for readers who aren't familiar with it.
Regarding Cargo.lock, it looks like including it in version control is the best practice.


sollya: 7.0 -> 8.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/sollya/versions.
meta.description for sollya is: "A tool environment for safe floating-point code development"
meta.homepage for sollya is: "https://www.sollya.org/"
meta.changelog for sollya is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/n9s2vq3h2998fdqlg90ihkra7h2g8c7d-sollya-8.0/bin/sollya had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 8.0 with grep in /nix/store/n9s2vq3h2998fdqlg90ihkra7h2g8c7d-sollya-8.0
found 8.0 in filename of file in /nix/store/n9s2vq3h2998fdqlg90ihkra7h2g8c7d-sollya-8.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
sollya

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/n9s2vq3h2998fdqlg90ihkra7h2g8c7d-sollya-8.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A sollya https://github.com/r-ryantm/nixpkgs/archive/8d94aa0660a91692361591560b42a9e260fb5ee7.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/n9s2vq3h2998fdqlg90ihkra7h2g8c7d-sollya-8.0
ls -la /nix/store/n9s2vq3h2998fdqlg90ihkra7h2g8c7d-sollya-8.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

sollya

Maintainer pings

Tested execution on x86_64-linux, LGTM


Provide a way to print to stderr

Description:
Currently, there is no way to print to stderr. It is better to provide this functionality so that the users can easily print error msgs, etc to stderr so that they can clearly distinguish them.

closing this issue, since this requirement is already captured #18269


Comma separated amount

Normally, we need sufficient unit test coverage on this kind of algorithm calculating, to cover all edge situations.
Is there any existing currency formatting JS libs that we can borrow here, so that we do not need write and test algorithms by our own if it is already done well by others?
Also a JS lib may already have resolved most problems in the currency area, and we just need to leverage it to deal with potential requirements on currency formatting in the future?

Normally, we need sufficient unit test coverage on this kind of algorithm calculating, to cover all edge situations.
Is there any existing currency formatting JS libs that we can borrow here, so that we do not need write and test algorithms by our own if it is already done well by others?
Also a JS lib may already have resolved most problems in the currency area, and we just need to leverage it to deal with potential requirements on currency formatting in the future?

Thanks for your comment..I have updated the PR and used the polkadot's existing utility which they have used through out the app to format the balance. Have removed the custom function that I added which replaced the number with comma separated one using regex..


Understanding staking reward

Hello,
I moved 70 HYDRA coins from KuCoin to my own personal wallet. With KuCoin staking, I get rewards instantly very day. However, when I tried skating using personal wallet. It shows that it will take 49 days to get a reward, which is very long time compared to other cryptos.  It also shows that it's currently not staking because I don't have mature coins.
Why do rewards take so long using personal wallet vs KuCoin ? I read the blog post about how hydra staking work but I don't understand why it would take so long compared to KuCoin ?
Thanks

Just figured it out. Due to the amount of staked amount the weight is low so there is longer wait compared to KuCoin which has much larger of coins


[release-1.2] VM controller - move unit tests to fake client (VirtualMachineInstanceInterface)

What this PR does
Backport of https://github.com/kubevirt/kubevirt/pull/11783

Fixes #
Special notes for your reviewer

Release note

NONE

/hold
Based on https://github.com/kubevirt/kubevirt/pull/11884

/hold cancel
/cc @jean-edouard @fossedihelm

/retest-required

/lgtm


Empty value for parameter id: undefined

I'm experiencing the follow issue:
11:05:22.661Z DEBUG github: GitHub request: GET /repos/:owner/:repo/compare/:base...:head - 200 OK (id=191aa04e-a07b-11e8-848e-10235e0ffbd8, installation=152769)
  params: {
    "owner": "frenck",
    "repo": "addon-example",
    "base": "v10.32.6",
    "head": "master",
    "baseUrl": "https://api.github.com",
    "request": {
      "timeout": 0
    }
  }
11:05:22.662Z  INFO probot: frenck/frenck: Found pull request numbers: 6
11:05:23.620Z DEBUG github: GitHub request: GET /repos/:owner/:repo/pulls/:number - 200 OK (id=191aa04e-a07b-11e8-848e-10235e0ffbd8, installation=152769)
  params: {
    "owner": "frenck",
    "repo": "addon-example",
    "number": 6,
    "baseUrl": "https://api.github.com",
    "request": {
      "timeout": 0
    }
  }
11:05:23.620Z  INFO probot: frenck/frenck: Updating existing draft release
11:05:23.620Z ERROR event: Empty value for parameter 'id': undefined (id=191aa04e-a07b-11e8-848e-10235e0ffbd8)
  HttpError: Empty value for parameter 'id': undefined
      at Object.keys.forEach.parameterName (/Volumes/CODE/hassio-addons/probot-addons-assistant/node_modules/probot/node_modules/@octokit/rest/lib/plugins/endpoint-methods/validate.js:27:13)
      at Array.forEach (<anonymous>)
      at validate (/Volumes/CODE/hassio-addons/probot-addons-assistant/node_modules/probot/node_modules/@octokit/rest/lib/plugins/endpoint-methods/validate.js:9:31)
      at process._tickCallback (internal/process/next_tick.js:68:7)
  --
  event: {
    "id": "191aa04e-a07b-11e8-848e-10235e0ffbd8",
    "event": "push",
    "repository": "frenck/addon-example",
    "installation": 152769
  }

The draft was created, but empty:

Any idea?

Thanks for that. Is there an old draft release in the repository by any chance? Strange that the draftRelease.tag_name returned null

Nope, only the one created by this code.

Could you change https://github.com/toolmantim/release-drafter/blob/master/lib/releases.js#L30 to log the full draftRelease object, and not just the tag name, and see what it outputs for me?


Run test for THRIFT-2413

Slightly simplify _toChar method too.

+1

This is break the official win32 build which is narrow build. The unichr isn't support codepoint larger than 0x10000.

@phongphan thanks for catching this ! I'll revert relevant part.


Fix checkbox input name in Materialize field template

Fixes #1000

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1017   +/-   ##
=======================================
  Coverage   63.69%   63.69%
=======================================
  Files         116      116
  Lines        6112     6112
  Branches      744      744
=======================================
  Hits         3893     3893
  Misses       2066     2066
  Partials      153      153

Continue to review full report at Codecov.

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


Support SSL connection for MySQL

What problem are you facing?
It is currently impossible to use crossplane sql provider if a database server forces SSL connections (for example this can be set on Azure) as there is no parameter to enable it

How could Crossplane help solve your problem?
There is already a pull request ( https://github.com/crossplane-contrib/provider-sql/pull/40 ) open to add ssl mode support for postgresql. Exactly the same approach could be used for Mysql

I believe v0.5.0 solves this issue.


Speakers should be ordered by event date

testing notes
(for speakers that appear on the speakers list page)

upcoming speakers should be sorted so that the speaker whose event is happening soonest is first
past speakers should be sorted so that those who had an event latest/most recent year are first
events that aren't published shouldn't affect the order of the speakers (you can test by giving a person two events with different dates and only publishing one of the events)

Just verified, this corrects the problem exposed by the actual data on the test site.


create_model raises error AttributeError: 'Tensor' object has no attribute 'T'

the function create_model raises error when evaluating customized cca objective:
model = create_model(layer_sizes1, layer_sizes2, input_shape1, input_shape2,                             learning_rate, reg_par, outdim_size, use_all_singular_values)
results in errors AttributeError: 'Tensor' object has no attribute 'T'. Below is the complete error message:
`---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
 in ()
38 # Building, training, and producing the new features by DCCA
39 model = create_model(layer_sizes1, layer_sizes2, input_shape1, input_shape2,
---> 40                      learning_rate, reg_par, outdim_size, use_all_singular_values)
41 model.summary()
42 #model = train_model(model, data1, data2, epoch_num, batch_size)
~/Downloads/DeepCCA-master/models.py in create_model(layer_sizes1, layer_sizes2, input_size1, input_size2, learning_rate, reg_par, outdim_size, use_all_singular_values)
20
21     model_optimizer = RMSprop(lr=learning_rate)
---> 22     model.compile(loss=cca_loss(outdim_size, use_all_singular_values), optimizer=model_optimizer)
23
24     return model
~/anaconda2/envs/dcca/lib/python3.5/site-packages/keras/models.py in compile(self, optimizer, loss, metrics, sample_weight_mode, weighted_metrics, **kwargs)
782                            sample_weight_mode=sample_weight_mode,
783                            weighted_metrics=weighted_metrics,
--> 784                            **kwargs)
785         self.optimizer = self.model.optimizer
786         self.loss = self.model.loss
~/anaconda2/envs/dcca/lib/python3.5/site-packages/keras/engine/training.py in compile(self, optimizer, loss, metrics, loss_weights, sample_weight_mode, weighted_metrics, target_tensors, **kwargs)
848                 with K.name_scope(self.output_names[i] + '_loss'):
849                     output_loss = weighted_loss(y_true, y_pred,
--> 850                                                 sample_weight, mask)
851                 if len(self.outputs) > 1:
852                     self.metrics_tensors.append(output_loss)
~/anaconda2/envs/dcca/lib/python3.5/site-packages/keras/engine/training.py in weighted(y_true, y_pred, weights, mask)
448         """
449         # score_array has ndim >= 2
--> 450         score_array = fn(y_true, y_pred)
451         if mask is not None:
452             # Cast the mask to floatX to avoid float64 upcasting in theano
~/Downloads/DeepCCA-master/objectives.py in inner_cca_objective(y_true, y_pred)
20
21         # unpack (separate) the output of networks for view 1 and view 2
---> 22         H1 = y_pred[:, 0:o1].T
23         H2 = y_pred[:, o1:o1+o2].T
24
AttributeError: 'Tensor' object has no attribute 'T'
`

Oops, turns out I forgot to switch to theano backend. Easy fix.

How did you fix it?


Initial java implementation

This implementation satisfies #1 and leverages the updated test suite in this pull request https://github.com/package-url/purl-spec/pull/31
Ideally, once this https://github.com/package-url/purl-spec/pull/31 is merged in and the updated test suite is available, additional changes to the Java test suite would be made to ensure it always uses the latest test suite by downloading it from the master.
Currently, the Java implementation uses the updated test suite in https://github.com/package-url/purl-spec/pull/31 and does so by using a copy checked into this repo.
An admin in this org should also setup a TravisCI build for this repo. The .travis.yml is already checked in and should work.

Can you add a signed-off-by at least in the PR message?

This is very nice BTW 👍


Sites are very slow if 404 set to same as index

Not sure if this could be a warning upon running the app or otherwise be preventable in any way, but I accidentally had the index and 404 pages set to the same HTML file and the site would take upwards of a second to respond - when I changed the 404 page to something else it was suddenly lightning fast.

Hi, can you share a bit more about your configuration?
To be clear, I'm assuming you set "main page suffix" and "not found page" in your bucket configuration to the same path?
Do you also have a firebase.json configuration file? Are you using rewrites?


Event::del(): Failed deletting event

$ php ./examples/1-get-request.php
HTTP/1.1 200 OK

{
  "user-agent": "Mozilla/5.0 (compatible; Artax)"
}

PHP Warning:  Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263
PHP Stack trace:
PHP   1. Amp\Dns\BasicResolver->__destruct() /private/tmp/artax/vendor/amphp/dns/lib/BasicResolver.php:0
PHP   2. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/dns/lib/BasicResolver.php:77
PHP   3. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
PHP   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
PHP   5.  Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
PHP   7. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

Warning: Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263

Call Stack:
    1.8140    3429288   1. Amp\Dns\BasicResolver->__destruct() /private/tmp/artax/vendor/amphp/dns/lib/BasicResolver.php:0
    1.8140    3429288   2. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/dns/lib/BasicResolver.php:77
    1.8140    3429288   3. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
    1.8140    3429288   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
    1.8140    3429288   5. Amp\Loop\EventDriver->disable() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:402
    1.8140    3429288   6. Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
    1.8140    3429288   7. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

PHP Warning:  Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263
PHP Stack trace:
PHP   1. Amp\Cache\ArrayCache->__destruct() /private/tmp/artax/vendor/amphp/cache/lib/ArrayCache.php:0
PHP   2. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/cache/lib/ArrayCache.php:56
PHP   3. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
PHP   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
PHP   5.  Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
PHP   7. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

Warning: Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263

Call Stack:
    1.9145    3428584   1. Amp\Cache\ArrayCache->__destruct() /private/tmp/artax/vendor/amphp/cache/lib/ArrayCache.php:0
    1.9145    3427584   2. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/cache/lib/ArrayCache.php:56
    1.9145    3427584   3. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
    1.9145    3427584   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
    1.9145    3427584   5. Amp\Loop\EventDriver->disable() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:402
    1.9145    3427584   6. Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
    1.9145    3427584   7. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

PHP Warning:  Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263
PHP Stack trace:
PHP   1. Amp\Process\Process->__destruct() /private/tmp/artax/vendor/amphp/process/lib/Process.php:0
PHP   2. Amp\Process\Process->kill() /private/tmp/artax/vendor/amphp/process/lib/Process.php:90
PHP   3. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/process/lib/Process.php:270
PHP   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
PHP   5. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
PHP   6.  Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
PHP   8. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

Warning: Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263

Call Stack:
    2.0146    3426824   1. Amp\Process\Process->__destruct() /private/tmp/artax/vendor/amphp/process/lib/Process.php:0
    2.0147    3426824   2. Amp\Process\Process->kill() /private/tmp/artax/vendor/amphp/process/lib/Process.php:90
    2.0147    3426824   3. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/process/lib/Process.php:270
    2.0148    3426824   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
    2.0148    3426824   5. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
    2.0148    3426824   6. Amp\Loop\EventDriver->disable() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:402
    2.0148    3426824   7. Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
    2.0148    3426824   8. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

PHP Warning:  Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263
PHP Stack trace:
PHP   1. Amp\ByteStream\ResourceInputStream->__destruct() /private/tmp/artax/vendor/amphp/byte-stream/lib/ResourceInputStream.php:0
PHP   2. Amp\ByteStream\ResourceInputStream->free() /private/tmp/artax/vendor/amphp/byte-stream/lib/ResourceInputStream.php:166
PHP   3. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/byte-stream/lib/ResourceInputStream.php:128
PHP   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
PHP   5. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
PHP   6.  Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
PHP   8. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263

Warning: Event::del(): Failed deletting event in /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php on line 263

Call Stack:
    2.3180    3416528   1. Amp\ByteStream\ResourceInputStream->__destruct() /private/tmp/artax/vendor/amphp/byte-stream/lib/ResourceInputStream.php:0
    2.3181    3416528   2. Amp\ByteStream\ResourceInputStream->free() /private/tmp/artax/vendor/amphp/byte-stream/lib/ResourceInputStream.php:166
    2.3182    3403536   3. Amp\Loop::cancel() /private/tmp/artax/vendor/amphp/byte-stream/lib/ResourceInputStream.php:128
    2.3182    3403536   4. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop.php:241
    2.3182    3403536   5. Amp\Loop\EventDriver->cancel() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:107
    2.3182    3403536   6. Amp\Loop\EventDriver->disable() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:402
    2.3182    3403536   7. Amp\Loop\EventDriver->deactivate() /private/tmp/artax/vendor/amphp/amp/lib/Loop/Driver.php:448
    2.3182    3403536   8. Event->del() /private/tmp/artax/vendor/amphp/amp/lib/Loop/EventDriver.php:263
$ echo $?
0

environments:
php -i:
...
event

Event support => enabled
Sockets support => enabled
Debug support => disabled
Extra functionality support including HTTP, DNS, and RPC => enabled
OpenSSL support => enabled
Thread safety support => disabled
Extension version => 2.3.0
libevent2 headers version => 2.0.21-stable
...

$ php -v
PHP 7.0.22 (cli) (built: Aug 24 2017 13:36:36) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
$ uname -a
Darwin Roberts-MBP.local 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 22:01:05 PDT 2017; root:xnu-4570.1.46~3/RELEASE_X86_64 x86_64 i386 MacBookPro11,5 Darwin

the Loop is good:
$ cat test.php
<?php

use Amp\Artax\Response;
use Amp\Loop;

require __DIR__ . '/vendor/autoload.php';

Loop::run(function () {
});
$ php test.php
$ echo $?
0

Thanks for the report, I've filed an issue upstream in amphp/amp, closing this one here.

In the mean time, you can just use any of the other event loop implementations, e.g. uv or ev.


[BUG] Error applying ActorSystem on Openshift

Describe the bug
Operator throws error when deployed ActorSystem on Openshift.
To Reproduce
Steps to reproduce the behavior:

Deploy operator on openshift
Deploy a demo ActorSystem
See error on container operator

2023-10-26 14:58:20.078 [spawn_operator@spawn-operator-7f794947fb-ngzjm]:[pid=<0.2977.0> ]:[error]:{"eigr-functions/spawn-demo", "spawn-eigr.io/v1", "Kind=ActorSystem, Action=:add"} - Failed applying descending (child) resource {"eigr-functions/spawn-demo-role", "rbac.authorization.k8s.io/v1", "Kind=Role"}. roles.rbac.authorization.k8s.io "spawn-demo-role" is forbidden: User "system:serviceaccount:eigr-functions:spawn-operator" cannot patch resource "roles" in API group "rbac.authorization.k8s.io" in the namespace "eigr-functions"
2023-10-26 14:58:20.078 [spawn_operator@spawn-operator-7f794947fb-ngzjm]:[pid=<0.2977.0> ]:[error]:Task #PID<0.2977.0> started from #PID<0.2974.0> terminating
** (RuntimeError) {"eigr-functions/spawn-demo", "spawn-eigr.io/v1", "Kind=ActorSystem, Action=:add"} - Failed applying descending (child) resource {"eigr-functions/spawn-demo-role", "rbac.authorization.k8s.io/v1", "Kind=Role"}. roles.rbac.authorization.k8s.io "spawn-demo-role" is forbidden: User "system:serviceaccount:eigr-functions:spawn-operator" cannot patch resource "roles" in API group "rbac.authorization.k8s.io" in the namespace "eigr-functions"
(bonny 1.2.1) lib/bonny/axn.ex:406: anonymous fn/4 in Bonny.Axn.apply_descendants/2
(elixir 1.14.0) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(bonny 1.2.1) lib/bonny/axn.ex:382: Bonny.Axn.apply_descendants/2
(spawn_operator 0.0.0-local.dev) lib/spawn_operator/operator.ex:1: SpawnOperator.Operator.pluggable_builder_call/2
(bonny 1.2.1) lib/bonny/operator.ex:155: Bonny.Operator.run/4
(elixir 1.14.0) lib/stream.ex:612: anonymous fn/4 in Stream.map/2
(elixir 1.14.0) lib/enum.ex:4751: Enumerable.List.reduce/3
(elixir 1.14.0) lib/stream.ex:1026: Stream.do_transform_inner_list/7
Function: &Bonny.Server.AsyncStreamRunner.run/2
Args: [#Stream<[enum: #Function<60.124013645/2 in Stream.transform/3>, funs: [#Function<48.124013645/1 in Stream.map/2>, #Function<48.124013645/1 in Stream.map/2>]]>, nil]
Screenshots

Kubernetes (please complete the following information):

Version   v1.24.15+a9da4a8
Provider: Openshift 4.11.48

Spawn Operator

Version v1.0.0-rc.19

Spawn Proxy (please complete the following information):

Version v1.0.0-rc.19

Additional context
I'm trying to deploy demo application (https://github.com/h3nrique/postalcode-spawn-demo) on Openshift.

As workaround, I changed ClusterRole spawn-operator in manifest.yaml as below to work on Openshift.
resource serviceaccount to serviceaccounts

resource role to roles, and add rolebindings

Closed by https://github.com/eigr/spawn/pull/263


update makefile format doc

after https://github.com/leizhiyuan/istio/commit/e841588047a32ee60a84139eb94ee5a3044e083d
make fmt

has be deleted,It can not be used, I  updated doc, to make new user use
make format

Hi @leizhiyuan. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
I understand the commands that are listed here.

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.

/test dependencies

circleci has been run with ssh enabled and it waits for 20h, this is why it is not finishing.

@andraxylia  thank you ,I have restarted the circleci just now.

@leizhiyuan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-pilot-e2e

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.

/test istio-pilot-e2e

@leizhiyuan: you can't request testing unless you are a istio member.

In response to this:

/test istio-pilot-e2e

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.

/test istio-pilot-e2e

@leizhiyuan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-pilot-e2e

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.

/test istio-pilot-e2e

@leizhiyuan: you can't request testing unless you are a istio member.

In response to this:

/test istio-pilot-e2e

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.

/ok-to-test

/test istio-pilot-e2e

@leizhiyuan: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-pilot-e2e

prow/istio-unit-tests.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-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.

@leizhiyuan: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-unit-tests

prow/istio-pilot-e2e.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-pilot-e2e

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.

@leizhiyuan: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-unit-tests

prow/istio-pilot-e2e.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test istio-pilot-e2e

prow/e2e-smoke.sh
8222bd77038e6d0a12dd12cfcb1a3dc8c588bb8b
link
/test e2e-smoke

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.


Mac OSX Command E searches files, not open them

VSCode Version: 1.5.0
OS Version: OSX

Steps to Reproduce:

Commend e
Brings up the find in file bar instead of searching through files

I can no longer quickly open a file in VS Code, command e brings up the find in file menu.

It's in the release notes:
Mac OS: Cmd+E no longer opens Quick Open
We decided to remove an (undocumented) key binding to bring up quick open for file search. You can bring back Cmd+E with the following key binding configuration:
{ "key": "cmd+e", "command": "workbench.action.quickOpen" }
The reason behind this change is that Cmd+E on Mac OS is typically associated with running a search in the current active file.

@timdang what is the preferred way to open files now?

Command + P still works, right?

@timdang yep, i never used that one. thanks.


Proposal: Allow dependent values to be bool, int, etc...

It seems that dependencies with allowed values only work if these values are of type String. I don't understand this restriction. It would be useful to allow allowed values to be boolean or int for example.
This validates as usual:
schema = {'field1': {'required': False}, 'field2': {'required': True, 'dependencies': {'field1': 'one'}}}
document = {'field1': 'one', 'field2': 7}

This should return an error:
schema = {'field1': {'required': False}, 'field2': {'required': True, 'dependencies': {'field1': True}}}
document = {'field1': False, 'field2': 7}

But still returns as valid.
Looking at the cerberus.py source code at the line 554 you see:
if isinstance(context, _str_type) and context not in dep_values:  # noqa
   ...

By removing the isinstance(context, _str_type) an everything works. But again, I wonder why it's there in the first place.
Thanks,

do the tests pass with this change?

This was a recent regression, should be fixed now. Thanks!
PS: might be a nice idea to also add a test so we don't fall into it again in the future.


Automatically load default schema for some languages

Figure out a way to associate default schemata with a certain file type.

Try to rely on file extension
Look into making the URLs to the default schemata user configurable

This will be closed upon merge of #31


CB-16181 events of DL from CB is duplicated if same env used for seve…

…ral DLs
See detailed description in the commit message.

test scenario:

environment creation
datalake creation
datalake deletion with cli
datalake creation again with same name

https://user-images.githubusercontent.com/26329499/155185604-b3c10eb7-4b19-4e61-a99d-dee1342aaec8.mp4

retest this please


run sku-specific-graph from skupack

This is a portion of code about this proposal: https://groups.google.com/forum/#!topic/rackhd/nzmsIM6LF3Y
In summary, I want to move all SKU specific information to skupack and keep the SKU model more clean, below is an example of how to specify the sku specific graph in sku's config.json:
{
    "rules": [...],
    "skuConfig": {
        "postDiscoveryGraph": {
            "name": "graph.my.testing",
            "options": {
                   "defaults": {
                         "foo": "bar"
                   }
              }
        }
    }
}

For back-compatible, my code still support defining the SKU specific graph via SKU document, but I marked it as deprecated.
There will be more follow-up PRs to eventually achieve this goal:

Rearrange the discovery tasks (see my google group topic)
Modify the Dell SKU pack, Move the dell perccli catalog into this SKU specific graph, so it can be automatically triggered after the Dell node is discovered.
Update related document.

@RackHD/corecommitters @zyoung51 @pengz1 @iceiilin @WangWinson @cgx027 @sunnyqianzhang

@yyscamper there is a story to move the config.json contents into the sku model which is mutually exclusive with this.

@zyoung51 :
Ahh! If so, seems this PR need be retired.
Could you please share the history why you move the config.json to SKU model? As for me, the SKU model is bound with database, it's not so flexible because any new config entry will lead to the database schema change.
Meanwhile, could you please add me in the cc list for future SKU pack discussion, since a lot work in Shanghai will leverage the SKU pack.

Link to the story: https://www.pivotaltracker.com/projects/1492890/stories/117656885
Captured out of a thread between @zyoung51 , @benbp  and @rolandpoulter

Thanks @amymullins , I'm appreciated if you can keep my team be notified for future skupack change. Meanwhile, I will spare some time to scan your backlog in future.

Close this PR, since my work is in a wrong direction


Launch a bot with crontab or without SSH on a headless server

Expected Behavior
When I try to launch @reboot the bot with crontab or if I launch it with SSH and close the session the bot stops working.
Is there any way to make it work this way?
The idea would be to make it work an a headless raspberry pi server.
Steps to Reproduce
SSHing into the server, launching the bort and close the session,
or put in crontab something like :
@reboot source path/to/thebot/bin/activate && cd  path/to/thebot && python pokecli.py
(I'm not a dev, so it may not be the best way to do it...)
Other Information
OS: Debian_Jessie (Raspbian)
Git Commit: 3f1f8e321da1ee256659ef623730ee1efeb442d0

What exactly are you doing, when trying to run it?
Seems like it should be running in background when you restart your raspberry.
Additionally I would recommend you using something like supervisor for such purposes.

simple way is to launch it on a screen or tmux multiplexer

Thank you both!!!
I'm using screen that I just discovered and...it's wonderful!
And for supervisor I see it could be right the perfect tool so this issue can be closed!
Thank you!!!


⚠ Bofrost.de has degraded performance

In 664d7f2, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1487 ms

Resolved: Bofrost.de performance has improved in 7362233 after 2 hours, 18 minutes.


Add GrapheneOS's Vanadium Browser

Closing for now until Vanadium is available for users not on GrapheneOS.


Consider Not Working

Description
Consider command shows no feedback. Logger isn't defined and player.findCombatant() on line 19 should be Combat.findCombatant(), but then it looks like the variable e on line 20 is undefined any time the command is used on an entity that cannot be attacked (e.g. pacifist, non-pvp player).
Expected outcome
Consider should show it's feedback or spit out it's proper error.
Actual outcome
Consider shows nothing.
Steps to reproduce
Use the consider command on something. With the two little fixes above, use the consider command on an entity that cannot be attacked.
Version of Ranvier
1.1.1

I would love to consider not working, but I need the money.
reads the rest of the issue
Ah, nevermind.


Dropbear behind Tor hidden service?

Hey Keks,
Now that people are leaving their homes again, I realized that it would be super cool if the Dropbear was behind a Tor hidden service.  Do you think it's feasible?
It sounds unintuitive, but despite the higher latency, Tor as an inbound connection into my network has generally been more reliable / lower maintenance than convincing a clearnet router to forward certain ports. Stuff always breaks at the wrong time.
Thanks, sir!
X
EDIT:
Oh nice, I searxed another time and finally saw this: https://nixos.wiki/wiki/Remote_LUKS_Unlocking
Seems it's possible! I'll investigate.

I have not seen anyone, yet, who did that. I actually never thought about it, since I have no need for that.

Do you think it's feasible?
Seems it's possible! I'll investigate.

This seems to be a tunneled SSH connection through the tor network, so it should work and be secure enough.
Although, it is a fancy thing to increase privacy, I will not implement this in the guide, since this is off-topic. The guide actually should be as basic as possible and focus on encrypting the root partition of the Raspbian stock image.

Don't treat my tickets as feature requests ... I just haven't been able to find you on IRC but still wanted to discuss a few ideas with you :)


External control

Is it possible to control start stop from tcp,udp,osc or any other protocol?

You can control Mopidy playback using JSON-RPC over HTTP using HTTP POST or MPD commands.

Great! Is there any information about it? Or maybe some examples?

There's a lot of info and examples online of using MPD. For Mopidy's JSON-RPC, see https://docs.mopidy.com/en/release-1.1/api/http/ (note it's v1.1).

You'll probably also find more info at https://discuss.mopidy.com/. Since there is no actual issue here can I close this?

Thanks!


Update hamer-dev.Dockerfile and enable gpu support

Changed nvidia/cuda version to 11.8.0-devel which contain nvcc to build detectron2 and vitpose, and also avoid pytorch and cuda version conflict when build detectron2
Changed pytorch installation to a specific version
Update docker-compose.yml to enable gpu support

Thank you very much for your contribution! Would it be possible to combine all the docker related updates in a single pull request, so that it's easier to test them?

I've merged 2 PR into this one, thank you

@geopavlakos sure thing!
I'm still working on my branch, it was initially missing some dependencies for OpenGL.
I can try and run/review this.

Thank you, I've updated the docker based on your feedback.
The result still produce correct output when I tried to run demo.py on my dataset without fixing the 3 warnings above

Thank you both! I have just merged this PR.


Extension topBarItems used before extension activation

This can cause a race condition where an exception such as "instance not created" is thrown.
Technical background:
This happens because during extension loading we set the extension instance to instances of ExtensionLoader before onActivate of the extension has been resolved. This causes enabledExtensionInstances computed to be updated, which causes topBarItemsInjectable to re-computed, which causes topBarItems of the extension be rendered. However, the topBarItems might use IpcRenderer, which is only created in onActivate of the extension (as is instructed in the official Extension documentation).
Possible fix: set the extension to instances only after activation, or alternatively we could modify enabledExtensionInstances to only return activated extensions.
We could also consider to instruct extension authors to create IpcRenderer instance in constructor, but that wouldn't fix other race conditions (e.g. extension code might depend on the activation in other ways).

FYI, something in the 5.4.5 release fixed this issue (or the actual issue, which may not have been this).

This was indeed fixed before. There's still possibility for this type of race-conditions but those are out-of-scope here. ExtensionLoader is the root problem here, it's doing things way to complicately.


Error at install - SetuptoolsDeprecationWarning: Invalid dash-separated options

Getting an error from today when trying to install pygeohash
Collecting pygeohash
Using cached pygeohash-1.2.0.tar.gz (5.0 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [53 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-hhk8yq3i/pygeohash.egg-info
writing /tmp/pip-pip-egg-info-hhk8yq3i/pygeohash.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-hhk8yq3i/pygeohash.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-hhk8yq3i/pygeohash.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-hhk8yq3i/pygeohash.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-hhk8yq3i/pygeohash.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/databricks/python3/lib/python3.8/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
          ********************************************************************************
          Usage of dash-separated 'description-file' will not be supported in future
          versions. Please use the underscore name 'description_file' instead.

          By 2024-Sep-26, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    opt = self.warn_dash_deprecation(opt, section)
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-glpy_rrz/pygeohash_de5dd17dd66646f595a5d5fbbbfae548/setup.py", line 13, in <module>
      setup(
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/__init__.py", line 106, in setup
      return distutils.core.setup(**attrs)
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
      return run_commands(dist)
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
      dist.run_commands()
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
      self.run_command(cmd)
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/dist.py", line 974, in run_command
      super().run_command(command)
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
      cmd_obj.run()
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 321, in run
      self.find_sources()
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
      mm.run()
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 555, in run
      self.prune_file_list()
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 621, in prune_file_list
      base_dir = self.distribution.get_fullname()
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/_core_metadata.py", line 266, in get_fullname
      return _distribution_fullname(self.get_name(), self.get_version())
    File "/databricks/python3/lib/python3.8/site-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname
      canonicalize_version(version, strip_trailing_zero=False),
  TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Additional info - these are the setuptools versions I have pre-installed:

setuptools==52.0.0
setuptools-git==1.2

Workaround in place for now (for those stuck that needs a quick solution) but not ideal so please update this very good package :)
Step after all other packages (incl. setuptools and excl. pygeohash) are installed/imported:

!pip install --upgrade setuptools==70.0.0 ##interim to step to meet pygeohash compatibility
!pip install pygeohash
import pygeohash as pgh


Google Spanner dependency is too old; cannot deal with JSON type code

Apache Beam is using google-cloud-spanner version 1.19.1, while current version of google-cloud-spanner is 3.11.1.
I was attempting to use ReadFromSpanner when I ran into  a ValueError - it was getting a type code 11 from Spanner and couldn't parse it.
Here is (some) relevant code from v3.11.1 of Spanner:

class TypeCode(proto.Enum):
  r"""``TypeCode`` is used as part of [Type][google.spanner.v1.Type]
to
  indicate the type of a Cloud Spanner value.

  Each legal value of a type can be encoded
to or decoded from a JSON
  value, using the encodings described below. All Cloud Spanner values

  can be ``null``, regardless of type; ``null``\ s are always encoded
  as a JSON ``null``.

  """
  TYPE_CODE_UNSPECIFIED = 0
  BOOL = 1
  INT64 = 2
  FLOAT64 = 3
  TIMESTAMP
= 4
  DATE = 5
  STRING = 6
  BYTES = 7
  ARRAY = 8
  STRUCT = 9
  NUMERIC
= 10
  JSON = 11

and the same from v1.19.1:

_sym_db.RegisterEnumDescriptor(_TYPECODE)
TypeCode = enum_type_wrapper.EnumTypeWrapper(_TYPECODE)
TYPE_CODE_UNSPECIFIED
= 0
BOOL = 1
INT64 = 2
FLOAT64 = 3T
IMESTAMP = 4
DATE = 5
STRING = 6
BYTES = 7
ARRAY = 8
STRUCT
= 9
NUMERIC = 10

There is no support for type code 11, aka JSON in Apache Beam right now.
Imported from Jira BEAM-13270. Original Jira may contain additional context.
Reported by: LauraFP.

The native spannerio implementation in python sdk has not been actively maintained. May use cross-language transform apache_beam.io.spanner


Error: Cask 'font-jetbrains-mono-powerline' is unavailable: No Cask with this name exists.

The package font-jetbrains-mono-powerline does not exist anymore because the package font-jetbrains-mono has the powerline version also.


About ssh clone/push/pull question?

Gitea version (or commit ref): 1.4.0
Git version: 2.17.0
Operating system: CentOS7
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[x] No
[ ] Not relevant

Log gist:

Description
The following link, I met the same problem with this user. How can I solve it?
https://discourse.gitea.io/t/solved-ssh-cloning-times-out/195
Screenshots

Looks like that issue was solved on the discourse, @yadgen. Perhaps you could close this issue now?


Expression constructor not working

Great library. 👍
However I encountered some issues with the example on README page. The code below does not compile:
etl::dyn_vector<double> a({1.0,2.0,3.0});
etl::dyn_vector<double> b({3.0,2.0,1.0});
etl::dyn_vector<double> c(1.4 * (a + b) / b + b + a / 1.2);

However this works:
etl::dyn_vector<double> a({1.0,2.0,3.0});
etl::dyn_vector<double> b({3.0,2.0,1.0});
etl::dyn_vector<double> c;
c = 1.4 * (a + b) / b + b + a / 1.2;

I haven't investigated the code carefully, but it seems that the assignment operator is well defined but not the expression constructor. Since the example is taken from README, I suppose this is not by design. Any thoughts?

Hi,
Thanks :)
Indeed, the README is not correct. For now, it's not possible anymore to use the constructor for this.
A shorter way of doing it, is:
auto c = s(1.4 * (a + b) / b + b + a / 1.2);
but I think the c = expression is the best way to go.
If you think it should work directly with the constructor, feel free to open an issue and we'll discuss it :)
Baptiste

Personally I have no preference, so the suggested way works for me.
It is nice that you fixed the documentation. The examples are actually very important for users' first impression. :D

It is nice that you fixed the documentation. The examples are actually very important for users' first impression. :D

Agreed :P
I'm quite happy you mentioned that ;)


Improve demo dashboards

Summary
This PR does two things:

Make the dashboards display assignee name instead of assignee id for better user experience
In the detailed commit info page, add back contributors who haven't contributed in the last month or the month before last by simulating outer join with a union of a left join and a right join

This can solve part of the problem, however, if we are joining over 3 tables and only the middle tables have not-null values, the records in those tables will not be shown in the final result.


fix(mergeAll): introduce variant support <T, R> for mergeMap

Description:
This PR applies same type definition variant to concatAll (https://github.com/ReactiveX/rxjs/pull/1603) to mergeMap
Same as concatAll, note this doesn't provide auto-inference for types, only provides generic variant to explicitly specify types due to current design of typescript compiler.
Related issue (if exists):

closes #2372

/cc @Dorus for review.

Coverage remained the same at 97.68% when pulling 656f2b3b5bf9b29ecefe8d4b4c9757cffeb9ff3f on kwonoj:style-mergeall into 25ee5b3ebed2aec7fb1956a6ddd40f8a703ab7ac on ReactiveX:master.


legal problems

This point in readme is illegal:
https://github.com/martinberlin/cale-idf#fork-policy
It is illegal, because of this part of licence:
4. Redistribution. **You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications,** and in Source or Object form, provided that You
      meet the following conditions:

Hello @chegewara
I don't have anything against "copying" or redistributing this in fact is cloned more than 30 times a month so there should be a lot of copies in the users of the component personal computers.
What I don't like as owner of this repository is to have forks without any reason because often face myself to look into forks of other libraries, searching to see if someone added a feature before adding it myself, just to look at hundreds of mostly old copies of a forked component.
So it's an advice not do it but nothing else. Thanks for pointing it out, I will re-phrase it some better manner in the next days, but I'm not planning to take this note completely out since I dislike having hundreds of forks just because many people use forking to bookmark stuff without collaborating in a single line of the code.


Squoosh no longer works

To Reproduce

Go to https://squoosh.app (page loads fine)
Load an image (or click on one of the demo images)
Page hangs

This issue occurs both on Firefox v99 and Chrome v92.
Firefox console says : Uncaught (in promise) TypeError: this.observer is undefined [...] componentWillUnmount
Chrome console says : Cannot read property 'disconnect' of undefined [...] at ne.componentWillUnmount
It might have something to do with this : https://github.com/GoogleChromeLabs/squoosh/blob/4e901c714c65987f5969af00e9570e7389503f11/src/shared/prerendered-app/Intro/SlideOnScroll/index.tsx#L45
P.S: Thanks for making such an easy-to-use tool

Aha! This happens if you have prefers-reduced-motion: reduce. Thanks for reporting. Fix out soon.

Thanks for reporting. The fix has deployed. Next time you visit Squoosh, it'll tell you there's an update available. When you press "reload", it'll give you the version with the fix. Let me know if it doesn't work.


Add MIT license

Fixes #16

@NotLebedev You're the only person who isn't at DetSys who has made any sort of meaningful contribution to this repo. Do you mind if license your contribution in #20 as MIT?

@NotLebedev You're the only person who isn't at DetSys who has made any sort of meaningful contribution to this repo. Do you mind if license your contribution in #20 as MIT?

I don't mind. You have my permission to do that


Create CI

Set up CI for the golang reference implementation.

Will follow up with fix for lint checker


Add Safe events service

Closes #100
Closes #113

Update Readme and add diagrams section to store raw diagrams and picture diagrams.
Update local instructions to use safe-events-service to send webhooks instead transaction service.
Add safe-events-service and dependencies to docker-compose file.
Add default environment variables for safe-events-service.

@Uxio0 this PR is ready for review, but we shouldn't merge it until get the version 0.5.0 of safe-events-service.

Depends on https://github.com/safe-global/safe-events-service/pull/96


Outdated Routing documentation

Outdated Routing documentation. In official documentation here:
https://angular.io/docs/ts/latest/guide/router.html
Paragraph "Milestone #3: The Heroes Feature" is outdated. Can not strictly follow the instructions, because file names and some parts of code not based on current version of "Tour of Heroes" (which is here: https://angular.io/resources/live-examples/toh-5/ts/eplnkr.html)
For example there is no hero-list.component.ts and HeroListComponent class in current version of "Tour of Heroes"

Pretty messed up, mainly because it refers to the wrong episode of the tutorial: should have been based on the "Services": https://angular.io/resources/live-examples/toh-4/ts/eplnkr.html
While this isn't supposed to be a word-for-word tutorial, we agree that we should be much more on target.
Will correct in forthcoming PR.

There is no RouterModule in "Services" (https://angular.io/resources/live-examples/toh-4/ts/eplnkr.html) part. Do you really think, that advanced "Routing & Navigation" documentation can be based on this episode of tutorial? RouterModule appears in "Routing" episode, so my link was correct.

Now I realise, that this issue not only about "The Heroes Feature" milestone. But also about whole "Routing & Navigation" chapter, which is based on outdated tutorial (possibly RC5 or something). I agree that this is minor issue. But still an issue. So why do you close it before actualization of documentation?

Yes, I know there is no routing in "Services".  I wanted to grab code for the routing guide before the Tour of Heroes tackles routing. This is, after all, a separate guide to routing. That is why I believe the source should be copied from "Services", not "Routing".
Moreover, the code for the heroes feature is much simpler in "Services" than in "Routing". For example, there are no separate HTML and CSS files to worry about.
I don't see what you mean about "outdated". We're just trying to grab some code for the heroes here ... enough to keep the routing discussion moving forward and without rewriting a bunch of code that doesn't illuminate routing. I fail to grasp your objection.
Closed this issue so I wouldn't forget to get it later. Sorry, that is premature of me. I'm working on it today. All will become clear soon I hope.

Oh, I see... This misunderstanding because I started advanced "Routing & Navigation" guide from Milestone 3 chapter (I was interested only in RouterModule.forChild() understanding). This chapter links to "Tour of hero" tutorial so I thought I can start from it. I miss first couple milestones, which could get start point in "Services".

Not your problem. In fact, you lead me to some things that needed improvement. Thanks.

Not your problem. In fact, you lead me to some things that needed improvement. Thanks.


index change field is returned instead of timestamp

                     // Index quote/full
                    28 | 32 => {
                        let mut data: JsonValue  = json!({
                            "tradable": tradable,
                            "mode": if packet_length == 28 {"quote"} else {"full"},
                            "instrument_token": instrument_token,
                            "last_price": reader.read_i32::<BigEndian>().unwrap() as f64 / divisor,
                            "ohlc": {
                                "high": reader.read_i32::<BigEndian>().unwrap() as f64 / divisor,
                                "low": reader.read_i32::<BigEndian>().unwrap() as f64 / divisor,
                                "open": reader.read_i32::<BigEndian>().unwrap() as f64 / divisor,
                                "close": reader.read_i32::<BigEndian>().unwrap() as f64 / divisor,
                            },
                            "change": 0
                        });

                        if data["ohlc"]["close"] != 0 {
                            let last_price: f64 = data["last_price"].as_f64().unwrap();
                            let ohlc_close: f64 = data["ohlc"]["close"].as_f64().unwrap();
                            data["change"] = json!((last_price - ohlc_close) * 100 as f64 / ohlc_close);
                        }

                        if packet_length == 32 {  // timestamp incase of full
                            data["timestamp"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor);
                        }

                        tick_data.push(data);
                    },

In https://github.com/zerodha/kiteconnect-rs/blob/7fdd0a19e189c32cc0ebf77febba9af2badf9788/src/ticker.rs#L242
We are doing data["timestamp"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor); which will read the next 4bytes after the close value which is change instead of timestamp
timestamp is the next 4bytes after change
So it should be something like
                            data["change"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor);
                            // and then
                              if packet_length == 32 {  // timestamp incase of full
                            data["timestamp"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor);
                        }

Reference

@joeirimpan


Tracing index.js in the browser workflow

jspm link index.js

It's expected to get react and react-dom in the impormaps, but it gives this:
{
  "imports": {
    "index.js"<EMAIL_ADDRESS>  },
  "scopes": {
    "https://ga.jspm.io/": {
      "fs": "https://ga.jspm.io/npm<EMAIL_ADDRESS>      "path": "https://ga.jspm.io/npm<EMAIL_ADDRESS>    }
  }
}

I feel this is a generator bug.
jspm link ./inject.js

Works well, but
jspm link index.js

treats index.js as a package.

@guybedford Let me know if I should create an issue in the generator.

This works now as of #160.


Cookies!

This PR adds functionality to the Session class to set and get (encrypted) cookies.

cc @Maxyme


How to restore a project to functionality after pushing a branch with UFT-8 characters

Our project had some UTF-8 characters in branch names. Since according to #1822, these aren't allowed in branch names, I've removed them. But even after running a new build of my project, the Versions page remains inaccessible and Admin -> Versions still features the old, removed, UTF-8 branch.
This is not a duplicate of #1410; that issue deals with proper support for UTF-8 characters in branch names, while this issue deals with the correct recovery procedure for fixing a project that has had unsupported UTF-8 characters in its branch names.
Details

Project URL: https://readthedocs.org/projects/vg/
Read the Docs username (if applicable): adamnovak

Expected Result
New branches should show up under Admin -> Versions immediately after the next successful build, now that no branch names on the Github repo contain UTF-8 characters. Also, the main "Versions" button for the project should return a page full of versions.
Actual Result
New branches are still not appearing under Admin -> Versions after a successful build, and the old, invalidly-named branches are still there. The main "Versions" page still just has an error message saying "Fail.  Check back in a bit!".

I fixed this for your project by deleting the version, but the issue seems to be in the packaging library we're using for version comparison. Full traceback:
Traceback (most recent call last):
File "/home/docs/bin/gunicorn", line 11, in <module>
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 185, in run
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 71, in run
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 176, in run
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 541, in spawn_workers
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 44, in run
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 93, in handle
File "/home/docs/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 139, in handle_request
File "/home/docs/local/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/api/web_transaction.py", line 738, in __iter__
File "/home/docs/local/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/api/web_transaction.py", line 1114, in __call__
File "/home/docs/local/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/api/web_transaction.py", line 1242, in _nr_wsgi_application_wrapper_
File "/home/docs/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
File "/home/docs/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
File "/home/docs/local/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/hooks/framework_django.py", line 503, in wrapper
File "/home/docs/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
File "/home/docs/local/lib/python2.7/site-packages/rest_framework/viewsets.py", line 85, in view
File "/home/docs/local/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/hooks/component_djangorestframework.py", line 27, in _nr_wrapper_APIView_dispatch_
File "/home/docs/local/lib/python2.7/site-packages/rest_framework/views.py", line 407, in dispatch
File "/home/docs/local/lib/python2.7/site-packages/rest_framework/views.py", line 404, in dispatch
File "/home/docs/checkouts/readthedocs.org/readthedocs/restapi/views/model_views.py", line 112, in sync_versions
File "/home/docs/checkouts/readthedocs.org/readthedocs/projects/version_handling.py", line 169, in determine_stable_version
File "/home/docs/checkouts/readthedocs.org/readthedocs/projects/version_handling.py", line 144, in sort_versions
File "/home/docs/checkouts/readthedocs.org/readthedocs/projects/version_handling.py", line 110, in parse_version_failsafe
File "/home/docs/local/lib/python2.7/site-packages/packaging/version.py", line 212, in __init__

It sounds like the original issue was resolved. I think we have some more work to do on git parsing of this information though. Closing this issue as we have a few already around utf8 support.


Docker Workspace removes quotes in go files.

Hi,
I just installed the Docker workspace plugin for virtual studio on my Mac, and I am using a 'golang' Docker container straight from the Docker hub image (it uses an Ubuntu OS).
When I write my Go code on VS and save it, VS removes the double quotes from my file which makes it un-executable on the container (removes quotes from import "fmt" for example).
Anyway I can get this fixed?
Thanks

Hi @ramya-rao-a and sorry for misleading you. Indeed, I was talking about Virtual Studio Code.

In that case, there might be some other extensions that is interfering. Can you disable all the extensions other than Go and Docker and see if you still have the issue?


please provide typescript types

this will provide better developer experience when using with TS projects

thanks!

Published in 1.5.4


Generate minified bundles

I'd like to see this feature be implemented in future release.

Hi @jackjoy,
please excuse my response time.
This is a matter of adding rollup-plugin-uglify to the build steps performed by rollup, or uglify-js, uglify-es as an additional build step.
It's not a top priority to me, since most applications will likely use webpack or another module bundler to minify dependencies in their production bundles.
If you like, you can open a PR anytime! It's welcome!
Cheers! 🍻

I feel this will be a very useful feature. When I run my angular application that depends on a component library created with ng-packager the vendor bundle is HUGE. Serving an empty CLI project generates a vendor bundle of 2.53MB, and if I import the modules from my ng-packagr library it goes up to 7.55MB and takes about 120 seconds to recompile everytime I make a change.
I have verified that when I do a ng-build with --prod and --aot the size goes way down, but the enormous size makes it very painful while developing. In comparison when I import Material2's component library the vendor bundle size is 4.21MB. When I import both Material2 and my ng-packagr library it goes up to 9.03MB.
Is there something I am doing wrong which causes such large vendor bundles or would minified bundles solve my issues?

Minified bundles will probably not help you since the Angular CLI should resolve your library from flat modules, not bundles. Is the library you are using available publicly so we can help troubleshoot?

This is very useful when you want to share live examples of your library on plunkr.

I see there is already a PR for this but the other argument for doing this is it is specified in the folder layout diagram for the Angular package format


[OHSS-14711] Log and raise Jira card if CAR cannot query Splunk webook

Fixes OHSS-14711
Depends on #15 by @gsleeman

Will create an unassigned Jira card for further investigation if CAR cannot retrieve search results from Splunk
Adds an example webhook in an examples directory, to make development easier [1]
Adds a note to Jira client config to log a warning if using Development credentials
Adds quick functions for generic 200 and 500 HTTP responses [2]

[1] EG: http POST localhost:8080/api/v1/alert < examples/splunk_alert_payload_example.json
(This example is using the http httpie CLI tool for easy curl-like commands, if you haven't seen it before. It's great stuff!)
[2] The 500 errors in particular should be generic responses to Splunk and Jira webhook API urls, to avoid accidentally leaking any sensitive data passing error messages (err.Error()) to anonymous requestors (on the off chance that our API is not behind auth).
Signed-off-by: Chris Collins<EMAIL_ADDRESS>

Really great work on this! A few minor comments but nothing that I think should be blocking (outside of maybe the missing test cases).

/lgtm


Introduce sha/date-based Docker tags for Hubble CLI

We want to use a recent version of the Hubble CLI in Cilium CI, but not the latest tag. We should introduce a sha/date based tag for the Hubble CI so we can pin specific versions for use in Cilium CI.

ok i updated the build trigger, i couldn't figure out how to include timestamp, but it looks reasonable. so what we have is:

latest: the latest build from the head of master branch.
$branch: floating tag that points to the latest build of the branch (e.g. master, v0.5).
$branch-$sha: non-floating tag for the branch at a specific commit (master-6441b9f ,  v0.5-8adcfe8).
$tag: non-floating tag for a specific tag (e.g. v0.5.1).

i guess we'll branch v1.8 to be in sync with cilium after the feature freeze.

https://quay.io/repository/cilium/hubble?tab=tags


Snappy is built with debug assertions enabled

The source files pulled in from google/snappy make use of assert() for debugging, which are expected to be disabled in release builds when following their cmake build process by the presence of -DNDEBUG in the CXXFLAGS.
This flag is not specified for building those files as part of snappy-java. As a result, we discovered (due to a bug in our software) that it is possible to trigger failures of those assertions when using snappy-java, which terminates the process instead of propagating an exception back to Java code.

Good catch. Testing it at https://github.com/xerial/snappy-java/pull/386


testSet enable_partition_analyze back to false after case finish. Add partition stats test for mtmv.

Set enable_partition_analyze back to false after case finish, and make it nonConcurrent.


fix(pkgr/parser): added failure definition to prevent build failure

Updated pkgr/parser to define failures to prevent runtime go run build failure

This issue has been resolved in PR:
https://github.com/influxdata/influxdb/pull/15935


Docs:

🚨 Please do not open a documentation issue in the core React Native repository. 🚨
The React Native website is hosted on a separate repository. You may let the
team know about any issues with the documentation by opening an issue there:

https://github.com/facebook/react-native-website
https://github.com/facebook/react-native-website/issues

how can i solve this problem of linking maps??


Proxy doesn't close/dispose connections properly

Hi!
As already explained in other issues, we're using Titanium for a transparent proxy on Linux. Some of the requests the proxy receives are forwarded to the server, while others are handled by the proxy itself (await e.Ok). Unfortunately, it seems that all socket connections will end up in a CLOSE_WAIT state. As far as I understand, this means that the socket connection received a FIN (e.g. from the client) but haven't been properly disposed/closed by Titanium.
I already found this to be an issue when we tried to send multiple Json Rpc requests from a browser to a server via our transparent proxy a few months ago. This led to some kind of unexpected lag or delay. I found out that the browser was waiting for a FIN which always ended in a timeout. As a quick solution, I added a "Connection: close" header to every response from Titanium back to the browser. This worked because the browser accepted this as some kind of "FIN", I guess.
Unfortunately, I found another - way more important - issue just a few weeks ago, which, I believe, is related to the former issue. It took me some weeks to find the cause: Usually, Mono's GC handles all the CLOSE_WAIT socket connections within a minute or two. Sometimes, it decides not to. This is probably because Mono's GC tries to optimize the max heap size. While memory is not an issue, the open sockets definitely are. The default value for the "max open files" limit on Linux is 1024. Every open connection on Linux is handled like an open file. So as soon as there are more than 1000 CLOSE_WAIT socket connections everything crashes with a "Too many open files" exception.
Might this be some kind of bug? Do I need to call something in our code to properly close the connection? Any help is appreciated! Thanks!

So, I just updated Titanium to the most recent commit and it looks like this might already fix the issue :-) I guess you made a lot of changes to the transparent proxy stuff. I'll test everything and let you know!

Looks very promising so far. So I'll close this issue for now. Thanks for the good work!


maintained?

Hi is tape-css still used / maintained?
i.e. all the 3 PR's are closed https://github.com/studio-b12/tape-css/issues/6

Hello @thisconnect ,
During our high-stress phaes, we weren't able to maintain our github projects.
According to your question: Yes, we're still using tape-css. I'll take a look on #6 and inform you here back!
Thx for your interest!

Hello again,
There is an adjustment needed related with insert-css (PR 17 on #6). After that, I will release a stable version. This can take couple of days.
Thx again!

no problem, thanks for the info.


Rise: Add placementId parameter to bidder ext

Resolves #3131

prebid-server PR: https://github.com/prebid/prebid-server/pull/3626

@SerhiiNahornyi Can someone please take a look at this one 🙏🏻


Drop EJML code

EJML was useful for experimenting but due to the lack of graph-specific constructs, it does not make sense to use it for implementing and benchmarking the full workload.

Done, moved to https://github.com/FTSRG/ldbc-graphalytics-platform-ejml.