Syncing to testnet: Received an invalid Bitcoin Cash address as input.

When trying to sync with testnet, my copy of SLPDB keeps crashing with this error:
[Query] getMintTransactions(a184e3715b124c6641da4eb0f2940f578c1f6a3525646b8d9a0b919b9b83898e)
STR =  [
  {
    "slp": null,
    "txid": "de66d78081b92a9913dcea43943ac2b82ec8962550fe62710e68d61ee2e03d05",
    "versionTypeHex": "01",
    "block": 1293084,
    "timestamp": "2019-03-16 15:08:28",
    "batonHex": "02",
    "quantityHex": "00000000000004d2"
  }
]

{ InvalidAddressError: Received an invalid Bitcoin Cash address as input.
    at new InvalidAddressError (/home/safeuser/SLPDB/node_modules/bchaddrjs-slp/src/bchaddr.js:518:15)
    at decodeAddress (/home/safeuser/SLPDB/node_modules/bchaddrjs-slp/src/bchaddr.js:177:9)
    at Object.toSlpAddress (/home/safeuser/SLPDB/node_modules/bchaddrjs-slp/src/bchaddr.js:133:17)
    at Function.Utils.toSlpAddress (/home/safeuser/SLPDB/node_modules/slpjs/lib/utils.js:37:24)
    at SlpTokenGraph.<anonymous> (/home/safeuser/SLPDB/SlpTokenGraph.js:296:46)
    at Generator.next (<anonymous>)
    at /home/safeuser/SLPDB/SlpTokenGraph.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/safeuser/SLPDB/SlpTokenGraph.js:3:12)
    at asyncForEach (/home/safeuser/SLPDB/SlpTokenGraph.js:285:77)
  name: 'InvalidAddressError',
  message: 'Received an invalid Bitcoin Cash address as input.',
  stack:
   'InvalidAddressError: Received an invalid Bitcoin Cash address as input.\n    at new InvalidAddressError (/home/safeuser/SLPDB/node_modules/bchaddrjs-slp/src/bchaddr.js:518:15)\n    at decodeAddress (/home/safeuser/SLPDB/node_modules/bchaddrjs-slp/src/bchaddr.js:177:9)\n    at Object.toSlpAddress (/home/safeuser/SLPDB/node_modules/bchaddrjs-slp/src/bchaddr.js:133:17)\n    at Function.Utils.toSlpAddress (/home/safeuser/SLPDB/node_modules/slpjs/lib/utils.js:37:24)\n    at SlpTokenGraph.<anonymous> (/home/safeuser/SLPDB/SlpTokenGraph.js:296:46)\n    at Generator.next (<anonymous>)\n    at /home/safeuser/SLPDB/SlpTokenGraph.js:7:71\n    at new Promise (<anonymous>)\n    at __awaiter (/home/safeuser/SLPDB/SlpTokenGraph.js:3:12)\n    at asyncForEach (/home/safeuser/SLPDB/SlpTokenGraph.js:285:77)' }
trout@p2pvps:~$

Chris, The issue was caused from a token created with P2PK scriptPubKey type.  I am surprised this hasn't come up sooner, but it should be fixed now with 43bda1b.
If you want to make sure your testnet data is perfect, run this once:

git pull
npm install (to resolve a minor/unrelated dependency change)
tsc && node index.js run 1293083

Otherwise if testnet db doesn't need to be perfect 3) can be just npm start.
Let me know how it goes.

Looks like your updates fixed the issue. I'm pretty sure my copy of SLPDB just finished syncing successfully to testnet.


Implement PUT requests

Once PUT requests have been mapped, need to implement them so that they can be used.

Closing this, pretty much done.


Feature/arango node query with updates to inmem unit tests

Description of the PR

Implement query node by ID for Arango (singular and plural)
add new unit tests to each noun and verb
add unit tests for inmem backend for query by Node query (previously missing)

PR Checklist

[x] All commits have a Developer Certificate of Origin (DCO) -- they are generated using -s flag to git commit.
[x] All new changes are covered by tests
[ ] If GraphQL schema is changed, make generate has been run
[ ] If collectsub protobuf has been changed, make proto has been run
[ ] All CI checks are passing (tests and formatting)
[x] All dependent PRs have already been merged

Curious, why do the nouns only need "buildByID", and the verbs also need "queryByID" ?

Curious, why do the nouns only need "buildByID", and the verbs also need "queryByID" ?

mostly for readability and not to make one massive method


invalid samples in operator/samples

trafficManagement-namespace.yaml (unknown field "trafficManagement")
pilot-advanced-override.yaml  (same)
pilot-k8s.yaml (same)
sds-policy-off.yaml (unknown field "policy")

I also strongly recommend putting at least one # comment in each sample.
I realize we don't ship these things.  Perhaps we should move them to the top-level samples, as examples of how to use the Operator.

Also, operator/data/examples:

values-istio-multicluster-primary.yaml (unknown field "gateways")

Adding Docs because I just discovered that https://preliminary.istio.io/docs/setup/install/istioctl/ uses istioctl manifest apply -f samples/operator/pilot-k8s.yaml as an example of Customizing the Configuration, and issuing that command yields
$ istioctl manifest apply -f samples/operator/pilot-k8s.yaml
proto: tag has too few fields: "-"
Error: failed to generate and apply manifests, error: failed to generate manifest: unknown field "trafficManagement" in v1alpha1.IstioOperatorSpec:

YAML:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  trafficManagement:
    components:
      pilot:
...


Allow to specify custom CRUD relations?

Is it possible to mantain the relation between tables that are in relation?
Cities -> has many themes,
and
each themes -> has many hotels
I will like CRUD shows not only that cities has many themes
but I want to be able to click on the theme name once it is created and when clicked takes me to the Hotels list...
I tried to create a relation like that with CRUD but I get this error:
atk4\ui\Exception: Unable to set property for the object

Any way to do this ?
my code:

$crud = $app->add([
    '\atk4\mastercrud\MasterCRUD',
    'quickSearch'=>['city'],
    'ipp'=>5,
    'fieldsRead'=>['city']
]);

$m = $crud->setModel(new Cities($app->db),
[
  'Themes'=>[
    'CRUD', 'quickSearch'=>false, 'canDelete'=>true, 'canUpdate'=>true',
    'Hotels'=>[
      'CRUD', 'quickSearch'=>false, 'canDelete'=>true, 'canUpdate'=>true'
    ]
  ],
]);

any ideas?
thanks

With latest changes in MasterCrud you should be able to do like this. See _crud key - that's how you can pass properties to sub-cruds.
There is also key _tabs. That's how you can pass some properties to tabs view if needed.
$crud = $app->add([
    '\atk4\mastercrud\MasterCRUD',
]);

$m = $crud->setModel(new Cities($app->db),
[
    '_crud' => ['quickSearch'=>['city'], 'ipp'=>5, 'fieldsRead'=>['city']], // for Cities
    'Themes'=>[
        '_crud' => ['quickSearch'=>false, 'canDelete'=>true, 'canUpdate'=>true], // for Themes
        'Hotels'=>[
            '_crud' => ['quickSearch'=>false, 'canDelete'=>true, 'canUpdate'=>true], // for Hotels
        ]
    ],
]);

Please check if this works for you and if it does (or doesn't not) let us know by replying here.

thanks I will check it sorry I miss this message I do not know why I did it see it before :)


BigQuery: Make backup for table that partitoned by arbitrary field

Hi guys,
We are using BigQuery tables partitioned by not _PARITIONTIME, for example: Time. Yes, we now it is in beta.
For old tables partitioned by _PARITIONTIME we are using CreateExtractJobAsync but for new tables it is not working. Can we do something for this?
Thanks

This is something we're looking at shortly - at least for a couple of features. (I can't remember whether that includes Create Extract Job, but I think it does.)
Assigning to Amanda who will probably be doing the work :)

Just looking now, and time partitioning is not supported in the extract job configuration - only for load and query. So I'm afraid this isn't supported by the API at the moment as far as I can tell. If you think I've missed something, do let me know.
The options for exporting to multiple files are here.

Thanks, It's not in a hurry

Well it's not so much a matter of my time, as that we can't support it from the client library if the API doesn't support it. You might want to file a feature request on the public tracker.
I'm going to close this issue for the moment, as there's no more work due in this repo at the moment. If BigQuery does start exposing the feature, it should be easy enough for us to support.


[ZEPPELIN-1102] ElasticSearch interpreter auto completion doesn't work.

What is this PR for?
This PR fixes bug of elasticsearch auto completion.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1102
How should this be tested?
Test auto completion code like as http://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/interpreter/elasticsearch.html.
Screenshots (if appropriate)

before

after

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

re-trigger CI

👍  for adding a test!
Looks great to me, merging if there is no more dicsussion

re-trigger CI

ping @astroshim
To help making CI more stable, could you please re-base on the latest master?

pong @bzz
I just re-based. Thanks.

