Failed to minify the bundle - Frontend Build step

Our auto-deploys started failing due to an error in the Frontend Build step.
2020-07-23T16:03:08.961Z [INFO]: Creating an optimized production build...
2020-07-23T16:07:07.789Z [INFO]: Failed to compile.
                                 Failed to minify the bundle. Error: static/js/15.9f62c4c6.chunk.js from Terser
                                 Error: Call retries were exceeded
                                 at compiler.run (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/react-scripts/scripts/build.js:196:23)
                                 at finalCallback (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compiler.js:257:39)
                                 at hooks.done.callAsync.err (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compiler.js:273:13)
                                 at AsyncSeriesHook.eval [as callAsync] (eval at create (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
                                 at AsyncSeriesHook.lazyCompileHook (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/Hook.js:154:20)
                                 at onCompiled (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compiler.js:271:21)
                                 at hooks.afterCompile.callAsync.err (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compiler.js:681:15)
                                 at AsyncSeriesHook.eval [as callAsync] (eval at create (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
                                 at AsyncSeriesHook.lazyCompileHook (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/Hook.js:154:20)
                                 at compilation.seal.err (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compiler.js:678:31)
                                 at AsyncSeriesHook.eval [as callAsync] (eval at create (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
                                 at AsyncSeriesHook.lazyCompileHook (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/Hook.js:154:20)
                                 at hooks.optimizeAssets.callAsync.err (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compilation.js:1423:35)
                                 at AsyncSeriesHook.eval [as callAsync] (eval at create (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
                                 at AsyncSeriesHook.lazyCompileHook (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/tapable/lib/Hook.js:154:20)
                                 at hooks.optimizeChunkAssets.callAsync.err (/codebuild/output/src730201856/src/rivial-information-security-center/node_modules/webpack/lib/Compilation.js:1414:32)
                                 Read more here: https://bit.ly/CRA-build-minify

This doesn't seem like a direct issue with Amplify Console, most likely with React: https://github.com/facebook/create-react-app/issues/6336.
This doesn't happen when we build locally, so I'm at a loss. Anyone have any ideas how to fix this? I've tried updating react-scripts, and adding Terser as a devDep but no luck.

Have you tried this? https://github.com/aws-amplify/amplify-console/issues/742

Yeah, this is an issue with the frontend build step. We are thinking we might be using more than the 7GB of RAM that the environment has available. Is there any way to increase that?

#654


[1.3] Vol. II Command processing optimizations in domain.c

Additional porting from 1.2.x
Follows up on pull 191
to match 1.2.x pull 190.

@jfclere ???


Add to read the configure

The dever want to get the configure but the OptionsPageCS not say how to get the configure.
Add the static OptionsPagePackageCS EnsurceOptionsPagePackageCs get the package that can get the configure.

 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.:x: lindexi sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@madskristensen Why close it?

@AlexEyler  Can merge?

Any update?


Improvements to swift-api-dump.py

Add a couple enhancements to swift-api-dump.py:

-swift-version N support
Drop generation of the -always-argument-labels flag; we're past Swift 2's weird rules now
-iframework <path> support

@swift-ci please smoke test and merge

+1


GH-38363: [Release][CI] Omit tests for main/maintenance branches on RC branch

Rationale for this change
Tests of deb package names for the following patterns are only for main/maintenance branches:

dev/release/post-11-bump-versions.sh 14.1.0 15.0.0 (minor release -> major release)
dev/release/post-11-bump-versions.sh 14.0.1 15.0.0 (patch release -> major release)

What changes are included in this PR?
Omit these patterns.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.

Closes: #38363

+1


Types for testslide

Differential Revision: D27302308

Pull Request Test Coverage Report for Build 684802519

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.159%

Totals

Change from base Build 681378799:
0.0%

Covered Lines:
2563

Relevant Lines:
2722

💛  - Coveralls


downloadTaskWithRequest creates a file even in case of error

In case the URL provided to downloadTaskWithRequest does not exist, a file gets created with the error message as the content.
Is there a way to avoid creation of this error file to save some time and space? We can obviously delete these files by checking the error in the completionHandler but it would be good to avoid this unnecessary IO operation.
NSURLSessionDownloadTask *downloadTask = [afUrlSessionManager downloadTaskWithRequest:request progress:nil destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) {
        return destinationUrl;
    } completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {
        NSLog(@"AssetDownloader:Asset downloaded to: %@", [destinationUrl path]);
    }];
    [downloadTask resume];

I think this is the same as #3775 .

@skyline75489 Yes its the same! Thanks for pointing. I think deleting or replacing the files is the best option for now.


Add input checks and nicer error messages

Hi,
I added a lot of input parameter checks, so we get nicer error messages and don't run commands with missing paramters.
I also changed the grep call in destroy, beacuse not the guests where deleted, but the isos with the same name.

Hi,
in the last few days I became a little obsessed with iohyve and changed a lot of thing.
I hope you can take a look at it and tell me what you think about it.

Whoa there. This ballooned into a MASSIVE pull request, and I simply can't merge it all.
Let's try to keep one major change to a pull request. It's easier to test things individually that way.
You can try creating a branch for each feature or fix.
There are many new features, bug fixes, and even a massive shift to libraries in here.
Let's start out with the bug fixes and new features, then talk about the shift to libraries.
I LOVE THE MOTIVATION THOUGH! Keep up the good work! :+1:

Yeah, sorry. Got a bit too big and messy.
I think shifting to libraries would help to have a better overview about the functions and their topic and it would be easier for people to contribute.
I hope you take it into consideration.


Silence pinning errors for variables that are never read

Motivation

Test plan

See included automated tests.

Potentially relevant: #222

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_Qh2hEXXHlgnE21
→ https://go/builds/bui_Qh2hkkbwVqpG1S
→ https://go/builds/bui_Qh2hrWrrjQjcA7

This is way too slow, unfortunately.


python27 is dropped without guards in setup.py

Assuming you are dropping 2.7, then please

See https://packaging.python.org/guides/dropping-older-python-versions/

Your setup.py misses python_requires and incorrectly lists python2.7 in classifiers.

The pre-release should bug out with pip and leave the user with the last good silx for 2.7.
Successfully built silx
Installing collected packages: silx
  Found existing installation: silx 0.11.0
    Uninstalling silx-0.11.0:
      Successfully uninstalled silx-0.11.0
Successfully installed silx-0.13.0b2

(py27_64) C:\Users\wright>python
Python 2.7.15 (default, Jul  2 2019, 00:55:11) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import silx.test
>>> dir(silx.test)
['__authors__', '__builtins__', '__date__', '__doc__', '__file__', '__license__', '__name__', '__package__', '__path__', 'logger', 'logging', 'run_tests', 'suite', 'test_options', 'unittest', 'utils']
>>> silx.test.run_tests()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\miniconda3\envs\py27_64\lib\site-packages\silx\test\__init__.py", line 96, in run_tests
    if not runner.run(suite()).wasSuccessful():
  File "c:\miniconda3\envs\py27_64\lib\site-packages\silx\test\__init__.py", line 63, in suite
    from .test_sx import suite as test_sx_suite
  File "c:\miniconda3\envs\py27_64\lib\site-packages\silx\test\test_sx.py", line 40, in <module>
    from silx.gui.colors import rgba
  File "c:\miniconda3\envs\py27_64\lib\site-packages\silx\gui\colors.py", line 715
    def setGammaNormalizationParameter(self, gamma: float) -> None:
                                                  ^
SyntaxError: invalid syntax

Indeed

Closed by PR #3119 on branch 0.13


adding the same label key twice should error

If I create an object with
labels: {
name="hello",
name="goodbye"
}
The object will be accepted by the apiserver, but the "hello" label will be lost.  This should either join them together, or be an error.  Silently dropping the first is bad news.

Maybe we could do this in the swagger validation pass?

Note that #34407 (sadly) doesn't fix this error for .yaml files, since the YAML conversion doesn't preserve the duplicated key.
I guess we'll need to extend validate to handle streaming YAML too...

I guess we'll need to extend validate to handle streaming YAML too...

client side validation or server side?

client side.


java.io.IOException: Supplied file ... is a not an existing directory!

I see this problem was discussed in several other places, but none of the suggestions from other similar issues worked for me.
I'm hoping someone can help me understand what I'm doing wrong.
The project I'm trying to use this plugin with is a single module one, so with source directory in the root.
Link to the failure:
https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:130
Error stack trace:
java.io.IOException: Supplied file /home/runner/work/spray-json-derived-codecs/spray-json-derived-codecs/target/sonatype-staging/2.3.6 is a not an existing directory!
[131](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:131)
	at org.sonatype.spice.zapper.fs.AbstractDirectory.<init>(AbstractDirectory.java:32)
[132](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:132)
	at org.sonatype.spice.zapper.fs.DirectoryIOSource.<init>(DirectoryIOSource.java:68)
[133](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:133)
	at org.sonatype.spice.zapper.fs.DirectoryIOSource.<init>(DirectoryIOSource.java:59)
[134](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:134)
	at org.sonatype.spice.zapper.fs.DirectoryIOSource.<init>(DirectoryIOSource.java:50)
[135](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:135)
	at xerial.sbt.sonatype.SonatypeClient.$anonfun$uploadBundle$2(SonatypeClient.scala:284)
[136](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:136)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[137](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:137)
	at scala.util.Try$.apply(Try.scala:213)
[138](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:138)
	at wvlet.airframe.control.Retry$RetryContext.runInternal(Retry.scala:268)
[139](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:139)
	at wvlet.airframe.control.Retry$RetryContext.run(Retry.scala:253)
[140](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:140)
	at xerial.sbt.sonatype.SonatypeClient.uploadBundle(SonatypeClient.scala:269)
[141](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:141)
	at xerial.sbt.sonatype.SonatypeService.uploadBundle(SonatypeService.scala:73)
[142](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:142)
	at xerial.sbt.Sonatype$.$anonfun$sonatypeBundleRelease$2(Sonatype.scala:181)
[143](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:143)
	at xerial.sbt.Sonatype$.withSonatypeService(Sonatype.scala:437)
[144](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:144)
	at xerial.sbt.Sonatype$.$anonfun$sonatypeBundleRelease$1(Sonatype.scala:177)
[145](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:145)
	at scala.Option.getOrElse(Option.scala:189)
[146](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:146)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[147](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:147)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[148](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:148)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[149](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:149)
	at java.lang.reflect.Method.invoke(Method.java:498)
[150](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:150)
	at xsbt.boot.Launch$.$anonfun$run$1(Launch.scala:149)
[151](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:151)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:176)
[152](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:152)
	at xsbt.boot.Launch$.run(Launch.scala:149)
[153](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:153)
	at xsbt.boot.Launch$.$anonfun$apply$1(Launch.scala:44)
[154](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:154)
	at xsbt.boot.Launch$.launch(Launch.scala:159)
[155](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:155)
	at xsbt.boot.Launch$.apply(Launch.scala:44)
[156](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:156)
	at xsbt.boot.Launch$.apply(Launch.scala:21)
[157](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:157)
	at xsbt.boot.Boot$.runImpl(Boot.scala:78)
[158](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:158)
	at xsbt.boot.Boot$.run(Boot.scala:73)
[159](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:159)
	at xsbt.boot.Boot$.main(Boot.scala:21)
[160](https://github.com/paoloboni/spray-json-derived-codecs/runs/5640476753?check_suite_focus=true#step:4:160)
	at xsbt.boot.Boot.main(Boot.scala)  - (Sonatype.scala:443)

This is the directory structure I see in target (no sonatype-staging):
target
├── global-logging
├── sbt-sonatype-1180977470
├── scala-2.12
│   ├── api
│   ├── classes
│   ├── resolution-cache
│   ├── sync
│   ├── update
│   └── zinc
├── scala-2.13
│   ├── api
│   ├── classes
│   ├── resolution-cache
│   ├── sync
│   ├── test-classes
│   ├── update
│   └── zinc
├── scala-3.1.1
│   ├── api
│   ├── classes
│   ├── resolution-cache
│   ├── sync
│   ├── update
│   └── zinc
├── streams
│   ├── _global
│   └── compile
└── task-temp-directory

I tried adding skip / publish := true but that didn't help either: https://github.com/paoloboni/spray-json-derived-codecs/runs/5799437213?check_suite_focus=true


Lists of profiled things in documentation

In this spec, in "Profiles" - all classes and profiles in the profile hierarchy are apparently listed, which is unexpected. Only the immediate profiled class/profile should be listed.

At the same time, it would be useful to see the actual class/property at the end of the profiling hierarchy, as a separate item.
If it was an intention to list all the items on the profiling hierarchy (which could be also useful), then it should be displayed in a way that conveys the hierarchy, i.e. not just a list, but maybe > separated inline list? E.g. Dataset (DCAT-DAP) > Dataset (DCAT)

I tried several ways and the following one seemed the least bad to me.


Achu your repository is empty

repo is empty, please fix it

ok nvm now you did something

Closing Issue because reposity is no longer empty


PostgreSQL "findFirst" taking more than 2 seconds using Prisma

Bug description
Hi,
I'm building a simple community-like site with PostgreSQL and Prisma, It's currently running on my localhost. My issue that I tested my API with FindFirst but it took more than 2 seconds. while creating the new model took 2-30ms. There's currently only 2 dummy users in the database.
Here's how I produced my issue. Nothing too crazy.
import { NextFunction, Request, Response } from 'express';
import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();

export default async function (req: Request, res: Response, next: NextFunction) {
    try {
        const { username } = req.body;

        let time = new Date().getTime();

        const foundUser = await prisma.user.findFirst({
            where: {
                username: username.toLowerCase()
            }
        });

        let execTime = new Date().getTime() - time;
        console.log(`Execution time: ${execTime}ms`);

        res.json({
            message: 'OK'
        });
    } catch (err) {
        next(err);
    }
}

Here is my schema.prisma
generator client {
    provider = "prisma-client-js"
}

datasource db {
    provider = "postgresql"
    url      = env("DATABASE_URL")
}

model User {
    id        String    @id @unique @default(cuid())
    username  String    @unique
    password  String
    emails    Email[]
    profile   Profile   @relation(fields: [profileId], references: [id])
    role      Decimal
    createdAt DateTime  @default(now())
    profileId String
}

model Email {
    id            String  @id @unique @default(cuid())
    email_address String  @unique
    is_primary    Boolean @default(false)
    is_verified   Boolean @default(false)
    access_token  String? @unique
    User          User?   @relation(fields: [userId], references: [id])
    userId        String?
}

model Profile {
    id          String  @id @unique @default(cuid())
    googleId    String? @unique
    discordId   BigInt? @unique
    githubId    BigInt? @unique
    youtubeId   String? @unique
    sessionId   String? @unique
    displayName String?
    object_key  String
    avatar_url  String?
    User        User[]
}

Here's the prisma query logs:
prisma:info Starting a postgresql pool with 5 connections.
prisma:query SELECT "public"."User"."id", "public"."User"."username", "public"."User"."password", "public"."User"."role", "public"."User"."createdAt", "public"."User"."profileId" FROM "public"."User" WHERE "public"."User"."username" = $1 LIMIT $2 OFFSET $3
Execution time: 2214ms
prisma:query SELECT "public"."User"."id", "public"."User"."username", "public"."User"."password", "public"."User"."role", "public"."User"."createdAt", "public"."User"."profileId" FROM "public"."User" WHERE "public"."User"."username" = $1 LIMIT $2 OFFSET $3
Execution time: 3622ms

How to reproduce

run a simple hosted postgresql in localhost
use expressjs for the api
use the provided schema and provided code above
see output

Expected behavior
Nothing too crazy, I expected my query to run fast above 2-200ms.
Environment & setup

OS: Windows
Database: PostgreSQL
Node.js version: v16.14.0

Prisma Version
prisma                  : 3.14.0
@prisma/client          : 3.14.0
Current platform        : windows
Query Engine (Node-API) : libquery-engine 2b0c12756921c891fec4f68d9444e18c7d5d4a6a (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 2b0c12756921c891fec4f68d9444e18c7d5d4a6a (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core 2b0c12756921c891fec4f68d9444e18c7d5d4a6a (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt 2b0c12756921c891fec4f68d9444e18c7d5d4a6a (at<EMAIL_ADDRESS>Default Engines Hash    : 2b0c12756921c891fec4f68d9444e18c7d5d4a6a
Studio                  : 0.460.0

Edit
Query: SELECT "public"."User"."id", "public"."User"."username", "public"."User"."password", "public"."User"."role", "public"."User"."createdAt", "public"."User"."profileId" FROM "public"."User" WHERE "public"."User"."username" = $1 LIMIT $2 OFFSET $3
Params: ["dghdfghd",1,0]
Duration: 6ms
Execution time: 2180ms

The query duration took 6ms but somehow the execution time is so slow..?

This shouldn't happen please make sure you are using local database in your database url environment variable

yes, I'm using a localhost database in my .env file, The query seems fast but the prisma promise is taking more time than expected.

Is it possibly because I'm using npx prisma migrate dev

nope this is nothing related to migration, try using raw query like
await prisma.$queryRaw``
and measure the performance

Sorry for the late reply I was away from work, Anyway about the await prisma.$queryRaw the result is the same. The promise is taking 2000+ milliseconds
console.time('signup');
const foundUser = await prisma.$queryRaw`SELECT "public"."User"."id", "public"."User"."username", "public"."User"."password", "public"."User"."role", "public"."User"."createdAt", "public"."User"."profileId" FROM "public"."User" WHERE "public"."User"."username" = ${"dghdfghd"} LIMIT ${1} OFFSET ${0}`
console.timeEnd('signup');
console.log(foundUser);

This looks to me like it is also creating the connection to the database. That is often rather slow unfortunately. Can you run the same query twice and see how long the second one takes? If you enable full logging and debugging you should also see the connection being created (although we do not surfaces times for that optimally)

This looks to me like it is also creating the connection to the database. That is often rather slow unfortunately. Can you run the same query twice and see how long the second one takes? If you enable full logging and debugging you should also see the connection being created (although we do not surfaces times for that optimally)

Turns out it's creating a connection to the database. Is there anyway to stop it from creating a connection and instead create one on the server start and reuse it?
Duration: 1ms
signup-2: 5.64ms

index.ts
import express from 'express';
import cors from 'cors';
import helmet from 'helmet';

app.use(express.json(), cors(corsOptions), helmet());

app.use('/api/v2/auth', require('./routes/auth'));

app.listen(PORT, () => {
    console.log(`Server is running on port ${PORT}`);
});

./routes/auth.ts
import { Router } from 'express';
import { signup } from '../handlers/auth';

const router = Router();

router.post('/signup', limiter, signup);

export = router;

../handlers/auth/signup.ts
import { NextFunction, Request, Response } from 'express';
import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient({
    log: [
        {
            emit: 'event',
            level: 'query',
        },
        {
            emit: 'stdout',
            level: 'error',
        },
        {
            emit: 'stdout',
            level: 'info',
        },
        {
            emit: 'stdout',
            level: 'warn',
        },
    ],
});

prisma.$on('query', (e) => {
    console.log('Query: ' + e.query)
    console.log('Params: ' + e.params)
    console.log('Duration: ' + e.duration + 'ms')
});

export default async function (req: Request, res: Response, next: NextFunction) {
    try {
        console.time('signup');
        await prisma.$queryRaw`SELECT "public"."User"."id", "public"."User"."username", "public"."User"."password", "public"."User"."role", "public"."User"."createdAt", "public"."User"."profileId" FROM "public"."User" WHERE "public"."User"."username" = ${"dghdfghd"} LIMIT ${1} OFFSET ${0}`
        console.timeEnd('signup');
        console.time('signup-2');
        await prisma.$queryRaw`SELECT "public"."User"."id", "public"."User"."username", "public"."User"."password", "public"."User"."role", "public"."User"."createdAt", "public"."User"."profileId" FROM "public"."User" WHERE "public"."User"."username" = ${"dghdfghd"} LIMIT ${1} OFFSET ${0}`
        console.timeEnd('signup-2');
    } catch (err) {
        next(err);
    }
}

Hey @iiiMaximus,

Turns out it's creating a connection to the database. Is there anyway to stop it from creating a connection and instead create one on the server start and reuse it?

How you configured Prisma Client outside the request handler is correct. If you'd like to additionally connect to the DB before the first request, you can call prisma.$connect().

Do you mind sharing the time end logs? The expected behavior would be that the first one will take some time to connect, then the second one would be fast.


Add custom extension to robots.txt cache

Because of the domain names extension, my OS is associating filetypes to the cached robots files in artifacts.
For instance, it associates domains ending in .au as audio files, .one as MS Office OneNote files, .cat as Windows security cat files, .com as MS_DOS applications, etc.
It may not be a big deal unless my search indexer tries to read its data, expecting to get data associated with those filetypes and mucks up.
Could you add a unique extension when it saves the robots file that is universally recognized as a text file.

Oops. I do realise that this is probably not the smartest anyway. I’m sure bad stuff will happen if someone has utf-8 glyphs in their domain name. I think I’ll just do a hash of the domain name and use that…


Fix journalctl command on kubeadmin page

This PR is to fix: https://github.com/kubernetes/website/issues/21769
Update the journalctl command in the kubeadmin page.

thanks
/sig-cluster-lifecycle
/lgtm

/sig cluster-lifecycle

Page preview:
https://deploy-preview-21781--kubernetes-io-master-staging.netlify.app/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/

/approve


Best practice for "Imputers"

What about imputers?
Do you have any recommendation or best practice for address them?

When they need to be applied for training data as well before to produce predictions.
When they need to be distinct for categorical and continuous values.

We handled imputers in our catalog and experiments for CARLA by removing these samples. Our datasets were, luckily big enough.
I think most of our recourse methods cannot handle missing data, such that imputers have to be dealt with before.
At the moment we don't have a best practice strategy to handle them, maybe I would start with techniques mentioned in https://medium.com/fintechexplained/what-are-imputers-in-data-science-b72f8308322b

Thanks @Philoso-Fish , I actually handled them particularly at the Data object. As well exposing the 'fitted' methods for later usage, such getting counterfactuals for later inferences. It worked here but I'm still struggling to generalize it as an skeleton or something like that.
Thanks also for the reference. I'll follow it and growth a little bit, unfortunately not as much as our current real dataset / business problem. :-)
Btw, congratulations for CARLA initiative of benchmarking recourse methods.


Type Error raised in delegate_inference.py

Describe the bug
During calling my own native function which is not properly designed,
the error should be raised via infer_unknown below.
    @staticmethod
    @_infers(DelegateTypes.Unknown)
    def infer_unknown(signature: Signature) -> NoReturn:
        raise KernelException(
            KernelException.ErrorCodes.FunctionTypeNotSupported,
            "Invalid function type detected, unable to infer DelegateType.",
        )

However, the type error is raised since awaitable parameter is not included in the infer_unknown function.
TypeError: DelegateInference.infer_unknown() takes 1 positional argument but 2 were given
    def infer_delegate_type(function) -> DelegateTypes:
        # Get the function signature
        function_signature = signature(function)
        awaitable = iscoroutinefunction(function)

        for name, value in DelegateInference.__dict__.items():
            wrapped = getattr(value, "__wrapped__", getattr(value, "__func__", None))

            if name.startswith("infer_") and hasattr(wrapped, "_delegate_type"):
                # Get the delegate type
                if wrapped(**function_signature, awaitable**):
                    return wrapped._delegate_type

        return DelegateTypes.Unknown

To Reproduce
What I've added as a native function is:
import os
import aiofiles
from semantic_kernel.orchestration.sk_context import SKContext
from semantic_kernel.orchestration.context_variables import ContextVariables
from semantic_kernel.skill_definition import sk_function

class ChatHistoryProcessingSkill:

    @sk_function(description="save chat history")
    async def save_chat(self, context_vars: ContextVariables):
        chat_id = context_vars.get("chat_id")
        chat_history = context_vars.get("chat_history")
        async with aiofiles.open(f"chat_history_{chat_id}.txt", "w") as f:
            await f.write(chat_history)

    @sk_function(description="recall chat history")
    async def recall_chat(self, input: str) -> str:
        if not os.path.exists(f"chat_history_{input}.txt"):
            return ''
        async with aiofiles.open(f"chat_history_{input}.txt", "r") as f:
            content = await f.read()
            return content

Then, I've run code:
import semantic_kernel as sk
from semantic_kernel.skills.ChatHistorySkill.chat_history_skill import ChatHistoryProcessingSkill

kernel = sk.Kernel()
kernel.import_skill(ChatHistoryProcessingSkill())

(I think FunctionTypeNotSupported error is raised since the input type is ContextVariables.
When I modified it to SKContext, it works well.)
Expected behavior
Thus, awaitable should be added like:
 def infer_unknown(signature: Signature, awaitable: bool) -> NoReturn:
Or, Exclude the 'infer_unknown' such as :
if name.startswith("infer_") and not name.endswith("unknown") and hasattr(wrapped, "_delegate_type"):
Screenshots

Desktop (please complete the following information):

OS: Mac M1
IDE: VSCode
NuGet Package Version [e.g. 0.1.0]

Additional context

Thanks for sending this! I encountered similar errors when writing my own native functions. I raised it here https://github.com/microsoft/semantic-kernel/issues/624
I think these are related and could be resolved with a common update.
@dluc @mkarle @awharrison-28

Great! Could you tell me the upcoming update date? :D

@dluc Let's put this in the backlog.


Video window not showing

The camera is active, a video store in output but video window unable to load

Hi Danish,
Be sure to set the display option to True (-d 1 in exec.sh). What's errors did you get?
Regards,

Hi @lbeaucourt Thanks for the prompt response, Actually I'm running Ubuntu 16.04 VM on my windows machine.
this is my exec.sh
python3 my-object-detection.py -d 1 -o 1 -I 0 -w 20 -q-size 150
when i run the runDocker i got following warning as well
non-network local connections being added to access control list
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

I use your runDocker.sh to run docker build of this code  this work fine and Launch the video streaming windows. but no streaming video with following error:
[INFO] elapsed time: 0.05
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x320000b
[INFO] elapsed time: 0.05

When your build code is switch over mac:
no such above type warning but getting the following error
docker: Error response from daemon: error gathering device information while adding custom device "/dev/video0": no such file or directory.
non-network local connections being removed from access control list

Good Day

Hi @DanishAbsar , thanks for all these information.
I'm never tried to use this repo with linux VM on Windows. It was something I planned to try, but never found enough time. I found something here (https://github.com/P0cL4bs/WiFi-Pumpkin/issues/53), but it's not dedicated to VM and windows. Maybe you could try to set the env variable in your VM linux...
The first two lines of warning you get are normal, I get same.
The last error you get means that the docker can't find dev/video0 device, which is your webcam path in linux file system. Two reasons: 1) webcam is not available, 2) IOS file system doesn't name webcam device as Linux, you should find the name of your device and modify the runDocker.sh file (replace the --device=dev/video0 by --device=
Hope it helps, furthermore I interested to know if you solve your problem and successfully run the repo on Windows/IOS.
regards

Thanks @lbeaucourt
I concluded it's not possible on mac using docker reference
btw no dought it's a nice repo and works like a charm

HI @DanishAbsar ,
Thanks for your research. I will add this ref in the README with an advert about the supported OS for this repo.
regards


Auto-annotate DAGW and build data

Test dies, @asgerius :calculate_spans should get a tokenizer passsed + number-of-items results in key err


Add support for encoded refs in external terms

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Everything seem good, just a minor note that might increase readability (or maybe not).
Meanwhile I'll make sure the CI will be green.

I'm pretty sure there is a test that fails and needs to be fixed.


.groupBy(), .sum(), .average(), .max(), .min()

count is already done
HAVING
GROUP BY
AVG
MAX
MIN
SUM
LEN
MEDIAN
// Find oldest user
User.findOne().max('age').done(console.log);

// Find users' average age
User.find().average('age').done(console.log);

// Find total file storage usage
File.findByOwner(req.session.userId).sum('size').done(function (err, totalUsage) {
  // totalUsage is an integer, perhaps the total number of bytes
  // stored in the system belonging to the user in the session
});

////////////////////////////////////////////////////////////////////////////////////
// NOTE: THIS ONE IS DONE ALREADY
// Find number of users over 40
User.count({ 'age': { '>': 40 } }).done(console.log);
////////////////////////////////////////////////////////////////////////////////////

In general, 0-nary aggregators (like count) must be applied directly, e.g.. User.count()
1-nary aggregators (like max) which require at least one argument can be applied as a query modifier, like a select, e.g.. the average aggregator function takes an attribute as an argument:  User.find().average('age')
OR they can be applied directly to the model to get,  e.g. the average age of all users User.average('age')

Since waterline has a lodash dependency, why not use _.min, _.max and _.groupBy instead of custom script?

Where are those methods in the waterline documentation please ?

Hi, I am also wondering how these functions work. Is there any documentation anywhere?

Hi @prisonier, @ezmiller, there are not yet documented in waterline-docs but I've raised balderdashy/waterline-docs#79 for that purpose.
Meanwhile you can check the tests for examples in: https://github.com/balderdashy/waterline-adapter-tests/blob/master/interfaces/queryable/modifiers/groupBy.modifier.test.js

@dmarcelino thanks for the tip; that helped! still working out how this work, but i'll drop in whatever code i end up with as an example for posterity's sake.

So I have run into a strange problem with the groupBy and sum methods when used with populate. I have a set of associated models: User, Source (books, etc), Recommendation, and Discipline (i.e. academic discipline).
I attempted the following waterline query:
Recommendation.find({where: {discipline: '5559ea07dfa9bd0499f9f799'}, groupBy: ['source'], sum: ['rating']}).exec(console.log);

This worked well, returning:
[
    {
        "source": "5571e72ab50f0c3c49fe19f6",
        "rating": 4
    },
    {
        "source": "5571b88c51861950360fac1c",
        "rating": 12
    }
]

I then tried it with populate because I wanted to have the full source data linked to the each recommendation. So I tried:
Recommendation.find({where: {discipline: '5559ea07dfa9bd0499f9f799'}, groupBy: ['source'], sum: ['rating']}).exec(console.log);

But then I got back something strange:
[
    {
        "source": {
            "type": "book",
            "identifiers": [
                {
                    "type": "ISBN_10",
                    "identifier": "1400823226"
                },
                {
                    "type": "ISBN_13",
                    "identifier": "9781400823222"
                }
            ],
            "title": "Patterns for America",
            "subtitle": "Modernism and the Concept of Culture",
            "publisher": "Princeton University Press",
            "year": 1999,
            "language": "en",
            "categories": [
                "Literary Criticism"
            ],
            "abstract": "In recent decades, historians and social theorists have given much thought to the concept of \"culture,\" its origins in Western thought, and its usefulness for social analysis. In this book, Susan Hegeman focuses on the term's history in the United States in the first half of the twentieth century. She shows how, during this period, the term \"culture\" changed from being a technical term associated primarily with anthropology into a term of popular usage. She shows the connections between this movement of \"culture\" into the mainstream and the emergence of a distinctive \"American culture,\" with its own patterns, values, and beliefs. Hegeman points to the significant similarities between the conceptions of culture produced by anthropologists Franz Boas, Edward Sapir, Ruth Benedict, and Margaret Mead, and a diversity of other intellectuals, including Randolph Bourne, Van Wyck Brooks, Waldo Frank, and Dwight Macdonald. Hegeman reveals how relativist anthropological ideas of human culture--which stressed the distance between modern centers and \"primitive\" peripheries--came into alliance with the evaluating judgments of artists and critics. This anthropological conception provided a spatial awareness that helped develop the notion of a specifically American \"culture.\" She also shows the connections between this new view of \"culture\" and the artistic work of the period by, among others, Sherwood Anderson, Jean Toomer, Thomas Hart Benton, Nathanael West, and James Agee and depicts in a new way the richness and complexity of the modernist milieu in the United States.",
            "imageLinks": {
                "smallThumbnail": "http://bks3.books.google.de/books/content?id=OwYWU2H3me4C&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api",
                "thumbnail": "http://bks3.books.google.de/books/content?id=OwYWU2H3me4C&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api"
            },
            "createdAt": "2015-06-05T14:56:12.714Z",
            "updatedAt": "2015-06-05T14:56:12.724Z",
            "id": "5571b88c51861950360fac1c"
        },
        "rating": 4
    },
    {
        "source": {
            "_bsontype": "ObjectID",
            "id": "Uq¸Q\u0019P6\u000f¬\u001c"
        },
        "rating": 12
    }
]

As you can see rather than replacing the source id with the full source properties, it added the source as an object in the returned array, and then added another object with a new source id reference, and the summed rating amount. Strangely, it also attached just one of the rating values to the source object it appended to the results.
Is this what should be happening. I can't follow the logic and it feels a bit buggy. In any case, what I would like is to have the source within each returned row, alongside the summed total. Can anyone explain what's going on here, and if I made an error perhaps?

I'm using sails-mongo adapter and this query works ok, except that it doesnt bring the count for each groupby:
Model.find({where:where, select:['field1', 'field2', 'field3', 'field4'], groupBy: ['field1'], count: true, min:['field2', 'field3', 'field4']}).exec(....
any idea?

I need get min, max and average the same time, is possible?
sails.models.logrequest.find()
.min('responseTime')
.max('responseTime')
.average('responseTime')
.exec(function (err, data){
if(err) return next(err);
return res.json(200, { data: data });
});

@mikermcneil How can we write a condition something like "date(column) = ?" . The column can be a timestamp.

I am really really surprised, none of the example you mentioned here is not working at the latest version. Am i the only fool, who is getting trouble?. Seriously mate, your effort was awesome, but the documentation is killing me.

I made a npm package to add the sum function to blueprints : https://github.com/GregKapustin/sails-hook-blueprint-sum
I will try to add the other functions listed here asap.

@diegopamio
I have the same problem.

@GregKapustin just published a packet to npmjs which does that.

there is no count aggregate in sails-mongo

Sorry if there's something I have not read.
How do I want to group data per hour? The data I record every second.
Thank's


(fleet) fix missing site override in the bootstraper

Bootstrap was not taking into account site which broke the logic redirecting to staging registries.

/merge

/merge -c

/merge -p urgent


[BUG] [Python-experimental] Certain types in nested component schemas are interpreted as DynamicSchema

Bug Report Checklist

[x] Have you provided a full/minimal spec to reproduce the issue?
[x] Have you validated the input using an OpenAPI validator (example)?
[ ] Have you tested with the latest master to confirm the issue still exists?
[x] Have you searched for related issues/PRs?
[x] What's the actual output vs expected output?
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)

Description
I am unable to construct a python-experimental-generated object that includes both a nested component schema property and allOf. Certain types (integer, number, boolean) become impossible to construct, being interpreted as a DynamicSchema instead of the actual type.
openapi-generator version
6.0.0
OpenAPI declaration file content or url
openapi: 3.0.0

info:
  version: 1.0.0
  title: BugReproduction

paths: {}

components:
  schemas:
    Dog:
      type: object
      additionalProperties: false
      allOf:
        - $ref: "#/components/schemas/Animal"
      properties:
        species:
          enum: ["canine"]
        age:
          $ref: "#/components/schemas/Age"

    Age:
      type: object
      additionalProperties: false
      properties:
        unit:
          type: string
        value:
          type: integer

    Cat:
      type: object
      additionalProperties: false
      allOf:
        - $ref: "#/components/schemas/Animal"
      properties:
        species:
          enum: ["feline"]
        favorite_milk:
          type: string

    Animal:
      type: object
      properties:
        species:
          type: string
      discriminator:
        propertyName: species
        mapping:
          canine: "#/components/schemas/Dog"
          feline: "#/components/schemas/Cat"

Generation Details
I've generated the schema above with both the standard python generator and python-experimental for side-by-side comparisons:
# Using the "standard" python generator, for comparison
openapi-generator generate \
  -i openapi_specs/main.yml \
  -g python \
  --additional-properties generateSourceCodeOnly=true \
  --additional-properties packageName=pystandard

# Using the python-experimental generator
_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED" \
  openapi-generator generate \
  -i openapi_specs/main.yml \
  -g python-experimental \
  --additional-properties generateSourceCodeOnly=true \
  --additional-properties packageName=pyexperimental

(Note: the _JAVA_OPTIONS are passed to avoid this error:)
: java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.util.HashMap$Node[] java.util.HashMap.table accessible: module java.base does not "opens java.util" to unnamed module @2c1a7075

Steps to reproduce

Run the generator steps above with the schema above
Attempt to create an object (comment in/out the different imports to compare standard and experimental)

# from pystandard.model.age import Age
# from pystandard.model.dog import Dog
from pyexperimental.model.age import Age
from pyexperimental.model.dog import Dog

def test_dog():
    Dog(species="canine", age=Age(unit="years", value=2))

The standard Dog can be created just fine, but the experimental Dog cannot be constructed:
pyexperimental.exceptions.ApiTypeError: Invalid type. Required value type is one of [Decimal, FileIO, NoneType, bool, bytes, frozendict, str, tuple] and passed type was DynamicSchema at ['args[0]']['age']['value']

I've changed the type of value to a few different simple types—string works fine, but integer/number/boolean all fail.
Related issues/PRs
None to my knowledge
Suggest a fix
Per @spacether:

Hmm this may be because Animal sees Age as an AnyTypeSchema but a Dog instance is a DynamicSchema instance but it should be let through because Age is a DictSchema.

For wider context of my real-world use case: I have an API endpoint with a polymorphic request body—it can accept oneOf several animals (to run with the reproduction example). I have several different animals (not just two), and while most have pretty distinct properties (as above—Dog and Cat are quite distinct from one another), a few of them happen to have the exact same set of fields (say... name and number_of_legs). I need to be able to disambiguate between two animals with identical properties, so I'm adding the species field as a discriminator. Each specific animal defines species as an enum-of-one field to ensure a client doesn't create something like Giraffe(species="canine").
In my real-world example there are additional, common, sometimes-optional properties that all Animals define, which is why I'm using allOf. Maybe the species property and discriminator mapping is not actually necessary in this case (since its hard-coded on each concrete animal schema), and I should just perform server-side switching using that field myself? I had assumed providing the discriminator block would yield some benefit in generated code. (Still pretty new to this tool in general so I don't know for sure, but all the polymorphism examples in the docs talk about using it.)

@mikeknep what is this HashMap error you are referring to? I am also getting it! Using your workaround for now!
Note that python-experimental -> python now
My spec yaml, it has been validated.
Run:
openapi-generator generate --input-spec /home/can/Projects/SynDB/interface/syndb-pi/syndb_openapi.yaml --output /home/can/Projects/SynDB/interface/syndb-pi/syndb_openapi_gen_python --generator-name python --additional-properties=packageName=syndb_client,packageVersion=0.4.1,projectName=syndb_client

Error:
ndb_client,packageVersion=0.4.1,projectName=syndb_client
[main] INFO  o.o.codegen.DefaultGenerator - Generating with dryRun=false
[main] INFO  o.o.c.ignore.CodegenIgnoreProcessor - Output directory (/home/can/Projects/SynDB/interface/syndb-pi/syndb_openapi_gen_python) does not exist, or is inaccessible. No file (.openapi-generator-ignore) will be evaluated.
[main] INFO  o.o.codegen.DefaultGenerator - OpenAPI Generator: python (client)
[main] INFO  o.o.codegen.DefaultGenerator - Generator 'python' is considered stable.
[main] INFO  o.o.c.l.AbstractPythonCodegen - Environment variable PYTHON_POST_PROCESS_FILE not defined so the Python code may not be properly formatted. To define it, try 'export PYTHON_POST_PROCESS_FILE="/usr/local/bin/yapf -i"' (Linux/Mac)
[main] INFO  o.o.c.l.AbstractPythonCodegen - NOTE: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
[main] INFO  o.o.c.ignore.CodegenIgnoreProcessor - Output directory (/home/can/Projects/SynDB/interface/syndb-pi/syndb_openapi_gen_python) does not exist, or is inaccessible. No file (.openapi-generator-ignore) will be evaluated.
[main] INFO  o.o.c.languages.PythonClientCodegen - Environment variable PYTHON_POST_PROCESS_FILE not defined so the Python code may not be properly formatted. To define it, try 'export PYTHON_POST_PROCESS_FILE="/usr/local/bin/yapf -i"' (Linux/Mac)
[main] INFO  o.o.c.languages.PythonClientCodegen - NOTE: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
[main] INFO  o.o.c.languages.PythonClientCodegen - generateAliasAsModel is hard coded to true in this generator. Alias models will only be generated if they contain validations or enums
[main] INFO  o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[main] INFO  o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[main] INFO  o.o.codegen.DefaultGenerator - Model Body_auth_database_login_user_auth_database_login_post not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
[main] INFO  o.o.codegen.DefaultGenerator - Model Body_auth_jwt_login_user_auth_jwt_login_post not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
Exception in thread "main" java.lang.RuntimeException: Could not generate model 'BearerResponse'
        at org.openapitools.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:563)
        at org.openapitools.codegen.DefaultGenerator.generate(DefaultGenerator.java:912)
        at org.openapitools.codegen.cmd.Generate.execute(Generate.java:465)
        at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
        at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Caused by: com.github.jknack.handlebars.HandlebarsException: model.handlebars:3:3: java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.util.HashMap$Node[] java.util.HashMap.table accessible: module java.base does not "opens java.util" to unnamed module @42e26948
    model.handlebars:3:3
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:180)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:174)
        at com.github.jknack.handlebars.context.FieldValueResolver$FieldMember.setAccessible(FieldValueResolver.java:150)
        at com.github.jknack.handlebars.context.MemberValueResolver.cache(MemberValueResolver.java:82)
        at com.github.jknack.handlebars.context.MemberValueResolver.resolve(MemberValueResolver.java:54)
        at com.github.jknack.handlebars.Context$CompositeValueResolver.resolve(Context.java:199)
        at com.github.jknack.handlebars.internal.path.PropertyPath.eval(PropertyPath.java:52)
        at com.github.jknack.handlebars.Context$PathExpressionChain.next(Context.java:361)
        at com.github.jknack.handlebars.Context$PathExpressionChain.eval(Context.java:381)
        at com.github.jknack.handlebars.Context.get(Context.java:618)
        at com.github.jknack.handlebars.internal.Partial.override(Partial.java:253)
        at com.github.jknack.handlebars.internal.Partial.merge(Partial.java:226)
        at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:125)
        at com.github.jknack.handlebars.internal.TemplateList.merge(TemplateList.java:95)
        at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:125)
        at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:113)
        at org.openapitools.codegen.templating.HandlebarsEngineAdapter.compileTemplate(HandlebarsEngineAdapter.java:92)
        at org.openapitools.codegen.TemplateManager.write(TemplateManager.java:163)
        at org.openapitools.codegen.DefaultGenerator.processTemplateToFile(DefaultGenerator.java:1058)
        at org.openapitools.codegen.DefaultGenerator.processTemplateToFile(DefaultGenerator.java:1045)
        at org.openapitools.codegen.DefaultGenerator.generateModel(DefaultGenerator.java:402)
        at org.openapitools.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:554)
        ... 4 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.util.HashMap$Node[] java.util.HashMap.table accessible: module java.base does not "opens java.util" to unnamed module @42e26948
        ... 28 more

@caniko are you able to instantiate models using SomeModel__new__? for the issue use case?
If so how about I edit this issue description to identify this issue as python, unable to generate code due to java layer bug, java.lang.RuntimeException?

@spacether I am not sure I follow. Could you expand a bit?

The original issue has 2 pieces

piece #1: java layer throws an exception, fixable with _JAVA_OPTIONS
piece #2: generated python code was unable to ingest model payloads passed in as arguments in __new__ for some use case

Piece 2 has been fixed in an earlier PR, that' why the issue was closed.
Are you seeing errors for pieces 1 + 2?
If you are only seeing the piece #1 issue then the issue description should be updated to be more specific.

Actually, the generated code are missing some models.
I used these options: _JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED"
Note that the error on my first post was resolved with these options. So, piece 1 is not an issue anymore.

My code gen used to work on python-prio, which had its own set of problems... I was hoping this new approach would fix my issues, it just introduced new ones. I am willing to go back and forth on chat: Are you on discord or element/matrix?

Missing models are a very fixable bug. Which models are missing?
Sure, you can msg me at https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g and I am Justin Black there

Closing this issue Certain types in nested component schemas are interpreted as DynamicSchema because it is fixed
If users have issues where:

models are not being generated and they should be
they see a java exception java.lang.reflect.InaccessibleObjectException
Please open new issues so they can be fixed


fix(Remove debug statement): Remove extra debug statement in kinesisfirehose-s3

The JSON.stringify() call in this statement caused problems
Issue #, if available:
Issue648
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 18b9290f4e1ebd83523006366cb13e939b412914
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 18b9290f4e1ebd83523006366cb13e939b412914
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 7030a6eb764e71ef7466574b820202a80a2d541c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 7030a6eb764e71ef7466574b820202a80a2d541c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Added support for enumSuffix

🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description

Adds support for disabling the prefix on Enums similar to how enumPrefix works for prefixes.

Related #7839

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take action on it as appropriate
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Tests added on the PR

Test Environment:

OS: Windows 11
@graphql-codegen/...: Latest
NodeJS: 19.9.0

Checklist:

[x] I have followed the CONTRIBUTING doc and the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Any idea when this can be merged? Would really love this feature!

Please let me know if you need anything else to get this merged.
Thanks


docs: updated descriptions and documentation in wiki

More specifically the following files:

Controllers
Core Concepts
Models
Serializers

Current coverage is 85.27% (diff: 100%)

Merging #456 into master will increase coverage by 0.05%

@@             master       #456   diff @@
==========================================
  Files           169        169
  Lines          1807       1807
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1540       1541     +1
+ Misses          267        266     -1
  Partials          0          0

Powered by Codecov. Last update 0a6c953...d1a878a

Closing this in favor of the generated api docs.


Add quotes to S3 download source URL

Related to #74

Merging to dev - will merge to master when tested.


⚠ Bofrost.es has degraded performance

In dd02d98, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1373 ms

Resolved: Bofrost.es performance has improved in 9f10f83.


Post release automated changes for machinelearning releases

Post release automated changes for azure-arm-machinelearning

API change check
API changes are not detected in this pull request.


UI Update Part 2

Hopefully this works in production, I fixed drop down menus being too big by replacing them with buttons that have search menus.

sorry for the extra commit, I accidentally updated the supporters menu and I made a second commit to undo that

sorry for the extra commit, I accidentally updated the supporters menu and I made a second commit to undo that

You can rebase and squash (keep commit message) or fixup (discard commit message) the second commit into the first commit. Since you've already pushed the commits to your remote branch, you would need to force push the resulting single commit since it's a change to the history of the branch (generally ok to do in this case since nobody else is going to use your remote branch).
If you hadn't already made the second commit, you could have alternatively amended the first commit with the additional changes.


Uncaught TypeError: undefined is not a function

[Enter steps to reproduce below:]

Open a project via atom command
Open a JS file

Atom Version: 0.169.0
System: Mac OS X 10.10.3
Thrown From: autocomplete-plus package, v2.12.1
Stack Trace
Uncaught TypeError: undefined is not a function
At /Users/klanni/.atom/packages/autocomplete-plus/lib/fuzzy-provider.coffee:54

TypeError: undefined is not a function
  at FuzzyProvider.module.exports.FuzzyProvider.updateCurrentEditor (/Users/klanni/.atom/packages/autocomplete-plus/lib/fuzzy-provider.coffee:54:45)
  at FuzzyProvider.updateCurrentEditor (/Users/klanni/.atom/packages/autocomplete-plus/lib/fuzzy-provider.coffee:1:1)
  at /Users/klanni/.atom/packages/autocomplete-plus/lib/fuzzy-provider.coffee:32:8

Commands
     -0:12.8 window:install-shell-commands (atom-pane.pane.active)
     -0:00.0 window:update-available (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-isotope-ui)

Config
{
  "core": {
    "themes": [
      "isotope-ui",
      "monokai"
    ],
    "projectHome": "/Users/klanni/Projects"
  },
  "autocomplete-plus": {
    "confirmCompletion": "tab and enter"
  }
}

Installed Packages
# User
atom-runner, v2.3.0
autocomplete-plus, v2.12.1
command-logger, v0.23.0
editor-stats, v0.17.0
editorconfig, v1.0.0
emmet, v2.3.8
isotope-ui, v2.1.3
jshint, v1.3.5
monokai, v0.14.0
travis-ci-status, v0.13.0

# Dev
No dev packages

/cc @atom/core

Please update your version of atom to 0.194.0 or later.


port out of range:-1

i am trying to publish a massage to IOT on port 8883 but detect an exception (in attach the configuration

):

if i use this Server Name: SIT-IOT....... the error is:
2017/02/23 11:30:11 ERROR - net.xmeter.samplers.PubSampler: Peer disconnected java.io.EOFException: Peer disconnected
at org.fusesource.hawtdispatch.transport.AbstractProtocolCodec.read(AbstractProtocolCodec.java:331)
at org.fusesource.hawtdispatch.transport.TcpTransport.drainInbound(TcpTransport.java:657)
at org.fusesource.hawtdispatch.transport.SslTransport.drainInbound(SslTransport.java:244)
at org.fusesource.hawtdispatch.transport.TcpTransport$6.run(TcpTransport.java:538)
at org.fusesource.hawtdispatch.internal.NioDispatchSource$3.run(NioDispatchSource.java:226)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:96)
at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)

if i use this Server Name: ssl://SIT-IOT....... the error is:
2017/02/23 11:37:08 ERROR - jmeter.JMeter: Uncaught exception:  java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.checkPort(Unknown Source)
at java.net.InetSocketAddress.(Unknown Source)
at org.fusesource.hawtdispatch.transport.TcpTransport$2.run(TcpTransport.java:416)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Not necessary to add "ssl://" in 'Server name or IP", the protocol is set in the 'Protocols' dropdown box. Please make sure that the user name & password are correct.

username and password are correct. I've followed these instructions: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support (section: Using the MQTT protocol directly) but the error is the same:
ERROR - net.xmeter.samplers.PubSampler: Peer disconnected java.io.EOFException: Peer disconnected
Moreover, where can i set "ClientId"? in MQTT Pub Sampler i see only the tag "ClientId prefix". If i set this filed with my deviceId, i detect another error.

Possibly it's caused by not specifying a correct clientID. Currently, only "ClientId prefix" is supported, the fullname of clientID will be generated automatically with "ClientId_prefix" + random string.  Please verify if you can use mosquitto client tools pub/sub messages (such as specify a not correct clientId will cause the same problem or not).

where can i set "ClientId"? in MQTT Pub Sampler i see only the tag "ClientId prefix". If i set this filed with my deviceId, i detect another error.
Do you want to update later?   the ClientId

Right now as mentioned in earlier comment, "ClientId" = "ClientId_prefix" + random string.
Maybe I missed something.. are you expecting the exact ClientId field that can be specified on this Pub Sampler UI?  If so, can you elaborate how ClientId is being used in your application, should it be the same as your deviceId?
We can consider an option for ClientId without random string any way.

yes, in my application  the same as deviceId。

Please try https://github.com/emqtt/mqtt-jmeter/releases/tag/v0.92_beta.
As in below screen, please uncheck 'add random client id suffix', and then the value of 'ClientId' will be used as client ID.

It's all right now， thank you

OK, so close the issue and it will be released in 0.92 stable version.

Hi i have all proper username and password but using tcp i am not able to connect please help me out

Maybe it's caused by MQTT version, which was discussed in the thread - https://github.com/emqtt/mqtt-jmeter/issues/21
Could you have a try for the temp fix attached in the thread?

In Jmeter testing for IOT-HUB this is TCP protocol or SSL if SSL then how i will manage certificate because i don't have any certificate

Maybe you should consult Azure.

Here i have notice Jmeter doesn't supprot IOT-HUB because while sending multiple message using multiple thread with delay and without delay i am getting connection error as per Azure support they were saying it is try to connect with every thread science using iot hub we can connect once
IoT Hub only supports one active MQTT connection per device. Any new MQTT connection on behalf of the same device ID causes IoT Hub to drop the existing connection.
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support
@jinfahua  please reply with you value-able feedback

@jinfahua  Here one thread working properly

The current design is that all iterations for the same virtual user shares one same connection. But if you have multiple virtual users, then corresponding multiple connections will be created.  But different pub & sub samplers in one thread-group DO NOT share the same connections, different samplers in same thread-group will created a separated connection.
Now we have an ongoing release that support share connection for pub/sub samplers in the same thread-group.  In real user scenario is that one client can be either pub or sub (with the same connection).

Thanks jinfahua when can we aspect this new release ??

The code is already in branch conn_share https://github.com/emqtt/mqtt-jmeter/tree/share_conn , you can check it out and build a binary by yourself. The new release will still take some time.


Fix small spelling mistake

@suhuruli : Thanks for your contribution to the Azure documentation! The author, @samedder, has been notified to review your proposed change.

#sign-off


Proper ffz and bttw emote modifiers display

Bttw and FFZ has emote modifiers, that allow the emote to widen/flip horisontally/flip vertically/become cursed etc.
For now those don't get shown properly in chatterino, but do show in web chat with frankerfacez/bttw/7tv extensions (all to a different degree, but anyway).
The modifiers are:
w!, z!, v!, h! for bttw,
ffzX, ffzY, ffzW, ffzCursed for ffz.
In browser chat the w! looks like this:

How they look in chatterino currently:

OS and Chatterino Version
Chatterino Nightly 2.4.2 (commit 32499f0e) Windows 10 2009

Duplicate https://github.com/Chatterino/chatterino2/discussions?discussions_q=is%3Aopen+modifier


CLOUDP-121000: [Atlas CLI] Telemetry - Remove Feature Flag

Proposed changes

Jira ticket: CLOUDP-121000
Checklist

[x] I have signed the MongoDB CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
[ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
[ ] I have updated e2e/E2E-TESTS.md (if an e2e test has been added)
[x] I have run make fmt and formatted my code

Further comments

evergreen retry

Looking into the failures!


Crash on Apple M1 with Julia 1.8-rc1

When initializing the juliacall module on a machine with an apple M1, it crashes:
% python -c "import juliacall"
fatal: error thrown and no exception handler available.
ErrorException("could not load symbol "jl_n_threads":
dlsym(RTLD_DEFAULT, jl_n_threads): symbol not found")
ijl_errorf at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ijl_dlsym at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ijl_load_and_lookup at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
nthreads at ./threadingconstructs.jl:23 [inlined]
__preinit_threads__ at ./task.jl:706
jfptr___preinit_threads___50438 at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
_finish_julia_init at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
julia_init at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ijl_init at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.8.dylib (unknown line)
ffi_call_SYSV at /usr/lib/libffi.dylib (unknown line)

Using PDB I have been able to locate and isolate the issue although I don't understand why the crash is caused.
The line that crashes is:
https://github.com/cjdoris/PythonCall.jl/blob/73ae3059032c6951f9f0856494add524e798c05a/pysrc/juliacall/__init__.py#L124
A minimal example that reproduces the issue:
import ctypes
lib = ctypes.CDLL("/Applications/Julia-1.8.app/Contents/Resources/julia/lib/libjulia.1.8.dylib")
lib.jl_init__threading()

Duplicate of #175?

Yes, sorry


chore: bdd-spring-1583901476 to 0.0.1

chore: Promote bdd-spring-1583901476 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[21.11] Pantheon 6.0.4

Motivation for this change

This is the Pantheon backport pull request for the elementary OS 6.0.4 Odin release cycle.
Backports https://github.com/NixOS/nixpkgs/pull/147216 (no commits are excluded so far).
Backports https://github.com/NixOS/nixpkgs/pull/147256 (no commits are excluded so far).

Related: planned backport workflow for 6.0.4 and 6.1, release notes per package, 6.0.x / 6.1 project board.
Notable changes

All Pantheon components have been bumped to their latest versions.
elementary-onboard should no longer crash on start.

Previous stable channel backport pull request
We didn't do backport for release-21.05 because Pantheon 6 is a major upgrade.

https://github.com/NixOS/nixpkgs/pull/100224

Known issues
No major regressions found yet.
How to test

You will need Nix 2.4 or later to use the experimental features, check that with nix --version.

Run the following to get a virtual machine with vanilla Pantheon desktop preconfigured, using this pull request as an input. To change settings like memorySize for QEMU, it is possible to fork my GitHub repo and do the changes, then replace bobby285271/test-pantheon with your GitHub repository.

$ nix --experimental-features "nix-command flakes" run github:bobby285271/test-pantheon --override-input nixpkgs github:NixOS/nixpkgs/pull/147369/head

QEMU will be launched automatically, wait for LightDM to appear and login with username and password test. Test the upgrade and if you find anything wrong, please also try reproduce the issue on master then comment here with your findings so we can handle that properly.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg test pantheon

Result of nixpkgs-review pr 147369 run on x86_64-linux 1

1 package marked as broken and skipped:

pantheon.elementary-screenshot-tool

107 packages built:

agenda
akira-unstable
appeditor
arc-icon-theme
beauty-line-icon-theme
bookworm
ciano
cipher
cozy
elementary-planner
elementary-xfce-icon-theme
ephemeral
faba-icon-theme
faba-mono-icons
flat-remix-icon-theme
fondo
formatter
gnonograms
hashit
ideogram
la-capitaine-icon-theme
luna-icons
minder
moka-icon-theme
monitor
nasc
notes-up
pantheon-tweaks
pantheon.appcenter
pantheon.elementary-calculator
pantheon.elementary-calendar
pantheon.elementary-camera
pantheon.elementary-capnet-assist
pantheon.elementary-code
pantheon.elementary-dock
pantheon.elementary-feedback
pantheon.elementary-files
pantheon.elementary-greeter
pantheon.elementary-gsettings-schemas
pantheon.elementary-gtk-theme
pantheon.elementary-icon-theme
pantheon.elementary-mail
pantheon.elementary-music
pantheon.elementary-notifications
pantheon.elementary-onboarding
pantheon.elementary-photos
pantheon.elementary-screenshot
pantheon.elementary-session-settings
pantheon.elementary-settings-daemon
pantheon.elementary-shortcut-overlay
pantheon.elementary-tasks
pantheon.elementary-terminal
pantheon.elementary-videos
pantheon.epiphany
pantheon.evince
pantheon.file-roller
pantheon.gala
pantheon.granite
pantheon.notes-up
pantheon.pantheon-agent-polkit
pantheon.sideload
pantheon.switchboard
pantheon.switchboard-plug-a11y
pantheon.switchboard-plug-about
pantheon.switchboard-plug-applications
pantheon.switchboard-plug-bluetooth
pantheon.switchboard-plug-datetime
pantheon.switchboard-plug-display
pantheon.switchboard-plug-keyboard
pantheon.switchboard-plug-mouse-touchpad
pantheon.switchboard-plug-network
pantheon.switchboard-plug-notifications
pantheon.switchboard-plug-onlineaccounts
pantheon.switchboard-plug-pantheon-shell
pantheon.switchboard-plug-power
pantheon.switchboard-plug-printers
pantheon.switchboard-plug-security-privacy
pantheon.switchboard-plug-sharing
pantheon.switchboard-plug-sound
pantheon.switchboard-plug-wacom
pantheon.switchboard-with-plugs
pantheon.wingpanel
pantheon.wingpanel-applications-menu
pantheon.wingpanel-indicator-a11y
pantheon.wingpanel-indicator-bluetooth
pantheon.wingpanel-indicator-datetime
pantheon.wingpanel-indicator-keyboard
pantheon.wingpanel-indicator-network
pantheon.wingpanel-indicator-nightlight
pantheon.wingpanel-indicator-notifications
pantheon.wingpanel-indicator-power
pantheon.wingpanel-indicator-session
pantheon.wingpanel-indicator-sound
pantheon.wingpanel-with-indicators
papirus-icon-theme
papirus-maia-icon-theme
ping
pop-icon-theme
regextester
sequeler
snippetpixie
spice-up
taxi
tootle
torrential
vocal
xdg-desktop-portal-pantheon

https://blog.elementary.io/elementary-os-6-odin-updates-november-2021/

@ofborg test pantheon

Result of nixpkgs-review pr 147369 run on x86_64-linux 1

1 package marked as broken and skipped:

pantheon.elementary-screenshot-tool

107 packages built:

agenda
akira-unstable
appeditor
arc-icon-theme
beauty-line-icon-theme
bookworm
ciano
cipher
cozy
elementary-planner
elementary-xfce-icon-theme
ephemeral
faba-icon-theme
faba-mono-icons
flat-remix-icon-theme
fondo
formatter
gnonograms
hashit
ideogram
la-capitaine-icon-theme
luna-icons
minder
moka-icon-theme
monitor
nasc
notes-up
pantheon-tweaks
pantheon.appcenter
pantheon.elementary-calculator
pantheon.elementary-calendar
pantheon.elementary-camera
pantheon.elementary-capnet-assist
pantheon.elementary-code
pantheon.elementary-dock
pantheon.elementary-feedback
pantheon.elementary-files
pantheon.elementary-greeter
pantheon.elementary-gsettings-schemas
pantheon.elementary-gtk-theme
pantheon.elementary-icon-theme
pantheon.elementary-mail
pantheon.elementary-music
pantheon.elementary-notifications
pantheon.elementary-onboarding
pantheon.elementary-photos
pantheon.elementary-screenshot
pantheon.elementary-session-settings
pantheon.elementary-settings-daemon
pantheon.elementary-shortcut-overlay
pantheon.elementary-tasks
pantheon.elementary-terminal
pantheon.elementary-videos
pantheon.epiphany
pantheon.evince
pantheon.file-roller
pantheon.gala
pantheon.granite
pantheon.notes-up
pantheon.pantheon-agent-polkit
pantheon.sideload
pantheon.switchboard
pantheon.switchboard-plug-a11y
pantheon.switchboard-plug-about
pantheon.switchboard-plug-applications
pantheon.switchboard-plug-bluetooth
pantheon.switchboard-plug-datetime
pantheon.switchboard-plug-display
pantheon.switchboard-plug-keyboard
pantheon.switchboard-plug-mouse-touchpad
pantheon.switchboard-plug-network
pantheon.switchboard-plug-notifications
pantheon.switchboard-plug-onlineaccounts
pantheon.switchboard-plug-pantheon-shell
pantheon.switchboard-plug-power
pantheon.switchboard-plug-printers
pantheon.switchboard-plug-security-privacy
pantheon.switchboard-plug-sharing
pantheon.switchboard-plug-sound
pantheon.switchboard-plug-wacom
pantheon.switchboard-with-plugs
pantheon.wingpanel
pantheon.wingpanel-applications-menu
pantheon.wingpanel-indicator-a11y
pantheon.wingpanel-indicator-bluetooth
pantheon.wingpanel-indicator-datetime
pantheon.wingpanel-indicator-keyboard
pantheon.wingpanel-indicator-network
pantheon.wingpanel-indicator-nightlight
pantheon.wingpanel-indicator-notifications
pantheon.wingpanel-indicator-power
pantheon.wingpanel-indicator-session
pantheon.wingpanel-indicator-sound
pantheon.wingpanel-with-indicators
papirus-icon-theme
papirus-maia-icon-theme
ping
pop-icon-theme
regextester
sequeler
snippetpixie
spice-up
taxi
tootle
torrential
vocal
xdg-desktop-portal-pantheon

@ofborg test pantheon


Implement Migrations

[] Investigate, is any way to use a model method getRules() to create/update the model table.
[] improve the current code to migrate a custom DB queries (it should know, which migration were executed and which awaiting for migration)


Doodle link for the teleconferences regarding the TC39 Code of Conduct Policy.

Dear All,
Please find below the Doodle link for the teleconferences regarding the TC39 Code of Conduct Policy.
https://ecma-international.doodle.com/poll/2y3pra392ns52fev
As background:

The TC39 draft was discussed in the ExeCom in April
The ExeCom has prepared a 2nd draft that has been posted over GitHub a few weeks ago
That should be discussed in a conf. call (or more conf. calls?) by interested parties, with the goal to come up with a final version that can serve as "TC39 Experimental Code of Conduct Regime" (title something like that....). In that conf call from the ExeCom side Isabelle Valet-Harper who has written the 2nd version would also participate. We expect active participation from the TC39 side too.

On this doodle we have to agree on the day of the conference call.
But separately we have to agree on what system (like Skype? Hangouts? anything else?) we should have the call (please make suggestions on that)..
Kind regards,
Istvan
Dr. István Sebestyén
Ecma International

see #28


[FEATURE REQUEST]:

Requesting  feature,  support of AWS - EMRFS based filesystem spark cluster
creating indexes on EMR - EMRFS spark cluster failing with error : "HyperspaceException: Only creating index over HDFS file based scan nodes is supported."

@mpr1 Can you share the repro step? It seems that you didn't create a DataFrame from files, but I wanted to double-check.


Encoder + Display without MCU

Hello!
I saw this on crowd supply. I am designing my custom mechanical keyboard. I have been looking forward to a encoder + display product.
Since my keyboard already has a MCU, I would prefer a board with pinouts for display and the encoder. Something like this: RJS-SDE. Their block diagram is exactly what I need but their screen is not fully circular and is ugly.
Could you please offer an option without the MCU?
Thanks!

Hi skannan89
I am not planning a breakout board for now (no MCU). If you are building just one keyboard for yourself what I can offer you is the following.
Aluminum body, encoder, display, display adaptor board and a ribbon cable. If the style of the aluminum body does not suit your needs there are free CAD model that you can use to make your custom design.
The hole assembly looks like this :
http://xtech.bg/wp-content/uploads/2021/11/IMG_20211105_104247-scaled.jpg
http://xtech.bg/wp-content/uploads/2021/11/IMG_20211105_104258-scaled.jpg
http://xtech.bg/wp-content/uploads/2021/11/IMG_20211105_104256-scaled.jpg
The encoder's pins spacing is 2.54 so you can put it on proto board and for the ribbon cables (red connector) you can use connector like this :
https://www.tag-connect.com/wp-content/uploads/2020/02/STDC14-mock-1200x800.jpg
which is also 2.54 suitable for mounting on a proto board.
If you don't want to use proto board, footprints for the encoder and connectors for the ribbon cables are available for free.
Cheers,
Mitko

If you are building just one keyboard for yourself what I can offer you is the following.
Aluminum body, encoder, display, display adaptor board and a ribbon cable. If the style of the aluminum body does not suit your needs there are free CAD model that you can use to make your custom design.

Yes! Thanks a lot, really appreciate your offer. That's without the MCU, right? How do I pay you? You can reach me at my username (gmail.com) and we can talk about payment and shipment.
Have a wonderful day!


[FEATURE] MongoDB Atlas Integration

Describe the feature you'd like
Support for MongoDB, both for Chat Memory and as a Vector Store
Additional context
MongoDB for Chat Memory
MongoDB as a Vector Store

PR Submitted :: https://github.com/FlowiseAI/Flowise/pull/1224


Feature/ShareAttributeRequestItem with deletionInfo

Also, change the code for the sharing of RelationshipAttributes to a third party in the ShareAttributeRequestItemProcessor. If a RelationshipAttribute is in a specific deletionStatus, it should be possible to share the source RelationshipAttribute again too.


⚠ Bofrost.de has degraded performance

In 2411c49, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 955 ms

Resolved: Bofrost.de performance has improved in 9e2a55f.


Is it possible to get the rendered Bitmap on the native side?

Question
I have a niche use case and it goes something like this. I need to show an SVG image within a native component(a MapView). The MapView requires the image to be a Bitmap(UIImage on iOS). I'm already using this library to render SVG on the React side and was wondering if I could somehow get hold of the Bitmap on the native side.
Right now, I'm using the approach described in this blog post to get the Bitmap from SVG on the native side. This approach is simple, I just need to duplicate the SVG file and use a different extension (.xsvg for instance) as I have the Babel transformer setup for this library. When I need to render the SVG, I pass the URI to the native side and use the Glide library (SVGKit on iOS) to get the Bitmap.
However, this approach requires me to maintain two identical files. It is not as flexible as this library, I have tried changing the properties of the SVG image like tint, stroke, etc. but it is quite difficult to do consistently on both platforms.
I was wondering if we could somehow render the SVG component virtually and pass a reference to the native side, and then get the Bitmap on the native side. I don't know if this is even possible in React Native or not.
I did some Google search on this but couldn't find anything. Thanks in advance.
Before submitting it, please ensure that this was not already asked in another issue, or on StackOverflow. Ideally, you should always refer to StackOverflow first.
This issue should serve for you to ask a question about the library to the maintainers and other fellow developers - remember that even if the issue gets closed, the conversation can move forward 🤗
Also, ideally this issue should culminate in a PR to the documentation for this library so that future developers will have that doubt cleared.

I was able to achieve something similar and I have documented this in a blog post.


Odd memory usage with small XML files

https://gist.github.com/rclark/eb01727e665ae1e2323c demonstrates a script that takes a small OSM XML snippet and repeatedly passes it through node-osmium to create geojson.
When I run this script and track the process memory usage, it seems to cycle, growing to over 1GB and dropping again, spending a lot of time hovering around 500MB. If you decrease the interval and make the function run faster, the memory spikes get larger, I saw as high as 5GB. I see similar memory usage even if I remove the handler.on('area') function entirely.
I understand that this is not a use-case that node-osmium was really designed for, but I've run into it while trying to deal with "atomic" OSM data events, and curious what you think.
cc @joto @springmeyer

After a little more hunting with @springmeyer, the problem seems to come up when "closing" is handled in a function vs. at a top level. See https://gist.github.com/rclark/eb01727e665ae1e2323c#file-catch-memory-spikes-js-L16-L27

@rclark what's the CPU usage when you run those scripts?
During debugging node-mapnik I came across similar patterns (although a proj4 bug also played a role then).
My impression was that node somtetimes defers garbage collection when under heavy load.
GC seems to happen when node is not at 100% CPU.
Heavy load might also be responsible for events to take longer to fire (no free CPU cycles to do so).

I think you may be onto something with the original gist and my description of cyclical RAM usage. However I updated the gist and should have updated the comment: with the "leak" configuration (Option B), I see unchecked RAM growth, not a periodic collection like I was seeing before. With Option A, there is no memory leak. It seems to me that somehow reader.close(), when called from inside a function, isn't releasing the memory that its supposed to?

reader.close() doesn't release any memory at all. It does some cleanup, but that cleanup should already have happened when the file is read until the end (which apply()) will do). And the cleanup doesn't include freeing any large memory spaces anyway.
Could you try all of this using the Stream interface instead of the handler. The handler is basically deprecated because it can't handle backpressure like the Stream interface can. See demo/stream for the interface.

Using the stream interface I can't replicate the leak. Feel free to close if the handler interface is deprecated and won't be fixed.


is there any plan to add falcon to instructblip?

instructblip seems to be really cool, is there any possibility to add falcon also to the pipeline in the future?. currently we have option for flant5 & vicuna. problem is you cannot use vicuna for commercial use & flant5 performance is poor, also vicuna is not that great too, adding falcon to the pipeline will massively boost the performance of instructblip.
incase if i want to add it myself in place of vicuna in the pipeline how can i do that?
thanks
@LiJunnan1992

Hi @Ashwath-Shetty, thanks for the suggestion. We are not prioritizing the release of BLIP-2 integration with Falcon as for now. However, we have it on our backlog and will have to better schedule.

thank you for the reply @dxli94 , it'll be really awesome to see what blip2+flacon is capable of doing.
if i can contribute in anyway possible, let me know.


global scope roles takes priority over room-scoped roles

I have a user which has the global scope role default assigned to it. That role has the permission of file:create.
I then assigned a room-scoped role room_member to the same user which the file:create permission was disabled.
In this scenario, I'm expecting to get an error if I attach a file to a message. But it doesn't. I'm in the same room where the role was scoped. So I expect it to take priority over the globally scoped role. Am I wrong in this assumption? is this a bug? or should I avoid using global scoped roles entirely (or only assign minimal permissions to it).

From https://pusher.com/docs/chatkit/roles-and-permissions#roles

If a user makes a request that is relevant to a specific room and the user has a room specific role assigned to them, then the permissions attached to the room specific role are combined with the permissions attached to their globally scoped role, whether that be the default role or otherwise, and the combined set of permissions is then used to check if the request should be permitted or rejected.

In other words, your permissions are the union of those in the global scope and room scope. Interesting use case though, having fewer permissions in some rooms, so thanks for the idea!

Closing as stale.


New Item

I want a God's Golden Sword in this mod as a joke item and it's ony obtainable by using commands

cool

what does the item do?

Name: God's Golden Sword
Damage:<PHONE_NUMBER>
Durability: Unbreakable

added


Add support for rendering icons instead of images in toolbar items

The toolbar images can be now changed to icons by setting the :icon parameter for each toolbar item in the yaml file. The old :image parameter is still supported, but it has lower priority when rendering.
Example:

- :name: vm_lifecycle
  :items:
  - :buttonSelect: vm_lifecycle_choice
    :icon: fa fa-recycle
    :image: lifecycle
    :title: Lifecycle
    :text: Lifecycle
    :items:
    - :button: vm_miq_request_new
      :icon: fa fa-plus
      :image: new
      :url_parms: 'main_div'
      :text: "Provision VMs"
      :title: "Request to Provision VMs"
    - :button: vm_clone
      :icon: fa fa-copy
      :text: "Clone selected item"
      :title: "Clone this item"
      :url_parms: 'main_div'
      :enabled: 'false'
      :onwhen: '1'
    - :button: vm_publish
      :icon: fa fa-level-up
      :text: "Publish selected VM to a Template"
      :title: "Publish selected VM to a Template"
      :url_parms: 'main_div'
      :enabled: 'false'
      :onwhen: '1'
    - :button: vm_migrate
      :image: migrate
      :text: "Migrate selected items"
      :title: "Migrate selected items to another Host/Datastore"
      :url_parms: 'main_div'
      :enabled: 'false'
      :onwhen: '1+'
    - :button: vm_retire
      :image: retire
      :text: "Set Retirement Dates"
      :title: "Set Retirement Dates for the selected items"
      :url_parms: 'main_div'
      :enabled: 'false'
      :onwhen: '1+'
    - :button: vm_retire_now
      :image: retire_now
      :text: "Retire selected items"
      :title: "Retire the selected items"
      :url_parms: 'main_div'
      :confirm: "Retire the selected items?"
      :enabled: 'false'
      :onwhen: '1+'

@epwinchell : this is for you to review

@epwinchell now we can convert toolbar images to icons

:cake: