amplify push fails when using "CustomResources" stack on Mutation

Describe the bug
amplify push fails when using "CustomResources" stack on Mutation
To Reproduce
Steps to reproduce the behavior:

add the following schema with deleteBookEntityNoteByIds(bookEntityNoteIds: [ID!], notesIds: [ID!]): [BookEntityNote!]

type BookEntity @model @searchable {
  id: ID!
  bookSection: String
  bookOrder: String
  bookCode: String!
  type: String
  chapterNumber: String
  content: AWSJSON
  verseContent: AWSJSON
  elements: AWSJSON
  notes: [BookEntityNote] @connection(name: "BookEntityNotes")
}

type User @model {
  id: ID
  username: String
  currentRL: CurrentRL
}

type CurrentRL {
  bookCode: String!
  chapterNumber: String!
}

type BookEntityNote @model {
  id: ID!
  groupId: String!
  bookEntity: BookEntity! @connection(name: "BookEntityNotes")
  note: Note! @connection(name: "NoteBookEntityNotes")
  owner: String
}

type Note @model {
  id: ID!
  content: String!
  bookEntitys: [BookEntityNote!]! @connection(name: "NoteBookEntityNotes")
  owner: String
}

type Mutation {
  deleteBookEntityNoteByIds(bookEntityNoteIds: [ID!], notesIds: [ID!]): [BookEntityNote!]
}

Add custom stack:

{
	"AWSTemplateFormatVersion": "2010-09-09",
	"Description": "An auto-generated nested stack.",
	"Metadata": {},
	"Parameters": {
		"AppSyncApiId": {
			"Type": "String",
			"Description": "The id of the AppSync API associated with this project."
		},
		"AppSyncApiName": {
			"Type": "String",
			"Description": "The name of the AppSync API",
			"Default": "AppSyncSimpleTransform"
		},
		"env": {
			"Type": "String",
			"Description": "The environment name. e.g. Dev, Test, or Production",
			"Default": "NONE"
		},
		"S3DeploymentBucket": {
			"Type": "String",
			"Description": "The S3 bucket containing all deployment assets for the project."
		},
		"S3DeploymentRootKey": {
			"Type": "String",
			"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory."
		}
	},
	"Resources": {
	  "MutationDeleteBookEntityNoteByIds": {
      "Type": "AWS::AppSync::Resolver",
      "Properties": {
        "ApiId": {
          "Ref": "AppSyncApiId"
        },
        "DataSourceName": "BookEntityNoteTable",
        "TypeName": "Mutation",
        "FieldName": "deleteBookEntityNoteByIds",
        "RequestMappingTemplateS3Location": {
          "Fn::Sub": [
            "s3://${S3DeploymentBucket}/${S3DeploymentRootKey}/resolvers/Mutation.deleteBookEntityNoteByIds.req.vtl",
            {
              "S3DeploymentBucket": {
                "Ref": "S3DeploymentBucket"
              },
              "S3DeploymentRootKey": {
                "Ref": "S3DeploymentRootKey"
              }
            }
          ]
        },
        "ResponseMappingTemplateS3Location": {
          "Fn::Sub": [
            "s3://${S3DeploymentBucket}/${S3DeploymentRootKey}/resolvers/Mutation.deleteBookEntityNoteByIds.res.vtl",
            {
              "S3DeploymentBucket": {
                "Ref": "S3DeploymentBucket"
              },
              "S3DeploymentRootKey": {
                "Ref": "S3DeploymentRootKey"
              }
            }
          ]
        }
      }
    }
	},
	"Conditions": {
		"HasEnvironmentParameter": {
			"Fn::Not": [
				{
					"Fn::Equals": [
						{
							"Ref": "env"
						},
						"NONE"
					]
				}
			]
		},
		"AlwaysFalse": {
			"Fn::Equals": [
				"true",
				"false"
			]
		}
	}
}

Add the following templates in "resolvers" folder, pay attention to the table names used in the resolver's body - BookEntityNote-54gcczyxffdyjomjwzwtvztyzm-dev:

Mutation.deleteBookEntityNoteByIds.req.vtl:
#set($bookEntityNoteIds = [])
#foreach($bookEntityNoteId in ${ctx.args.bookEntityNoteIds})
    #set($map = {})
    $util.qr($map.put("id", $util.dynamodb.toString($bookEntityNoteId)))
    $util.qr($bookEntityNoteIds.add($map))
#end

#set($notesIds = [])
#foreach($noteId in ${ctx.args.notesIds})
    #set($map = {})
    $util.qr($map.put("id", $util.dynamodb.toString($noteId)))
    $util.qr($notesIds.add($map))
#end

{
    "version" : "2018-05-29",
    "operation" : "BatchDeleteItem",
    "tables" : {
        "BookEntityNote-54gcczyxffdyjomjwzwtvztyzm-dev": $util.toJson($bookEntityNoteIds),
        "Note-54gcczyxffdyjomjwzwtvztyzm-dev": $util.toJson($notesIds)
    }
}

Mutation.deleteBookEntityNoteByIds.res.vtl:
#if($ctx.error)
    $utils.appendError($ctx.error.message, $ctx.error.message)
#end
$util.toJson($ctx.result.data["BookEntityNote-54gcczyxffdyjomjwzwtvztyzm-dev"])

run amplify push.

you should get the following error log:

UPDATE_FAILED               CustomResourcesjson                       AWS::CloudFormation::Stack Wed Feb 20 2019 10:17:05 GMT+0600 (East Kazakhstan Time) Embedded stack arn:aws:cloudformation:eu-central-1:586078097661:stack/cars-20190220085119-apicars-1B26W6W5CQO3L-CustomResourcesjson-G2268HY8JOMP/780cd140-34bd-11e9-8c60-06537af0a09a was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [MutationDeleteBookEntityNoteByIds].
UPDATE_ROLLBACK_IN_PROGRESS cars-20190220085119-apicars-1B26W6W5CQO3L AWS::CloudFormation::Stack Wed Feb 20 2019 10:17:05 GMT+0600 (East Kazakhstan Time) The following resource(s) failed to update: [CustomResourcesjson].
UPDATE_FAILED               apicars                                   AWS::CloudFormation::Stack Wed Feb 20 2019 10:17:11 GMT+0600 (East Kazakhstan Time) Embedded stack arn:aws:cloudformation:eu-central-1:586078097661:stack/cars-20190220085119-apicars-1B26W6W5CQO3L/b53db680-34bb-11e9-8c60-06537af0a09a was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [CustomResourcesjson].
UPDATE_ROLLBACK_IN_PROGRESS cars-20190220085119                       AWS::CloudFormation::Stack Wed Feb 20 2019 10:17:12 GMT+0600 (East Kazakhstan Time) The following resource(s) failed to update: [apicars].

Expected behavior
amplify push to deploy custom stack.
Desktop (please complete the following information):

OS: iOS
amplify cli version: 1.1.2

Is there any news on this issue? We are stuck for several days because of it.

I ran across this issue and I've been working with this on my project and thought I'd give you a few tips. The first one is that you can usually get more detailed error messages from the Cloudformation console. The stack operations are logged in detail there.
If this is the first time you've built the model, you might try pushing w/o the custom resolver stack first, then add the stack in and push. I'm still looking for some time to test some cases but I've noticed some chicken and egg problems pushing custom stacks. It might be that your data source reference is not there yet and pushing the base model w/o the stack should remedy that.
I also copy/pasted your custom stack JSON into my IDE to look at it and compare it to a working version I have. I didn't notice any syntax errors but I did notice something. This might be an artifact of copying from the HTML page, but there was a hidden whitespace character that my IDE linter was barfing on. I deleted it and added back a carriage return, it's immediately after the first curly brace. Again, this might just be on my end, but I've seen these survive copy/paste into forums like this before. You might try removing everything after the first curly brace up to the first quotation mark and running the stack through again.
Hope this helps.

I update amplify cli to 1.1.6 and now I am getting this error on amplify push
CREATE_FAILED      MutationDeleteBookEntityNoteByIds AWS::AppSync::Resolver Thu Feb 28 2019 13:39:47 GMT+0600 (East Kazakhstan Time) The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: B1102F1AA4477F1F; S3 Extended Request ID: KHZj6dMAPy+0P2gZ+jzvb+nXixvwhD8QP8fKL1dYvRLoN7fspdcQLGlfu9PSUoL2U9AQz65TBwc=)

I update amplify cli to 1.1.6 and now I am getting this error on amplify push
CREATE_FAILED      MutationDeleteBookEntityNoteByIds AWS::AppSync::Resolver Thu Feb 28 2019 13:39:47 GMT+0600 (East Kazakhstan Time) The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: B1102F1AA4477F1F; S3 Extended Request ID: KHZj6dMAPy+0P2gZ+jzvb+nXixvwhD8QP8fKL1dYvRLoN7fspdcQLGlfu9PSUoL2U9AQz65TBwc=)

In my experience that typically means it can't find the request or resolver template in /amplify/backend/api/%api-name%/resolvers/
but generally it means it can't find some reference in cloudfront stack definition/JSON

Sorry, it was my bad in file naming for a custom template resolver.

Sorry, it was my bad in file naming for a custom template resolver.

How could you solve this? I'm facing the same issue!


Keep-Alive

Should these have the Keep-Alive attribute?
<httpProtocol allowKeepAlive="true">

Technically no, standard 'wanted' behaviour for most sites is true; and true is default :)
Specifies whether keep-alive processing is permitted (true) or not (false).

The default value is true.

https://www.iis.net/configreference/system.webserver/httpprotocol

Ah so only need to specify the true if its been turned off by the server admins?

@AaronLayton yeah you can change the defaults at server level in IIS manager; it would be odd to disable it by default but there's always some well meaning fool :)
As above I'll probably add it in with some notes.
Out of interest what version of IIS are you using (trying to gauge use).

using IIS 7.5 ;-)
On 18 January 2016 at 09:23, Chris McKee<EMAIL_ADDRESS>wrote:

@AaronLayton https://github.com/AaronLayton yeah you can change the
defaults at server level in IIS manager; it would be odd to disable it by
default but there's always some well meaning fool :)
As above I'll probably add it in with some notes.
Out of interest what version of IIS are you using (trying to gauge use).
—
Reply to this email directly or view it on GitHub
https://github.com/h5bp/server-configs-iis/issues/29#issuecomment-172472968
.

Ta :+1:


Cant install nokogiri gem. Please advice

