Abnormal CPU usage on 1.15.2

Hi!  According to docker stats, my Minecraft server now consumes 1300% of CPU, I barely even can connect or run top utility - so bad it is! It started happening quite recently, I think I noticed it a few days ago, but I am not sure how long it has it been. Can we fix this, please? The output of the docker-compose logs -f is usual and has nothing extraordinary except these lines:
minecraft | [21:24:58] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2202ms or 44 ticks behind
minecraft | [21:25:16] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2612ms or 52 ticks behind

1.15 in general seems to have degraded performance compared to previous versions; however, it's strange it got worse for your after it had been running for some amount of time. What TYPE are you using or just the default vanilla?

1.15 in general seems to have degraded performance compared to previous versions; however, it's strange it got worse for your after it had been running for some amount of time. What TYPE are you using or just the default vanilla?

If it is an environment variable, then I don't have it specified at all, so must be vanilla:
version: "2"

services:
  minecraft-server:
    ports:
      - "25565:25565"

    environment:
      - EULA=TRUE
      - ONLINE_MODE=FALSE
      - WHITELIST=aa,bb
      - MAX_PLAYERS=2
      - ALLOW_NETHER=true
      - ANNOUNCE_PLAYER_ACHIEVEMENTS=true
      - ENABLE_COMMAND_BLOCK=true
      - GENERATE_STRUCTURES=true
      - MOTD=Minecraft Server

    image: itzg/minecraft-server:adopt13

    container_name: minecraft

    tty: true
    stdin_open: true
    restart: always
    volumes:
      - ./data:/data

I was running it on a custom VM, not from google cloud or amazon or digital ocean droplet, it is just a VDS with KVM: 4 core some xeon of 2800 mhz, 8gb ram, SSD 130gb.

Strange, that should be plenty of horsepower. One thing you could try is using the JVM 11 variant of the image, which is itzg/minecraft-server:adopt11. I'm having to stick with JVM 8 on the mainline since Forge and others don't play nice with newer Java versions.

I've already tried that recently. The server finally started but the CPU usage is less scary: not 1200% but 100% instead. Not very cool anyway, I think. And this - when no one is on the server. When I finally launch the game and join the server, I have to wait like for 2 minutes to render the world.