CI is green now, looks great to me.
Can you please next time make sure JIRA issue is assigned to you as well? Let me know if there are any troubles with JIRA on doing so (i.e it's not editable or you can not assign to yourself, etc)
Merging if there is no discussion


Replace: tkf/MicroCollections -> JuliaFolds/MicroCollections

Codecov Report

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

@@           Coverage Diff           @@
##           master       #7   +/-   ##
=======================================
  Coverage   74.34%   74.34%
=======================================
  Files           7        7
  Lines         191      191
=======================================
  Hits          142      142
  Misses         49       49

Flag
Coverage Δ

#unittests
74.34% <ø> (ø)

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 d053736...55b1cc1. Read the comment docs.


feat: avoid caching secrets/configmaps

Fixes #721
Details are in https://github.com/external-secrets/external-secrets/issues/721#issuecomment-1041515014.
I'm wondering if we should hide that feature behind a feature flag or if it should be enabled by default.
I did some testing with a lot secrets: ~2k Kind=Secret with 512k each:

mem consumption without this patch is ~1GB
mem consumption with this patch is < 100 MB

Load scenarios
All Kind=Secret and Kind=ConfigMap are ListWatched.  But we don't really care about them.

may cause other cluster operations to be hanging

IMO this is nothing we should care about; it's up to the cluster admin to implement APF. client-go respects HTTP/429 responses and implements exponential backoff.
Load estimation
Generally: it depends on the way how a user uses the controller.
If the Kind=Secret we own gets updated, then

(1) we use ctrl.CreateOrUpdate() which does a GET and then a PUT/POST.
with disabled cache this GET request is not cached. The PUT/POST isn't cached in either way.
(2) if we use patchSecret then there's no difference.

So, for every ExternalSecret we potentially have one GET request to the api-server that isn't cached (and only if everything is configured correctly). The controller enqueues reconcile requests and we shouldn't have a high concurrent load on the api-server (depends on the concurrency flag ofc).
A provider makes use of secrets aswell:

If a provider reqests credentials from a Kind=Secret, then this is also not cached.
If secret store doesn't fetch credentials from a Kind=Secret then there is no change (e.g. when using workload identity or env based authentication mechanisms)

Unfortunately there is no ideal solution with the controller-runtime client: users would have to label their secrets (the ones a provider consumes aswell as the ones owned by the controller) in a certain way so we can use labelSelectors for the ListWatch call.
The ideal solution might be to implement a custom LRU cache for the provider and/or owned secrets. But this isn't a path i want to go down (or do we have to? :boom:).
IMO there is a clear value in disabling cache. We should at least add an cli flag to enable that. WDYT?

Yes, you're right.
We should just have this implementation and not the old one. Even if we are in a very specific case where it turns to be worse for the kube-apiserver, we shouldn't cache secrets that aren't our own.

/approve

In order for this change to be effective, I think we'll need to do it the same way with some other resources in the features to come (namespaces for ClusterExternalSecret controller, Secrets for cert controller)

I agree. Namespaces tho shouldn't be an issue, they're relatively small in size (<1kb); 35k namespaces would mean 35MB RAM, that's fine if that is cached in-memory.
As an enhancement for #542 we should implement SelectorsByObject to limit the ListWatch call to ExternalSecrets we care about.

/merge


Tune feature-gates table

This PR separates the graduated/deprecated feature gates into a separate
table. When updating the table contents by browsing the source code, we
also found some missing items which are added in this PR as well.

milestone 1.16

/milestone 1.16

/lgtm
/approve

@tengqm  1.15 PR https://github.com/kubernetes/website/pull/16410


How to get word alignment in attention_seq2seq in Translate.py?

Hi,
I'm wondering if i get the word alignment probability in the seq2seq model for language translation.
Thanks a lot!
Stephen

@wsnooker : Apologies for the late reply. This question is probably best asked on stackoverflow as the github issues try to remain focused on bugs and feature requests.


API testing - campaign

add guest transaction.
Campaign is
[Event Category Slug]-guest

Should instead always be
"Events.HUF"

Yes.

fixed and deployed.


Python (busy) and nothing happens

I am running nbterm with no parameters, has ipykernel installed, enter "print(100)" in a cell, esc, cntrl-e.
The status bar changes to "python3 (busy)" and I have to kill the process to get out.
Ubuntu 16.04

Difficult to know what's going on, can you post the output of pip freeze?

I understand, just didn't know what information to provide. here it is:
https://drive.google.com/uc?id=1GQsW7jSXyaYlz6of6qoyXVeFjYm9Uf6q&export=download
let me know whatever information you need.
On Sun, 23 May 2021 at 20:39, David Brochart @.***>
wrote:

Difficult to know what's going on, can you post the output of pip freeze?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/davidbrochart/nbterm/issues/41#issuecomment-846526805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC7IWC4V7U3RMIQRMZZYMTDTPC5NZANCNFSM45JZXFXA
.

When I run pip install requirements.txt with you file, I get:
pip install -r requirements.txt
Collecting albumentations@ git+https://github.com/albumentations-team/albumentations@95a048d342cbe748e5acf15cb1a28611a6303885
  Cloning https://github.com/albumentations-team/albumentations (to revision 95a048d342cbe748e5acf15cb1a28611a6303885) to /tmp/pip-install-jez8a6dl/albumentations_80e3be882cbc423f9c02d99cd853a45a
  Running command git clone -q https://github.com/albumentations-team/albumentations /tmp/pip-install-jez8a6dl/albumentations_80e3be882cbc423f9c02d99cd853a45a
  Running command git rev-parse -q --verify 'sha^95a048d342cbe748e5acf15cb1a28611a6303885'
  Running command git fetch -q https://github.com/albumentations-team/albumentations 95a048d342cbe748e5acf15cb1a28611a6303885
  Running command git checkout -q 95a048d342cbe748e5acf15cb1a28611a6303885
Obtaining DCNv2 from git+https://github.com/lbin/DCNv2@711fe28bd775574c8ee0fb0ab13408ba1eeb9465#egg=DCNv2 (from -r requirements.txt (line 37))
  Cloning https://github.com/lbin/DCNv2 (to revision 711fe28bd775574c8ee0fb0ab13408ba1eeb9465) to ./src/dcnv2
  Running command git clone -q https://github.com/lbin/DCNv2 /home/david/tmp/src/dcnv2
  Running command git rev-parse -q --verify 'sha^711fe28bd775574c8ee0fb0ab13408ba1eeb9465'
  Running command git fetch -q https://github.com/lbin/DCNv2 711fe28bd775574c8ee0fb0ab13408ba1eeb9465
  Running command git checkout -q 711fe28bd775574c8ee0fb0ab13408ba1eeb9465
    ERROR: Command errored out with exit status 1:
     command: /home/david/mambaforge/envs/nbterm/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/david/tmp/src/dcnv2/setup.py'"'"'; __file__='"'"'/home/david/tmp/src/dcnv2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-8pfkhwqz
         cwd: /home/david/tmp/src/dcnv2/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/david/tmp/src/dcnv2/setup.py", line 6, in <module>
        import torch
    ModuleNotFoundError: No module named 'torch'
    ----------------------------------------
WARNING: Discarding git+https://github.com/lbin/DCNv2@711fe28bd775574c8ee0fb0ab13408ba1eeb9465#egg=DCNv2. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Collecting efficientnet@ git+https://github.com/qubvel/efficientnet@8984e988ecccd9c3a15be2e793991845619a8a26
  Cloning https://github.com/qubvel/efficientnet (to revision 8984e988ecccd9c3a15be2e793991845619a8a26) to /tmp/pip-install-jez8a6dl/efficientnet_551027d1bee6487493c75c7515b47f6e
  Running command git clone -q https://github.com/qubvel/efficientnet /tmp/pip-install-jez8a6dl/efficientnet_551027d1bee6487493c75c7515b47f6e
  Running command git rev-parse -q --verify 'sha^8984e988ecccd9c3a15be2e793991845619a8a26'
  Running command git fetch -q https://github.com/qubvel/efficientnet 8984e988ecccd9c3a15be2e793991845619a8a26
Collecting pytorch-metric-learning@ git+https://github.com/KevinMusgrave/pytorch-metric-learning@dff4ae570db89dcb59a102f13f665502f9c1c7c6
  Cloning https://github.com/KevinMusgrave/pytorch-metric-learning (to revision dff4ae570db89dcb59a102f13f665502f9c1c7c6) to /tmp/pip-install-jez8a6dl/pytorch-metric-learning_01cadd23e1e546ae8a592605e8e468ea
  Running command git clone -q https://github.com/KevinMusgrave/pytorch-metric-learning /tmp/pip-install-jez8a6dl/pytorch-metric-learning_01cadd23e1e546ae8a592605e8e468ea
  Running command git rev-parse -q --verify 'sha^dff4ae570db89dcb59a102f13f665502f9c1c7c6'
  Running command git fetch -q https://github.com/KevinMusgrave/pytorch-metric-learning dff4ae570db89dcb59a102f13f665502f9c1c7c6
  Running command git checkout -q dff4ae570db89dcb59a102f13f665502f9c1c7c6
Collecting absl-py==0.11.0
  Downloading absl_py-0.11.0-py3-none-any.whl (127 kB)
     |████████████████████████████████| 127 kB 2.9 MB/s
Collecting adabelief-tf==0.2.0
  Downloading adabelief_tf-0.2.0-py3-none-any.whl (6.4 kB)
ERROR: Could not find a version that satisfies the requirement afm-op==0.0.0 (from versions: none)
ERROR: No matching distribution found for afm-op==0.0.0

Oh dear, i didn't realize you are going to try and install all my junk. I
thought you would be looking for something.
I will try to narrow it down.
On Sun, May 23, 2021, 21:37 David Brochart @.***> wrote:

When I run pip install requirements.txt with you file, I get:
pip install -r requirements.txt
Collecting albumentations@ @.***
Cloning https://github.com/albumentations-team/albumentations (to revision 95a048d342cbe748e5acf15cb1a28611a6303885) to /tmp/pip-install-jez8a6dl/albumentations_80e3be882cbc423f9c02d99cd853a45a
Running command git clone -q https://github.com/albumentations-team/albumentations /tmp/pip-install-jez8a6dl/albumentations_80e3be882cbc423f9c02d99cd853a45a
Running command git rev-parse -q --verify 'sha^95a048d342cbe748e5acf15cb1a28611a6303885'
Running command git fetch -q https://github.com/albumentations-team/albumentations 95a048d342cbe748e5acf15cb1a28611a6303885
Running command git checkout -q 95a048d342cbe748e5acf15cb1a28611a6303885
Obtaining DCNv2 from @.***#egg=DCNv2 (from -r requirements.txt (line 37))
Cloning https://github.com/lbin/DCNv2 (to revision 711fe28bd775574c8ee0fb0ab13408ba1eeb9465) to ./src/dcnv2
Running command git clone -q https://github.com/lbin/DCNv2 /home/david/tmp/src/dcnv2
Running command git rev-parse -q --verify 'sha^711fe28bd775574c8ee0fb0ab13408ba1eeb9465'
Running command git fetch -q https://github.com/lbin/DCNv2 711fe28bd775574c8ee0fb0ab13408ba1eeb9465
Running command git checkout -q 711fe28bd775574c8ee0fb0ab13408ba1eeb9465
ERROR: Command errored out with exit status 1:

 command: /home/david/mambaforge/envs/nbterm/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/david/tmp/src/dcnv2/setup.py'"'"'; __file__='"'"'/home/david/tmp/src/dcnv2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-8pfkhwqz

     cwd: /home/david/tmp/src/dcnv2/

Complete output (5 lines):

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/home/david/tmp/src/dcnv2/setup.py", line 6, in <module>

    import torch

ModuleNotFoundError: No module named 'torch'

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

WARNING: Discarding @.***#egg=DCNv2. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Collecting efficientnet@ @.***
Cloning https://github.com/qubvel/efficientnet (to revision 8984e988ecccd9c3a15be2e793991845619a8a26) to /tmp/pip-install-jez8a6dl/efficientnet_551027d1bee6487493c75c7515b47f6e
Running command git clone -q https://github.com/qubvel/efficientnet /tmp/pip-install-jez8a6dl/efficientnet_551027d1bee6487493c75c7515b47f6e
Running command git rev-parse -q --verify 'sha^8984e988ecccd9c3a15be2e793991845619a8a26'
Running command git fetch -q https://github.com/qubvel/efficientnet 8984e988ecccd9c3a15be2e793991845619a8a26
Collecting pytorch-metric-learning@ @.***
Cloning https://github.com/KevinMusgrave/pytorch-metric-learning (to revision dff4ae570db89dcb59a102f13f665502f9c1c7c6) to /tmp/pip-install-jez8a6dl/pytorch-metric-learning_01cadd23e1e546ae8a592605e8e468ea
Running command git clone -q https://github.com/KevinMusgrave/pytorch-metric-learning /tmp/pip-install-jez8a6dl/pytorch-metric-learning_01cadd23e1e546ae8a592605e8e468ea
Running command git rev-parse -q --verify 'sha^dff4ae570db89dcb59a102f13f665502f9c1c7c6'
Running command git fetch -q https://github.com/KevinMusgrave/pytorch-metric-learning dff4ae570db89dcb59a102f13f665502f9c1c7c6
Running command git checkout -q dff4ae570db89dcb59a102f13f665502f9c1c7c6
Collecting absl-py==0.11.0
Downloading absl_py-0.11.0-py3-none-any.whl (127 kB)
 |████████████████████████████████| 127 kB 2.9 MB/s

Collecting adabelief-tf==0.2.0
Downloading adabelief_tf-0.2.0-py3-none-any.whl (6.4 kB)
ERROR: Could not find a version that satisfies the requirement afm-op==0.0.0 (from versions: none)
ERROR: No matching distribution found for afm-op==0.0.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/davidbrochart/nbterm/issues/41#issuecomment-846533653,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC7IWC4CGAXGTASYDGTME5DTPDEEVANCNFSM45JZXFXA
.

Hi, it's waste of time to try nbterm currently on anything else than python 3.9.3 (so far what I know). Your setup ought to be something like 3.7.3. The busy message has been here either on 3.7.3. I tried fresh machine on Debian 10.10 and installed python 3.9.3. After that the nbterm started to communicate with the kernel.

I have the same phenomenon on 3.9.5

I just tried with python 3.9.5 and it works fine:
mamba create -n nbterm python=3.9.5 ipykernel nbterm
conda activate nbterm
nbterm

I'm on an up-to-date mac, with a python 3.9.5 from python.org, and having done a pip3 install nbterm and ipykernel. I can only say that nbterm does not work out of this box.

Can you post the output of pip freeze?

That's a rather personal question ...

I found precise cause of this error. I tested my hypothesis and confirmed solution on Debian 10.10.
The reason why the nbterm freezes on machines with Python 3.7 is following.
When You list the kernels with:
jupyter kernelspec list
You get something like e.g.:
python3|/usr/local/share/jupyter/kernels/python3
When I looked into the file on Debian 10.10 (with Python 3.7)
there is following:
cat /usr/local/share/jupyter/kernels/python3/kernel.json
{
"argv": [
"python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
...
etc.
That means on systems with Python 2.7 and 3.x the nbterm tries to run Python 2.7. And that's something that doesn't work. In my case I ran the nbterm by editing the python 3 krnel json and replace python in the argv section to python3. Afterwards I sucesfully ran the nbterm on python 3.7 distribution.
... afterwards:
cat /usr/local/share/jupyter/kernels/python3/kernel.json
{
"argv": [
"python3",
"-m",
"ipykernel_launcher",
... etc.

ran into this as well -- on linux, apt install python-is-python3 resolved it for me

That fixed it for me as well (Ubuntu 22)

I can report that on my Ubuntu 22.04 system the suggested:
apt install python-is-python3
allows me to run nbterm as expected.
Cheers!


AppBar automatically show a close button for dialogs

#9200 part 1.
Make the fullscreen dialog demo use the new API instead of manually injecting a close button.
Will refactor the text fields demo in a next PR.

LGTM assuming the page.dart change is just an oversight and should be reverted.


Layout Containers -> Presentation containers: NavigationLink

Doc: https://developer.apple.com/documentation/swiftui/navigationlink

Merged with #129

@shadowfacts can we close this one?

I believe this is still in progress, pending #130 being merged


Sizes of tensors must match except in dimension 2. Expected size 60 but got size 12 for tensor number 1 in the list.

!!! Exception during processing !!! Sizes of tensors must match except in dimension 2. Expected size 60 but got size 12 for tensor number 1 in the list.
Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-CogVideoXWrapper\nodes.py", line 364, in decode
    frames = vae.decode(latents).sample
             ^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\accelerate_utils.py", line 46, in wrapper
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_kl_cogvideox.py", line 1153, in decode
    decoded = self._decode(z).sample
              ^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_kl_cogvideox.py", line 1112, in _decode
    return self.tiled_decode(z, return_dict=return_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_kl_cogvideox.py", line 1229, in tiled_decode
    tile = self.decoder(tile)
           ^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_kl_cogvideox.py", line 851, in forward
    hidden_states = self.conv_in(sample)
                    ^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_kl_cogvideox.py", line 134, in forward
    inputs = self.fake_context_parallel_forward(inputs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\autoencoders\autoencoder_kl_cogvideox.py", line 126, in fake_context_parallel_forward
    inputs = torch.cat(cached_inputs + [inputs], dim=2)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Sizes of tensors must match except in dimension 2. Expected size 60 but got size 12 for tensor number 1 in the list.

Prompt executed in 40.46 seconds

Looks like this error is related to trying to use the vae_tiling feature

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

i meet the same problem,did you resolve it?

Yup, same issue here. With the new comfyui error popup stuff, the following message gets displayed on the error (I'm also using the enable_vae_tiling). CogVideoDecode Sizes of tensors must match except in dimension 2. Expected size 60 but got size 12 for tensor number 1 in the list.

same to me when i try to use vae tiling

The tiled_vae doesn't seem to support every available resolution, it should work with the CogVideoX default, but probably not with all of the resolutinos CogVideoX-Fun allows. I don't know the exact rule yet.

The tiled_vae doesn't seem to support every available resolution, it should work with the CogVideoX default, but probably not with all of the resolutinos CogVideoX-Fun allows. I don't know the exact rule yet.

thanks for all your work. I found this issue is because I chose "fastmode" in fp8_transformer and enabled vae tiling. after change to "enable" in fp8_transformer, it works fine with vae tiling. I have always been using default resolution(720x480).
my torch is 2.4.1 and i use "--fast" in run.bat

The tiled_vae doesn't seem to support every available resolution, it should work with the CogVideoX default, but probably not with all of the resolutinos CogVideoX-Fun allows. I don't know the exact rule yet.

thanks for all your work. I found this issue is because I chose "fastmode" in fp8_transformer and enabled vae tiling. after change to "enable" in fp8_transformer, it works fine with vae tiling. I have always been using default resolution(720x480). my torch is 2.4.1 and i use "--fast" in run.bat

Not to get toooooo derailed here, but fp8 always runs far faster for me.. I never got "fastmode" to work "fast", even though I have an RTX 4080. Do I need to pass "--fast" in my ComfyUI arguments or something?

The tiled_vae doesn't seem to support every available resolution, it should work with the CogVideoX default, but probably not with all of the resolutinos CogVideoX-Fun allows. I don't know the exact rule yet.

thanks for all your work. I found this issue is because I chose "fastmode" in fp8_transformer and enabled vae tiling. after change to "enable" in fp8_transformer, it works fine with vae tiling. I have always been using default resolution(720x480). my torch is 2.4.1 and i use "--fast" in run.bat

Not to get toooooo derailed here, but fp8 always runs far faster for me.. I never got "fastmode" to work "fast", even though I have an RTX 4080. Do I need to pass "--fast" in my ComfyUI arguments or something?

sorry, i know nothing about tech, i can just tell my case. when choose "fastmode" in fp8_transformer in load cogvideo node and enable vae tiling, i got the exact same issue, after change it to "enable", it works

The tiled_vae doesn't seem to support every available resolution, it should work with the CogVideoX default, but probably not with all of the resolutinos CogVideoX-Fun allows. I don't know the exact rule yet.

thanks for all your work. I found this issue is because I chose "fastmode" in fp8_transformer and enabled vae tiling. after change to "enable" in fp8_transformer, it works fine with vae tiling. I have always been using default resolution(720x480). my torch is 2.4.1 and i use "--fast" in run.bat

Not to get toooooo derailed here, but fp8 always runs far faster for me.. I never got "fastmode" to work "fast", even though I have an RTX 4080. Do I need to pass "--fast" in my ComfyUI arguments or something?

sorry, i know nothing about tech, i can just tell my case. when choose "fastmode" in fp8_transformer in load cogvideo node and enable vae tiling, i got the exact same issue, after change it to "enable", it works

Same as me.After switch the enable option,it works.So strange.


Use XST version on PyPI

Context for changes
The first version of the Xanadu Sphinx Theme was released on PyPI yesterday.

Documentation changes:

Updated the Xanadu Sphinx Theme requirement to use the version of the XST hosted on PyPI.

Example usage and tests
To install the Sphinx documentation requirements inside a Python environment, run
$ cd doc
$ pip install -r dev_requirements.txt

Performance results justifying changes

[X] Not Applicable

Workflow actions and tests
See the Create Documentation check.
Expected benefits and drawbacks
Expected benefits:

Sphinx documentation builds have better reproducibility across time.

Possible drawbacks:

The version constraint of the XST dependency must be manually updated to access new XST features.

Related Github issues

[X] Not Applicable

Checklist and integration statements

[X] My Python and C++ codes follow the coding and commenting styles of this project as indicated by existing files. Specifically, the changes conform to given black, docformatter and pylint configurations.
[X] I have performed a self-review of these changes. I have checked my code and corrected misspellings to the best of my capacity. I have checked the codefactor score in the active branch and ensured it is A- or better. I also confirm that I have already merged other branches into this branch as required.
[X] I have added context for corresponding changes in documentation and README.md as needed.
[X] I have added new workflow CI tests for corresponding changes and these pass locally for me.
[X] I have updated CHANGELOG.md following the template. I recognize that the developers may revisit CHANGELOG.md and the versioning, and create a Special Release including my changes. - No changes are required since this change is transparent to users of FlamingPy.

Thanks, @Mandrenkov, however, if this PR is only for the dev_requirements.txt change, please close it as this was already implemented here.

Thanks, @Mandrenkov, however, if this PR is only for the dev_requirements.txt change, please close it as this was already implemented here.

Ah okay, perfect!


Small typo: Because of how the Az module is package,

Should be "packaged" instead of "package"

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 81ecfbed-d327-751f-4d73-8aef91005e75
Version Independent ID: bd4fb194-d6af-e442-5ced-793e09c3fa83
Content: Install Azure PowerShell with PowerShellGet
Content Source: docs-conceptual/azps-2.1.0/install-az-ps.md
GitHub Login: @sptramer
Microsoft Alias: sttramer

Will be fixed in the next publish.


Add Promise.error

Short-cut for an immediately rejected promise.

I'll look into adding this on v2.


Notion of "sequence number" on specimen

It is required that our specimen can be identified by the sequence number of collection (specimen 1, 2, 3, ...). I notice the general FHIR profile has the extension "sequenceNumber" pre-defined, we will also need this in the BE Profile.
ref:
https://www.hl7.org/fhir/extension-specimen-sequencenumber.html

Add extension

Do the MIPS people register this?


Feature request: Support for n>1 prompt requests for clients that do not support this (e.g., groq, Anthropic)

Currently, some clients (such as groq and Anthropic) do not support n>1 prompt requests, which limits their flexibility when handling multiple completions in a single query. It would greatly enhance the developer experience (DX) if ell could provide built-in support for n>1 requests in these environments, creating a more unified and consistent API across all clients.

Working on this :)

Sounds reasonable.
At the same time it’s not exactly equivalent in ways that could make a difference.
N refers to number of outputs per invocation.
If we try to support that synthetically, we’d make N api calls with N * number of input tokens.
If we model it as a single invocation, one call with anthropic would look like they’re taking longer than with an api that supports n= for outputs only.
If we model it as n individual invocations, that’s literally what’s happening, though perhaps not the intent. We could disable tracking of the n= parameter in this case, so it would just look like you did a for loop.


Global level monitoring

Global level monitoring to aggregate metrics from all clusters level monitoring

This feature would include global configuration of alerting and notification rules.

close in favor of https://github.com/rancher/rancher/issues/23057


HEROKU

IS ANY ERROR Is there any error in this code when deploying on Heroku, or any issue with a ban?

This issue has been automatically closed due to inactivity. Feel free to comment in order to reopen.


Add docs-translations for zh-CN

development/coding-style
development/atom-shell-vs-node-webkit

Thanks! :100:

Cool. Thanks for the merge!


Vertical rhythm for headers

Here is the second attempt of a PR to the vertical-ryhthm branch:

run the test with npm run test: visual and you will find a file vertical-rhythm/vertical-rhythm.htm
all line-heights will be relative now
the PR contains the docs. Read the docs first, to see what I have done.
$header-styles is replacing $header-sizes. If $header-styles is not present in the settings.scss it is automatically built from $header-sizes. This approch is downward compatible and avoids any boolean variables.
I have extensively tested this, but I would love to see this tested by somebody else.

@karland I'm away until tomorrow but from your description this sounds fantastic! I'll take a look properly tomorrow but thank you. A great first step into doing similar with everything hopefully.

@brettsmason Any progress? Questions?

@karland sorry I haven't had as much time as I wanted but I will make sure I fully review it tomorrow. I did quickly pull it down to try yesterday and from my brief tests it seems to work great. Will get back to you properly tomorrow.
6.3 release has been delayed a week because of thanksgiving so we have plenty of time.

Hi @karland so had another look (will look more throughout the day).
A few things so far:

Line height is declared within the h1, h2, h3 etc block first with line-height: $header-lineheight; - I think we can loose this
Can you think of any way that if a user doesn't declare a value in a breakpoint above the small (default) that a new value isn't output, so it just inherits the small breakpoints values? I think this would be a nice enhancement and save on some code that isnt potentially needed

I love the map conversion you have done, really brilliant idea!
I'll continue testing, as well as reading through the docs with any other points I might find.

@brettsmason

Agree. I have just put $header-lineheights in, in order for the user to see what the default is without looking at the docs. From a coding point of view I don't like it at all.

What you are suggesting is to simply change the default values for all sizes above 'small' to the values from 'small'. That should not be too difficult to code, but wold probably require a set of temporary variables. Logically, this would be much better than the current solution.

@karland sorry just to clear the points up:

I meant this line - I think that can be removed.

What I mean is say a user doesn't enter margins for their medium breakpoints - at the moment we are outputting the default values. Wouldn't it be better to not output any values at all on breakpoints above small? So its truly mobile first.

Does that make sense?

Inheriting the default values is actually more tricky than I thought. I am working on something. I'll PR later.

I think, this was not tricky at all.

@karland thanks for looking at this some more. However I think I might of misled you with what I meant by mobile first on this occasion - apologies.
I think the ideal output would be something like this (just an example):
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: normal;
  color: inherit;
  text-rendering: optimizeLegibility; }
  h1 small,
  h2 small,
  h3 small,
  h4 small,
  h5 small,
  h6 small {
    line-height: 0;
    color: #cacaca; }

h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.4; }

h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.4; }

h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
  line-height: 1.4; }

h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4; }

h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.4; }

h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4; }

@media print, screen and (min-width: 40em) {
  h1 {
    margin-bottom: 1rem;
    font-size: 3rem; }
  h2 {
    font-size: 2.5rem; }
  h3 {
    font-size: 1.9375rem; }
  h4 {
    font-size: 1.5625rem; }
  h5 {
    font-size: 1.25rem; }
  h6 {
    line-height: 1.2;
    font-size: 1rem; } }

So what I mean is the fallback values are only used on the small breakpoint, and not output again if the user hasn't entered a value.
The above was generated by making a simple change to your original PR, so the final code would be:
  // Headings
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: $header-font-family;
    font-style: $header-font-style;
    font-weight: $header-font-weight;
    color: $header-color;
    text-rendering: $header-text-rendering;

    small {
      line-height: 0;
      color: $header-small-font-color;
    }
  }

  // Heading styles
   @each $size, $headers in $header-styles {
    @include breakpoint($size) {
      @each $header, $header-defs in $headers {
        $font-size-temp: 1rem;
        #{$header} {
          @if map-has-key($header-defs, margin-top) {
            margin-top: rem-calc(map-get($header-defs, margin-top));
          } @else if map-has-key($header-defs, mt) {
            margin-top: rem-calc(map-get($header-defs, mt));
          } @else if $size == $-zf-zero-breakpoint {
            margin-top: 0;
          }
          @if map-has-key($header-defs, margin-bottom) {
            margin-bottom: rem-calc(map-get($header-defs, margin-bottom));
          } @else if map-has-key($header-defs, mb) {
            margin-bottom: rem-calc(map-get($header-defs, mb));
          } @else if $size == $-zf-zero-breakpoint {
            margin-bottom: rem-calc($header-margin-bottom);
          }

          @if map-has-key($header-defs, font-size) {
            $font-size-temp: rem-calc(map-get($header-defs, font-size));
            font-size: $font-size-temp;
          } @else if map-has-key($header-defs, fs) {
            $font-size-temp: rem-calc(map-get($header-defs, fs));
            font-size: $font-size-temp;
          } @else if $size == $-zf-zero-breakpoint {
            font-size: $font-size-temp;
          }
          @if map-has-key($header-defs, line-height) {
            line-height: unitless-calc(map-get($header-defs, line-height), $font-size-temp);
          } @else if map-has-key($header-defs, lh) {
            line-height: unitless-calc(map-get($header-defs, lh), $font-size-temp);
          } @else if $size == $-zf-zero-breakpoint {
            line-height: unitless-calc($header-lineheight, $font-size-temp);
          }
        }
      }
    }
  }

