Removed output typing from workflows

While getting my feet wet with WDL I got hit by the error below in a DSDE example script. Changes in this pull fix the issue I encounter.
Unable to load namespace from workflow: Unrecognized token on line 94, column 10:

    Array[File] output_bams = PairedFastQsToUnmappedBAM.output_bam
         ^
cromwell.engine.workflow.MaterializeWorkflowDescriptorActor$$anonfun$receive$1$$anon$1: Workflow input processing failed.
Unable to load namespace from workflow: Unrecognized token on line 94, column 10:

    Array[File] output_bams = PairedFastQsToUnmappedBAM.output_bam
         ^
	at cromwell.engine.workflow.MaterializeWorkflowDescriptorActor$$anonfun$receive$1.applyOrElse(MaterializeWorkflowDescriptorActor.scala:69) ~[cromwell.jar:0.19]
	at akka.actor.Actor$class.aroundReceive(Actor.scala:467) ~[cromwell.jar:0.19]
	at cromwell.engine.workflow.MaterializeWorkflowDescriptorActor.aroundReceive(MaterializeWorkflowDescriptorActor.scala:59) ~[cromwell.jar:0.19]
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) [cromwell.jar:0.19]
	at akka.actor.ActorCell.invoke(ActorCell.scala:487) [cromwell.jar:0.19]
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) [cromwell.jar:0.19]
	at akka.dispatch.Mailbox.run(Mailbox.scala:220) [cromwell.jar:0.19]
	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) [cromwell.jar:0.19]
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [cromwell.jar:0.19]
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [cromwell.jar:0.19]
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [cromwell.jar:0.19]
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [cromwell.jar:0.19]

Hi Carlos, what you're seeing is not a bug, it's a feature that was enabled in a later version of Cromwell than what you're using, as documented in the header of the script. Output typing is going to be needed when we start putting out nested workflows. We'll try to establish some better versioning practices to avoid this kind of confusion.

@vdauwera no problem. The good news is I'm now all setup to contribute in the future.
The workflows have a versioned docker image on them. It is odd the docker images on them are not ready for the syntax in the workflows. Is there a newer docker image I could be using?
Most current image I can find in example scripts:
docker: "broadinstitute/genomes-in-the-cloud:2.2.4-1469632282"
Thanks,
Carlos

Oh, the docker linked in the WDL is what provides the executables for GATK, Picard and so on. The version of Cromwell you run depends on the execution service you're using. How are you currently running these? If it's through the Google genomics pipelines WDL runner, that's still calling on an older version of Cromwell. We're working with Google to update it.

Thanks! I'm still wrapping my head around all the moving pieces here.
You are correct, I'm using Google Genomics WDL runner. I'll keep an eye for updates on their side. I will also play with changing this line and figuring out what else might need to be updated on their runner:
https://github.com/googlegenomics/pipelines-api-examples/blob/master/wdl_runner/cromwell_launcher/Dockerfile#L59
--Carlos

@vdauwera FYI, I managed to update the Google Genomics WDL runner in order to run workflows using the Cromwell release 24. I submitted a pull:
https://github.com/googlegenomics/pipelines-api-examples/pull/48
Hopefully this comment thread will help anybody else getting hit by this misalignment of versions among repositories.

If they accept the PR should we make this part of our release process?

Would be awesome to make updating googlegenomics/pipelines-api-examples part of our release process! Looping in @mbookman to discuss.

Sounds great. I have almost the same change in my fork from two weeks back:
https://github.com/googlegenomics/pipelines-api-examples/compare/master...mbookman:master
@vdauwera should have an email from me on coordinating moving the wdl_runner forward.
The only little bit of coordination really is building and publishing a new docker image.
So the steps are:
1- Update the code for building a new docker image.
2- Build and push a new wdl_runner image.
3- Update the wdl_runner/workflows/wdl_pipeline.yaml to point to the new wdl_runner image.
4- Push to github.

Ah, I didn't realize I was the blocker here, sorry. Will follow up shortly so we can get this done.

Made the necessary changes and everything seems to work -- your move, @mbookman
@geoffjentry It would be great to work this into your release process -- is that something your team could take on?

I think so.
@ruchim how easy/hard would it be to start looping htis into our semi-automated process?

@geoffjentry If we wanted to expand our process to include  submitting a PR to pipeline-api-examples which will update Cromwell versions, that should be easy to do. I believe it would be hard to automate updating any config changes that are required for a new version of Cromwell.

The PR to update the wdl_runner to use Cromwell 24 has been merged.
Let me know how I can help with regards to making this update part of the procedure when new versions of Cromwell are released.


Move getWithRelationship[s] to apiComplianceSuite

See OpenAssetIO/OpenAssetIO#914

@feltech You want this reviewed given that it's a draft?

@feltech You want this reviewed given that it's a draft?

Yeah I think so.  I left it as a draft due to the drop! commit, to make doubly sure it wasn't merged with that.


extra-1.6.4 test suite failure

This happened with GHC 8.4.1:
Test suite extra-test: RUNNING...
\(x :: IO Int) -> void (once x) == return ()
*** Failed! Falsifiable (after 4 tests):
<<IO>>
Test suite extra-test: FAIL

The error occurs only spuriously, though.

Thanks for the info. I've been running on the Linux Travis CI for a few months without observing any failure there. Which OS?

NixOS Linux x86_64.

Were you running it successfully with 8.2 for a long time? How often are you observing failures? (e.g. 10 times out of 100, or just once or twice). It's the first test, which makes me wonder if it's not the test itself but mechanisms behind the test.

Yes, the error never occurred with 8.2.x in an lts-10.x package set. I saw it with 8.4.1 once so far. I haven't been running many build with that compiler yet, obviously, since it was release only yesterday. So we don't have a large sample size.

Please let me know if it repeats - once can always be quantum effects but twice would be some underlying issue somewhere...

I have improved the error message in case such a test failure happens again, and released 1.6.5 with that improved test suite.

Closing until another instance crops up.


Manual approval required for workflow run<PHONE_NUMBER>

Workflow is pending manual review.
URL: https://github.com/pushpendrasingh3/manual-approval/actions/runs/7915031405
Required approvers: [pushpendras21 pushpendrasingh3]
Respond "approved", "approve", "lgtm", "yes" to continue workflow or "denied", "deny", "no" to cancel.

approve

approve

approve

All approvers have approved, continuing workflow and closing this issue.

approve


