导入报错

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\0.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\1.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\2.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\3.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\4.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\5.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\6.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\7.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\8.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\9.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\10.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\11.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\12.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\13.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\14.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\15.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\16.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\17.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\18.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\19.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\20.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\21.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\22.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\23.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\24.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\25.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\26.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\27.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\28.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\29.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\30.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\31.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\32.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\33.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\34.jar, C:\WorkPlace\JunDingTv\master\TextGsyDemo\app\build\intermediates\transforms\dexBuilder\debug\35.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.app.BackStackRecord$Op

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

类似问题清自行百度解决，属于依赖冲突或者版本冲突等问题


String record handling data truncation

When creating a string record, if you set an initial_value that is longer than 39 characters the data is silently truncated. It would be useful if there was at least a warning/error of some kind emitted when this occurs.
In this example note that the trailing "!" of the string is missing:
# Import the basic framework components.
from softioc import softioc, builder, asyncio_dispatcher

# Create an asyncio dispatcher, the event loop is now running
dispatcher = asyncio_dispatcher.AsyncioDispatcher()

# Set the record prefix
builder.SetDeviceName("PREFIX")

# Create some records
bo1 = builder.stringOut('SO', initial_value="hello this is long sentence of 39 chars!")

# Boilerplate get the IOC started
builder.LoadDatabase()
softioc.iocInit(dispatcher)

# Finally leave the IOC running with an interactive shell.
softioc.interactive_ioc(globals())

Getting the value:
[...]$ caget PREFIX:SO
PREFIX:SO                      hello this is long sentence of 39 chars

This ended up being mostly fixed in #60, then fully fixed in 53f107d4e375c27af8fdc96017eead873494646d,  with a test added in https://github.com/dls-controls/pythonSoftIOC/commit/5f14ca3efc650875a42362f57134f599cb328555 as part of #79


Home page setup

Deleting unneeded code to prepare a clean starting point:

Deleting unnecessary routes/components in /src/index.js
Create a new '/' route that leads to LandingPage component
Modify LandingPage component to serve as basic landing page
Create basic Navbar component
Create login / logout functionality for the Navbar

Looks good!


How does one know, what is the code-interface for a given Rive file?

Description
I get tons of rive files with no or very little documentation and then I bang my head on typos, missed state-machines, input, dynamic text names. How does one know for a given rive file, what are the state-machines, inputs (along with its type), listeners, events, and dynamic-text-runs using code.
 You get the file import it in your IDE and now you have no clue on what is the code-interface coz you don't know the names or the names shred/documented had typos. It never works and you bang your head, because you mis-spelled something or you don't even know the name of that-something.
Source .riv/.rev file
<--
download any random rive file which has tons of inputs, dynamic texts etc.-->
Expected behavior
User should be able to at least  "Print" / "Console.log" all the inputs, artboards, timelines, state-machines, events and so on.
Screenshots
N/A
Device & Versions (please complete the following information)
All
Additional context
In simple words users want to see what are the available node-names for code-interface for a given rive file.

I'd also like to see this.
Ideally, we'd be able to export the ViewModel from Rive app and therefore all of the options are available via code completion.


Add support for more Kubernetes Resources

Codecov Report

Merging #470 into master will decrease coverage by 3.89%.
The diff coverage is 58.82%.

@@            Coverage Diff             @@
##           master     #470      +/-   ##
==========================================
- Coverage   56.49%   52.59%   -3.90%
==========================================
  Files        1073     1080       +7
  Lines       34102    34364     +262
  Branches     4763     4831      +68
==========================================
- Hits        19266    18075    -1191
- Misses      14836    16289    +1453

Moved upstream


python3Packages.mayavi: 4.7.1 -> 4.7.2; vtk -> vtk_9

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[NA] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I've rebased onto master and resolved merge conflicts due to VTK expression refactoring.  I've left the disabledIf isPy2k for now.
I also removed vtk_7 and vtk_8 from the Python package set since nothing in the tree uses them and they're expensive to build.

I've rebased onto master and resolved merge conflicts due to VTK expression refactoring.  I've left the disabledIf isPy2k for now.
I also removed vtk_7 and vtk_8 from the Python package set since nothing in the tree uses them and they're expensive to build.

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 97602 run on x86_64-linux 1

5 packages built:

python37Packages.mayavi
python37Packages.vtk
python38Packages.mayavi
python38Packages.vtk
python39Packages.vtk

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 97602 run on x86_64-linux 1

5 packages built:

python37Packages.mayavi
python37Packages.vtk
python38Packages.mayavi
python38Packages.vtk
python39Packages.vtk

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 97602 run on x86_64-darwin 1

2 packages failed to build and are new build failures:

python37Packages.mayavi: log was empty
python38Packages.mayavi: log was empty

3 packages built:

python37Packages.vtk
python38Packages.vtk
python39Packages.vtk

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 97602 run on x86_64-darwin 1

2 packages failed to build and are new build failures:

python37Packages.mayavi: log was empty
python38Packages.mayavi: log was empty

3 packages built:

python37Packages.vtk
python38Packages.vtk
python39Packages.vtk

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 97602 run on x86_64-darwin 1

2 packages failed to build and are new build failures:

python37Packages.mayavi: log was empty
python38Packages.mayavi: log was empty

3 packages built:

python37Packages.vtk
python38Packages.vtk
python39Packages.vtk

error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nixbuilder for '/nix/store/4wkaww74i5d5czvk8dcqqd5d0ir32ryy-python3.7-envisage-4.9.2.drv' failed with exit code 1; last 10 log lines:                                                            Ran 229 tests in 1.446s                                                                                FAILED (failures=19, errors=1, skipped=6)                                                                                Error in atexit._run_exitfuncs:                                                                                Traceback (most recent call last):                                                                                File "/private/tmp/nix-build-python3.7-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 198, in close                                                  self.close_shell()                                                                                File "/private/tmp/nix-build-python3.7-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 215, in close_shell                                            shell = self.kernel.shell                                                                                AttributeError: 'NoneType' object has no attribute 'shell'                                                                                error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix1 dependencies of derivation '/nix/store/8k591n422x7f9h5jvddywsrgak6sd1g3-python3.7-mayavi-4.7.2.drv' failed to build                                                                       error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nixbuilder for '/nix/store/6sx91w7mhxfxph4mp5ygbmq8w3n7qzvd-python3.8-envisage-4.9.2.drv' failed with exit code 1; last 10 log lines:                                                            Ran 229 tests in 1.434s                                                                                FAILED (failures=19, errors=1, skipped=6)                                                                                Error in atexit._run_exitfuncs:                                                                                Traceback (most recent call last):                                                                                File "/private/tmp/nix-build-python3.8-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 198, in close                                                  self.close_shell()                                                                                File "/private/tmp/nix-build-python3.8-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 215, in close_shell                                            shell = self.kernel.shell                                                                                AttributeError: 'NoneType' object has no attribute 'shell'                                                                                error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix1 dependencies of derivation '/nix/store/zbxsz8garalqjhhm355nwdx6pnfbrsjl-python3.8-mayavi-4.7.2.drv' failed to build                                                                       error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix2 dependencies of derivation '/nix/store/xqmlhm3h4wq1d57bb6w9q7br097y2fad-env.drv' failed to build

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 97602 run on x86_64-darwin 1

2 packages failed to build and are new build failures:

python37Packages.mayavi: log was empty
python38Packages.mayavi: log was empty