Hello, I'm trying to deploy container to the Google Cloud Kubernetes Engine with your k8s deployment example manifest and got same issue.
...
[23:18:39] [Server-Worker-1/INFO]: Preparing spawn area: 87%
[23:18:40] [Server-Worker-1/INFO]: Preparing spawn area: 88%
[23:18:40] [Server-Worker-1/INFO]: Preparing spawn area: 90%
[23:18:41] [Server-Worker-1/INFO]: Preparing spawn area: 91%
[23:18:41] [Netty Epoll Server IO #1/INFO]: Disconnecting Player (server is still starting): Server is still starting! Please wait before reconnecting.
[23:18:41] [Server-Worker-1/INFO]: Preparing spawn area: 92%
[23:18:42] [Server-Worker-1/INFO]: Preparing spawn area: 93%
[23:18:42] [Server-Worker-1/INFO]: Preparing spawn area: 95%
[23:18:43] [Server-Worker-1/INFO]: Preparing spawn area: 95%
[23:18:43] [Server-Worker-1/INFO]: Preparing spawn area: 98%
[23:18:44] [Server thread/INFO]: Time elapsed: 51944 ms
[23:18:44] [Server thread/INFO]: Done (119.171s)! For help, type "help"
[23:18:44] [Server thread/INFO]: Starting remote control listener
[23:18:44] [RCON Listener #1/INFO]: RCON running on <IP_ADDRESS>:25575
[23:18:45] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[23:18:45] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[23:23:47] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 3218ms or 64 ticks behind

Tried itzg/minecraft-server and itzg/minecraft-server:adopt11 images.
My machine is e2-standard-2 as you suggests.
I also add resources section to deployment becouse my pods get evicted other way:
resources:
          requests:
            memory: "6208268Ki"
            cpu: "1930m"
          limits:
            memory: "6208268Ki"
            cpu: "1930m"

My env:
env:
        - name: GUI
          value: "false"
        - name: MEMORY
          value: "6G"
        - name: VERSION
          value: "1.15.2"
        - name: TYPE
          value: "FORGE"
        - name: FORGEVERSION
          value: "31.1.0"
        - name: EULA
          value: "true"

@aK0nshin , can you open a new issue for your scenario?

So, I've just moved to DigitalOcean from my old provider. It runs fine it seems. If not, I'll re-open this issue. Thank you for your fast response!


Add const qualifier

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hello Marco,
This is a trivial change that does not affect functionality in any way, so I'm not intent to accept it.
Have you been experiencing any issues?
Thanks,
Adam

Hello Marco,
This is a trivial change that does not affect functionality in any way, so I'm not intent to accept it. Have you been experiencing any issues?
Thanks, Adam

Hi Adam,
no, it was just a kind of good practise to mark it constant to highlight the intent.
No problem if you want to keep it as it is.
Cheers,
Marco


Again Api not working Shows [] only

Once again all api shows only [] . Please mam solve this issue again :)

API is not working.
Getting results like,
"date": "[]",
"horoscope": "[]",


[Bug]: missing logs for Tide projects (and possibly Axum?)

What happened?
When running a cargo shuttle run for a tide project, the log outputs are less than running a tide project without shuttle.
I have also seen this happen with Axum projects, specifically ERROR level logs.
Version
v0.15.0
Which operating systems are you seeing the problem on?
Linux
Which CPU architectures are you seeing the problem on?
x86_64
Relevant log output
No response
Duplicate declaration

[X] I have searched the issues and there are none like this.

@oddgrd can you please reassign it to me?
https://discord.com/channels/803236282088161321/1101504029584007248/1103012250211594269
Started researching here: https://github.com/vroussea/tide-logs/pull/1/

Here is the PR to fix the missing logs : https://github.com/shuttle-hq/shuttle/pull/864

Fixed in #864 :)


Revert search engine mitigation when it isn't needed, or make it permanent

We left the search engine user-agent ban in place on the prod website until we can get the robots.txt configuration deployed. We should remember to remove the mitigation once we don't think it's needed anymore or ensure that it is encoded in our deployment if we want to keep it permanently.

Robots.txt is deployed on prod, https://gnomad.broadinstitute.org/robots.txt
Next step is to disable cloud armor rules banning petalbot and see what the results are.


Use smaller Plarform-Language packages when analyzing only one language

When the action (or runner) analyzes only a single language, we download a smaller codeql bundle.
The main change here is that we now need to first detect the language and then setup codeQL. The language detection used to be a step of the initConfig step. We move this out and perform it before initCodeQL.
The changes to setupCodeQL are meant to correctly cache the tooling. I.e., if we already have a full bundle in the cache, we should not try to download a platform-language bundle. Similarly, if we did download a platforms-language bundle, then we should not cache it as a full bundle.
We extend this logic to only download the platform specific bundle, so that linux runners do not need to download a package with both windows and osx binaries.
I added this comment in the setupCodeQL to make the flow a bit more clear:
  // The URL identifies the release version. E.g., codeql-20200901 .
  // The plVersion identifies the platform-language combination of the package
  // within the release. E.g., `linux64-cpp` in `codeql-linux64-cpp.tar.gz`.
  // We expect the codeqlUrl (when given) to always point to the main bundle
  // `codeql-bundle.tar.gz`
  //
  // The logic is as follows:
  //  - Always use the Toolcache if available.
  //    - If we would like a platform-language package, but have the
  //      full bundle in the cache, use that.
  //  - If codeqlURL is specified, use that.
  //  - If a single language is being analyzed, try to download the platform-language package.
  //    - If it is not available in the release assets, fallback to the full bundle
  //  - If multiple languages are being anlyzed, use the full bundle

I will like to test/merge this code before merging the code to split the bundles, to ensure that it works if we do not create the platform-language packages (it should, and we have tests, but...).
Merge / deployment checklist

[ ] Confirm this change is backwards compatible with existing workflows.
[ ] Confirm the readme has been updated if necessary.

I ran an experiment comparing zip0 and tar.gz decompression time. There is basically no difference between zip and tar.gz. I would keep the tar.gz for consistency.

Thanks @robertbrignull, I will go through your comments in detail tomorrow and also update the code to match main.

I'm a bit worried about our use of the toolcache as we're really not using it how it intends with regards to the version strings.

I think we need to dig deeper here. My thought was this would improve all settings. Clearly self-hosted runners, but also dotCom, as I understood there is a window between we releasing a new bundle and the base image being rebuilt. However, also given your comment in https://github.com/github/code-scanning/issues/1801 , I might be misunderstanding how the version information is used in the toolcache. Do you have more information you can point me to, or shall we try to sync?

This is an example of how we fallback in the search of the tool:
 ##[debug]Bundle version 20200826 is not in SemVer format. Will treat it as pre-release 0.0.0-20200826.
  ##[debug]PL Version linux64-javascript
  ##[debug]isExplicit: 0.0.0-20200826-linux64-javascript
  ##[debug]explicit? true
  ##[debug]checking cache: /opt/hostedtoolcache/CodeQL/0.0.0-20200826-linux64-javascript/x64
  ##[debug]not found
  ##[debug]isExplicit: 0.0.0-20200826
  ##[debug]explicit? true
  ##[debug]checking cache: /opt/hostedtoolcache/CodeQL/0.0.0-20200826/x64
  ##[debug]not found
  ##[debug]CodeQL not found in cache
  ##[debug]RUNNER_TEMP=/home/runner/work/_temp
  ##[debug]Using CodeQL URL: https://github.com/github/codeql-action/releases/download/codeql-bundle-20200826/codeql-bundle.tar.gz

I was doing some more testing and I ran into the following issue.
initCodeQL takes a codeqlURL that can be a string or undefined. I thought this was because the tool argument could be underspecified, and thus we have logic to detect which bundle to use. This is the case for the runner, but not for the init-action.ts, where this is always set to a string:
https://github.com/github/codeql-action/blob/57ef26cffee3737c4115dbe2ec175bf6c6f33d11/src/init-action.ts#L62
What could be the best way to deal with this? Can we detect that the value was not specified in the configuration?

initCodeQL takes a codeqlURL that can be a string or undefined. I thought this was because the tool argument could be underspecified, and thus we have logic to detect which bundle to use. This is the case for the runner, but not for the init-action.ts, where this is always set to a string:

Yes, I agree this is a pain. Your analysis is right that for the runner it might be undefined, but for the action it's always a string. If it's not defined in the workflow then it gets set to the emptystring. So this means the best way to check it may be to do convert it to a boolean to see if it's truthy, but I agree this is no ideal.
I think this is a problem we should deal with and be , though doesn't have to be in this PR. Maybe we should convert all emptystrings to undefined when we read the inputs, but there are other options. I'll open an issue as I think we should track this and make sure it gets improved.

This is ready for review. I am available to walk through the code. The only change I expect is to rebase on https://github.com/github/codeql-action/pull/211, as I currently included the changes from https://github.com/github/codeql-action/pull/208.

Thanks for the review. I think there is a conceptual point to address. I did this work trying to be compatible with the current bundle release process. This has a few visible impact in the implementation. As you noted in the review:

Integrations tests are currently designed to pass if we do NOT have the language specific bundle
The code checking for available bundles gets more complicated and expensive as we need to query the API and cannot shortcut effectively.

Since I automated the creation of the smaller bundles, it would seem that changing the release process has some benefits, with few drawbacks.
The only "problem" I see is that this would require to postpone merging this and first:

Change the release process and merge the workflow to generate the language bundles
Update the sync tool
Finally adjust this PR

@robertbrignull WDYT?

I went ahead and prepared the changes to the process as discussed above. I think that is the most reasonable solution.

We need to merge https://github.com/github/codeql-action/pull/216 first before the tests for this PR can succeed (as we now do not fail gracefully anymore)
I tested the codeql-action-sync-tool and indeed it does download all assets
Created a PR for the changes to the bundle release process.

As discussed with @robertbrignull , this will be closed in favor of a simpler version that only accounts for platforms.


Incompatibility with hydrogen (missing biomes on generation)

A player on my server crashed the server after travelling out in the end and generating biomes
https://pastebin.com/62AWRvci
The biome generator is set to better_end_biome_source for the end,
A list of my mods can be seen in the crash report, it also generated a second crash log at the same time
https://pastebin.com/ZTxLRV3B
EDIT:
I was able to replicate the crash in a new singleplayer world with the same mods, just travelling out in the end.
https://pastebin.com/t9ZbgzuF
Biome generator is set correctly there, too.

Duplicate of #148

Upon adding and removing every single mod in my modpack, it seems to be hydrogen. Im generating everything just fine now with the removal of hydrogen!

Fixed in 0.9.7


Kartoza Epic 2: API Publish daily digest of new records, allow write of new records to HS.io

API Publish daily digest of new records, allow write of new records to HS.io

Done
API docs : https://healthsites.io/api/docs/


Function Monad used in do notation.

Codecov Report

Merging #69 (f1f9052) into main (9c755af) will decrease coverage by 0.26%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #69      +/-   ##
==========================================
- Coverage   63.96%   63.70%   -0.27%
==========================================
  Files           3        3
  Lines        1493     1496       +3
  Branches      531      536       +5
==========================================
- Hits          955      953       -2
  Misses         55       55
- Partials      483      488       +5

Impacted Files
Coverage Δ

include/hspp.h
74.43% <100.00%> (-0.49%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


feature: bumping contracts gives truffle deploy support

Bumping up contract hash commit so that we get truffle deploy support
Overview
Bump up
Changes
We were referencing this commit from May: https://github.com/omisego/plasma-contracts/commit/2ff791e420b0702afe1e1514a6cd2af82cd6df4d

The commit we're using now is:
https://github.com/omisego/plasma-contracts/commit/f1493aec965bf3072920bc8cf1b281782c148560

The changes that we're done in between these two commits have not altered any contract implementation related to our needs.
Testing
All tests should continue working.

Coverage remained the same at 84.841% when pulling 1cf7745af7718ccb0b09a77eec710606c2dcd630 on bump_contracts_for_truffle into d63f6754c2a4e75eb6e993d2f3bfe05a1541b406 on master.


Not compatible with Angular 16

'GooglePlaceModule' does not appear to be an NgModule class.(-996002)
ngx-google-places-autocomplete.module.d.ts(1, 22): This likely means that the library (ngx-google-places-autocomplete) which declares GooglePlaceModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

Because of inactivity of this package, I created my own package which is fully compatible with this one, code base was used from this package and adjusted to new coding standards, is Angular 16 compatible.
You can try:
https://www.npmjs.com/package/@angular-magic/ngx-gp-autocomplete


"Permalink" icon

I would like a "permalink" icon included in our icon set... @gabrielhl Cay you help us on this?
Something like http://icon-park.com/imagefiles/link_icon_gray.png

@xonic ?

@xonic thx


HBASE-22858 Add HBCK Report to master's header.jsp

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
40
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

+1
mvninstall
325
master passed

+1
javadoc
34
master passed

_ Patch Compile Tests _

+1
mvninstall
295
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
javadoc
33
the patch passed

_ Other Tests _

-1
unit
8587
hbase-server in the patch failed.

+1
asflicense
26
The patch does not generate ASF License warnings.

9396

Reason
Tests

Failed junit tests
hadoop.hbase.snapshot.TestMobFlushSnapshotFromClient

Subsystem
Report/Notes

Docker
Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/497

Optional Tests
dupname asflicense javac javadoc unit

uname
Linux 389a2a604739 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-497/out/precommit/personality/provided.sh

git revision
master / 8ffc45ab8b

Default Java
1.8.0_181

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/1/artifact/out/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/1/testReport/

Max. process+thread count
4799 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/1/console

versions
git=2.11.0 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
71
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

+1
mvninstall
389
master passed

+1
javadoc
37
master passed

_ Patch Compile Tests _

+1
mvninstall
351
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
javadoc
41
the patch passed

_ Other Tests _

-1
unit
16591
hbase-server in the patch failed.

+1
asflicense
30
The patch does not generate ASF License warnings.

17570

Reason
Tests

Failed junit tests
hadoop.hbase.master.procedure.TestSCPWithReplicasWithoutZKCoordinated

hadoop.hbase.client.TestFromClientSide

hadoop.hbase.master.TestAssignmentManagerMetrics

Subsystem
Report/Notes

Docker
Client=19.03.0 Server=19.03.0 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/497

Optional Tests
dupname asflicense javac javadoc unit

uname
Linux bb0b05e224ad 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-497/out/precommit/personality/provided.sh

git revision
master / edf6f68cb2

Default Java
1.8.0_181

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/2/artifact/out/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/2/testReport/

Max. process+thread count
4830 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/2/console

versions
git=2.11.0 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
33
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

+1
mvninstall
365
master passed

+1
javadoc
42
master passed

_ Patch Compile Tests _

+1
mvninstall
329
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
javadoc
38
the patch passed

_ Other Tests _

-1
unit
9641
hbase-server in the patch failed.

+1
asflicense
32
The patch does not generate ASF License warnings.

10539

Reason
Tests

Failed junit tests
hadoop.hbase.master.assignment.TestOpenRegionProcedureHang

Subsystem
Report/Notes

Docker
Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/4/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/497

Optional Tests
dupname asflicense javac javadoc unit

uname
Linux b02673121024 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-497/out/precommit/personality/provided.sh

git revision
master / 78f5d8ebb2

Default Java
1.8.0_181

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/4/artifact/out/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/4/testReport/

Max. process+thread count
4516 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/4/console

versions
git=2.11.0 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
71
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

+1
mvninstall
428
master passed

+1
javadoc
47
master passed

_ Patch Compile Tests _

+1
mvninstall
390
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
javadoc
44
the patch passed

_ Other Tests _

-1
unit
18579
hbase-server in the patch failed.

+1
asflicense
49
The patch does not generate ASF License warnings.

19685

Reason
Tests

Failed junit tests
hadoop.hbase.tool.TestSecureBulkLoadHFiles

hadoop.hbase.util.TestFromClientSide3WoUnsafe

hadoop.hbase.master.TestMasterShutdown

hadoop.hbase.client.TestFromClientSide

hadoop.hbase.client.TestSnapshotTemporaryDirectory

hadoop.hbase.master.procedure.TestSCPWithReplicas

Subsystem
Report/Notes

Docker
Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/497

Optional Tests
dupname asflicense javac javadoc unit

uname
Linux f5743ff1ebbb 4.4.0-154-generic #181-Ubuntu SMP Tue Jun 25 05:29:03 UTC 2019 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-497/out/precommit/personality/provided.sh

git revision
master / 60971bee66

Default Java
1.8.0_181

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/3/artifact/out/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/3/testReport/

Max. process+thread count
4855 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-497/3/console

versions
git=2.11.0 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.


Expected a value of type 'Function', but got one of type 'Null'

Version
2.0.4
Platforms
Web
Device Model
macbook chrome
flutter info
[✓] Flutter (Channel stable, 3.13.2, on macOS 13.5.2 22G91 darwin-x64, locale en-TR)
    • Flutter version 3.13.2 on channel stable at /Volumes/disk2/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff5b5b5fa6 (4 weeks ago), 2023-08-24 08:12:28 -0500
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/onderada/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Connected device (4 available)
    • Pixel 6 (mobile) • 18211FDF6002E5            • android-arm64  • Android 13 (API 33)
    • iPhone (mobile)  • 00008030-001148840A79802E • ios            • iOS 17.0 21A329
    • macOS (desktop)  • macos                     • darwin-x64     • macOS 13.5.2 22G91 darwin-x64
    • Chrome (web)     • chrome                    • web-javascript • Google Chrome 116.0.5845.187

[✓] Network resources
    • All expected network resources are available.

• No issues found!

How to reproduce?
// 4. compress Uint8List and get another Uint8List.
Android Studio Run  Chrome(web) not working funtion Uint8List list -> FlutterImageCompress.compressWithList(...
[error](error:: Expected a value of type 'Function', but got one of type 'Null')
Logs
Expected a value of type 'Function', but got one of type 'Null'

Example code (optional)
No response
Contact
<EMAIL_ADDRESS>

Hi @onderadaidenfit
I got error same you.
Did you solve this issue?

@CaiJingLong , @AlexV525 , @behzodfaiziev please check issue? No solution?

@CaiJingLong , @AlexV525 , @behzodfaiziev please check issue? No solution?

I have the same issue. I'm trying to load and compress some images with compressAssetImage, and it's working fine on Android, but on Web I get an error similar to the one mentioned above:
This is my code:
class CompressedImageProvider {
  static List<String> imagePaths = [];
  static List<String> allAssetPaths = [];
  static Map<String, Uint8List> compressedImages = {};

  static Future<Uint8List> getCompressedAssetImage(String assetName) async {
    var list = await FlutterImageCompress.compressAssetImage(
      assetName,
      minHeight: 200,
      minWidth: 200,
      quality: 96,
      rotate: 180,
    );
    assert(list != null, "Failed to compress image: $assetName");
    return list!;
  }

  static Future<void> init() async {
    final assetManifest = await rootBundle.loadString('AssetManifest.json');
    final Map<String, dynamic> manifest = json.decode(assetManifest);

    allAssetPaths = manifest.keys.toList();
    imagePaths = allAssetPaths
        .where((path) => path.startsWith('assets/images'))
        .toList();

    for (var path in imagePaths) {
      compressedImages[path] = await getCompressedAssetImage(path);
    }
  }
}

Which is executed in main:
void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await CompressedImageProvider.init();

  runApp(
    MaterialApp(
      . . .
    ),
  );
}

And here is the debug output:
Error: Expected a value of type 'Function', but got one of type 'Null'
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:49      throw
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 127:3       castError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 742:12  cast
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 143:17                as
dart-sdk/lib/_internal/js_shared/lib/js_util_patch.dart 77:5                      getProperty
packages/flutter_image_compress_web/src/pica.dart 42:25                           resizeWithList
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5                _async
packages/flutter_image_compress_web/src/pica.dart 34:33                           resizeWithList
packages/flutter_image_compress_web/flutter_image_compress_web.dart 46:12         compressAssetImage
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50
dart-sdk/lib/async/zone.dart 1661:54                                              runUnary
dart-sdk/lib/async/future_impl.dart 156:18                                        handleValue
dart-sdk/lib/async/future_impl.dart 840:44                                        handleValueCallback
dart-sdk/lib/async/future_impl.dart 869:13                                        _propagateToListeners
dart-sdk/lib/async/future_impl.dart 641:5                                         [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 715:7                                         callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                                  _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                                   _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:15
Restarted application in 311ms.
Error: Expected a value of type 'Function', but got one of type 'Null'
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:49      throw
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 127:3       castError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 742:12  cast
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 143:17                as
dart-sdk/lib/_internal/js_shared/lib/js_util_patch.dart 77:5                      getProperty
packages/flutter_image_compress_web/src/pica.dart 42:25                           resizeWithList
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5                _async
packages/flutter_image_compress_web/src/pica.dart 34:33                           resizeWithList
packages/flutter_image_compress_web/flutter_image_compress_web.dart 46:12         compressAssetImage
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50
dart-sdk/lib/async/zone.dart 1661:54                                              runUnary
dart-sdk/lib/async/future_impl.dart 156:18                                        handleValue
dart-sdk/lib/async/future_impl.dart 840:44                                        handleValueCallback
dart-sdk/lib/async/future_impl.dart 869:13                                        _propagateToListeners
dart-sdk/lib/async/future_impl.dart 641:5                                         [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 715:7                                         callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                                  _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                                   _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:15
I'm using flutter_image_compress 2.0.4

Never mind, the solution was posted on another thread, and it is even in the docs. Reading helps ^^'
In case someone's still struggling with this:
add
<script src="https://unpkg.com/pica/dist/pica.min.js" ></script>
to index.html and do a flutter clean
Originally posted by @pasanediri97 in https://github.com/fluttercandies/flutter_image_compress/issues/256#issuecomment-1680200332


[Search v2.2] Context menu is available for attachment which leads to crash and invalid link

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.31-5
Reproducible in staging?: Y
Reproducible in production?: N/A
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Launch New Expensify app.
Go to Search.
Go to Chats.
Long press on message with attachment.
Tap Copy to clipboard.
Note that app crashes.
Repeat Step 1 to 4.
Tap Copy link.
Paste the link elsewhere.
Note that the copied link is https://staging.new.expensify.com/r/-1/undefined

Expected Result:
In Step 6, app should not crash and Copy to clipboard option should not appear if it is not working.
In Step 10, the copied link should be a valid report link.
Actual Result:
In Step 6, app crashes after tapping Copy to clipboard.
In Step 10, the copied link is https://staging.new.expensify.com/r/-1/undefined
Workaround:
Unknown
Platforms:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
1009.txt
https://github.com/user-attachments/assets/39b303bb-cceb-4d9c-97ad-82253dc40523

View all open jobs on GitHub
Issue OwnerCurrent Issue Owner: @shubham1206agra

Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 6, app crashes after tapping Copy to clipboard.
In Step 10, the copied link is https://staging.new.expensify.com/r/-1/undefined
What is the root cause of that problem?
That ChatListItem item doesn't have ShowContextMenuContext.Provider then when we click on an image, it displays the wrong context menu actions. Then when we click on Copy To Clipboard the app crashes and and the copied link is also wrong because reportAction and report are undefined.
https://github.com/Expensify/App/blob/172504115675f5c6aad87fe4e96e8166b2183b14/src/components/SelectionList/ChatListItem.tsx#L69
https://github.com/Expensify/App/blob/172504115675f5c6aad87fe4e96e8166b2183b14/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.tsx#L82
What changes do you think we should make in order to solve the problem?
We should add ShowContextMenuContext.Provide with value is the necessary data that we have base on the snapshot data
const contextValue = useMemo(
    () => ({
        report: {reportID: reportActionItem.reportID},
        reportNameValuePairs: undefined,
        action: {reportActionID: reportActionItem.reportActionID, message: reportActionItem.message, actionName: reportActionItem.actionName},
        transactionThreadReport: null,
        checkIfContextMenuActive: () => {},
    }),
    [reportActionItem]
);

<ShowContextMenuContext.Provider value={contextValue}>

What alternative solutions did you explore? (Optional)
Result
https://github.com/user-attachments/assets/0facbd7f-7aa8-4c8d-8261-85544a2ac283

We need to disable the context menu in ChatListItem, since those messages don't support actions.

Updated proposal to disable context menu in search page.

@nkdengineer your alternate proposal looks good. Are you available to work on the PR?

sure.

@luacmartins Please assign me then I can raise the PR.

@shubham1206agra will work on this since it's a regression from his PR.

@CortneyOfstad this was a regression from https://github.com/Expensify/App/pull/47690, but we should still pay @akinwale for the review

hmm the PR was still not CPed to staging 🤔 how can I not reproduce this anymore?

@akinwale sent you a proposal in Upwork here, please let me know once you accept and I will get that paid ASAP. Thanks!

@akinwale sent you a proposal in Upwork here, please let me know once you accept and I will get that paid ASAP. Thanks!

@CortneyOfstad Accepted. Thanks!

Payment Summary
@akinwale — paid $250 via Upwork
@shubham1206agra — not paid based on comment here


Property migration dialogue doesn't broadcast 500 errors

While testing the write conflict message (see https://github.com/ral-facilities/inventory-management-system/issues/1121), I noticed that if a 500 is returned, the only thing that is shown is:

but nothing happens and no error is displayed.

What did you do to the API to trigger this error?  It should be working as the handleTransferState in the onError should catch all errors . However looking at the code the types might not be correct for a 500 error

It was on https://github.com/ral-facilities/inventory-management-system-api/pull/433 before I actually caught the error to raise it as a 409, so it was a 500 with the same message. I put an OperationFailure on this line https://github.com/ral-facilities/inventory-management-system-api/blob/9922030645750d2bf7aca34cd42e600c8a7b8140/inventory_management_system_api/services/catalogue_category_property.py#L109


Clean Up InfectionInitializationMethod and InfectionInitializationProcess

These modules do not conform to our current standards with respect to variable names and return types. Additional, I am considering removing the InfectionInitializationProcess class, as I think it may be an unnecessary level of abstraction.

Further support for removing the class here.


Add GRCh38 bed file

Also replaced some jquery with Vue and removed some inline
styles

quarantest build successful. Demo link at
http://c6cc7482.quarantest.iobio.io


[QUESTION] use cluster healthcheck makes upstream delay

Description:

version: 1.7
when cluster healthcheck enabled, upstream servers will delay to response.
Config:
health_checks:
- timeout:
seconds: 10
interval:
seconds: 5
unhealthy_threshold: 3
healthy_threshold: 3
tcp_health_check: {}

@liyehaha sorry, can't parse the question here.


what menubar stats app do you use?

Hi,
its not an issue just a question: what menubar stats app do you use?

BTW great project!
Kind regards from Germany

@veg42 I was also interested into know what is that app. I currently use stats (https://github.com/exelban/stats). But I liked the icon style from the app in the screenshot more than stats ones.


Server error while login over cloudflare ssl

I am facing error on login on ghost admin over ssl provided by cloudflare flexible ssl. (Also if i change flexible ssl to full ssl on cloudflare then i can't access my site too. Saying too many redirects only.)
Please help me

You're probably better off trying to Slack channel for this type of help...

Well there is no one who reply.. All are dead there.

Hi @maharudra108
We're sorry to hear you're having problems, but ask that you do not use our GitHub repo for support. Please read our support guide. You can always use our slack community - https://slack.ghost.org, if you're not able to find the answer in our documentation - https://docs.ghost.org.


Add Safe-Linking to Single-Linked-Lists (SLL)

Safe-Linking is a security mechanism that protects single-linked
lists (such as the Free Lists) from being tampered by attackers. The
mechanism makes use of the randomness from ASLR (mmap_base), and when
combined with object alignment integrity checks, it protects the
pointers from being hijacked by an attacker.
While Safe-Unlinking protects double-linked lists (such as the Small
Bins in ptmalloc), there wasn't any siilar protection for attacks
against single-linked lists. This solution protects against three
common attacks:

Partial pointer override: Modifies the lower bytes (Little Endian)
Full pointer override: Hijacks the pointer to an attacker's location
Unaligned objects: Pointing the list to an unaligned address

The design assumes an attacker doesn't know where the heap is located,
and uses the ASLR randomness to "sign" the single-linked pointers. We
mark the pointer as P and the location in which it is stored as L, and
the calculation will be:

PROTECT(P) := (L >> PAGE_SHIFT) XOR (P)
*L = PROTECT(P)

This way, the random bits from the address L (which start at the bits
in the PAGE_SHIFT position), will be merged with the LSB of the stored
protected pointer. This protection layer prevents an attacker from
modifying the pointer into a controlled value.
An additionl check that the objects are kAligned adds an important
layer:

Attackers can't point to illegal (unaligned) memory address
Attackers must guess correctly the alignment bits

Due to kAlignment being 8, an attacker will directly fail 7 out of 8
times. And this could be improved in the future if the alignment will
match the class size, per Free List.
This proposed patch was benchmarked using gperftools's benchmarking suite
and on the worst test case it has an additional overhead of 1.5%, while the
overhead for the average test case was a negligible 0.02%. In addition, in
2013 a similar mitigation was incorporated into Chromium's Free List (FL)
implementation in their version of TCMalloc. According to Chromium's
documentation, the added overhead was less than 2%.
Safe-Linking will currently be activated if compiled using the MACRO:
TCMALLOC_USE_SLL_SAFE_LINKING.
Hopefully, this feature will be activated by default after further testings
by the repository's developers.
A similar pull request was also sent to GLIBC (ptmalloc), uClibg-NG (dlmalloc),
and gperftools's implementation of TCMalloc.
For more information, feel free to read our full white-paper (attached):
Safe-Linking-White-Paper.txt

The performance costs of this are too high to merge.  While macro-protected, it adds another configuration that needs to be built and regularly tested to ensure everything stays working.
As discussed in #2, TCMalloc has evolved considerably over the years.  For the most part, we use per-CPU caches, which have their freelist metadata out-of-band from the allocations we hand out.  While problematic nonetheless, it may not corrupt the front line caches used by TCMalloc.
We've also implemented GWP ASan for finding many bugs via sampling.  This doesn't catch everything (right away), but its lower overhead allows it to be widely used.
For hardened use cases, the LLVM project's scudo allocator might be better suited than TCMalloc.

While it is your final decision as the developers of this repository, I still ask that you reconsider it. The performance implications were good enough to get integrated into Chrome years ago, the same browser that I now use to write this comment to you. The benchmarking of this feature using gperftool's TCMalloc, showed an average overhead of 0.02% on the GCP machine on which we tested it (and worst case of 1.5%). Could you please share the performance costs that you received in your setup so I could get a better understanding of the underlying problem?
In our test cases for this feature we easily shown that a simple buffer overflow corrupts the SLL pointer to achieve an exploit primitive of an arbitrary heap allocation. Needless to say that the same attack was immediately blocked by the proposed feature that adds only a few assembly instructions per call to Malloc/Free.
Our initial goal with the Safe-Linking feature was to integrate it to core Malloc implementations so to grant efficient security by default to as wide an audience as we can. For this cause we are now working with GLIBC's ptmalloc, uClibc-NG's dlmalloc and (both) TCMalloc implementation from Google. It would be sad to see that Google stay's behind while the rest of the popular implementations choose to help protect the users of their libraries.

Closing this without even answering the last message does not strike me as good faith.


Disabling pointer script doesn't clean up gameobjects

I'm attempting to use both the simple pointer and the curved one in my game. When you hit the pause button, a menu pops up which means that the simple pointer is best for UI work. When you unpause, the gameplay mode using the curved pointer for teleporting.
I can enable and disable each script on the controllers, but the pointer beams stick around. I've tried adding some methods to clean them up with OnDisable, but it seems a bit deeper than that.
The need is that the script will cleanup its objects when it is being disabled. OR at least a public method to turn off the beams entirely. Right now, there's no public way to toggle the beam on/off without player interaction that I can see.

This is actually something I'm going to be looking into when I get chance, it's something I need as well.

I can attempt to hack my way through it tonight if you give me some hints. If it works, I'll do a pull request (no promises). I'm not a pro at Mono stuff, though.

Check out this pull request
https://github.com/thestonefox/SteamVR_Unity_Toolkit/pull/325
It firstly cleans up the pointers OnDisable (and recreates them OnEnable).
But also there is a new method on the pointer classes of ToggleBeam(bool state) which allows you to turn on or off the pointer manually.

Fixed with https://github.com/thestonefox/SteamVR_Unity_Toolkit/commit/ef2106f7035e87cfa5f8ca777b7949b5bd0568eb


Does not recognize DAE

When trying to activate the Module Warning appears saying DAE is not found.

then you dont have DAE enabled, simple

I figured it out, it was that the 5e fame system wasn't updated
On Sun, Feb 14, 2021, 6:01 AM kandashi<EMAIL_ADDRESS>wrote:

then you dont have DAE enabled, simple
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kandashi/Dynamic-Effects-SRD/issues/62#issuecomment-778761461,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG2TJ4TWIKYVKUSTLQII7H3S66UQDANCNFSM4XQ2QP2Q
.


MaterialButton throws unclear error when elevation is set

Steps to Reproduce
new MaterialButton(
  child: new Text('Click Me!'),
  elevation: 1.0,
  onPressed: () {},
)

Error message:
The following assertion was thrown building Material(MaterialType.button; elevation: 1.0;
textStyle.inherit: false; textStyle.color: Color(0xdd000000); textStyle.family: ".SF UI Text";
textStyle.size: 14.0; textStyle.weight: 500; textStyle.baseline: alphabetic; dirty; state:
_MaterialState#477957510()):
'package:flutter/src/material/material.dart': Failed assertion: line 215 pos 12: 'backgroundColor !=
null || widget.type == MaterialType.transparency': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new

When the exception was thrown, this was the stack:
#2      _MaterialState.build (package:flutter/src/material/material.dart:215:12)
#3      StatefulElement.build (package:flutter/src/widgets/framework.dart:3481:27)
#4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3391:15)
#5      Element.rebuild (package:flutter/src/widgets/framework.dart:3292:5)

The error happens in the guts of Material and does not correlate with the API for MaterialButton, which is what makes it confusing.
Workaround: use RaisedButton or FlatButton rather than MaterialButton directly if they work for you, or see their implementations if you are implementing a custom button based on MaterialButton.
Logs
Reproducible as of f0be2fd6f0

You're not expected to use a MaterialButton directly usually.
What's going on here is that you neither set a background color nor told the widget to be transparent.
We should make that assert have a message explaining that, though.

@yjbanov @Hixie - I'm unable to reproduce any error when using the provided MaterialButton configuration.  Has this issue resolved itself since June 2017?

OK, closing.  Please re-open if the issue is seen again.


When installing psycopg2 or mysqlclient, the following is displayed:

pipenv install psycopg2
Installing psycopg2...
Resolving psycopg2...
Adding psycopg2 to Pipfile's [packages] ...
✔ Installation Succeeded
Pipfile.lock (e4eef2) out of date, updating to (cc64ce)...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
⠋ Locking...
ERROR:pip.subprocessor:[present-rich] python setup.py egg_info exited with 1
[ResolutionFailure]:   File "/home/sergii/.local/lib/python3.10/site-packages/pipenv/resolver.py", line 811, in _main
[ResolutionFailure]:       resolve_packages(
[ResolutionFailure]:   File "/home/sergii/.local/lib/python3.10/site-packages/pipenv/resolver.py", line 759, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/home/sergii/.local/lib/python3.10/site-packages/pipenv/resolver.py", line 738, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/home/sergii/.local/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 1154, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/home/sergii/.local/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 953, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/home/sergii/.local/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 700, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: metadata generation failed

Please provide additional details, I am not able to reproduce:
matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/issue-5726
$ pipenv install psycopg2
Creating a virtualenv for this project...
Pipfile: C:\Users\matte\Projects\pipenv-triage\issue-5726\Pipfile
Using default python from C:\Users\matte\AppData\Local\Programs\Python\Python311\python.exe (3.11.2) to create virtualenv...
[====] Creating virtual environment...created virtual environment CPython3.11.2.final.0-64 in 3902ms
  creator CPython3Windows(dest=C:\Users\matte\.virtualenvs\issue-5726-l9kvJmcD, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\matte\AppData\Local\pypa\virtualenv)
    added seed packages: pip==23.1.2, setuptools==67.7.2, wheel==0.40.0
  activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Successfully created virtual environment!
Virtualenv location: C:\Users\matte\.virtualenvs\issue-5726-l9kvJmcD
Creating a Pipfile for this project...
Installing psycopg2...
Resolving psycopg2...
Adding psycopg2 to Pipfile's [packages] ...
Installation Succeeded
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
Success!
Locking [dev-packages] dependencies...
Updated Pipfile.lock (f97f0e50534e142f05d9d226aa3d30214d87693285b782f7f5565930de3fec13)!
Installing dependencies from Pipfile.lock (3fec13)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/issue-5726
$ pipenv --version
pipenv, version 2023.6.3.dev0

Oh, sorry, I already fixed it, I installed a later version pipenv.Thank you for the answer


Resident's start page - How to apply section

Please change "What you’ll need" section heading to "How to apply"

Updated from 'What you'll need to 'How to Apply'

@GWSunderland @EUzkuraityte Perfect, thanks for the update.


[INTERNAL] sap.ui.unified.ColorPickerPopover: emphasize primary action

Primary action button (in this case, the "Submit" button) should be emphasized according to Fiori Design Guidelines.
Fixes: https://github.com/SAP/openui5/issues/2254

Forwarded to dev team #1980358963

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.3 out of 19 committers have signed the CLA.:white_check_mark: pavelkornev:white_check_mark: boghyon:white_check_mark: RandomByte:x: clemai:x: swennemers:x: GerganaKremenska:x: dimovpetar:x: tsaleksandrova:x: gerym:x: loginger:x: pvnn:x: JumpNRun:x: stoyanovski:x: PetyaMarkovaBogdanova:x: Lonwyr:x: codeworrior:x: IvaHristova:x: tsanislavgatev:x: alexandar-mitsevYou have signed the CLA already but the status is still pending? Let us recheck it.

Closing this PR since the fix is applied in https://github.com/SAP/openui5/commit/dd07f841760a21d712584410bc0a0175bc25ed9a


duplicate key value violates unique constraint "pk_mt_events_stream_and_version"

Hello,
When an event is being inserted into the mt_events table, I have this exception randomly. It seems I cannot do anything about it other than retrying until the event is inserted. This is a bit annoying because I have more than 300 errors in a few minutes showing up in my logs.
Is this a known issue?
My code is pretty simple:
Variable:

IDocumentStore _store (This is injected via Dependency Injection)

Method's body:

            using (var session = _store.OpenSession())
            {
                if (@event.IsBeginningOfStream)
<EMAIL_ADDRESS>@event);
                else
<EMAIL_ADDRESS>@event);

                await session.SaveChangesAsync(cancellationToken);
            }

Am I doing something wrong?
I am using Marten 5.5.1.
Npgsql.PostgresException (0x80004005): 23505: duplicate key value violates unique constraint "pk_mt_events_stream_and_version"

DETAIL: Key (stream_id, version)=(mt_tombstone, 1) already exists.
   at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|213_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
   at Datadog.Trace.ClrProfiler.CallTarget.Handlers.Continuations.TaskContinuationGenerator`4.ContinuationAction(Task`1 previousTask, TTarget target, CallTargetState state)
   at Marten.Internal.Sessions.QuerySession.ExecuteReaderAsync(NpgsqlCommand command, CancellationToken token)
  Exception data:
    Severity: ERROR
    SqlState: 23505
    MessageText: duplicate key value violates unique constraint "pk_mt_events_stream_and_version"
    Detail: Key (stream_id, version)=(mt_tombstone, 1) already exists.
    SchemaName: public
    TableName: mt_events
    ConstraintName: pk_mt_events_stream_and_version
    File: nbtinsert.c
    Line: 537
    Routine: _bt_check_unique

@ericgreenmix Is there any workaround that I can do to prevent this until it is fixed? Or do you know which version of Marten doesn't have this issue (other than V3)?

I believe this is present on V4+. I don't have a work around, other than to not have failures when events are saved :)


Is it possible to provide the gradient and Hessian matrices by user?

I found there is blackbox to define user function, but the gradient is get by finite difference. If I have gradient info, even Hessian information, can I offer these informations to blackbox ?

Quick answer is yes.
Although I think this is a more CasADi (the underlying AD lib that uses AeroSandbox) related topic.
You should have a look at CasADi Callback class.
Some ressources:
https://web.casadi.org/docs/#sec-callback
https://github.com/casadi/casadi/blob/main/docs/examples/python/callback.py


Insider using different color profile than Stable

VSCode Version: 1.25.0-insider
OS Version: macOS High Sierra 10.13.5

Colours appear muted in the Insider build when compared to Stable.
For example, my current theme of choice, One Dark Pro, has a red colour of #F06372, but in the Insider build, this colour is #E06D75. The same is happening to all other colours too of course.
Example:

(Insider build on the left, Stable build on the right.)

I've tried the fix suggested here, but no luck. https://github.com/Microsoft/vscode/issues/51791#issuecomment-397527146

Upstream electron bug: https://github.com/electron/electron/issues/10732

Duplicate of https://github.com/Microsoft/vscode/issues/51791


lxd/resources/storage: Improve cdrom handling

Closes #6378
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

Testsuite passed


SQLX Compile Time Check Error

Currently when you go to compile the backend the SQL compile time checker fails to find the database, even when it has been properly created with sqlx. This needs to be addressed for development

This was solved by using absolute paths. Will be generating a new issue to sort this as absolute paths for a .env are not ideal.


Support macOS

Hi,
macOS compilation error has been fixed.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a88fc42..8ddb9e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,12 @@ set(iz_SRCS

 add_definitions(-DHAVE_MMAP)

-set(CMAKE_EXE_LINKER_FLAGS "-Wl,-O1,-s,--no-export-dynamic")
+
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+    set(CMAKE_EXE_LINKER_FLAGS "-Wl,-O1,-s,--no-export-dynamic")
+else()
+    set(CMAKE_EXE_LINKER_FLAGS "")
+endif()
 set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mmmx -mtune=atom -Winline -W -Wall -fomit-frame-pointer -fno-rtti -fno-exceptions")

 add_executable(iz ${iz_SRCS})
diff --git a/file.cpp b/file.cpp
index 53a295a..cfdb3a0 100644
--- a/file.cpp
+++ b/file.cpp
@@ -14,6 +14,16 @@
 #include <sys/mman.h>
 #include <sys/stat.h>

+#if (defined(__APPLE__) && defined(__MACH__))
+# if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)
+#  define __PLATFORM_IOS__
+# else
+#  define __PLATFORM_MACOS__
+# endif
+#elif defined(macintosh) || defined(Macintosh)
+# define __PLATFORM_MACOS__
+#endif
+
 class InputFile::Private
 {
 public:
@@ -31,7 +41,11 @@ InputFile::InputFile(const char *filename)
         struct stat sb;
         fstat(fd, &sb);
         d->size = sb.st_size;
+#if defined(__PLATFORM_MACOS__)
+        d->addr = mmap(0, d->size, PROT_READ, MAP_PRIVATE, fd, 0);
+#else
         d->addr = mmap(0, d->size, PROT_READ, MAP_PRIVATE | MAP_POPULATE, fd, 0);
+#endif
         if (d->addr == MAP_FAILED) {
             d->addr = mmap(0, d->size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
             if (d->addr != MAP_FAILED) {

what do you think?
P.S. Please understand that I am not good at English.

Thanks for the patch. I am reluctant to apply it, because I do not have a Mac to test or maintain it. Some forks also have Windows specific changes, which I cannot test either.

Ok, i got it.


Fix helm release integration test

Sort config map keys to stabilize key traversal order and make test repeatable

Coverage decreased (-0.07%) to 41.57% when pulling d8d62eeb11ce7d712fed5bb071b08d10e6bf902d on stgleb:fix_map_order into d39b6f96cee4d1a090b0a110141bc79d86cc7fba on supergiant:master.

LGTM


Is it possible to manually invoke binding for options and parameters?

I have a somewhat complex setup with subcommands and I'm running into issues with argument binding to @Options and @Parameters properties. I do not have code, unfortunately, but I'll do my best to explain what I'm trying to do.
I have a fully-built CommandSpec tree with subcommands of an undetermined depth. Each subcommand is itself a CommandSpec, which may have been partially build through the use of CommandSpec.forAnnotatedObject() against an object with annotated properties and then further configured (such as command name, etc).
Using the root of the CommandSpec tree, I am able to parse a list of argument which may point at some subcommand somewhere in the tree. For the target subcommand, if an object with annotated properties was used to build the subcommand's CommandSpec, I need to bind the command's arguments to an instance of that object.
I'd like to reuse the logic that exists within the picocli library already so that I don't need to write custom logic, and the other injection logic works (such as @Spec, for example).
Is there some way to manually invoke the binding logic with a ParseResult and an object with annotated fields?

Hi @budjb, thanks for your question.
I have trouble following what you are trying to do...
I think I understood the first two paragraphs, but have trouble with the third paragraph.
Does your application have custom parsing logic, or is it using one of picocli's CommandLine::parseArgs or CommandLine::execute methods to parse the command line arguments?
The reason I am asking is that, when a CommandSpec is created with CommandSpec.forAnnotatedObject(), picocli's built-in parsing is supposed to automatically invoke the bindings of the annotated properties of the application class/object used to build that CommandSpec. So I don't understand why your application would need to do this manually...
The binding logic is created at CommandSpec initialization time (during the call to CommandSpec.forAnnotatedObject()): all OptionSpec and PositionalParamSpec objects that are in that CommandSpec will have IGetter and ISetter bindings when the CommandSpec is created. If you need to have custom bindings, then probably the best way is to programmatically create the OptionSpec and PositionalParamSpec objects and set their IGetter and ISetter bindings before adding them to the CommandSpec.
During parsing, these bindings are invoked when the parser matches this option or positional parameter with a command line argument. Simultaneously, the parser also populates a ParseResult (or chain of ParseResult objects for commands with subcommands), so that applications can also process the result programmatically.
So you can see that creating such bindings after parsing would be too late, as the bindings will not be invoked after parsing, but during parsing.
Is this useful? Don't hesitate to ask follow-up questions.

Thanks for the reply @remkop!
Hopefully this will provide some more context. I'm building a complete tree of subcommands into a single CommandSpec based on Spring beans. I am not using the Spring bean as a user object because state should not be stored in singletons in a multithreaded environment, and so that bean may define another object (basically a POJO) which will serve as the user object.
For each level, I create a CommandSpec and add immediate subcommands in a recursive fashion, as so:
CommandSpec getCommandSpec() {
        CommandSpec commandSpec = CommandSpec.create();

        // getCommandOptions may return a POJO which will have properties annotated with picocli and JSR380 annotations
        if (getCommandOptions() != null) {
            commandSpec = CommandSpec.forAnnotatedObject(getCommandOptions());
        }

        // I'm always overriding the spec name to match a name contained on the Spring bean, and I do not annotate the user objects with @Command
        commandSpec.name(getName());
        commandSpec.mixinStandardHelpOptions(true);

        // The spring bean may provide a list of subcommands as other Spring beans, so recursively iterate to build the subcommand tree into a CommandSpec.
        for (SlackCommand sub : getSubCommands()) {
            commandSpec.addSubcommand(sub.getName(), sub.getCommandSpec());
        }

        return commandSpec;
    }

When I am accepting a list of args (which will parsed and tokenized from some method besides a CLI instantiation), I pass the CommandSpec to the CommandLine and then run parseArgs.
CommandLine commandLine = new CommandLine(commandSpec);
ParseResult result = commandLine.parseArgs(args);

Based on the command/subcommand that was requested, I have code that will determine which Spring bean to execute myself. The problem is I am unsure of how to get the user object with the bound options/parameters properties from the parsed args in order to provide to the Spring bean for execution.
Does this help?

Thank you for the clarification.
One idea is to encapsulate your custom logic (that determines which Spring bean to execute) in a picocli IExecutionStrategy.
That would enable you to stay within the picocli framework and have your code look like this:
CommandLine commandLine = new CommandLine(commandSpec);
commandLine.setExecutionStrategy(createCustomExecutionStrategy());
int exitCode = commandLine.execute(args);
System.exit(exitCode);

The default execution strategy is RunLast.
The javadoc for the RunLast strategy actually shows an example implementation that you can follow.
That javadoc is slightly out of date, especially supporting help requests is better done as shown below:
// class MyCustomExecutionStrategy implements IExecutionStrategy
public int execute(ParseResult parseResult) throws ExecutionException {
    // user may have requested help for the top-level command or for a subcommand
    Integer helpExitCode = CommandLine.executeHelpRequest(parseResult); //display the appropriate usage help msg
    if (helpExitCode != null) { return helpExitCode; } //helpExitCode is null if help was not requested

    Tracer t = CommandLine.tracer();
    t.debug("%s: handling ParseResult...", getClass().getSimpleName()); // for debugging your stuff

    // flatten the nested ParseResult objects into a list
    List<CommandLine> parsedCommands = parseResult.asCommandLineList();

    // assuming your application does not support Repeatable Subcommands
    // (https://picocli.info/#_repeatable_subcommands),
    // then the last command in the list is the most specific subcommand: that is the one you want
    CommandLine last = parsedCommands.get(parsedCommands.size() - 1);
    t.debug("%s: user specified subcommand '%s'", getClass().getSimpleName(), last.getCommandName());

    // get the user object for that most specific subcommand
    Object userObject = last.getCommand();
    t.debug("%s: executing user object %s", getClass().getSimpleName(), userObject.toString());

    // your custom execution logic comes here:
    // find and run the Spring bean to execute, based on the user object of the most specific subcommand
    // you may want to surround that execution call with try/catch
    // and return `parseResult.commandSpec().exitCodeOnExecutionException()` when an exception occurs
    // and otherwise return `parseResult.commandSpec().exitCodeOnSuccess()`
}

That's it. That allows you to have custom logic for executing your Spring beans and still get the benefits of automatic handling of user requests for help, exit code, etc.

Thanks! Unfortunately, I need to pass a custom context object to the
execution method I will be invoking, and it will return some
arbitrary object type that I also need to capture and further process. I
don't think the execution strategy above allows me to do so because of its
inputs and return types. That's why I was specifically trying to figure out
a way to perform the user object binding: that user object will be
contained as part of a larger context object that I pass to some method to
execute the command.
On Thu, May 26, 2022 at 8:59 PM Remko Popma @.***>
wrote:

Thank you for the clarification.
One idea is to encapsulate your custom logic (that determines which Spring
bean to execute) in a picocli IExecutionStrategy
https://picocli.info/apidocs-all/info.picocli/picocli/CommandLine.IExecutionStrategy.html
.
That would enable you to stay within the picocli framework and have your
code look like this:
CommandLine commandLine = new CommandLine(commandSpec);commandLine.setExecutionStrategy(createCustomExecutionStrategy());int exitCode = commandLine.execute(args);System.exit(exitCode);
The default execution strategy is RunLast
https://picocli.info/apidocs-all/info.picocli/picocli/CommandLine.RunLast.html
.
The javadoc for the RunLast strategy actually shows an example
implementation that you can follow.
That javadoc is slightly out of date, especially supporting help requests
is better done as shown below:
// class MyCustomExecutionStrategy implements IExecutionStrategypublic int execute(ParseResult parseResult) throws ExecutionException {
// user may have requested help for the top-level command or for a subcommand
Integer helpExitCode = CommandLine.executeHelpRequest(parseResult); //display the appropriate usage help msg
if (helpExitCode != null) { return helpExitCode; } //helpExitCode is null if help was not requested
Tracer t = CommandLine.tracer();
t.debug("%s: handling ParseResult...", getClass().getSimpleName()); // for debugging your stuff

// flatten the nested ParseResult objects into a list
List<CommandLine> parsedCommands = parseResult.asCommandLineList();

// assuming your application does not support Repeatable Subcommands
// (https://picocli.info/#_repeatable_subcommands),
// then the last command in the list is the most specific subcommand: that is the one you want
CommandLine last = parsedCommands.get(parsedCommands.size() - 1);
t.debug("%s: user specified subcommand '%s'", getClass().getSimpleName(), last.getCommandName());

// get the user object for that most specific subcommand
Object userObject = last.getCommand();
t.debug("%s: executing user object %s", getClass().getSimpleName(), userObject.toString());

// your custom execution logic comes here:
// find and run the Spring bean to execute, based on the user object of the most specific subcommand
// you may want to surround that execution call with try/catch
// and return `parseResult.commandSpec().exitCodeOnExecutionException()` when an exception occurs
// and otherwise return `parseResult.commandSpec().exitCodeOnSuccess()`

}
That's it. That allows you to have custom logic for executing your Spring
beans and still get the benefits of automatic handling of user requests for
help, exit code, etc.
—
Reply to this email directly, view it on GitHub
https://github.com/remkop/picocli/issues/1689#issuecomment-1139207394,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKOWO2FYXE6PGCVEZOSNO3VMAT7BANCNFSM5W2SJOLA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Ok. I don't see how that is a problem, isn't that just a matter of how things are wired together?
For example:
CommandLine commandLine = new CommandLine(commandSpec);
MyCustomExecutionStrategy strategy = createCustomExecutionStrategy(customContextObject);
commandLine.setExecutionStrategy(strategy);
int exitCode = commandLine.execute(args);

CustomResult result = strategy.getExecutionResult(); // get your custom result for further processing
// do stuff with result...
// and exit
System.exit(exitCode);

// MyCustomExecutionStrategy
public int execute(ParseResult parseResult) throws ExecutionException {

    // ... (see code in previous comment)
    Object userObject = lastCmd.getCommand();

    try {
        // cast to your application interface that has a getter for the Spring bean to execute
        MyBeanProvider mbp = (MyBeanProvider) userObject;

        // get the actual executable Spring bean from the user object
        MyExecutableSpringBean bean = mbp.getExecutableSpringBean();

        // execute it, passing the custom context object (that this execution strategy was constructed with)
        CustomResult result = bean.execute(customContextObject);
        this.setExecutionResult(result); // store result for retrieval by other components
    } catch (Exception ex) {
        throw new ExecutionException(lastCmd, ex);
    }
    return lastCmd.exitCodeOnSuccess();

The command user object is determined by what is passed in to the CommandSpec.forAnnotatedObject() method.
This cannot be changed, but you can wire your user object so that it has a reference to the Spring Bean that needs to be executed.

That makes a lot of sense (thinking about an execution strategy as a
per-invocation object). I'll give this a shot and let you know where I end
up! Thanks!
On Thu, May 26, 2022 at 10:34 PM Remko Popma @.***>
wrote:

Ok. I don't see how that is a problem, isn't that just a matter of how
things are wired together?
For example:
CommandLine commandLine = new CommandLine(commandSpec);MyCustomExecutionStrategy strategy = createCustomExecutionStrategy(customContextObject);commandLine.setExecutionStrategy(strategy);int exitCode = commandLine.execute(args);
CustomResult result = strategy.getExecutionResult(); // get your custom result for further processing// do stuff with result...// and exitSystem.exit(exitCode);
// MyCustomExecutionStrategypublic int execute(ParseResult parseResult) throws ExecutionException {
// ... (see code in previous comment)
Object userObject = lastCmd.getCommand();

try {
    // cast to your application interface that has a getter for the Spring bean to execute
    MyBeanProvider mbp = (MyBeanProvider) userObject;

    // get the actual executable Spring bean from the user object
    MyExecutableSpringBean bean = mbp.getExecutableSpringBean();

    // execute it, passing the custom context object (that this execution strategy was constructed with)
    CustomResult result = bean.execute(customContextObject);
    this.setExecutionResult(result); // store result for retrieval by other components
} catch (Exception ex) {
    throw new ExecutionException(lastCmd, ex);
}
return lastCmd.exitCodeOnSuccess();

The command user object is determined by what is passed in to the
CommandSpec.forAnnotatedObject() method.
This cannot be changed, but you can wire your user object so that it has a
reference to the Spring Bean that needs to be executed.
—
Reply to this email directly, view it on GitHub
https://github.com/remkop/picocli/issues/1689#issuecomment-1139246319,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKOWO32KGEI2VVEPX47EUDVMA7EBANCNFSM5W2SJOLA
.
You are receiving this because you were mentioned.Message ID:
@.***>

It looks like the piece I needed was this:
Object userObject = lastCmd.getCommand();

This gets me the bound object that I can pass along as needed without needing to implement an execution strategy.
One last question: is a CommandSpec modified by the parseArgs method (or anything underneath it) in any way, or is it effectively immutable during that process? In other words, can I reuse a CommandSpec multiple times without state changes in that object through subsequent uses?

The CommandSpec does not change during parsing. The CommandLine object has a ParseResult, that is reset before any call to parseArgs/execute. Both CommandLine and CommandSpec are intended to be reusable.
Areas that need care when reusing CommandLine/CommandSpec objects:

There is one known edge case that does not work, which has to do with Repeatable Subcommands combined with the programmatic API. If your application does not have Repeatable Subcommands this is not a concern for you.
If your application uses ArgGroups, make sure to read the section on default values in argument groups.

One more thing:

(...)
This gets me the bound object that I can pass along as needed without needing to implement an execution strategy.

Cool. No need to create a full-blown execution strategy.
However, this does mean that your application becomes responsible for handling end user's requests for --help and --version.
You still may want to do the below with the ParseResult before any other processing, to ensure your application handles that correctly:
    // user may have requested help for the top-level command or for a subcommand
    Integer helpExitCode = CommandLine.executeHelpRequest(parseResult); //display the appropriate usage help msg
    if (helpExitCode != null) { return; }

    //only run the application code if helpExitCode is null (help was not requested)

The above will display help or version info for the correct subcommand.

Ah right. Currently in checking the last command's flags for whether help
or version was requested and running the better method which returns the
appropriate message as a string.
I'm basically implementing a cli style interface into a slack bot that
reacts to messages where the bot is mentioned. That makes the bot's name
the root command and everything else is a sub from there. I need to capture
all the output and send it back to the user over API requests to slack's
API. That also means the application itself is kind lived, which led me
down this path.
Thanks to all your help, I have a working framework for all of this!
On Fri, May 27, 2022, 4:45 PM Remko Popma @.***> wrote:

One more thing:
(...)
This gets me the bound object that I can pass along as needed without
needing to implement an execution strategy.
Cool. No need to create a full-blown execution strategy.
However, this does mean that your application becomes responsible for
handling end user's requests for --help and --version.
You still may want to do the below with the ParseResult before any other
processing, to ensure your application handles that correctly:
// user may have requested help for the top-level command or for a subcommand
Integer helpExitCode = CommandLine.executeHelpRequest(parseResult); //display the appropriate usage help msg
if (helpExitCode != null) { return; }

//only run the application code if helpExitCode is null (help was not requested)

The above will display help or version info for the correct subcommand.
—
Reply to this email directly, view it on GitHub
https://github.com/remkop/picocli/issues/1689#issuecomment-1140060888,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKOWO2KXJXFOQKJCJJBIZLVME66RANCNFSM5W2SJOLA
.
You are receiving this because you were mentioned.Message ID:
@.***>

ok great. I will close this ticket, feel free to open another one any time.


[CP-Sat, Python, 7.5.7466]  Increased amount of unexpected crashes

I'm running everything on a windows 10 machine with PyCharmPyCharm 2019.2.4 (Professional Edition).
Since the 7.5 update I am experiencing increased amount of crashes, without trackback, only

Process finished with exit code -1073741819 (0xC0000005)

and

Check failed: SolutionIsFeasible( *shared_->model_proto, std::vector(local_response.solution().begin(), local_response.solution().end())) scheduling_random_lns_auto(d=0.71 s=33 t=0.10 p=1.00)
*** Check failure stack trace: ***
@   00007FFC76A7A72B  PyInit__pywrapsat
@   00007FFC76A78979  PyInit__pywrapsat
@   00007FFC76B0CEAF  PyInit__pywrapsat
@   00007FFC76C7DD59  PyInit__pywrapsat
@   00007FFC76E5BE21  PyInit__pywrapsat
@   00007FFC76E5AC1F  PyInit__pywrapsat
@   00007FFCBB811FFA  _o_exp
@   00007FFCBE847974  BaseThreadInitThunk
@   00007FFCBF0FA271  RtlUserThreadStart
Process finished with exit code -1073740791 (0xC0000409)

It usually happens, when I keep several consoles with the same (or similar) models open, or when I run the same model with changed parameters several times within one script. Running my model a single time did not lead to this, so far - but for my project I have to run it many consecutive times.
I had the 0xC0000005 exit-code occure before, when the memory was maxed out, but I made sure the memory was always under 70 %, when it happened lately.

Could you send us one model that crashes.
I am actually debugging this code and would like to make sure we did your
problem.
Sorry about that.
--Laurent
PS: this is due to an over zealous presolve. You can disable it for the
time being.
Le jeu. 13 févr. 2020 à 17:34, DominikRoB<EMAIL_ADDRESS>a
écrit :

I'm running everything on a windows 10 machine with PyCharmPyCharm
2019.2.4 (Professional Edition).
Since the 7.5 update I am experiencing increased amount of crashes,
without trackback, only
Process finished with exit code -1073741819 (0xC0000005)
and
Check failed: SolutionIsFeasible( *shared_->model_proto,
std::vector(local_response.solution().begin(),
local_response.solution().end())) scheduling_random_lns_auto(d=0.71 s=33
t=0.10 p=1.00)
*** Check failure stack trace: ***
@ 00007FFC76A7A72B PyInit__pywrapsat
@ 00007FFC76A78979 PyInit__pywrapsat
@ 00007FFC76B0CEAF PyInit__pywrapsat
@ 00007FFC76C7DD59 PyInit__pywrapsat
@ 00007FFC76E5BE21 PyInit__pywrapsat
@ 00007FFC76E5AC1F PyInit__pywrapsat
@ 00007FFCBB811FFA _o_exp
@ 00007FFCBE847974 BaseThreadInitThunk
@ 00007FFCBF0FA271 RtlUserThreadStart
Process finished with exit code -1073740791 (0xC0000409)
It usually happens, when I keep several consoles with the same (or
similar) models open, or when I run the same model with changed parameters
several times within one script. Running my model a single time did not
lead to this, so far - but for my project I have to run it many consecutive
times.
I had the 0xC0000005 exit-code occure before, when the memory was maxed
out, but I made sure the memory was always under 70 %, when it happened
lately.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1882?email_source=notifications&email_token=ACUPL3IKPYKNF56POJYOY7TRCVZALA5CNFSM4KUWKP3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4INKIMBA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3I3SD2OC7ERDVBLAKTRCVZALANCNFSM4KUWKP3A
.

Here's one of the crashing models. It does not crash each time, but quite regularly.
I did try disabling cp_model_presolve, but that leads to a even more certain crash, it seems.
(Also with Process finished with exit code -1073741819 (0xC0000005))
I'm still trying to find a good situation to regularly reproduce the case for

Check failed: SolutionIsFeasible( *shared_->model_proto,  [...] Process finished with exit code -1073740791 (0xC0000409)

model.zip

Thanks.
It should be fixed on master.


CI builds with min & max versions

We have a quite a wide range of supported version but they are not properly tested, so I would like to extend/update CI to be built with minimal and maximal versions defined in requirements.
The limitations now are that Travis build already takes about 20min and adding more test configuration would make finishing it even slower... I was recently playing with GitHub Actions Workflow (I have joined the beta program and they should be released quite soon) and it seems to be quite convenient... I would prepare such testing, but I need @williamFalcon to joint GitHub Action :)
Another alternative would it do it in CircleCI, but GitHub Action has an advantage that it simply supports all three main platforms - Linux, xOS and Win

I would say that having #500 is more important than #502 because the second one aims only on PyTorch compare to the first one aims at complete requirement testing... @williamFalcon


[Bug] Compilation error in model int_shopify__order__shipping_aggregates

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the issue
When trying to upgrade from the fivetran/shopify dbt package version 0.7 to 0.8 I'm experiencing the following Compilation Errors in the models.
However when I updated from DBT-bigquery 1.4.0 to 1.4.5 the error disappeared.
This probably means that the require-dbt-version needs to be updated from [">=1.3.0", "<2.0.0"] to [">=1.4.5", "<2.0.0"] for the version 0.8.0 to work.
Kind regards,
Kristof.
Relevant error log or model output
`Compilation Error in model int_shopify__order__shipping_aggregates (models/intermediate/int_shopify__order__shipping_aggregates.sql)
13:27:09    dbt was unable to infer all dependencies for the model "int_shopify__order__shipping_aggregates".
13:27:09    This typically happens when ref() is placed within a conditional block.
13:27:09
13:27:09    To fix this, add the following hint to the top of the model "int_shopify__order__shipping_aggregates":
13:27:09
13:27:09    -- depends_on: {{ ref('stg_shopify__order_shipping_line') }}
13:27:17  20 of 24 OK created sql table model dev_kristof_base.shopify__order_lines ...... [CREATE TABLE (4.8m rows, 2.3 GB processed) in 8.45s]
13:27:17  22 of 24 SKIP relation dev_kristof_base.shopify__products due to ephemeral model error  [ERROR SKIP]
13:27:17  Compilation Error in model int_shopify__products_with_aggregates (models/intermediate/int_shopify__products_with_aggregates.sql)
13:27:17    dbt was unable to infer all dependencies for the model "int_shopify__products_with_aggregates".
13:27:17    This typically happens when ref() is placed within a conditional block.
13:27:17
13:27:17    To fix this, add the following hint to the top of the model "int_shopify__products_with_aggregates":
13:27:17
13:27:17    -- depends_on: {{ ref('stg_shopify__collection_product') }}
13:27:17  23 of 24 SKIP relation dev_kristof_entities.products due to ephemeral model error  [ERROR SKIP]
13:27:17  Compilation Error in model int_shopify__products_with_aggregates (models/intermediate/int_shopify__products_with_aggregates.sql)
13:27:17    dbt was unable to infer all dependencies for the model "int_shopify__products_with_aggregates".
13:27:17    This typically happens when ref() is placed within a conditional block.
13:27:17
13:27:17    To fix this, add the following hint to the top of the model "int_shopify__products_with_aggregates":
13:27:17
13:27:17    -- depends_on: {{ ref('stg_shopify__collection_product') }}
13:27:17  24 of 24 SKIP relation dev_kristof_bi.product_assortment_analysis due to ephemeral model error  [ERROR SKIP]
13:27:17  Compilation Error in model int_shopify__products_with_aggregates (models/intermediate/int_shopify__products_with_aggregates.sql)
13:27:17    dbt was unable to infer all dependencies for the model "int_shopify__products_with_aggregates".
13:27:17    This typically happens when ref() is placed within a conditional block.
13:27:17
13:27:17    To fix this, add the following hint to the top of the model "int_shopify__products_with_aggregates":
13:27:17
13:27:17    -- depends_on: {{ ref('stg_shopify__collection_product') }}
13:27:17
13:27:17  Finished running 9 view models, 15 table models in 0 hours 0 minutes and 24.21 seconds (24.21s).
13:27:17
13:27:17  Completed with 4 errors and 0 warnings:
13:27:17
13:27:17  Compilation Error in model.shopify.shopify__orders, caused by compilation error in referenced ephemeral model model.shopify.int_shopify__order__shipping_aggregates
13:27:17
13:27:17  Compilation Error in model.shopify.shopify__products, caused by compilation error in referenced ephemeral model model.shopify.int_shopify__products_with_aggregates
13:27:17  `

Expected behavior
These models come fresh out of the box so I would expect those models to generate without an issue.
dbt Project configurations
vars:
shopify_union_schemas: [
'shopify_store_nl',
'shopify_store_fr',
'shopify_store_en',
] # use this if the data is in different schemas/datasets of the same database/project
shopify_database: 'pitpit-data-raw'
shopify_using_fulfillment_event: false
Package versions
packages:

package: fivetran/shopify
version: ['>=0.8.0', '<0.9.0']

What database are you using dbt with?
bigquery
dbt Version
Core:

installed: 1.4.1
latest:    1.4.5 - Update available!

Your version of dbt-core is out of date!
You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation
Plugins:

bigquery: 1.4.0 - Update available!

At least one plugin is out of date or incompatible with dbt-core.
Additional Context
No response
Are you willing to open a PR to help address this issue?

[ ] Yes.
[ ] Yes, but I will need assistance and will schedule time during our office hours for guidance
[ ] No.

HI @kristof-taveirne thanks so much for opening this issue and raising it to our attention.
This is a peculiar bug indeed 🤔. I just downgraded my dbt version to 1.4.0 and found that it compiled and ran successfully. I also checked the dbt-core and dbt-bigquery releases and did not see any regression that called this type of error message out.
Further, I took a look at the error messages and they seem to be contradicting the logic within the models themselves. The error messages state that this may be caused by having refs live within conditional blocks; however, none of those models have the refs in conditional blocks. In theory, dbt should be able to pick these referential dependencies up without an issue.
I am a bit apprehensive of adjusting the dbt required range as this can cause some friction for our existing users that are not on the latest version of dbt-core. I wonder if this could have possibly been a result of needing to clean the manifest and when upgrading the package there somehow was conflicting manifest versions of the package that caused this error to occur?

As mentioned above, this is not something we will likely adjust within the package. That being said, I would be open to hearing if any other users run into this same issue.
However, for the time being I will close this issue.


Reworking Policy vs. Filter Documentation

What type of PR is this?
/kind documentation
What this PR does / why we need it:
This adds some clarification in our docs based on an earlier Slack thread around if there was still value in custom filters now that we have policy attachment.
Does this PR introduce a user-facing change?:
NONE

I strongly disagree with this, it leads to an extremely inconsistent experience for users.

I'm OK in general with giving guidance on how we think implementations should approach this, but let's be prepared for the guidance to be wrong :)
It's possible for implementations to come up with features where it makes sense to break or modify this guidance. That's OK, since it's more important for the feature to be internally consistent and useful. We can revisit and update guidance as teams gain more implementation experience.

/lgtm
/hold

I think that the guidance we have is good for now. We can always update if we need to.
/lgtm
/hold cancel


changelist paginator styles and column height

This pull request fixes the following issues:

BEFORE
AFTER

LGTM

Changes Unknown when pulling d1fe4e2df344303aeb682bde6744b4fff3f1ba0a on bugfix/changelist-paginator into ** on develop**.


pwgen: command not found error

Bug description
Using legacy install with mySQL option fails to install.
Steps to reproduce
Try to install through setup.sh and choose mySQL option.
Expected behavior
Install success
Deployment method (select with an X)

[ ] Kubernetes
[ ] Docker
[ X ] setup.bash / legacy-setup.bash

Environment information
Ubuntu 20 TLS
DefectDojo 1.6.2
Console logs (optional)
Setting password...
entrypoint_scripts/common/dojo-shared-resources.sh: line 544: pwgen: command not found
ERROR 1045 (28000): Access denied for user 'hola'@'localhost' (using password: NO)
mysqladmin: [ERROR] mysqladmin: Empty value for 'port' specified.
Error! Failed to create database . Check your credentials.
Setting password...
entrypoint_scripts/common/dojo-shared-resources.sh: line 544: pwgen: command not found
ERROR 1045 (28000): Access denied for user 'hola'@'localhost' (using password: NO)
mysqladmin: [ERROR] mysqladmin: Empty value for 'port' specified.
Error! Failed to create database . Check your credentials.

What database url / post did you use? Can you provide logs of all input / output during setup.sh?

Looks like it was only installed using Docker installations.
Just submitted a PR which should fix this using the legacy-setup on all supported platforms.
Please see #2500


Changed from Hashrouter to BrowserRouter

Due to the unnecessary # symbol in the website navigation caused by HashRouter, it has been replaced with BrowserRouter to resolve the issue.

is it ,It works fine in local environment

is it ,It works fine in local environment

yes it's working fine also in my local but after deploying 404 😢

still error.

😢

We need to use a dynamic route

ok Ill try that

So I'm closing this PR Create a new one


We hope to provide an updated version based on the official USB host example

We hope to provide an updated version based on the official USB host example
https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/cdc

Hi,
i dont think i will change the USB host CDC in this library:

it is working and its working good, i think
the code from your link is master, which means its part of esp-idf v5.0, and arduino-esp32 is based on v4.4, so its not going to be available any time soon
when it will be available in arduino, anyone can use this API and example code as is, and i am guessing it will be part of library provided by espressif in arduino-esp32 too