Egeria installation fails

Running ./hack/install.sh on OpenShift CodeReadyContainer v4.5.14 on Windows 10 with WSL failed due to timeout:
helm install lab ./egeria/open-metadata-resources/open-metadata-deployment/charts/odpi-egeria-lab -f lab.yaml --namespace=egeria-catalog --wait --timeout=8m
Increasing timeout to 30m did not help.

Please provide more details, do the pods in egeria-catalog namespace eventually change to Running state? If not, what pod is stuck and in what status?

Sorry for my later response on this, I have to turn off my VPN when running CRC ... I forgot to mention that in the 30 min timeout I had also Istio in my cluster as well. This seems to be a resource problem. I did not encounter this problem when running on a remote machine. However on my laptop in Kind cluster on WSL or CRC (Windows 10) I hit the egria timeout. Without Istio ./hack/install.sh usually succeed after second time running it due to the egeria timeout in the first time. When installing egeria manually on fresh cluster I also did not had any problems.

kubectl describe pod lab-zookeeper-0:
Warning  FailedScheduling  86s (x13 over 12m)  default-scheduler  0/1 nodes are available: 1 Insufficient cpu.


Laravel 5.7 global HTTP middleware get route return null

Laravel Version: 5.7
PHP Version:
Database Driver & Version:

Description:
Global middleware route parameter return null
Steps To Reproduce:
Create a middleware and register it in the Kernel.php $middleware = []
Route
Route::get('/{parameter_name}', function () {
return view('welcome');
})->name('welcome');
Middleware
/**
* Handle an incoming request.
*
* @param  \Illuminate\Http\Request  $request
* @param  \Closure  $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
dump( $request->route('parameter_name') );
return $next($request);
}

@wkdcode-istvan Because all global middlewares are called before the request is dispatched to the router, you get the route as a null value. What do you really want to do?

That's the expected behavior and not a bug. All global middleware are executed before the request gets dispatched to the router (where the route parameter binding happens). You can use $request->route() only in a route level middleware.

@X-Coder264 It's so funny. Because you explain more details, it takes you more time than me. :)

Thanks guys,
I use modules with their own route files and I wanted to check the slug for the language code without adding a middleware to every route defined in the modules.
It make sense no, why didn't worked.
Thanks

@wkdcode-istvan in one of my middleware i did something like this:
if ($request->is('') ) {
//            do something
            }

and this seems to work!

You can access the route if you apply the middleware at the group level (eg the web middleware group)
just not global.

Hi @shez1983,
Hi @rs-sliske,
Finally I have added the middleware to the web group and it works as it's should, just not global, but it's not a big issue. I can reuse the middleware in another modules as well if I need.
Thank you for your advice.

In case someone comes here as I did then you can use the middleware as after middleware to get those values.
public function handle ($request, Closure $next) {
    $response = $next($request); // as it's after middleware, then all the routes are being parsed here everything went through.
    // $request->route() will be non null this time
    return $response;
}


Run E2E tests on master

Questions
Answers

Description?
Since E2E tests run only on the dev branch, we don't have real-time errors on upgrades. So adding run on the main branch

Type?
improvement

BC breaks?
no

Deprecations?
no

Fixed ticket?
no

How to test?
no tests needed

Possible impacts?
none

Thank you @boubkerbribri


[Bug] All Advancements from mod on start

Describe the bug
When I loaded world with VanillaTweaks I on start got all advancements from mod.
To Reproduce (Required unless not known)
Steps to reproduce the behavior:

Create new world with VanillaTweaks Mod
See chat or advancements GUI.

Log output/error (via. Hastebin)
latest.log
Screenshots

Versions:

Forge Version: 37.0.12
MC Version: 1.17.1
Mod Version: 1.5.40

This is an forge bug which causes all the not vanilla advancements to be given on world load. There is already a bug report for it in forge repository.


Global Search finds string only in current file by "files.encoding": "utf8bom" in Settings

VSCode Version: 1.11.0
OS Version: Windows 10

Steps to Reproduce:

Open Settings
Add "files.encoding": "utf8bom"
Restart
Search in Global Search a string from current file

Only matching strings from current file are found.

I'm having the same issue. It's really anoying.

Likely workaround: set the option "search.useRipgrep": false

I'm still getting this issue in 1.11.1 even with the default encoding.

Another reason you may lose results is https://github.com/Microsoft/vscode/issues/24050

My loss of results seems to be related to the number of files in a folder, so I will create a separate issue for it.


Could you release the code of hop-rec?

The author of hop-rec did not publish the source code, and I did not find any other version on the Internet。Could you please release the code of hop-rec?
Thank you~

right here https://github.com/cnclabs/smore

right here https://github.com/cnclabs/smore


feat: update alerts to use new toast component

Link this PR to an issue
Fixes #934
Type of change (Remove other not matching type)

New feature (non-breaking change which adds functionality)

Describe the changes you have made in this PR -
I have updated all instances of alert() and changed it to the corresponding toast().
Screenshots of the changes (If any) -
How Has This Been Tested?
I did not test every single toast call but I did test to make sure toast works.
Checklist:

[x] My code follows the style guidelines of this project and performed a self-review of my own code
[x] New and existing tests pass locally with my changes
[x] I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

Sounds good, maybe we could add a toastcontainer to the stories but because it is just examples like you said then let's just revert back to alert. I am not sure how many people use the Storybook stories anyway.

@secondl1ght @bumi @dylancom what do you think about using a plugin to align all our import sortings? i.e. https://github.com/trivago/prettier-plugin-sort-imports

I don't have a strong opinion there.
less dependencies is better, but if it's helpful :)

@escapedcat I like prettier, so I'd be up for it.


Implement Metric Server

Implement the metric server described in #423. This will solves issue #401 and #412.
Note:

No test is needed because we replaced the original model container metrics with the new design. That's sufficient for testing the new implementation.
Extensive API Docs are added for client facing functions.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1135/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1136/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1137/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1138/
Test FAILed.

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1141/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1146/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1149/
Test FAILed.

I just added another package and conda seg fault again?! 😟

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1150/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1153/
Test FAILed.

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1154/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1155/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1158/
Test FAILed.

jenkins test this please

^seg-fault again

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1159/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1160/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1161/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1163/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1164/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1165/
Test PASSed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1177/
Test FAILed.

Jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1179/
Test FAILed.

Jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1191/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1202/
Test FAILed.

jenkins test this please

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1219/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1223/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1224/
Test FAILed.

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1226/
Test FAILed.

jenkins test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1228/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1278/
Test PASSed.


[QUESTION] urresponsive server whenever a php error occurs

Before you submit this issue, you has been search all existed issues and search the documentation

[yes] I've been search all existed issues
[yes] I've been read all documentation

Describe your question
Version used for docker:  hyperf/hyperf:8.0-alpine-v3.12-swoole
First of all, thanks for the good work. I'm trying to start using hyperf. I have setup a basic new project. The project runs behind docker with the default Dockerfile created with:
composer create-project hyperf/hyperf-skeleton
The problem is that when a php error occurs, the server does not return a response and stays in error condition.

The configuration for exception is the default of the hyperf-skeleton:
config/autoload/exceptions.php
<?php

declare(strict_types=1);

return [
    'handler' => [
        'http' => [
            Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
            App\Exception\Handler\AppExceptionHandler::class,
        ],
    ],
];

app/Exception/Handler/AppExceptionHandler.php
declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact<EMAIL_ADDRESS> * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Exception\Handler;

use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\ExceptionHandler\ExceptionHandler;
use Hyperf\HttpMessage\Stream\SwooleStream;
use Psr\Http\Message\ResponseInterface;
use Throwable;

class AppExceptionHandler extends ExceptionHandler
{
    /**
     * @var StdoutLoggerInterface
     */
    protected $logger;

    public function __construct(StdoutLoggerInterface $logger)
    {
        $this->logger = $logger;
    }

    public function handle(Throwable $throwable, ResponseInterface $response)
    {
        $this->logger->error(sprintf('%s[%s] in %s', $throwable->getMessage(), $throwable->getLine(), $throwable->getFile()));
        $this->logger->error($throwable->getTraceAsString());
        return $response->withHeader('Server', 'Hyperf')->withStatus(500)->withBody(new SwooleStream('Internal Server Error.'));
    }

    public function isValid(Throwable $throwable): bool
    {
        return true;
    }
}

The behaviour that I expect is that the server respond a 500 error like it is specified in the line return $response->withHeader('Server', 'Hyperf')->withStatus(500) of AppExceptionHandler.php.
Do you know if this is a configuration issue?
Thanks a lot.

composer dump-autoload -o

composer dump-autoload -o

Thanks for the response but it does not have any effect.

The reason about server crash is declare the class below more than once.

so, you should check your code about them.

Hi,
yes, I know that exists an error in the code, in fact, I have put the error to see the behaviour. The problem is that when the error happens, the server does not return a 500 HTTP error to the client. The connection stays open without any response. You can see in the image that the curl command have not received any response, it keeps waiting forever.

You can change the mode to SWOOLE_BASE in config/autoload/server.php

Fatal error will cause swoole worker exit, so we couldn't catch the error.
帮我看看这个问题
@sy-records

这是代码问题吧，需要自己处理掉，抛出来的话被Swoole处理就是exit 0

Hi
Yes, I understand that this is a code problem but the server should responde an error 500 and is not responding leaving the connection open. I think that should be fixed. Anyway, setting mode to SWOOLE_BASE instead of SWOOLE_PROCESS works as expected. I will take a look to the differences.
Thanks for the great support.


Feat(web): Introduce Item component #DS-1047

Description

Additional context

Issue reference
DS-1047

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Follow the PR Title/Commit Message Convention.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[x] Ideally, include relevant tests that fail without this PR but pass with it.

Good job! I only have doubts about the demo:

How to present the component width: narrow may be misleading, full-width is ugly.
To change labels by element type, or not to change.

But I don't have any constructive proposals.

I suggest we open this again when we embed this in the Dropdown component. Then we might figure out a better solution.


Pollux: Co-adaptive Cluster Scheduling for Goodput-Optimized Deep Learning

OSDI'21
https://www.usenix.org/conference/osdi21/presentation/qiao
https://github.com/petuum/adaptdl

Thanks for your contribution! :tada: :+1:


Can it run on Gitpod? And another question.”

 Hello, thank you for your open-source project. If I do not rely on other APIs and only use OpenAI’s API, and if the articles are not retrieved from external sources but are instead one or two hundred academic papers on a specific topic that I have prepared myself, can I achieve the same results as you?”

 Hello, thank you for your open-source project. If I do not rely on other APIs and only use OpenAI’s API, and if the articles are not retrieved from external sources but are instead one or two hundred academic papers on a specific topic that I have prepared myself, can I achieve the same results as you?”


Fix source builds with CMake. Add example.

An attempt to fix #646.

Looks like it works now!
But dqcsim_build target is not automatically built so when I try to compile my backend, an error appears like "SOME_PATH/libdqcsim.dylib is not found". I have to first build dqcsim_build and then my backend.
Somehow the dependency is not detected when building. I guess it's because of the way ExternalProject works: it does not build the dependency at configure-time but at build-time.

Somehow the dependency is not detected when building. I guess it's because of the way ExternalProject works: it does not build the dependency at configure-time but at build-time.

Correct.


Polish the game, add backgrounds

Add pixel art as its background: pixel art console, num pad, and whatever that top window is. Maybe try to use illustrator aswell

I didn't add a background, but I did add the CRT effect for the window. This will do for now


Dont honour params specified in suite-file tag

Closes #581
TestNG does not have any logic that would
honour parameter tags specified within suite-files tag. But due to a parsing bug, we end up reading
parameters that were specified within
<suite-file> tag.
This tag by definition is NOT meant to have any
child tags inside of it.
Fixed this discrepancy by adding a warning when
this anomaly is detected and skipping of reading
the <parameter> tag inside it as if it were
specified within <suite> tag.
Fixes #581  .
Did you remember to?

[X] Add test case(s)
[X] Update CHANGES.txt
[X] Auto applied styling via ./gradlew autostyleApply

We encourage pull requests that:

Add new features to TestNG (or)
Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.
Note: For more information on contribution guidelines  please make sure you refer our Contributing section for detailed set of steps.

The dtd file should be updated to be synch to the behavior

I would need help with that, because I have never done that. Also how do we go about publishing this ?

I checked and confirm that the issue is in the dtd file:

<!ELEMENT suite-file ANY >
<!ATTLIST suite-file
    path CDATA #REQUIRED
>

According to the spec, suite-file should be EMPTY and not ANY.
I think we should check every element node.
The dtd files are hosted here: https://github.com/testng-team/testng-team.github.io

@juherr - The DTD is fixed as part of this PR https://github.com/testng-team/testng-team.github.io/pull/46
Can we go ahead with merging this PR ?


pull request for e2e test at 12/12/2016 14:45:03

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[PE-D][Tester B] 2 or more persons with the same phone number and email can be added, does not check for uniqueness in email and phone

Expectation
As a user, I would expect that 2 persons cannot have the same telephone number, since in real life, everyone's phone number or email should be unique.
Actual behavior
Currently, uniqueness is enforced on names but not phone numbers, hence it is possible to have 2 persons with different names but the same phone number and email address.
This could lead to some user errors like accidentally assigning duplicate phone and email due to carelessness, which can lead to faulty data. Preventing this could be a better product design choice.
How to reproduce
Run the following code to add 2 persons with different name but all other fields same (including phone number)

add n/John Doe p/98765432<EMAIL_ADDRESS>a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
add n/Johnny Doe p/98765432<EMAIL_ADDRESS>a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney

Potential improvements
Make persons unique based on a combination of name, phone number and email or just phone number and email

Labels: type.FeatureFlaw severity.Medium
original: chuajunyu/ped#1

I think this can be a feature suggestion. There is no reason for a system to be designed with so many restrictions to accommodate some edge cases (e.g. changes and reuse of phone numbers, sharing of emails, etc.)
A good testament to this is probably every contacts application. Try adding two contacts with the same numbers. You will realise it accepts it.


fix(curriculum) replace single-line blocks with multi-line blocks for…

… Front End Libraries #41523
Second attempt
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Checks Front End Libraries on #41518 - Second Attempt

Thanks! Made the change and hopfeully it'll be good to go...

I was also thinking I wouldn't mind doing more of these especially for the mess I've caused but I've also read the first-timers contribution piece and wouldn't want to be taking away somebody else's shot at what seems to be a pretty good chance so let me know what you think is best!

I was also thinking I wouldn't mind doing more of these especially for the mess I've caused but I've also read the first-timers contribution piece and wouldn't want to be taking away somebody else's shot at what seems to be a pretty good chance so let me know what you think is best!

This one is not labeled for first-timers, so if you want to do another PR for the issue, let us know on the issue, so we can assign you to it.


Could you add some examples

I'm an engineer in NXP MCU system engineering team, I'm now learning Rust (in early stage) and I'd like to have a try and then later contribute.
I'm familiar with the i.MX RT devices and using Segger J-Link GDB server to debug it with GDB.
Could you just add some examples to let traditonal MCU users like me get started?
You can also contact me with<EMAIL_ADDRESS>