The provided authority is not a trusted authority

Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.14.2
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.0.2
Description
In our Kibana logs the following error occurs very often:
Uncaught (in promise): ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
at t [as constructor] (webpack:///node_modules/@azure/msal-common/dist/error/AuthError.js:27:23)
at new t (webpack:///node_modules/@azure/msal-common/dist/error/ClientAuthError.js:194:27)
at Function.t.createEndpointDiscoveryIncompleteError (webpack:///node_modules/@azure/msal-common/dist/error/ClientAuthError.js:231:15)
at Function. (webpack:///node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js:42:30)
at webpack:///node_modules/@azure/msal-common/dist/_virtual/_tslib.js:75:22
at Object.throw (webpack:///node_modules/@azure/msal-common/dist/_virtual/_tslib.js:56:57)
at s (webpack:///node_modules/@azure/msal-common/dist/_virtual/_tslib.js:47:65)
at l.invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:372:25)
at Object.onInvoke (webpack:///node_modules/@angular/core/ivy_ngcc/fesm2015/core.js:28674:32)
at l.invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:371:51)
I can't seem to reproduce this on any of my accounts, it happens for a lot of different users in production.
Error Message
Uncaught (in promise): ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
at t [as constructor] (webpack:///node_modules/@azure/msal-common/dist/error/AuthError.js:27:23)
at new t (webpack:///node_modules/@azure/msal-common/dist/error/ClientAuthError.js:194:27)
at Function.t.createEndpointDiscoveryIncompleteError (webpack:///node_modules/@azure/msal-common/dist/error/ClientAuthError.js:231:15)
at Function. (webpack:///node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js:42:30)
at webpack:///node_modules/@azure/msal-common/dist/_virtual/_tslib.js:75:22
at Object.throw (webpack:///node_modules/@azure/msal-common/dist/_virtual/_tslib.js:56:57)
at s (webpack:///node_modules/@azure/msal-common/dist/_virtual/_tslib.js:47:65)
at l.invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:372:25)
at Object.onInvoke (webpack:///node_modules/@angular/core/ivy_ngcc/fesm2015/core.js:28674:32)
at l.invoke (webpack:///node_modules/zone.js/fesm2015/zone.js:371:51)
Msal Logs
No response
MSAL Configuration
msal: {
    scopes: [...],
    config: {
      auth: {
        authority: 'https://login.microsoftonline.com/<our-tenant>.onmicrosoft.com',
        clientId: '7e20f2ad-...-43a3-bdab-...',
        redirectUri: 'https://..../auth',
      },
      cache: {
        cacheLocation: BrowserCacheLocation.LocalStorage,
      },
      system: {
        loadFrameTimeout: 30000,
      },
    },
    interceptorConfig: {
      interactionType: InteractionType.Redirect,
      protectedResourceMap: new Map([
        ['https://....', null],
        ['https://....', [...]],
        ['https://a.....com', [...]],
      ]),
    },
    guardConfig: {
      interactionType: InteractionType.Redirect,
      loginFailedRoute: '/login-failed',
      authRequest: {
        scopes: [...],
      },
    },
  },

Relevant Code Snippets
/

Reproduction Steps
???
Expected Behavior
The error does not occur
Identity Provider
Azure AD / MSA
Browsers Affected (Select all that apply)
Edge
Regression
No response
Source
Internal (Microsoft)

@binarydmon This could be due to network connectivity issues. Please let us know when you have a reproduction.

@jasonnutter could it be related to the old msal version (2.0.4)?
We have had any users complaining about this issue, but we do see a lot of occurrences for the past month (thousands). The userbase is about 15 000.

@binarydmon You can try updating the latest versions of MSAL Browser and MSAL Angular and see if that helps. Also, I'd be curious if the format of your authority configuration option makes any difference (i.e. try https://login.microsoftonline.com/<tenant-id>).

@binarydmon Any updates?


[Feature] Option to only add systems to map if connected to wormhole chain

Wormhole groups typically have a ton of maps, and currently if you switch between them you'll get systems added that aren't connected to the chain. It's especially annoying when you're just looking at other chains and end up getting tons of satellite systems.
An option for wormhole chains to only add systems to the map if you are jumping from a system connected to the wormhole chain would be great.

:grey_exclamation: Duplicate Issue
Thanks for your contribution. There is already an open Issue about this topic. #827
Feel free to participate in the discussion and share your thoughts in the comments.
:x: Issue closed

Auto-generated response


Update WGPU and Naga; add GLSL support

This updates WGPU to the latest version, which has significantly better error messages. It also adds support for GLSL shaders via Naga. Existing WGSL shaders have been rewritten in GLSL. WGSL is still supported, although it expects a newer version of WGSL now. This closes #13.
Upgrading WGPU didn't require too many code changes, but there are two key points to be aware of:

Many synchronization-related commands now use callbacks instead of async futures. I emulated the old behavior using oneshot channels.
We request wgpu::Features::MAPPABLE_PRIMARY_BUFFERS so that we can use MAP_READ and MAP_WRITE with other buffer usage flags than COPY_DST and COPY_SRC. This is currently necessary because we transfer data from the GPU to the CPU/Local queues by mapping the GPU buffer and directly copying out the data. This is suboptimal from a performance standpoint since putting MAP_READ and STORAGE on the same buffer will probably cause that buffer to be host-resident, which will massively bottleneck operations a discrete GPU performs on that buffer. It might be better for the CPU queue to use host-resident, MAP_READ/MAP_WRITE buffers for data storage (instead of Rust structures) and then transmute the contained data into mutable references to Rust structures whenever an external Rust function is called. GPU->CPU transfers are then just buffer copies and we can drop the MAP_READ/MAP_WRITE flags on GPU buffers.

Thanks! The backend is a bit of a mess and I'm fine with whatever hackery we need there for now. The plan is to spend a good chunk of the summer months cleaning it up and optimizing after we've finished all the necessary functional changes and have working demo apps to measure things with.


Extract more function metadata

Woops. Had already merged this :/
https://github.com/exercism/javascript-lib-static-analysis/pull/5

Woops. Had already merged this :/
https://github.com/exercism/javascript-lib-static-analysis/pull/5


Welcome message appears only after 2 seconds

Reduce (or remove) the delay before the welcome message is displayed

fixed: faster


Updated to Blue Cryptor 1.0.0

Updated to Blue Cryptor 1.0.0 and updated to Swift 4.1 by adding new Travis builds and by updating the .swift-version.
A few shuffles around of the code as the 1.0 release had some breaking changes coming from 0.8, mainly changing things to be inside do-catch blocks.
Passing tests and building with no warnings on my Mac on Swift 4.1 and Swift 4.0.3

Travis is failing on Linux due to OpenSSL dependencies.
In a nutshell, Session relies on Kitura which relies on Kitura-net which is relying on an outdated version of BlueSSLService, which is relying on an old version on OpenSSL.
Moving BlueCryptor from 0.8 to 1.0 changes its OpenSSL version dependency from 0.3 (same as BlueSSLService in Kitura-net) to 1.0.0, which causes SPM to hang.

@KyeMaloy97 Kitura-net 2.1.0 now uses BlueSocket / BlueSSLService 1.0.0, so this PR should depend on Kitura 2.3.0 (not yet tagged, but soon).

This looks good now.  It will need to be tagged with a new minor (due to the upgrade of BlueCryptor dependency).

Codecov Report

Merging #45 into master will decrease coverage by 2.37%.
The diff coverage is 61.36%.

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
- Coverage   72.91%   70.54%   -2.38%
==========================================
  Files           6        6
  Lines         240      258      +18
==========================================
+ Hits          175      182       +7
- Misses         65       76      +11

Flag
Coverage Δ

#KituraSession
70.54% <61.36%> (-2.38%)
:arrow_down:

Impacted Files
Coverage Δ

Sources/KituraSession/CookieCryptography.swift
61.53% <60%> (-5.13%)
:arrow_down:

Sources/KituraSession/Session.swift
66.66% <66.66%> (-1.97%)
:arrow_down:

Continue to review full report at Codecov.

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


Report an error instead of panic for batch single_value aggregation.

Describe the bug
No response
To Reproduce
create table t1 (x int, y int);
create table t2 (x int, y int);
insert into t1 values (1, 1), (2, 2), (1, null), (null, 2), (2, null), (null, 1), (null, null);
insert into t2 values (1, 2), (2, 2), (1, null), (null, 2), (2, null), (null, 1), (null, null);
select t1.x, (select single_value(t2.y) from t2 where t2.x = t1.x) from t1;

Expected behavior
Report an error instead of panic.
Additional context
No response

Fixed by #5113.


extreamly high cpu consumption on arm device

Please read the instruction and answer the following questions before submitting your issue. Thank you.
Please answer all the questions with enough information. All issues not following this template will be closed immediately.

What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)?
V3.7

What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.
Browse websites

What did you see? (Please describe in detail, such as timeout, fake TLS certificate etc)
Extreamly high cpu useage.
pidstat:

What's your expectation?
avrage load should be about 1 (Thats the avrage load when I download files using ssrr-redir)

Please attach your configuration file (Mask IP addresses before submit this issue).
Server configuration:
there is nothing to do with the server
Client configuration:

    {
    "policy": {
        "levels": {
            "0": {
                "uplinkOnly": 0
            }
        }
    },
    "dns": {
        "servers": [
            "localhost"
        ]
    },
    "outboundDetour": [
        {
            "protocol": "freedom",
            "tag": "direct",
            "settings": {}
        }
    ],
    "inbound": {
        "port": 19873,
        "protocol": "dokodemo-door",
        "settings": {
            "network": "tcp,udp",
            "followRedirect": true
        }
    },
    "inboundDetour": [
        {
            "listen": "<IP_ADDRESS>",
            "allocate": {
                "strategy": "always",
                "refresh": 5,
                "concurrency": 3
            },
            "port": 8001,
            "protocol": "http",
            "tag": "httpDetour",
            "domainOverride": [
                "http",
                "tls"
            ],
            "streamSettings": {},
            "settings": {
                "timeout": 0
            }
        }
    ],
    "log": {
        "error": "/var/log/v2ray/error.log",
        "loglevel": "warning",
        "access": ""
    },
    "routing": {
        "strategy": "rules",
        "settings": {
            "domainStrategy": "IPIfNonMatch",
            "rules": [
                {
                    "port": "1-52",
                    "type": "field",
                    "outboundTag": "direct"
                },
                {
                    "port": "54-79",
                    "type": "field",
                    "outboundTag": "direct"
                },
                {
                    "port": "81-442",
                    "type": "field",
                    "outboundTag": "direct"
                },
                {
                    "port": "444-65535",
                    "type": "field",
                    "outboundTag": "direct"
                },
                {
                    "type": "field",
                    "ip": [
                        "<IP_ADDRESS>/8",
                        "<IP_ADDRESS>/8",
                        "<IP_ADDRESS>/10",
                        "<IP_ADDRESS>/8",
                        "<IP_ADDRESS>/16",
                        "<IP_ADDRESS>/12",
                        "<IP_ADDRESS>/24",
                        "<IP_ADDRESS>/24",
                        "<IP_ADDRESS>/16",
                        "<IP_ADDRESS>/15",
                        "<IP_ADDRESS>/24",
                        "<IP_ADDRESS>/24",
                        "::1/128",
                        "fc00::/7",
                        "fe80::/10",
                        "geoip:cn"
                    ],
                    "outboundTag": "direct"
                },
                {
                    "type": "field",
                    "outboundTag": "direct",
                    "domain": [
                        "geosite:cn"
                    ]
                }
            ]
        }
    },
    "outbound": {
        "sendThrough": "<IP_ADDRESS>",
        "mux": {
            "enabled": true,
            "concurrency": 8
        },
        "protocol": "vmess",
        "settings": {
            "vnext": [
                {
                    "address": "$HOSTNAME",
                    "port": 443,
                    "users": [
                        {
                            "id": "$UUID",
                            "alterId": 32,
                            "security": "aes-128-gcm",
                            "level": 1
                        }
                    ]
                }
            ]
        },
        "streamSettings": {
            "network": "ws",
            "tcpSettings": {
                "connectionReuse": false,
                "header": {
                    "type": "none"
                }
            },
            "kcpSettings": {
                "header": {
                    "type": "none"
                },
                "mtu": 1350,
                "congestion": false,
                "tti": 20,
                "uplinkCapacity": 5,
                "writeBufferSize": 1,
                "readBufferSize": 1,
                "downlinkCapacity": 20
            },
            "security": "tls",
            "tlsSettings": {
                "serverName": "$HOSTNAME",
                "allowInsecure": false
            },
            "wsSettings": {
                "path": "/",
                "connectionReuse": true
            }
        }
    }
}

Please attach error logs, especially the bottom lines if the file is large. Error log file is usually at /var/log/v2ray/error.log on Linux.
Server error log:
there is nothing to do with the server
Client error log:

   There are a lot of "max files opened " error but noting else

Please attach access log. Access log is usually at '/var/log/v2ray/access.log' on Linux.
there is noting to do with the access log

Please review your issue before submitting.

Other configurations (such as Nginx) and logs.

Have you tested with the same configuration on an x86 device ?

Yes, it worked just fine.Actually I copied it from v2rayx config file

AFAIK there is no hardware AES acceleration on 32-bit ARM and Go does not support the AES acceleration feature on ARM64 yet ( Go issue 18498 ).
According to the documentation, chacha20-poly1305 is preferred on ARM platforms.

I tried none but it didn't work either.

What is the CPU field in 'pidstat' screenshot? 60%?
Please fix 'too many open files' error first (by allowing more open files). It may cause high CPU usage temporarily, until the error is gone.

I have set the limit to 4096 files which is the "hard limit" of my device but the error still occurred.
The last column of pidstat is average cpu useage since system has been booted.

在 2018年2月19日，下午7:40，DarienRaymond<EMAIL_ADDRESS>写道：
What is the CPU field in 'pidstat' screenshot? 60%?
Please fix 'too many open files' error first (by allowing more open files). It may cause high CPU usage temporarily, until the error is gone.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Could you please do some profiling to find out what functions are consuming cpu cycles on your device?

same here


Add support for letter-spacing in TextEditorDecorationType

Hello,
Is it possible to add letter-spacing property when you want to customize text decoration ?
I'd like to reduce the width of // for readability for example.
Thanks in advance to take my request in consideration.

Hello,
This feature was working really great, but recently I retry to use the letter-spacing and the cursor is now offset without changing my code.
I seems the letter-spacing is applied to the text decoration for example 'aaabc', so if I set letter-spacing to -4px for 'aaa' the text is correctly reduced, but if the cursor position is before b, then cursor position doesn't changed and the cursor is now after b.
Do I need to change something to my code or is it a vscode bug ?
Thank you in advance for your help.


Setup Sandbox Environment Fails for eu-central-1

Environment information
System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M1 Pro
  Memory: 1.31 GB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.11.1 - /usr/local/bin/node
  Yarn: undefined - undefined
  npm: 10.2.4 - /usr/local/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/backend: 1.0.4
  @aws-amplify/backend-cli: 1.1.1
  aws-amplify: 6.4.0
  aws-cdk: 2.149.0
  aws-cdk-lib: 2.149.0
  typescript: 5.5.3
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description
Followed the amplify tutorial and when creating the sandbox environment, it repeatedly loops back to
"The given region has not been bootstrapped. Sign in to console as a Root user or Admin to complete the bootstrap process, then restart the sandbox."
The sandbox can never be started.
I run the command
npx ampx sandbox --profile amplify-policy
The region for my profile is set to eu-central-1 and the user I log in as has Adminsitrator rights.
Please see attached screenshots

Briefly I see other options when trying the sandbox, but it is quickly replaced by the pop-up.
CDKToolkit is already setup successfully in eu-central-1 Region. You may now close this browser window.

Hey @Flippittiflop, thank you for reaching out. Could you verify if the profiles stored in ~/.aws/config and ~/.aws/credentials may have a profile with a duplicate name?
As error appears to be similar to https://github.com/aws-amplify/amplify-backend/issues/1573

Yes, I saw that issue and I completely removed config and credentials files, then redid the sso config and the same problem occurs

Hey @Flippittiflop, Could you run npx aws-cdk@latest bootstrap aws://<your-aws-account-id>/<your-aws-region> locally? Then re-run the sandbox command, does this show a similar error?

hi, im receiving a similar error following this tutorial https://docs.amplify.aws/react/start/account-setup/
The only AWS account available to you is:<PHONE_NUMBER>01
Using the account ID<PHONE_NUMBER>01
The only role available to you is: amplify-policy
Using the role name "amplify-policy"
CLI default client Region [None]: eu-central-1
CLI default output format [None]:
CLI profile name [amplify-policy-717279690001]: default
To use this profile, specify the profile name using --profile, as shown:
aws s3 ls --profile default
then i launch $ npx ampx sandbox --profile default
and i get
InvalidCredentialError: Failed to load AWS credentials for profile 'default'
Resolution: To configure a new Amplify profile, use npx ampx configure profile.
Cause: Could not load credentials from any providers
the user i log in has AdministrativeAccess policies.
Could you help?

i run the command above npx aws-cdk@latest bootstrap aws:/// and i get this error...
Bootstrapping environment aws://717279690001/eu-central-1...
❌  Environment aws://717279690001/eu-central-1 failed bootstrapping: Error: Need to perform AWS calls for account<PHONE_NUMBER>01, but no credentials have been configured
seems in the .aws folder i don't have credentials file, which commands was supposed to generate it?
thanks again

Hey @Flippittiflop, Could you run npx aws-cdk@latest bootstrap aws://<your-aws-account-id>/<your-aws-region> locally? Then re-run the sandbox command, does this show a similar error?

Yeah, I get the credentials not configured because they for a separate account.
Need to perform AWS calls for account XXX36, but the current credentials are for XXX44
This is how I structured my accounts, to run the command, does it have to be an SSO user inside the management account and not child accounts?

i run the command above npx aws-cdk@latest bootstrap aws:/// and i get this error...
Bootstrapping environment aws://717279690001/eu-central-1... ❌ Environment aws://717279690001/eu-central-1 failed bootstrapping: Error: Need to perform AWS calls for account<PHONE_NUMBER>01, but no credentials have been configured
seems in the .aws folder i don't have credentials file, which commands was supposed to generate it?
thanks again

Follow this @alberto-anelli
SSO Configuration


best practices

how many images per class are required in order to get the best performance out of face recognition models?
how many unique faces at max the face recognition model can handle?

no limit for max faces and one picture for one identity

Hi again,
I need to detect many faces, something like 100 people, could using more than 1 face for example 10 per user increase the total performance?


Update preview image on readme

The image is still out of date. Added a new element to the popup design in PR #4.

Hey! PR #6 brought the image up to date. I'll close this one.


chore(nsq): pass the QueuedMessage interface as parameter

Signed-off-by: Bo-Yi Wu<EMAIL_ADDRESS>

Codecov Report

Merging #6 (852bcbf) into master (712e617) will decrease coverage by 0.99%.
The diff coverage is 44.44%.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   79.62%   78.63%   -1.00%
==========================================
  Files           6        6
  Lines         216      220       +4
==========================================
+ Hits          172      173       +1
- Misses         34       36       +2
- Partials       10       11       +1

Impacted Files
Coverage Δ

simple/simple.go
91.66% <ø> (ø)

nsq/nsq.go
70.27% <44.44%> (-2.59%)
:arrow_down:

Continue to review full report at Codecov.

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


Access document metadata in layout

 Issue by MarcelJurtz
Sunday Sep 27, 2020 at 18:38 GMT
Originally opened as https://github.com/Wyamio/Wyam/issues/17

I'd like to be able to reference a posts author in the _PostHeader file. How can I achieve that? From the docs, I was thinking that I should be able to access the metadata via Model, but any change I make just results in wyam getting stuck in the build and not providing any errors / feedback. Thanks!

Trigger sync issue to AZDO-B


Can not decode 264 bit stream generated by omap

Hi,
I had tried to use the openh264 decoder to decode bit stream generated by TI omap encoder, but it output the yuv data with mosaic.
The first Intra frame is wrong. But ffmpeg and other analyze tool works well.
bitstream.zip
Attach is the bit stream.
stream file.

Thanks for the info. We'll fix the issue ASAP.

@tonybaigang it has been fixed by https://github.com/cisco/openh264/pull/2841, which has been merged into master.
could you please check it?

Great! It fixed.
Thanks


Bacnet segfaults in ACK logic

🐛 Summary
I'm seeing the following 2 segfaults on a network I monitor.  I can't tell if they are related.  Feel free to make a separate issue for the second error if they are not related.  Unfortunately I can't pull/share pcaps or see what packets cause these errors, but I thought I'd flag the errors here.  Thanks!
Error 1:
binpac::BACNET::Complex_ACK_PDU::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::APDU_Header::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::NPDU_Header::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::BVLC_Header::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::BACNET_Flow::NewData(unsigned char const*, unsigned char const*)
analyzer::BACNET::BACNET_Analyzer::DeliverPacket(int, unsigned char const*, bool, unsigned long, zeek::IP_Hdr const*, int)
zeek::analyzer::Analyzer::NextPacket(int, unsigned char const*, bool, unsigned long, zeek::IP_Hdr const*, int)
zeek::analyzer::Analyzer::ForwardPacket(int, unsigned char const*, bool, unsigned long, zeek::IP_Hdr const*, int)
zeek::packet_analysis::UDP::UDPAnalyzer::DeliverPacket(zeek::Connection*, double, bool, int, zeek::Packet*)
zeek::packet_analysis::IP::IPBasedAnalyzer::AnalyzePacket(unsigned long, unsigned char const*, zeek::Packet*)
zeek::packet_analysis::Analyzer::ForwardPacket(unsigned long, unsigned char const*, zeek::Packet*, unsigned int) const
zeek::packet_analysis::IP::IPAnalyzer::AnalyzePacket(unsigned long, unsigned char const*, zeek::Packet*)
zeek::packet_analysis::Analyzer::ForwardPacket(unsigned long, unsigned char const*, zeek::Packet*, unsigned int) const
zeek::packet_analysis::Analyzer::ForwardPacket(unsigned long, unsigned char const*, zeek::Packet*, unsigned int) const
zeek::packet_analysis::Analyzer::ForwardPacket(unsigned long, unsigned char const*, zeek::Packet*, unsigned int) const
zeek::packet_analysis::Analyzer::ForwardPacket(unsigned long, unsigned char const*, zeek::Packet*, unsigned int) const
zeek::packet_analysis::Manager::ProcessPacket(zeek::Packet*)
zeek::run_state::detail::dispatch_packet(zeek::Packet*, zeek::iosource::PktSrc*)
zeek::iosource::PktSrc::Process()
zeek::run_state::detail::run_loop()
main
__libc_start_main
_start

Error 2:
binpac::BACNET::BACNET_Flow::process_read_range_ack(bool, std::vector<binpac::BACNET::BACnet_Tag*, std::allocator<binpac::BACNET::BACnet_Tag*> >*)
binpac::BACNET::Complex_ACK_PDU::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::APDU_Header::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::NPDU_Header::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::BVLC_Header::Parse(unsigned char const*, unsigned char const*, binpac::BACNET::ContextBACNET*, int)
binpac::BACNET::BACNET_Flow::NewData(unsigned char const*, unsigned char const*)
analyzer::BACNET::BACNET_Analyzer::DeliverPacket(int, unsigned char const*, bool, unsigned long, zeek::IP_Hdr const*, int)

I have added a variety of checks in different places that hopefully is preventing out of bound reads that I believe may have been causing the segfaults. I don't have a way to confirm this will fix this issue, so if you are still seeing this issue after the most recent commit, please let me know and I will look into it more.

Thanks!  I loaded it up on my sensors and will watch it for the next few days.

No errors in 2 days.


[Feature 7] Ticket more abstraction

handles Ticket class, buying and selling tickets, ticket activation (Jarett)

tickets tracked by uuid's

done


Handle polymorphic case.

Closing as we do not intend to continue investment in the C# code generator.


Runing Franken in docker on different port doesnt work

What happened?
Hey guys. I tried to deploy my Laravel app into the docker container with Franken and it doesnt work.
Background:
I got docker composed services runing  on one machine - each service is separate compose project connected with same local docker network - that is preparation for the Kubernetes in long term. Ther is a need to serve multiple services on the same domain name so we decided to use KongAPI in front and split traffic when needed. That is why I need to have only http port enabled. I do not want for now to complicate communicaton with https communication between kong and services - it will happen maybe in some distant future. So the requirements are:

only http communication
changed http port
runing in docker container

And I failed. Help help please
When I start docker and try to wget I got:
`wget http://DOMAIN_NAME:8000
--2024-07-24 05:19:34--  http://DOMAIN_NAME:8000/
Resolving DOMAIN_NAME (DOMAIN_NAME)... <IP_ADDRESS>
Connecting to DOMAIN_NAME (DOMAIN_NAME)|<IP_ADDRESS>|:8000... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
--2024-07-24 05:19:35--  (try: 2)  http://DOMAIN_NAME:8000/
Connecting to DOMAIN_NAME (DOMAIN_NAME)|<IP_ADDRESS>|:8000... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
--2024-07-24 05:19:37--  (try: 3)  http://DOMAIN_NAME:8000/
Connecting to DOMAIN_NAME (DOMAIN_NAME)|<IP_ADDRESS>|:8000... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
`
Logs from franken
docker logs emotivo.pim.product 2024/07/23 11:48:24.614 INFO    using config from file  {"file": "/etc/caddy/Caddyfile"} 2024/07/23 11:48:24.616 INFO    adapted config to JSON  {"adapter": "caddyfile"} 2024/07/23 11:48:24.616 WARN    Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies       {"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 2} 2024/07/23 11:48:24.617 INFO    admin   admin endpoint started  {"address": "localhost:2019", "enforce_origin": false, "origins": ["//[::1]:2019", "//<IP_ADDRESS>:2019", "//localhost:2019"]} 2024/07/23 11:48:24.617 INFO    http.auto_https automatic HTTPS is completely disabled for server  {"server_name": "srv0"} 2024/07/23 11:48:24.618 INFO    tls.cache.maintenance   started background certificate maintenance {"cache": "0xc0003a9b80"} 2024/07/23 11:48:24.618 INFO    FrankenPHP started 🐘   {"php_version": "8.3.9", "num_threads": 4} 2024/07/23 11:48:24.618 INFO    http    enabling HTTP/3 listener        {"addr": ":443"} 2024/07/23 11:48:24.619 INFO    http.log        server running  {"name": "srv0", "protocols": ["h1", "h2", "h3"]} 2024/07/23 11:48:24.619 INFO    autosaved config (load with --resume flag){"file": "/config/caddy/autosave.json"} 2024/07/23 11:48:24.619 INFO    serving initial configuration 2024/07/23 11:48:24.621 INFO    tls     cleaning storage unit   {"storage": "FileStorage:/data/caddy"} 2024/07/23 11:48:24.621 INFO    tls     finished cleaning storage units
Caddyfile
`{
{$CADDY_GLOBAL_OPTIONS}
auto_https off
http_port 8000
frankenphp {
#worker /path/to/your/worker.php
{$FRANKENPHP_CONFIG}
}
}
{$CADDY_EXTRA_CONFIG}
{$SERVER_NAME:localhost} {
#log {
#       # Redact the authorization query parameter that can be set by Mercure
#       format filter {
#               request>uri query {
#                       replace authorization REDACTED
#               }
#       }
#}
    root * public/
    encode zstd br gzip

    # Uncomment the following lines to enable Mercure and Vulcain modules
    #mercure {
    #       # Transport to use (default to Bolt)
    #       transport_url {$MERCURE_TRANSPORT_URL:bolt:///data/mercure.db}
    #       # Publisher JWT key
    #       publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} {env.MERCURE_PUBLISHER_JWT_ALG}
    #       # Subscriber JWT key
    #       subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} {env.MERCURE_SUBSCRIBER_JWT_ALG}
    #       # Allow anonymous subscribers (double-check that it's what you want)
    #       anonymous
    #       # Enable the subscription API (double-check that it's what you want)
    #       subscriptions
    #       # Extra directives
    #       {$MERCURE_EXTRA_DIRECTIVES}
    #}
    #vulcain

    {$CADDY_SERVER_EXTRA_DIRECTIVES}
    php_server

}
`
docker compose file
`services:
app.name:
image: registry.gitlab.com/company.name/app.name:test
container_name: app.name
hostname: app.name
stdin_open: true
tty: true
restart: always
privileged: true
ports:
- "8000:8000"
- "8443:8443"
- "8443:8443/udp"
environment:
- SERVER_NAME=DOMAIN_NAME
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
- new_arch_stack-local
networks:
new_arch_stack-local:
external: true`
Docker file
`FROM dunglas/frankenphp
COPY . /app`
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
I didnt get to this point yet to have issues with PHP :D

Relevant log output
No response

You have to set the port to serve on, ie: SERVER_NAME=DOMAIN_NAME:8000.


Using different IdentityAgent defined in Included config file fails

Does this issue occur when all extensions are disabled?: Unknown

VS Code Version: 1.95.3
OS Version: Win10

Steps to Reproduce:

set up remote workspace
user/.ssh/config looks like this:

Include pageant.conf
Host myhost
   HostName x.x.x.x
   User myuser

pageant.conf looks like this:

IdentityAgent \\.\pipe\pageant.myuser.xxxx

connect to remote.... fails. somewhere in the logs, it says

Generated SSH command: 'type "C:\Users\myuser\AppData\Local\Temp\vscode-linux-multi-line-command-myhost-1662333714.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 31950 myhost bash'
C:\Users\myuser\.ssh\pageant.conf:0: config variable before Host variable

modifying pageant.conf to:

Host *
    IdentityAgent \\.\pipe\pageant.myuser.xxxx

Now connecting to remote works.
try the config using just cmd and do: ssh -F config myhost -vvv which says:

debug1: Reading configuration data config
debug3: config line 1: Including file C:\\Users\\myuser/.ssh/pageant.conf depth 0
debug1: Reading configuration data C:\\Users\\myuser/.ssh/pageant.conf
debug1: config line 3: Applying options for myhost

from what i can figured out, vscode does something different than expected by ssh command, which is not according to defined standard behavior of those config files and therefore it fails to properly connect to the remote.
Is this a bug, or intended behavior?

We don't do anything different. The ssh command that you see is what is running. You can set the same verbose flag in your ssh config to see more info


Update install.sh

rye-up.com not foud.
chage to rye.astral.sh

Just hit this too, and can confirm that rye.astral.sh is the new endpoint:

And the curl command would redirect to it with -L, but might as well update the url. Thanks for maintaining this!

@MinoruYoshioka @dbirks thank you so much for the bug fix!  These changes have been incorporated and released as v1.2.3


E2E tests

Looking for a well-mantained test suite for S3 compatibility.

minio/mint: specific to minio
ceph/s3-tests: not well-mantained

Adopted minio/mint for testing s3s-proxy. ./scripts/e2e-mint.sh


[248] Add embedded localstack configuration

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- embedded-localstack/src/main/java/com/playtika/test/localstack/EmbeddedLocalStackBootstrapConfiguration.java  2
- embedded-localstack/src/test/java/com/playtika/test/localstack/DisabledLocalStackTest.java  1
- embedded-localstack/src/test/java/com/playtika/test/localstack/EmbeddedLocalStackTest.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- embedded-localstack/src/main/java/com/playtika/test/localstack/EmbeddedLocalStackBootstrapConfiguration.java  2
- embedded-localstack/src/test/java/com/playtika/test/localstack/EmbeddedLocalStackTest.java  1
- embedded-localstack/src/test/java/com/playtika/test/localstack/DisabledLocalStackTest.java  1

See the complete overview on Codacy


ESP32C6 light sleep current is high @ 330uA (IDFGH-10624)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
I have made a bare-board esp32c6 pcb with no other components except the mandatory ones for strapping and power supply. I make the cpu go to light sleep. However the current drawn is 330uA, much larger than the stated one in the datasheet (35uA). Are there any specific actions before putting to light sleep?

@arif-mansoori Could you please add, which ESP-IDF version you are using (you can check it using git describe) and also attach your sdkconfig file?

Thanks Ivan.
esp-idf version v5.2-dev-1128-g03d4fa2869
sdkconfig is attached...
sdkconfig.txt

@arif-mansoori I recommend you to use the $IDF_PATH/examples/wifi/power_save example for testing, and make sure the following options are properly configured.
# Serial flasher config
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y

# Hardware Settings
CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
CONFIG_RTC_CLK_SRC_INT_RC32K=y

# Power Management
CONFIG_PM_ENABLE=y
CONFIG_PM_DFS_INIT_AUTO=y
CONFIG_PM_SLP_IRAM_OPT=y
CONFIG_PM_RTOS_IDLE_OPT=y
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y

# FreeRTOS
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP=3

# PHY
CONFIG_ESP_PHY_MAC_BB_PD=y

# Wi-Fi
CONFIG_ESP_WIFI_SLP_IRAM_OPT=y
CONFIG_ESP_WIFI_SLP_DEFAULT_MIN_ACTIVE_TIME=10
CONFIG_ESP_WIFI_SLP_DEFAULT_MAX_ACTIVE_TIME=60
CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_OPT=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_TIMEOUT=10
CONFIG_ESP_WIFI_SLP_BEACON_LOST_THRESHOLD=3

# LWIP
# CONFIG_LWIP_ESP_GRATUITOUS_ARP is not set

# MBEDTLS
# remove after corresponding crypto module init/deinit supported
# CONFIG_MBEDTLS_HARDWARE_AES is not set
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
# CONFIG_MBEDTLS_HARDWARE_SHA is not set
# CONFIG_MBEDTLS_HARDWARE_ECC is not set

If you are using a different example, please provide more detailed information.

@esp-lis Thanks. I tried the config as you mentioned, but there is no change. All that my firmware is doing right now is
while (true)
{
time(&now);
boot_count++;
ESP_LOGI(TAG, "boot count %d", (int)boot_count);
prev_time = now;
#ifndef CONFIG_LOG_DEFAULT_LEVEL_NONE
uart_wait_tx_idle_polling(CONFIG_ESP_CONSOLE_UART_NUM);
#endif
esp_sleep_enable_timer_wakeup(20000 * 1000);
esp_light_sleep_start();
}

Deep sleep does bring down to 6.2uA

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

Please add this function esp_sleep_cpu_retention_init() call.

Thanks. Unfortunately there is no change. Current still remains same.

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

perhaps you can try return true in here

Sorry,  I did not understand. Where do I put the return?

@arif-mansoori I recommend you to use the $IDF_PATH/examples/wifi/power_save example for testing, and make sure the following options are properly configured.
# Serial flasher config
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y

# Hardware Settings
CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
CONFIG_RTC_CLK_SRC_INT_RC32K=y

# Power Management
CONFIG_PM_ENABLE=y
CONFIG_PM_DFS_INIT_AUTO=y
CONFIG_PM_SLP_IRAM_OPT=y
CONFIG_PM_RTOS_IDLE_OPT=y
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y

# FreeRTOS
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP=3

# PHY
CONFIG_ESP_PHY_MAC_BB_PD=y

# Wi-Fi
CONFIG_ESP_WIFI_SLP_IRAM_OPT=y
CONFIG_ESP_WIFI_SLP_DEFAULT_MIN_ACTIVE_TIME=10
CONFIG_ESP_WIFI_SLP_DEFAULT_MAX_ACTIVE_TIME=60
CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_OPT=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_TIMEOUT=10
CONFIG_ESP_WIFI_SLP_BEACON_LOST_THRESHOLD=3

# LWIP
# CONFIG_LWIP_ESP_GRATUITOUS_ARP is not set

# MBEDTLS
# remove after corresponding crypto module init/deinit supported
# CONFIG_MBEDTLS_HARDWARE_AES is not set
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
# CONFIG_MBEDTLS_HARDWARE_SHA is not set
# CONFIG_MBEDTLS_HARDWARE_ECC is not set

If you are using a different example, please provide more detailed information.

@arif-mansoori The power management strategy of light sleep without the Modem module (WiFi, BLE or 15.4) is currently under development and support. It is recommended to use the power save example for testing.

Sorry, I did not understand. Where do I put the return?

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

perhaps you can try return true in here

I've modified it.

Thanks! This "return" along with esp_sleep_cpu_retention_init() now gives me a light sleep current of 26uA. It now works!

@arif-mansoori I recommend you to use the $IDF_PATH/examples/wifi/power_save example for testing, and make sure the following options are properly configured.
# Serial flasher config
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y

# Hardware Settings
CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
CONFIG_RTC_CLK_SRC_INT_RC32K=y

# Power Management
CONFIG_PM_ENABLE=y
CONFIG_PM_DFS_INIT_AUTO=y
CONFIG_PM_SLP_IRAM_OPT=y
CONFIG_PM_RTOS_IDLE_OPT=y
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y

# FreeRTOS
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP=3

# PHY
CONFIG_ESP_PHY_MAC_BB_PD=y

# Wi-Fi
CONFIG_ESP_WIFI_SLP_IRAM_OPT=y
CONFIG_ESP_WIFI_SLP_DEFAULT_MIN_ACTIVE_TIME=10
CONFIG_ESP_WIFI_SLP_DEFAULT_MAX_ACTIVE_TIME=60
CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_OPT=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_TIMEOUT=10
CONFIG_ESP_WIFI_SLP_BEACON_LOST_THRESHOLD=3

# LWIP
# CONFIG_LWIP_ESP_GRATUITOUS_ARP is not set

# MBEDTLS
# remove after corresponding crypto module init/deinit supported
# CONFIG_MBEDTLS_HARDWARE_AES is not set
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
# CONFIG_MBEDTLS_HARDWARE_SHA is not set
# CONFIG_MBEDTLS_HARDWARE_ECC is not set

If you are using a different example, please provide more detailed information.

@arif-mansoori The power management strategy of light sleep without the Modem module (WiFi, BLE or 15.4) is currently under development and support. It is recommended to use the power save example for testing.

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori I recommend you to use the $IDF_PATH/examples/wifi/power_save example for testing, and make sure the following options are properly configured.
# Serial flasher config
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y

# Hardware Settings
CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
CONFIG_RTC_CLK_SRC_INT_RC32K=y

# Power Management
CONFIG_PM_ENABLE=y
CONFIG_PM_DFS_INIT_AUTO=y
CONFIG_PM_SLP_IRAM_OPT=y
CONFIG_PM_RTOS_IDLE_OPT=y
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y

# FreeRTOS
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP=3

# PHY
CONFIG_ESP_PHY_MAC_BB_PD=y

# Wi-Fi
CONFIG_ESP_WIFI_SLP_IRAM_OPT=y
CONFIG_ESP_WIFI_SLP_DEFAULT_MIN_ACTIVE_TIME=10
CONFIG_ESP_WIFI_SLP_DEFAULT_MAX_ACTIVE_TIME=60
CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_OPT=y
CONFIG_ESP_WIFI_SLP_BEACON_LOST_TIMEOUT=10
CONFIG_ESP_WIFI_SLP_BEACON_LOST_THRESHOLD=3

# LWIP
# CONFIG_LWIP_ESP_GRATUITOUS_ARP is not set

# MBEDTLS
# remove after corresponding crypto module init/deinit supported
# CONFIG_MBEDTLS_HARDWARE_AES is not set
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
# CONFIG_MBEDTLS_HARDWARE_SHA is not set
# CONFIG_MBEDTLS_HARDWARE_ECC is not set

If you are using a different example, please provide more detailed information.

@arif-mansoori The power management strategy of light sleep without the Modem module (WiFi, BLE or 15.4) is currently under development and support. It is recommended to use the power save example for testing.

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

Will v5.1.1 include this fix?

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

@esp-lis  Any update about this?

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

@esp-lis

About cpu retentin usage
When to call esp_sleep_cpu_retention_init() and esp_sleep_cpu_retention_deinit()?
Is it correct to call esp_sleep_cpu_retention_init() before esp_light_sleep_start()
and call esp_sleep_cpu_retention_deinit() after esp_light_sleep_start()?

I thought setting CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y is enough to reduce the power consumption.
No idea why need to call esp_sleep_cpu_retention_init() for reducing power consumption,
where can I find the document about this?
Is it only necessary for C6?

perhaps you can try return true in here

Seems only c6 defines SOC_PM_MODEM_RETENTION_BY_REGDMA=1.
So this part is c6-only bug?

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

@esp-lis Any update about this?

@esp-lis
We are evaluating the hw for our new project.
However, without cpu retention for esp32c6, the esp32c6 takes more power than esp32c3 in light sleep.
You said this issue will be resolved in the near future 2 Months ago, but this is still not fixed yet.
Any update?

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

@esp-lis Any update about this?

@esp-lis We are evaluating the hw for our new project. However, without cpu retention for esp32c6, the esp32c6 takes more power than esp32c3 in light sleep. You said this issue will be resolved in the near future 2 Months ago, but this is still not fixed yet. Any update?

The ESP32-C6 CPU retention feature has been supported since the initial release. It can be enabled or disabled in auto light sleep mode through the PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP option (It is located at (Top) -> Component config -> Power Management -> Power down CPU in light sleep). For normal light sleep mode, you need to call esp_sleep_cpu_retention_init during the application initialization stage to initialize the CPU retention functionality.
The current issue record is as follows:
For WiFi, BLE, and IEEE802.15.4, these three modules share the same power domain, known as the MODEM domain. To control the power state of this MODEM domain for these three modules (powering up or down during sleep), software management is required. We have already added the support and are preparing to merge it.

The ESP32-C6 CPU retention feature has been supported since the initial release. It can be enabled or disabled in auto light sleep mode through the PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP option (It is located at (Top) -> Component config -> Power Management -> Power down CPU in light sleep). For normal light sleep mode, you need to call esp_sleep_cpu_retention_init during the application initialization stage to initialize the CPU retention functionality.

.
@esp-lis
Could you clarify if calling esp_sleep_cpu_retention_init() is also requrired for esp32c3 for or normal light sleep mode?
I don't find docuement mention this, I thought setting PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y is enough.

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

perhaps you can try return true in here

If I made above change to return true in modem_domain_pd_allowed,
I got below issue after awake from lightsleep and join an AP:
E (23951) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (23951) task_wdt:  - IDLE (CPU 0)
E (23951) task_wdt: Tasks currently running:
E (23951) task_wdt: CPU 0: wifi
E (23951) task_wdt: Print CPU 0 (current core) registers
Stack dump detected
Core 00 register dump:
MEPC    : 0x40807440  RA      : 0x40806b5e  SP      : 0x40841a40  GP      : 0x408186c4
0x40807440: wait_freq_set_busy at ??:?

0x40806b5e: phy_wakeup_init_ at ??:?

TP      : 0x4080351c  T0      : 0x00000004  T1      : 0x4080d20a  T2      : 0x00000005
0x4080351c: npl_freertos_eventq_remove at /home/axel/esp/esp-idf/components/bt/host/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c:352 (discriminator 2)

0x4080d20a: vPortSetupTimer at /home/axel/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/port_systick.c:81 (discriminator 1)

S0/FP   : 0x40819f50  S1      : 0x40820a74  A0      : 0x00000001  A1      : 0x00000000
A2      : 0x600af81c  A3      : 0xff7fffff  A4      : 0x600a0000  A5      : 0x00000000
A6      : 0xfe03ffff  A7      : 0x4081b42c  S2      : 0x40819f50  S3      : 0x00000000
S4      : 0x0001e7ff  S5      : 0x40880000  S6      : 0x40880000  S7      : 0x40880000
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000003  T4      : 0x00000009  T5      : 0x00000067  T6      : 0x0000000b
MSTATUS : 0x00000300  MTVEC   : 0x28010200  MCAUSE  : 0x00000000  MTVAL   : 0x4081de00
MHARTID : 0x40821000
E (28951) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (28951) task_wdt:  - IDLE (CPU 0)
E (28951) task_wdt: Tasks currently running:
E (28951) task_wdt: CPU 0: wifi
E (28951) task_wdt: Print CPU 0 (current core) registers
Core 00 register dump:
MEPC    : 0x40807440  RA      : 0x40806b5e  SP      : 0x40841a40  GP      : 0x408186c4
0x40807440: wait_freq_set_busy at ??:?

0x40806b5e: phy_wakeup_init_ at ??:?

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

perhaps you can try return true in here

If I made above change to return true in modem_domain_pd_allowed, I got below issue after awake from lightsleep and join an AP:
E (23951) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (23951) task_wdt:  - IDLE (CPU 0)
E (23951) task_wdt: Tasks currently running:
E (23951) task_wdt: CPU 0: wifi
E (23951) task_wdt: Print CPU 0 (current core) registers
Stack dump detected
Core 00 register dump:
MEPC    : 0x40807440  RA      : 0x40806b5e  SP      : 0x40841a40  GP      : 0x408186c4
0x40807440: wait_freq_set_busy at ??:?

0x40806b5e: phy_wakeup_init_ at ??:?

TP      : 0x4080351c  T0      : 0x00000004  T1      : 0x4080d20a  T2      : 0x00000005
0x4080351c: npl_freertos_eventq_remove at /home/axel/esp/esp-idf/components/bt/host/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c:352 (discriminator 2)

0x4080d20a: vPortSetupTimer at /home/axel/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/port_systick.c:81 (discriminator 1)

S0/FP   : 0x40819f50  S1      : 0x40820a74  A0      : 0x00000001  A1      : 0x00000000
A2      : 0x600af81c  A3      : 0xff7fffff  A4      : 0x600a0000  A5      : 0x00000000
A6      : 0xfe03ffff  A7      : 0x4081b42c  S2      : 0x40819f50  S3      : 0x00000000
S4      : 0x0001e7ff  S5      : 0x40880000  S6      : 0x40880000  S7      : 0x40880000
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000003  T4      : 0x00000009  T5      : 0x00000067  T6      : 0x0000000b
MSTATUS : 0x00000300  MTVEC   : 0x28010200  MCAUSE  : 0x00000000  MTVAL   : 0x4081de00
MHARTID : 0x40821000
E (28951) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (28951) task_wdt:  - IDLE (CPU 0)
E (28951) task_wdt: Tasks currently running:
E (28951) task_wdt: CPU 0: wifi
E (28951) task_wdt: Print CPU 0 (current core) registers
Core 00 register dump:
MEPC    : 0x40807440  RA      : 0x40806b5e  SP      : 0x40841a40  GP      : 0x408186c4
0x40807440: wait_freq_set_busy at ??:?

0x40806b5e: phy_wakeup_init_ at ??:?

The log indicates that the system hangs when the WiFi task enables RF. Does this issue occur 100% of the time? If it does, could you try disabling light sleep and test with modem sleep mode to see if the problem persists?
If it's not happening 100% of the time, please provide detailed software versions and configurations, and I will attempt to reproduce the issue locally. Thank you!

@esp-lis
I test on v5.1 branch.
Below code snip can reproduce the issue after device wake up from lightsleep and start wifi again.
This issue only happen if you change modem_domain_pd_allowed() to return true.
while (1) {
        wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
        ESP_ERROR_CHECK(esp_wifi_init(&cfg));
        esp_wifi_start();
        vTaskDelay(pdMS_TO_TICKS(3000));
        esp_wifi_stop();
        esp_wifi_deinit();
        esp_sleep_enable_timer_wakeup(10000000);
        esp_light_sleep_start();
}

The log:
I (10619) LightSleep: Wakeup by timer
I (10649) pp: pp rom version: 5b8dcfa
I (10649) net80211: net80211 rom version: 5b8dcfa
I (10659) wifi:wifi driver task: 40834c48, prio:23, stack:6656, core=0
I (10659) wifi:wifi firmware version: dc6ffb6
I (10659) wifi:wifi certification version: v7.0
I (10659) wifi:config NVS flash: enabled
I (10659) wifi:config nano formating: disabled
I (10669) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (10669) wifi:Init data frame dynamic rx buffer num: 32
I (10679) wifi:Init static rx mgmt buffer num: 5
I (10679) wifi:Init management short buffer num: 32
I (10689) wifi:Init dynamic tx buffer num: 32
I (10689) wifi:Init static tx FG buffer num: 2
I (10689) wifi:Init static rx buffer size: 1700
I (10699) wifi:Init static rx buffer num: 10
I (10699) wifi:Init dynamic rx buffer num: 32
I (10709) wifi_init: rx ba win: 6
I (10709) wifi_init: tcpip mbox: 32
I (10709) wifi_init: udp mbox: 6
I (10719) wifi_init: tcp mbox: 6
I (10719) wifi_init: tcp tx win: 5744
I (10729) wifi_init: tcp rx win: 5744
I (10729) wifi_init: tcp mss: 1440
I (10739) wifi_init: WiFi IRAM OP enabled
I (10739) wifi_init: WiFi RX IRAM OP enabled
E (15649) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (15649) task_wdt:  - IDLE (CPU 0)
E (15649) task_wdt: Tasks currently running:
E (15649) task_wdt: CPU 0: wifi
E (15649) task_wdt: Print CPU 0 (current core) registers
Stack dump detected
Core �8 register dump:
MEPC    : 0x40805f7e  RA      : 0x408056a0  SP      : 0x40834b50  GP      : 0x408170e4
0x40805f7e: wait_freq_set_busy at ??:?

0x408056a0: phy_wakeup_init_ at ??:?

 Below code snip can reproduce the issue after device wake up from lightsleep and start wifi again. This issue only happen if you change modem_domain_pd_allowed() to return true.
while (1) {
        wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
        ESP_ERROR_CHECK(esp_wifi_init(&cfg));
        esp_wifi_start();
        vTaskDelay(pdMS_TO_TICKS(3000));
        esp_wifi_stop();
        esp_wifi_deinit();
        esp_sleep_enable_timer_wakeup(10000000);
        esp_light_sleep_start();
}

The log:
I (10619) LightSleep: Wakeup by timer
I (10649) pp: pp rom version: 5b8dcfa
I (10649) net80211: net80211 rom version: 5b8dcfa
I (10659) wifi:wifi driver task: 40834c48, prio:23, stack:6656, core=0
I (10659) wifi:wifi firmware version: dc6ffb6
I (10659) wifi:wifi certification version: v7.0
I (10659) wifi:config NVS flash: enabled
I (10659) wifi:config nano formating: disabled
I (10669) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (10669) wifi:Init data frame dynamic rx buffer num: 32
I (10679) wifi:Init static rx mgmt buffer num: 5
I (10679) wifi:Init management short buffer num: 32
I (10689) wifi:Init dynamic tx buffer num: 32
I (10689) wifi:Init static tx FG buffer num: 2
I (10689) wifi:Init static rx buffer size: 1700
I (10699) wifi:Init static rx buffer num: 10
I (10699) wifi:Init dynamic rx buffer num: 32
I (10709) wifi_init: rx ba win: 6
I (10709) wifi_init: tcpip mbox: 32
I (10709) wifi_init: udp mbox: 6
I (10719) wifi_init: tcp mbox: 6
I (10719) wifi_init: tcp tx win: 5744
I (10729) wifi_init: tcp rx win: 5744
I (10729) wifi_init: tcp mss: 1440
I (10739) wifi_init: WiFi IRAM OP enabled
I (10739) wifi_init: WiFi RX IRAM OP enabled
E (15649) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (15649) task_wdt:  - IDLE (CPU 0)
E (15649) task_wdt: Tasks currently running:
E (15649) task_wdt: CPU 0: wifi
E (15649) task_wdt: Print CPU 0 (current core) registers
Stack dump detected
Core �8 register dump:
MEPC    : 0x40805f7e  RA      : 0x408056a0  SP      : 0x40834b50  GP      : 0x408170e4
0x40805f7e: wait_freq_set_busy at ??:?

0x408056a0: phy_wakeup_init_ at ??:?

TP      : 0x407fe824  T0      : 0x00000004  T1      : 0x4080b944  T2      : 0x00000005
0x4080b944: uxInitialiseStackTLS at /home/axel/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:164
 (inlined by) pxPortInitialiseStack at /home/axel/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:284

S0/FP   : 0x40818848  S1      : 0x4081f18c  A0      : 0x00000001  A1      : 0x00000000
A2      : 0x600af81c  A3      : 0xff7fffff  A4      : 0x600a0000  A5      : 0x00000000
A6      : 0xfe03ffff  A7      : 0x40819bd4  S2      : 0x40818848  S3      : 0x00000000
S4      : 0x0001e7ff  S5      : 0x40880000  S6      : 0x40880000  S7      : 0x40880000
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000003  T4      : 0x00000009  T5      : 0x00000067  T6      : 0x0000000b
MSTATUS : 0x00000300  MTVEC   : 0x28010200  MCAUSE  : 0x00000000  MTVAL   : 0x4081c518
MHARTID : 0x4081f000

Done

I tried to reproduce it locally using release/v5.1 (c1c843f5), but it seems to be working fine.
Below is the attachment of the sdkconfig for your reference. Thank you.
sdkconfig.txt

Hi @esp-lis
After compare with your sdkconfig, I found this issue does not happen if CONFIG_ESP_PHY_MAC_BB_PD=y. You can set CONFIG_ESP_PHY_MAC_BB_PD=n to reproduce the issue.

Enabling the CONFIG_ESP_PHY_MAC_BB_PD option initializes WiFi MAC + BB's sleep retention function. esp_wifi_stop(), esp_wifi_deinit() in the example code is followed by a light sleep. I think it can still work normally without WiFi MAC + BB retention. I will report this issue to relevant developer, thank you.

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

@esp-lis
It has been in reviewing state for more than 3 Months.
I didn't expect such long time to get the fix since you mentioned that this will be resolved in the near future on Jul 27.
Will this get fixed in v5.1 branch?

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

@esp-lis
The sleep_enable_cpu_retention() is guarded by #if SOC_PM_SUPPORT_CPU_PD && SOC_PM_CPU_RETENTION_BY_RTCCNTL .
https://github.com/espressif/esp-idf/blob/master/components/esp_hw_support/include/esp_private/sleep_cpu.h#L43-L61
ESP32C6 does not set SOC_PM_CPU_RETENTION_BY_RTCCNTL, so I'm wondering if cpu retention really work for c6,
or I just misunderstand the purpose of this function?

Hello...any pointers in this direction? If the 35uA current during light sleep was validated, can I get the example firmware?

You are using the normal light sleep mode. You need to call esp_sleep_cpu_retention_init() to initialize the CPU retention in the app_main() function.

perhaps you can try return true in here

@esp-lis
I notice another issue with above change.
With below configuration:
PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y
Use examples/system/light_sleep to reproduce the issue.
The modified code as below:

Use gpio 4 insteat of BOOT_BUTTON_NUM for wakup gpio (any rtc_gpio_is_valid_gpio() can trigger the issue.
Call esp_sleep_cpu_retention_init()
comment out timer/uart wakup, make it simple, just test gpio wakeup

I attached my modified code and sdkconfig below:
light_sleep_test.diff.log
sdkconfig.log
The symptom. (I add debug print to show wakeup_cause, it's always 0)
Returned from light sleep, reason: other, t=26040 ms, slept for 2 ms
E (24081) sleep: wakeup_cause=0
Entering light sleep
E (24097) sleep: wakeup_cause=0
Returned from light sleep, reason: other, t=26057 ms, slept for 2 ms
E (24097) sleep: wakeup_cause=0
Entering light sleep
E (24114) sleep: wakeup_cause=0
Returned from light sleep, reason: other, t=26075 ms, slept for 2 ms

Hi @esp-lis
After compare with your sdkconfig, I found this issue does not happen if CONFIG_ESP_PHY_MAC_BB_PD=y. You can set CONFIG_ESP_PHY_MAC_BB_PD=n to reproduce the issue.

Enabling the CONFIG_ESP_PHY_MAC_BB_PD option initializes WiFi MAC + BB's sleep retention function. esp_wifi_stop(), esp_wifi_deinit() in the example code is followed by a light sleep. I think it can still work normally without WiFi MAC + BB retention. I will report this issue to relevant developer, thank you.

@esp-lis So how is the status for above fix? Should I create a new issue to trace this issue?

@esp-lis I test on v5.1 branch. Below code snip can reproduce the issue after device wake up from lightsleep and start wifi again. This issue only happen if you change modem_domain_pd_allowed() to return true.
while (1) {
        wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
        ESP_ERROR_CHECK(esp_wifi_init(&cfg));
        esp_wifi_start();
        vTaskDelay(pdMS_TO_TICKS(3000));
        esp_wifi_stop();
        esp_wifi_deinit();
        esp_sleep_enable_timer_wakeup(10000000);
        esp_light_sleep_start();
}

The log:
I (10619) LightSleep: Wakeup by timer
I (10649) pp: pp rom version: 5b8dcfa
I (10649) net80211: net80211 rom version: 5b8dcfa
I (10659) wifi:wifi driver task: 40834c48, prio:23, stack:6656, core=0
I (10659) wifi:wifi firmware version: dc6ffb6
I (10659) wifi:wifi certification version: v7.0
I (10659) wifi:config NVS flash: enabled
I (10659) wifi:config nano formating: disabled
I (10669) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (10669) wifi:Init data frame dynamic rx buffer num: 32
I (10679) wifi:Init static rx mgmt buffer num: 5
I (10679) wifi:Init management short buffer num: 32
I (10689) wifi:Init dynamic tx buffer num: 32
I (10689) wifi:Init static tx FG buffer num: 2
I (10689) wifi:Init static rx buffer size: 1700
I (10699) wifi:Init static rx buffer num: 10
I (10699) wifi:Init dynamic rx buffer num: 32
I (10709) wifi_init: rx ba win: 6
I (10709) wifi_init: tcpip mbox: 32
I (10709) wifi_init: udp mbox: 6
I (10719) wifi_init: tcp mbox: 6
I (10719) wifi_init: tcp tx win: 5744
I (10729) wifi_init: tcp rx win: 5744
I (10729) wifi_init: tcp mss: 1440
I (10739) wifi_init: WiFi IRAM OP enabled
I (10739) wifi_init: WiFi RX IRAM OP enabled
E (15649) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (15649) task_wdt:  - IDLE (CPU 0)
E (15649) task_wdt: Tasks currently running:
E (15649) task_wdt: CPU 0: wifi
E (15649) task_wdt: Print CPU 0 (current core) registers
Stack dump detected
Core �8 register dump:
MEPC    : 0x40805f7e  RA      : 0x408056a0  SP      : 0x40834b50  GP      : 0x408170e4
0x40805f7e: wait_freq_set_busy at ??:?

0x408056a0: phy_wakeup_init_ at ??:?

TP      : 0x407fe824  T0      : 0x00000004  T1      : 0x4080b944  T2      : 0x00000005
0x4080b944: uxInitialiseStackTLS at /home/axel/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:164
 (inlined by) pxPortInitialiseStack at /home/axel/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:284

S0/FP   : 0x40818848  S1      : 0x4081f18c  A0      : 0x00000001  A1      : 0x00000000
A2      : 0x600af81c  A3      : 0xff7fffff  A4      : 0x600a0000  A5      : 0x00000000
A6      : 0xfe03ffff  A7      : 0x40819bd4  S2      : 0x40818848  S3      : 0x00000000
S4      : 0x0001e7ff  S5      : 0x40880000  S6      : 0x40880000  S7      : 0x40880000
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000003  T4      : 0x00000009  T5      : 0x00000067  T6      : 0x0000000b
MSTATUS : 0x00000300  MTVEC   : 0x28010200  MCAUSE  : 0x00000000  MTVAL   : 0x4081c518
MHARTID : 0x4081f000

Done

@AxelLin this issue has been fixed in 581824d1

Do you have an ETA of when the power management strategy of light sleep without the Modem module will be released?

@arif-mansoori The issue will be resolved in the near future, and I will inform you here. Thank you!

@esp-lis
How is the status now? Already wait for the fix for half-year.

@AxelLin This feature has been merged into the latest master, pls test with the latest master branch/

@AxelLin This feature has been merged into the latest master, pls test with the latest master branch.

@esp-lis
The master is imply broken to me.
I cannot test master now due to panic with https://github.com/espressif/esp-idf/issues/13288.

@AxelLin This feature has been merged into the latest master, pls test with the latest master branch.

BTW, do you mean now it's ok to remove the hack in https://github.com/espressif/esp-idf/issues/11858#issuecomment-1641568390 ?

@AxelLin This feature has been merged into the latest master, pls test with the latest master branch.

BTW, do you mean now it's ok to remove the hack in #11858 (comment) ?

I mean https://github.com/espressif/esp-idf/issues/11858#issuecomment-1640244734

@AxelLin This feature has been merged into the latest master, pls test with the latest master branch.

BTW, do you mean now it's ok to remove the hack in #11858 (comment) ?

I mean #11858 (comment)

Could you share which commit fixed this issue?
(I'd like to remove my local hack when the fix is in release branches).

@AxelLin This feature has been merged into the latest master, pls test with the latest master branch.

BTW, do you mean now it's ok to remove the hack in #11858 (comment) ?

I mean #11858 (comment)

Could you share which commit fixed this issue? (I'd like to remove my local hack when the fix is in release branches).

@AxelLin pls refer to 0c68b9b0.

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates.
Thanks for using our Espressif product!


Swap out ngRoute/$routeProvider with ui-router/$urlRouterProvider

ngRoute, though not completely deprecated has been moved into its own Angular module. It'd be beneficial to swap it out for ui-router which allows for nested-views and more!

Replaced with ui-router in #52


Home Page

Make the UI of home page better. Modify the layout for both dark mode and light mode .
Don't forget to include the before and after screenshots.

Hey I have tried to make some changes to the home page and fixed a bug can I do a PR?

Hey I have tried to make some changes to the home page and fixed a bug can I do a PR?

@ghsayan share the screenshot of before and after

Done. Kindly review them.

I would like to tackle this issue

Make the UI of home page better. Modify the layout for both dark mode and light mode .
Don't forget to include the before and after screenshots.

i want to give it a shot

@Aniket762
Fixed a javascript file load issue and alignment on homepage, please accept my contribution. Thanks

@Aniket762 I see my pull request was closed without merge or any comments. I did not make a large change because it might be too tricky to test or do a code review for.
Please do let me know if you are not looking for any outside contributions for this project

Hey @ankitminglani, the changes were very minute and I felt it's not needed so closed the pull request. And yes outside collaborators can contribute. We would love to see the changes you make but first please let me know if you are interested and then I will assign it to you and then you can work on it.

@Aniket762 I sent a pull request because i was interested in making more contributions to this project. I think a lot of good things can be done. Your readme.md file did not say anything that i have to be assigned an issue to work on it so i just sent a pull request which has worked fine for me with other projects.
In general practice, since this was my first commit to your project i would not want to make ground breaking changes so we both are comfortable working on it and have confidence of taking it to next level.
Do let me know your thoughts.
I did fix a very logical issue in your website. Bootstrap needs jQuery and jquery was loaded after bootstrap, so if you see you will get this error on console log , the site works after a split second once this is resolved by your browser.

Sorry for the inconvenience @ankitminglani, your PR was so minor that it got marked as spam by our spammy bot. I have reopened it, kindly go through the revisions before we can merge it.

Hey, I have tried to make a new layout for the home page.
following are the screenshots before and after.
Before:
[main-building]

[branches]

[course-info]

[resource]

[footer]

After:
[branches]

[course-info]

[resource]

Welcome your valuable feedback changes.

Hey, @smalawad thanks for your effort it looks great but we don't want to change the UI of our homepage as of now.

Thanks for your response!
May I know Is the issue still open? If so how can I contribute to?

@Aniket762  please assign this to me i can solve the issues or modify it

@Aniket762 please assign this to me i can solve the issues or modify it

go for it


Bump version to 1.10.0

Changes

Fix printing of parameters in MATRIX-GATE-DEFINITION entries (#316) @appleby
Add support for pretty-printing small integer multiples of pi (#318) @appleby
Install libtweedledum as part of the docker image. Fixes #321.  @jmbr
Fully parse quil in quil-to-native-quil endpoint @notmgsk
Configurable protoquil (#289) @notmgsk
Add MATCH-LINE macro @kilimanjaro
chip-specification-to-qpu-hash-table (#337) @notmgsk
publish compiler-hook stats (#340)  @ecpeterson
🆒 Annotate compiler functions (#210) @ecpeterson 🆒

And more smaller bug fixes.

@notmgsk I appreciate the changelog

LGTM.
Not sure if we want to mention the gate modifier reversal bug fix (#329) in the changes section or if it's covered by the "and more smaller bug fixes" line.

Bit of this, bit of that. I could've done a better job.


First version - Added MongoDB Logging to WPWithin

Added a new MongoDB Logger object to core.go
Added a new package mongodblogger containing all the mongodb specific code.
Updated wpwithin.go to instrument all API calls.
To turn on logging set environment variable WPW_MONGODB_LOGGING=ON
You must also point WPW_MONGODB_SERVER to a valid MongoDB server (e.g. localhost).
If either of these are not set logging becomes a noop.
Also fixed a bug in sample-producer-callbacks/main.go.
You will need the Mgo MongoDB Driver library.
go get gopkg.in/mgo.v2

Manually added all of this while refactoring it to fit existing eventhandler pattern.
Please see commit 30b7cbf68ab3ce71d4df1a133f0fee504c0ea6dd


CLI version command can check if CLI wasn't updated

We can use github releases (currently private) for checking if the version is the latest.

This can be extended for breaking changes detection before we go to the 1.0 release

So is the suggestion to print to the terminal that a version update is available?
I like the idea, but it can be a fine line between being annoying and useful.
$ rhoas whoami
A new version is available! Run blah blah bl;ah to update
ephelan_kafka_devexp

$ rhoas kafka list
A new version is available! Run blah blah bl;ah to update

<LIST OF KAFKAS>

We could show this when the user logs in, which usually only happens once per day.


Replace straight w/ apostrophes and remove italics

https://next.carbondesignsystem.com/guidelines/content/overview

[ ]  Replace single straight quotes w/ apostrophes. THroughout page.

[ ] Remove italics (see below)

No italic needed here:

tracking straight quote bugs here
tracking italics here #1327


merged_to field needs help_text

Is your feature request related to a problem? Please describe.
Some users do not find the "Merged to" title to be intuitive enough.
Describe the solution you'd like
Add help_text to the merged_to field in the class Ticket of models.py and update migrations as necessary.
help_text=_('If selected, this ticket will be merged into the selected ticket.'),

Describe alternatives you've considered
Renaming the field was another option, but this seems like a simple solution that will work well with minimal effort.

You're right, the name is not really explicit. But warning : if you edit a ticket and set the merged_to field, it won't trigger the real merging action.
To do this, you have to select the tickets you want to merge in the ticket list. Then you would choose which information to keep, and all the followups, ticketcc and attachments will be moved from a ticket to the main one.
So this field in the edit ticket form is not really necessary in fact. It's more for the superuser to correct an error. So maybe the best solution would be to remove it from this form for normal users ?

The field could be disabled (grayed out) on the edit screen for display purposes.
OR
The field change could trigger the merging action.
Either option could work, I'm not familiar with how we would accomplish either.

Yeah I think first option could be nice, I can make a PR for that.
Second might not really be easy to implement since it requires an intermediate page to choose which information to merge.

Will you include the help_text on your PR also please.
On Thu, Feb 4, 2021 at 9:53 AM Benbb96<EMAIL_ADDRESS>wrote:

Yeah I think first option could be nice, I can make a PR for that.
Second might not really be easy to implement since it requires an
intermediate page to choose which information to merge.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/django-helpdesk/django-helpdesk/issues/938#issuecomment-773454296,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOLRZMOEICJ3EDY34XMEHYDS5LGI7ANCNFSM4XBRNRFA
.

help_text=_('This ticket is merged into the selected ticket.'),

Yes no problem 😉


Assign additional built-in Sovereign landing zone policy initiatives

Overview/Summary
AB#32559
Assign additional built-in Sovereign landing zone policy initiatives for the ALZ Default Policy Assignments Module.
This PR fixes/adds/changes/removes

Assign below initiatives in ALZ Bicep, optionally, disabled by default
[Preview]: Sovereignty Baseline - Global Policies - c1cbff38-87c0-4b9f-9f70-035c7a3b5523 (azadvertizer.net) to the Intermediate Root Management Group
[Preview]: Sovereignty Baseline - Confidential Policies - 03de05a4-c324-4ccd-882f-a814ea8ab9ea (azadvertizer.net) to the confidential-corp & confidential-online Management Groups, if deployed/exist

Breaking Changes

None

Testing Evidence
Tested deployment with parLandingZoneMgConfidentialEnable as well as with changing out specific params within the user defined types.
Confidential Corp

Confidential Online

Int-Root

As part of this Pull Request I have

[x] Read the Contribution Guide and ensured this PR is compliant with the guide
[ ] Ensured the resource API versions in .bicep file/s I am adding/editing are using the latest API version possible
[x] Checked for duplicate Pull Requests
[ ] Associated it with relevant GitHub Issues
[x] (ALZ Bicep Core Team Only) Associated it with relevant ADO Items
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[x] Performed testing and provided evidence.
[ ] Updated one or more of the following tests (if required)

Unit
Linting
E2E (End-To-End)
ValidateAzCloud (Base validation in Azure Cloud)
ValidateMcCloud (Base validation in Azure China Cloud)

[ ] Updated relevant and associated documentation (e.g. Contribution Guide, Module READMEs, Wiki Docs etc.)
[ ] If relevant, created or updated Code Tours here

/azp run validateazcloud

/azp run validateazcloud

@jtracey93 Added in the logic to use the deployment().location.


Animate Side Navigation submenu with CSS

Changes

Removed WithCSSTransition from Side Navigation submenu's transition and instead use CSS
Not working correctly yet, animation seems off speed for the different layers:

Testing

Manual testing in Storybook

Docs

TBD: changeset

@mayank99 can you take a look? I feel like parent's div (iui-submenu) moves independently from child iui-side-navigation-submenu which is why they looks off-sync. I have tried setting the same animaton for both like adding transform: translateXandtransition: visibility var(--iui-duration-2), transform var(--iui-duration-2);` for both but they are still off-sync :c

@mayank99 can you take a look? I feel like parent's div (iui-submenu) moves independently from child iui-side-navigation-submenu which is why they looks off-sync.

to keep the child from moving, you'll need to remove transform: translateX(-100%) from the parent and add justify-content: end + justify-items: end.

@mayank99 can you take a look? I feel like parent's div (iui-submenu) moves independently from child iui-side-navigation-submenu which is why they looks off-sync.

to keep the child from moving, you'll need to remove transform: translateX(-100%) from the parent and add justify-content: end + justify-items: end.

Wow thanks! That works! But I am so confused. How come in expandable block which I feel was exact logic, worked with transform: translateX(-100%) but not here and we need the justify-content + items here?


Automator: update<EMAIL_ADDRESS>in<EMAIL_ADDRESS>

Generated by Automator - 2024-06-07T02:01:47+00:00

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

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio_release-1.21
4c74f839316d1c0b429525d8792df439f0884434
link
true
/test unit-tests-arm64

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

/test unit-tests-arm64


Provide an option to forward packets with bad/missing CRC

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Summary

Add an option, in the configuration file, to forward packets with bad/missing CRC. The same way the Semtech UDP Packet Forwarder does.
What is the use-case?
In case of device development, testing, debugging and diagnostic those packets can be useful on the server side.
Implementation description
At the check if CRC is ok, add a check on the options to see if the packet must be dropped.
Also, it seems that there is a little "bug" actually. If the CRC is missing, the log will report that there was a packet with bad crc: https://github.com/chirpstack/chirpstack-concentratord/blob/039b0b0058639f6b9365dcd60e0f0dfd9ec261e4/chirpstack-concentratord-2g4/src/handler/uplink.rs#L27
WARNING: the UDP forwarder connecting to the concentratord expects the CRC to be OK at this time and does override status. This means there must first be an adaptation of this software.
Can you implement this by yourself and make a pull request?
Yes possibly.

Hi @mullerch I removed this (also from the v4 Protobuf messages), but I don't mind adding this back if there is an use-case for this.

This is implemented by https://github.com/chirpstack/chirpstack-concentratord/commit/b9c36dd01e9b61b336e33f22afe6540e630624d1.

This implements the filtering for the UDP forwarder: https://github.com/chirpstack/chirpstack-udp-forwarder/commit/6a7fb8ac93bd301ee9a72e2637bd572d95b599b6.


This doesnt work for Private IPs and Vnets

Not sure why, but this YAML doesn't work as described. When utilizing it you get an error message of "(PrivateIPAddressNotSupported) IP Address type in container group 'mygroup' is invalid. Private IP address is only supported when network profile is defined.
Code: PrivateIPAddressNotSupported"
Network Profiles just got deprecated. So now what is the method to set this in YAML? Are we back to square one of zero private networking options with YAML?

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

ID: 81e00caf-dd95-441b-d2d5-0b3c979cb11b
Version Independent ID: 83ed8e59-7ae8-332e-9ce0-7d80e8a973f8
Content: Deploy container group to Azure virtual network - Azure Container Instances
Content Source: articles/container-instances/container-instances-vnet.md
Service: container-instances
GitHub Login: @macolso
Microsoft Alias: macolso

Hello @mkleef,
Thank you for reporting this issue, i am checking with the internal teams about this currently. I will get back with an appropriate resolution.

@mkleef,
Just wanted to keep you posted that i have forwarded this feedback to the document owner, and is currently being reviewed. We shall update you as soon as we have a solution or any quick workaround for this.
@macolso - Thank you for your response. We wait to hear from you on this.

Thanks. If you want any further insight, happy to get on a call and talk about it.

On Jan 11, 2022, at 11:26 PM, Priyanka_Rudramaina-MSFT @.***> wrote:
@mkleef https://github.com/mkleef,
Just wanted to keep you posted that i have forwarded this feedback to the document owner, and is currently being reviewed. We shall update you as soon as we have a solution or any quick workaround for this.
@macolso https://github.com/macolso - Thank you for your response. We wait to hear from you on this.
—
Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/85935#issuecomment-1010721423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIZUTBJBM4MH26AARBP223UVUUKRANCNFSM5LGC2G4A.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.

@mkleef,
Product team is looking in to this and we shall keep you updated once we hear from them

Hi @mkleef - can you confirm that you're using API version 2021-07-01 in your YAML?

Hey there Mackenzie, thanks for the response. I don't think I am. I think my code is using 2018-10-01. I will try again with the version above and see what happens. In the meantime, where can I find the schema of what is supported in YAML? The main Microsoft.ContainerInstance/containerGroups page only describes Bicep and JSON. FWIW I ended up getting it working in JSON with ARM templates. I would have preferred Docker-Compose (as it supports some different options that Azure doesn't seem to), but again some areas like the above with regard to networking are not supported.
There are some other things I would like to be able to do such as setting Linux container options like NET_ADMIN which Azure doesn't seem to support...

Hello @mkleef,
Did you get a chance to try it with the latest version as suggested by Mackenzie? If yes, can you share an update please?

Thanks for the followup. I haven’t had a moment to look yet. Will look again shortly. Have more bugs with Azure and containers that Im prioritizing at present as I ended up using JSON with ARM templates to work around it.

On Feb 2, 2022, at 12:31 AM, Priyanka_Rudramaina-MSFT @.***> wrote:
Hello @mkleef https://github.com/mkleef,
Did you get a chance to try it with the latest version as suggested by Mackenzie? If yes, can you share an update please?
—
Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/85935#issuecomment-1027696359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIZUTCWCABCCNTD6FAI23LUZDTWNANCNFSM5LGC2G4A.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.

Hello @mkleef,
When you resume working on this and have any further issues to discuss, feel free to tag me or @macolso here and we will be happy to help.


Writing test cases for Unirest java

I have used Unirest library for calling third party APIs in my services,it works fine but fails when writing test cases. But I also need to test the Service classes which calls the third party APIs, I have tried to test the services but it usually fails. How to test a service that uses Unirest library to call the APIs ? I am usingSpring Bootand posting my code of the service and the test cases.
Service class method :
private String locationUrl = "https://data.sfgov.org/resource/rqzj-sfat.json";

	@Override
	public List<FoodTruckDto> listFoodTruckLocations(Double givenLatitude, Double givenLongitude) throws Exception{

		log.info("Given Latitude => "+givenLatitude+" Given Longitude => "+givenLongitude);

		List<FoodTruckDto> foodTrucks = new ArrayList<>();

		HttpResponse<List<FoodTruckDto>> foodTrucksResponse =
				Unirest.get(locationUrl) .queryString("facilitytype", "Truck") .asObject(new
						GenericType<List<FoodTruckDto>>(){});

		if (foodTrucksResponse.getStatus() == HttpStatus.OK) {

			foodTrucks = foodTrucksResponse.getBody();

			foodTrucks.sort(new SortingLocations(givenLatitude, givenLongitude));

		} else {
			UnirestParsingException ex = foodTrucksResponse.getParsingError().get();
			log.error("Error Message => "+ex.getMessage());
			log.error("Error Cause => "+ex.getCause());
			log.error("Error Original Body => "+ex.getOriginalBody());

			throw new CustomException("exc001");
		}
		return foodTrucks;
	}

Test class method :

@SpringBootTest
public class LocationServiceImplTest {

	@Mock
	private RestTemplate restTemplate;

	private MockRestServiceServer mockServer;

	@MockBean
	private LocationService locationService;

	@BeforeEach
	public void setUp() {

		mockServer = MockRestServiceServer.createServer(restTemplate);

	}

	/**
	 * Test of listFoodTruckLocations method, of class LocationServiceImpl.
	 */
	@Test
	public void testListFoodTruckLocations() throws Exception {

		Gson gson = new Gson();

		List<FoodTruckDto> foodTruckResult = new ArrayList<>();

		this.mockServer.expect(requestTo("https://data.sfgov.org/resource/rqzj-sfat.json?facilitytype=Truck"))
		.andExpect(method(HttpMethod.GET)).andRespond(withStatus(HttpStatus.OK).contentType(MediaType.APPLICATION_JSON).body(gson.toJson(foodTruckResult)));

		List<FoodTruckDto> foodTruckDtos = locationService.listFoodTruckLocations(233.3, -131.02);

		mockServer.verify();

		assertThat(foodTruckDtos).isEqualTo(foodTruckResult);
	}

}

The test case fails at mockServer.verify();  . Is using RestTemplate  wrong idea for testing Unirest ? Or is there anything wrong in my code ? Please suggest how to move forward. Is there any separate library to test Unirest based services ?
@ryber @subnetmarco

Hi, @shakyasudeep Spring MockRestServiceServer is a great tool, but it only works with Spring RestTemplate. It binds itself to the insides of a RestTemplate instance and intercepts the calls. It's never going to work with Unirest (or Apache Client, or Feign, or etc)
It's a little weird you would post this today because this last weekend we released as part of Unirest it's own dedicated mocking layer. It's still young and not as robust or mature as Spring's mock but it might get you by/ Any feedback is welcome
https://github.com/Kong/unirest-java/tree/main/unirest-mocks

Hi, @shakyasudeep Spring MockRestServiceServer is a great tool, but it only works with Spring RestTemplate. It binds itself to the insides of a RestTemplate instance and intercepts the calls. It's never going to work with Unirest (or Apache Client, or Feign, or etc)
It's a little weird you would post this today because this last weekend we released as part of Unirest it's own dedicated mocking layer. It's still young and not as robust or mature as Spring's mock but it might get you by/ Any feedback is welcome
https://github.com/Kong/unirest-java/tree/main/unirest-mocks

Thanks for the reply @ryber . I was not aware about unirest-mocks. I will try with unirest-mocks.

I'm going to go ahead and close this.

I'm going to go ahead and close this.

OK.