"arm-linux-androideabi-clang -o conftest -I/data/data/com.termux/files/usr/include/ruby-2.6.0/arm-linux-androideabi -I/data/data/com.termux/files/usr/include/ruby-2.6.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.6.0 -I. -I/data/data/com.termux/files/usr/include    -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -Oz -fPIC  conftest.c  -L. -L/data/data/com.termux/files/usr/lib -L. -L/data/data/com.termux/files/usr/lib -march=armv7-a -landroid-support -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby  -lm   -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char *argv)
4: {
5:   return 0;
6: }
/ end */
"arm-linux-androideabi-clang -I/data/data/com.termux/files/usr/include/ruby-2.6.0/arm-linux-androideabi -I/data/data/com.termux/files/usr/include/ruby-2.6.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.6.0 -I. -I/data/data/com.termux/files/usr/include    -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -Oz -fPIC    -Werror -c conftest.c"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: int main() {return 0;}
/ end */
"pkg-config --exists libxml-2.0"
WARNING: linker: Unsupported flags DT_FLAGS_1=0x8
| pkg-config --libs libxml-2.0
=> "Warning: linker: Unsupported flags DT_FLAGS_1=0x8\n"
=> "-L/data/data/com.termux/files/usr/lib -lxml2\n"
"arm-linux-androideabi-clang -o confteI/data/data/com.termux/files/usr/include/ruby-2.6.0/arm-linux-androideabi -I/data/data/com.termux/files/usr/include/ruby-2.6.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.6.0 -I. -I/data/data/com.termux/files/usr/include    -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -Oz -fPIC  -g -DXP_UNIX conftest.c  -L. -L/data/data/com.termux/files/usr/lib -L. -L/data/data/com.termux/files/usr/lib -march=armv7-a -landroid-support -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby WARNING: linker: Unsupported flags DT_FLAGS_1=0x8
-L/data/data/com.termux/files/usr/lib -lxml2 -lm   -lc "
clang-7: error: no such file or directory: 'WARNING:'
clang-7: error: no such file or directory: 'linker:'
clang-7: error: no such file or directory: 'Unsupported'
clang-7: error: no such file or directory: 'flags'
clang-7: error: no such file or directory: 'DT_FLAGS_1=0x8'
sh: 2: -L/data/data/com.termux/files/usr/lib: not found
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char *argv)
4: {
5:   return 0;
6: }
/ end */
package configuration for libxml-2.0 is not found
have_package: checking for libxml-2.0... -------------------- yes

Don’t want to open a new issue that duplicates this but wish some more context had been added here as I am also experiencing this issue.
I’m on the latest version of MaOS and cannot bundle or gem install the latest release of this gem with a very similar error. Happy to provide more info if needed.

Hi, I wish you had used the template offered by github for installation issues. There are both helpful hints in it and it asks the appropriate questions for us to be able to start helping you.
It appears you're trying to build Nokogiri on an ARM platform of some sort; can you please answer the questions from the issue template:

Have you read and followed the advice in the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?
What is the complete output of gem install?
Please make sure the escape the file contents with triple-backticks.
What are the complete contents of the mkmf.log file generated during the failed installation?
Please make sure the escape the file contents with triple-backticks.
What operating system are you using?
Are you using Linux, MacOS, Windows, a BSD variant, or something else entirely?
If MacOS, please note the version of XCode you have installed.
If Linux, please include the output of uname -a and the contents of /etc/lsb-release.
If Windows, please note whether you're installing the precompiled gems, or compiling yourself with DevKit. Also please note the version of RubyInstaller you've installed.

@andrewmcodes your issue most certainly was not the same as the OP if you are on MacOS. The issue you probably ran into, and that the linked issue addresses, was fixed in v1.9.0 (see #1812 and #1813).

@flavorjones gotcha! My issue popped up after upgrading some brew packages and then trying to bundle v1.10.2 but looks like it was just bc of my local setup


ADD AIP-4: Add ARweave Protocol support to URN and implement compatibility with DMint

Commit a pull request to Atomicals AIPs :
AIP-4: Add ARweave Protocol support to URN and implement compatibility with DMint

Having support for multiple secondary blockchains (such as ARweave) seems like a good idea. It should be generalized to support other blockchains for data storage too +1

aip-4 updated, applying a whole new non-intrusive implementation specification


Support cq color as show_model color option

This way predefined colors like red could be used.

fixed in 8c5fe36


Pyinstaller Problems

I use the module version of this theme in one of my apps, and it all works, as long as i dont compile it. When i compile the app with pyinstaller, i get an error when opening the exe.

How do i fix this?

Yeah, same here on Linux.
Traceback (most recent call last):
  File "FPC.py", line 67, in <module>
    sv_ttk.set_theme("dark")
  File "sv_ttk/__init__.py", line 18, in wrapper
_tkinter.TclError: couldn't read file "/tmp/_MEIhA7lFH/sv_ttk/sun-valley.tcl": no such file or directory
[5417] Failed to execute script 'FPC' due to unhandled exception!

Looks like Pyinstaller doesn't include the theme files, only the Python module file. I think it's possible to solve it by editing the .spec file, but I'll have to look into it.

I have the same problem.When i compile the app with pyinstaller, i get an error when opening the exe.

@rdbende Should i open an issue in the pyinstaller repo?

I found out the problem. Pyinstaller only includes the .py files when creating the exe so the .tcl and .png files will not get included. This cann be fixed by the -add-data option

I FOUND A FIX GUYS!!!!!!
and yes @sumeshir26 yours didnt work.
everything you have to do, is add the following flag to your pyinstaller command:
--collect-data sv_ttk

im so happy


IndexError: index 1 is out of bounds for axis 0 with size 1

xray_classification_with_tpus.ipynb
show_batch(image_batch.numpy(), label_batch.numpy())

IndexError                                Traceback (most recent call last)
 in <cell line: 1>()
----> 1 show_batch(image_batch.numpy(), label_batch.numpy())
 in show_batch(image_batch, label_batch)
3     for n in range(25):
4         ax = plt.subplot(5, 5, n + 1)
----> 5         plt.imshow(image_batch[n] / 255)
6         if label_batch[n]:
7             plt.title("PNEUMONIA")
IndexError: index 1 is out of bounds for axis 0 with size 1

Hi @mikechen66 ,
The example is working fine without any error. Please refer to the attached gist here.
Could you please confirm whether you have done any changes to the code ?


Change the output to say "Hey hey hey "

Change the output to say "Hey hey hey " instead of "Hello there "

Fixed via 2a85445


Tweak: Mica in address bar row instead of only the tab row for default style. (Windows 11 Explorer-style tabs)

Currently, the look of edge-frfox with Mica enabled (and floating tabs disabled) only has Mica in the tab row, with the address bar row being completely opaque.
Some may want for there to also be transparency in the address bar row too, without it being limited to just the tab row.
I propose for there to be a tweak that enables for the address bar row to be a lighter shade of Mica. I don't suggest for this to replace the current functionality, but I suggest for it to be an alternative tweak to those who may want it.
Here's an example where Mica extends under the tab row, where there are two shades of Mica. This screenshot is from File Explorer on the Beta channel of the Windows Insider Program.

Closing this due to Mica being no longer supported.


Programming solutions

Uploading some of my solutions for the OTP based programming. I'll finish later.

This is fantastic! I'll get it applied, please let me know how I can best attribute where it came from. Twitter account, blog etc


Support centos based distro netdata

Last step in pytest not working for no apparent reason.

ready for merge


K8SPXC-1142: Use a single connection for grants on startup

Test name
Status

We run 0 out of 36

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1279/commits/9bd6afac6e18d45d8e6008b833b5003727a25d55
image: perconalab/percona-xtradb-cluster-operator:PR-1279-9bd6afac

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
failed

demand-backup-8-0
failed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
failed

haproxy-5-7
failed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-8-0
passed

scaling-proxysql-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
failed

validation-hook-8-0
passed

We run 36 out of 36

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1279/commits/7e63de55e6b5764634ecbdccccd922f7e623411e
image: perconalab/percona-xtradb-cluster-operator:PR-1279-7e63de55


Add folder content to a another parent folder

Hey. Is there a way to add files inside a folder to a another parent folder?
i found that: #422
gdrive.exe list -q "'FOLDER_ID' in parents" --no-header --max 0 | cut -d" " -f1 - | xargs -L 1 gdrive delete -r
I'm on Windows 10 so i installed a Linux subsystem so i can use those commands. I edited a bit to that:
gdrive.exe list -q "'FOLDER_ID' in parents" --no-header --max 0 | cut -d" " -f1 - | xargs -L 1 gdrive.exe update -r -p PARENT_ID
Reminder: I used gdrive.exe so gdrive is being detected.
I'm not a skilled programmer. I only understand the basic. But if i'm correct it should update the files inside the folder to an another parent folder.
I don't do it with the folder because the folders should use different name where i want the files to be.

I think moving files around in the drive feature is missing

That would be great to be able to attach a file to more than 1 directory (this feature exists in Google Drive) and such a usage is very handy to regroup files for specific people
Beiing able to do so on folders too would be great !

@mbenlioglu
Yeah moving files is also missing.

Yeah, that too.


Fixes ISSUE #2254.

Fixes ISSUE #2254.

Welcome to EventMesh😁 @momoxiaohaiya

Hi, thanks for your contribution. It seems code style has some problem. You could refer to https://eventmesh.apache.org/community/contribute#code-style


[REQUEST] HELP

anybody can help me for this
how i can do this clone ---> openable .exe ?

when i start source from visual studio its says

I don't think anyone understood a thing. Please explain.

i want to use this version but i cant whyi click reconfigure it but its says tons of errrors xD

i do this steps but i cant its say tons of errors dude pls help me @openbullet
Make sure you have installed the .NET framework (dev) 4.6.1 (I will retarget to a more recent one soon).
Clone this repository and open the solution file with Visual Studio.
Switch to Release mode for a much cleaner output.
Build the solution (Visual Studio will fetch all the missing nuget packages).
You can find the executables inside the folders OpenBullet/bin/Release and OpenBulletCLI/bin/Release.

 Make sure you're using VS 2017 or 2019. Also can you translate the error you're getting into English? (The red one)

anyway maybe its my fault bcs if i scrape ur source from link i can create without problem :) so u can close this issues


Bolt general use issues on deployment

Describe the bug
Hello Community!
Just got Bolt deployed in a docker config with a valid Traefik Let's Encrypt cert in production.
General use seems ok but...

I am getting step-by-step guides without implementation.
Errors on creating an app or if an app is created, it will not continue with errors on both sometimes. Note the example log below.
Tried using Groq with llama 3.1 70b but found had a rate limit on the first prompt but did not know unless I looked at the docker logs.
When an app is created it will not launch the dev environment or will not refresh if reprompted.
Get No preview available on some apps for the preview.