Hi Rocky!
We have some examples that will be part of the imxt1060evk-bsp when I release that this week sometime. They are mostly working right now, the I2C and SPI devices need further testing. The repo also is currently using paths rather than released crates. It is definitely my intention to add more examples as time permits.
Most of the usage of the imxrt-hal and imxrt-ral crates are done through board packages, at the moment the teensy4-rs project has board and runtime specific crates for the teensy 4 and imxrt1060evk-bsp, located in this github org.
I'm excited to see interest from some folks at NXP!

Glad to get your response！At this moment though I still need to learn a lot to do real work, I can give some generic comments:

For "provide all the linker and reset handler work needed", I am familiar with them and customization under C and asm language for ARMCC, IAR, and GCC, and I can help if I know how to connect my knowledge to Rust code.
It is straightforward to configure the Segger JLink GDB server to initialize the SDRAM controller, just use "-jlinkscriptfile" option to run SDRAM init script (provided by NXP SDK, the file name is "evkmimxrt1060_sdram_init.jlinkscript").

For the linker script and reset handler customization the current goal is to allow a person to customize it in a build.rs, Cargo uses that to do custom build time work which you can code in Rust.
To solve the problem I'm working on creating a linker script and reset generator that an application creator may call in a build.rs file in their project, this work is ongoing https://github.com/imxrt-rt/imxrt-rt-gen. This will go alongside the boot configuration generator we have https://github.com/imxrt-rs/imxrt-boot-gen. With the two of those crates together hopefully any elf build and memory configuration should be possible, with perhaps the exception of the signed or signed and encrypted boot image support these chips have.
This is all based on feedback here, https://github.com/imxrt-rs/imxrt-rt/issues/2
There's some links there which lead to some more useful information where the idea stems from originally, which is from @japaric
It's also somewhat of a loftier goal to avoid having to write a custom runtime crate altogether and instead let the rust embedded cortex-m-rt crate deal with it, since they are looking to solve the same sorts of problems, and could be done in a way more SoCs could benefit. Especially NXP ones with their Harvard architectures.
I did see the sdram init jlink script, I thought it was a very neat way of doing it! I'll certainly give it a try when I get there.

I'm going to close this for now as there are examples. If specific docs or examples are being looked for, let me know!


Fix hacky code & recategorize methods

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 31 (29.03%)  changed or added relevant lines in 27 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.05%) to 47.788%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildMultiSelectionListWith..st
0
1
0.0%

packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildQuestionTitleTextWith..st
0
1
0.0%

packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st
0
1
0.0%

packages/Liquid-UI.package/LQAnswerPanel.class/instance/initialize.st
0
1
0.0%

packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollInteractionButtonWith..st
0
1
0.0%

packages/Liquid-UI.package/LQHostMenu.class/instance/buildWith..st
0
1
0.0%

packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildAnswerPanelWith..st
0
1
0.0%

packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildSendAnswerButtonWith..st
0
1
0.0%

packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildWith..st
0
1
0.0%

packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildMaxNumberOfChoicesLabelWith..st
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.05%

Covered Lines:
497

Relevant Lines:
1040

💛  - Coveralls


Theme supports for blur admin

Originally, blur-admin comes with 2 themes. Can we have the other theme option for this react project as well ?

This is a really delayed response, my apologies! If you are still wondering about themes. In app.scss on line 5 you can change the theme manually, but this would of course require forking the project to accomplish this.
We wanted to get to more modular CSS but never quite got around to it. If anyone wants to help facilitate that via a pull request, I'm happy to take a review and merge it in.


Roll Engine from 7b4905852d6f to e0e88d8c146f (1 revision)

https://github.com/flutter/engine/compare/7b4905852d6f...e0e88d8c146f
2022-03-05<EMAIL_ADDRESS>Roll Dart SDK from 9030f94e7d66 to 38c809abde23 (1 revision) (flutter/engine#31847)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Update sync.md

Brand new user and I really am not an expert in these matters but I struggled with this, and in the end solved it by removing the final 'espanso'. I'll leave it to you whether you think that is good advice or a quirk of my setup. Great app, thanks.

@mrdsaunders Thanks for your help! Maybe you suffered from this problem?

Not that I was aware of, I thought I followed that instruction.

Thank you!


None of the Serverless functions in your SAM template have valid API event sources.

I try to run a lambda function for a alexa skill locally.
I'm using this template, found here https://github.com/awslabs/aws-sam-local/blob/develop/test/templates/sam-official-samples/alexa_skill/template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Alexa Skill https://developer.amazon.com/alexa-skills-kit
Resources:
  AlexaSkillFunction:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: s3://<bucket>/alexa_skill.zip
      Handler: index.handler
      Runtime: nodejs4.3
      Events:
        AlexaSkillEvent:
          Type: AlexaSkill
          Properties:
            Whatever: whatever

But the startup fails with following output:
$ sam local start-api
2017/08/27 12:15:30 Connected to Docker 1.30
2017/08/27 12:15:30 Successfully parsed template.yaml
ERROR: None of the Serverless functions in your SAM template have valid API event sources.

What does it mean?
My index.js is running fine in lambda:
const Alexa = require('alexa-sdk');

const APP_ID = 'XXX';

const handlers = {
    ...
};

exports.handler = function (event, context) {
    const alexa = Alexa.handler(event, context);
    alexa.APP_ID = APP_ID;
    alexa.registerHandlers(handlers);
    alexa.execute();
};

Hi @rogervanwile,
sam local start-api starts a local API Gateway, for testing functions that have API event sources.
Your example above doesn't have any events with Type: Api, so you should use sam local invoke instead, which just invokes a single function from the command line.


Feat: application trait status

Signed-off-by: Zhiyu Wang<EMAIL_ADDRESS>Description of your changes

Fixes #
I have:

[x] Read and followed KubeVela's contribution process.
[ ] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[x] Run yarn lint to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

Special notes for your reviewer

@zhiyuone It's better that shows the trait status in the sub-table of the component row, so there is a clearer hierarchy.

@zhiyuone It's better that shows the trait status in the sub-table of the component row, so there is a clearer hierarchy.

@barnettZQG I tried switching to tree table, but it has a problem with indentation

@zhiyuone you could reference the instances page.

@barnettZQG  It's a bit ugly for me to use a sub table here, I prefer a compact table

Temporarily closed due to inability to resolve indentation issues.

@zhiyuone can you create an issue for this.


Playground: allow custom collab endpoints

Tested locally and the yjs demo server works ?collabEndpoint=wss://demos.yjs.dev

The integrity checks are failing, mind running prettier please?

Note: yjs demo not working at the moment so I spun up a y-websocket server on flyio. Working:
https://lexical-playground-git-fork-jpillora-patch-1-fbopensource.vercel.app/?isCollab=true&collabEndpoint=wss://yjsdemo.fly.dev


BsonDocumentCollection

Hello,
how to convert BsonDocumentCollection to LiteDB.LiteCollection
Thank you.

Hi @pazicb, can you write your code? I dont understand your problem

Hello,
I use LINQPad 5 and driver litedbpad, which returns BsonDocumentCollection, I have a class and I would like to convert BsonDocumentCollection to LiteDB.LiteCollection.
So I would not have to write AllCustomers.OrderBy (x => x["name"]) but AllCustomers.OrderBy (x => x.name).

Hello,
I would simply need a function
LiteCollection=Function(BsonDocumentCollection)

Sorry @pazicb, I never used LINQPad. I think (based only in your example) that LINQPad driver uses only BsonDocument (an generic way to represent an document) and not final POCO class (that your program use). LiteDB convert POCO classes into BsonDocument using BsonMapper class, but I don't know if LINQPad driver use this mapper.

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!


Abnormal CPU usage

I have a few traces, but not sure how useful they are:

Output of code --status:

With Prisma Insider v7.0.3:

Version:          Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:09:08.021Z)
OS Version:       Darwin x64 19.6.0
CPUs:             Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)
Memory (System):  16.00GB (1.12GB free)
Load (avg):       4, 5, 3
VM:               0%
Screen Reader:    no
Process Argv:     --inspect-extensions=9993
GPU Status:       2d_canvas:                     enabled
                  flash_3d:                      enabled
                  flash_stage3d:                 enabled
                  flash_stage3d_baseline:        enabled
                  gpu_compositing:               enabled
                  metal:                         disabled_off
                  multiple_raster_threads:       enabled_on
                  oop_rasterization:             disabled_off
                  protected_video_decode:        unavailable_off
                  rasterization:                 enabled
                  skia_renderer:                 disabled_off_ok
                  video_decode:                  enabled
                  viz_display_compositor:        enabled_on
                  viz_hit_test_surface_layer:    disabled_off_ok
                  webgl:                         enabled
                  webgl2:                        enabled