The key point being the @else if $size == $-zf-zero-breakpoint so that the fallback is only added if its the small breakpoint. Also no sizes, line heights and margins are first block
  h1,
  h2,
  h3,
  h4,
  h5,
  h6

as they aren't needed. Does that make sense and look clearer/cleaner output? Really sorry if I caused any confusion! Also feel free to disagree with me...

@brettsmason No worries. I think our solutions are very similar. Basically, we both do not make use of the @else branch any longer. However, you keep the @else branch to set the default values and I moved the default values back into the 'first block'. I have no problem / disagreement with your suggestion and I am happy to take it over.

@andycochran If you get a minute could you take a quick look at this? It now looks OK to me. I'll then get this branch together and sort out a PR into develop.

Just a short question, as I can't find anything about it. This change will break existing old configuration? If that's the case I think the new configuration should have another name and there should be a mapping from old to new, to ensure backward compatibility for a certain time. As this change is an extension to the old functionality it shouldn't be that hard to create a mapping that works with old configuration.

@DaSchTour This PR should not break your old settings as described in the accompanying docs.
"Warning. The $header-styles map has replaced $header-sizes map in version 6.3. $header-styles map is a more general map than $header-sizes. $header-sizes map is still working and is used to initialize the $header-styles map. In a future version $header-styles is going to be depreciated."
So, the $header-sizes map is still working unless you are using the $header-styles map in your settings.