Log of that error: cat /home/.npm/_logs/2024-11-19T20_00_39_868Z-debug-0.log
0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using<EMAIL_ADDRESS>2 info using<EMAIL_ADDRESS>3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 0ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/home/project/.npmrc Completed in 4ms
10 timing config:load:project Completed in 26ms
11 timing config:load:file:/home/.npmrc Completed in 14ms
12 timing config:load:user Completed in 14ms
13 timing config:load:file:/usr/local/etc/npmrc Completed in 4ms
14 timing config:load:global Completed in 4ms
15 timing config:load:flatten Completed in 1ms
16 timing config:load:setEnvs Completed in 0ms
17 timing config:load Completed in 49ms
18 timing npm:load:configload Completed in 49ms
19 timing npm:load:mkdirpcache Completed in 1ms
20 timing npm:load:mkdirplogs Completed in 0ms
21 verbose title npm run dev
22 verbose argv "run" "dev"
23 timing npm:load:setTitle Completed in 1ms
24 timing npm:load:display Completed in 0ms
25 verbose logfile logs-max:10 dir:/home/.npm/_logs/2024-11-19T20_00_39_868Z-
26 verbose logfile /home/.npm/_logs/2024-11-19T20_00_39_868Z-debug-0.log
27 timing npm:load:logFile Completed in 5ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 59ms
31 timing command:run Completed in 4ms
32 verbose stack ENOENT: no such file or directory, open '/home/project/package.json'
33 verbose cwd /home/project
34 verbose Linux 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
35 verbose node v18.20.3
36 verbose npm  v10.2.3
37 error code ENOENT
38 error syscall open
39 error path /home/project/package.json
40 error errno -2
41 error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/project/package.json'
42 error enoent This is related to npm not being able to find a file.
42 error enoent
43 verbose exit -2
44 timing npm Completed in 81ms
45 verbose code -2
46 error A complete log of this run can be found in: /home/.npm/_logs/2024-11-19T20_00_39_868Z-debug-0.log
Link to the Bolt URL that caused the error
https://bolt.local.mydomain.ca/
Steps to reproduce

On the main page choose any of the examples for apps to create with any Groq model or Mistrial (Only APIs configured)
When the next screen is presented will have issues with tryting to reprompt, refreshing page, will not create files sometimes, etc...

Expected behavior
Act like the online Bolt.new page and work on app creation or prompts.
Screen Recording / Screenshot

Platform

Client OS: [Tried Windows 10 and Ubuntu Linux Ubuntu 24.04.1 LTS]
Browser: [Google Chrome and Firefox]
Version: [I think its aac9a98, 8 hours ago]
Server OS: Ubuntu server Ubuntu 22.04.5 LTS. Docker version 27.3.1, build ce12230

Additional context
I am quite sure it's a config but not sure, seems related to the web container technology but still unsure.

Failure to initialize vite properly is responsible for the majority of these issues in my experience via smaller models. There should be some prioritized updates that come through to address these and other scenarios, it is very important to myself as a consumer/user.

Thank you! Are you able to update me and I can redeploy and test? Thank you @chrismahoney !

please try the latest version


Support configuring skip-nodes-with-local-storage via shoot

How to categorize this issue?

/area auto-scaling
/kind enhancement
What would you like to be added:
Currently, the cluster autoscaler behaviour can be customized via shoot spec and it's nice, but not all the fields can be configured using the mechanism.
In our use case, we'd need to set skip-nodes-with-local-storage=true and checking gardener autoscaler, it supports it. The current problem is that the shoot spec doesn't expose that specific flag
Why is this needed:
There are multiple admission webhooks that injects an emptyDir volume using the node storage (e.g: Linkerd), and this is treated as a local volume. emptyDir is an ephemeral storage indeed, but the cluster autoscaler only treats it as ephemeral if it's in memory:

As user, I'd like to have the control over the cluster autoscaler behaviour to configure it. I know that we can just mark everything as safe to evict, but it's complex with 3rd party softwares because they don't always offer that extension point
I've checked the current scenario and I think that adding the flag is quite easy (please correct me if you don't think it so), so I'm willing to draft a PR with the changes if you think that this is worth

Well, this issue doesn't apply because the value that we need is 'false' indeed (sorry for the noise :( ). I can close it or just support the feature if you think that it's worth to continue with the PR

I suggest closing this issue and the PR if there is no concrete ask for the feature. If the need arises, we can revisit them.
If you agree, feel free to close both the issue and PR :)


benchmarks: only log the spammy iterations completed message if -v is set

Only log to error log iff the -v flag is set, this prevents spammy logs and burning unnecessary time and logs.
Fixes #552

Kindly cc-ing @marbar3778.


Feature/txresp fix proto

This pr introduces a hash inside ToriiResponse that require for #712
Besides there's a test that checks hash in torii service output
How to check that it works
make -j10 && test_bin/torii_service_test
test_bin/shared_proto_tx_response_test remain unbroken (just added additional check for hash)

Codecov Report

Merging #723 into feature/shared_model-proto-txresp will increase coverage by 0.02%.
The diff coverage is 37.09%.

@@                          Coverage Diff                          @@
##           feature/shared_model-proto-txresp     #723      +/-   ##
=====================================================================
+ Coverage                              43.32%   43.34%   +0.02%
=====================================================================
  Files                                    317      317
  Lines                                  12217    12234      +17
  Branches                                6667     6684      +17
=====================================================================
+ Hits                                    5293     5303      +10
+ Misses                                   806      791      -15
- Partials                                6118     6140      +22

Impacted Files
Coverage Δ

test/module/irohad/torii/torii_service_test.cpp
26.55% <17.39%> (-0.61%)
:arrow_down:

irohad/torii/impl/command_service.cpp
42.22% <45.45%> (-6.76%)
:arrow_down:

...el/backend_proto/shared_proto_tx_response_test.cpp
45.45% <66.66%> (+2.12%)
:arrow_up:

...otobuf/transaction_responses/proto_tx_response.hpp
66.66% <66.66%> (+12.12%)
:arrow_up:

shared_model/utils/reference_holder.hpp
66.66% <0%> (+2.38%)
:arrow_up:

shared_model/cryptography/hash.hpp
16.66% <0%> (+16.66%)
:arrow_up:

shared_model/cryptography/blob.hpp
23.52% <0%> (+23.52%)
:arrow_up:

Continue to review full report at Codecov.

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


Test and certify CENTOS/RHEL 7.9

We'd like to add CentOS and RHEL 7.9 to the SLA Support matrix for upcoming Rancher 2.4.11 and 2.5.3 planned for release 11/30.
This will need testing soon, and well before the 11/30 release date so we can update our draft of the support matrix ahead of time.
Testing should cover these specific versions:

v1.18.12+k3s1
v1.19.3+k3s3
v1.19.4+k3s1

Ensure that:

Installs fine on nodes. No obvious issues.
Can add as downstream cluster in Rancher 2.4.11 RC and 2.5.3 RC. No obvious issues.
Can run as Rancher control plane for specifically Rancher 2.5.3 RC. No obvious issues.

Validated k3s on 2.5.3 rc as downstream cluster

Validated k3s on 2.4.11 rc as downstream cluster


Configure retry in Istio for HTTPS external services

I am trying to configure retry in Istio for HTTPS external services , I already build a mock to test its response with different error, the current behavior as follow
if the service return 503 -> ISTIO retry 3 times I see it logged in my mock services  in less than 2 seconds and return with 503 which is expected but  I am expecting more retries
in case of 502, 504 , 500 or any other error it return instantaneously with the error and hit the backend only onetime
The external service is HTTPS, that is why I am using TLS origination
BTW, this behavior is same regardless the retries configuration in virtual services or even if I do not use it all , I assume it is default behavior
I also tried retryon 5xx,  502, and 504 explicitly
I am trying by exec a pod with sidecar already injected and curl the endpoints  using the http:// not https://
Configuration used
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: test-test-node.au-syd.mybluemix.net
spec:
  hosts:
  - test-test-node.au-syd.mybluemix.net
  ports:
  - number: 80
    name: http-port
    protocol: HTTP
  - number: 443
    name: https-port
    protocol: HTTPS
  resolution: DNS
--
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: node-outbound
spec:
  hosts:
  - test-test-node.au-syd.mybluemix.net
  http:
  - route:
    timeout: 200s
    retries:
      attempts: 15
      perTryTimeout: 5s
      retryOn: "500,502,503,504"
    - destination:
        host: test-test-node.au-syd.mybluemix.net
        port:
          number: 443
        subset: tls-origination
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  name: node-red-destination
spec:
  host: test-test-node.au-syd.mybluemix.net
  subsets:
  - name: tls-origination
    trafficPolicy:
      loadBalancer:
        simple: ROUND_ROBIN
      portLevelSettings:
      - port:
          number: 443
        tls:
          mode: SIMPLE

Bug description
Retry behavior is same regardless the configuration used in virtual services when using external service, it always retry 3 times only for 503 only
Expected behavior
The service will retry the for the number of attempts mentioned in virtual service 15 in my example, for 502,503, 504
Steps to reproduce the bug
Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
istioctl version --remote
client version: 1.5.0
control plane version: 1.5.0
data plane version: 1.5.0 (13 proxies)
kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.10+IKS", GitCommit:"18e8565daf60eb3a20c0ac29a7d3a93622659e4d", GitTreeState:"clean", BuildDate:"2020-01-16T04:08:27Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
helm version
Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.1", GitCommit:"6af75a8fd72e2aa18a2b278cfe5c7a1c5feca7f2", GitTreeState:"clean"}
How was Istio installed?
Helm chart on Kubernetes 1.14, Istio 1.5
Environment where bug was observed (cloud vendor, OS, etc)
IBM Cloud Kubernetes Services
Ubuntu 18.04
Related issues
https://github.com/istio/istio/issues/13775

@ahmadsayed retryOn: "500,502,503,504" is not valid. https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter.html#x-envoy-retry-on

@hzxuzhonghu I tried all combination, 5xx,  or even 503 the problem,
also '      retryOn: gateway-error,connect-failure,refused-stream'
I even tried to remove the
whole section
    retries:
      attempts: 15
      perTryTimeout: 5s
      retryOn: "500,502,503,504"

the problem that regardless of what I do the behavior is exactly the same
retry only on 503 3 times

I think i found a way to do it, i tried to use egress gateway with TLS origination , instead of Egress TLS origination and I started to notice the retry behaviors started to change according to the configuration
Do you think this issue still valid, and it need to be handled for egress without gateway as well ??!!
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: direct-cnn-through-egress-gateway
  namespace: istio-system
spec:
  gateways:
  - istio-egressgateway
  - mesh
  hosts:
  - test-test-node.au-syd.mybluemix.net
  http:
  - match:
    - gateways:
      - mesh
      port: 80
    retries:
      attempts: 5
      retryOn: 5xx
    route:
    - destination:
        host: istio-egressgateway.istio-system.svc.cluster.local
        port:
          number: 80
        subset: cnn
      weight: 100
  - match:
    - gateways:
      - istio-egressgateway
      port: 80
    retries:
      attempts: 5
      retryOn: 5xx
    route:
    - destination:
        host: test-test-node.au-syd.mybluemix.net
        port:
          number: 443
      weight: 100

Sorry to misread your configs, it is https, and in envoy it is handled similar to tcp, no response code can be sensed.
So with the above config, app--[http]-->egressgateway-[https]->external https service. It works, but you can not access https in your app

@hzxuzhonghu here is the scenario as per my understanding for istio I hope it is correct
External services : Scenario 1
app--[https]--sidecar(bypass)-> external https services, works all http traffic will not work expected
External Services with TLS origination Scenario 2
app--[http]--sidecar--[https]-->external services, works but http traffic and attempts does not work
External Services with Egress Gateway and TLS Origination Scenario 3
app-[http]--sidecar=[http]-->egressgateway-[https]-->externl services, Works and Traffic management like retry works fine
Scenario 1 works as expected, Scenario 3 Works as expected
for Scenario 2 is the scenario where I opened the issue,  it TLS origination without egress gateway, I am not sure if the retry and attempts should be handled here or not.