CPU %	Mem MB	   PID	Process
0	    98	 47408	code main
0	    66	 47414	   gpu-process
0	    16	 47417	   utility
0	   131	 47435	   shared-process
0	     0	 47717	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0	   295	 47524	   window (schema.prisma — studio)
262	   524	 47525	     extensionHost
0	    82	 47529	       electron_node tsserver.js
0	   131	 47530	       electron_node tsserver.js
0	    82	 47536	         electron_node typingsInstaller.js typesMap.js
0	    33	 47531	       electron_node cli.js
0	    49	 47532	       electron_node server.js
0	    33	 47526	     watcherService
0	    33	 47528	     searchService
Workspace Stats:
|  Window (schema.prisma — studio)
|    Folder (studio): 921 files
|      File types: ts(233) svg(93) js(89) tsx(74) scss(72) map(55) json(34)
|                  DS_Store(31) sh(24) html(16)
|      Conf files: package.json(10) tsconfig.json(6) github-actions(3)
|                  project.json(1) webpack.config.js(1)

With Prisma (Stable?) v2.6.1:

Version:          Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:09:08.021Z)
OS Version:       Darwin x64 19.6.0
CPUs:             Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)
Memory (System):  16.00GB (1.18GB free)
Load (avg):       4, 4, 4
VM:               0%
Screen Reader:    no
Process Argv:     --inspect-extensions=9993
GPU Status:       2d_canvas:                     enabled
                  flash_3d:                      enabled
                  flash_stage3d:                 enabled
                  flash_stage3d_baseline:        enabled
                  gpu_compositing:               enabled
                  metal:                         disabled_off
                  multiple_raster_threads:       enabled_on
                  oop_rasterization:             disabled_off
                  protected_video_decode:        unavailable_off
                  rasterization:                 enabled
                  skia_renderer:                 disabled_off_ok
                  video_decode:                  enabled
                  viz_display_compositor:        enabled_on
                  viz_hit_test_surface_layer:    disabled_off_ok
                  webgl:                         enabled
                  webgl2:                        enabled
CPU %	Mem MB	   PID	Process
0	    98	 47408	code main
0	    66	 47414	   gpu-process
0	    16	 47417	   utility
0	   131	 47435	   shared-process
0	     0	 47789	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
46	   295	 47740	   window (schema.prisma — studio)
209	   541	 47743	     extensionHost
0	    82	 47748	       electron_node tsserver.js
0	   147	 47749	       electron_node tsserver.js
0	    82	 47755	         electron_node typingsInstaller.js typesMap.js
0	    33	 47751	       electron_node cli.js
0	    49	 47752	       electron_node server.js
0	    33	 47744	     watcherService
0	    33	 47747	     searchService
Workspace Stats:
|  Window (schema.prisma — studio)
|    Folder (studio): 921 files
|      File types: ts(233) svg(93) js(89) tsx(74) scss(72) map(55) json(34)
|                  DS_Store(31) sh(24) html(16)
|      Conf files: package.json(10) tsconfig.json(6) github-actions(3)
|                  project.json(1) webpack.config.js(1)

Without any Prisma Extension

Version:          Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:09:08.021Z)
OS Version:       Darwin x64 19.6.0
CPUs:             Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)
Memory (System):  16.00GB (1.56GB free)
Load (avg):       3, 4, 3
VM:               0%
Screen Reader:    no
Process Argv:     --inspect-extensions=9993
GPU Status:       2d_canvas:                     enabled
                  flash_3d:                      enabled
                  flash_stage3d:                 enabled
                  flash_stage3d_baseline:        enabled
                  gpu_compositing:               enabled
                  metal:                         disabled_off
                  multiple_raster_threads:       enabled_on
                  oop_rasterization:             disabled_off
                  protected_video_decode:        unavailable_off
                  rasterization:                 enabled
                  skia_renderer:                 disabled_off_ok
                  video_decode:                  enabled
                  viz_display_compositor:        enabled_on
                  viz_hit_test_surface_layer:    disabled_off_ok
                  webgl:                         enabled
                  webgl2:                        enabled
CPU %	Mem MB	   PID	Process
0	    98	 47408	code main
0	    66	 47414	   gpu-process
0	    16	 47417	   utility
0	   131	 47435	   shared-process
0	     0	 47832	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0	   279	 47799	   window (schema.prisma — studio)
0	    98	 47800	     extensionHost
0	    82	 47801	       electron_node tsserver.js
0	   131	 47802	       electron_node tsserver.js
0	    82	 47806	         electron_node typingsInstaller.js typesMap.js
0	    49	 47804	       electron_node server.js
0	    33	 47805	     searchService
0	    33	 47809	     watcherService
Workspace Stats:
|  Window (schema.prisma — studio)
|    Folder (studio): 921 files
|      File types: ts(233) svg(93) js(89) tsx(74) scss(72) map(55) json(34)
|                  DS_Store(31) sh(24) html(16)
|      Conf files: package.json(10) tsconfig.json(6) github-actions(3)
|                  project.json(1) webpack.config.js(1)

Notable difference is the CPU usage by extensionHost.

Profiling info (from VSCode) (with Prisma Insider v7.0.3):
CPU-20200903T140515.170Z.cpuprofile.txt

I've been following this guide for this information: https://github.com/Microsoft/vscode/wiki/Performance-Issues
Also note that there isn't one single action that causes the slowdown, just having the extension enabled seems to be enough.
If you need any more info, please let me know!

Possibly the file watcher to get around the hanging types problem?

Same issue here
Using version 2.5.1, everything is fine.

Background
I am noticing the same issue with 2.6.2, 2.6.1 and 2.6.0.
Took me forever to hunt down which extension was causing the issue.
I believe this is also the reason my extensions/vs code have been crashing when left open for a long time (like overnight)
Debugging
I have traced the issue back to here.
https://github.com/prisma/language-tools/blob/5cef1e72ffb8c6addd052fb66d69daa865485535/packages/vscode/src/extension.ts#L70
Without this line the high CPU issue does not occur.
This line was introduced in this commit.
https://github.com/prisma/language-tools/commit/2979552ee371085c645ece28f857eada2f71959b
When logging the watcher it shows that usePolling is enabled with an interval of 100.
This is because internally to chokidar it checks to see if fsevents is installed dynamically using require() (as fsevents is an optional dependency) and in this case fsevents is not a dependency of the prisma language service.
Summary
The issue is because chokidar is polling because fsevents is not a dependency. The easy solution is to add fsevents as a dependency however I am not sure if fsevents works in all environments (like Windows) as chokidar details in their documentation that useFsEvents is only the default on macOS. It may be a good idea to reduce the interval to avoid issues on other platforms or find another solution rather then polling.
Additional problems
I have noticed in the latest release that the TS Sever will spam restart when running ngcc in a project with the Prisma extension installed and a prisma.schema file open. I would greatly appreciate it if this could be avoided.

