Meaning of Nup parameter for spin_basis_1d initializer unclear when S >= 1

Hello,
I've been playing around with S = 1 AKLT model with your package. I tried ED for all symmetry sectors worked great, and I was able to find the four degenerate ground states at once. However, once I tried using symmetries, I encountered some puzzling situations I could not resolve.

Nup is ambiguous
According to the documentation, it looked like the way to specify a symmetry sector based on Sz magnetization is something like

L = 12
basis = spin_basis_1d(L, pauli = False, S = "1", Nup = 6)

However, when S = 1 or larger, specifying the number of up spins does not specify magnetization of the system, and I could not figure out what the convention is from the documentation.

Meaning of Nup seems to be internally inconsistent.
Next, I tried using pzblock = 1 to speed up my calculations as follows:

L = 12
basis = spin_basis_1d(L, pauli = False, S = "1", Nup = 6, pzblock = 1)

However, this resulted in the following error
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-210-98143b7a24a1> in <module>
----> 1 basis = spin_basis_1d(L, pauli = False, S = "1", Nup = 6, pzblock=1)

~/miniconda3/envs/py3/lib/python3.7/site-packages/quspin/basis/basis_1d/spin.py in __init__(self, L, Nup, m, S, pauli, **blocks)
    193                                         raise ValueError("spin inversion/particle-hole symmetry with particle/magnetization conservation must be used with chains with 0 magnetization sector or at half filling")
    194                                 if Nup != L*(self.sps-1)//2:
--> 195                                         raise ValueError("spin inversion/particle-hole symmetry only reduces the 0 magnetization or half filled particle sector")
    196
    197                         if (Nup_list is not None) and ((type(zAblock) is int) or (type(zBblock) is int)):

ValueError: spin inversion/particle-hole symmetry only reduces the 0 magnetization or half filled particle sector

After playing around with it, I realized basis.sps == 3 for  S = "1", so I need Nup == L (!!) for this system. Accordingly, I tried the following:
L = 12
basis = spin_basis_1d(L, pauli = False, S = "1", Nup = 12, pzblock = 1)

This indeed ran without any error. However, this does not make physical sense to me. If I have `Nup == L``, my magnetization is clearly not 0, and spin inversion takes me out of this magnetization sector.
I would love to be able to use both Sz conservation and spin inversion symmetry. Do you guys mind looking into it?

Indeed, using Nup for higher spin is not optimal. There is however, the basis optional argument m which sets the magnetization density, e.g.
spin_basis_1d(L,S="1",m=0,kblock=0,pblock=1,zblock=1) #

Does this help?

okay, that line worked. Thanks! I will report back if I can observe expected physics.
If I could offer a humble, novice user's opinion, I would deprecate or introduce a warning for Nup for large spins. The fact Nup can be larger than the system size (e.g. basis = spin_basis_1d(12, pauli = False, S = "1", Nup = 14) works ) is a pretty confusing behavior.

Using the argument m worked! I was able to look at energy vs. entanglement entropy collapse in AKLT. Here is a plot for your entertainment. I'm very glad it works beautifully for spin-1 systems.

Thanks for your help!

re-opening this, so we don't forget to consider deprecating N_up for higher spins before te next release.

We could also add in a total Sz projection argument instead of Nup. I think a useful feature of this argument is that it can take both float and string arguments to avoid rounding errors.

consider adding input S_tot  and Sz

How it is possible to use conserved S_tot and Sz for a S=1 chain?
Indeed I want to diagonalize the Hamiltonian of a spin-1 chain, when Sz total is conserved.
I tried to use the coservation of Nup and Ndn with following code:
sz_min = -L
sz_max = L
for k in range(sz_min, sz_max + 1):
       basis_up = spin_basis_1d(L, pauli=False, S="1", Nup=sz_max + k)
       basis_dn = spin_basis_1d(L, pauli=False, S="1", Ndn=sz_min + k)

unfortunately, I got an error that says ValueError: unexpected optional argument(s): Ndn . Hence, I could not get any result and the code failed.


Create FAQ to enable debug mode

Document method to enable debug mode on the server to get more detailed logging from stack driver.

Add to FAQ : https://forsetisecurity.org/docs/v2.0/faq/  under "using forseti section." and link to debug section : https://forsetisecurity.org/docs/v2.0/use/cli/server.html#setting-the-server-log-level


Add Swift documentation and playground

It would be nice to have Swift documentation as well, maybe a playground.

Duplicate of #13


Bump to 4.2.0

What
Bump SDK version to 4.2.0
Why
We're calling the Maine PAN fix a MINOR not a PATCH
How
Simple version update that can be reverted if needed.

Merge activity

Nov 14, 6:41 PM EST: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.


Add ImageScaler for input image scale and offset

Resolve #51: This pull request adds support for ImageScaler op when importing / exporting ONNX models.

Added test cases for import and export


Implement iter for doublemap

Context
StorageDoubleMap is missing a function iter to be able to iterate on all values.
Done:

IterableDoubleMap:

fn iter and fn drain are renamed iter_prefix and drain_prefix (I used iter_prefix because this is how function working with k1 are called in StorageDoubleMap)
fn iter and fn drain are introduced, they iterate over the whole storage and decode K1 and K2 and Value

StorageDoubleMap: fn iter_prefix is renamed iter_prefix_values as it doesn't decode the keys, this name is consistent with StoragePrefixedMap::iter_values

@thiolliere Not building...

Fixed

👍 nitpicks addressed


[build] make clean should delete raygui.c

Hello,
Compiling Raylib 4.5.0 + Raygui 3.6 on Linux :
The #include path in raygui.c is not updated if the value of RAYLIB_MODULE_RAYGUI_PATH is changed on a next compilation attempt.
And make clean does not delete raygui.c.
Same issue might happens with RAYLIB_MODULE_PHYSAC_PATH. (untested)
First attempt :
make RAYLIB_LIBTYPE=SHARED RAYLIB_MODULE_RAYGUI=TRUE

raygui.c is created with default path.
compilation might fail because expected default raygui path did not match cruel reality.

Second attempt :
make clean
make RAYLIB_LIBTYPE=SHARED RAYLIB_MODULE_RAYGUI=TRUE  RAYLIB_MODULE_RAYGUI_PATH=../../raylib-3.6/src

compilation fails because raygui.c was neither updated nor cleaned.

@SuperUserNameMan Feel free to send a PR with the review.

ok, done, but could not test under Windows.


impl OPENSSL_SRC_PREFIX_SANTIZE env var

Sanitize path forcefully based on env var

2 use cases as issues #118

Dump some helpful build info when build fails

Actually I also thought so, but i dont know all kinds of cases people use this crate in. So thought I wouldn't want to make any breaking changes.


[Bug]: Dev server behind proxy not working

Version
<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>-> ./node_modules/.pnpm/@modern-js+app-tools@1.17.0_typescript@4.8.2/node_modules/@modern-js/app-tools

Details
Standard webpack configuration not recognized. See https://webpack.js.org/configuration/dev-server/#websocketurl which says To get protocol/hostname/port from browser use webSocketURL: 'auto://<IP_ADDRESS>:0/ws'.
Reproduce link
about:blank
Reproduce Steps
put dev server behind any famous reverse proxy like nginx, caddy

websocketurl is a configuration of webpack-dev-server, which is not provided by webpack. Modern.js does not use webpack-dev-server as the dev server, so this configuration is not supported yet.
Currently modern.js dev server can be used with the proxy plugin, which is based on whistle.
Anyway, I think we will support websocketurl in the future.

websocketurl is a configuration of webpack-dev-server, which is not provided by webpack. Modern.js does not use webpack-dev-server as the dev server, so this configuration is not supported yet.
Currently modern.js dev server can be used with the proxy plugin, which is based on whistle.
Anyway, I think we will support websocketurl in the future.

Is there any workaround right now? Missing auto-reloading is quite annoying. 😢

@march1993 Maybe you can try the proxy feature provided by modern.js, it should work well with dev server:
https://modernjs.dev/docs/apis/app/config/dev/proxy

@chenjiahan  With latest modernjs, the problem seems to be gone by setting host and path to empty as follows,
export default defineConfig({
  tools: {
    devServer: {
      client: {
        host: '',
        port: '',
      },
    },
  },
});

I don't whether ws/wss is auto derived from the page location, but host and path are definitely working.

@chenjiahan With latest modernjs, the problem seems to be gone by setting host and path to empty as follows,
export default defineConfig({
  tools: {
    devServer: {
      client: {
        host: '',
        port: '',
      },
    },
  },
});

I don't know whether ws/wss is auto derived from the page location, but host and path are definitely working.

yeah, the client.path/host configuration items in modern.js are related to webSocketURL. This is not clearly described in the documentation.


cancelBid and 2 weeks

It's not clear why 2 weeks was added:
https://github.com/ethereum/ens/commit/b4bf72a047d6d500f1c5950eb6db7ec30cb847d9#diff-c86d4bdb6d53f694977bb928d901f534R411

This was done in order to give anyone who accidentally fails to reveal when they're the sole bidder an opportunity to try again before anyone can throw away their funds.

#157 merged


add wild card search for request names

to do that WMStats REST server need to be finished

Not necessary anymore


Add configured default bucket on S3 storages

Fixes #4886
Will need a config change in AWS before upgrading the image to this version (S3 is disabled in all the kubernetes deployments)

The config for AWS is still in the aws/infra folder, you can edit it already if you want


Add sensitive ConfigItem for sonar_login

hide executed command (as it may contain credentials).
and add special option for login token.
fixes: https://github.com/fastlane/fastlane/issues/7937

Nice! Can we add a regression test to ensure that a value passed for sonar_login does not wind up in the output?

@mfurtak thx - good idea, added an spec for that!.

Nice! Love it that you guys react to the feedback that quickly! ❤


set guifont syntax limitation

I don't know to what degree set guifont is intended to be supported. But I just wanted to report that goneovim seemingly does not support the following rule (see :h guifont):

A '_' can be used in the place of a space, so you don't need to use
backslashes to escape the spaces.
Examples:
:set guifont=courier_new:h12:w5:b:cRUSSIAN
:set guifont=Andale_Mono:h7.5:w4.5

So basically setting a font only works if spaces in the font name are escaped with a backslash, replacing the spaces with underscores does not. Good enough for me, but I didn't know that and was wondering for quite a while why it only recognizes the font size.

Hi,
Thanks for the issue report.
I have fixed this issue. You could see it in the latest build below.
https://github.com/akiyosi/goneovim/actions/runs/1198632122


Multiple precompiled assemblies on Newtonsoft

The core scenario number 1 is failing for me with the following errors:
Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform<EMAIL_ADDRESS>Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform. (Assets/Dependencies/netstandard2.1/Newtonsoft.Json.dll)

I am guessing that this is due to the fact that Newtonsoft is now included by default in Unity and thus cannot be imported as a dependency using MsBuild?

What version of Unity are you using? I had similar problem, but I had to just delete com.unity.nuget.newtonsoft-json package from manifest.json file. There is still issue that there is separate dependency graph for Unity Package Manager and MsBuildForUnity.
There is also a problem with importing packages that have dependency on NuGets, each package is resolved separately and they are generating separate folders with DLLs which is causing conflicts for me as well.
I still didn't find any way of resolving this even manually by disabling selected indirect dependencies in NuGets or in Unity packages.


GraphQL schema with AWSTimestamp generate error in Mock API

Describe the bug
AWSTimestamp not supported by amplify mock api
Schema working with amplify add API.

Error: Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?
Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?

To Reproduce
Steps to reproduce the behavior:

create a file with graphql schema

type Measure @model @key(fields: ["id","ts"]){
id: String!
ts: AWSTimestamp!
payload: AWSJSON
}

run amplify mock api

See error

Creating table MeasureTable locally
Failed to start API Mock endpoint Error: Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?
Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?
Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?
Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?
Unknown type "AWSTimestamp". Did you mean "AWSTime" or "AWSDateTime"?

Expected behavior
GraphQL schema used by mock api successfully.

Edit your schema at /aws/prototypes/amplify/space-explorer/amplify/backend/api/spaceexplorer/schema.graphql or place .graphql files in a directory at /aws/prototypes/amplify/space-explorer/amplify/backend/api/spaceexplorer/schema
Creating table MeasureTable locally
Running GraphQL codegen
✔ Generated GraphQL operations successfully and saved at src/graphql
AppSync Mock endpoint is running at http://<IP_ADDRESS>:20002

Desktop (please complete the following information):

OS:  MacOS Mojave 10.14.6
Browser chrome
Version 76.0.3809.100 (Official Build) (64-bit)

Additional context
The same schema is working well with Amplify add api

Thanks @iotFab for reporting this issue, we've identified, that AWSTimestamp is missing from appsync-scalars and causing this error.

+1


[WIP] Change access levels

I realized that I had used only private or public on this library and found that there are many which should be protected or internal.
This changes may destruct the APIs but I think it should be done.
Of course, I'm not eager to destruct them. 😉

Note that this PR is currently prototype.

Oh.. I missed it.


Pressing the slide toggle switch makes the app unresponsive

'Activate focus signal before trigger signal' sliding toggle switch causes the app to get stuck.

the ngmodel already handles the var value change, i was changing it in the ionchange handler again. unnecessary.


Fix top nav element spacing

Problem
Elements in the top nav are overlapping since adding additional languages to the locale selection dropdown. The lack of spacing to the right of the dropdown is also causing additional scrollbars to appear where there shouldn't be any.
Success
The top nav menu items are moved slightly to the left and there is once again spacing to the right of the locale selection dropdown. Additionally, the footer is stickied at the bottom of all pages in desktop view and remains stationary while scrolling.
Screenshots
Before and after:

@NabbeunNabi @theyokohamalife
I would like to work on the issue.

Looks like someone else must have fixed it since I cannot recreate the error


Credentials JSONFileCache explodes if cache file has malformed JSON

Describe the bug
The JSONFileCache class __getitem__ accessor tries to load JSON from a file, but does not handle syntax errors in that file, raising an exception that bubbles up to the client application.
Given this is a cache, a failure to read from the cache should be treated as a cache miss, not an error.
Expected Behavior
In botocore/credentials.py, in the CachedCredentialFetcher class, I expected _load_from_cache() to return None if the cache was invalid, causing credentials to be re-fetched and the cache to be rebuilt.
Current Behavior
I found this while using awscli, which consumes botocore. When a credentials cache file was malformed, every command using that particular AWS account failed super cryptically, printing the bad file's cache key to STDERR:
$ aws ecr get-login-password --profile root

'c09eaf18178406053ca8802bc45deadbeefdc57a'

$ echo $?
255

Using a debugger, I located the failure at utils.py:3518, when botocore failed to parse a cache file.
Cache file contents (prettified here):
{
    "Credentials":
    {
        "AccessKeyId": "<redacted>",
        "SecretAccessKey": "<redacted>",
        "SessionToken": "<redacted>",
        "Expiration": "2024-01-24T02:49:26+00:00"
    },
    "AssumedRoleUser":
    {
        "AssumedRoleId": "<redacted>:botocore-session-1706060963",
        "Arn": "arn:aws:sts::<redacted>:assumed-role/Admin/botocore-session-1706060963"
    },
    "PackedPolicySize": 6,
    "ResponseMetadata":
    {
        "RequestId": "<redacted>",
        "HTTPStatusCode": 200,
        "HTTPHeaders":
        {
            "x-amzn-requestid": "<redacted>",
            "content-type": "text/xml",
            "content-length": "1569",
            "date": "Wed, 24 Jan 2024 01:49:26 GMT"
        },
        "RetryAttempts": 1
    }
}: true, "RetryAttempts": 2}}

(The bit at the bottom, : true, "RetryAttempts": 2}} invalidates the JSON.)
Reproduction Steps
Here's a minimal reproduction:
# json-cache-repro.py

from botocore.utils import JSONFileCache
from botocore.credentials import CachedCredentialFetcher
from os import remove

CACHE_KEY = 'foo-botocore-test'
CACHE_DIR = '/tmp'
CACHE_FILE = f'{CACHE_DIR}/{CACHE_KEY}.json'

class TestCredentialsFetcher(CachedCredentialFetcher):
    def _create_cache_key(_):
        return CACHE_KEY

with open(CACHE_FILE, 'w') as f:
    f.write('hello')

cache = JSONFileCache(working_dir=CACHE_DIR)

fetcher = TestCredentialsFetcher(cache=cache)

try:
    fetcher.fetch_credentials()
finally:
    remove(CACHE_FILE)

Example run:
$ python -m venv json-cache-repro
$ . json-cache-repro/bin/activate
(json-cache-repro) $ pip install botocore

(json-cache-repro) $ python3 json-cache-repro.py
Traceback (most recent call last):
  File "/Users/me/json-cache-repro/lib/python3.11/site-packages/botocore/utils.py", line 3518, in __getitem__
    return json.load(f)
           ^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/me/json-cache-repro.py", line 17, in <module>
    fetcher.fetch_credentials()
  File "/Users/me/json-cache-repro/lib/python3.11/site-packages/botocore/credentials.py", line 685, in fetch_credentials
    return self._get_cached_credentials()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/me/json-cache-repro/lib/python3.11/site-packages/botocore/credentials.py", line 693, in _get_cached_credentials
    response = self._load_from_cache()
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/me/json-cache-repro/lib/python3.11/site-packages/botocore/credentials.py", line 711, in _load_from_cache
    creds = deepcopy(self._cache[self._cache_key])
                     ~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/me/json-cache-repro/lib/python3.11/site-packages/botocore/utils.py", line 3520, in __getitem__
    raise KeyError(cache_key)
KeyError: 'foo-botocore-test'

Possible Solution
Workaround
Delete the affected cache file, or delete all files in the cache dir (e.g. ~/.aws/cli/cache/).
Fix
This is tricky. JSONFileCache doesn't know what it's storing, and CachedCredentialFetcher doesn't know what kind of cache it's using. CachedCredentialFetcher assumes that if a key exists in the cache, it's valid to read, which is incorrect for JSONFileCache.
Suggestion:

In JSONFileCache#__getitem__, catch (OSError, ValueError, json.decoder.JSONDecodeError) and re-raise any of them as a new CacheMissError.
In CachedCredentialFetcher#_load_from_cache, catch CacheMissError and return None. This will hopefully trigger a credential refresh that will overwrite the invalid cache file.

Triage
If the maintainers prefer to raise exceptions here (maybe there's a lot of extra work to change behavior), in the meantime, the exception message in JSONFileCache#__getitem__ could be improved to suggest manual cleanup:
try:
    with open(actual_key) as f:
        return json.load(f)
except (OSError, ValueError, json.decoder.JSONDecodeError):
    raise KeyError(f'Cache file {actual_key} may be corrupt, please delete it.')

Additional Information/Context
It took me most of a day to track this down when it started causing awscli errors. I initially thought it was an AWS permissions issue, or a problem with my local credentials, or corrupted awscli configuration, or my environment, or something a reboot might fix. None of my teammates could reproduce it.
I was disappointed to find out it was a cache error!
Thanks for your consideration.
SDK version used
v1.34.28 (also observed in v2.0.0dev155, installed as awscli v2.15.13 dependency via homebrew)
Environment details (OS name and version, etc.)
MacOS 14.2.1 (arm64)

Thinking about it last night, I also believe the current code will never heal a corrupted cache file on its own. With the current strategy, a cache entry is only updated if it doesn't exist yet (cache miss) or the data can be parsed and evaluated for expiration. A cache file that can't be read or parsed will break the library forever unless there's manual intervention to clear the cache on disk, and that intervention is less likely because the exceptions raised by the cache class don't contain enough information to suggest a solution.

Thanks for reaching out and for your patience here. I could reproduce the errors you referenced using your code snippet. I will plan to bring this up with the team for discussion.

After discussing with the team, we think that there may be some opportunities to improve the behavior here. I created a PR with the error message you suggested for the team to consider: https://github.com/boto/botocore/pull/3183. Further investigation may still be needed in terms of when the error occurs in Botocore/the AWS CLI.

It looks like #3213 was closed in favor of this one, but this one looks to previously be about a confusing error message (and proposed fix to the message).
Is it safe to assume this one is now also about fixing the race condition (potentially with a flock) to avoid corrupting the cache file at all? Let me know if it’d be more helpful to submit an untested PR with a proposed fix. Thank you!

Thanks for following up, this issue is more focused on the error message so I can reopen https://github.com/boto/botocore/issues/3213 for further review/discussion. You can submit a PR for this but I can't provide any guarantees on if or when it might be considered. I think more research is needed here into what can cause JSONFileCache to break and how that may be addressed.

I think the error message is a good triage, and it's definitely worth exploring corruption root causes. But long-term, I also think it's worth making cache failures non-fatal. Maybe a warning, if there's value in communicating that this optimization has failed.

think its been done in it for the mean time values for it.


Fix class section

Needs to be the protected part, not the private part

yea, true, thanks 👍

Is CONV available in 731? Or is the version requirement in the readme out of date?

@g-back , some downport is currently missing, https://github.com/abaplint/abaplint-abap-backend/issues/33, been refactoring


Add a search bar in the user's dashboard

Is your feature request related to a problem? Please describe.
Right now, the user's dashboard doesn't have any option to search for a particular project (circuits).
Describe the solution you'd like
A search bar will improve the user's experience as they will be able to search for the required project easily.

@rajat2502 can I work on this issue.

can I do?

I would like to work on this issue. So @satu0king can you please guide me through this?

A search bar is already available in user dashboard.

Yes this is a much needed feature. The search bar that you are referring to @harshitaaaaaa searches across all projects and users.
What a user would need is a search for just his/her projects. Implement this in client side. It will be very easy to do so using basic JQuery and JS.

Can I work on this issue?

@satu0king ,If not done yet, I would like to work on this....

@satu0king ,If not done yet, I would like to work on this....

Hello @pavanjoshi914 , I'm really sorry that I forgot to claim this issue. Actually I have already started working on this and it'll be completed soon. So, can I continue my work on this? or do you want to work on this?

@satu0king ,If not done yet, I would like to work on this...

Hello @pavanjoshi914 , I'm really sorry that I forgot to claim this issue. Actually I have already started working on this and it'll be completed soon. So, can I continue my work on this?

@satu0king ,If not done yet, I would like to work on this...

Hello @pavanjoshi914 , I'm really sorry that I forgot to claim this issue. Actually I have already started working on this and it'll be completed soon. So, can I continue my work on this?

@dipanshparmar no  problem please continue work on this!! I will work on something else

.


Revamp release actions

Update DBO upload to use https://github.com/benwoo1110/dbo-upload-action/
Create manual upload function for Modrinth
Release DBO and Modrinth on push
Release DBO and Modrinth on promote release
Use new semantic action https://github.com/benwoo1110/semantic-release-action

What is the point of having separate dbo and modrinth manual workflows if the release and promote release both do this?


schema : make update to partition tables when 'set tiflash replica'

What problem does this PR solve?
Issue Number: close #5266
Problem Summary:
What is changed and how it works?
make update to partition tables when 'set tiflash replica'.
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

cc @breezewish

/run-all-tests

/run-all-tests

/run-all-tests

/merge


Set up documentation to live on osome website

This repository's main README.md still points to the documentation that lives on Matt's website:

https://www.matthewdeverna.com/top-FIBers/

It looks like I do not have access to the "Settings" page of this repository which would allow me to set this up. Can someone please take care of this?
From the "Pages" tab, you should be able to select something like the below.

I added the updated documentation link.


Add Elixir Integer module

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
closes #426
closes #427
There is no testing framework setup for elixir so I added the code to examples folder

I updated the commit. There are tests missing but I can't see any tests for elixir code currently.

There are still some CI failures so it cannot be merged, such as it misses copyright information, and lib/Integer.ex is not properly formatted.

This is a great addition that we very much want to have merged, but there is still one problem preventing it. It just needs to be signed. If you click on the “details” link, next to the failing DCO check, it will give a simple explanation and instructions to fix the problem.


Calls to frontend are too slow/blocking

Hi @Niminem , thanks for the work, it was quite easy to get started with neel.
I have a problem though. The communication from backend to frontend seems to be very slow (or something that should not be blocking is blocking)
I have created tried to create a simple paint on canvas app, that catches the mouse move event on the frontend, sends the coordinates to backend, which prints them out and tells front end to paint them on the canvas. (Obviously redundant, just for the sake of the example.)
The coordinates are printed out immediately, when I comment out the call to frontend, with the call in place, large delays occur (multiple seconds). To make sure it is not the function itself, I have replaced it with an empty function on the front end side, and it had the same effect.

@arkocal Interesting, do you mind dropping your example here so I can replicate this exactly? you can email me as well<EMAIL_ADDRESS>

demo.zip
@Niminem Thanks for the quick response.
sure, here is the demo. I compile and run with  nim c --threads:on -r demo.nim. There are two ways to trigger the problem:

Click on the button multiple times in quick succession, you will see that the first couple of times the number increases immediately, but the later increments arrive with a delay.
Afterwards you can move the mouse on the canvas area. (afterwards as the button click bounds the canvas mouse event) When you move the mouse, the coordinates are printed very slowly. Commenting out the line classJs("doNothing", x) results in them printing in real time again.

Finally, here is the output I get when I run the executable:
INFO Jester is making jokes at http://<IP_ADDRESS>:5000
Starting 4 threads
Listening on port 5000
which: no google-chrome in (/usr/local/bin/... [my $PATH])
which: no chromium-browser in (/usr/local/bin:...)
/usr/bin/chromium
[403678:403678:1123/150047.814697:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

@arkocal checking into this now

@arkocal I think I may have found the issue, I believe it's the frontend and that using callbacks should solve it. I'll be working on this, and including it in the v0.3.0 release which will be published before the holidays.

@Niminem , thanks. If you want to have anything tested on another system, please let me know, or just reference this issue, and I will have a look.

@arkocal will do man thank you. I'll ping you here as soon as it's taken care of, hopefully within the next couple of days.

@arkocal It turns out that the back-end had a bottle-necking while-loop to handle WebSocket requests. We'll be pushing the new version today :)

@arkocal Neel v0.2.6 has been released. We've tested your demo and now it works exactly how it should! Let us know if you run into anymore issues :)

I have just tested the update, it works like a charm on my system too! Thanks!


Added feature to auto hyphenate text at syllable boundaries

You can hyphenate the text entered into the editor, so that the HTML entity  soft-hyphen automatically is added in between words, at the correct syllable boundary.
This is quite handy, specially when using narrow columns.

This is super awesome!

This is super awesome!

I had to revert this as triggers errors in the django CMS test suite. Could you please double check?

I had to revert this as triggers errors in the django CMS test suite. Could you please double check?

@yakky has been fixed.
Some other consideration: Should we allow soft-hyphening per instance? This would require an additional Boolean field on the model and a checkbox nearby the text editor to activate this.

@jrief thanks!
I think that the per-instance flag can be left to extended plugins as it would be too implementation dependent.
Probably we can add an example to implement this feature in external plugins via AbstractText


Night mode depowered

Kiwi Browser 116.0.5845.24
Night mode lost much of its power with latest 116 releases, most sites that turned dark before (v.112) look now the same as light mode i.e. wikipedia

yes to make it work I had to enable a flag in kiwi://flags (just search for "dark" )

Thanks,
Auto Dark Mode for Web Contents,
set flag to Enable, relaunch, all sites went to dark mode, even disabling night mode.
Reset the flag to Default, relaunch, now sites correctly follow option night mode on / off

Should this flag be enabled by default in your opinion ?

Might seems dumb questions, but @jututt can you tell us

what theme you have set
is night mode ( kiwi feature ) enabled ?
what night mode style is set on settings ?

Now is back to default and dark mode works as intended. Had to switch to enabled to make it work.

i see , so now does other styles like amoled works as intended ?

option has always remained Amoled, no change there

Great. Thanks for the patience


Error (502) Bad Gateway: When trying to access chatbot deployed on Azure

Bot Info

SDK Platform: .Net
SDK Version: v4.0.30319
Active Channels: Web Chat, Direct Line
Deployment Environment: Azure Bot Service, local development with Emulator

Issue Description
I am developing a chatbot using Microsoft Botframework. Bot works fine when I run it locally with emulator. How ever when I deploy it on Azure as bot service and try to access it using web chat channel it start giving 502 error. I am tried following steps to deploy it.

Created a resource group in Azure

Created a Service Plan in azure

open url https://dev.botframework.com/ and under My bots menu item clicked "Create a bot" button

"Create a bot" page takes me to Azure Bot Service page

On Azure Bot service page I select "Web App Bot"

On clicking "Create" Azure ask me few details such as Bot Name, Resource group, App Name etc and
creates a Bot

In this new Bot when I go to "Test in Web Chat" and type something it gives me a response back.

Now I took app id and secret key from Settings and add it to web config file.

Now I publish my bot from Visual Studio selecting new bot service as app service

Publishing is successful

Now when I try to access my bot in Test in Web Chat window in Azure,messages start getting failed

I have taken the web chat link from channel section and paste it on html page and updated secret key
for web chat

Now when I send a message I start getting (502) bad gateway error in console.

I have deployed bots in the past as well but at that I was using dev.botframework.com for configuring bots.
This is first time I am trying to deploy it on Azure Bot service and don't know what am I missing here.
Can someone help me with this?
Expected Behavior
I must get a correct response from Bot
Actual Results
Getting 502 (Bad Gateway) error.
https://webchat.botframework.com/v3/directline/conversations/lFKAUFQCteN92X9B1TmX/activities

Duplicate of https://stackoverflow.com/questions/50351005/error-502-bad-gateway-when-trying-to-access-chatbot-deployed-on-azure-using-w


Aggregate errors of deleting stale manifestwork.

Fixes: https://issues.redhat.com/browse/ACM-9444

/assign @laisongls

/assign @zhiweiyin318
Please take a review on this PR when you have time, thanks!

/lgtm


Samples

Hi - the wiki references samples, saying they're in the repo, but I can't find them. Are they still available?

I've updated the wiki to reflect the new location of the samples. Thanks for reporting this error.

var data = new Color[128 * 128]; Array.Fill(data, Color.Red); _texture = Texture2D.CreateTexture(128,128); _texture.SetData(data); _batch = SpriteBatch.Create();

Sorry, I know this is closed, but struggling with RUSshy's code. I'm converting it to vb.net and Array.Fill doesn't compile???
Also, how do I get the image displayed - you've commented it out. Can't find a way to message RUSshy directly.

The Array.Fill() method only exists in .NET Core. If you're using .NET Framework you'll have to fill the array manually in a for loop.


Question on: remove.otus - groups option not valid

I am trying to run this with shared and groups options, but it complains that groups is not a valid parameter. So I am trying to remove all OTUs (ASVs) that are present in negative control - is this the way to do that or is there some better way? I also would like to update count and list files so that I could use classify.otu with updated files.

To remove negative control sample from a shared file, try this:
mothur > remove.groups(shared=yourSharedFile, groups=negativeControlSampleName)
To remove negative control from all files, try this:
mothur > remove.groups(shared=yourSharedFile, list=yourListFile, count=yourCountFile, taxonomy=yourTaxonomyFile, groups=negativeControlSampleName)

Thank you for the quick response! I don't want to remove the control sample from the data but I want to remove all those OTUs that are found in control, from all the other samples. There is a following line in the wiki-page of remove.otus command:
remove.otus(shared=abrecovery.an.shared, groups=B)
I assumed that this would do what I want but when I tried a similar command, mothur complained that groups-argument is not valid.

I'm sorry for the confusion, the wiki page is a bit out of date. The groups options is not available for remove.otus, but you can do this instead.
mothur > get.groups(list=yourListFile, groups=negativeControlSampleName) - create a list file containing only the OTUs with reads from negativeControlSampleName
mothur > list.otus(list=current) - create accnos file containing names of OTUs containing reads from negativeControlSampleName
mothur > remove.otus(list=yourListFile, accnos=current) - remove OTUs containing reads from negativeControlSampleName from your original list file

Great! Now it works! I also did similar procedure for count file using remove.seqs and then I was able to proceed to making shared file. Many thanks for your help!


[Bug] COPY FROM crash on partition tables with partitions > 32 and data of special order

Cloudberry Database version
                                                                                version

-----------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
 PostgreSQL 14.4 (Cloudberry Database 1.5.4+dev.106.g057f9d27525 build dev) on x86_64-pc-linux-gnu, compiled by gcc (Ub
untu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit compiled on Jul 31 2024 17:59:22 (with assert checking)
(1 row)

What happened
COPY FROM coredump as:

What you think should happen instead
No response
How to reproduce

prepare a data file:

for i in {1..967}; do echo 2, 1 >> /tmp/a.csv;done
for i in {1..33}; do echo 2, $i >> /tmp/a.csv;done
echo 2, 1 >> /tmp/a.csv

create a partitioned table with more than 32 partitions:

gpadmin=# create table px(a int, b int) partition by range(b) (start(1) end(34) every(1)) using ao_column distributed by (a);
CREATE TABLE

COPY FROM the data file

gpadmin=# copy px from '/tmp/a.csv' (format csv);
ERROR:  MPP detected 1 segment failures, system is reconnected

then will see a coredump file on segment 0
Operating System
Ubuntu
Anything else
No response
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Will provide a pr to fix later.


Allow to have 2 roles one for Readonly and one for execution

Hello, but i missed it, there is no way to handle the readonly and non readonly mode by different Group. It would be cool to be able to display orchestration to some users with others that could execute command on them.

Here is the suggested way of implementing it:

Create a new DFM_ALLOWED_READ_ONLY_APP_ROLES config setting, with similar semantics (a set of comma-separated role names).

Generally make DFM_ALLOWED_APP_ROLES and DFM_ALLOWED_READ_ONLY_APP_ROLES act as a UNION. That is, a user should generally be allowed, if they have EITHER one role type OR another. The code that validates roles is here, just need to make it check this new setting in addition to older one.

Implement a new ThrowIfInReadOnlyMode() method in Auth.cs. As the name suggests, it should check if we're currently in the ReadOnly mode. We're currently in ReadOnly mode when:
EITHER
DfmEndpoint.Settings.Mode == DfmMode.ReadOnly
OR
the current user has one of DFM_ALLOWED_READ_ONLY_APP_ROLES
Once in ReadOnly mode, the method should throw an AccessViolationException with proper text description. Otherwise do nothing.

Add exception handling logic for AccessViolationException into here. Similarly to existing handlers, the HandleErrors() method should log the exception and then return new StatusCodeResult(403);

Replace all checks like DfmEndpoint.Settings.Mode == DfmMode.ReadOnly with a simple call to this new Auth.ThrowIfInReadOnlyMode() method.

Write unit tests as appropriate.

Implemented in v6.0.
@bhugot , please, validate.

Thx @scale-tone will try it soon


Digit(s) in class method return type breaks highlighting in function body

Example:

Also happens if I use default color scheme. Screenshots are from Sublime Text 2.0.2.
(edit: Same problem occurs in Visual Studio Code)
Ported from https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/380

No longer a problem in Sublime Text 3
code snippet:
class Vector3 {
	add( scalar: number ): Vector {
		var a = 5;
		return this;
	}
}


Able to perform CRUD operations even if we delete .realm file from disk storage in a running app

Questions: Able to perform CRUD operations even if we delete .realm file from disk storage in a running app
Feature Request:
Bugs: Able to perform CRUD operations even if we delete .realm file from disk storage in a running app
Goals
If .realm file is deleted in a running app, it should be created automatically with blank model.
Expected Results
If .realm file is deleted in a running app, .realm file should be created with 0 records in models
Actual Results
If .realm file is deleted in a running app, .realm file is not created and if we print model records, realm model is  giving results and able to add more records in model.
Steps to Reproduce
Steps:

Created "test.realm" file on disk storage using below line of code:
var config = Realm.Configuration() config.fileURL = config.fileURL!.deletingLastPathComponent().appendingPathComponent("test.realm")

Open the realm database with realm config using below line of code:
realm = try! Realm(configuration: config)

Created a dog model:
class Dog: Object {  @objc dynamic var name = ""  @objc dynamic var age = 0 }

On a button click, adding data to dog model.
let myDog = Dog()
myDog.name = names.randomElement()! //names array
myDog.age = Int.random(in: 1 ... 100)
try! realm.write {
realm.add(myDog)
}

Deleted .realm file using below line of code:
let file = Realm.Configuration.defaultConfiguration.fileURL! try? FileManager.default.removeItem(at: file)

Now performing the step 4 and printing records:
let results = realm.objects(Dog.self)

Data is added successfully even .realm file is not present on disk.

Kill and relaunch the app. Now .realm file is created again with zero records.

Code Sample
override func viewDidLoad() {
    super.viewDidLoad()
    setDefaultRealmForUser()
    printData("")
}

func setDefaultRealmForUser() {
    var config = Realm.Configuration()

    // Use the default directory, but replace the filename with the username
    config.fileURL = config.fileURL!.deletingLastPathComponent().appendingPathComponent("test.realm")

    // Set this as the configuration used for the default Realm
    Realm.Configuration.defaultConfiguration = config

    // Open the Realm with the configuration
    realm = try! Realm(configuration: config)

    print(Realm.Configuration.defaultConfiguration.fileURL)
}

@IBAction func addData(_ sender: Any) {
    self.lblData.text = ""
    // Use them like regular Swift objects
    let myDog = Dog()
    myDog.name = names.randomElement()!
    myDog.age = Int.random(in: 1 ... 100)
    print("name of dog: \(myDog.name)")

    // Persist your data easily
    try! realm.write {
        realm.add(myDog)
    }

    printData(sender)
}

@IBAction func deleteRealm(_ sender: Any) {
    self.lblData.text = ""
    let file = Realm.Configuration.defaultConfiguration.fileURL!
    try? FileManager.default.removeItem(at: file)
    printData(sender)
}

@IBAction func printData(_ sender: Any) {
    // Read some data from the bundled Realm
    let results = realm.objects(Dog.self)
    self.lblData.text = "Total results: \(results.count)"
}

Version of Realm and Tooling
Realm framework version: RealmSwift
Realm Object Server version:
Xcode version: 11.3.1
iOS/OSX version: 13
Dependency manager + version: CocoaPods

We are also facing similar issue in our project. Tried lot of things but nothing seemed to work.

Deleting a file which is open on unix-like platforms merely removes the entry in the filesystem linking the name to the inode, and the file is not actually deleted until it's closed. Since the Realm is already open when you delete the file, we continue to read from and write to the now nameless file until it's closed and reopened.


OntonotesChainNer should not require use of LoadOntonotes5 to train a model

This pull request provides a modest change to OntonotesChainNer that breaks the train method into two methods such that a caller can provide Document objects that have been created by some other means than being loaded from LoadOntonotes5.  The LoadOntonotes5 is rather opaque and I could not figure out how to make use of it.  However, it was relatively straightforward to load Document objects myself and train a model.  Please consider including this patch.  This contribution should be covered by Oracle's corporate contributor's agreement.  I work for Oracle Labs East with other FACTORIE contributors.  Thanks, Philip

lgtm


feat(fscommerce): FS-2186 add review id to product data

adds the ability to explicitly associate reviews with a product through an arbitrary id

@bweissbart CI/CD seems to be stalled on this.


Express 4 and 5 req.get doesnt return header if not set in lowercase

In the documentation, it's stated that req.get is intended to be case-insensitive. However, it appears that when you set a custom header in a middleware, this case-insensitivity breaks if the header is not in lowercase. Should this behavior be corrected, or should the guidance be to always set headers in lowercase? Perhaps, adding a setHeader function in the request object could be a solution to this issue.
The problem seems to originate from this part of the code: https://github.com/expressjs/express/blob/master/lib/request.js#L82, where the headers are not being converted to lowercase, while the input is.
Example code
const express = require('express');
const app = express();

app.use((req, res, next) => {
    req.headers['X-filipe'] = 'filipe';
    next();
});

app.get('/', (req, res) => {
    res.json({ header: req.get('x-filipe') });
});

app.listen(3000, () => {
    console.log('Server is listening on port 3000');
});

Expected output:
{"header": "filipe"}

This adjustment ensures that the headers are consistently in lowercase, aligning with the case-insensitive nature of req.get.

Yes, you need to set req.headers in lower case only. That is part of Node.js itself, not express specific:
https://nodejs.org/dist/latest-v21.x/docs/api/http.html#messageheaders

Key-value pairs of header names and values. Header names are lower-cased.

When middleware start working, all headers alredy parsed and transformed if neede. All middleware changes goes on top of this updates. So be sure to controll it yourself or with String.prototype.toLowerCase method.


HEIC Formats

I'm using this library on the flutter framework.But heic, heif formats can not display. Flutter has no support. Can the library have the option to convert up to 10-15 images(max) to jpg format? Im using this library https://github.com/Sh1d0w/multi_image_picker . I would be very happy if this feature was added.

The multi_image_picker library already converts the image to JPEG when you request the image data.


Reference to Manage Properties option is vague due to non-intuitive UI

In https://learn.microsoft.com/en-us/power-virtual-agents/advanced-bot-framework-composer-example2, the instructions read as follows:
"In your new DailySpecials dialog in Composer select the BeginDialog trigger to open the Authoring canvas. Go to Manage properties and select Set a property..."
Can you please update this to read as follows:
"In your new DailySpecials dialog in Composer select the BeginDialog trigger to open the Authoring canvas. On the Authoring canvas, click the + (plus) symbol below the BeginDialog trigger, then click Manage properties....Set a property..."
The instructions as written are confusing. I spent 10 minutes trying to find the Manage properties when the instructions read "Go to Manage properties". It's not intuitive where "Manage properties" is located. You have the click the + (plus) symbol on the cnavas to "go to" it. The phrase "go to Manage properties" does not help the beginner find the option.
Thank you!

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

ID: 65c68413-d758-f0d4-1253-fe9730dd0bc9
Version Independent ID: 84b17640-22e3-130c-3233-d4af05b5b302
Content: Use Bot Framework Composer to display an options list in chatbots - Power Virtual Agents
Content Source: power-virtual-agents/advanced-bot-framework-composer-example2.md
Service: power-virtual-agents
GitHub Login: @iaanw
Microsoft Alias: iawilt

Thanks for your comment, @itprofessional68. This issue has been assigned to the doc author for review.

Information has been posted here: https://github.com/microsoft/BotFramework-Composer/issues/9400

@bishalgoswami - This article has been updated. Thanks!


Pontoon website shows promotion bar in Chromium despite the extension is installed

Steps to reproduce

Install extension into Chromium.
Sign in and go to https://pontoon.mozilla.org/.

Actual behavior

NOTE: If the user dismissed promotional bar, they won't be able to reproduce this issue.
Expected behavior

Nothing is shown, since the extension is installed and should signal Pontoon not to show anything.

Seems this has always been the case. Will be fixed with Manifest V3 in #165 .


HDD become full

Hi if i am right, this software should not sync ? but why my hdd grow till full ? my google drive have more than 1 TB files and install gdfuse on VPS. i can delete manual in cacche, but is there someway to make it never happen again? while still have capability to read and write on my google drive??
this is my config
apps_script_format=json
apps_script_icon=
async_upload=true
cache_directory=
client_id=
client_secret=
connect_timeout_ms=5000
curl_debug_off=false
data_directory=
delete_forever_in_trash_folder=false
docs_file_extension=true
document_format=odt
document_icon=
download_docs=true
drawing_format=png
drawing_icon=
form_format=zip
form_icon=
fusion_table_format=desktop
fusion_table_icon=
keep_duplicates=false
large_file_read_only=false
large_file_threshold_mb=16
log_directory=
lost_and_found=false
low_speed_limit=0
low_speed_time=0
map_format=desktop
map_icon=
max_cache_size_mb=512
max_download_speed=0
max_memory_cache_size=10485760
max_retries=8
max_upload_chunk_size=1099511627776
max_upload_speed=0
memory_buffer_size=1048576
metadata_cache_time=60
presentation_format=pdf
presentation_icon=
read_ahead_buffers=3
read_only=false
root_folder=
shared_with_me=false
spreadsheet_format=ods
spreadsheet_icon=
sqlite3_busy_timeout=5000
stream_large_files=false
umask=0o002
verification_code=

Yes i upload something but not bigger than 50 MB , but the cache eat more than 5 GB and i think will eat many more if i am not force unmount it
thats all thank you

If you don't need to upload big files, but you have big files you want to read (video, music, etc.) you can enable streaming with stream_large_files=true, so you don't have to download them before access.


Developer targets

Solve https://github.com/IntelLabs/kAFL/issues/79

Still need to remove force flags on nyx_packer and qemu tasks: https://github.com/IntelLabs/kAFL/search?q=force

both, update and build should depend on venv and I think we should move ansible-galaxy install also into venv or separate rule to test+install if needed (which in turn depends on venv)
it looks like we're mostly duplicating logic in deploy/Makefile so maybe we just merge them

I think we should move ansible-galaxy install also into venv

This will cause issue when updating the intellabs.kafl collection locally for testing. Since the venv is already created, there will be no update of the intellabs.kafl collection installation when running make deploy.
The only solution I found is to include it before running each target.

it looks like we're mostly duplicating logic in deploy/Makefile so maybe we just merge them

that's a possibility for a future PR

still need to remove remaining force flags? https://github.com/IntelLabs/kAFL/search?q=force

still need to remove remaining force flags? https://github.com/IntelLabs/kAFL/search?q=force

Remving the force clone flag for QEMU will lead to a fail redeploy, since QEMU build leads the repo into a dirty state.
Either we leave the flag for QEMU, or add the fix that I mentioned here:
https://github.com/IntelLabs/kAFL/issues/79#issuecomment-1170391485


Out-Of-Cluster example doesn't build when vendoring with dep

I have been using k8s.io/client-go for awhile and have recently been unable to get it to compile due to the following error.
vendor/k8s.io/client-go/tools/clientcmd/api/register.go:35: cannot use Config literal (type *Config) as type runtime.Object in argument to scheme.AddKnownTypes:
	*Config does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/admissionregistration
vendor/k8s.io/client-go/pkg/apis/admissionregistration/register.go:47: cannot use InitializerConfiguration literal (type *InitializerConfiguration) as type runtime.Object in argument to scheme.AddKnownTypes:
	*InitializerConfiguration does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/admissionregistration/register.go:48: cannot use InitializerConfigurationList literal (type *InitializerConfigurationList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*InitializerConfigurationList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/admissionregistration/register.go:49: cannot use ExternalAdmissionHookConfiguration literal (type *ExternalAdmissionHookConfiguration) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ExternalAdmissionHookConfiguration does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/admissionregistration/register.go:50: cannot use ExternalAdmissionHookConfigurationList literal (type *ExternalAdmissionHookConfigurationList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ExternalAdmissionHookConfigurationList does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/authentication
vendor/k8s.io/client-go/pkg/apis/authentication/register.go:47: cannot use TokenReview literal (type *TokenReview) as type runtime.Object in argument to scheme.AddKnownTypes:
	*TokenReview does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/certificates
vendor/k8s.io/client-go/pkg/apis/certificates/register.go:48: cannot use CertificateSigningRequest literal (type *CertificateSigningRequest) as type runtime.Object in argument to scheme.AddKnownTypes:
	*CertificateSigningRequest does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/certificates/register.go:49: cannot use CertificateSigningRequestList literal (type *CertificateSigningRequestList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*CertificateSigningRequestList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/certificates/zz_generated.deepcopy.go:73: cannot use in.LastUpdateTime.DeepCopy() (type *v1.Time) as type v1.Time in assignment
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/authorization
vendor/k8s.io/client-go/pkg/apis/authorization/register.go:47: cannot use SelfSubjectAccessReview literal (type *SelfSubjectAccessReview) as type runtime.Object in argument to scheme.AddKnownTypes:
	*SelfSubjectAccessReview does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/authorization/register.go:48: cannot use SubjectAccessReview literal (type *SubjectAccessReview) as type runtime.Object in argument to scheme.AddKnownTypes:
	*SubjectAccessReview does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/authorization/register.go:49: cannot use LocalSubjectAccessReview literal (type *LocalSubjectAccessReview) as type runtime.Object in argument to scheme.AddKnownTypes:
	*LocalSubjectAccessReview does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/storage
vendor/k8s.io/client-go/pkg/apis/storage/register.go:47: cannot use StorageClass literal (type *StorageClass) as type runtime.Object in argument to scheme.AddKnownTypes:
	*StorageClass does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/storage/register.go:48: cannot use StorageClassList literal (type *StorageClassList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*StorageClassList does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/rbac
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:47: cannot use Role literal (type *Role) as type runtime.Object in argument to scheme.AddKnownTypes:
	*Role does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:48: cannot use RoleBinding literal (type *RoleBinding) as type runtime.Object in argument to scheme.AddKnownTypes:
	*RoleBinding does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:49: cannot use RoleBindingList literal (type *RoleBindingList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*RoleBindingList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:50: cannot use RoleList literal (type *RoleList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*RoleList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:52: cannot use ClusterRole literal (type *ClusterRole) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ClusterRole does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:53: cannot use ClusterRoleBinding literal (type *ClusterRoleBinding) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ClusterRoleBinding does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:54: cannot use ClusterRoleBindingList literal (type *ClusterRoleBindingList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ClusterRoleBindingList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/rbac/register.go:55: cannot use ClusterRoleList literal (type *ClusterRoleList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ClusterRoleList does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/apis/policy
vendor/k8s.io/client-go/pkg/apis/policy/register.go:49: cannot use PodDisruptionBudget literal (type *PodDisruptionBudget) as type runtime.Object in argument to scheme.AddKnownTypes:
	*PodDisruptionBudget does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/policy/register.go:50: cannot use PodDisruptionBudgetList literal (type *PodDisruptionBudgetList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*PodDisruptionBudgetList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/policy/register.go:51: cannot use Eviction literal (type *Eviction) as type runtime.Object in argument to scheme.AddKnownTypes:
	*Eviction does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/apis/policy/zz_generated.deepcopy.go:148: cannot use val.DeepCopy() (type *v1.Time) as type v1.Time in assignment
# k8s.io/client-go/examples/out-of-cluster-client-configuration/vendor/k8s.io/client-go/pkg/api
vendor/k8s.io/client-go/pkg/api/register.go:76: cannot use Pod literal (type *Pod) as type runtime.Object in argument to scheme.AddKnownTypes:
	*Pod does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:77: cannot use PodList literal (type *PodList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*PodList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:78: cannot use PodStatusResult literal (type *PodStatusResult) as type runtime.Object in argument to scheme.AddKnownTypes:
	*PodStatusResult does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:79: cannot use PodTemplate literal (type *PodTemplate) as type runtime.Object in argument to scheme.AddKnownTypes:
	*PodTemplate does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:80: cannot use PodTemplateList literal (type *PodTemplateList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*PodTemplateList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:81: cannot use ReplicationControllerList literal (type *ReplicationControllerList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ReplicationControllerList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:82: cannot use ReplicationController literal (type *ReplicationController) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ReplicationController does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:83: cannot use ServiceList literal (type *ServiceList) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ServiceList does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:84: cannot use Service literal (type *Service) as type runtime.Object in argument to scheme.AddKnownTypes:
	*Service does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:85: cannot use ServiceProxyOptions literal (type *ServiceProxyOptions) as type runtime.Object in argument to scheme.AddKnownTypes:
	*ServiceProxyOptions does not implement runtime.Object (missing DeepCopyObject method)
vendor/k8s.io/client-go/pkg/api/register.go:85: too many errors

I have gotten this in several projects where I have recently vendored (including the out-of-cluster example in client-go/examples).
I followed the instructions for dep in https://github.com/kubernetes/client-go/blob/master/INSTALL.md but had the same result.
The Gopkg.lock has the following
[[projects]]
  branch = "master"
  name = "k8s.io/apimachinery"
  packages = [...]
  revision = "3b05bbfa0a45413bfa184edbf9af617e277962fb"

[[projects]]
  name = "k8s.io/client-go"
  packages = [...]
  revision = "d92e8497f71b7b4e0494e5bd204b48d34bd6f254"
  version = "v4.0.0"

and the Gopkg.toml has the following

[[constraint]]
  branch = "master"
  name = "k8s.io/apimachinery"

[[constraint]]
  name = "k8s.io/client-go"
  version = "4.0.0"

Any idea on what is causing this and how to fix this?

I have put this example in a repository with dependencies vendored using dep so that somebody can pull it down.
https://github.com/EIrwin/k8s-out-of-cluster-example

dep isn't able to parsing the Godeps.json file in the client-go, so it downloads the master branch of apimachinery which isn't guaranteed to be compatible with client-go 4.0.0. I recommend using glide, which is able to parse the Godeps.json.


Not working on Android nor Browser: is the project maintained? Any successful implementation?

Hi everyone,
I tried the demo client/server to have a look at PhoneRTC, which looks wonderful as it is exactly what I need for my ionic app. However, it doesn't seem to work - at least from my few tries - on Android nor on Browser.
Android : I can connect and start/answer call, but no video nor audio stream. Plus, after 2 or 3 seconds, the app crashes.
Browser: I can connect and start/answer call, but no video nor audio stream. Yet I can see the output of my own local camera.
NB: everything is delivered through HTTPS, from the client app to the Nodejs/Socket.io endpoint
It looks like the project has not been updated for a while now, so I was wondering if the project is still maintained? And if anyone made a successful implementation of it in an hybrid app?
Thanks
Regards

Hi Vince, I've had better luck with these building a WebRTC & Ionic app.
https://github.com/webrtc/adapter
http://peerjs.com
Also this is a good tutorial on WebRTC from the ground up.
http://blog.mgechev.com/2014/12/26/multi-user-video-conference-webrtc-angularjs-yeoman/

Hi Brian, thanks for your answer.
I don't mind having to write some code but I'd really love to rely on a stable library (I just need 1:1 videocalls, no group calls, no fancy features).
I'll have a look at your resources! :-).

Hi vince
The plugin phonertc function good for android... i never could test the demo ok... but with my own app it run good on android and in browser you must run... cordova run browser .. to launch the app... in case you use chrome and avoid cross reference with nodejs..you must diasable web security

hi @landycu13 how can I manage to let clients see each other not just caller and callee like this demo?


Update docs for validation errors

Review and update validation_errors.md
Fix a couple type errors in the conversion_table.py (noticed while trying to add examples to the validation_errors.md)
Replace the direct use of the schema classes in GenerateSchema with schema functions for consistency with other schema creation (also noticed while trying to add examples to the validation_errors.md)
Add a test that ensures that all error codes in pydantic_core.core_schema.ErrorType are either documented or manually removed from the expected values (this is done when the error cannot be produced by code paths currently exposed in pydantic, rather than pydantic-core)

This was brutal to go through, I think I got everything but wouldn't be surprised if there was still a couple minor inconsistencies or typos.
Selected Reviewer: @hramezani

please review

Great work @dmontagu
I left some comments.
Please update

@hramezani I think I addressed everything you pointed out. Please review


using dedicated HTTP clients

This attempts to use a dedicated, global HTTP client with a configurable global timeout for all scalers that do HTTP operations. This is a draft PR for now, but I'll update the docs too if the direction is acceptable.
Checklist

[ ] Commits are signed with Developer Certificate of Origin (DCO)
[x] Tests have been added
[ ] A PR is opened to update the documentation on https://github.com/kedacore/keda-docs
[ ] Changelog has been updated

Fixes https://github.com/kedacore/keda/issues/1133

@aman-bansal PTAL^

Sure I will take a look by EOD

@aman-bansal @zroubalik I commited a change for both reading the timeout from an env var and also putting the HTTP client into the ScalerConfig (instead of changing the signatures for each scaler constructor).
One question that I still have is, in the Metrics API scaler, how should we configure the TLS transport? Currently, I have a TODO on it because if you configure it in the constructor, you'd be setting it on the global HTTP client. See https://github.com/kedacore/keda/pull/1251/files#diff-c832e36c124014f31496fdbc15f77397f48b73855a7b7441fd95525ed6112f54R82

@arschles I think that we should expose the env variable in Deployment yaml file (bc Helm chart is not the only installation method).
Sorry I missed the TLS transport question, do you have any particular solution in mind?

I don't think we can do this. TLS config is something which is scaler specific. It needs to be manager per scaler basis. One single http.Client can't handle multiple TLS configs.
How about this for an approach:
Just like pkg/scaling/resolver/scale_resolvers.go:110#resolveEnv resolves env variables for a container and add it to the scaler config, entertain one more case where env variable is read from keda container. It will become part of scaler config. Now for every scaler you have this information available. Not just initialise each client per scaler.

@aman-bansal the metrics API scaler was the only one I saw that needs to specify its own TLS config (see my comment in that file) - would it make sense to make that a special case for now, instead of creating a client per scaler? I'm happy to do either, but the connection pooling across scalers could be beneficial. I'm not familiar with common workloads for KEDA, so I'll let you all decide whether that is truly beneficial

currently we have tls support in metric api scaler and kafka scaler. There is one open PR for rabbit mq scaler.

@aman-bansal got it. I'll change this to create one client per scaler like you said then.

@aman-bansal I've updated to create a new HTTP client for each scaler, instead of sharing one across them all. PTAL :smile:

Corresponding helm chart update: https://github.com/kedacore/charts/pull/90

Just fixed all the golang-ci checks. Looks like tests are broken on a context deadline exceeded error, but I cannot repro locally. am I not setting something up locally to be able to talk to rabbit?

Just fixed all the golang-ci checks. Looks like tests are broken on a context deadline exceeded error, but I cannot repro locally. am I not setting something up locally to be able to talk to rabbit?

That was just some intermittent failure caused by the environment, I've rescheduled the checks and it is passing now.

Could you please update Changelog as well?

@zroubalik I've been busy working on the HTTP scaling stuff but I haven't forgotten about this. I am going to be on vacation for the rest of the week and I'll get back to this early next.

@zroubalik ok, just made all the changes you requested and resolved conflicts. PTAL

@zroubalik alright, I had time to give this my full attention and it should be fixed up now (I foolishly didn't rebase the first time 😦). PTAL

@arschles one more small rebase and I think we are good to merge! Thanks 👍
We should document the KEDA_HTTP_DEFAULT_TIMEOUT env variable somewhere though, I am thinking about this section: https://keda.sh/docs/2.0/operate/     WDYT @tomkerkhove ?

We should document the KEDA_HTTP_DEFAULT_TIMEOUT env variable somewhere though, I am thinking about this section: keda.sh/docs/2.0/operate WDYT @tomkerkhove ?

Sounds like a good spot to me indeed!

Great, I'll fix this up today and add to the docs. Thanks @zroubalik @tomkerkhove 😄

Looking good! let's merge this once the docs are out :)

@zroubalik @tomkerkhove see https://github.com/kedacore/keda-docs/pull/324 for the docs PR


JS: More prototype pollution sinks

Adds angular.merge and $.extend <3.4.0 as sinks to the prototype pollution query.
Sinks that aren't version-dependent no longer need to be paired up with a dependency declaration.
angular.fromJson is now as a JsonParserCall

It's perhaps worth noting that client-side prototype pollution is only marginally supported at the moment, since window.location is not a source for this query. As we discussed Monday, introducing a flow label for tainted URL suffixes would make it easier to use window.location in more queries.

@esben-semmle can I get another review?


Modify search url

Since last week search URL has changed. This is the new one that works.

@draogn can we verify this endpoint? Afk for a while so need extra validation before merge. Will probably have to update tests as well.

Verify how? I got it by making a manual search on the website and watching the network traffic to the servers. And after appliying begins to work again.

Looks good to me - the updated address definitely works.  Looking at the rest of the code every other call was hitting apis.justwatch.com/content - only search_for_item was going to api.justwatch.com.
Don't see any changes required to the tests.
May not completely fix #32 as there's reference to total pages no longer being available.

Will try and do a release for master soon.

How soon should we be able to install via pip? I'm still seeing v0.5.0 as the latest.
$ pip3 install JustWatch --upgrade
Requirement already up-to-date: JustWatch in /usr/local/lib/python3.7/site-packages (0.5.0)

I will try to push to pip this weekend April 25th aest. Apologies for the delay


[Bug]: About page alignment problem in mobile device

What happened?
The about components are not properly visible on the mobile device
Add screenshots
Add screenshots

What browsers are you seeing the problem on?
Chrome
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Nehagaddam2909 it has been resolved


Conflict dependency with python-telegram-bot

For the latest release of python-telegram-bot v13.0, they explicitly set the minimum requirement for pytz here to be able to use a new attribute. See related issue here
My docker build stays with python-telegram-bot v12.8 for now, but would be great to handle this by Flexget, e.g. fixing python-telegram-bot version or bump the minimum version of pytz compatible with the latest telegram-bot.
Thanks!
Additional information:

FlexGet version: 3.1.72
Python version: 3.8
Installation method:
Using daemon (yes/no):
OS and version:
Link to crash log:

Is it planed to update the pytz dependency to version 2020.x?

I did an upgrade with pip install -U pytz so far did not see any negative effects except the warning.
Before flexget did not want to start, after the upgrade at least it was starting again

Also if you upgrade python-telegram-bot and then you upgrade FlexGet you get:
ERROR: python-telegram-bot 13.0 requires APScheduler==3.6.3, but you'll have apscheduler 3.5.0 which is incompatible.

I'm looking into bumping version of pytz now. This is an issue since this is a non-required dep, since telegram is a non-core plugin.
@gazpachoking maybe we can add a flexget[extra] installation that will handle all/some plugin deps with the ability to lock them?

@liiight Yeah, I've been trying to figure out some good way to handle this but I'm not exactly sure what would be best. If we could at least get a workflow which alerted us when our pinned deps conflicted with extra deps that would be nice. I was trying to figure something out with scripting pip-compile with multiple in files, but that doesn't work out so well due to it not preserving markers, which means I have to manually edit the generated requirements to remove the windows specific stuff every time.

@liiight Ooh, this looks promising, I've been waiting for movement from poetry to allow building with locked deps, I think it could help us simplify the whole workflow if it gets merged. https://github.com/python-poetry/poetry/pull/3341

@gazpachoking looks good 🤞

Is there a plan to bump python-telegram-bot to any version >=13.0 at any time soon?

Is there a plan to bump python-telegram-bot to any version >=13.0 at any time soon?

Any chance you're asking about the third-party docker image (https://github.com/wiserain/docker-flexget/) since python-telegram-bot is not installed by Flexget?

I have the same issue.

See https://github.com/python-telegram-bot/python-telegram-bot/issues/2758.


Getting 26 and 55 errors on makeOffer call.

Hey guys. I'm getting these type of errors
[Error: There was an error sending your trade offer.  Please try again later. (55)]
[Error: There was an error sending your trade offer.  Please try again later. (26)]
every time I try to send a trade offer. I don't have a trade ban or something like that on my acc, I waited more than 7 days and I can accept offers from other people, I just can't send them. This is how my opts param currently looks like:
{
   "partnerSteamId":"76561198028082712",
   "itemsFromMe":[
      {
         "appid":570,
         "contextid":1,
         "amount":1,
         "assetid":"6805779725"
      },
      {
         "appid":570,
         "contextid":1,
         "amount":1,
         "assetid":"6805779704"
      }
   ],
   "accessToken":"4Pc7KhfC",
   "itemsFromThem":[

   ]
}

First I was getting a lot of 26, and then it started to return only 55's. Any ideas? Thanks in advance.

Ok, contextid 1 is wrong for Dota. But I still get 26 error using 2 as a contextid parameter.


Build.gradle not working

🐛 Bug Report

Hi there actually i m trying to implement the flutter geolocator with map view but its giving men an error regarding android build.gradle file here is the error can u plz fix this.

Configuration
Version: 1.x
Platform:

[x] :robot: Android

@uzairleo are you sure this is related to our "geolocatOR" plugin? What I can see from your screenshot is that the Gradle is complaining about a project called "geolocatION" which is a different Flutter plugin (which you can find here: https://github.com/loup-v/geolocation).


Update balena.yml

Hey @willswire we've recently updated the syntax for the balena.yml file. Details for the new format can be found here
I went ahead and made the necessary changes in this PR.
Cheers!

@mpous you the man, Marc!


ENH: batching metrics with same tags in EMFLoggingMeterRegistry

Description
The current implementation of EMFLoggingMeterRegistry leads to occasional missing data points in metrics when using fluent-bit as sidecar to receive metrics through TCP and output to cloudwatch. See pic:

This PR mitigates the issue by batching metrics in the snapshot that shares the same dimensions (tags).
smoke test are still ongoing
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.
[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2467 (493afb6) into main (9e5cbfa) will decrease coverage by 0.17%.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##               main    #2467      +/-   ##
============================================
- Coverage     93.39%   93.23%   -0.17%
- Complexity     2093     2099       +6
============================================
  Files           247      247
  Lines          5861     5869       +8
  Branches        478      477       -1
============================================
- Hits           5474     5472       -2
- Misses          261      273      +12
+ Partials        126      124       -2

Impacted Files
Coverage Δ

...rch/dataprepper/meter/EMFLoggingMeterRegistry.java
98.33% <100.00%> (+0.11%)
:arrow_up:

... and 2 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

is it that the requests to publish metrics were getting throttled so batching helps?
I have not been able to see logs directly indicating that but it looks like concurrency is the issue. Probably b/c EMFMetricLogger logs are mostly at DEBUG level

Is there a constraint on how many metrics we can put in a batch and how do we handle the constraint here?
That is being taken care of under the hood of MetricsLogger: https://github.com/awslabs/aws-embedded-metrics-java/blob/master/src/main/java/software/amazon/cloudwatchlogs/emf/model/MetricsContext.java#L312-L361


⚠ Bofrost.fr has degraded performance

In 4115a7c, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1251 ms

Resolved: Bofrost.fr performance has improved in c78cc7e.


document kubeadm annotations,labels,taints

This is a Feature Request

What would you like to be added
Document the annotation keys that kubeadm uses, on the page Well-Known Labels, Annotations and Taints/
Why is this needed
kubeadm uses annotations within kubernetes.io, for example kubeadm.kubernetes.io/etcd.advertise-client-urls
per https://kubernetes.io/docs/reference/labels-annotations-taints/ we document all annotations, labels and taints that are in kubernetes.io
Comments
/priority backlog
/lifecycle frozen
/sig cluster-lifecycle
/kind feature
/language en
This isn't a big priority. I've made it insta-frozen because we should nevertheless do it.

@neolit123 FYI

here is what kubeadm has currently:
annotations
kubeadm.alpha.kubernetes.io/cri-socket
Annotation that kubeadm uses to preserve the CRI socket information given to kubeadm at init/join time for use later. kubeadm annotates the node object with this information. The annotation remains "alpha", since ideally this should be a field in KubeletConfiguration instead.
kubeadm.kubernetes.io/etcd.advertise-client-urls
Annotation that kubeadm places on locally managed etcd pods to keep track of a list of URL where etcd clients should connect to. This is used mainly for etcd cluster health check purposes.
kubeadm.kubernetes.io/kube-apiserver.advertise-address.endpoint
Annotation that kubeadm places on locally managed kube-apiserver pods to keep track of the exposed advertise address/port endpoint for that API server instance.
kubeadm.kubernetes.io/component-config.hash
Annotation that kubeadm places on config maps that it manages. It contains a hash used to determine if the user has applied settings different from the kubeadm defaults for a particular config map.
labels
Note: Starting in v1.20, this label is deprecated in favor of node-role.kubernetes.io/control-plane.
node-role.kubernetes.io/master
Label that kubeadm applies on the control plane nodes that it manages.
taints
Note: Starting in v1.20, this label is deprecated in favor of node-role.kubernetes.io/control-plane.
node-role.kubernetes.io/master
Taint that kubeadm applies on control plane nodes to allow only critical workloads to schedule on them.
/retitle document kubeadm annotations,labels,taints
/help

@sftim is anyone working on this issue? if not please assign me.

/assign @ashish-jaiswar
Go ahead!

/triage accepted

Hi, @sftim I need your help, can you tell me How can I resolve this issue?

Hi, @sftim I need your help, can you tell me How can I resolve this issue?

Hi @ashish-jaiswar
If you can take the information from https://github.com/kubernetes/website/issues/30613#issuecomment-977922126 and edit https://kubernetes.io/docs/reference/labels-annotations-taints/ to include those details, that should resolve the issue when your pull request merges.
To get started with code contributions to our docs, check out https://www.k8s.dev/docs/guide/ and https://k8s.io/docs/contribute/new-content/

Duplicated by #31952

https://github.com/kubernetes/website/pull/31391

merged
/close


Fix travis

@aminroosta @ashkanx What was broken in travis ci? According to webpack conf, everything is copied into www and not into dist. Have we tested this change properly?


works with pandas < 2 and pandas 2

This seems to work. I'll test it locally tomorrow after work. There were errors in two builds that are not related to your changes. (old statistical tests, which I should remove soon).


anytype: 0.40.9 -> 0.41.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/anytype/versions.
meta.description for anytype is: P2P note-taking tool
meta.homepage for anytype is: https://anytype.io/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.41.0 with grep in /nix/store/ahrh19w3w43yfcd8fxsp0nwazby5596l-Anytype-0.41.0
found 0.41.0 in filename of file in /nix/store/ahrh19w3w43yfcd8fxsp0nwazby5596l-Anytype-0.41.0

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

anytype

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/4394bcecaf194f6e38f73be2922cb5043b78abb1#anytype

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

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

1 package built:

anytype

Maintainer pings
cc @running-grass for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/anytype/versions.
meta.description for anytype is: P2P note-taking tool
meta.homepage for anytype is: https://anytype.io/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.41.1 with grep in /nix/store/0bbh49jkpbky35kyczw783gm4wlhk9gr-Anytype-0.41.1
found 0.41.1 in filename of file in /nix/store/0bbh49jkpbky35kyczw783gm4wlhk9gr-Anytype-0.41.1

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

anytype

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/4174a85e052fc1c8e398ce73f1455b678555c4e9#anytype

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

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

1 package built:

anytype

Maintainer pings
cc @running-grass for testing.


Not loading via Webpack but CDN works fine

I'm having this strange issue where if I load Bluebird using the CDN link in my index file, my application works fine, but when remove the CDN and bundle bluebird using webpack, I get an error saying the settle function doesn't exist

TypeError: Promise.settle is not a function

From what I can see, the library isn't making the necessary changes to the native Promise object. Not sure why it works on way (CDN through index.html) but not through Webpack

I was able to get it working by changing
require('bluebird')

to
require('expose?Promise!bluebird');

Or you can left require('bluebird') and setup webpack as this:
new webpack.ProvidePlugin({                 'Promise': 'bluebird' });


API updates for SB extension

Resolves https://github.com/Azure/azure-sdk-for-net/issues/24672

API changes have been detected in Microsoft.Azure.WebJobs.Extensions.ServiceBus. You can review API changes here
API changes
-         public Func<ProcessErrorEventArgs, Task> ExceptionHandler { get; set; }
-         public MessageProcessor(ServiceBusProcessor processor);
+         protected MessageProcessor(ServiceBusProcessor processor);
-         public SessionMessageProcessor(ServiceBusSessionProcessor processor);
+         protected SessionMessageProcessor(ServiceBusSessionProcessor processor);
-         public virtual Task<bool> BeginProcessingMessageAsync(ServiceBusSessionMessageActions actions, ServiceBusReceivedMessage message, CancellationToken cancellationToken);
-         public virtual Task CompleteProcessingMessageAsync(ServiceBusSessionMessageActions actions, ServiceBusReceivedMessage message, FunctionResult result, CancellationToken cancellationToken);
+         protected virtual Task<bool> BeginProcessingMessageAsync(ServiceBusSessionMessageActions actions, ServiceBusReceivedMessage message, CancellationToken cancellationToken);
+         protected virtual Task CompleteProcessingMessageAsync(ServiceBusSessionMessageActions actions, ServiceBusReceivedMessage message, FunctionResult result, CancellationToken cancellationToken);


[5.2] Function to manage multiple SQL where clauses in array

Created method to add multiple SQL where clauses inside an multi-dimensional array instead of chaining multiple where function calls for eloquent.
Normal where function calls assume '=' operator by default if multiple where clauses are in an array.
$users = App\User::where([
    'status' => '1'
    'subscribed' => '1',
])->get();

This PR changes the above to
$users = App\User::whereAll([
['status','1'],
['subscribed','1'],
])->get();

If any other operator needs to be specified:
$users = App\User::whereAll([
['status','=','1'],
['subscribed','<>','1'],
])->get();

Done. No need for an extra method. Can now do this on where method.


Access to the AWS request ID headers

We have a problem that AWS requests occasionally stall for us since last Thursday, and their support asked to provide request id headers of requests that stall (here are the headers in question https://aws.amazon.com/premiumsupport/knowledge-center/s3-request-id-values/). Problem is, using FGetObject (and even GetObject for that matter) does not expose these headers, and we cannot find any interface that provides those info.
How can we provide AWS with these headers they need to be able to debug the issue?

@bjg2 You can use the tracing APIs to get that information
You can add this line
s3Client.TraceOn(os.Stderr)
here https://github.com/minio/minio-go/blob/master/examples/s3/getobject.go#L48
this will print headers returned by AWS S3.