I think it should work for Scenario2 too. @rshriram Is this right?

hmm.. it should work for scenario 2 if we are originating TLS

@ahmadsayed can you post the whole working example with istio-egressgateway?
I also can't get it to work the classic way with the normal TLS origination. The timeout functionality works as expected, but the none of the retry policies seems to catch on.
With istio-egressgateway is the VirtualService enough or do I still need ServiceEntry and/or DestinationRule?
Thanks!

@hugree

@hugree
I used Service Entry and two destination rules
I followed this example
https://istio.io/docs/tasks/traffic-management/egress/egress-gateway-tls-origination/
if you need to add retry logic add it to the virtual service

@ahmadsayed it's not clear to me why 400ms / 500ms is not enough, but having perTryTimeout too low makes it UT all the time.
Not sure if that helps you.
Source is this SO question - https://stackoverflow.com/questions/56055431/how-to-configure-tls-origination-in-istio

@Kyslik  in my initial post, I made the timeout 20 s and I even reachout 200 s, and the perTryTimeout was 5 seconds,

Could anyone proof that Senario 2 works? #17613 seems to be related to me and is closed, but I am still not able to get the retries triggered on eg. 5xx.


fix(combobox): allow selected values to be updated through setValue

Closes #1166

Everything else looks good BTW, I'm just curious what effect removing that one line has?


How do I introduce trust-core c++ code into my Golang project?

Hello !
How do I introduce trust-core C++ language code into my Golang project?
Our project wants to access several of these currencies, but it won't work after trying.😔
> Executing task: clang++ ./tests/main.cpp -g <

In file included from ./tests/main.cpp:14:
In file included from /usr/local/include/gtest/gtest.h:62:
In file included from /usr/local/include/gtest/internal/gtest-internal.h:40:
/usr/local/include/gtest/internal/gtest-port.h:825:12: error: no member named 'make_tuple' in namespace 'std'
using std::make_tuple;
      ~~~~~^
/usr/local/include/gtest/internal/gtest-port.h:826:12: error: no member named 'tuple' in namespace 'std'
using std::tuple;
      ~~~~~^
/usr/local/include/gtest/internal/gtest-port.h:905:3: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
  GTEST_DISALLOW_ASSIGN_(RE);
  ^
/usr/local/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
  void operator=(type const &) = delete
                                 ^
/usr/local/include/gtest/internal/gtest-port.h:948:3: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
  GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestLog);
  ^

/usr/local/include/gtest/internal/gtest-internal.h:1226:11: error: expected unqualified-id
constexpr bool RegisterTypedTestCase_P_IsDeprecated() { return true; }
          ^
/usr/local/include/gtest/internal/gtest-internal.h:1231:1: error: unknown type name 'constexpr'
constexpr bool InstantiateTypedTestCase_P_IsDeprecated() { return true; }
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
81 warnings and 20 errors generated.
终端进程已终止，退出代码: 1

C++ Version:
Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

macOS Version: 10.14.5
Is there an example of c++ code for golang access trust? Or the solution, we need it very much!  🤔

English is not my native language; please excuse typing errors.

Did you follow https://developer.trustwallet.com/wallet-core/contributing? it builds fine on macOS

@hewigovens
I have tried this environment configuration, but I can't solve the current problem.
Our requirement is to introduce the code of several currency transaction signatures in the trust wallet c++ language in the golang project, and then package it for iOS and Android APP, but It seems that I can only use the code of the golang reference trust wallet c++ language to write it again.🌝

We haven't tried calling from go code, it should work (after compiling)

headers: include/TrustWalletCore
libs: build/lib*.a

@hewigovens
Hello, thank you very much for your suggestion. I tried to use the .a static library in golang, but I have the following error, the example code is here：
Undefined symbols for architecture x86_64:
  "_TWHDWalletIsValid", referenced from:
      __cgo_63a67a486bb0_Cfunc_TWHDWalletIsValid in _x002.o
     (maybe you meant: __cgo_63a67a486bb0_Cfunc_TWHDWalletIsValid)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Process exiting with code: 1

A few things:

not just libTrustWalletCore.a, but also libprotobuf.a, trezor-crypto/libTrezorCrypto.a
link libc++ not libstdc++

But I did not find trezor-crypto/libTrezorCrypto.a

In addition, I would like to ask you what compiler tool you are using. I want to try running the wallet-core project and see the compilation results.
However, it is currently not working in VSCode of macOS, and it encounters the most recent error.

full path: build/trezor-crypto/libTrezorCrypto.a, wallet core needs clang

Ok, I figured it out, try this code:
package main

// #cgo CFLAGS: -I${SRCDIR}
// #cgo LDFLAGS: -L${SRCDIR} -lTrezorCrypto -lTrustWalletCore -lprotobuf -lc++
// #include "TWHDWallet.h"
// #include "TWString.h"
import "C"

import "fmt"

func main() {
	fmt.Print("I'm log.")
	test()
}

func test() {
	fmt.Println("--------------------")
	str := C.TWStringCreateWithUTF8Bytes(C.CString("L3fi366VNv7arRq5FSbiN6tcJJB4"))
	a := C.TWHDWalletIsValid(str)
	fmt.Println("Res = ", a)
}

@hewigovens
Thank you very much!  It's finally working!😋


OSX Mojave dark theme results in ADS initial run starting in dark theme before flashing over to default light

Azure Data Studio Version: 1-7-0-insider
System OS: MacOS 10.4.4 Mojave

Steps to Reproduce:

If ADS is installed, completely uninstall
Change system theme (Mojave) to Dark
Open ADS
Observe the flash as ADS starts in dark theme but then switches over to light

Intended behavior:
Similar to VS Code, the default application theme should show without interference from the system OS theme.
Link to screen recording (Internal MSFT access only):

Closing older issues.  I haven't observed this behavior on recent builds.  Please let us know if this issue is still impacting your scenario.


Change logging to use arrow emoji/unicode instead of indenting and space to print out values

Done; going to merge in next release


Duplicate/copy selected tasklists?

Sometimes, I'd like to copy a tasklist -- e.g., a completed list from say, last year or a template.  It would be very handy if there was an option/workflow to export/import single/multiple tasklists similarly to the way one can export/import one's entire google task list, to simulate copying one or more task lists.
If an entire workflow like this couldn't be implemented, other options:

export specific tasklists by name
extract single/multiple tasklists from a gtbak file, maybe via command-line utility
select single/multiple tasklists for reimport by name from the import page

would be just as helpful.
In any event, thanks for a great pair of services.

This would add a LOT of complexity to GTB, and is not directly related to GTB's primary focus, which is to allow a user to backup their tasks.
As a possible workaround, you could export using the "Import/Export CSV" format, then use a spreadsheet application to select/manipulate the exported data, before re-importing with GTI.


Automatic creation of queue does not work (v1.4.6)

I updated elasticmq version from 1.4.5 to 1.4.6 and now automatic queue generation is not working.
Any ideas on this issue?
# docker-compose.yml
  elasticmq:
    build:
      context: .
      dockerfile: Dockerfile-elasticmq
    image: elasticmq:1.0.0
    ports:
      - "9324:9324"
      - "9325:9325"
    volumes:
      - ./config/elasticmq/custom.conf:/opt/elasticmq.conf

# Dockerfile-elasticmq
FROM softwaremill/elasticmq-native:1.4.6

# config/elasticmq/custom.conf
include classpath("application.conf")

queues {
  "default-dead-letters" {
    defaultVisibilityTimeout = 600 seconds
    delay = 0 seconds
    receiveMessageWait = 0 seconds
  }
  "default" {
    defaultVisibilityTimeout = 600 seconds
    delay = 0 seconds
    receiveMessageWait = 0 seconds
    deadLettersQueue {
      name = "default-dead-letters.fifo"
      maxReceiveCount = 100
    }
  }
}

Thanks for reporting the issue. It should be fixed in v1.4.7


[Request] Allowing export the db to binary file from vfs

Hi, thanks for the library. So far so good :)
One feature local-db need is ability to export the file so user can store or backup. I see in original repo wa-sqlite the author has a demo for exporting IndexedDB vfs : https://github.com/rhashimoto/wa-sqlite/blob/master/demo/file/service-worker.js

Nice work, PR welcome!
And, if you are using useOpfsStorage, you can directly download from OPFS: The db file has same structure as native filesystem.

Yah you're right!
I re-check that my code only work in IndexedDB. I tried to make PR but my TS is weak to wrestling with it + wasm modules :(

I think it's not your bad. wa-sqlite itself is lack of typescript support, and that's one of the main reason why I make this wrapper😅

Add some type declaration patches

Thanks for your kindness~
https://afdian.com/a/subframe7536

Just sent from Paypal, this redirected page is confused. I checked my Paypal then see the successful payment.

export seems works, but import with useIDBMemoryStorage failed due to its implemention.

Thanks for following this :)
Btw, last time I used IDB vfs, it's not stable yet, I think it has some bugs in upstream, so currently I use Opfs

Almost complete, waiting for upstream fix

Yay, I watching repo and waiting the release :)

Just copy the source code and fix it in v0.5.0-beta.2

Niceeee, let me try update my deps and try it :)

Btw, just curious, I reading source code of v0.5, without context, this fileId contant looks a bit magic
https://github.com/subframe7536/sqlite-wasm/blob/main/src/io/import.ts#L88

Just a copy of the file demo...
https://github.com/rhashimoto/wa-sqlite/blob/3c202615ed6f54ef47610c40281e454dcceb7073/demo/file/index.js#L176

Release in v0.5.0


yaml triggers doc

@chrisrpatterson One other thing came up.  It would be really ideal if the triggers could launch the jobs with specified parameters.  This allow more code sharing.  For instance, recently we've had issues with our official product build testing.  We launch full builds overnight and would like to schedule one with testing on, and one with testing off.  But the current triggers only launch with the defaults.  In both the yaml and web interface world, that really only leaves you with the option of cloning the file/definition, which is non-ideal.

@chrisrpatterson Any comment on the triggers with non-default parameters?

I split this into two PRs. One that is just for CI trigger features that are in master of VSTS. And this one, will track trigger features that aren't implemented yet.

@vtbassmatt - Can you take a look at this one?


[HUDI-7327] remove meta cols from incoming schema in stream sync

Change Logs
hoodie.write.handle.missing.cols.with.lossless.type.promotion does not work with HoodieIncrSource unless meta cols are dropped
Impact
allow hoodie.write.handle.missing.cols.with.lossless.type.promotion to be used with HoodieIncrSource even when meta cols aren't dropped
Risk level (write none, low medium or high below)
low
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

hey @jonvex : guess we missed to cherry pick the config fix patch into 0.14.1
can you put up a patch to revert the naming change. we can keep it as old name only (hoodie.write.set.null.for.missing.columns)

or lets add old one as alias to new one in this patch.


Numba 0.53.0rc2 function-as-argument caching fails some of the time

Reporting a bug

[x] I have tried using the latest released version of Numba
[x] I have included a self contained code sample to reproduce the problem.