@wSedlacek Thank you for looking into this already! We have confirmed this issue and will fix it right away.

This issue seems to be reoccurring in version v3.14.0 (the latest version) on MacOS.  The fix mentioned here (yarn add fsevents) also appears to solve the problem.

Issue still exists on:
Prisma Extension v4.2.0

VSCode: 1.70.2
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.6.0

The workaround works though:
cd ~/.vscode/extensions/prisma.prisma-4.2.0
yarn add fsevents

The workaround works though:

It needs to be applied EVERY time you upgrade Prisma 🙄... oh well

Hi there! @okomarov @andrewlague @ralvs @wSedlacek
I created a PR to fix the file watcher issue, I'm happy to report that on my computer (macOS m1) it's now fixed. (CPU goes from ~100% previously to 0%)
Could you confirm it's also fixed for you as well?
Follow these instructions
First, confirm that the CPU usage is high using the Prisma extension from the VS Code marketplace

Open your project using Prisma
If you disabled the Prisma File Watcher functionality, enable it again from the command palette:

Open the schema.prisma file from your project
Use "Open Process Explorer" from VS Code' menu or open the OS Activity monitor

Note / screenshot the CPU usage for the extension host above the Prisma extension process for the explorer or for the Activity Monitor, the Code Helper (Renderer) value and share it at the end

Second, confirm that with the new extension the CPU usage is low using a special build from my PR
Note: only the file watcher logic was changed.

Uninstall any Prisma extension installed (uninstall is preferred as only disabling might interfere in some ways)
Download https://github.com/prisma/language-tools/blob/artifacts/pull-request-artifacts/pr1243-prisma.vsix?raw=true
Click "Install from VSIX" from this button (screenshot) or command palette and select the pr1243-prisma.vsix file

Restart the VS Code application
Open the schema.prisma file from your project
Use "Open Process Explorer" from VS Code' menu or open the OS Activity monitor

Note / screenshot the CPU usage for the extension host above the Prisma extension process for the explorer or for the Activity Monitor, the Code Helper (Renderer) value and share it at the end

Third, if you have a TypeScript project, confirm that the file watcher works and that the types are refreshed

Open a TypeScript file from your project where you have Prisma Client queries like await prisma.user.findMany()
Open the schema.prisma file from your project
Both should have no errors
Edit the schema.prisma file and delete all the models (only keep the datasource & generator blocks)
Run npx prisma generate
In your TypeScript file, you should now instantly see a Type Error that should look like the following

Undo the changes in your schema.prisma
Run npx prisma generate
The Type Error(s) in the TypeScript file should be gone now

Please share something like the following:

Screenshot before showing ~100% CPU usage

Screenshot after showing ~0% CPU usage

Current extension: screenshot showing ~91% CPU (Note: CPU is only reported on the aggregated top line for some reason)

Using pr1243-prisma.vsix, screenshot after showing ~0% CPU usage 🎊

The typings were updated successfully after npx prisma generate, a Type Error was visible ✅

Thank you in advance 💚
Note: I'm waiting for some feedback before we switch to this new low CPU file watcher in a stable release on VS Code marketplace.

@Jolg42 I am unable to reproduce the high CPU issue on prisma 4.3.1 and the corresponding extension.

@Jolg42 Hi, same here, it's all good.
I went from 161% CPU to 0% and everything refreshes as expected.

Thanks for the feedback 💚
The fix is now in the latest 4.4.0 version on the marketplace https://marketplace.visualstudio.com/items?itemName=Prisma.prisma 🎊


findFirstVisibleMonth().month returns startMonth value when hasBoundaries==false.

Hi @kizitonwose,
I have an issue that findFirstVisibleMonth() in unbounded mode (1 week style) is always returns CalendarMonth with yearMonth set to the first month in all months range.
I found the source of this at https://github.com/kizitonwose/CalendarView/blob/38983c8d30d1245e4af44cec22316235f9c2c541/library/src/main/java/com/kizitonwose/calendarview/model/MonthConfig.kt#L168
Could you please tell me is it intentionally or I can create PR with the following change?:
CalendarMonth(
  monthWeeks.first().first().date.yearMonth, // First day found in weeks determines the month.
  monthWeeks,
  calendarMonths.size,
  calMonthsCount
)

It will be much more convenient for use I think. And findFirstVisibleMonth().month will return the closer possible result to what it name says.
What you think?

This is intentional and mentioned in the Readme. The reason is that while the first day could determine the month in some cases, there could be multiple months sometimes so a more correct implementation when hasBoundaries = false would be an array of months.

Ok I got it, thanks! But it was really painful to discover it in the hard way. I think I'm not the one not reading the readme in front :)
I think it would be great to add this explanation in the doc of the findFirstVisibleMont() and the MonthScrollListener.

I even think maybe CalendarMonth can be a CalendarPeriod with isFullMonth method. It will be closer to the truth because in many cases we don't have full month in CalendarMonth so it is rather period than month.
Thinking out loud. I know how hard to maintain the library is ;)


Support for Gradle 3/4

Hi
Are there any plans to support current Gradle version?
Best regards,
Seweryn

I must admit I did not test with newer Gradle versions. Mainly because in the projects where I use it, it does not really matter (and I did not do any new OSGi projects for quite some time).
When using it on current Gradle versions, what are the kind of issues you see?
Is it incompatible because of (internal) API changes?

Yes, it's problem with API changes.
  > Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.

AFAIK support for custom clean tasks has been removed in Gradle 3.0

I fixed these issues. Sending more pull requests today :-)
@stempler You can reproduce this issue when applying the java plugin or other plugins derived from the BasePlugin.


[spirv] Provide same entry point list in variants when linking

Note that at runtime, for a particular executable, only one variant of it will be loaded. So, all variants of an executable are expected to provide the exact same set of entry points; this way we can guarantee no matter which variant is chosen, we have all entry points to call into. The same entry point in different variants may have different target requirements though.
The input to the linking stage are a collection of executables, each may have multiple variants, but only ever provide one entry point. Together with the above restriction, we can link two executables if and only if their variants have the exact same set of target requirements. Under such circumstances, we can make sure for a particular target requirement (loaded as one variant during runtime), we can provide all entry points.

Hey @benvanik, I thought I understand what you meant but it ends up I wasn't.. Sigh; sorry about it. So this should be a proper fix now to fix the issue seen on https://github.com/openxla/iree/pull/15888#issuecomment-1853102882.

@benvanik: a kind ping on this. :)


CDAP-7182 Document using cdap script