3 packages built:

python37Packages.vtk
python38Packages.vtk
python39Packages.vtk

error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nixbuilder for '/nix/store/4wkaww74i5d5czvk8dcqqd5d0ir32ryy-python3.7-envisage-4.9.2.drv' failed with exit code 1; last 10 log lines:                                                            Ran 229 tests in 1.446s                                                                                FAILED (failures=19, errors=1, skipped=6)                                                                                Error in atexit._run_exitfuncs:                                                                                Traceback (most recent call last):                                                                                File "/private/tmp/nix-build-python3.7-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 198, in close                                                  self.close_shell()                                                                                File "/private/tmp/nix-build-python3.7-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 215, in close_shell                                            shell = self.kernel.shell                                                                                AttributeError: 'NoneType' object has no attribute 'shell'                                                                                error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix1 dependencies of derivation '/nix/store/8k591n422x7f9h5jvddywsrgak6sd1g3-python3.7-mayavi-4.7.2.drv' failed to build                                                                       error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nixbuilder for '/nix/store/6sx91w7mhxfxph4mp5ygbmq8w3n7qzvd-python3.8-envisage-4.9.2.drv' failed with exit code 1; last 10 log lines:                                                            Ran 229 tests in 1.434s                                                                                FAILED (failures=19, errors=1, skipped=6)                                                                                Error in atexit._run_exitfuncs:                                                                                Traceback (most recent call last):                                                                                File "/private/tmp/nix-build-python3.8-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 198, in close                                                  self.close_shell()                                                                                File "/private/tmp/nix-build-python3.8-envisage-4.9.2.drv-0/envisage-4.9.2/envisage/plugins/ipython_kernel/kernelapp.py", line 215, in close_shell                                            shell = self.kernel.shell                                                                                AttributeError: 'NoneType' object has no attribute 'shell'                                                                                error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix1 dependencies of derivation '/nix/store/zbxsz8garalqjhhm355nwdx6pnfbrsjl-python3.8-mayavi-4.7.2.drv' failed to build                                                                       error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix2 dependencies of derivation '/nix/store/xqmlhm3h4wq1d57bb6w9q7br097y2fad-env.drv' failed to build

Obsoleted by #133056.


port out of range:-1 if host is starting with slash

Description
If hostname is given to Config with leading slash it causes exception 'port out of range:-1'
Expected behavior
Either of two variants:

exception about incorrect host should be thrown
slash should be trimmed silently from host string and proceed.

Actual behavior
Exception about incorrect port instead of incorrect host.
java.lang.IllegalArgumentException: port out of range:-1

	at java.base/java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
	at java.base/java.net.InetSocketAddress.createUnresolved(InetSocketAddress.java:254)
	at org.redisson.client.RedisClient.resolveAddr(RedisClient.java:192)
	at org.redisson.connection.MasterSlaveEntry.setupMasterEntry(MasterSlaveEntry.java:118)
	at org.redisson.connection.MasterSlaveEntry.setupMasterEntry(MasterSlaveEntry.java:108)
	at org.redisson.connection.MasterSlaveConnectionManager.initSingleEntry(MasterSlaveConnectionManager.java:334)
	at org.redisson.connection.MasterSlaveConnectionManager.<init>(MasterSlaveConnectionManager.java:143)
	at org.redisson.connection.SingleConnectionManager.<init>(SingleConnectionManager.java:30)
	at org.redisson.config.ConfigSupport.createConnectionManager(ConfigSupport.java:190)
	at org.redisson.Redisson.<init>(Redisson.java:67)
	at org.redisson.Redisson.create(Redisson.java:108)

This behaviour is very misleading and cause to search a ghost mistake with port configuration instead of host typo.
Steps to reproduce or test case
        int port = 6379;
        String host = "/localhost";      // <- hostname is started with slash by config mistake, typo, etc.
        Config config = new Config();
        config
                .useSingleServer()
                .setAddress("redis://" + host + ":" + port)
                .setDatabase(0);

        redisson = Redisson.create(config);

Redisson version
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson</artifactId>
            <version>3.16.1</version>
        </dependency>

Fixed. Thanks for report


fix(operator): allow privilege escalation for containerd

Purpose of PR?:
Fixes #
Does this PR introduce a breaking change?
If the changes in this PR are manually verified, list down the scenarios covered::
Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:

[ ] Bug fix. Fixes #
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] PR Title follows the convention of  <type>(<scope>): <subject>
[ ] Commit has unit tests
[ ] Commit has integration tests

Handled in https://github.com/kubearmor/KubeArmor/pull/1418


Fix description of required rails modules for sprocket removal in README

Fixes #2

Thank you, @mvitz 🙇

Oh, you closed the wrong issue. #2 is still open, but #9 is closed.


Add tests for WHO

Matches the current version of https://github.com/ircdocs/modern-irc/pull/138

I pushed the fix for https://github.com/ergochat/ergo/issues/1831 to irctest_stable in case you want to cover it.

Although, now that I think about it, that probably breaks your tests covering WHO * o. Before, those tests worked coincidentally
because you can always see yourself in WHO output. Now Ergo will return an empty list :-\


Adding stats log to traffic_ops_ort.pl

This adds a stats log that is consumable by telegraf to send directly to influxdb

This requires a few more changes that just the traffic_ops_ort.pl script. I'll post again when I have those changes completed.


fix: sort pages

fix #840

IMO 840 is not a bug, you should not use README.md and index.md together, and we recommend you to use README.md, index.md is just a fallback choice.
In other word, this kind of override is expected. If you are placing 2 files which will be converted to one route path, one will override the other.
If you do want to make an improvement, sort their original value to make sure they have a consistent sequence.


Redesigning Modelina’s website while keeping the UI/UX in mind.

Why do we need this improvement?
The current website of Modelina is not as appealing as Async API's main website. It is not mobile-responsive and does not have all the features and information that users need. The website should be improved to make it more user-friendly and informative. Also, the Docs of Modelina should be integrated with keeping UX in mind.
These are some of the few things that we can improve.

How will this change help?
Redesigning the website will make the information more easily accessible in a visually appealing manner. Also, by integrating the docs directly into the website will reduce the time of searching things on GitHub.
Expected Flow

Designing the Figma mockups for complete websites (Including Docs)
Building the UI for the design.
Integrating the docs.

What is the motivation?
The People and the Product :slightly_smiling_face:

Definitely could use a design uplift 😆
My only concern is the Figma mockups, and this depends on how far you want to take it, but as long as it's just for your convenience for you to contribute that's perfectly fine 🙂

Regarding the Figma mockups, it gives the idea of where the design is heading. Also, it's easier to take feedback with design mockups. If you have any suggestions or specific considerations in mind, I would love to take your input.

It's a nice idea, but not everyone will have Figma, use it, or even know how to use it (me included). So requiring Figma to be updated each time before the website changes will be almost impossible to enforce, or not make any sense IMO.
It sounds perfect for a product team, in the same company, that has the possibility to enforce it, but in open source, not so much.
That's why I am saying that as long as it's not a requirement to change Figma when doing any changes to the website, then it's cool with me 👍

How does that sound @prajjwalkapoor?

Yeah, @jonaslagoni, it's okay if we proceed that way also. I am starting the work on the website then.

IMO it would be good if we open several issues as then we will be able to divide task and I guess there will be no need of figma also