I really love the function specialization new feature in numba 0.53! The performance gains for me are unreal, and it also offers an insane level of flexibility compared to the previous versions of numba.
I have found a case where it appears to fail for mysterious reasons however. The following case is brenth's method on a basic objective function, and the caching does not work:
import numba

@numba.njit(cache=True)
def brenth(f, xa, xb, args=()):
    xpre = xa
    xcur = xb
    xblk = 0.0
    fblk = 0.0
    spre = 0.0
    scur = 0.0

    fpre = f(xpre, *args)
    fcur = f(xcur, *args)

    if fpre*fcur > 0.0:
        return 0.0

    for i in range(100):
        if fpre*fcur < 0.0:
            xblk = xpre
            fblk = fpre
            spre = scur = xcur - xpre
        if abs(fblk) < abs(fcur):
            xpre = xcur
            xcur = xblk
            xblk = xpre

            fpre = fcur
            fcur = fblk
            fblk = fpre

        delta = 0.5*(1e-12 + 4.440892098500626e-16*abs(xcur))
        sbis = 0.5*(xblk - xcur)

        if fcur == 0.0 or ((abs(sbis) < delta) and abs(fcur) < 1e100):
            return xcur

        if (abs(spre) > delta and abs(fcur) < abs(fpre)):
            if xpre == xblk:
                # interpolate
                stry = -fcur*(xcur - xpre)/(fcur - fpre)
            else:
                # extrapolate
                dpre = (fpre - fcur)/(xpre - xcur)
                dblk = (fblk - fcur)/(xblk - xcur)
                stry = -fcur*(fblk - fpre)/(fblk*dpre - fpre*dblk)

            lval = abs(spre) if abs(spre) < 3.0*abs(sbis) - delta else 3.0*abs(sbis) - delta
            if (abs(stry + stry) < lval):
                # accept step
                spre = scur
                scur = stry
            else:
                # bisect
                spre = sbis
                scur = sbis
        else:
            # bisect
            spre = sbis
            scur = sbis

        xpre = xcur
        fpre = fcur
        if abs(scur) > delta:
            xcur += scur
        else:
            if sbis > 0.0:
                xcur += delta
            else:
                xcur -= delta

        fcur = f(xcur, *args)
    return 0.0

@numba.njit(cache=True)
def to_solve(x, y):
    return 10.001*x*x - 2.2*x - y

@numba.njit(cache=True)
def my_solve(y):
    return brenth(to_solve, -1.0, 1.0, args=(y,))

print(my_solve(10.0))

I apologize for the lengthiness of the example, but there isn't much that can be taken away. I didn't run into any problems with bisection, and I also noticed that if following two lines are moved the function is cached.
    if fpre*fcur > 0.0:
        return 0.0

If the following statement is also removed, the function is cached: and abs(fcur) < 1e100
I compared the debug output between the case with and abs(fcur) < 1e100 and without it and the output was almost identical. I also did tried using cProfile to trace the function calls, and the output was also almost identical between the two cases. Thank you all for all of your extremely hard work on numba. Compilers are really hard!
The full debug output is attached as it was too long to be part of this comment.

The following code (full output  also too long) is slightly more concise and demonstrate the secant method and also has the error, which I'm guessing is the same root cause:
import numba

@numba.njit(cache=True)
def secant(func, x0, args=()):
    p0 = x0
    p1 = x0*0.9999

    q0 = func(p0, *args)
    q1 = func(p1, *args)

    for i in range(100):
        # Calculate new point
        p = p1 - q1*(p1 - p0)/(q1 - q0)

        # Check the exit conditions
        if (abs(p0 - p1) <= abs(1e-9*p0)):
            return p
        # Swap the points around
        p0 = p1
        q0 = q1
        p1 = p
        q1 = func(p1, *args)
    return 0.0

@numba.njit(cache=True)
def to_solve(x, y):
    # The following two lines exist explicitly to prevent the compiler from inling the function
    # They have a negligible impact on the result
    for i in range(100):
        x += 1e-15*x
    return 10.001*x*x - 2.2*x - y

@numba.njit(cache=True)
def my_solve(y):
    return secant(to_solve, 5.0, args=(y,))

print(my_solve(10.0))

Thanks for the report @CalebBell. Is this a regression? It seems like 0.52 did the same thing (it's because a function is being passed as an argument).

@stuartarchibald This is not a regression! However, it was my understanding that there was a PR to make this functionality work in 0.53 - https://github.com/numba/numba/issues/6251 - and I am reporting the bug because it seems the feature isn't complete.

I have kept trying to find some solution here, debugging with several tools, and I really don't think the difference is happening at the numba level; the Python source code being ran is identical until it turns out there are global references and so the function cannot be cached. My suspicion is that because such small changes lead to the caching failing, and the change is always making the function more complex, the difference is whether LLVM is inlining a function or not. Here is a screenshot of the comparison (I was looking at everything Numba was doing with a tool called pysnooper):

Also seeming to confirm this is that if I add inline='always' to the numerical solver routines, 'brenth' or 'secant', there is no problem caching no matter how complex the case. Unfortunately I find that providing any value to the 'inline' argument results in very compilation/setup, regardless of whether the function is cached or not, well outweighing any benefits from the caching.
It is nice to look at numba's internals though!

@CalebBell do you have an example of something that caches with the behaviour you want, and then you modify the function and it now won't cache?

I have been able to slightly tweak the objective function in the secant example such that adding/removing a single multiplication is the difference between caching working and not. Change x*y*x to x*y to make this function successfully cache!
import numba
from math import sqrt

@numba.njit(cache=True)
def secant(func, x0, args=()):
    p0 = x0
    p1 = x0*0.9999

    q0 = func(p0, *args)
    q1 = func(p1, *args)

    for i in range(100):
        # Calculate new point
        p = p1 - q1*(p1 - p0)/(q1 - q0)

        # Check the exit conditions
        if (abs(p0 - p1) <= abs(1e-9*p0)):
            return p
        # Swap the points around
        p0 = p1
        q0 = q1
        p1 = p
        q1 = func(p1, *args)
    return 0.0

@numba.njit(cache=True)
def to_solve(x, y):
    sln = 0.0
    sln += 10.001*x*x - 2.2*x - y
    # Change x*y*x to x*y to make this function cache
    sln -= (x*y*x - sqrt(x))*1e-40/x**2.5/sqrt(x**2.5)
    return sln

@numba.njit(cache=True)
def my_solve(y):
    return secant(to_solve, 5.0, args=(y,))

print((my_solve(10.0)))

@CalebBell thanks. Yes, this is the LLVM level inliner. You can watch what it's up to by setting this:
from llvmlite import binding as llvm
llvm.set_option('','--debug-only=inline')

in the one that caches, there's this:
Inliner visiting SCC: _ZN8__main__12my_solve$241Ed: 1 call sites.
    Inlining (cost=260, threshold=275), Call:   %.36 = call i32 @"_ZN8__main__10secant$242E76type$28CPUDispatcher$28$3cfunction$20to_solve$20at$200x7f24b852c4c0$3e$29$29d8UniTupleIdLi1EE"(double* nonnull %.31, { i8*, i32, i8* }** nonnull %excinfo.1, i8* %.12, double 5.000000e+00, double %arg.y)

i.e. cost of inlining the secant function into the solve itself is under the threshold, so it does it.
Whereas in the one that refuses to cache, there's this:
Inliner visiting SCC: _ZN8__main__12my_solve$241Ed: 1 call sites.
    NOT Inlining (cost=275, threshold=275), Call:   %.36 = call i32 @"_ZN8__main__10secant$242E76type$28CPUDispatcher$28$3cfunction$20to_solve$20at$200x7facf29bd4c0$3e$29$29d8UniTupleIdLi1EE"(double* nonnull %.31, { i8*, i32, i8* }** nonnull %excinfo.1, i8* %.12, double 5.000000e+00, double %arg.y)

i.e. cost >= threshold so don't inline.
I'm not sure there's much that can be done to force caching for this case at present.

Thank you for looking into this! I found the constants numba uses at https://github.com/numba/llvmlite/blob/e146c676a9f840dbdf65d73c52fcf810d830bb98/llvmlite/llvmpy/passes.py#L17 for different levels and confirmed that more functions can be inlined by changing those constants.
Would the numba project be open to exposing this parameter, maybe as an environmental variable like  NUMBA_LOOP_VECTORIZE? The code is pretty simple e.g. in https://github.com/numba/numba/blob/1976c664afeb3251bc1246957c4735b1694f84f4/numba/core/codegen.py#L1181 and llvmlite and I would be very happy to write a PR.

Thank you for looking into this!

No problem, glad it's resolved.
RE:

environmental variable like NUMBA_LOOP_VECTORIZE?

I think this particular env var is a historical artifact to work around https://github.com/numba/numba/issues/649, which I'm not even sure would be a bug any more given it's related to LLVM < 3.5!
RE:

Would the numba project be open to exposing this parameter

I think that exposing more configuration for optimisation is something Numba needs to do. The main issues with it are the giant number of flags and options on these flags, the combinations of these flags and options, and then further that LLVM passes can be run in any order and that being another set of configurable things. Environment variables might struggle to capture this, so it might need to be a combination of environment variables and a way to customise compiler options programmatically. Perhaps open an issue to discuss?

@stuartarchibald Would it be posible to tell the compiler to never inline functions when an explicit FunctionType signature is provided? For example:
import numba as nb
from numba import float64, types

func_sig = types.FunctionType(float64(float64))

@nb.njit(float64(func_sig, float64))
def step(func, x):
    # I keep it simple here for demonstration purposes
    # but this function could be as complex as required
    # by the algorithm.
    return func(x)

func will never be inlined inside step therefore allowing to compile and cache step.

Am going to close this as #6972 contains a broader discussion on this along with examples. Thanks for the input @CalebBell @hgrecco.


When "block reports" vote passes the author of the message is banned from reporting instead of the reporter XD

This is funny bug, easy fix

Fixed by #33


Update Test Matrix for ID2

Update the test matrix to fit the names from the requirements document in ID 1, and add the titles for any remaining functionality pieces for ID2.

Updated with multiple new test cases

Cleaned up the text and justification for test matrix. Should make it a lot easier to update now. Apparently there's a weird bug with check marks on the later cells not setting the cell colors to the proper color (leave them white). This will need to be fixed. Leaving this open until check-mark issue is fixed.

This doesn't seem to be a major issue anymore.


Renamed data aggregate breaks trident backend

Describe the solution you'd like
After rename of data aggregate dynamically update the Trident backend.   Do not statically define the data aggregate in the backend spec.
Describe alternatives you've considered
None
Additional context
We manage trident backends using tridentbackendconfig.  We noticed that the data aggregate appears to be statically defined in the trident backend when the trident backend is created.  After the data aggregate was renamed we are unable to create pvcs using the storage class that uses the backend.  The error complains that the data aggregate cannot be found.   Clearly because the backend has the data aggregate statically defined :-(

Hi @amehub,
There is an aggregate option available for ONTAP backend configurations. You can use this option to restrict which aggregates Trident uses for provisioning and it also allows you to build automation to update the aggregate name(s) as needed.
If you don't specify the aggregate(s) in the backend config then the storage driver will read the aggregates assigned to the SVM, specified in the backend configuration, when the driver starts. Trident does not poll the storage backend for changes to minimize the amount of load on the storage backend. In this scenario, you simply restart the Trident controller pod when the aggregate names have changed and Trident will pick up the new aggregate names to use for provisioning volumes.


Cannot disable service on Mac

Describe the bug

After installing latest ferdi on latest Catalina I cannot disable services (for example Trello)
To Reproduce

Steps to reproduce the behavior:

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

Expected behavior

Screenshots

Desktop:

OS: [e.g. macOS, Windows 10 etc.]
Ferdi Version [e.g. 5.4.3]

Server Used: [e.g. https://api.getferdi.com]

Debug information: https://debug.getferdi.com/...
Additional context

This also seems to apply to Windows. I'm seeing the same behavior on both platforms.

I cannot reproduce this on macOS Big Sur with v5.6.1-nightly.35
Please try with: https://github.com/getferdi/nightlies/releases


Feature/add page services key value store

Description
The UI work and beginnings of API work for read arbitrary data to the KVStore.
Related Issue: Roadmap(17)
Testing / Breaking Changes
Testing manually for now. No breaking changes.
Screenshots:
Anonymous

Logged user

Button clicked and modal showing

Checklist:

[x] I have read and followed the CONTRIBUTING guidelines for this project.

moved and resolved in another pr.


(feature) Import in REPL and for ergoc.native works -- still need mor…

…e testing
Signed-off-by: Jerome Simeon<EMAIL_ADDRESS>

Note: this also addresses #325 ; The code for built-in functions is inlined at the expected place (in ErgoCInline when the body for a function call is missing).

Oh, thanks @kach here is an example in the REPL where the helloworld example is imported and called, more work is needed for the JavaScript version of the compiler and exposing the feature to Cicero, see #339.
Welcome to ERGOTOP version 0.1.3
ergo$ import org.accordproject.helloworld.*
ergo$ set contract HelloWorld over TemplateModel{ name : "Tigger" }
ergo$ call helloworld(Request{ input : "Foorest" });
Response. {"type": ["org.accordproject.helloworld.Response"], "data": {"output": "Hello Tigger (Foorest)"}}


Announce pre-release to early adopters and community.

First draft of announcement:
version_announcement.txt
Suggestions for where to make announcement:
Yammer (despite how much I hate it)
Newsgroups (AVD General, more?)
...?

Second draft of announcement, with the following tweaks and additions:

Explicit reference to changes in behaviour for nans and masked points (not explained, just refers user to What's New).
Explicit reference to reinstatement of iris-grib with request for feedback about this (this part specifically needs reviewing; I'm not happy with the wording of the paragraph or the capitalization of 'Iris-Grib').
'alpha version of pre-release candidate' changed to 'alpha pre-release candidate'.  Also not happy with this.  Not sure what words to use in what order here.
All instances of '2.0.0a0' changed to '2.0a0'.

version_announcement.txt

The what's new link is broken, how about pointing to https://scitools-docs.github.io/iris/master/whatsnew/2.0a0.html ?

AVD are happy to announce that the Iris v2.0a0 is now available

I would change to AVD are happy to announce that Iris v2.0a0 is now available

*If you are a K shell user, module may not be available. A fix is on the way.
In the meantime, the suggested workaround is to run the following:
$ . /etc/kshrc

This is not the full workaround, the user also has to put the following into their ~/.kshrc file:
if [ -f /etc/kshrc ]; then
. /etc/kshrc
fi

Announcement updated to include suggestions from Laura (most of which were to correct silly mistakes):
version_announcement.txt


Fix and improve build

Currently, the source dist does not include the ANTLR files needed to regenerate the Python code, so I have amended the package_data configuration to fix the typo and ensured it was included.
After that, I moved everything I could to the new pyproject standard and ensured things like the wheel and source dist were mostly the same; the only difference was things like METADATA entries, as seen with diffoscope:
│ ├── python-fx-0.1.1/src/python_fx.egg-info/PKG-INFO
│ │ @@ -1,15 +1,14 @@
│ │  Metadata-Version: 2.1
│ │  Name: python-fx
│ │  Version: 0.1.1
│ │  Summary: A python-native fx-alike terminal JSON viewer.
│ │ -Home-page: https://github.com/cielong/pyfx
│ │ -Author: Yutian Wu
│ │ -Author-email<EMAIL_ADDRESS>│ │ +Author-email: Yutian Wu<EMAIL_ADDRESS>│ │  License: MIT
│ │ +Project-URL: repository, https://github.com/cielong/pyfx
│ │  Keywords: fx,pyfx,json viewer,tui
│ │  Classifier: Development Status :: 4 - Beta
│ │  Classifier: Programming Language :: Python :: 3 :: Only
│ │  Classifier: Environment :: Console
│ │  Classifier: Operating System :: POSIX
│ │  Classifier: Operating System :: MacOS :: MacOS X
│ │  Classifier: License :: OSI Approved :: MIT License

Please let me know if you are confused about any aspect of the changes; I've only noticed these problems when I tried to package this repo for a downstream project, and ran into incompatible ANTLR runtime issues on Arch.

FYI, the CI/CD fails with

ERROR: InterpreterNotFound: python3.10

You probably also need to change the config files under .github/

Codecov Report
Base: 87.64% // Head: 87.71% // Increases project coverage by +0.07% :tada:

Coverage data is based on head (c6f65ab) compared to base (4eea0ca).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
+ Coverage   87.64%   87.71%   +0.07%
==========================================
  Files          82       81       -1
  Lines        2849     2850       +1
  Branches      361      366       +5
==========================================
+ Hits         2497     2500       +3
  Misses        270      270
+ Partials       82       80       -2

Flag
Coverage Δ

test-macOS-latest-3.8
?

test-ubuntu-latest-3.10
87.64% <ø> (?)

test-ubuntu-latest-3.8
87.64% <ø> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/pyfx/__init__.py

src/pyfx/view/json_lib/json_widget.py
97.70% <0.00%> (+0.02%)
:arrow_up:

src/pyfx/model/common/jsonpath/JSONPathParser.py
78.11% <0.00%> (+0.14%)
:arrow_up:

src/pyfx/view/view_manager.py
82.14% <0.00%> (+3.57%)
:arrow_up:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Dimensional numbers +/-128 issue

it seems that when the dimensions numbers go past +/-128 client crashes and it seems that if there was a player inside at the time, the player data has to be reset, not just moved out
i do believe that it is a problem with how minecraft reads dimensions, and a suggestion is to assign dims the same way as mystcraft, by putting in front of the dim number "RFT" or "RFTools" and should start out at -128 and go to +128 and have the mod find an empty(or unclaimed by other mods) dim number when a new dim is created
granted sometimes it works and sometimes minecraft is just a pain about dim numbers, so its just a hit and miss type of problem
i do believe that the RF tools being used is in FTB infinity pack 1.6.2(not 100% on this tho), i will get the  mod version for you as soon as i have the info, but i assume its in the latest

This bug was fixed in RFTools 2.92. Would be nice to know what version you have.

tbh i think its something lower, but it has to be updated in the FTB infinity modpack.... which i just checked in v1.62 its only v2.91 of RFTools

Yes, 2.91 still has that bug


Cannot download TUDM - The Ultimate Dodge Mod v4 x64.rar

Mod author seems to have made it private on their google drive link, is there anyway you can provide a manual download for it?
1259.65 - Downloading TUDM - The Ultimate Dodge Mod v4 x64.rar
1260.46 - Hashed download is incorrect
1260.46 - Loading for alternative to U659DN1scQM=
1260.5 - No alternative for U659DN1scQM= could be found
1261.14 - Hashing Remaining Archives
1261.14 - Looking for files to hash
1261.22 - Found 1529 total files, 1497 matching filesize
1261.43 - Unable to download TUDM - The Ultimate Dodge Mod v4 x64.rar (GoogleDriveDownloader+State|0B2VgBVA9jE6RTjJiYnRTTE9qRUE)
1261.44 - Cannot continue, was unable to download one or more archives

thanks  so You manual download it and then copy it into C:\Elysium\downloads ?

Hi caddick, thanks again, please try this
https://drive.google.com/file/d/0B2VgBVA9jE6RTjJiYnRTTE9qRUE/view?resourcekey=0-atMbrLF_HPd3ogbiZaBiXw
for The Ultimate Dodge Mod v4 x64.rar

Unable to download Skyrim_Default.ini (GameFileSourceDownloader+State|SkyrimSpecialEdition|<IP_ADDRESS>|skyrim_default.ini)
381,4 - Cannot continue, was unable to download one or more archives
382,32 - File hash check (-42) 552d83690160c28b65c0f1a1316cae32ef9f649b34c05dfd823ef642db2464f0
383,49 - Encountered error, can't continue - System.Exception: Cannot continue, was unable to download one or more archives
at Wabbajack.Lib.AInstaller.Error(String msg) in C:\actions-runner_work\wabbajack\wabbajack\Wabbajack.Lib\AInstaller.cs:line 70
at Wabbajack.Lib.MO2Installer._Begin(CancellationToken cancel) in C:\actions-runner_work\wabbajack\wabbajack\Wabbajack.Lib\MO2Installer.cs:line 161
at Wabbajack.Lib.ABatchProcessor.b__66_0() in C:\actions-runner_work\wabbajack\wabbajack\Wabbajack.Lib\ABatchProcessor.cs:line 177
at Wabbajack.MO2InstallerVM.<>c__DisplayClass31_0.<b__0>d.MoveNext() in C:\actions-runner_work\wabbajack\wabbajack\Wabbajack\View Models\Installers\MO2InstallerVM.cs:line 181
--- End of stack trace from previous location ---
at Wabbajack.MO2InstallerVM.Install() in C:\actions-runner_work\wabbajack\wabbajack\Wabbajack\View Models\Installers\MO2InstallerVM.cs:line 175
at Wabbajack.InstallerVM.<>c__DisplayClass85_0.<<-ctor>b__75>d.MoveNext() in C:\actions-runner_work\wabbajack\wabbajack\Wabbajack\View Models\Installers\InstallerVM.cs:line 383
383,49 - File hash check (-42) 552d83690160c28b65c0f1a1316cae32ef9f649b34c05dfd823ef642db2464f0
This is ruine for me) Help pls


Missing Telegram icon

Description

The telegram icon can be seen in the join us section but it is not present in the footer of the front-page
Expected Behavior

I can add the telegram icon in the footer of the front-page, along with its link.Can you assign this task to me?
Screenshots

Enviroment:

OS: Mac Linux Windows
Browser: Chrome Safari Firefox
Version:
Device: Desktop Mobile

Already the layout of those icons are fixed , it would be good if it is streched still more!


Add support for Hugging face inference with docker image

Is your feature request related to a problem? Please describe.
Currently the docker has only 2 commands, build and launch, and it launches the config.py file, what If I want to use huggingface_interface.py?
Can we modify the entrypoint.sh? and add the support for huggingface and possibly for others?
Describe the solution you'd like
Modifying the entrypoint.sh file and adding the support for the same.
Describe alternatives you've considered
I am not sure about the alternatives, but modifying the entrypoint.sh seems a good solution at this point.
Additional context

Hey @shyampatadia, a couple of things here:

You can actually replace the build or run with any custom command you like - they are just shortcuts. So you could instead have lavague-launch --file_path new-instructrions.txt --config_path new-config.py - just make sure these files are in your lavague-files mounted volume

In any case, no need to change the command, it will build launch with whatever config is in the config.py in the lavague-files mounted volume. You just need to copy the HuggingFace one we provide in the examples/api folder into this file. Then swap the -e option in the docker run command to HF_TOKEN=[your token] - you can also modify the instructions.txt file if you want to change instructions

Oh okay okay got it, my bad, really sorry, there is already a custom command available in entrypoint.sh
previously I was trying the docker command without lavague prefix, below is the fixed command:
docker run -v PATH\LaVague\lavague-files:/home/vscode/lavague-files -e HF_TOKEN=VALUE -p 7860:7860 lavagueai/lavague:latest lavague-launch --file_path=instructions.txt --config_path=huggingface_inference.py
It works now, hence closing the issue.


Minor copy changes

Start page link to form = capitalisation of help with fees
Marital status - expandable help = capitalisation of armed forces
Benefits - expandable help = capitalisation of Jobcentre
Income - typo & GDS style in table
maintenance
Child Tax Credit
Working Tax Credit
Jobseeker’s Allowance
NI - expandable help - capitalisation of Jobcentre
Step 16 - confirmation page - add full stops to end of sentence

Looks fine to me 👍


Reactor baggage propagation not work on some cases

Describe the bug
On some case baggage (MDC on logs) are not propagated on threads using reactor.

spring-boot: 2.6.3
r2dbc: 0.8.8.RELEASE
spring-cloud: 2021.0.0
spring-cloud-starter-sleuth: 3.1.0

I see that when on my controller I have an @Transactional annotation baggage propagation not work. I have the same issue using a reactive kafka event listener propagation propagation does not work at all.
Sample
You can use this project https://github.com/deblockt/spring-sleuth-log-bagage-propagation-issue to reproduce the issue.
The controller can be found here https://github.com/deblockt/spring-sleuth-log-bagage-propagation-issue/blob/main/src/main/java/com/example/demo/DemoController.java the path /non-transactional work fine, and on /transactional path the baggage are not propagated.

It seem that disabling spring.sleuth.tx fix a part of the issue.

Is this still a problem with Sleuth 3.1.0 and cloud 2021.0.1 ?

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Dark Mode

The current version of choosealicense.com does not support dark mode.
Any thoughts on adding that functionality. I am willing to step up and make a PR.

I'd be OK with a dark mode PR, but would probably defer to someone who knows more about design (just about anyone) than me.

Ok because it is an easy fix I will make a PR

Made a simple Dark Mode PR. I dont wanted to do it too complicated so I just used a @media to check if the User has activated Dark Mode. You could also possibly add a Dark Mode Button too. (should be simple)

Dark mode was added, and it works for me. As I understood it turns itself on if your default system theme is dark

Dark mode was added, and it works for me. As I understood it turns itself on if your default system theme is dark

Yes it does

The current version of choosealicense.com does not support dark mode. Any thoughts on adding that functionality. I am willing to step up and make a PR.

Fixed by #833


Adding ftrack to the Prebid website

Thanks for improving the documentation 😃
Please give a short description and check the matching checkboxes to help us review this as quick as possible.
🏷 Type of documentation

[ ] new bid adapter
[ ] update bid adapter
[X] new feature
[ ] enhancement (wording, typos)
[ ] bugfix (code examples)
[ ] new examples

📋 Checklist

[X] Related pull requests in prebid.js or server are linked -> https://github.com/prebid/Prebid.js/pull/8063
[ ] For new adapters check submitting your adapter docs

@MartianTribe Does this require any actions from us to move forward?


Update binaries

Generated by developer/images/dependencies-update/hack/bin/update.sh

/retest

/retest pipeline-service-update-dependencies

/retest

/retest pipeline-service-test


Tolerate 0-value (missing) local size headers.

Some rogue zip creators fail to set a non-zero local header size in ExtraData causing SharpZLib to reject them, this patch allows the library to tolerate that particular oversight like most other libraries.

Any plan or idea if this change will be merged. I am facing the same problem with some users and I would prefer to use a new release instead of recompiling the lib.


Remove race condition in initial layout of ReactRootView

There is a race condition stemming from ReactRootView.onCreate that occasionally causes the initial root layout calculation to never occur. In this method currently, updateRootLayoutSpecs(...) is called before enableLayoutCalculation(), meaning that it's possible for the native modules thread to reach UIImplementation.updateViewHierarchy before layout calculation has been enabled (i.e. before the rootViewTag is added to UIImplementation.mMeasuredRootNodes on the UI thread).
When this occurs, UIImplementation.applyUpdatesRecursive is never called. This causes the app to hang on the splash screen indefinitely, the JS never gets past the first call to render, and no layout events are ever sent to the JS.
This PR reverses the order of those two method calls to ensure that the rootViewTag is always added to mMeasuredRootNodes before UIImplementation.updateViewHierarchy expects it. We inspected all of the code paths of both enableLayoutCalculation() and updateRootLayoutSpecs() to ensure that in this new order, the rootViewTag will always be added to mMeasuredRootNodes before the call to updateViewHierarchy is dispatched, and that no other side effects would be introduced.
Test Plan
Tested with an app that reliably had this issue (hanging splash screen) on 1 out of every ~10 launches. Logged values to ensure that empty mMeasuredRootNodes was the difference between failed and successful launches. After this change, I launched the same app 50+ times without any issues.
Release Notes
[ANDROID][BUGFIX][ReactRootView] - remove race condition in initial layout of ReactRootView

@facebook-github-bot shipit


mig-controller should allow rollback to start after final migration is complete

Describe the bug
Currently, if a final migration is complete, a new Rollback MigMigration will not run
To Reproduce
Steps to reproduce the behavior:

Run a migration to completion
Attempt rollback. You can create the new MigMigration CR with spec.rollback=true, but it won't run

Ahh, this is probably the code we added to prevent migrations from running when there's a final migration that completed.

@sseago right, I'm going to need to modify this in some way that doesn't break existing behavior + doesn't break what the UI is expecting.

@sseago I forgot what the actual behavior was. @aufi already handled this in the rollback code. Just needed a UI change. Will  be resolved by https://github.com/konveyor/mig-ui/pull/1071


consensus/docs: draft UTxO HD design document for review

Status update: I pushed up commits addressing the latest comments I received on Slack. So this document won't be changing (except maybe me addressing some TODOs) until I receive feedback on this PR.

Closing as stale.


⚠ Bofrost.es has degraded performance

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

HTTP code: 200
Response time: 1442 ms

Resolved: Bofrost.es performance has improved in 74abae7 after 6 minutes.


Add support for cRLDistributionPoints extension

Add support for cRLDistributionPoints extension

Type: Enhancement
Priority: Major

Suggested enhancement

Add crl_distribution_points (or similar) field to mbedtls_x509_crt struct, and populate it on cert parse.
Provide supporting utilities such as mbedtls_x509write_crt_set_crl_distribution_points() (or similar)

Thanks for the feedback! We've noted this as a feature request, and will certainly consider it.


Animation examples?

Hi guys:
Awesome work on this. Absolutely in lust right now.
I've been trying to wrap my head around doing animations, from what I've gathered POP is leveraged for all animation work, which I'm not familiar with, perhaps that's my shortcoming.
I'm trying some basic animations from other examples I've scouted throughout the repo and using this file for potential properties to animate: [PopAnimation.js] (https://github.com/facebook/react-native/blob/0c83766e3b7d17674954bacf9ccc308d4dd4b2b3/Libraries/BatchedBridge/BatchedBridgedModules/POPAnimation.js)
getInitialState: function() {
  return {
    isAnimating: true
  }
},

toggleScale: function() {
  this.setState({
    isAnimating: !this.state.isAnimating
  });

  Animation.startAnimation(this.refs['this'], 300, 0, 'easeInOutQuad', {
    scaleXY: this.state.isAnimating ? [2.0, 2.0] : [0.5, 0.5],
  });
},

render: function() {
  return (

        <TouchableHighlight style={styles.container} underlayColor='#99d9f4' onPress={() => this.toggleScale()}>
          <View>
            <Text style={styles.text}>
              Click here to start animation!
            </Text>
            <View ref='this' style={styles.box}/>
          </View>
        </TouchableHighlight>
  );
}

With a property such as opacity this seems to work fine: click once - hidden, click again - shown. However, scaleXY doesn't commit its animation, i.e. after the animation happens it then jumps back to it's original state, which sort of makes sense as Cocoa Touch has the same implementation and forces you to set the final state in a block / closure after the animation. But given opacity's behaviour I'm not sure why this acts differently.
Also I've no clue how to animate positions, or even which value to animate positions with: positionX or translationX?
Are there any examples which show a simple, 'from -> to' animation. e.g. on press move this box from posA to posB and commit the animation?
Amazing stuff again. Very much looking forward to Nuclide to make this all a little easier.

Hey @nextriot, source looks familiar so assuming you saw: https://github.com/facebook/react-native/issues/432
Am still sorting through this myself, but It seems you may be mixing up the syntax for the declarative API and LayoutAnimation.  Your setState in toggleScale is firing render().  If you want to animate on a state change you will likely want to take advantage of LayoutAnimation to config the animation prior to changing your state, or remove the state change from toggleScale if you want to animate declaratively.
The example I linked above demonstrates the declarative Animation API, here's similar w/ LayoutAnimation:
'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  LayoutAnimation,
  Text,
  TouchableHighlight,
  View,
} = React;

var WebViewApp = React.createClass({

  getInitialState: function() {
    return {box:true}
  },

  _onPress: function() {
    console.log('starting animation');
    // Animation.startAnimation(this.refs['this'], 800, 0, 'easeInOutQuad', {scaleXY: [5, 5]});
    LayoutAnimation.configureNext(animations.layout.easeInEaseOut);
    this.setState({box:!this.state.box})
  },

  render: function() {
    var box =  this.state.box === true ?
    <View ref='this' style={styles.box}/> :
    <View ref='this' style={styles.box2}/>

    return (

          <TouchableHighlight style={styles.container} onPress={this._onPress}>
            <View>
              <Text style={styles.text}>
                Click here to start animation!
              </Text>
             {box}
            </View>
          </TouchableHighlight>

    );
  }
});

var styles = StyleSheet.create({
  container: {
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
    top:200,
    width: 200,
    height: 200,
  },
  text: {
    fontSize: 16,
  },
  box:{
    backgroundColor:'red',
    width: 50,
    height: 50,
  },
  box2:{
    backgroundColor:'red',
    width: 550,
    height: 550,
  }
});

var animations = {
  layout: {
    spring: {
      duration: 0.75,
      create: {
        duration: 0.3,
        type: LayoutAnimation.Types.easeInEaseOut,
        property: LayoutAnimation.Properties.opacity,
      },
      update: {
        type: LayoutAnimation.Types.spring,
        springDamping: 0.4,
      },
    },
    easeInEaseOut: {
      duration: 0.3,
      create: {
        type: LayoutAnimation.Types.easeInEaseOut,
        property: LayoutAnimation.Properties.scaleXY,
      },
      update: {
        delay: 0.1,
        type: LayoutAnimation.Types.easeInEaseOut,
      },
    },
  },
};

AppRegistry.registerComponent('WebViewApp', () => WebViewApp);

@chadobado do you have a similar example by chance, for animating on componentDidMount? I've tried and it seems that starting the animation here is too soon, before the current layout is actually set. Is this known behavior?

@drkibitz seems to work for me with both LayoutAnimation and Animation APIs.
I noticed in the 2048 example animations in componentDidMount are being wrapped with a timeout:
https://github.com/facebook/react-native/blob/master/Examples/2048/Game2048.js#L86
Perhaps due to the second paragraph of this:
https://facebook.github.io/react/docs/component-specs.html#mounting-componentdidmount
But in my tests, the timeout was not needed:
LayoutAnimation:
'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  LayoutAnimation,
  Text,
  TouchableHighlight,
  View,
} = React;

var WebViewApp = React.createClass({

  getInitialState: function() {
    return {boxOpen:false}
  },
  componentDidMount: function() {
    LayoutAnimation.configureNext(animations.layout.easeInEaseOut);
    this.setState({boxOpen:!this.state.boxOpen})
  },
  _onPress: function() {
    console.log('starting animation');
    // Animation.startAnimation(this.refs['this'], 800, 0, 'easeInOutQuad', {scaleXY: [5, 5]});
    LayoutAnimation.configureNext(animations.layout.easeInEaseOut);
    this.setState({boxOpen:!this.state.boxOpen})
  },

  render: function() {
    var box =  this.state.boxOpen === true ?
    <View ref='this' style={styles.boxOpen}/> :
    <View ref='this' style={styles.boxClosed}/>

    return (

          <TouchableHighlight style={styles.container} onPress={this._onPress}>
            <View>
              <Text style={styles.text}>
                Click here to start animation!
              </Text>
             {box}
            </View>
          </TouchableHighlight>

    );
  }
});

var styles = StyleSheet.create({
  container: {
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
    top:200,
    width: 200,
    height: 200,
  },
  text: {
    fontSize: 16,
  },
  boxClosed:{
    backgroundColor:'red',

    width: 50,
    height: 50,
    margin: 5,
  },
  boxOpen:{
    backgroundColor:'red',
    width: 550,
    height: 550,
  }
});

var animations = {
  layout: {
    spring: {
      duration: 0.75,
      create: {
        duration: 0.3,
        type: LayoutAnimation.Types.easeInEaseOut,
        property: LayoutAnimation.Properties.opacity,
      },
      update: {
        type: LayoutAnimation.Types.spring,
        springDamping: 0.4,
      },
    },
    easeInEaseOut: {
      duration: 0.3,
      create: {
        type: LayoutAnimation.Types.easeInEaseOut,
        property: LayoutAnimation.Properties.scaleXY,
      },
      update: {
        delay: 0.1,
        type: LayoutAnimation.Types.easeInEaseOut,
      },
    },
  },
};

AppRegistry.registerComponent('WebViewApp', () => WebViewApp);

Animation:
'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Animation,
  Text,
  TouchableHighlight,
  View,
} = React;

var WebViewApp = React.createClass({
  componentDidMount: function() {
    // setTimeout(() => {
      Animation.startAnimation(this.refs['this'], 300, 0, 'easeInOutQuad', {scaleXY: [5, 5]});
      Animation.startAnimation(this.refs['this'], 100, 0, 'easeInOutQuad', {opacity: 1});
    // }, 0);
  },
  getInitialState: function() {
    return {}
  },

  _onPress: function() {
    console.log('starting animation');
    Animation.startAnimation(this.refs['this'], 300, 0, 'easeInOutQuad', {scaleXY: [2.5, 2.5]});
  },

  render: function() {
    return (

          <TouchableHighlight style={styles.container} onPress={this._onPress}>
            <View>
              <Text style={styles.text}>
                Click here to start animation!
              </Text>
              <View ref='this' style={styles.box}/>
            </View>
          </TouchableHighlight>

    );
  }
});

var styles = StyleSheet.create({
  container: {
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
    top:200,
    width: 200,
    height: 200,
  },
  text: {
    fontSize: 16,
  },
  box:{
    backgroundColor:'red',
    width: 50,
    height: 50,
  }
});

AppRegistry.registerComponent('WebViewApp', () => WebViewApp);

@chadobado in your Animation example is the scaleXY actually scaling from a 200x200 layer, or something smaller? What I saw was that it appears to work, but was always scaling from no layout rather than the dimensions specified in the styles, that is until a timeout was used.

@chadobado and thank you!

@drkibitz the scaleXY is scaling from height/width defined in styles.box in the Animation example.  The LayoutAnimation example is not scaling, it's tweening the size between the height/width of boxClosed (50px/50px) and boxOpen (550px/550px).
Also @nextriot positioning for LayoutAnimation can be defined with standard css styles as you might expect (possibly other ways?):
  boxClosed:{
    backgroundColor:'red',
    width: 50,
    height: 50,
    margin: 5,
    opacity: 1,
  },
  boxOpen:{
    backgroundColor:'red',
    width: 550,
    height: 550,
    position: 'absolute',
    top: 100,
    left: 100,
  }

and with "position" using Animation (bound by parent):
Animation.startAnimation(this.refs['this'], 300, 0, 'easeInOutQuad', {position:[100,0]});

I'm not able to get rotations to work with either API currently.

@chadobado rotation doesn't seem to work in stylesheets either

@chadobado how to use POPAnimation? thanks

@qingfeng - https://github.com/facebook/react-native/issues/1365#issuecomment-104792251
@syousif94 - rotation works as expected now see docs eg: transform: [{rotate: '30deg'}]

Looks like there are plenty of examples above now, more exciting stuff re: animations coming soon!

@brentvatne @chadobado Do you guys know why animation doesn't work for transition from opacity 1 to opacity 0. The interesting thing here is it works perfectly fine when you want to transit from opacity 0 to opacity 1. I just want to do fade in and fade out.

@alinz I would also like to do fade in and fade out, did you figure out a way to do it?

@iSimar Since LayoutAnimation won't fix this issue in near future, your best bet is to implement fade in and out by using opacity. For my project I ended up creating one from scratch and I have opened source it here. react-native-scene-manager. There is no doc yet but you can take a look at the example folder.
Let me know if you need any help.


Design Recommendations suggests preferred option is to use Private Link instead of Microsoft Peering, would be good to document rationale behind this

[Enter feedback here]
As per below snip.  It would be good to understand and document the rationale of pushing Private Link instead of Microsoft Peering (With perhaps a table comparing features / cost diffs etc).
I searched and couldnt find this documented anywhere else , apologies if i missed / if so would be good to have a link to that info.
"Access Azure PaaS services from on-premises via ExpressRoute private peering. Use either virtual network injection for dedicated Azure services or Azure Private Link for available shared Azure services. To access Azure PaaS services from on-premises when virtual network injection or Private Link isn't available, use ExpressRoute with Microsoft peering. This method avoids transiting over the public internet."

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

ID: 188d9f77-7e00-31de-ff3b-9dcbd51a1363
Version Independent ID: e109069b-918d-f33d-4d22-a75229e2a198
Content: Connectivity to Azure PaaS services - Cloud Adoption Framework
Content Source: docs/ready/azure-best-practices/connectivity-to-azure-paas-services.md
Service: cloud-adoption-framework
Sub-service: ready
GitHub Login: @JefferyMitchell
Microsoft Alias: brblanch

https://ceapex.visualstudio.com/pnp/_workitems/edit/444389/

Thank you for your feedback. We are in the process of updating this article to provide further clarity.


Debug steps / suggestions ?

Hi,
I have deployed this successfully - and run the 04- notebook to load the demo data. Both LoadEntitiesToSQLTable & EmbeddingCreationAndIndexing report "succeeded"
The Amplify CI/CD build worked ok and I can register login ok.
As far as I can tell everything has worked ok.
But when I enter the question
Give me the top 5 companies with the highest revenue in the last 2 years and identify the risks associated with the top one
I get this unexpected response:
_Unfortunately I do not have enough context to provide the specific company revenue information you requested. However, I can offer some general thoughts on identifying risks associated with top revenue companies:
The company with the highest revenue likely has significant market share in their industry, which can come with risks like antitrust scrutiny or disruption from new innovations. Being reliant on a single or few high-revenue products/services is also a risk if consumer demand changes.
Other potential risks include overexpansion, taking on too much debt, compliance issues as the company scales, cybersecurity threats with large databases of customer data, and challenges retaining talent. Leadership problems or scandals would additionally pose reputation risk.
Geopolitical factors, trade policy, and regional instability could uniquely impact multinational corporations with the highest revenues. It's important to assess risks holistically across operations, finances, company culture, industry trends, and macroeconomic conditions. Let me know if you would like me to elaborate on any particular aspect of risk analysis for top revenue companies._
The Lambda AssistantBackendStack-LambdaAgentContainer*    cloudwatch log ends with:
2024-05-10T17:50:33.297ZThe current user input is the following: Give me the top 5 companies with the highest revenue in the last 2 years and identify the risks associated with the top one
2024-05-10T17:50:33.297Z Assistant: Assistant:
2024-05-10T17:50:40.817Z Finished chain.
2024-05-10T17:50:40.819ZEND RequestId: 417702b4-e045-4fa3-a18b-5e309c56396f
Can you suggest some things to check / debug steps please?

Ah - the streamlit app has an option to pass "agentic" mode to the backend Lambda - but the Amplify app doesn't seem to have this - unless I've missed something ?


Switch off logging

This is for reference only.  In actual fact, this doesn't seem to make any functional difference.

This is for reference only. In actual fact, this doesn't seem to make any functional difference.

@corinnebosley
the case for this statement would be enhanced by fixing the coding standards test failure.
I would like to see this passing this travis tests, i think it is worth discussing the benefit/cost of this logging implementation
do any developers know of where this is on use?
answers to me on a post card please

@pelson I want this merged please.  Waiting for tests, should only be pep8 problems but I will try and make sure this is all sorted by the end of today.
Also, don't mean to sound bossy, it's just my nature...

Seems that there may actually be a genuine error, but don't understand how it relates to this PR...
======================================================================
FAIL: test_concatenate_cell_measure_match (iris.tests.integration.test_netcdf.TestCellMeasures)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/Iris-2.0a0-py2.7.egg/iris/tests/integration/test_netcdf.py", line 258, in test_concatenate_cell_measure_match
    self.assertEqual(len(cubes), 1)
AssertionError: 2 != 1
----------------------------------------------------------------------

Going to need to add this to the what's new as an incompatible change


Avoid argocd login

Closes #24

got rid of interfacer
added codegen to ci-cd flow
added login to argocd after repo bootstrap

/ci

/ci

got rid of interfacer
added codegen to ci-cd flow
added login to argocd after repo bootstrap
increased test coverage