Oh, okay. Somehow I haven't seen it at first sight. Thanks for clarification and great work. 👍

@karland going to merge this in so I can put together the main PR into develop. Thanks so much for your work on this, its excellent! 👍

@brettsmason Thanks to you. It has been fun working with you. I think one of my next PRs will be to improve on other elements to get proper vertical rhythm.


Is there a support to SVG images in SpringRoll framework?

Is there a support to SVG images in SpringRoll framework?

SpringRoll doesn't have anything directly to do with the rendering. EaselJS supports SVG as images with the Bitmap class.

Does latest springRoll version support SVG, i was looking for something similar to SVG path animation or itself where i can get/update the path value (d value) dynamically?

No. You can try parsing the SVG yourself, but SpringRoll still leaves anything like SVG support to the display libraries, and EaselJS does not support animated SVGs to my knowledge.


chore(tasks/transform-conformance): support --override flag

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#7774  👈 (View in Graphite)
#7771
main

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


Fix license link

Coverage remained the same at 99.029% when pulling c5f97b09564ca939fcc5580d159f5dae706b8424 on vprithvi-fix-contributing into 7a55f71dcdb015a9d05f89b30d929c743c477eae on master.


Structure resource layer - Wave 1⃣

Description

This PR initiates a reorganization of the connectors project, introducing a structured resources folder. This new organizational schema is designed with the following architecture:

The resources folder serves as the core for all domain-business logic.
Within it, a storage subfolder consolidates all database-related logic, ensuring a centralized approach to our database interactions.
Further nested, the schemas subfolder hosts all Sequelize models and, soon, Drizzle schemas, ensuring a cohesive storage of our data structure definitions.

The rationale behind consolidating these elements into a unified resources folder is:

Aims to maintain a clear and organized codebase by grouping related files, to ease navigation and project coherence.
Positioning schema definitions in proximity to their corresponding resources foster a close association between data structures and their operational logic.
This restructured approach will help scale as needed.

Scope
This PR simply moves the Sequelize connection to the new structure and refactor all call sites. In the longer term, this connection will never be exposed outside of the resources folder.
Risk

Deploy Plan

Looks great !
Wondering about "storage" as a name for the DB connection stuff. Why not just "database" ?