Nice idea @sambhavgupta0705, we can do this

Hey folks, any update here? Anything you need help with? 🙂

I'll include this in the design issues that @fmvilas, and I are compiling for our new design contributors. I appreciate you bringing it to my attention, @sambhavgupta0705. Thank you!

Hi @prajjwalkapoor I'm interested in working on this issue.

Please check this out.

Hey @Mayaleeeee @prajjwalkapoor won't be working on this issue.
If you agree @jonaslagoni we can work on this design

cc @devilkiller-ag incase you find any of this interesting ✌

Hi, @jonaslagoni This issue seems to be a perfect fit for me. I am interested in working on this. So will we follow the above figma design shared by @Mayaleeeee as a base? Also, can I include issue #1715 in this?

I would probably split it up into multiple PRs but you have free use to do what you want 😄

That too seems to be a good option. I will access the website in detail and start working on this my creating multiple PRs. By the way, can this work be eligible for Bounty?

@jonaslagoni After carefully comparing the AsyncAPI website and the Modelina website, I think we can divide this work into the following PRs:

Redesign Navbar
Redesign Hero Section
Redesign Usage Section
Make Playground Mobile Responsive

Let me know if there is something else that I forgot.

Sounds good 👍
Feel free to re-organize the issues as you see fit 😄

Okay Great, I will start with Navbar!

@jonaslagoni After carefully comparing the AsyncAPI website and the Modelina website, I think we can divide this work into the following PRs:

Redesign Navbar
Redesign Hero Section
Redesign Usage Section
Make Playground Mobile Responsive

Let me know if there is something else that I forgot.

can i help you make some components here?
cc @jonaslagoni @devilkiller-ag

Hi @Min2who Thanks for asking. However, I would like to work on all of these parts. I would appreciate it if you can solve some stale issues.

Hey @jonaslagoni, now I will move forward with working on responsive layout of playground.

@devilkiller-ag does it make sense to close this issue down and open smaller issues as needed for the website?

Hi @jonaslagoni, yes the work on this issue was completed in PR #1732 and #1733. So we can close this issue. However, I feel we can make the hero section styling for the mobile view better. Should I  open an issue for this today?

For sure 🤙


Chore: introduce Next.js

What it solves
Part of #2437
How this PR fixes it

Adds Next.js
Wraps our Root into a Next App component
Updates image imports (in Next they are an object with an src prop)

The app is rendered inside the default Next.js page but the routing is still happening via React Router.
Next.js relies on the useRouter hook and it's a lot of work to replace all of our router dependancies with it. For now, I've just added a proxy router module that centralizes all our react-router imports.
The dev build seems to be faster.
How to test it
Everything should work like before, especially navigation.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

4 of 30 (13.33%)  changed or added relevant lines in 15 files are covered.
2489 unchanged lines in 321 files lost coverage.
Overall coverage decreased (-25.7%) to 7.955%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

jest.config.js
0
1
0.0%

src/routes/safe/components/Apps/components/AppCard/index.tsx
0
1
0.0%

src/routes/safe/components/Balances/utils/setCollectibleImageToPlaceholder.ts
0
1
0.0%

src/routes/safe/components/Balances/utils/setTokenImgToPlaceholder.ts
0
1
0.0%

src/routes/safe/components/Transactions/TxList/TokenTransferAmount.tsx
0
1
0.0%

next.config.js
0
2
0.0%

pages/[...].tsx
0
2
0.0%

pages/index.tsx
0
2
0.0%

src/routes/opening/index.tsx
0
2
0.0%

src/components/Root/index.tsx
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/components/CustomIconText/index.tsx
1
0%

src/components/forms/Field/index.tsx
1
0%

src/components/Providers/index.tsx
1
0%

src/components/ScanQRModal/style.ts
1
0%

src/components/WalletSwitch/index.tsx
1
0%

src/logic/addressBook/model/addressBook.ts
1
66.67%

src/logic/config/store/selectors/index.ts
1
66.67%

src/logic/contracts/generateBatchRequests.ts
1
0%

src/logic/contracts/spendingLimitContracts.ts
1
0%

src/logic/cookies/store/selectors/index.ts
1
0%

Totals

Change from base Build<PHONE_NUMBER>:
-25.7%

Covered Lines:
730

Relevant Lines:
8713

💛  - Coveralls


non-human Trio?

Hi there,
could this be useful for non-human trio data?
Many thanks!
CW

We didn't try, but should be working as well.


copy all files and folders from pack dir

Note this PR supersedes https://github.com/Azure/draft/pull/453 and combines commits from https://github.com/Azure/draft/pull/550 that copies all folders and well as all files.
I did attempt to patch the PR from @bacongobbler but as there was a rebase and quite a few conflicts it became very messy and hard to follow - this is that PR https://github.com/bacongobbler/draft/pull/2 which I couldn't get to work nicely so I closed.  Instead that same branch has no conflicts with Azure master and includes all the commits from #453 so am hoping things are clearer here, sorry not to reuse the same original PR but I hope it makes sense why.
One thing to highlight - I reverted the helm bump commit from #453, note that it's not being reverted from master, just the pull request.  I reverted it for a cpl of reasons:

it was breaking CI, I couldn't get the build to compile
I wasn't sure if it was directly needed to copy the chart folders as the current code seems to work great without it
I spent a couple of hours trying to figure out the godeps changes needed to get the helm bump to work but failed. I wondered, as the copying folders works without it the helm bump, is it better being added as a separate PR?

thanks @rawlingsj! I'll have a look at this.

Hey @michelleN, those NOTICE file removements were from my PR in #453. I should probably split that out into another PR. Thank you for noticing that!

split out the notice files in #594. :)

Can we do a rebase of this PR?
Is there anything blocking it?
Thanks!

want want want

ping @rawlingsj

Yeah there still needs to be a bit of work on this to allow all folders be copied across and not just chart folders.  That aside I think we we aiming to have https://github.com/Azure/draft/pull/453 merged as this PR is based on it.

Hey @rawlingsj! We merged something similar in #741 so it looks like this is good to close now that we perform a deep copy of everything from the pack dir into the application directory. Let us know if there's issues with the new functionality in the canary release! Thanks for your contribution/feedback; we really appreciate it. :)

@bacongobbler awesome! I'll give it a whirl - thanks!


Collect test results from ResultStore

We'll need to make a ResultStore API call with the invocation ID to get the data and then upload that to BigQuery.
CC @jtattermusch

CC @adelez @dgquintas

Done in #14736 and #15251


fix: get sites slack command

Please ensure your pull request adheres to the following guidelines:

[ ] make sure to link the related issues in this description
[ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues
Thanks for contributing!

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

v1.25.1
GitHub release

Your semantic-release bot :package::rocket:


fleet SSO callback?SAMLResponse 405 Method not allowed using keycloak IDP

#1688 # What version of fleet are you using (fleet version --full)?
fleet - version 2.3.0
branch:       master
revision:     bc9782e9b0c431ce8c24552861f5527fb0f4c390
build date:   2019-08-14T18:50:20Z
build user:   zwass
go version:   go1.12.8
What operating system are you using?
cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.9.2
PRETTY_NAME="Alpine Linux v3.9"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
What did you do?
Attempting to login with SSO using keycloak for IDP.
What did you expect to see?
To see the fleet web frontend
What did you see instead?
"This page isn't working, HTTP Error 405"
i did see this in the webconsole
Request URL: https://<IP_ADDRESS>/api/v1/kolide/sso/callback?SAMLResponse=7Zdtb9owEMe%2FCsp7x3ngIViAxooqobWdVKpq6pvKcS7Fa2Ij24F2n35OSBBhhXbTXkwTL22fz%2F%2F73Z3jjDTNsxW5Bb2SQkPnJc%2BEJtXk2CmUIJJqromgOWhiGFlMr69I4HpkpaSRTGbO3pbTO6jWoAyXwunMQBsuaDkYO0tjVppgnGYABikpJBIyAd9d59pNYO3GVNPMuBowXXG89vGzzHgCWGuJGc2ymLJnpzOfjZ357LEfBCzoDrqox%2FwEdf3QQ5EXBMiLw2E3jdMB80NrLJqI7%2BTY4UnwpT9c6iRay013uXwYWAutC5gLbagwYyfw%2FCHyPeRFd75Pwj4Je24Y9R6czj0oXYVhQ3QmoxIDqfaqyZHAgrcCK8wSK6BZrrGxcEZ439Fom6SFoabQ7dGFddi5p1kBp%2BHryposCsZAawdPtie0nZJpk6JtUj%2Bcz5p9L0r7EQwpYjSw7Ls9iqKYhihkfkrjmMYR%2BP8gWUsl%2Fg7M1KMbG%2Bl81rmUKqfmOALf9asZnqC0MiWQU55Nk0SVhCdWlXj9tBNSn7t13j73QoqUlx5K8NdgljI5TZ7lJAaqQDnHHc2ooR8o8xtpvoqvapoaUIfJ6Np8hHUyboHxFYcyY3%2BnX5sKfEv7wVIdpLVIeLmsS9WfwVKHt%2BqnkXwqtHCws2tKv0hseAwsMKM428porUy2YdTadrMH49Z%2BfCC88WisSVwYKJsPckv1cKFzqay3JHst62XsVJVlI6oGf1iQ1e73irrqayuinG282HRy5hwqrO6c%2Bu5%2F0duqsEWx2WzcTehK9YQDz%2FPxt%2BurBVtaIc7Olr9vjHh1PTCwuzQn5nVl436xHxl7uHg61lttbZPD2V8Yb3Heygz%2BKzh1t1XteSazTyangj4BoozJQpzZtNisOWyQfdSlPDv304mqQRkXz%2FpMaJ9QkdPH8p0lFf9RfcDPePbxyDS1RQOPtHp7n9nss%2FmtrxQ%2B%2BnrC7d%2BX3d9N8%2Fyd%2FAQ%3D Request Method: GET Status Code: 405 Method Not Allowed Remote Address: <IP_ADDRESS>:443 Referrer Policy: no-referrer-when-downgrade

Does anybody have any idea on how to resolve this.
I am using Keycloak IDP and using their SAML solution to setup fleet for SSO.

This issue can be closed as it has been resolved and was a config issue in keycloak.


allow set value for computed signals

Hi, thanks for your wonderful library.
I'm using Riverpod for state management, and I'm starting to migrate to Signals. However, I'm missing the ability to change computed values.

If there is a way to allow computed values to automatically recalculate when their dependencies change, that would be great. Otherwise, it would be helpful to allow developers to manually change the value of a computed value at any time.

Now I'm using effects with Signals to achieve this, but I would appreciate a more convenient way, such as allowing Signals to accept callback functions.
Instead of using effects, it would be much more convenient if Signals could accept callback functions as their value. This way, the value would be automatically updated whenever its dependencies change.

I'm using Riverpod for state management, and I'm starting to migrate to Signals. However, I'm missing the ability to change computed values.

Like Riverpod computed values are automatically changed when the dependencies changed (i.e. inside signals on computed).

If there is a way to allow computed values to automatically recalculate when their dependencies change, that would be great. Otherwise, it would be helpful to allow developers to manually change the value of a computed value at any time.

This is the behavior expected by computed. If you are not getting reactivity, you need to run the watch method. Unlike Riverpod, Signals does not couple a widget for marking to a widget for rebuild... (maybe that's the problem). So you should use the Watch widget or use the watch method on signal.
I hope it helped

I apologize for not clarifying my point earlier. I am not a native English speaker.
What I meant is that there is a behavior inside notifier/asyncNotifier in Riverpod that combines the functionality of a computed variable and a mutable state variable. It is similar to a signal, but instead of accepting an initial value, it accepts a callback function. This allows for more flexibility in calculating the initial value, especially when it depends on other state or asynchronous operations.
Additionally, the value can be updated directly by setting it using the state = newValue method, just like a mutable state variable. This makes it more convenient for cases where you want to dynamically change the state.
However, I am currently unable to achieve this behavior. With a signal, I need to either subscribe to it or use an effect callback to change its value. This is not the case with notifier/asyncNotifier, where I can directly set the value.

You can extend ValueSignal and I think that gets you everything you would want.
The only difference is that instead of a build method like Riverpod you have a value object like Cubit.
class Counter extends ValueSignal<int> {
   Counter() : super(0);

   void increment() => value++;
   void decrement() => value--;
   void reset() => value = 0;
}

Assume that I have two counters, Counter1 and Counter2. Counter2 should automatically update its value whenever Counter1 changes, without the need for an initial value assignment. Counter2 should simply "listen" to Counter1 and reflect its current value.
Additionally, I should be able to directly modify Counter2's value independently of Counter1.
Here's an example illustrating these functionalities:

// Initialize Counter1 and Counter2
counter1.value = 0;
counter2 = listen to (counter1)

// Print initial values
print("Counter1: $counter1");  // Output: Counter1: 0
print("Counter2:  $counter2");  // Output: Counter2: 0

// Counter2 automatically updates to reflect the change in Counter1
counter1.value = 555;
print("Counter1:  $counter1");  // Output: Counter1: 555
print("Counter2: $counter2");  // Output: Counter2: 555

// Update Counter2 independently
counter2.value = 999;
print("Counter1:  $counter1");  // Output: Counter1: 555
print("Counter2: $counter2");  // Output: Counter2: 999

// Counter2 automatically updates again
counter1 = 777
print("Counter1: $counter1");  // Output: Counter1: 777
print("Counter2: $counter2");  // Output: Counter2: 777

Modifying a computed signal is an anti-pattern. Just use 2 regular signals if you want that ability.
var counter1 = signal(0);
var counter2 = signal(counter1.value)

counter1.subscribe((newValue) => counter2.value = newValue);

Just use the computed method.
final counter1 = signal(0); final counter2 = computed(() => counter1.value)

He wants to be able to modify counter2. Is that allowed now?

Modifying a computed signal is an anti-pattern. Just use 2 regular signals if you want that ability.
var counter1 = signal(0);
var counter2 = signal(counter1.value)

counter1.subscribe((newValue) => counter2.value = newValue);
// now counter2 will mirror counter1 and you can set counter2 independently

Thanks, but while this works well for simple scenarios with a single signal, it becomes difficult to manage with multiple signals.
Something like this:

 final counter1 = signal(10);
 final counter2 = signal(5);
 final counter3 = computedSignal(()=> counter1() * counter2() );

...
print("counter: ${counter3()}"); //  50

counter3.value = 7;
print("counter: ${counter3()}"); //  7

counter2.value = 10;
print("counter: ${counter3()}"); //  100

Hi @rodydavis
As you know, you previously closed this issue. I understand that you may be busy, and I do not want to bother you. However, I was wondering if there has been any update on this issue.
Is it possible to reopen the issue so that we can continue to track it? Is there a plan to add this feature in the future? Or is this feature not currently in the roadmap?

You may need to create a special Signal that handle that case and wrap both the computed and the received value. You emit the value based on the last received event.
Putting that logic in the library would be confusing.


fix(deps): update module github.com/gruntwork-io/terratest to v0.41.11

This PR contains the following updates:

Package
Type
Update
Change

github.com/gruntwork-io/terratest
require
patch
v0.41.10 -> v0.41.11

Release Notes

gruntwork-io/terratest
v0.41.11
Compare Source
What's Changed

#1233 Failing tests fixes by @denis256 in https://github.com/gruntwork-io/terratest/pull/1237
Create a function to extract default az subnets by @hongil0316 in https://github.com/gruntwork-io/terratest/pull/1248

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.41.10...v0.41.11

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 1.5.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add pytest markers for profiling

Description
Added conftest.py, which is a configuration file for pytest. In conftest.py, I defined two pytest markers profiling and profiling_only, which can be used to decorate test functions or classes. The profiling marker will enable the function/class to run when --profile or --profile-svg in provided in the command line. It's the same for profiling_only, but this marker disables the function/class from running without the --profile or --profile-svg option. A test function/class not decorated by either of these markers will not be profiled. As an example, I decorated the test class in tests/pmodel/test_profiling.py with profiling_only and a test function in tests/tmodel/test_tmodel.py with profiling.
This PR addresses the first task in Issue #141.
Type of change

[x] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

Oh hang on - wait. You're intercepting pytest --profile and setting the test collection from that.

CLI Interface:

poetry run pytest --profile/--profile-svg will run tests marked by profiling or profiling_only.
poetry run pytest will run tests marked by profiling or not marked by either markers.

I'm just not sure we need to tie the test collection process to the setting of the profiling option. With one mark we can do pytest -m "profiling" --profile as the most common use case to profile only the specific profiling tests, but also run pytest --profile or pytest -m "not profiling" --profile.
Most of the time, we're going to want to run pytest -m "not profiling" to simply run the unit testing to check a commit hasn't broken stuff, but we might want to profile more than just the specific profiling suite. It also occurs to me that once #143 is closed, we can also mark tests as 'regression' and maybe exclude those except on PR. But that's getting ahead of myself.

I'm just not sure we need to tie the test collection process to the setting of the profiling option. With one mark we can do pytest -m "profiling" --profile as the most common use, case to profile only the specific profiling tests, but also run pytest --profile or pytest -m "not profiling" --profile.
Most of the time, we're going to want to run pytest -m "not profiling" to simply run the unit testing to check a commit hasn't broken stuff, but we might want to profile more than just the specific profiling suite. It also occurs to me that once #143 is closed, we can also mark tests as 'regression' and maybe exclude those except on PR. But that's getting ahead of myself.

OK, I think it's simpler to just use the markers together with command line arguments, so I can remove the conftest.py. Accordingly, I can update .github/workflows/pyrealm_ci.yaml to run profiling when there is a push to the main branch.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (dbdff0f) 94.09% compared to head (5b87b2f) 93.38%.
Report is 9 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #149      +/-   ##
===========================================
- Coverage    94.09%   93.38%   -0.71%
===========================================
  Files           21       21
  Lines         1134     1134
===========================================
- Hits          1067     1059       -8
- Misses          67       75       +8

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Would it be cleaner for profiling.py to return a value to an environment variable rather than monitoring sterr?

Would it be cleaner for profiling.py to return a value to an environment variable rather than monitoring sterr?

I agree. I have updated the script accordingly.

Would it be cleaner for profiling.py to return a value to an environment variable rather than monitoring sterr?

I agree. I have updated the script accordingly.

That wasn't quite what I meant, but I was unclear. My idea was that profile.py uses sys.exit(0) or sys.exit(1) to return a success code. Then the profiling step can capture the resulting exit code (maybe using profiling_pass=$?) and use that to control the next steps.
Practically that works in a very similar way but it is clearer in  the profiling code that the profiling_pass variable is the outcome of an exit code. At the moment that steps.profiling.outcome == 'success' requires inspection of the profile.py code to understand where it comes from. It feels more canonical bash this way but this is picky!

Would it be cleaner for profiling.py to return a value to an environment variable rather than monitoring sterr?

I agree. I have updated the script accordingly.

That wasn't quite what I meant, but I was unclear. My idea was that profile.py uses sys.exit(0) or sys.exit(1) to return a success code. Then the profiling step can capture the resulting exit code (maybe using profiling_pass=$?) and use that to control the next steps.
Practically that works in a very similar way but it is clearer in the profiling code that the profiling_pass variable is the outcome of an exit code. At the moment that steps.profiling.outcome == 'success' requires inspection of the profile.py code to understand where it comes from. It feels more canonical bash this way but this is picky!

But if the program exits with code 1, steps.profiling.outcome will not be 'success', and the workflow as is will not save the profiling reports. However I am exploring the continue-on-error setting for this.

As discussed in the dev meeting today, this PR should be split up into two PRs: One deadline with #141 (and #152)  and one dealing with #142 .

As discussed in the dev meeting today, this PR should be split up into two PRs: One deadline with #141 (and #152) and one dealing with #142 .

I have moved most of my updates to the new PR #156, which is ready to be merged. I will subsequently work on this PR for modularising the profiling and updating the LFS dataset.


Bug: Non-staff user is unable to remove a voucher code from checkout

What are you trying to achieve?
I try to write e2e test to verify that  voucher discount is no longer applied to the checkout when the vucher code is removed by a customer.
Steps to reproduce the problem
Before test:
Create warehouse
Create a channel and assign a warehouse
Create shipping method (shipping zone and shipping rate)
Create product type "isShippingRequired": true
Create category
Create product
Create a product channel listing
Create a variant with stock
Create a variant channel listing price 19.99 USD

Create a voucher
Run VoucherChannelListingUpdate
Run mutation checkoutCreate for created variant as not-logged-in customer with valid addresses and lines
Run checkoutDeliveryMethodUpdate with shippingMethodID
Run checkoutDeliveryMethodUpdate with shippingMethodID
Run:

  checkoutAddPromoCode(promoCode: "voucher_code_1") {
    errors {
      field
      message
    }
  }

Verify:

the total gross amount has been reduced by the amount of the voucher code from the first voucher
voucherCode same as the created voucher code
discount amount of the applied voucher code

Run checkoutRemovePromoCode providing checkout id and promo code as arguments

Actual result:
E           AssertionError: [{'message': 'To access this path, you need one of the following permissions: MANAGE_DISCOUNTS', 'locations': [{'line': 13, 'column': 13}], 'path': ['checkoutRemovePromoCode', 'checkout', 'voucher'], 'extensions': {'exception': {'code': 'PermissionDenied'}}}]
What did you expect to happen?
The voucher is removed from the checkout
User - regardless if he is logged in or not - should be able to remove the voucher code from the checkout, the same as he is able to add a voucher code to the checkout
Logs
My test code:
import pytest

from ..product.utils.preparing_product import prepare_product
from ..shop.utils.preparing_shop import prepare_shop
from ..utils import assign_permissions
from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher
from .utils import (
    checkout_add_promo_code,
    checkout_complete,
    checkout_create,
    checkout_delivery_method_update,
    checkout_dummy_payment_create,
    checkout_remove_promo_code,
    checkout_shipping_address_update,
)

def prepare_fixed_voucher(
    e2e_staff_api_client,
    channel_id,
    voucher_code,
    voucher_discount_type,
    voucher_discount_value,
    voucher_type,
):
    input = {
        "code": voucher_code,
        "discountValueType": voucher_discount_type,
        "type": voucher_type,
    }
    voucher_data = create_voucher(e2e_staff_api_client, input)

    voucher_id = voucher_data["id"]
    channel_listing = [
        {
            "channelId": channel_id,
            "discountValue": voucher_discount_value,
        },
    ]
    create_voucher_channel_listing(
        e2e_staff_api_client,
        voucher_id,
        channel_listing,
    )

    return voucher_code, voucher_id

@pytest.mark.e2e
def test_should_be_able_to_remove_voucher_code_from_checkout_CORE_0917(
    e2e_not_logged_api_client,
    e2e_staff_api_client,
    permission_manage_products,
    permission_manage_channels,
    permission_manage_shipping,
    permission_manage_product_types_and_attributes,
    permission_manage_discounts,
    permission_manage_checkouts,
):
    # Before
    permissions = [
        permission_manage_products,
        permission_manage_channels,
        permission_manage_shipping,
        permission_manage_product_types_and_attributes,
        permission_manage_discounts,
        permission_manage_checkouts,
    ]
    assign_permissions(e2e_staff_api_client, permissions)

    (
        warehouse_id,
        channel_id,
        channel_slug,
        shipping_method_id,
    ) = prepare_shop(e2e_staff_api_client)

    (
        _product_id,
        product_variant_id,
        product_variant_price,
    ) = prepare_product(
        e2e_staff_api_client,
        warehouse_id,
        channel_id,
        variant_price=30,
    )

    voucher_code, voucher_id = prepare_fixed_voucher(
        e2e_staff_api_client,
        channel_id,
        voucher_code="FIXED_VOUCHER",
        voucher_discount_type="FIXED",
        voucher_discount_value=10,
        voucher_type="ENTIRE_ORDER",
    )

    # Step 1 - Create checkout
    lines = [
        {
            "variantId": product_variant_id,
            "quantity": 2,
        },
    ]
    checkout = checkout_create(
        e2e_not_logged_api_client,
        lines,
        channel_slug,
<EMAIL_ADDRESS>        set_default_billing_address=True,
        set_default_shipping_address=True,
    )
    checkout_id = checkout["id"]
    checkout_lines = checkout["lines"][0]
    subtotal_amount = float(product_variant_price)
    assert checkout["isShippingRequired"] is True
    total_without_shipping = checkout["totalPrice"]["gross"]["amount"]
    assert total_without_shipping == subtotal_amount * 2
    assert checkout_lines["unitPrice"]["gross"]["amount"] == subtotal_amount
    assert checkout_lines["undiscountedUnitPrice"]["amount"] == product_variant_price

    # Step 2 - Set shipping address and delivery method
    checkout_data = checkout_shipping_address_update(
        e2e_not_logged_api_client, checkout_id
    )
    assert len(checkout_data["shippingMethods"]) == 1
    shipping_method_id = checkout_data["shippingMethods"][0]["id"]

    checkout_data = checkout_delivery_method_update(
        e2e_not_logged_api_client,
        checkout_id,
        shipping_method_id,
    )
    assert checkout_data["deliveryMethod"]["id"] == shipping_method_id
    shipping_price = checkout_data["deliveryMethod"]["price"]["amount"]
    undiscounted_total_gross = checkout_data["totalPrice"]["gross"]["amount"]
    assert undiscounted_total_gross == total_without_shipping + shipping_price

    # Step 3 - Add voucher code to checkout
    data = checkout_add_promo_code(
        e2e_not_logged_api_client,
        checkout_id,
        voucher_code,
    )
    discounted_total_gross = data["totalPrice"]["gross"]["amount"]
    discount_value = data["discount"]["amount"]
    assert discounted_total_gross == undiscounted_total_gross - discount_value

    # Step 4 - Remove the voucher code from the checkout
    data = checkout_remove_promo_code(
        e2e_not_logged_api_client,
        checkout_id,
        voucher_code,
    )
    assert data["errors"] == []

And helper:
from ...utils import get_graphql_content

CHECKOUT_REMOVE_PROMO_CODE_MUTATION = """
mutation CheckoutRemovePromoCode($id: ID, $promoCode: String) {
    checkoutRemovePromoCode(
        id: $id
        promoCode: $promoCode
    ) {
        errors {
            message
            field
            code
        }
        checkout {
            voucher {
                id
                name
                code
                codes(first: 10) {
                    edges {
                        node {
                            id
                            code
                            isActive
                            used
                        }
                    }
                }
            }
        }
    }
}
"""

def checkout_remove_promo_code(api_client, checkout_id, voucher_code):
    variables = {
        "id": checkout_id,
        "promoCode": voucher_code,
    }

    response = api_client.post_graphql(
        CHECKOUT_REMOVE_PROMO_CODE_MUTATION,
        variables=variables,
    )
    content = get_graphql_content(response)

    data = content["data"]["checkoutRemovePromoCode"]
    assert data["errors"] == []

    return data

Environment
Saleor version: core v3.18.0-a.0
OS and version: macOS ventura 13.0.1

It is not a bug. Customer client have no access to checkout.voucher field (lack of MANAGE_DISCOUNT permission). The mutation works properly, but returned object cannot ask for voucher. Customer client should use voucherCode instead.


How to define a field value for data to be imported?

We want to define ranges of values from a field to import data from prostgresql to elasticsearch.
How could we do that?
Checks
Version:    1.0.0-beta.1
Variant:    !oss
Go version: go1.12.5
OS:         linux
Arch:       amd64

[x] I have mentioned my abc version in the issue, if applicable.
[x] This issue is not a duplicate.
[x] This issue has a description.

I think this is what I am looking for https://github.com/appbaseio/abc/blob/dev/docs/importer/transforms/skip.md


BackFill v1.1.0

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@thewchan required for building wagtail-review
https://github.com/wagtail-nest/wagtail-review/blob/main/setup.py#L15

@conda-forge-admin, please rerender

@thewchan required for building wagtail-review
https://github.com/wagtail-nest/wagtail-review/blob/main/setup.py#L15
For backfills, I usually create a branch from main - e.g.  v1.1.0 - and would merge this into that branch (vs Main)

Thanks @rxm7706 !


Fix resolution of @mui/material-ui in docs

Pulling some fixes from https://github.com/mui/material-ui/pull/43068
First problem encountered when removing esmExternals is around resolution of top level @mui/material. This was fixed by adding a new @mui/material$ alias which specifically targets this import and point it to the intended source file.
As part of this PR I'm also correcting some imports in the demos and docs modules that import the top level package
There will likely be a lot more work to get this flag removed but I'm going one-by-one. bisecting this takes a lot of time.

Is the top-level @mui/material import change something users should do as well? Or does it only break our repo configuration?

We're recommending it. These days, some frameworks automatically do this for you in their compilation. I'm not aware of any discussions around it, but I could see us some day even deprecate this usage.

Should we add an eslint rule to avoid future imports from @mui/material?

Yes, ideally.

Yes, ideally.

Should we include it in this PR or is it out of scope?

Should we include it in this PR or is it out of scope?

I didn't remove all the top-level imports in the docs, only the ones in public demos. We can expand this override to the docs, but then we must fix all imports


Fix Sharing page icons for a11y

This solves #5129
I should update translations too because i moved the text from under the table to page description (because it's better for the user to read instructions before the table).

@cekk I did the modifications suggested by @pnicolli, but there is some fail unit tests to re-do. Can you please run those tests and fix it if needed?


[RI-518] Increase Logging VM RAM

The logging server is swapping incessantly on the ELK gates causing
Ansible SSH connections to time out and failing the plays.  This helps
to reduce the IO wait times on the VM.
Issue: RI-518
Issue: RI-518

Thank you for submitting a pull request to this project!
Once all check jobs have passed and the pull request has received a
sufficient number of reviews, the repository's gate jobs can be triggered by
adding a comment of :shipit: to this pull request.
When the gate jobs have completed successfully, this pull request will get
merged automatically.


Anthropic error handling is unclear

When I get a rate limit or API key error, I get the following:
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 216, in run
    return self(kwargs)[self.output_keys[0]]
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 116, in __call__
    raise e
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 113, in __call__
    outputs = self._call(inputs)
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 57, in _call
    return self.apply([inputs])[0]
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 118, in apply
    response = self.generate(input_list)
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 62, in generate
    return self.llm.generate_prompt(prompts, stop)
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 107, in generate_prompt
    return self.generate(prompt_strings, stop=stop)
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 140, in generate
    raise e
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 137, in generate
    output = self._generate(prompts, stop=stop)
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 324, in _generate
    text = self._call(prompt, stop=stop)
  File "/Users/vanessacai/workspace/chef/venv/lib/python3.10/site-packages/langchain/llms/anthropic.py", line 184, in _call
    return response["completion"]
KeyError: 'completion'

This is confusing, and could be a more informative error message.

Hi Vanessa, which version of langchain (and if you know it, anthropic sdk library) are you using?

thanks for pointing this out! i was on langchain==0.0.144 and anthropic==0.2.3.


fix(clipboard): leak if directive is destroyed while a copy is pending

If the cdkCopyToClipboard directive is destroyed while there are pending copies, we'll create a leak since the PendingCopy will never be destroyed. These changes add some extra logic to ensure that the copies are destroyed and the timeouts are cleared.

I've addressed the feedback and rebased @jelbourn.


IndexError: list index out of range -  model_path = os.path.join("./model", os.listdir("model")[1]) - train_qlora.py", line 45

(dbgpt_hub) tushar@TGL305:~/TextSQL/DB-GPT-Hub$ sh ./scripts/spider_qlora_finetune.sh
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8659/8659 [12:18<00:00, 11.73it/s]
The raw datasets has been generated

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

 and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
bin /home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cadam32bit_grad_fp32
CUDA SETUP: Loading binary /home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so...
Traceback (most recent call last):
  File "/home/tushar/TextSQL/DB-GPT-Hub/src/train/train_qlora.py", line 45, in <module>
    model_path = os.path.join("./model", os.listdir("model")[1])
IndexError: list index out of range
./scripts/spider_qlora_finetune.sh: 11: --source_max_len: not found

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

 and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
bin /home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cadam32bit_grad_fp32
CUDA SETUP: Loading binary /home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so...
Traceback (most recent call last):
  File "/home/tushar/TextSQL/DB-GPT-Hub/src/utils/merge_peft_adapters.py", line 11, in <module>
    model_path = os.path.join("./model", os.listdir("model")[1])
IndexError: list index out of range
(dbgpt_hub) tushar@TGL305:~/TextSQL/DB-GPT-Hub$

This is because your model file could not be found, the path to each model file may be different, you can try changing the index, e.g. model_path = os.path.join(". /model", os.listdir("model")[0]), I know this approach may not be very smart, we may introduce env later to manage model integration.

Yes, you can download large models after installing git lfs, this will increase your download speed and download success, for example you can download the vicuna-13b model with this command git clone https://huggingface.co/Tribbiani/vicuna-13b,"Tribbiani/vicuna-13b" is the address of the model in the hf.

Yes, you can download large models after installing git lfs, this will increase your download speed and download success, for example you can download the vicuna-13b model with this command git clone https://huggingface.co/Tribbiani/vicuna-13b,"Tribbiani/vicuna-13b" is the address of the model in the hf.

This is because your model file could not be found, the path to each model file may be different, you can try changing the index, e.g. model_path = os.path.join(". /model", os.listdir("model")[0]), I know this approach may not be very smart, we may introduce env later to manage model integration.

This is because your model file could not be found, the path to each model file may be different, you can try changing the index, e.g. model_path = os.path.join(". /model", os.listdir("model")[0]), I know this approach may not be very smart, we may introduce env later to manage model integration.

@zhanghy-sketchzh Thanks, how do we copy models into model directory
Do i have to download this from huggingface
https://huggingface.co/tiiuae/falcon-7b/blob/main/pytorch_model-00002-of-00002.bin and put bin files in model folder ? my model folder is empty

Yes, you can download large models after installing git lfs, this will increase your download speed and download success, for example you can download the vicuna-13b model with this command git clone https://huggingface.co/Tribbiani/vicuna-13b,"Tribbiani/vicuna-13b" is the address of the model in the hf.

os.listdir

egration.

Thanks I will try

I got this error @zhanghy-sketchzh and I am running it on CPU, I dont have GPU in my machine
bin /home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cadam32bit_grad_fp32
CUDA SETUP: Loading binary /home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so...
loading base model ./model/pytorch_model-00001-of-00002.bin...
Traceback (most recent call last):
  File "/home/tushar/TextSQL/DB-GPT-Hub/src/train/train_qlora.py", line 831, in <module>
    train()
  File "/home/tushar/TextSQL/DB-GPT-Hub/src/train/train_qlora.py", line 667, in train
    model = get_accelerate_model(args, checkpoint_dir)
  File "/home/tushar/TextSQL/DB-GPT-Hub/src/train/train_qlora.py", line 276, in get_accelerate_model
    model = AutoModelForCausalLM.from_pretrained(
  File "/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 461, in from_pretrained
    config, kwargs = AutoConfig.from_pretrained(
  File "/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 986, in from_pretrained
    config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/configuration_utils.py", line 617, in get_config_dict
    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/configuration_utils.py", line 702, in _get_config_dict
    config_dict = cls._dict_from_json_file(resolved_config_file)
  File "/home/tushar/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/configuration_utils.py", line 793, in _dict_from_json_file
    text = reader.read()
MemoryError
./scripts/spider_qlora_finetune.sh: 11: --source_max_len: not found

This project requires a GPU and can work on google colab


Add script to update mrbgem

./minirake --pull-gems isn't known much and many use rake instead
We don't want to update all gem at once

Probably it will be a part of the future build process refactoring. Contribution welcome.


jpg_loader: introduced jpg decode using libjpeg-turbo

This patch introduces a jpg loader.
For decoding the image, libjpeg-turbo library is used. Library was found to be
fast (SIMD instructions accelerated), light and portable.
@issue: #517

libjpeg-turbo installation: sudo apt-get install libjpeg-turbo8-dev libjpeg8-dev libturbojpeg0-dev

@fire godot allow to depend on libjpeg-turbo?

Let me pass the message to the Godot Engine team for consensus.

@mmaciola Could you please update the unit-test testPicture (including capi version) ? for jpeg usage? Separate PR is welcomed.

https://github.com/richgel999/jpeg-compressor

@hermet I see you already created the utc for picture. Great
I am working on the time and memory usage comparison of libjpeg-turbo vs jpeg-compressor.
For using jpeg-compressor some minor change in library is needed to change the color components order (RGBA vs BGRA).

I have created the test comparison of libjpeg-turbo vs jpeg-compressor. libjpeg-turbo wins significantly, being over 10 times faster (loading of 100 jpgs: 9.529s vs 0.906s).
Binary sizes: both loaders 341.3 kB (341,256 bytes), jpg-turbo only (library installed in system): 99.7 kB (99,736 bytes), jpg-richgel only (library packed in binary): 309.5 kB (309,536 bytes)
Testing code: https://github.com/mmaciola/jpg-loaders-comparison

@mmaciola hopefully, you can contribute jpg loader example.


Agile Methods

Here we will introduce the agile methods that we have used during the project, For workshop 5.

Agile Methods .pdf


Chunked response from function is blocked

Dear maintainers,
I wrote my template that is similar to https://github.com/openfaas-incubator/python-flask-template/tree/master/template/python3-flask.
The different from the original is that my template uses stream response (or, chunked response) as follows.
@app.route("/", defaults={"path": ""}, methods=["POST", "GET"])
@app.route("/<path:path>", methods=["POST", "GET"])
def main_route(path):
    ...
    def gen():
        yield "1"
        time.sleep(1)
        yield "2"
        time.sleep(1)
        yield "3"

    return Response(gen())

When I invoke a function from the template, the function does not return response chunk by chunk.
It blocks 3 seconds, and then, returns whole the response (1, 2 and 3) all at once.
Expected Behaviour
Function returns response chunk by chunk.
Current Behaviour
Function blocks 3 seconds, and then, returns whole the response all at once.
Possible Solution
The following code blocks until whole the response returned.
https://github.com/openfaas-incubator/of-watchdog/blob/bae373954932a07d89ab926457d237f03f6c60dc/executor/http_runner.go#L173
And openfaas/faas's following code also blocks, maybe.
https://github.com/openfaas/faas/blob/04d240aac26acdaf49863dbab768b4f5cb311d84/gateway/handlers/forwarding_proxy.go#L130
Steps to Reproduce (for bugs)

fetch this template https://github.com/openfaas-incubator/python-flask-template/tree/master/template/python3-flask
edit the template as described above
create new function from the template
build, push, deploy and invoke the function

Your Environment
Docker version 18.09.1, build 4c52b90
Docker swarm
Linux (vagrant, vm.box = "bento/centos-7.4")
Thank you.

I found a hint to solve this issue in httputil package's ReverseProxy.copyBuffer method.
https://golang.org/src/net/http/httputil/reverseproxy.go#L335
copyBuffer method reads response little by little and writes to maxLatencyWriter
https://golang.org/src/net/http/httputil/reverseproxy.go#L366
and maxLatencyWriter flushes periodically.
https://golang.org/src/net/http/httputil/reverseproxy.go#L418


Added multi-server support for CUPS

Description:
Added multi server support for the CUPS integration
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#9667
Example entry for configuration.yaml (if applicable):
sensor:
  - platform: cups
  - servers:
      - printers:
          - C410
          - C430
      - host: <IP_ADDRESS>
        port: 631
        printers:
          - C450

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.

This platform already supports this:
sensor:
- platform: cups
  host: something
- platform: cups
  host: something-else

What would this refactor add?

Sorry, I didn't known it was possible. Closing this PR. Sorry again


🐛On Android using videoCodec: 'h265' produce Recording failed! .. "java.io.IOException: prepare failed

What's happening?
Trying to
use  camera.current.startRecording({ videoCodec: 'h265', ...options})
throwing
Recording failed! {"cause": {"message": "prepare failed.", "stacktrace": "java.io.IOException: prepare failed.
Without videoCodec - OK
With videoCodec: 'h264' - OK
Tested in v3.6.1, v3.9.0, v3.9.0-allBetas, v3.9.1 with emulator or Samsung device
Reproduceable Code
const startRecording = useCallback(() => {
    try {
    ...
      camera.current.startRecording({
        videoCodec: 'h265',
        flash: flash,
        onRecordingError: error => {
          console.error('Recording failed!', error);
          onStoppedRecording();
        },
       ...

Relevant log output
Recording failed! {"cause": {"message": "prepare failed.", "stacktrace": "java.io.IOException: prepare failed.
	at android.media.MediaRecorder._prepare(Native Method)
	at android.media.MediaRecorder.prepare(MediaRecorder.java:1320)
	at com.mrousavy.camera.core.RecordingSession.start(RecordingSession.kt:99)
	at com.mrousavy.camera.core.CameraSession.startRecording(CameraSession.kt:438)
	at com.mrousavy.camera.CameraView_RecordVideoKt.startRecording(CameraView+RecordVideo.kt:36)
	at com.mrousavy.camera.CameraViewModule$startRecording$1.invokeSuspend(CameraViewModule.kt:103)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.os.HandlerThread.run(HandlerThread.java:67)
"}, "code": "capture/unknown", "message": "An unknown error occurred while trying to start a video recording! prepare failed.", "userInfo": null}
 LOG  stopped recording video!
 DEBUG  state: ACTIVE
 DEBUG  state: END
 LOG  calling stopRecording()...
 ERROR  failed to stop recording! [capture/no-recording-in-progress: [capture/no-recording-in-progress] There was no active video recording in progress! Did you call stopRecording() twice?]

Camera Device
{
  "formats": [],
  "sensorOrientation": "landscape-left",
  "hardwareLevel": "limited",
  "maxZoom": 10,
  "minZoom": 1,
  "maxExposure": 9,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "telephoto-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minFocusDistance": 0,
  "minExposure": -9,
  "name": "BACK (0)",
  "hasFlash": false,
  "hasTorch": false,
  "position": "back",
  "id": "0"
}
 LOG  {
  "formats": [],
  "sensorOrientation": "landscape-left",
  "hardwareLevel": "limited",
  "maxZoom": 10,
  "minZoom": 1,
  "maxExposure": 9,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "telephoto-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minFocusDistance": 0,
  "minExposure": -9,
  "name": "BACK (0)",
  "hasFlash": false,
  "hasTorch": false,
  "position": "back",
  "id": "0"
}

Device
Pixel_2_XL_API_33:5554, Samsung Note10
VisionCamera Version
3.9.1
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠ your issue might get ignored & closed if you don't try this)
Additional information

[ ] I am using Expo
[ ] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

What samsung device are you using? Some devices don't support h265 video codes, so that might be why there is an error.

Check the bug report. Same error in emulator as well

Hey - I think this issue has been fixed in VisionCamera 4.0.0. 🥳
Please try V4 and let me know if you still experience this issue;

if not, please consider 💖 sponsoring me on GitHub 💖 to support the development of VisionCamera and thank me for my time spent on fixing bugs and building new features.
if you still see this issue, please comment and we can re-open this. But please update your native logs with the native (Xcode/Android Studio) logs from running VisionCamera V4 so I can investigate this.


Move Apifox.Apifox 2.2.26 to Ruihu.Apifox 2.2.26

Microsoft Reviewers: Open in CodeFlow

[Policy] Reset Feedback

[Policy] Approved