Updated docs to use the new unified cdap scripts.
sed -i \
    -e 's#cdap-cli.sh#cdap cli#g' \
    -e 's#cdap.sh#cdap sdk#g' \
    -e 's#cdap.bat#cdap.bat sdk#g' \
    -e 's#cdap-cli.bat#cdap.bat cli#g' \
    */*.rst

This assumes that caskdata/cdap#6774 has been merged.

One other (quick change): update the copyrights to "-2016" in these four files, if they aren't already. Aside from that, LGTM.


Feat: Detect if a Next.js project is running on the specified port before opening a tunnel

Fixes #210
/claim #210
Detect if a Next.js project is running on the specified port before opening a tunnel

@ericallam I have done the changes, but not sure how to test it.
What i'm doing right now?
Start trigger app and don't start the nextjs app, then it should show in terminal right? Or I've misunderstood the issue?

Also, it would be amazing to get the above instructions added to the CONTRIBUTING.md guide under a section towards the end called something like "Testing CLI changes". If you can do this afterwards in a separate PR I'll definitely tip you handsomely 👍

Oh, and don't forget to cleanup and delete that temporary Next.js project before committing anything

Okay great! Will also add to  CONTRIBUTING.md in the next pr 👍

Tested the changes and made some changes. Working fine 👍
Next, will raise a pr adding the above things you told in CONTRIBUTING.md

Okay, now its working, no idea what the issue was 😅

I just realized, this might cause a race-condition when using something like the concurrently package to run both the Next.js dev server and the @trigger.dev/cli dev command at the same time, like so:

@ericallam I tried this, the dev command seems to be working fine. It didn't fail.

Awesome! Can you add a changeset to this PR for @trigger.dev/cli?

Just added it


Launcher Crashes when I hit the play button.

Describe the bug
A clear and concise description of what the bug is.
Everytime I hit the play button is does the "preparing" sequence, then crashes with Exit Code:0 I have looked into the crash report and it says a fatal error has happened, in this report it says theres more than 5-10 minecrafts open, when  I check my task manager there isnt any going on at that point in time. I have tried restarting my computer, deleting/reinstalling minecraft. I have tried every option so I have decided to reach out to MoJang themselves to figure out this problem, my tag is Row_TheThird, if you need to contact me (Via Discord) my tag is Phil moment#1822
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Expected for the game to start up.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]

Browser [e.g. chrome, safari] Google

Version [e.g. 22] Newest Version/1.6.5/1.0 for mods, which downloaded after the crashes started happening, trying to get in minecraft via mods.

OS & version [e.g. Windows 10, 1822]: Windows 10

Browser & version [e.g. Edge, 91.0.864.48]:
Smartphone (please complete the following information):

Device: [e.g. iPhone6]

OS: [e.g. iOS8.1]

Browser [e.g. stock browser, safari]

Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Rowlol  Are you able to submit this issue over at https://bugs.mojang.com/projects/MC/issues/ - the Mojang folks will take the first pass at Triage :-)

Hi @Rowlol  - How did you get on?  Is there a link to the issue you can post back here?


fix deprecations warnings (#5857)

Pull request opened by the merge tool on behalf of #5857

Merged in 2f7964a0137f6aa42f5bb086aa79ad86b1e028a4


Thumbnails are not loading

Thumbnails are not loading. If I open a directory that I have not opened before, I just see a bunch of "fly" icons (or "bomb" icons in the latest version), but the thumbnails are not showing up. If I click on an image, it opens up fine in darkroom mode. After that, a thumbnail for this particular image will appear in lighttable mode too. If I open a directory that I opened in vkdt before, thumbnails show up fine.
I tried bisecting, and the first commit where the problem appears first seems to be 5a9ddaac16e7e9771e9bd0db1fea6a57cf962cc9
I tried running with -d all and in the console I see repeated messages like (this is with the latest commit 5739d25c5e582ac3f31651270514e4e5ff3e4799 )
[ERR] module dn2 has no connectors!
[gui] glfwGetVersionString() : 3.3.6 X11 GLX EGL OSMesa clock_gettime evdev shared
[gui] monitor [0] DisplayPort-0 at 0 0
[gui] vk extension required by GLFW:
[gui]   VK_KHR_surface
[gui]   VK_KHR_xcb_surface
[qvk] dev 0: vendorid 0x1002
[qvk] dev 0: AMD RADV RENOIR
[qvk] max number of allocations -1
[qvk] max image allocation size 16384 x 16384
[qvk] max uniform buffer range<PHONE_NUMBER>
[qvk] dev 1: vendorid 0x10005
[qvk] dev 1: llvmpipe (LLVM 13.0.1, 256 bits)
[qvk] max number of allocations -1
[qvk] max image allocation size 16384 x 16384
[qvk] max uniform buffer range 65536
[ERR] device does not support requested feature shaderSampledImageArrayDynamicIndexing, trying anyways
[ERR] device does not support requested feature shaderStorageImageArrayDynamicIndexing, trying anyways
[ERR] device does not support requested feature inheritedQueries, trying anyways
[qvk] picked device 0 without ray tracing support
[qvk] num queue families: 2
[qvk] available surface formats:
[qvk] B8G8R8A8_SRGB
[qvk] B8G8R8A8_UNORM
[qvk] colour space: 0
[gui] no joysticks found
[gui] no display profile file display.DisplayPort-0, using sRGB!
[gui] no display profile file display.DisplayPort-0, using sRGB!
[qvk] available surface formats:
[qvk] B8G8R8A8_SRGB
[qvk] B8G8R8A8_UNORM
[qvk] colour space: 0
[db] allocating 1024.0 MB for thumbnails
[perf] upload source total:	   0.014 ms
[perf] upload for raytrace:	   0.229 ms
[mem] images : peak rss 0.00390625 MB vmsize 0.00390625 MB
[mem] staging: peak rss 0.000244141 MB vmsize 0.000244141 MB
[perf] record cmd buffer:	   0.329 ms
[perf] i-bc1    main    :	   0.004 ms
[perf] total time:	   0.004 ms
[perf] [thm] ran graph in   0ms
[perf] upload source total:	   0.011 ms
[perf] upload for raytrace:	   0.007 ms
[mem] images : peak rss 0.00390625 MB vmsize 0.00390625 MB
[mem] staging: peak rss 0.000244141 MB vmsize 0.000244141 MB
[perf] record cmd buffer:	   0.051 ms
[perf] i-bc1    main    :	   0.003 ms
[perf] total time:	   0.003 ms
[perf] [thm] ran graph in   0ms
[ERR] could not open directory '(null)'!
[ERR] [thm] no images in list!
[qvk] available surface formats:
[qvk] B8G8R8A8_SRGB
[qvk] B8G8R8A8_UNORM
[qvk] colour space: 0
[perf] upload source total:	   0.053 ms
[perf] upload for raytrace:	   0.024 ms
[mem] images : peak rss 0.00390625 MB vmsize 0.00390625 MB
[mem] staging: peak rss 0.000244141 MB vmsize 0.000244141 MB
[perf] record cmd buffer:	   0.180 ms
[perf] i-bc1    main    :	   0.015 ms
[perf] total time:	   0.015 ms
[perf] [thm] ran graph in   0ms
[perf] upload source total:	   0.046 ms
[perf] upload for raytrace:	   0.015 ms
[mem] images : peak rss 0.00390625 MB vmsize 0.00390625 MB
[mem] staging: peak rss 0.000244141 MB vmsize 0.000244141 MB
[perf] record cmd buffer:	   0.136 ms
[perf] i-bc1    main    :	   0.013 ms
[perf] total time:	   0.013 ms
[perf] [thm] ran graph in   0ms

and then repeating similar messages.

thanks for reporting.
how did you open the directory? from the file chooser in the gui or by passing the directory name to the command line?
(both works here)
in any case
[ERR] could not open directory '(null)'!
does not sound encouraging :)
anything special about your file system or directory setup? i'm calling realpath to resolve symlinks, maybe you're using them in a way i didn't anticipate?
the commit about timings looks very unrelated indeed. did you make clean recently? maybe some old residual install files/dso?

I did make clean and deleted thumbnail cache and now it seems to work.
By the way, that error about directory being null appears immediately upon opening vkdt without specifying directory on command line.

hm i'm suspecting it's this line of code.
do you have ~/Pictures and $HOME in your environment?

The problem is actually on the next line. I was launching vkdt with ./vkdt -d all which means argc > 1, and it selected the other branch. If I launch with just ./vkdt this error message does not appear and the filename refers to $HOME/Pictures as expected.

closing because i think it's fixed. please reopen if not.


Remove spaces around strict_types=1

This is the accepted Drupal coding standard https://www.drupal.org/node/3402544

Duplicate of #77


alluxio hangs when listing ceph s3 objects

Alluxio Version:
What version of Alluxio are you using?
v2.4 stable
Describe the bug
I started alluxio on local machine following this guide https://docs.alluxio.io/os/user/stable/en/deploy/Running-Alluxio-Locally.html, and I mount a ceph s3 bucket to alluxio path following this guide:
https://docs.alluxio.io/os/user/stable/en/ufs/Ceph.html
./bin/alluxio fs mount /training-data/fs-test s3://mlpipeline-test/mlpipeline-test/fs-test/  \
	--option aws.accessKeyId=xxxx  \
	--option aws.secretKey=xxxx \
	--option alluxio.underfs.s3.endpoint=http://xxxx  \
	--option alluxio.underfs.s3.signer.algorithm=S3SignerType \
	--option alluxio.underfs.s3.disable.dns.buckets=true

After mount successfully, it hangs when try to list files under alluxio path:
bin/alluxio fs ls /training-data/fs-test/
Actually there are many(10k+) objects under prefix s3://mlpipeline-test/mlpipeline-test/fs-test/, so I am wondering what is wrong here.

the rados gateway has following logs:
QUERY_STRINGs are same in different queries.
2021-03-04 14:14:29.824514 7f9e269cb700 20 QUERY_STRING=list-type=2&continuation-token=mlpipeline-test%2Ffs-test%2F1thread-16MB_0_1897&delimiter=%2F&max-keys=1000&prefix=mlpipeline-test%2Ffs-test%2F&fetch-owner=false
...
2021-03-04 14:14:29.904819 7f9dc4106700 20 QUERY_STRING=list-type=2&continuation-token=mlpipeline-test%2Ffs-test%2F1thread-16MB_0_1897&delimiter=%2F&max-keys=1000&prefix=mlpipeline-test%2Ffs-test%2F&fetch-owner=false
...
2021-03-04 14:14:30.007366 7f9d9d8b9700 20 QUERY_STRING=list-type=2&continuation-token=mlpipeline-test%2Ffs-test%2F1thread-16MB_0_1897&delimiter=%2F&max-keys=1000&prefix=mlpipeline-test%2Ffs-test%2F&fetch-owner=false
...
2021-03-04 14:14:30.068046 7f9e269cb700 20 QUERY_STRING=list-type=2&continuation-token=mlpipeline-test%2Ffs-test%2F1thread-16MB_0_1897&delimiter=%2F&max-keys=1000&prefix=mlpipeline-test%2Ffs-test%2F&fetch-owner=false

@gtarcoder Thanks for reporting this issue. It looks like it may be due to the pagination portion of the code path being executed. Is there a limit after which you see this issue (1k, 10k files)?
Is it possible that it is just very slow?

@calvinjia  I tested limit of the file count, found that the limit is 999. If the file count is larger than 999, it hangs when list objects otherwise it lists successfully.

Got it, it sounds like this is a bug when we need to use the paginated listing. Thanks for verifying!

Got it, it sounds like this is a bug when we need to use the paginated listing. Thanks for verifying!

hi @calvinjia  ，wondering when will this bug be fixed :)

@gtarcoder Unfortunately I don't think anyone is working on this at the moment. If you could submit a patch that would be great!

@gtarcoder Unfortunately I don't think anyone is working on this at the moment. If you could submit a patch that would be great!
@calvinjia  got it, I will work on it in spare time.

Will close it for now, feel free to reopen it and contact us if this is still valid.


connector: support protobuf map type in source

Prior to https://github.com/risingwavelabs/risingwave/issues/12126, a map field is accepted and map to struct<key, value>[] in RisingWave, which might not be expected as suggested by @neverchanje so disabled there.
JSONB might be another good candidate, which supports efficient indexing.

What do you think? cc @xiangjinwu @tabVersion

https://protobuf.dev/programming-guides/proto3/#maps
I would like to list 4 candidate solutions for map<K, V>:

(A) struct<key K, value V>[]
(B) jsonb
(C) hstore
(D) map<K, V>

I will focus on the downside of each approach:

struct[] does not support efficient lookup natively, as discussed above. One possible workaround is to sort by key during parsing, and provide a dedicated function to do binary search.
jsonb means everything inside would also be jsonb rather than strongly typed. Proto allows K to be integral types but jsonb requires keys to be string. Proto requires V to be the same for all kv pairs but jsonb allows some to be jsonb number and some to be jsonb string. In addition jsonb does not have good support of types likes int64 / bytea / timestamptz.
hstore is the official PostgreSQL extension for kv pairs. However it is not generic and requires both K and V to be string.
map<K, V> means we add a new dedicated type, because none of the options above maps perfectly. This takes more time to implement, but has the best compatibility with similar types in protobuf, avro, arrow, DuckDB, Flink, ...

I would like to list 4 candidate solutions for map<K, V>:

Thanks for your detailed exploration! Personally, I would stand for struct[] or map<K, V>. Some ideas:

It's inevitable to introduce a (series of?) indexing function, no matter which type it is.
Assuming the maps ingested from external sources are not likely to be mutated later, simply sorting all entries in the struct[] and mark the sorted flag will enable efficient indexing.

agree with @BugenZhao, struct[] might be the most efficient way to support since there are no native type for this in SQL.

-1 for struct<key K, value V>[] because it lost the semantics of map.
map is built for mapping i.e. look-up. It's important to make data type "lossless", but it's more important to keep it as original semantics.
Here I prefer jsonb. Obviously, the idea map in protobuf is brought from semi-structured format, while in PG, semi-structure are mostly handled by JSONB

It's okay to make it jsonb if we find most of the use cases are map<string, string>. However, it's also possible for the value to be a complex message. In this case we need another set of type mappings from protobuf to JSON, in additional to the original protobuf to RisingWave data type.

In this case we need another set of type mappings from protobuf to JSON, in additional to the original protobuf to RisingWave data type.

It's inevitable since we have already supported Any.

Thinking from the users' perspective, if we do really use struct<key K, value V>[] for map, at least we need to provide functions to

lookup value by key
check whether a key exist
update or delete a field

Adding up together, I would rather introduce a new map data type in RW.

It's inevitable to introduce a (series of?) indexing function, no matter which type it is.

Putting development time aside, a native map<K, V> type is the best solution. So these additional struct[] functions could support both struct[] and map<K, V>.
As for jsonb, my biggest concern is that it makes all inner content jsonb, losing "the semantics of" type definition as well. For example, given a proto map<string, Location> mapped to jsonb, we would need to write col1 -> 'SFO' ->> 'latitude' rather than (lookup(col1, 'SFO')).latitude.

we need another set of type mappings from protobuf to JSON

This is not a big deal. Proto3 has an official definition of how proto maps to JSON. Note that int64 maps to string.

As for jsonb, my biggest concern is that it makes all inner content jsonb, losing "the semantics of" type definition as well. For example, given a proto map<string, Location> mapped to jsonb, we would need to write col1 -> 'SFO' ->> 'latitude' rather than (lookup(col1, 'SFO')).latitude.

Yeah, I understand this, and I guess it's also the major concern of all of us. For me, because Any has already broken this, I feel acceptable.

google.protobuf.Any was intentionally a dynamic type, but map could be a static type. But yes, sounds more acceptable before we have a dedicated map type.
Btw do we use the official proto3 json mapping in google.protobuf.Any? Is an int64 in any message represented by json string or json number?

As for jsonb, my biggest concern is that it makes all inner content jsonb, losing "the semantics of" type definition as well. For example, given a proto map<string, Location> mapped to jsonb, we would need to write col1 -> 'SFO' ->> 'latitude' rather than (lookup(col1, 'SFO')).latitude.

Yeah, I understand this, and I guess it's also the major concern of all of us. For me, because Any has already broken this, I feel acceptable.

So the conclusion is mapping map to jsonb in spite of type issues (int64, timestamptz, etc.). We may reuse the any parsing logic for this.

Btw do we use the official proto3 json mapping in google.protobuf.Any? Is an int64 in any message represented by json string or json number?

IIRC, Any type can only point to a message rather than primitive types.

Btw do we use the official proto3 json mapping in google.protobuf.Any? Is an int64 in any message represented by json string or json number?

IIRC, Any type can only point to a message rather than primitive types.

I guess @xiangjinwu means an int64 inside a message in an Any

My concernings for a native map type is:

Introduction of the data type itself is simple. However, there seems to be a considerable amount of work in the parser and expressions to make it first-class, just like other semi-structured types.
We need to carefully tune the performance, apply the knowledge on the JSONB and the List type once again.
Such challenges would we have to face, the Protobuf seems to be the only usage. So the test coverage could be limited as well.

I just realized that many systems introduced dedicated map type, including

ClickHouse
DuckDB
Hive as well as many big-data systems compatible with Hive SQL e.g. Flink & Spark
Materialize

Perhaps Postgres is the special one... Shall we add support for map as well?

So we have a new usage now #14215 😄

Concern of using jsonb in that issue for kafka headers is the missing of native bytea/bytes support. Or actually there are multiple ways to represent 8 bytes[0x61 0x30 0x00 0x20 0xf0 0x9f 0x8c 0x8a] in json as a string:

12-byte "YTAAIPCfjIo=" (base64)
16-byte "61300020f09f8c8a" (hex)
18-byte "\\x61300020f09f8c8a" (hex with prefix \x, pgwire text format)
23-byte "a0\\000 \\360\\237\\214\\212" (escape) or 11-byte "a0\\000 \ud83c\udf0a" or 11-byte "a0\\000 🌊"

It is also easy to convert from these forms into a bytea in RisingWave today:
with t(headers) as (select '{
  "a": "YTAAIPCfjIo=",
  "b": "61300020f09f8c8a",
  "c": "\\x61300020f09f8c8a",
  "d0": "a0\\000 \\360\\237\\214\\212",
  "d1": "a0\\000 \ud83c\udf0a",
  "d2": "a0\\000 🌊"
}'::jsonb) select
  octet_length(headers ->> 'a'), decode(headers ->> 'a', 'base64'),
  octet_length(headers ->> 'b'), decode(headers ->> 'b', 'hex'),
  octet_length(headers ->> 'c'), (headers ->> 'c')::bytea,            -- this format can just use cast
  octet_length(headers ->> 'd0'), decode(headers ->> 'd0', 'escape'), -- this can both decode or cast
  octet_length(headers ->> 'd0'), (headers ->> 'd0')::bytea,
  octet_length(headers ->> 'd1'), decode(headers ->> 'd1', 'escape'),
  octet_length(headers ->> 'd2'), (headers ->> 'd2')::bytea
from t;

My thoughts:

Yes map is popular in many systems
jsonb can also work as kafka headers to include bytes before map is ready, but it is easier to stick to one encoding rather than exposing an option to choose.
If we anticipate users would always decode to bytea first, base64 is the most compact.
If we anticipate users would mostly include ascii string, escape is more human readable without decoding. And it can be decoded either using a function or a cast.
If we anticipate users would like to inspect (but not pass as function arg, which requires decoding) hex without decoding, for example integers or raw-uuid or raw-ipv6, hex shall be chosen.

we need another set of type mappings from protobuf to JSON

This is not a big deal. Proto3 has an official definition of how proto maps to JSON. But do note that int64 maps to string.

To elaborate this point a bit: it's actually a big deal, and another big drawback of JSON -- It lacks native support for a lot of types, and thus leaving there many choices of encoding to JSON and decoding from JSON.
The encoding problem include:

int64: Actually JSON spec doesn't accept it.

Some JSON libraries (serde_json, jsonbb) allow it, but some don't
protobuf encodes to string. RisingWave sink encodes to number (so when it overflows, it will be undefined behavior, decided by the downstream system).

bytes: As mentioned by xiangjin above, there are many possible ways.

Different cases include:

For decoding from external JSON into RisingWave data(source)

We have e.g., timestamptz.handling.mode https://docs.risingwave.com/docs/dev/supported-sources-and-formats/#general-parameters-for-supported-formats
It seems we don't have a doc for type mapping
This case is relatively simple.

For encoding RisingWave data into external JSON (sink)

We also have timestamptz.handling.mode
Doc for type mapping https://docs.risingwave.com/docs/dev/create-sink-kafka/#data-type-mapping---risingwave-and-debezium-json Note that it differs from protobuf json encoding.

For encoding external data into RisingWave JSON (source, this issue):

A new scenario. This case is a little special. It's like sink (both do encoding), but we might want different defaults. e.g., if for ease of handling in RisingWave, we might want to choose \\x style encoding for bytes. But if for ease of handling in downstream, \\x is not suitable, because it's PG-specific.
Besides, introducing options for this case will become awkward: We already have timestamptz.handling.mode for decoding JSON in source, what should we have for similar thing but encoding JSON in source?


What is devshell.packages for?

As in the title.
Setting
devshells.my-shell.devshell.packages = with pkgs; [ my-pkg ];

doesn't make "${my-pkg}/bin/my-pkg" available in shell under my-pkg. What does this option do and what is it for?

Stumbled upon the same issue...  🤔


[hyperscan] build failure

Host Environment

OS: macOS 10.15
Compiler: Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install hyperscan
Failure logs
vcpkg install hyperscan
The following packages will be built and installed:
    hyperscan[core]:x64-osx
Starting package 1/1: hyperscan:x64-osx
Building package hyperscan[core]:x64-osx...
-- Using cached ~/dev/tools/vcpkg/downloads/intel-hyperscan-v5.1.0.tar.gz
-- Using source at ~/dev/tools/vcpkg/buildtrees/hyperscan/src/v5.1.0-e80f138a71
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Building x64-osx-dbg
-- Building x64-osx-rel
-- Installing: ~/dev/tools/vcpkg/packages/hyperscan_x64-osx/share/hyperscan/copyright
-- Performing post-build validation
/debug/share should not exist. Please reorganize any important files, then use
    file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
Found 1 error(s). Please correct the portfile:
    ~/dev/tools/vcpkg/ports/hyperscan/portfile.cmake
-- Performing post-build validation done
Error: Building package hyperscan:x64-osx failed with: POST_BUILD_CHECKS_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: hyperscan:x64-osx
  Vcpkg version: 2019.09.12-unknownhash

Additional context
It looks like the ${CURRENT_PACKAGES_DIR}/debug/share file should be removed so that hyperscan can pass post-validation. And I followed the instructions to add this line to the hyperscan port and it did work for me.

Hi @niyue thanks for posting this issue and also for your PR.
Since the PR has been merged.
Please update vcpkg and try to use it.


Running  deno run -A -r https://fresh.deno.dev i'm getting a segmentation fault error at the end

New to deno here and wanted to try fresh out.
When running the project creator script I get a segmentation fault error at the end. (see image below)
The folder is created with the project name and has partial content:
components
islands
routes
 static

The script will work in another mac with Sonoma 14.3.1 (not sure if it is related)
Any ideas?
System info
Deno version
deno 1.43.2 (release, aarch64-apple-darwin)
v8 <IP_ADDRESS>
typescript 5.4.5

Mac OS 14.4.1
Deno installed via brew
Error screen grab

Huh, that's very odd. I can reproduce that only with the homebrew build. The official Deno build for mac is fine.