The goal is to think longer term, as we could end up saving stuff in a DFS, use some caching as well.


do_insertions bug with no tokens

(Original issue 180 created by None on 2007-01-04T18:34:13+00:00)
This manifested itself as the html+php lexer not being able to recover from a missing ?> at eof.
{{{

from pygments.lexers import get_lexer_by_name
lex = get_lexer_by_name("html+php")
lex
<pygments.lexers.HtmlPhpLexer>
print list(lex.get_tokens("<?php"))
[]
}}}

The bug appears to be in pygments.lexer.do_insertions, it's not checking for leftover insertions after the token loop.
See http://trac.edgewall.org/ticket/4464#comment:8
Reported by Tim Hatch<EMAIL_ADDRESS>

(Original issue was assigned to gbrandl)
(Original issue 180 last updated on 2007-01-08T18:30:09+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by gbrandl on 2007-01-08T18:30:09+00:00)
Fixed in r2650.


python311Packages.pontos: 23.7.7 -> 23.8.2

Diff: https://github.com/greenbone/pontos/compare/refs/tags/v23.7.7...v23.8.2
Changelog: https://github.com/greenbone/pontos/releases/tag/v23.8.2
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 249827 run on x86_64-linux 1

14 packages built:

faraday-agent-dispatcher
faraday-agent-dispatcher.dist
gvm-tools (python310Packages.gvm-tools)
gvm-tools.dist (python310Packages.gvm-tools.dist)
python310Packages.pontos
python310Packages.pontos.dist
python310Packages.python-gvm
python310Packages.python-gvm.dist
python311Packages.gvm-tools
python311Packages.gvm-tools.dist
python311Packages.pontos
python311Packages.pontos.dist
python311Packages.python-gvm
python311Packages.python-gvm.dist


[improve][client] Document Java Client's Seek logic thread-safety improved in #20242

Master Issue: #19671
Motivation
Improves JavaDoc describing changes made by PR #20242 as suggested by in review
EDIT: modified JavaDoc to also cover https://github.com/apache/pulsar/pull/20321 accordingly
Modifications
Add JavaDoc regarding thready-safety to the methods in scope of #20242
Verifying this change

[x] Make sure that the change passes the CI checks.

This change is a trivial rework only adds JavaDoc
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[x] doc
[ ] doc-required
[ ] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/JooHyukKim/pulsar/pull/2

Codecov Report

Merging #20284 (ad66df2) into master (00f17e8) will increase coverage by 35.30%.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##             master   #20284       +/-   ##
=============================================
+ Coverage     37.61%   72.91%   +35.30%
- Complexity    12589    31951    +19362
=============================================
  Files          1691     1868      +177
  Lines        129028   138663     +9635
  Branches      14066    15248     +1182
=============================================
+ Hits          48530   101112    +52582
+ Misses        74183    29484    -44699
- Partials       6315     8067     +1752

Flag
Coverage Δ

inttests
24.12% <100.00%> (-0.06%)
:arrow_down:

systests
24.86% <100.00%> (+0.09%)
:arrow_up:

unittests
72.19% <100.00%> (+39.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../apache/bookkeeper/mledger/impl/MetaStoreImpl.java
85.21% <100.00%> (+43.30%)
:arrow_up:

... and 1429 files with indirect coverage changes


chore(deps): bump ktf

What this PR does / why we need it:
Fixes E2E tests that use Gateway API's kustomize manifests to deploy GW API's CRDs (https://github.com/Kong/kubernetes-ingress-controller/actions/runs/5571797159/jobs/10177200861).
Workflow run as a proof for this fix working: https://github.com/Kong/kubernetes-ingress-controller/actions/runs/5623274304

Do you mind adding a link to a commit that brings in the fix that we want here?

BTW: with https://github.com/Kong/kubernetes-testing-framework/pull/754/files merged we can already rely on v0.33 being bumped by dependabot yes?

BTW: with https://github.com/Kong/kubernetes-testing-framework/pull/754/files merged we can already rely on v0.33 being bumped by dependabot yes?

Yeah, I think so. I close this PR and we'll wait for the dependabot kick-in when v0.33.0 gets released. 👍


Pylance unable to import typing.T

 Environment data

Language Server version: 2024.6.1
OS and version: darwin arm64
Python version (and distribution if applicable, e.g. Anaconda):
python.analysis.indexing: true
python.analysis.typeCheckingMode: off

 Code Snippet
from typing import T

 Expected behavior
Pylance Imports object properly
 Actual behavior
"T" is unknown import symbolPylance[reportAttributeAccessIssue](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportAttributeAccessIssue)
Type of "T" is unknownPylance[reportUnknownVariableType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUnknownVariableType)
(import) T: Unknown

There is no symbol T exported from the typing module.
If you want to create a type variable in your code, you should do so using the following:
T = TypeVar("T")

Or if you're using Python 3.12 or newer, you can use the new generics syntax introduced in PEP 695. This doesn't require importing any symbols from the typing module.


Nothing loads

Blank page, only top header loads. Backend gives 404 error.
The live demo is the same. https://medium-ai.vercel.app/

Hi, could you specify what error are you getting from the backend.
I can see the live demo is loading. Could you try now?

I plan to dockerize the application soon to make the deployment easier.


Split up demo emoji and image keyboard into two

I think it'd be better if the demo keyboard has one button to switch to emoji keyboard and one to switch to a custom one, since the keyboard now uses different button types.

This can be tested in master. However, due to keyboard layout, the image keyboard is only available if the device doesn't have to show the main keyboard switcher. This means that only notch devices will show it.


Envoy proxy doesn't work correctly in Consul transparent proxy mode.

Hi there!
I'm going to describe my problem in detail so a lot of text, logs and configs are expected)
Nomad version
Nomad v1.8.0
BuildDate 2024-05-28T17:38:17Z
Revision 28b82e4b2259fae5a62e2ed47395334bea5a24c4

Consul version
Consul v1.19.0
Revision bf0166d8
Build Date 2024-06-12T13:59:10Z

Operating system and Environment details
5.10.0-23-amd64 #1 SMP Debian 5.10.179-2 (2023-07-14) x86_64 GNU/Linux

Nomad client config
name = "host"
region = "global"
datacenter = "dc1"

enable_debug = false
disable_update_check = false

bind_addr = "<IP_ADDRESS>"
advertise {
    http = "<ip>:4646"
    rpc = "<ip>:4647"
    serf = "<ip>:4648"
}
ports {
    http = 4646
    rpc = 4647
    serf = 4648
}

consul {
    address = "localhost:8500"
    ssl = false
    ca_file = ""
    grpc_ca_file = ""
    cert_file = ""
    key_file = ""
    token = "<secret_token>"
    server_service_name = "nomad-servers"
    client_service_name = "nomad-clients"
    tags = []
    auto_advertise = true
    server_auto_join = true
    client_auto_join = true
}

data_dir = "/var/nomad"

log_level = "INFO"
enable_syslog = true

leave_on_terminate = true
leave_on_interrupt = false

tls {
    http = true
    rpc = true
    ca_file = "/etc/nomad/ssl/nomad-ca.pem"
    cert_file = "/etc/nomad/ssl/client.pem"
    key_file = "/etc/nomad/ssl/client-key.pem"
    rpc_upgrade_mode = false
    verify_server_hostname = "true"
    verify_https_client = "true"
}

acl {
    enabled = true
    token_ttl = "30s"
    policy_ttl = "30s"
    replication_token = ""
}

vault {
    enabled = true
    address = "https://<vault_address>"
    allow_unauthenticated = true
    create_from_role = "nomad-cluster"
    task_token_ttl = ""
    ca_file = ""
    ca_path = ""
    cert_file = ""
    key_file = ""
    tls_server_name = ""
    tls_skip_verify = false
    namespace = ""
}

telemetry {
    disable_hostname = "true"
    collection_interval = "15s"
    use_node_name = "false"
    publish_allocation_metrics = "true"
    publish_node_metrics = "true"
    filter_default = "true"
    prefix_filter = []
    disable_dispatched_job_summary_metrics = "false"
    statsite_address = ""
    statsd_address = ""
    datadog_address = ""
    datadog_tags = []
    prometheus_metrics = "true"
    circonus_api_token = ""
    circonus_api_app = "nomad"
    circonus_api_url = "https://api.circonus.com/v2"
    circonus_submission_interval = "10s"
    circonus_submission_url = ""
    circonus_check_id = ""
    circonus_check_force_metric_activation = "false"
    circonus_check_instance_id = ""
    circonus_check_search_tag = ""
    circonus_check_display_name = ""
    circonus_check_tags = ""
    circonus_broker_id = ""
    circonus_broker_select_tag = ""
}

autopilot {
    cleanup_dead_servers      = true
    last_contact_threshold    = "1s"
    max_trailing_logs         = 250
    server_stabilization_time = "10s"
}

Consul client config
{
    "acl": {
        "default_policy": "deny",
        "down_policy": "extend-cache",
        "enable_token_persistence": true,
        "enabled": true,
        "token_ttl": "30s",
        "tokens": {
            "agent": "<agent_token>",
            "agent_recovery": "<agent_recovery_token>"
        }
    },
    "addresses": {
        "dns": "<IP_ADDRESS>",
        "grpc": "<IP_ADDRESS>",
        "grpc_tls": "<IP_ADDRESS>",
        "http": "<IP_ADDRESS>",
        "https": "<IP_ADDRESS>"
    },
    "advertise_addr": "<ip>",
    "advertise_addr_wan": "<ip>",
    "auto_encrypt": {
        "tls": true
    },
    "bind_addr": "<ip>",
    "client_addr": "<IP_ADDRESS>",
    "connect": {
        "enabled": true
    },
    "data_dir": "/opt/consul",
    "datacenter": "dc1",
    "disable_update_check": false,
    "domain": "consul",
    "enable_local_script_checks": false,
    "enable_script_checks": false,
    "enable_syslog": true,
    "encrypt": "<secret>",
    "encrypt_verify_incoming": true,
    "encrypt_verify_outgoing": true,
    "limits": {
        "http_max_conns_per_client": 400,
        "rpc_max_conns_per_client": 200
    },
    "log_level": "INFO",
    "node_name": "host",
    "performance": {
        "leave_drain_time": "10s",
        "raft_multiplier": 1,
        "rpc_hold_timeout": "30s"
    },
    "ports": {
        "dns": 8600,
        "grpc": 8502,
        "grpc_tls": 8503,
        "http": 8500,
        "https": -1,
        "serf_lan": 8301,
        "serf_wan": 8302,
        "server": 8300
    },
    "primary_datacenter": "dc1",
    "raft_protocol": 3,
    "recursors": [
        "<IP_ADDRESS>",
        "<IP_ADDRESS>"
    ],
    "retry_interval": "30s",
    "retry_join": [
        "<server1_ip>",
        "<server2_ip>",
        "<server3_ip>"
    ],
    "retry_max": 0,
    "server": false,
    "syslog_facility": "local0",
    "tls": {
        "defaults": {
            "ca_file": "/etc/consul/ssl/consul-agent-ca.pem",
            "tls_min_version": "TLSv1_2",
            "verify_incoming": false,
            "verify_outgoing": true
        },
        "https": {
            "verify_incoming": false
        },
        "internal_rpc": {
            "verify_incoming": true,
            "verify_server_hostname": false
        }
    },
    "translate_wan_addrs": false,
    "ui_config": {
        "enabled": false
    }
}

Issue
There is a running nomad job (envoy proxy) in a cluster that proxies requests to my-service.  I'm using consul connect upstreams in my nomad jobs and it works perfectly.

Example of my nomad job (upstreams):
job "test-proxy-job" {
  datacenters = ["dc1"]
  namespace = "test"
  type = "service"

  group "test-proxy-group" {
    count = 1

    vault {
      policies = ["nomad-services"]
    }

    update {
      max_parallel = 1
      canary       = 1
      auto_revert  = true
      auto_promote = true
      min_healthy_time = "10s"
      healthy_deadline = "5m"
      progress_deadline = "15m"
    }

    network {
      mode = "bridge"
      port "http" {
        static = 28123
        to     = 28162
      }
    }

    service {
      name = "test-proxy"
      port = "28162"
      tags = ["proxy", "test"]

      connect {
        sidecar_task {
          resources {
            cpu = 500
            memory = 300
          }
          config {
            args = [
                "-c",
                "${NOMAD_SECRETS_DIR}/envoy_bootstrap.json",
                "-l",
                "debug",
                "--concurrency",
                "${meta.connect.proxy_concurrency}",
                "--disable-hot-restart"
            ]
          }
        }

        sidecar_service {
          proxy {
            upstreams {
              destination_name = "my-service"
              local_bind_port  = 10007
            }
          }
        }
      }
    }

    task "test-proxy-task" {
      driver = "docker"
      template {
        data = <<EOH
apt-get update; apt-get install curl -y
curl localhost:28162
echo "OK"
EOH
        destination = "${NOMAD_TASK_DIR}/test.sh"
      }
      resources {
        cpu = 500
        memory = 500
      }

      config {
        image = "envoyproxy/envoy:v1.26.7"
        args=[
            "-c","${NOMAD_TASK_DIR}/envoy.yaml",
            "--log-level","debug"
          ]
      }
      template {
        data = <<EOH
admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
    - name: listener_0
      address:
        socket_address:
          address: <IP_ADDRESS>
          port_value: 28162
      filter_chains:
        - filters:
          - name: envoy.filters.network.http_connection_manager
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
              codec_type: auto
              stat_prefix: ingress_http
              route_config:
                name: local_route
                virtual_hosts:
                  - name: local_service
                    domains: "*"
                    routes:
                      - match:
                          prefix: "/"
                        route:
                          timeout: "0s"
                          cluster: my-service
              http_filters:
                - name: envoy.filters.http.router
                  typed_config:
                    "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router

  clusters:
    - name: my-service
      type: STRICT_DNS
      lb_policy: ROUND_ROBIN
      load_assignment:
        cluster_name: my-service
        endpoints:
        - lb_endpoints:
          - endpoint:
              address:
                socket_address:
                  address: {{ env "NOMAD_UPSTREAM_IP_my-service" }}
                  port_value: {{ env "NOMAD_UPSTREAM_PORT_my-service" }}
EOH
        destination = "${NOMAD_TASK_DIR}/envoy.yaml"
        change_mode = "signal"
        change_signal = "SIGHUP"
      }
    }
  }
}

If I make a request there will be an expected response from the my-service:
curl -v -H 'x-test-envoy: true' http://<external_ip>:28123
*   Trying <external_ip>:28123...
* Connected to <external_ip> (<external_ip>) port 28123
> GET / HTTP/1.1
> Host: <external_ip>:28123
> User-Agent: curl/8.6.0
> Accept: */*
> x-test-envoy: true
>
< HTTP/1.1 200 OK
< server: envoy
< date: Thu, 04 Jul 2024 19:01:21 GMT
< content-type: application/json; charset=utf8
< content-length: 57
< x-envoy-upstream-service-time: 6
<
* Connection #0 to host <external_ip> left intact
{"jsonrpc": "2.0", "id": "test", "result": "ok"}%

When I'm trying to enable transparent proxy in the config it doesn't work

Example of my nomad job (transparent proxy):
job "test-proxy-job" {
  datacenters = ["dc1"]
  namespace = "test"
  type = "service"

  group "test-proxy-group" {
    count = 1

    vault {
      policies = ["nomad-services"]
    }

    update {
      max_parallel = 1
      canary       = 1
      auto_revert  = true
      auto_promote = true
      min_healthy_time = "10s"
      healthy_deadline = "5m"
      progress_deadline = "15m"
    }

    network {
      mode = "bridge"
      port "http" {
        static = 28123
        to     = 28162
      }
    }

    service {
      name = "test-proxy"
      port = "28162"
      tags = ["proxy", "test"]

      connect {
        sidecar_task {
          resources {
            cpu = 500
            memory = 300
          }
          config {
                    args = [
                      "-c",
                      "${NOMAD_SECRETS_DIR}/envoy_bootstrap.json",
                      "-l",
                      "debug",
                      "--concurrency",
                      "${meta.connect.proxy_concurrency}",
                      "--disable-hot-restart"
                    ]
        }
        }
        sidecar_service {
          proxy {
            transparent_proxy {}
          }
        }
      }
    }

    task "test-proxy-task" {
      driver = "docker"
      template {
        data = <<EOH
apt-get update; apt-get install curl -y
curl localhost:28162
echo "OK"
EOH
        destination = "${NOMAD_TASK_DIR}/test.sh"
      }
      resources {
        cpu = 500
        memory = 500
      }

      config {
        image = "envoyproxy/envoy:v1.26.7"
        args=[
            "-c","${NOMAD_TASK_DIR}/envoy.yaml",
            "--log-level","debug"
          ]
      }
      template {
        data = <<EOH
admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
    - name: listener_0
      address:
        socket_address:
          address: <IP_ADDRESS>
          port_value: 28162
      filter_chains:
        - filters:
          - name: envoy.filters.network.http_connection_manager
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
              codec_type: auto
              stat_prefix: ingress_http
              route_config:
                name: local_route
                virtual_hosts:
                  - name: local_service
                    domains: "*"
                    routes:
                      - match:
                          prefix: "/"
                        route:
                          timeout: "0s"
                          cluster: my-service

              http_filters:
                - name: envoy.filters.http.router
                  typed_config:
                    "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router

  clusters:
    - name: my-service
      type: STRICT_DNS
      lb_policy: ROUND_ROBIN
      load_assignment:
        cluster_name: my-service
        endpoints:
        - lb_endpoints:
          - endpoint:
              address:
                socket_address:
                  address: my-service.virtual.consul
                  port_value: 80
EOH
        destination = "${NOMAD_TASK_DIR}/envoy.yaml"
        change_mode = "signal"
        change_signal = "SIGHUP"
      }

      logs {
        max_files     = 10
        max_file_size = 15
      }
    }
  }
}

Requests don't go through, I'm getting 503 error. No response from the my-service:
curl -v -H 'x-test-envoy: true' http://<external_ip>:28123
*   Trying <external_ip>:28123...
* Connected to <external_ip> (<external_ip>) port 28123
> GET / HTTP/1.1
> Host: <external_ip>:28123
> User-Agent: curl/8.6.0
> Accept: */*
> x-test-envoy: true
>
< HTTP/1.1 503 Service Unavailable
< content-length: 91
< content-type: text/plain
< date: Thu, 04 Jul 2024 20:55:09 GMT
< server: envoy
<
* Connection #0 to host <external_ip> left intact
upstream connect error or disconnect/reset before headers. reset reason: connection failure%

Some debug logs from Envoy:

[2024-07-04 20:55:04.149][21][debug][conn_handler] [source/extensions/listener_managers/listener_manager/active_tcp_listener.cc:155] [C205] new connection from <my_ip>:44066
[2024-07-04 20:55:04.149][21][debug][http] [source/common/http/conn_manager_impl.cc:375] [C205] new stream
[2024-07-04 20:55:04.149][21][debug][http] [source/common/http/conn_manager_impl.cc:1118] [C205][S13244765374556234856] request headers complete (end_stream=true):
':authority', '<ip>:28123'
':path', '/'
':method', 'GET'
'user-agent', 'curl/8.6.0'
'accept', '*/*'
'x-test-envoy', 'true'

[2024-07-04 20:55:04.149][21][debug][http] [source/common/http/conn_manager_impl.cc:1101] [C205][S13244765374556234856] request end stream
[2024-07-04 20:55:04.149][21][debug][connection] [./source/common/network/connection_impl.h:98] [C205] current connecting state: false
[2024-07-04 20:55:04.149][21][debug][router] [source/common/router/router.cc:478] [C205][S13244765374556234856] cluster 'my-service' match for URL '/'
[2024-07-04 20:55:04.149][21][debug][router] [source/common/router/router.cc:686] [C205][S13244765374556234856] router decoding headers:
':authority', '<ip>:28123'
':path', '/'
':method', 'GET'
':scheme', 'http'
'user-agent', 'curl/8.6.0'
'accept', '*/*'
'x-test-envoy', 'true'
'x-forwarded-proto', 'http'
'x-request-id', '<request-id>'

[2024-07-04 20:55:04.149][21][debug][pool] [source/common/http/conn_pool_base.cc:78] queueing stream due to no available connections (ready=0 busy=0 connecting=0)
[2024-07-04 20:55:04.149][21][debug][pool] [source/common/conn_pool/conn_pool_base.cc:291] trying to create new connection
[2024-07-04 20:55:04.149][21][debug][pool] [source/common/conn_pool/conn_pool_base.cc:145] creating a new connection (connecting=0)
[2024-07-04 20:55:04.150][21][debug][connection] [./source/common/network/connection_impl.h:98] [C206] current connecting state: true
[2024-07-04 20:55:04.150][21][debug][client] [source/common/http/codec_client.cc:57] [C206] connecting
[2024-07-04 20:55:04.150][21][debug][connection] [source/common/network/connection_impl.cc:941] [C206] connecting to <IP_ADDRESS>:80
[2024-07-04 20:55:04.150][21][debug][connection] [source/common/network/connection_impl.cc:960] [C206] connection in progress
[2024-07-04 20:55:06.029][1][debug][main] [source/server/server.cc:265] flushing stats
[2024-07-04 20:55:07.079][1][debug][dns] [source/extensions/network/dns_resolver/cares/dns_impl.cc:354] dns resolution for my-service.virtual.consul started
[2024-07-04 20:55:07.081][1][debug][dns] [source/extensions/network/dns_resolver/cares/dns_impl.cc:275] dns resolution for my-service.virtual.consul completed with status 0
[2024-07-04 20:55:07.081][1][debug][upstream] [source/common/upstream/upstream_impl.cc:457] transport socket match, socket default selected for host with address <IP_ADDRESS>:80
[2024-07-04 20:55:07.081][1][debug][upstream] [source/extensions/clusters/strict_dns/strict_dns_cluster.cc:177] DNS refresh rate reset for my-service.virtual.consul, refresh rate 5000 ms
[2024-07-04 20:55:08.321][15][debug][conn_handler] [source/extensions/listener_managers/listener_manager/active_tcp_listener.cc:155] [C207] new connection from <IP_ADDRESS>:54136
[2024-07-04 20:55:08.322][15][debug][connection] [source/common/network/connection_impl.cc:656] [C207] remote close
[2024-07-04 20:55:08.322][15][debug][connection] [source/common/network/connection_impl.cc:250] [C207] closing socket: 0
[2024-07-04 20:55:08.322][15][debug][conn_handler] [source/extensions/listener_managers/listener_manager/active_stream_listener_base.cc:121] [C207] adding to cleanup list
[2024-07-04 20:55:09.148][21][debug][pool] [source/common/conn_pool/conn_pool_base.cc:793] [C206] connect timeout
[2024-07-04 20:55:09.148][21][debug][connection] [source/common/network/connection_impl.cc:139] [C206] closing data_to_write=0 type=1
[2024-07-04 20:55:09.148][21][debug][connection] [source/common/network/connection_impl.cc:250] [C206] closing socket: 1
[2024-07-04 20:55:09.148][21][debug][client] [source/common/http/codec_client.cc:107] [C206] disconnect. resetting 0 pending requests
[2024-07-04 20:55:09.148][21][debug][pool] [source/common/conn_pool/conn_pool_base.cc:484] [C206] client disconnected, failure reason:
[2024-07-04 20:55:09.148][21][debug][router] [source/common/router/router.cc:1279] [C205][S13244765374556234856] upstream reset: reset reason: connection failure, transport failure reason:
[2024-07-04 20:55:09.148][21][debug][http] [source/common/http/filter_manager.cc:996] [C205][S13244765374556234856] Sending local reply with details upstream_reset_before_response_started{connection_failure}
[2024-07-04 20:55:09.148][21][debug][http] [source/common/http/conn_manager_impl.cc:1773] [C205][S13244765374556234856] encoding headers via codec (end_stream=false):
':status', '503'
'content-length', '91'
'content-type', 'text/plain'
'date', 'Thu, 04 Jul 2024 20:55:09 GMT'
'server', 'envoy'

[2024-07-04 20:55:09.148][21][debug][http] [source/common/http/conn_manager_impl.cc:1865] [C205][S13244765374556234856] Codec completed encoding stream.
[2024-07-04 20:55:09.148][21][debug][pool] [source/common/conn_pool/conn_pool_base.cc:454] invoking idle callbacks - is_draining_for_deletion_=false
[2024-07-04 20:55:10.201][21][debug][connection] [source/common/network/connection_impl.cc:656] [C205] remote close
[2024-07-04 20:55:10.201][21][debug][connection] [source/common/network/connection_impl.cc:250] [C205] closing socket: 0
[2024-07-04 20:55:10.201][21][debug][conn_handler] [source/extensions/listener_managers/listener_manager/active_stream_listener_base.cc:121] [C205] adding to cleanup list
[2024-07-04 20:55:11.031][1][debug][main] [source/server/server.cc:265] flushing stats
[2024-07-04 20:55:12.081][1][debug][dns] [source/extensions/network/dns_resolver/cares/dns_impl.cc:354] dns resolution for my-service.virtual.consul started
[2024-07-04 20:55:12.083][1][debug][dns] [source/extensions/network/dns_resolver/cares/dns_impl.cc:275] dns resolution for my-service.virtual.consul completed with status 0
[2024-07-04 20:55:12.083][1][debug][upstream] [source/common/upstream/upstream_impl.cc:457] transport socket match, socket default selected for host with address <IP_ADDRESS>:80
[2024-07-04 20:55:12.083][1][debug][upstream] [source/extensions/clusters/strict_dns/strict_dns_cluster.cc:177] DNS refresh rate reset for my-service.virtual.consul, refresh rate 5000 ms

If you go inside the container Envoy proxy and try to sent a request locally (Envoy listener) you see same issue:
root@d87055ce8426:/# curl -v localhost:28162
*   Trying <IP_ADDRESS>:28162...
* TCP_NODELAY set
* Connected to localhost (<IP_ADDRESS>) port 28162 (#0)
> GET / HTTP/1.1
> Host: localhost:28162
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 503 Service Unavailable
< content-length: 91
< content-type: text/plain
< date: Thu, 04 Jul 2024 22:23:30 GMT
< server: envoy
<
* Connection #0 to host localhost left intact
upstream connect error or disconnect/reset before headers. reset reason: connection failure

At the same time a request to my-service by consul name (and virtual IP) pass:
root@d87055ce8426:/# curl -v my-service.virtual.consul
*   Trying <IP_ADDRESS>:80...
* TCP_NODELAY set
* Connected to my-service.virtual.consul (<IP_ADDRESS>) port 80 (#0)
> GET / HTTP/1.1
> Host: my-service.virtual.consul
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: fasthttp
< Date: Thu, 04 Jul 2024 22:24:07 GMT
< Content-Type: application/json; charset=utf8
< Content-Length: 57
<
* Connection #0 to host my-service.virtual.consul left intact
{"jsonrpc": "2.0", "id": "test", "result": "ok"}

I also have three other services in the cluster running with transparent proxy and there is connectivity between them.
So I guess the problem is with Envoy proxy (or my configuration of Envoy proxy)
I tried different versions of Envoy, including the latest.
Any help would be appreciated.

I think you should file this issue with the Consul project rather than Envoy, we're not in a position to debug issue that are primarily about Consul configuration and contextual knowledge.


Reference array index

Probably I miss the correct JSONPath syntax. I have a target giving output like:
"meters": [     {       "power": 0,       "is_valid": true,       "total": 999     },     {       "power": 0,       "is_valid": true,       "total": 808     }   ]
How do I refer in a label to the array index, if no unique ID is present as in your example?

Hello @timm-e
did you manage to solve this problem ? (Sorry I know this issue is old but I am facing the same struggle)


I want this product

When, where, ...

WIP

🧐

After so many years, I decided to get into real sports 😘.


Missing App service / SQL

Hi,
I am missing quite some resourcetypes in the Naming rules and restrictions. Especially for App service and SQL.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0e540bb6-9f72-0529-28ea-ae82bc869835
Version Independent ID: 24e71392-985b-59fb-1552-46395b169612
Content: Naming conventions for Azure resources - Best practices for cloud applications
Content Source: docs/best-practices/naming-conventions.md
Service: architecture-center
GitHub Login: @telmosampaio
Microsoft Alias: pnp

@owingruters Thank you for providing your feedback. We will review this and provide an update as appropriate.

We've taken this item to our internal backlog for further research and will update as necessary!


Command not found for Local host tests in Intellij

The tests that use LOCAL host definitions cannot run commands found on $PATH when running tests in Intellij. The same tests pass when run with mvn from the command line.

The root cause was intellij running in a container that could not access that part of the local file system


Make backup interval configurable

Adds ETCD_BACKUP_INTERVAL environment variable in order to configure the backup interval. Takes seconds.

I'm happy to merge this as is, but we might be happier with time.ParseDuration so people don't have to keep track of the units.

You're looking at baby's first few lines of Go. :laughing:
Thanks for the heads-up, ParseDuration makes a lot more sense indeed. Is this better?

👍
I'm honored and especially, thanks for your work on this. :)


QUESTION: How to print out the user name as logo property?

I want to print out user's name instead of "ADMINLTE", i bring the name with a model.

@djcorea With Laravel you can change configuration at runtime, see here for an example. So, you can try changing the related configuration at the boot() method of the AppServiceProvider class, for example:
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        // Example for change the LOGO text configuration.
        // getUsername() is a private class method that will get the username.

        config(['adminlte.logo' => $this->getUsername());
    }
}


feat!: Add RETURNING clause

Most RDBMS support the ability of returning rows after an UPDATE/DELETE/INSERT statement.
This is quite useful to move computation inside the database and reduce the number of queries.
It also completely subsumes the ability to return created IDs from after INSERT statements.
So that is why I changed the UpdateResult datatype to hold any value and implemented the insertWithKeys in terms of the new executeWithReturning.
Also created an integration spec as I did not know if you wanted to launch containers inside GH actions, current output is:
[zio-default-blocking-1] INFO org.testcontainers.utility.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
[zio-default-blocking-1] INFO org.testcontainers.dockerclient.DockerClientProviderStrategy - Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
[zio-default-blocking-1] INFO org.testcontainers.dockerclient.DockerClientProviderStrategy - Found Docker environment with Docker accessed via Unix socket (/Users/regiskuckaertz/.docker/run/docker.sock)
[zio-default-blocking-1] INFO org.testcontainers.DockerClientFactory - Docker host IP address is localhost
[zio-default-blocking-1] INFO org.testcontainers.DockerClientFactory - Connected to docker:
  Server Version: 24.0.5
  API Version: 1.43
  Operating System: Docker Desktop
  Total Memory: 7959 MB
[zio-default-blocking-1] INFO tc.testcontainers/ryuk:0.5.1 - Creating container for image: testcontainers/ryuk:0.5.1
[zio-default-blocking-1] INFO org.testcontainers.utility.RegistryAuthLocator - Credential helper/store (docker-credential-desktop) does not have credentials for https://index.docker.io/v1/
[zio-default-blocking-1] INFO tc.testcontainers/ryuk:0.5.1 - Container testcontainers/ryuk:0.5.1 is starting: f50814a76c487cd3f3a47f9c1a84f470c3f30a09705571a8bf80a2072bd53e59
[zio-default-blocking-1] INFO tc.testcontainers/ryuk:0.5.1 - Container testcontainers/ryuk:0.5.1 started in PT10.332311S
[zio-default-blocking-1] INFO org.testcontainers.utility.RyukResourceReaper - Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
[zio-default-blocking-1] INFO org.testcontainers.DockerClientFactory - Checking the system...
[zio-default-blocking-1] INFO org.testcontainers.DockerClientFactory - ✔ Docker server version should be at least 1.6.0
[zio-default-blocking-1] INFO tc.postgres:9.6.12 - Creating container for image: postgres:9.6.12
[zio-default-blocking-1] INFO tc.postgres:9.6.12 - Container postgres:9.6.12 is starting: 19b6e4ae434f20f8853f9a20542b28b9be5b3b508052d777dd62fb4c1c803eb4
[zio-default-blocking-1] INFO tc.postgres:9.6.12 - Container postgres:9.6.12 started in PT4.605536S
[zio-default-blocking-1] INFO tc.postgres:9.6.12 - Container is started (JDBC URL: jdbc:postgresql://localhost:50131/test?loggerLevel=OFF)
+ Returning
  + Inserts returning rows
  + Updates returning rows
  + Deletes returning rows
timestamp=2023-09-09T12:04:35.174604Z level=ERROR thread=#zio-fiber-0 message="" cause="Exception in thread "zio-fiber-8" java.io.FileNotFoundException: target/test-reports-zio/output.json (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at scala.io.Source$.fromFile(Source.scala:94)
        at scala.io.Source$.fromFile(Source.scala:79)
        at scala.io.Source$.fromFile(Source.scala:57)
        at zio.test.results.ResultFileOpsJson$Live.$anonfun$removeLastComma$1(ResultFileOpsJson.scala:50)
        at zio.test.results.ResultFileOpsJson.Live.removeLastComma(ResultFileOpsJson.scala:50)
        at zio.test.results.ResultFileOpsJson.Live.closeJson(ResultFileOpsJson.scala:38)
        at zio.test.results.ResultFileOpsJson.Live.apply(ResultFileOpsJson.scala:82)"

(Is there a way to disable the production of that JSON report?)

Hello?

@adamgfraser can you review please?

@guizmaii Thank you 🙏


worker: Reduce log spam for per chunk log lines which occur on the ha…

…ppy path.
The spam got worse when we switched from 10 to 1000 chunks.
It's logged to V2 to the log file only and will e.g. no longer show up in the web interface status page or on the stream returned by the RPC.

LGTM


Slack connector

Slack connector using Slack api.

Thank you so much for all the comments! I'm working on the changes and will resolve comments as I push changes.

I believe I've updated the appropriate documentation. Please let me know if you think anything should be more thoroughly documented.

@cecilialau6776 : Thanks for the changes. Let's wait until  @pja237 had a change to look over it and then we will merge it.


Unable to send message, need help

Unable to send message
I am trying to send message through this function but unable to send.
async function sendMessage(message: string) {
  try {
    if (message.length > 0) {
      let encoder = new TextEncoder();
      let data = encoder.encode(JSON.stringify({ message }));
      await room.localParticipant.publishData(data, DataPacket_Kind.RELIABLE);
      setMessage('');
    }
  } catch (e) {
    console.log(e);
  }
}

this is the log of the message on the web client for the message that are successfully visible, sent from another instance of web client
[
 0: {
  from: RemoteParticipant {/*user details*/},
  message: "Hello",
  timestamp:<PHONE_NUMBER>917
  }
]

yes, the admin is sending the message

actually every participant in our meeting is given right to publish data

I am getting the data on the peer indeed but the catch is that the format which the web client requires to parse the decoded message does not match to that of the one sent by the app.
this is the code of our web client chat
export function useChat() {
  const room = useRoomContext();
  const [setup, setSetup] = React.useState<ReturnType<typeof setupChat>>();
  const isSending = useObservableState(setup?.isSendingObservable, false);
  const chatMessages = useObservableState(setup?.messageObservable, []);

  React.useEffect(() => {
    const setupChatReturn = setupChat(room);
    setSetup(setupChatReturn);
    return setupChatReturn.destroy;
  }, [room]);

  return { send: setup?.send, chatMessages, isSending };
}

/**
 * The Chat component adds a basis chat functionality to the LiveKit room. The messages are distributed to all participants
 * in the room. Only users who are in the room at the time of dispatch will receive the message.
 *
 * @example
 * ```tsx
 * <LiveKitRoom>
 *   <Chat />
 * </LiveKitRoom>
 * ```
 * @public
 */
export function Chat({ messageFormatter, showChat, ...props }: ChatProps) {
  const inputRef = React.useRef<HTMLInputElement>(null);
  const ulRef = React.useRef<HTMLUListElement>(null);
  const { send, chatMessages, isSending } = useChat();

  async function handleSubmit(event: React.FormEvent) {
    event.preventDefault();
    if (inputRef.current && inputRef.current.value.trim() !== "") {
      if (send) {
        await send(inputRef.current.value);
        inputRef.current.value = "";
        inputRef.current.focus();
      }
    }
  }

  React.useEffect(() => {
    if (ulRef) {
      ulRef.current?.scrollTo({ top: ulRef.current.scrollHeight });
    }
  }, [ulRef, chatMessages]);

  return (
    <div
      style={{ display: `${(!showChat && "none") || "flex"}` }}
      // {...props}
      className="lk-chat max-w-[100%] h-[100%] md:max-w-[380px]"
    >

          {/*
 */}
          {props.children
            ? chatMessages.map((msg, idx) =>
              cloneSingleChild(props.children, {
                entry: msg,
                key: idx,
                messageFormatter,
              })
            )
            : chatMessages.map((msg, idx, allMsg) => {
              const hideName = idx >= 1 && allMsg[idx - 1].from === msg.from;
              // If the time delta between two messages is bigger than 60s show timestamp.
              const hideTimestamp =
                idx >= 1 &&
                msg.timestamp - allMsg[idx - 1].timestamp < 60_000;

              return (
                <ChatEntry
                  index={idx}
                  key={idx}
                  hideName={hideName}
                  hideTimestamp={hideName === false ? false : hideTimestamp} // If we show the name always show the timestamp as well.
                  entry={msg}
                  messageFormatter={messageFormatter}
                />
              );
            })}

        <form className="lk-chat-form" onSubmit={handleSubmit}>
          <input
            className="lk-form-control lk-chat-form-input"
            disabled={isSending}
            ref={inputRef}
            type="text"
            placeholder="Enter a message..."
          />
          <button
            type="submit"
            className="lk-button lk-chat-form-button"
            disabled={isSending}
          >
            Send
          </button>
        </form>

  );
}

Ah, you mean it doesn't display in the Chat component ?
That's expected. publishData is a lower level method than the send method of the chat component in components-react.
You'll just have to make sure that the message you send via publishData has the same format as the ChatMessage in the components-react package and send it with the same topic. Have a look at the the components-js useChat hook source code to see what's required.
Feel free to ask questions in our community slack.
Will close this, as it's not a bug.


test: more delay after creating transaction

This change is

Builds ready [4b22693]builds: chrome, firefox, opera
bundle viz: background, ui, inpage, contentscript, ui-libs, bg-libs, phishing-detect
dep viz: background
all artifacts


stdenv: simplify nix_build_core guess

Motivation for this change

rely on a bash builtin rather than the external exp
simplify the logic

This can be tested with the following script
NIX_BUILD_CORES=4
NIX_BUILD_CORES="${NIX_BUILD_CORES:-1}"
if ((NIX_BUILD_CORES <= 0 )); then
  GUESS=$(nproc 2>/dev/null || true)
  NUMERIC_GUESS="${GUESS//[^0-9]/}"
  NIX_BUILD_CORES="${NUMERIC_GUESS:-1}"
fi
echo $NIX_BUILD_CORES

replace the first assignement with potential initial values.
4, 1, 0, -1, abcd
all lead to the correct NIX_BUILD_CORES value.
I know this doesn't matter in the grand scheme of things, just trying in case people agree.
@7c6f434c you've been kind enough to review some bash before.
@andersk you've been very knowledgeable about shell
No worries if you don't have time.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

I've used a lowercase for guess, and applied the suggested change. Let me know if anything else.
This is much better, thanks a lot!

I've squashed and rebased, leaving this open one more day in case anyone wants to have another look.

There is a darwin failure on the CI but it doesn't appear to be related to this. I'm going to check that failure first.


Client ID validation regex config missing

Describe the issue:
The config related to allow setting a custom regex for client ID validation in oAuth app generation is missing identity.xml.j2

Fixed with https://github.com/wso2-support/product-is/pull/818


Support Laravel redirects in Components

1⃣ Is this something that is wanted/needed? Did you create a feature-request issue first?
Needed :upside_down_face:
No, just wanted to put together a proof of concept
2⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
No
3⃣ Does it include tests if possible? (Not a deal-breaker, just a nice-to-have)
Yes
4⃣ Please include a thorough description of the feature/fix and reasons why it's useful.
This will allow Component actions to use the core Laravel Redirector inside of a Component action, while preserving the current built-in redirect behavior in Component
use Livewire\Component;
use Illuminate\Support\Facades\Redirect;

class Banana extends Component
{
    public $peeled = false;

    public function peel()
    {
        $this->peel = true;

        return redirect()->route('monkeys.index');
        // or
        return redirect('/monkeys');
        // or
        return Redirect::route('monkeys.index');
        // or
        return Redirect::to('/monkeys');
        // or
        return $this->redirect('/monkeys');
    }
}

A little unsure of the safety of this implementation, especially if additional third party packages extend Redirector. I think it should be safe in that case.

Also feels a little wonky directly extending Redirector, this was done because core Redirect@route and redirect() offload behind the scenes to Redirector@to so we get both to() and route() for the price of one overridden method.

Just putting this up for feedback. :tada:

5⃣ Thanks for contributing! 🙌

This is extremely interesting. I think I like it actually.
One modification I would make:
Instead of scouring the backtrace to detect if it's a livewire request, you can use the LivewireServiceProvider::isLivewireRequest method to detect if it's a Livewire request. THEN maybe get the component out of the stack trace or with some other method so you aren't running that logic on every request in the app.

@calebporzio good call, definitely felt a little grim tracing every request of an application.
Does checking for isLivewireRequest make the ternary in the extend() unnecessary now? Seems like we would be guaranteed to have a Component in the trace

Nah, I think I still dig it

Really solid PR, great work here. Thanks

@jrseliga - for what it's worth, I changed the strategy of this PR after merging it if you care to look.
I put the redirect logic inside "ConnectionHandler" so we don't have to do any conditional for "isLivewireRequest" AND we don't have to get the component out of the stack trace - it's already available.

already added for code to contributors 🥇


NSwager Documentation

Just a quick question:
Can the comments of a method be also used in the final json documentation? I am exporting using webapi2swagger via command line, but the commentary section "///" that are associated to one of my methods are not being included in the final json.

You need to enable xml doc output in your project settings...