Amend regular expression pattern for rule 942440

This should make the regular expression have the same end result with
both Apache/mod_security2 and nginx/libmodsecurity

This PR is intended to resolve the issue with the regular expression pattern with rule 942440, as discussed in issue #2179

Added an additional test for rule 942440: ensure that the URL encoded null byte example input is correctly caught

If it makes sense, could you break up the expression and move it to a data file so we can generate it?

We can also do an issue to make this as a separate step. But I agree, this rule ought to have a source-file with the individual regexes and we generate it. It might also become faster / optimized that way.

Okay, so can we look at that in a separate issue, then? IMO issue #2179 is already too complex (that's my fault).

Sure, put it in a separate issue.

No worries @RedXanadu. We're happy you are solving it, step by step.

Okay: I looked into it and realised that regexp-assemble is not as complicated as I'd thought!
Could someone check the commits, please? I think I understand how to use regexp-assemble, but this is my first time properly using it…
I did notice that regexp-assemble.pl converts \x00 into a literal null character in the output. I've added a note to rule 942440 explaining this and stating that the \x00 must be added back in by hand after assembly.
(P.S. The REQUEST-920 regression tests are failing, just like in PR #2208. I'm still not sure why.)

@RedXanadu I just glanced at the changes for regexp-assemble and they look good to me. However, the conversion of \\x00 to a literal null is probablly undesirable. And having to manually adapt the rule pretty much defeats the purpose of the script.
I've opened https://github.com/coreruleset/coreruleset/issues/2210 to fix the issue.
Does the test work when the expression contains a null? If so, please remove the documentation on manual manipulation. Otherwise leave the documentation in but open an issue to remove it again once https://github.com/coreruleset/coreruleset/issues/2210 has been fixed.

Thank you @theseion. It looked like a bug, but I wasn't certain: thanks for opening one :)

Does the test work when the expression contains a null?

I'm not sure I understand the question. Do you mean, does rule 942440 work correctly if the regular expression contains the literal null character that regexp-assemble.pl outputs to stdout? Like so:

ModSecurity refuses to start in that scenario:
AH00526: Syntax error on line 1259 of /etc/modsecurity.d/owasp-crs/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf:
Error creating rule: Error compiling pattern (offset 73): missing )

I'm not sure I understand the question. Do you mean, does rule 942440 work correctly if the regular expression contains the literal null character that regexp-assemble.pl outputs to stdout? Like so:

Yes. That's ok then. leave it like you have it know and I'll clean it up once the issue is fixed.

The failing tests will probably succeed when you rebase the PR on v3.4/dev, could you try that please?

Meeting decision Oct 4: a rebase should fix the failing tests.

I think so too.


gateway-api: Bump to the latest version from upstream

This is mainly to pick up the new GRPC Conformance tests added recently.
Signed-off-by: Tam Mach<EMAIL_ADDRESS>

/ci-gateway-api

/ci-gateway-api

/ci-gateway-api


⚠ Jenkins Plugins Artifactory has degraded performance

In 6b43442, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2178 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 7ed6806 after 3 hours, 18 minutes.


Don't fall back from auth v2 services to auth v1 services

Relates to #5761
Our iiif-presentation manifests contain both V1 and V2 versions of the auth services. We have a toggle that allows us to use the v2 services. At the moment, if the toggle is turned on, then we attempt to use V2 services and fallback to V1 services.
This is because not all iiif presentation manifests contain V2 services and we wanted the site to continue to work as is with the toggle enabled. However, manifests can contain v2 services with incorrect data, which would stop the site from functioning correctly.
Given this, it seems less complicated to not fall back to V1 services when the toggle is activated so the behaviour simply switches between the two services.
The missing and incorrect V2 service data will be corrected when all the iiif manifests are regenerated. We can then use the toggle to switch to the V2 services on to check things are working correctly.

closing this as it is covered as part of 5761


How to set offset to a specified value in Initialization

value of c.Consumer.Offsets.Initial must be OffsetNewest or OffsetOldest.
But in some cases, I need to comsume message from a specified offset.
i read the code but have not found method to solution my problem.
somebody who knows help me..thanks..
sorry for my poor english :(

@blackfox1983 I think you are looking for this?https://github.com/Shopify/sarama/blob/6fb86a44d5915dcfd42af71a4c99674bb55650ca/consumer.go#L60-L64

@blackfox1983 your English is great, don't worry about that.
Regarding the question, one importan thing from @dnwe response, is that this is only supported by the low level consumer and it's not supported by ConsumerGroups

Also hope we can support set offset for ConsumerGroup
Or we can commit offset manually. (https://github.com/Shopify/sarama/issues/1570)


Possible to Have Different Buckets for Different Models?

I have all my image uploads going to s3.mydomain.com but for an attachment feature I'd like them to go in their own bucket attachments.mydomain.com
Is it possible to have different configurations for different models?

not currently, but you can assign e.g. model accessors to different dragonfly apps, each which have a differently configured s3 data store (as per http://markevans.github.io/dragonfly/models first couple of paragraphs).
Does that suit the use case?

For anyone coming across this, as I did: this approach works, but it's easy to miss that you'll need to have a middleware line once for each bucket/app, as described here. For example:
Rails.application.middleware.use Dragonfly::Middleware
Rails.application.middleware.use Dragonfly::Middleware, :attachments


Outlook & Gmail no visible buttons bug

Describe the bug
The problem came up when we as a company tested our newsletters on live clients in the web. In other clients like yahoo and proton there was not a single problem, but when testing on outlook and gmail, there was not a single button shown.
To Reproduce
Steps to reproduce the behavior:

Create an MJML Email with at least one button (set class, valid url as href and some sort of styling)
Send it to outlook and / or gmail
See there is no button

Expected behavior
to see an button in the webmailer of outlook and gmail.
MJML environment:

OS: MacOS 13.2
MJML Version: 4.14.1

Email sending environment(for rendering issues):

Live Clients
putsmail

Affected email clients (for rendering issues):

Email Client: Outlook / Gmail
OS: MacOS
Browser: Chrome, FireFox, Safari, Opera

Additional context
We tested our Newsletter in live clients with webmailers. All were fine, but in gmail and outlook there were not any buttons visible. In any thread of stack overflow i came over an post, which mentioned that google would block and remove inline styles, that dont contain   (spaces) after :, , and ;.
After i added the spaces as a post process before uploading the html code for the newsletter to be sent everything was shown just perfectly fine.

I'm not able to reproduce your issue here. Can you provide a snippet https://mjml.io/try-it-live


Update CDN library url in readme

pubnub url in CDN is outdated

Coverage remained the same at 91.3% when pulling a0470d89645a38d3624074d6cb992ca2460648f1 on embbnux:update-cdn-list into 617a3866c271c09845f9cd31c85bfa1e820066e2 on ringcentral:master.


Small QOL updates

Better handling of mobile
Better check for info/debug/warn in regex for log
Added the logo icon as a favicon

thanks!


Width of the "Config" window

Width of the "Config" window it is not enough to write the days of the week in Russian without abbreviations.
A little bit wider, it would be great!

Thanks for feedback, will be improved at the next release.

Great!


Is there a way to set MaxExpiration to never?

I'm running a gameserver and basically use memcached across different cpu's for load balancing of temporary player data, etc.
Problem is, the default MaxExpiration can only be set to a max of 30 days. Was wondering if I could somehow increase this to years, or somehow never have a expiration date. If my gameserver crashes, so will memcache so a expiration date is pointless to me.
Thank you,
-Nick

Also, same goes for:
maxValue: 1048576, the maximum size of a value.
Players can create games and I load them into a global GAMES object.  Basically in my current data, around 50,000 or games (keys in my object) are created with my current data sets, it will exceed this. Is there a way to disable this maxValue limit as well?

+1


Detection Accuracy

Hi guys,
i have this project i'm working on, what it does is that it detect and count the total fish in a picture. After training, i tried to get the total fish in this picture but it is not giving me the accurate value. Meanwhile, this picture only contain small number of fish, i have pictures that contain higher number

Any help will be appreciated!

Hi can you Show Dome Images with drawn bboxes thy so I can get a rough idea how "accurate" your model is

Hi can you Show Dome Images with drawn bboxes thy so I can get a rough idea how "accurate" your model is

This is an example

I see what your problem is all the labels you have mad are rectangle and probably have other part from other fish like
the one I made in this picture

so this way of annotating actually trains your model to detect many fishes at the same time bc your dataset includes bbox with more than one fish like a fish head or  fish body.  And some get detected correctly bc you also have some bbox with a clear white space around it. So for that particular project I would give you the advice to train a segmentation model. It accommodates for those weird shape, and it will probably work better for your case it prevents from "overlapping" bboxes

To understand what you mean, the best way to achieve good accuracy is through the use of image segmentation. Thanks so much.
Can you provide a brief guide which i can follow to this image segmentation, train model or can ImageAI also do that ?

@alic-xc if you are considering using Image Segmentation ( best to use instance segmentation ), you can use this library.
https://github.com/ayoolaolafenwa/PixelLib

@alic-xc  did it work to train the segmentation model ?
and how are the results ?

@ekesdf the result is very poor. I just had to stop the project because it wasted my time and waste resources. I don't know whether it was the library I used or the model I generated.
However I'm still open to any better approach one can use to solve the problem.

Do you have your dataset uploaded somewhere, so I can try to get it running ?

@ekesdf Okay.
I used pixelLib (https://github.com/ayoolaolafenwa/PixelLib) for it.
this is the link for the trained models (https://drive.google.com/drive/folders/1OKhxbJ-tCddcm3acq7beeobOvn6DJR6x?usp=sharing)
for the dataset (https://drive.google.com/file/d/1Q8OYH1BCjTpd4vYvumy4wOZ9j6fLVApk/view?usp=sharing)

@alic-xc good new for you, I was able to train a model that can predict correctly like shown in this picture
Prediction

Original

Here is the model with the best acc
tensorflow==2.4.0
cuda==11.0
cudnn==<IP_ADDRESS>-1
python==3.8.5-64bit
Code used for training
from pixellib.custom_train import instance_custom_training

train_maskrcnn = instance_custom_training()
train_maskrcnn.modelConfig(network_backbone = "resnet101", num_classes= 1, batch_size = 2,gpu_count=1)
train_maskrcnn.load_pretrained_model("mask_rcnn_coco.h5")
train_maskrcnn.load_dataset("fingerlings")

train_maskrcnn.train_model(num_epochs = 10, augmentation=True,  path_trained_models = "mask_rcnn_coco")

Code used for prediction
from pixellib.instance import custom_segmentation

test_video = custom_segmentation()
test_video.inferConfig(num_classes=  1, class_names=["fish"])
test_video.load_model("/mask_rcnn_model.066-0.176888.h5")
test_video.segmentImage("fingerlings/test/earlyFingerling368.jpg",output_image_name="test.jpg")

Code used for evaluation
from pixellib.custom_train import instance_custom_training

train_maskrcnn = instance_custom_training()
train_maskrcnn.modelConfig(network_backbone = "resnet101", num_classes= 1)
train_maskrcnn.load_dataset("fingerlings")
train_maskrcnn.evaluate_model("mask_rcnn_model.010-0.184201.h5",iou_threshold=0.8)

@ekesdf Wow, that's a great work you did.
However, i haven't test it with multiple fishes in an image. Let me test and get back to you.

With the code I send it the previous comment the training should work fine on any data
Like with one fish or 2 or more in the same picture

Good. i'm testing it now, will give you feedback on that.

@ekesdf I tested it yesterday, and it was working fine. I have a ton of question but I would like to send it to you personally, so I can close this issue.
Would you mind sharing the easy way to reach you?

I am gonna Open an issue at one of your repos
With the information

That's fine.


expose a gRPC/HTTP interface

Neutrino makes it very cheap to run instances that tracks wallet activity.
Assuming logic to import a descriptor (or just granular scripts like now) we can notify users about any blockchain activity on those derived/imported scripts.
Would be cool to support gRPC streaming as way to make notifications, but assuming the primary use case for this are browsers, best to start with basic HTTP and use Server Side Events or WebSocket
(here a comparisons of two tech https://stackoverflow.com/questions/5195452/websockets-vs-server-sent-events-eventsource)

Inspiration for server side events (or websocket topics) we can follow
https://github.com/bwt-dev/bwt#server-sent-events


Dump of UI/UX concerns and suggestions

Hi! Below is a dump of UI and UX things that concern me, and suggestions on how to improve, in no particular order.
For info, I'm testing on Firefox 82.0 on Ubuntu 20.04.1 LTS.
First of all, most text is too small! All text should be at least over 10px to be comfortable and legible. I'd use at least 13px.
Then, these icons are way too big, especially compared to the text. You shouldn't scale up icons designed at small sizes.

Then, the pricing table could be presented in a "friendlier" and easier sacannable way, using cards  and showing only the most important points, also emphasizing one of the two subscriptions more, for example.
Finally, there is a general lack of contrast in some places. For example, the primary button text color has a contrast of only 3.60 from the background, and the IX+ yellow has a 1.30 contrast with the page background (in light mode). The WCAG recommended value is of at least 4.5 for regular text and 3 for large text.

Okay so I read this before and I do hear your point. I'll try to address each one but this might not make sense because this is just me listing different points
UI on this website has been a point of concern for me for a while. The problem is that I rushed the development of the main website. I based everything around the editor, which to be honest, had a really bad interface in the first place. The CSS, let alone the HTML, of the website is barely readable or easy to modify (ArduinoidIOT can attest to that). Overall, it is consistent and is in need of a refresh. However that refresh is going to take up more development time in a project that is already months behind schedule for its release. Doing a refresh of the UI is something that I looked at months prior and saved for post-launch. But as I have gone on with development, the UI has grown bulkier and harder to manage. A UI overhaul is inevitable at this point. I looked into different frameworks and decided to settle with TailwindCSS. It seems like the best library to get the job done and has minimal impact on the design process. This would help clean up the site, ensure uniformity, and tackle most (if not all) of the issues presented.
The font on the website is 12px. I can up it to 13px if needed but that may conflict with spacing/display in the editor. I am planning to replace the icons with something from https://undraw.co/ today. When it comes to pricing, that issue will be discussed later in a separate issue. Do you have any suggestions regarding the text contrast?
By the way that article seems good. I'll try and implement some of the suggestions.
tl;dr: I hear you out on the UI. Overhaul coming soon. Working on temporary UI changes to fix some of the issues.

Hey so yesterday I pushed some commits that cleaned up the homepage UI a bit. Let me know what you think.

I'll take a look, if I remember.

I uploaded screenshots of them. Sorry if they look a bit funny.... they were taken on a remote computer.

Better, athough images could be smaller or text could have more line-height

@Skyclo I think you should also add some more padding on the left and right sides.  It looks a little odd on widescreen devices.  People also prefer to read more shorter lines of text than a few long lines, so maybe reduce the width of the textboxes?

The website is currently being redone using tailwindcss. This should make the UI a lot better (as you can tell css is not my specialty lol)


Merge release back to master

Do not squash the commits.

@ficristo I was thinking of doing this tomorrow but all thanks to you, already did 👍


Correcting syntax in batch-create example

This confused me! Props to @armirusco for pointing out the correct syntax to me.

Thanks!
Closed by efa9d3c0d165a4c49def26b423711ed28eb2d264.


Rename diagnostics.rs to error-codes.rs

Update following https://github.com/rust-lang/rust/pull/60025

Thanks!

Deployed.


menus not loaded properly based on different user

I'm submitting a ...
[ ] bug report

While logging as different user, The entire content and the sidebar is not loaded on first load. After refreshing its working fine.

Angular version: 2.1.1-rc.X

Browser: [all |Chrome 53]

//app.menu.ts
var ACTIVE_MENU: any;
var pathArray = window.location.hash.split('/');
var second = pathArray[1];
if (second === 'demo') {
ACTIVE_MENU = DEMO_MENU;
} else {
ACTIVE_MENU = PAGES_MENU;
}
export const MENU = [
...ACTIVE_MENU
];
//login.component.ts
if (values.email === 'testuser') {
this.router.navigate(['pages/home']);
} else {
this.router.navigate(['demo/dashboard']);
}
}

Hi @vinothinivenkatesan
We would be happy to help you, but could you please provide us with more information about what you are doing?


Replace 'En Dash' character with 'Hyphen-Minus'

The value range for long uses an 'En Dash' character instead of a 'Hyphen-Minus'.
This means when the value is copied and used in a context which expects a number, the 'En Dash' is likely to not be understood. Also an 'En Dash' is punctuation and is the wrong character to be using.

@mconnew,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Link to other official examples

Overview of the Issue - There are more official examples than just the ones in this repository
Motivation for or Use Case - I unexpectedly found a custom auth for LinkedIn for web
Browsers and Operating System - for web

@jayenashar thanks!


User profile enhancements

Give users some surface area to tell people about themselves.

Other things

profile photos ... I want to default give all users laser eyes. Might be able to cook up an ML model or maybe just provide a tool to do it manually.
sactivity ... give users insight into their sat spending/history with maybe a graph over time

[ x] bios
[] profile photos
[] "pay me bitcoin"


Add minTileHeight to ListTileTheme

minTileHeight was added by https://github.com/flutter/flutter/pull/145244 to ListTile widget so its height can be customized to less than the default height.
This PR supports setting minTileHeight at the ListTileTheme too.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

This might be covered by https://github.com/flutter/flutter/issues/91772 where we are normalizing component themes to use *ThemeData, and I think @nate-thegrate has already pointed out this is included there.

Hello! The minTileHeight has been added to ListTileTHemeData. Using
ListTileTheme(
  data: ListTileThemeData(
    minTileHeight: xxx
  )
)

would be encouraged since this pattern follows Flutter widget theme convention:)

Hello! The minTileHeight has been added to ListTileTHemeData. Using
ListTileTheme(
  data: ListTileThemeData(
    minTileHeight: xxx
  )
)

would be encouraged since this pattern follows Flutter widget theme convention:)

I see. This PR just adds an obsolete property to ListTileTheme that can be used directly. I guess this is no longer needed for new properties :)

We should not use these properties in ListTileTheme directly and the existing properties, except ListTileTheme.data, would be deprecated in the future. Would you mind if we close this PR for now:)? And you are right, if we have new theme properties to customize ListTile, we should add the new ones to ListTileThemeData instead of ListTileTheme.


[11.x] fix: findOr and firstOr generics

Hello!
This fixes a few issues in the firstOr/findOr method generics---it can't have a null return type because a callback is always expected.
Thanks!

Thank you!


Hover trigger don't work propertly

Bug
when using hover trigger, the popover disappear just after being showed and loop on show/hide in case you don't move your mouse
What is the expected behaviour?
the popover must close after leaving the popover it self and not just leaving the component triggering the popover
What is the current behaviour?
when using hover trigger, the popover disappear just after being showed, and still looping on show/hide in case you don't move your mouse.
I think the problem in the target of the mouseleave listener
What are the steps to reproduce?
just try it on the demo interface.
What is the use-case or motivation for changing an existing behaviour?
Which versions of Angular, Material-Extended, OS, TypeScript, browsers are affected?
3.0.3 version
ubuntu 20.04
chrome Version 89.0.4389.90 (Official Build) (64-bit)
Other Comments

You have to add an EventListener type 'mouseleave' to _overlayRef and combine it in some way with the popver directive mouseleave listener ti fix the problem


fix: blog/websocket-part2 having rendering issues

Description
Currently, this blog in blogs section of the website is having rendering issue. The problem was in markdown where we were trying to add a code block within a yaml block, which causes CodeBlock component in /components/MDX/MDX.tsx to throw below error

Updated State:

Current code might work when it is in markdown form, as it can be seen here  but not while rendering it (which caused the issue)
Related issue(s)
Fixes #3162

@Saumya40-codes can you please open an issue for this

@Saumya40-codes can you please open an issue for this

Should I again? Existing issue already exist, opened by @\derberg

Ohh my bad I missed it

These changes are being fixed by one of my pr but we can merge this one earlier
Ref https://github.com/asyncapi/website/pull/3111

These changes are being fixed by one of my pr but we can merge this one earlier
Ref https://github.com/asyncapi/website/pull/3111

Oh I saw that, should I change the existing implementation to that one ?
(Though both will work fine)

Yeahhh you can change it
My PR will take some time to get merged so you can make the changes accordingly and then we can proceed with this one

Yeahhh you can change it My PR will take some time to get merged so you can make the changes accordingly and then we can proceed with this one

Updated!

/rtm


[Bug]: The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
This error occurs in the development because, the next.config.js is using deprecated image configuration.
Expected behavior
Next.js image configuration needs to be changed to the latest configuration.
Add ScreenShots

On which device are you experiencing this bug?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊
You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

Hello @dhairyathedev! Your issue #328 has been closed. Thank you for your contribution!


refactor and test ui_focus_system

Objective
While digging through the bevy code, I found that ui_focus_system overly complex and quite hard to understand. -> make it easier to understand.
Solution

write unit tests
refactor
I tried to introduce no logical changes

Ok, apparently the ci fails:
 = rustc_version v0.2.3
  └── (build) stdweb v0.4.20
      └── gilrs-core v0.3.2
 = rustc_version v0.4.0
  └── (build) rstest v0.12.0
      └── (dev) bevy_ui v0.7.0-dev

Is there any chance to make this work?

For the CI, the workaround is to whitelist the duplicate dependencies. That said, I'm reluctant to pull a unit testing framework into our dependency tree just for this.
What benefit does it offer here?

So, WRT the testing strategy: #3835 is the blocker here. IMO we should hold off on this until that's merged, then use the headless windows there to enable us to write proper tests for this code.

You might be interested in https://github.com/bevyengine/rfcs/pull/41 and https://github.com/nicopap/ui-navigation. I'm planning to start the bevy PR next week (I still need to update the RFC with the second round of changes). I'm not sold on rtest either, to be perfectly honest, the test code was completely obtuse to me :grinning:. Looks great now though!
The ui-navigation crate is sorely lacking when it comes to tests. And unlike bevy's focus system, it's fairly well documented.

I guess after adding a test that checks change detection, unfortunately most of my changes won't work.
At least there are a couple more tests. The "Option<Interaction> -> Interaction" change can be kept, and maybe a refactoring of cutting it into smaller functions. But the approach "set everything to None, then check the state" won't work. Or does anyone have an idea how to make it work?
Anyway, I'll leave this PR around. Ping me once headless windows are there. I believe the tests can easily be adapted to work without the extra trait then.

This looks like it has gone stale, and we are now planning to deprecate Interaction anyway. Closing as not planned.


Add UX and Tracker internal templates

Adds additional internal flow templates for creating issues.

/lgtm
@kywalker-rh @vconzola let us know what you think about the ux template


Gralde not running unit tests

Hi i am trying to use and run unit tests on my android app using the Robolectric Test framework.
However. when i run the command ./gradlew test it does not seem to run my unit tests at all.
here is the output i get:
./gradlew test
WARNING: Dependency commons-logging:commons-logging:1.1.1 is ignored for debugAndroidTest as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages
WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.3 is ignored for debugAndroidTest as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareComSothreeSlidinguppanelLibrary300Library
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-mdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-hdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-xhdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:compileDebugJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:preCompileDebugUnitTestJava
:app:compileDebugUnitTestJava UP-TO-DATE
:app:compileDebugUnitTestSources UP-TO-DATE
:app:mockableAndroidJar
:app:assembleDebugUnitTest
:app:testDebug
:app:checkReleaseManifest
:app:prepareReleaseDependencies
:app:compileReleaseAidl
:app:compileReleaseRenderscript
:app:generateReleaseBuildConfig
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-mdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-xhdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-hdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

:app:processReleaseManifest
:app:processReleaseResources
:app:generateReleaseSources
:app:compileReleaseJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:preCompileReleaseUnitTestJava
:app:compileReleaseUnitTestJava UP-TO-DATE
:app:compileReleaseUnitTestSources UP-TO-DATE
:app:assembleReleaseUnitTest
:app:testRelease
:app:test

BUILD SUCCESSFUL

Total time: 9.009 secs

Here is my test class that should fail when running the test
package com.jonney.cameraapp;

import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;

import static junit.framework.Assert.fail;

/**
 * Testing Fundamentals
 */
@Config(emulateSdk = 18)
@RunWith(RobolectricTestRunner.class)
public class ApplicationTest {

    public void testSomething() {
        fail("testing fail state");
    }
}

My gradle script:
apply plugin: 'com.android.application'
apply plugin: 'org.robolectric'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.1"

    defaultConfig {
        applicationId "com.jonney.cameraapp"
        minSdkVersion 21
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.google.code.gson:gson:2.3'
    compile "joda-time:joda-time:2.4"
    androidTestCompile('junit:junit:4.12') {
        exclude module: 'hamcrest'
        exclude module: 'hamcrest-core'
    }
    androidTestCompile 'org.hamcrest:hamcrest-all:1.3'
    androidTestCompile('org.mockito:mockito-core:1.9.5') {
        exclude module: 'hamcrest'
        exclude module: 'hamcrest-core'
    }
    compile 'com.sothree.slidinguppanel:library:3.0.0'

    compile 'com.jakewharton:butterknife:6.1.0'

    androidTestCompile('org.robolectric:robolectric:2.4') {

    }

    compile 'com.fasterxml.jackson:jackson-parent:2.5'
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.+'
        classpath 'org.robolectric:robolectric-gradle-plugin:1.0.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

Try annotating your test method with @Test:
@Test
public testSomething() {
fail("testing fail state");
}
On Wed, Mar 18, 2015 at 3:27 AM, jonneymendoza<EMAIL_ADDRESS>wrote:

Hi i am trying to use and run unit tests on my android app using the
Robolectric Test framework.
However. when i run the command ./gradlew test it does not seem to run my
unit tests at all.
here is the output i get:
./gradlew test
WARNING: Dependency commons-logging:commons-logging:1.1.1 is ignored for debugAndroidTest as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.3 is ignored for debugAndroidTest as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareComSothreeSlidinguppanelLibrary300Library
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-mdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-hdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-xhdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:compileDebugJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:preCompileDebugUnitTestJava
:app:compileDebugUnitTestJava UP-TO-DATE
:app:compileDebugUnitTestSources UP-TO-DATE
:app:mockableAndroidJar
:app:assembleDebugUnitTest
:app:testDebug
:app:checkReleaseManifest
:app:prepareReleaseDependencies
:app:compileReleaseAidl
:app:compileReleaseRenderscript
:app:generateReleaseBuildConfig
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-mdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-xhdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/jonathan/Work/CameraApp/app/src/main/res/drawable-hdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processReleaseManifest
:app:processReleaseResources
:app:generateReleaseSources
:app:compileReleaseJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:preCompileReleaseUnitTestJava
:app:compileReleaseUnitTestJava UP-TO-DATE
:app:compileReleaseUnitTestSources UP-TO-DATE
:app:assembleReleaseUnitTest
:app:testRelease
:app:test
BUILD SUCCESSFUL
Total time: 9.009 secs
Here is my test class that should fail when running the test
package com.jonney.cameraapp;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static junit.framework.Assert.fail;
/**

Testing Fundamentals
*/
@Config(emulateSdk = 18)
@RunWith(RobolectricTestRunner.class)
public class ApplicationTest {
public void testSomething() {
fail("testing fail state");
}
}

My gradle script:
apply plugin: 'com.android.application'
apply plugin: 'org.robolectric'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
    applicationId "com.jonney.cameraapp"
    minSdkVersion 21
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:21.0.3'
compile 'com.google.code.gson:gson:2.3'
compile "joda-time:joda-time:2.4"
androidTestCompile('junit:junit:4.12') {
exclude module: 'hamcrest'
exclude module: 'hamcrest-core'
}
androidTestCompile 'org.hamcrest:hamcrest-all:1.3'
androidTestCompile('org.mockito:mockito-core:1.9.5') {
exclude module: 'hamcrest'
exclude module: 'hamcrest-core'
}
compile 'com.sothree.slidinguppanel:library:3.0.0'
compile 'com.jakewharton:butterknife:6.1.0'

androidTestCompile('org.robolectric:robolectric:2.4') {

}

compile 'com.fasterxml.jackson:jackson-parent:2.5'

}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.+'
classpath 'org.robolectric:robolectric-gradle-plugin:1.0.1'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}
allprojects {
repositories {
jcenter()
}
}
--
Reply to this email directly or view it on GitHub
https://github.com/robolectric/robolectric-gradle-plugin/issues/143.

Try annotating your test method with @Test:
@Test
public void testSomething() {
    fail("testing fail state");
}


Map to Object

E.g.

Greeting greeting =
get("/something").andMap().path("greeting.firstName").and().path("greeting.lastN
ame").to(Greeting.class);

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 6 Oct 2011 at 4:54

Perhaps this should be added to JsonPath and XmlPath instead? E.g.

Greeting greeting =
get("/something").jsonPath().map().includeString("greeting.firstName").and().inc
lude("greeting.lastName").to(Greeting.class);

Original comment by<EMAIL_ADDRESS>on 7 Oct 2011 at 7:37

Perhaps:

Greeting greeting =
get("/something").jsonPath().map().path("greeting.firstName",
String.class).and().path("greeting.lastName").to(Greeting.class);

Original comment by<EMAIL_ADDRESS>on 16 Dec 2011 at 3:24

Greeting greeting =
get("/something").andMap().path("greeting.firstName").and().path("greeting.lastN
ame").to(Greeting.class);

Here we could determine whether to use JsonPath or XmlPath by looking at the
content-type of the response

Original comment by<EMAIL_ADDRESS>on 16 Dec 2011 at 3:26


rootElementClass cannot track valid

Because rootElementClass is a prop and not derived, one can't override it to be something that can track the input's state like validityClass currently does.  A lot of UI layouts have the entire label styled differently for error/valid state.

Oh I see now this is a dupe of #38


Any change in a site or scan info starts a new scan

If the nmap command or site name is changed, it's viewed as a new scan.  Need better logic to determine if a scan should be scheduled or not.
https://github.com/rackerlabs/scantron/blob/1f263f01e1539e80d22fc5243c488c8c5e30d6fe/master/scan_scheduler.py#L90
https://django-recurrence.readthedocs.io/en/latest/usage/recurrence_field.html#

https://github.com/rackerlabs/scantron/pull/61 should fix this


out of memory

When I ran evaluate_sample, I got "CUDA_ERROR_OUT_OF_MEMORY", but the results is correct. My GPU has 8GB memory.
Is it correct that the demo will cost that amount of memory? If so, does that mean I can not train by using this single GPU?

You should be able to train, but will have to adjust the batch size
accordingly. For example batches of 2 videos, each with 64 frames should
fit your gpu during training.
Joao
On Mon, Jul 8, 2019 at 11:57 AM geminikq<EMAIL_ADDRESS>wrote:

When I ran evaluate_sample, I got "CUDA_ERROR_OUT_OF_MEMORY", but the
results is correct. My GPU has 8GB memory.
Is it correct that the demo will cost that amount of memory? If so, does
that mean I can not train by using this single GPU?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/deepmind/kinetics-i3d/issues/70?email_source=notifications&email_token=ADXKU2U2WPALMTN34PLRJ2DP6MMR5A5CNFSM4H62ORRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G52H3PA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADXKU2WEFJGW6XKYJAJ5AYTP6MMR5ANCNFSM4H62ORRA
.


Using Kaniko catalog with ECR does not seem to work

So, I am trying to upload docker images to AWS ECR, I've added the IAM bindings to the EKS policy.
The problem is, with a PipelineRun I see no way to tell the Kaniko task how to set the environment variable as mentioned by the Kaniko developers for their container:
You can use instance roles when pushing to ECR from a EC2 instance or from EKS, by configuring the instance role permissions (the AWS managed policy EC2InstanceProfileForImageBuilderECRContainerBuilds provides broad permissions to upload ECR images and may be used as configuration baseline). Additionally, set AWS_SDK_LOAD_CONFIG=true as environment variable within the kaniko pod
So.
Given this command line as an example to test my Pipeline:
tkn pipeline start clone-build-pipeline --param image=XXXXXXXXX.dkr.ecr.us-west-2.amazonaws.com/myapp-dev00/test/app --param url=https://github.com/MyCompany/myApp --param revision=develop --param verbose=true --param imageTag=0.0.0 --workspace name=shared-workspace,claimName=tekton-build-pvc --workspace name=git-config,secret=github-access-token --workspace name=ecr-config,config=docker-config,item=config.json=1 --showlog
Error:
[build-push-image : build-and-push] error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "XXXXXXXXX.dkr.ecr.us-west-2.amazonaws.com/myapp-dev00/test/app:0.0.0": Post "https://XXXXXXXXX.dkr.ecr.us-west-2.amazonaws.com/v2/myapp-dev00/test/app/blobs/uploads/": EOF
So how do I set AWS_SDK_LOAD_CONFIG=true to the task from the pipeline/run?
Thanks!

@spstarr The bad news is that today you can't using the stock kaniko task today. The good news are:

you can create your own copy of the kaniko task which sets AWS_SDK_LOAD_CONFIG (based on the an input parameter if you wish)
we have folks working on addressing this, see TEP-101 Env in Pod Template

Feel free to chime in the discussion on the TEP if you'd like, yours is definitely a good use case for adding the ability of passing env variables through in some way, since I would not want to change the catalog kaniko task to support every possible cloud vendor specific environment variable, but still I would like everyone to be able to use the stock kaniko task without having to create their own version of it.

I'll clone the catalog in the meantime, as workaround. When new Tekton comes out with the CRD changes supported, I'll update our tekton-pipelines deployment.

This worked when I modified the catalog for Kaniko, and:
  steps:
    - name: build-and-push
      workingDir: $(workspaces.source.path)
      image: $(params.BUILDER_IMAGE)
      env:
        - name: AWS_SDK_LOAD_CONFIG
          value: 'true'
        - name: AWS_EC2_METADATA_DISABLED
          value: 'true'

This worked, and some fixing of my IAM roles, I had an issue with wrong mapping but then it worked.

Tekton v0.30.4
Kaniko build task works without issues on AWS EKS 1.20 with IRSA (IAM Roles for Service Accounts) enabled.
The only patch you need to apply is to user proper service account:
Service account
apiVersion: v1
kind: ServiceAccount
metadata:
  name: edp-kaniko
  namespace: tekton-pipelines
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::012345678910:role/AWSIRSAKaniko

PipelineRun
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  name: petclinic-kaniko
spec:
  serviceAccountNames:
    - taskName: kaniko-build          # my task
      serviceAccountName: edp-kaniko  # service account with Enabled IRSA
  pipelineRef:
    name: maven-build-pipeline
...

Here is more documentation on how we do this:
https://epam.github.io/edp-install/operator-guide/kaniko-irsa/
Here is official AWS Documentation:
https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
To summarize, AWSIRSAKaniko is a role with attached policy and trust relationships:

Policy:

{
    "Statement": [
        {
            "Action": "ecr:*",
            "Effect": "Allow",
            "Resource": "arn:aws:ecr:REGION:012345678910:repository/*"
        },
        {
            "Action": "ecr:GetAuthorizationToken",
            "Effect": "Allow",
            "Resource": "*"
        },
        {
            "Action": [
                "ecr:DescribeRepositories",
                "ecr:CreateRepository"
            ],
            "Effect": "Allow",
            "Resource": "arn:aws:ecr:REGION:012345678910:repository/*"
        }
    ],
    "Version": "2012-10-17"
}

Trust relationships:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Principal": {
                "Federated": "arn:aws:iam::012345678910:oidc-provider/oidc.eks.REGION.amazonaws.com/id/XXXXXXXXXXXXXXXXXXXX"
            },
            "Action": "sts:AssumeRoleWithWebIdentity",
            "Condition": {
                "StringEquals": {
                    "oidc.eks.REGION.amazonaws.com/id/XXXXXXXXXXXXXXXXXXXX:sub": "system:serviceaccount:NAMESPACE-WITH-BUILD-POD:edp-kaniko"
                }
            }
        }
    ]
}

Really appreciate the prompt response on this - I'll try this out today. Thank you!

Hi @SergK just tried this today and I'm still getting error checking push permissions - did you also set up dockerconfig? Or is yours working just with service account addition?

Hi @seunggs , we are working with ServiceAccount only (you don't need dockerconfig in this case). You can enable IRSA and try to debug by following instructions here https://epam.github.io/edp-install/operator-guide/enable-irsa/

OK, will take a look at this - thank you!

Just an update - still having issues even though I was able to confirm that irsa is set up correctly and ServiceAccount is attached to the PipelineRun. No idea why it's not working as everything seems to be set up correctly... Nothing seems to change the error message.


Execution failed for task ':app:createBundleDevDebugJsAndAssets'. > Process 'command 'cmd'' finished with non-zero exit value 1

New Version
0.71.3
Old Version
0.64.2
Build Target(s)
Could not resolve  ':app:createBundleDevDebugJsAndAssets'.   and  java.lang.StackOverflowError (no error message)  this error
Output of react-native info
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:createBundleDevDebugJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

Issue and Reproduction Steps
android/app/build.gradle
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
apply plugin: 'com.google.gms.google-services'
googleServices {
    disableVersionCheck = true
}
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: "com.google.firebase.firebase-perf"

import com.android.build.OutputFile

/**
 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
 * and bundleReleaseJsAndAssets).
 * These basically call `react-native bundle` with the correct arguments during the Android build
 * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
 * bundle directly from the development server. Below you can see all the possible configurations
 * and their defaults. If you decide to add a configuration block, make sure to add it before the
 * `apply from: "../../node_modules/react-native/react.gradle"` line.
 *
 * project.ext.react = [
 *   // the name of the generated asset file containing your JS bundle
 *   bundleAssetName: "index.android.bundle",
 *
 *   // the entry file for bundle generation. If none specified and
 *   // "index.android.js" exists, it will be used. Otherwise "index.js" is
 *   // default. Can be overridden with ENTRY_FILE environment variable.
 *   entryFile: "index.android.js",
 *
 *   // https://reactnative.dev/docs/performance#enable-the-ram-format
 *   bundleCommand: "ram-bundle",
 *
 *   // whether to bundle JS and assets in debug mode
 *   bundleInDebug: false,
 *
 *   // whether to bundle JS and assets in release mode
 *   bundleInRelease: true,
 *
 *   // whether to bundle JS and assets in another build variant (if configured).
 *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
 *   // The configuration property can be in the following formats
 *   //         'bundleIn${productFlavor}${buildType}'
 *   //         'bundleIn${buildType}'
 *   // bundleInFreeDebug: true,
 *   // bundleInPaidRelease: true,
 *   // bundleInBeta: true,
 *
 *   // whether to disable dev mode in custom build variants (by default only disabled in release)
 *   // for example: to disable dev mode in the staging build type (if configured)
 *   devDisabledInStaging: true,
 *   // The configuration property can be in the following formats
 *   //         'devDisabledIn${productFlavor}${buildType}'
 *   //         'devDisabledIn${buildType}'
 *
 *   // the root of your project, i.e. where "package.json" lives
 *   root: "../../",
 *
 *   // where to put the JS bundle asset in debug mode
 *   jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
 *
 *   // where to put the JS bundle asset in release mode
 *   jsBundleDirRelease: "$buildDir/intermediates/assets/release",
 *
 *   // where to put drawable resources / React Native assets, e.g. the ones you use via
 *   // require('./image.png')), in debug mode
 *   resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
 *
 *   // where to put drawable resources / React Native assets, e.g. the ones you use via
 *   // require('./image.png')), in release mode
 *   resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
 *
 *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means
 *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
 *   // date; if you have any other folders that you want to ignore for performance reasons (gradle
 *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
 *   // for example, you might want to remove it from here.
 *   inputExcludes: ["android/**", "ios/**"],
 *
 *   // override which node gets called and with what additional arguments
 *   nodeExecutableAndArgs: ["node"],
 *
 *   // supply additional arguments to the packager
 *   extraPackagerArgs: []
 * ]
 */

project.ext.react = [
    entryFile: "index.js",
    enableHermes: true,  // clean and rebuild if changing
]

project.ext.envConfigFiles = [
    dev: "env/.env.dev",
    prod: "env/.env.prod",
]

apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"

/**
 * Set this to true to create two separate APKs instead of one:
 *   - An APK that only works on ARM devices
 *   - An APK that only works on x86 devices
 * The advantage is the size of the APK is reduced by about 4MB.
 * Upload all the APKs to the Play Store and people will download
 * the correct one based on the CPU architecture of their device.
 */
def enableSeparateBuildPerCPUArchitecture = false

/**
 * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
 */
def enableProguardInReleaseBuilds = false

/**
 * The preferred build flavor of JavaScriptCore.
 *
 * For example, to use the international variant, you can use:
 * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
 *
 * The international variant includes ICU i18n library and necessary data
 * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
 * give correct results when using with locales other than en-US.  Note that
 * this variant is about 6MiB larger per architecture than default.
 */
def jscFlavor = 'org.webkit:android-jsc:+'

/**
 * Whether to enable the Hermes VM.
 *
 * This should be set on project.ext.react and mirrored here.  If it is not set
 * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
 * and the benefits of using Hermes will therefore be sharply reduced.
 */
def enableHermes = project.ext.react.get("enableHermes", false);

def reactNativeArchitectures() {
    def value = project.getProperties().get("reactNativeArchitectures")
    return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

android {
    ndkVersion rootProject.ext.ndkVersion

    compileSdkVersion rootProject.ext.compileSdkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    namespace "com.indigolearn.fin1"
    defaultConfig {
        applicationId "com.indigolearn.fin1"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis())
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled true
        versionCode 55
        versionName "2.1.2"
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include (*reactNativeArchitectures())
        }
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }
        release {
            if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
                storeFile file(MYAPP_UPLOAD_STORE_FILE)
                storePassword MYAPP_UPLOAD_STORE_PASSWORD
                keyAlias MYAPP_UPLOAD_KEY_ALIAS
                keyPassword MYAPP_UPLOAD_KEY_PASSWORD
            } else {
                storeFile file('debug.keystore')
                storePassword 'android'
                keyAlias 'androiddebugkey'
                keyPassword 'android'
            }
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            // Caution! In production, you need to generate your own keystore file.
            // see https://reactnative.dev/docs/signed-apk-android.
            signingConfig signingConfigs.release
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    flavorDimensions "default"
    productFlavors {
        dev {
            minSdkVersion rootProject.ext.minSdkVersion
            applicationId 'com.indigolearn.fin1.dev'
            targetSdkVersion rootProject.ext.targetSdkVersion
            signingConfig signingConfigs.debug
            resValue "string", "build_config_package", "com.indigolearn.fin1"
        }
        prod {
            minSdkVersion rootProject.ext.minSdkVersion
            applicationId 'com.indigolearn.fin1'
            targetSdkVersion rootProject.ext.targetSdkVersion
            signingConfig signingConfigs.release
            resValue "string", "build_config_package", "com.indigolearn.fin1"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // https://developer.android.com/studio/build/configure-apk-splits.html
            // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        defaultConfig.versionCode * 1000 + versionCodes.get(abi)
            }

        }
    }
}

dependencies {
     implementation("com.facebook.react:react-android")
    implementation fileTree(dir: "libs", include: ["*.jar"])
    //noinspection GradleDynamicVersion
    implementation "com.facebook.react:react-native:+"  // From node_modules
    implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
    debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
    debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
        exclude group:'com.squareup.okhttp3', module:'okhttp'
    }

    debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
    if (hermesEnabled.toBoolean()) {
        implementation("com.facebook.react:hermes-android")
    } else {
        implementation jscFlavor
    }

    if (enableHermes) {
        def hermesPath = "../../node_modules/hermes-engine/android/";
        debugImplementation files(hermesPath + "hermes-debug.aar")
        releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
        implementation jscFlavor
    }
    implementation project(':react-native-razorpay')
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use

task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.implementation
    into 'libs'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

android/build.gradle..............................................................
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
         compileSdkVersion = 33
        targetSdkVersion = 33

        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
        googlePlayServicesAuthVersion = "16.0.1"
        firebaseIidVersion = "18.0.0"
        kotlin_version = '1.6.10' // <- add this line

    }
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
         classpath("com.android.tools.build:gradle:7.3.1")
         classpath("com.facebook.react:react-native-gradle-plugin")
         classpath 'com.google.gms:google-services:4.3.14'
         classpath'com.google.firebase:firebase-crashlytics-gradle:2.9.4'
         classpath 'com.google.firebase:perf-plugin:1.4.2'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" // <- add this line

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {

    def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

    configurations.all {
        resolutionStrategy {
            // Remove this override in 0.65+, as a proper fix is included in react-native itself.
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
             }
        }

    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }

        google()
        jcenter()
        maven { url 'https://www.jitpack.io' }
        maven { url 'https://maven.google.com' }
        maven {
              url "https://github.com/VdoCipher/maven-repo/raw/master/repo"
        }
    }
}

Can you also please share the full console log?

Can you also please share the full console log?

Okay I will share

I am facing the same issue when upgraded from 0.66.4 to `0.73.1
Platform: Android
This is the full log of the failed task for  https://gist.github.com/ketimaBU/3e40f750b84f6fde9592b26cb8b87cff @cortinico

I am facing the same issue when upgraded from 0.66.4 to 0.73.1

Please open a separate issue.

Error: resolveDependencies: Found duplicate dependency key 'undefined' in C:\Project_Repo\App_Frontend\IndigoLearn\index.js
at Graph._resolveDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:449:15)
at Graph._processModule (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:218:38)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Graph._traverseDependenciesForSingleFile (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:207:5)
at async Promise.all (index 0)
at async Graph.initialTraverseDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:191:5)
at async DeltaCalculator._getChangedDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:196:25)
at async DeltaCalculator.getDelta (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:90:16)
at async DeltaBundler.buildGraph (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler.js:54:5)
at async IncrementalBundler.buildGraphForEntries (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\IncrementalBundler.js:64:19)

Task :app:createBundleDevDebugJsAndAssets FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
97 actionable tasks: 4 executed, 93 up-to-date
error resolveDependencies: Found duplicate dependency key 'undefined' in C:\Project_Repo\App_Frontend\IndigoLearn\index.js
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

What went wrong:
Execution failed for task ':app:createBundleDevDebugJsAndAssets'.

Process 'command 'cmd'' finished with non-zero exit value 1

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

What went wrong:
java.lang.StackOverflowError (no error message)

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

Get more help at https://help.gradle.org

BUILD FAILED in 1m 10s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDevDebug -PreactNativeDevServerPort=8081
error resolveDependencies: Found duplicate dependency key 'undefined' in C:\Project_Repo\App_Frontend\IndigoLearn\index.js
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

What went wrong:
Execution failed for task ':app:createBundleDevDebugJsAndAssets'.

Process 'command 'cmd'' finished with non-zero exit value 1

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

What went wrong:
java.lang.StackOverflowError (no error message)

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

I am facing the same issue when upgraded from 0.66.4 to 0.73.1

Please open a separate issue.

please check it once


US 01.01.01 - Habit description

Focus
Habit
Partial US
As a doer, I want to add a habit, giving it a brief title, reason, and date to start.
Reasoning
Core idea for the app, must have habits to track and attempt to enforce
Story Points
2
Risk Level
Low

Finished as of #89


Fix effect checker performance killer

Hello :octocat:
Closes #662. In operator application, instead of applying new substitutions to all previously inferred effects, apply them only to effects from the application itself (parameters and result). In order for this to work, we need to compose these new substitutions with the previously known substitutions in a way where the "older" variables are binded to the new ones, as the new ones wouldn't occur elsewhere.
This reduces typechecking of ics23 to 7 seconds (from over 70s in main).
I realize that accumulating all substitutions in this.substitutions is also reckless, but this is not considerably affecting performance at this point and it is not trivial to figure out the scope to which we should propagate those.

[X] Tests added for any new code
[X] Ran npm run format (or had formatting run automatically on all files edited)
[ ] Documentation added for any new functionality
[ ] Entries added to the respective CHANGELOG.md for any new functionality
[ ] Feature table on README.md updated for any listed functionality

If this has resulted in such a massive improvement in typechecking perf., maybe worth a note in the changelog?


Complete rewrite of character decoding (not active yet) (#38)

Use a code generator to create fast decoder code

the code generator is written to be readable and easy-to-maintain
the generated code is constructed to be super-fast

Use substring instead of substr (which MDN advises against)
Optional error handler in case the application needs to throw an error
Generally compliant with HTML 4/5 standard

The new code is not attached to the main classes yet (so someone else can do benchmark test first).
The decoder has a strict mode (off by default). In strict mode, the decoder would reject all entities without trailing semicolon as well as ", <, >, and &
HTML4 decoder will accept all HTML4 named entities plus ' which is part of XHTML 1.0 and XML but not part of HTML 4.
Benchmark result on Windows 10 as followed:
    XmlEntities.decode: 29ms, 345op/msec
    Html4Entities.decode: 41ms, 244op/msec
    html5Entities.decode: 43ms, 233op/msec
    nodeHtmlEncoder(entities).htmlDecode: 730ms, 14op/msec
    nodeHtmlEncoder(numerical).htmlDecode: 825ms, 12op/msec
    entities.decodeXML: 27ms, 370op/msec
    entities.decodeHTML4: 38ms, 263op/msec
    entities.decodeHTML5: 32ms, 313op/msec
    newDecoder.decodeHTML4Entities: 22ms, 455op/msec
    newDecoder.decodeHTML5Entities: 37ms, 270op/msec
    newDecoder.decodeHTML4EntitiesStrict: 15ms, 667op/msec
    newDecoder.decodeHTML5EntitiesStrict: 26ms, 385op/msec

Hello @dan1wang. This is amazing work! I'm going to review this soon.


make vpa configurable

Update vendir.yml
Sync chart with upstream.
Make Trivy VPA configurable

Ahhh I messed this up


chapter2.mlx throws warnings

What environment are you using
GitHub action running tChapter2 unit test.
See log here: https://github.com/petercorke/RVC3-MATLAB/actions/runs/5456401781/jobs/9929160443
@petercorke, it also looks like the output from running chapter2.mlx is slightly different from what's in the book (e.g. when running line = S.line()), so that might be a bug in the Twist class.
MATLAB Release
R2023a (that's what the GitHub action is using)
Describe the bug
When running chapter2.mlx in a unit test in a GitHub action, I see the following warning twice:
[Warning: line does not intersect the plot volume]
[> In Plucker/plot (line 568)
This happens on line 131 and line 163 in the MLX file.
To Reproduce
Run chapter2.mlx
Expected behavior
No warnings

This was an error in Twist.line, passing (v,w) to the Plucker constructor rather than (w,v).  Hopefully this is the end of the rotation, translation swap consequences for 6-vectors.


can't login connect with UIScene openURLContexts [BETA]

What did you do? / What did you expect?
To confirm login, LineSDK is using:
application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
Can't resumeOpenURL(..) since open url is not called anymore, instead the SDK should be compatible with:
scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>)
What happened actually?
Login can't be confirmed.
Your environment?
LINE SDK: 5.2.4
XCode: 11.0 beta 5 (11M382q)
iOS: 13.0 (17A5572a)
Trying To Work Around
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
print(URLContexts.debugDescription)
        if let url = URLContexts.first?.url {
            _ = LoginManager.shared.application(UIApplication.shared, open: url)
        }
    }

Console
Set([<UIOpenURLContext: 0x280866680; URL: line3rdp.com.XXXXXXX.XXX://authorize/?code=XXXXXXXXXXXXXXXXXXXX&state=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX; options: <UISceneOpenURLOptions: 0x2806dc990; sourceApp: (null); annotation: (null); openInPlace: NO>>]) authorizeFailed(reason: LineSDK.LineSDKError.AuthorizeErrorReason.invalidSourceApplication)
Best Regards,
Coriolan Bataille

@Coriolan-Bataille Thanks for opening this.
Currently, we have not added support for scene delegate yet. We will work on it in the next version and also upgrade our documentation for it.
Before that, your workaround should work without a problem. We recently released 5.2.4 in which the .invalidSourceApplication will never be thrown. So I suggest you check whether your LINE SDK is the latest, and if not, please try to upgrade it then have a try!
Best regards.

Thanks for your answer,
have a good day,
best regards,
Coriolan Bataille

I think we'd better reopen it until we can update the documentation for this topic.

Did it solved?
I login and always return userCancelled on ios13

@sky1987a As the original post said, you can just implement the open URL method in your scene delegate and pass the first URL (if exists) to LoginManager now to make everything works.
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
    if let url = URLContexts.first?.url {
        _ = LoginManager.shared.application(UIApplication.shared, open: url)
    }
}

There are no any updates needed in the code of LINE SDK. We just reopen it for tracking a documentation update in the future.

I solved it!
Thanks for your answer,

We've updated our documentation for this topic. Please check the "Handle app opening" section to know how to deal with scene delegate.
Besides of it, if you setup the universal link to navigate back to your app, you may also want to check how to handle it in the scene(_ scene:continue:) delegate method.


Add an option to configure root element for responses

It would be nicer to have an option similar to is_array in the desc block instead of using route_setting, but apparently it requires a change in the grape repository similar to this one: https://github.com/ruby-grape/grape/pull/1791

Coverage increased (+0.01%) to 98.886% when pulling cc4d9b583006d2dd37b86895ac2b494c58c9a7e9 on bikolya:add-root-to-responses into 3de44a3a6f4749240b7dd30c6f87d39c320fd801 on ruby-grape:master.

thanks @bikolya … and sorry for the late reply … after running green I'll mörge it

sorry overseen the last line, did you created a PR for grape to support this option?
If not how we should handle it?


Program crashes when trying to fetch the data

Everytime you press on fetch, the program loads for a moment, and then closes itself

Please let me know about the following so that I could better understand the problem:

Your operating system.
Does the previous version of the app work (you can find it in Releases here)?
Does your country block or slow down YouTube?

I am able to answer the first and last question. but because I'm not home at the moment, you will need to wait for the answer to the third question.

Win 11
No. I live in Germany and I have never heard that they slow down YouTube.

Thank you for the feedback, I'm looking forward to your answer to the second question.

does the problem maybe has something to do with the reason I have my settings set to "dowload audio only"?

Not likely. Can you please try the previous version of the app? This would help me narrow down the scope of troubleshooting.

So it appears that recent changes on YouTube caused this problem, and there was also a bug with the "Any" format. I have fixed both issues.
You can use the updated app by cloning the repository. However, the fixed version is not yet available as an installer for Windows, as I'm planning to make a few more improvements and possibly use a different packaging method.
Please let me know if it works for you now.

So it appears that recent changes on YouTube caused this problem, and there was also a bug with the "Any" format. I have fixed both issues.
You can use the updated app by cloning the repository. However, the fixed version is not yet available as an installer for Windows, as I'm planning to make a few more improvements and possibly use a different packaging method.
Please let me know if it works for you now.


dbeaver/pro#440 Filters restore fix

Acceptance criteria:

[x] Column's conditions are saved in a relational table
[x] Column's visibility is saved in a relational table
[x] Composite column's conditions are saved in a relational table
[x] Composite column's visibility is saved in a relational table
[x] Attribute's conditions are saved in a relational table
[x] Attribute's visibility is saved in a document
[x] Nested attribute's conditions are saved in a document
[x] Nested attribute's visibility is saved in a document

verified


Make Listener work interactively in windows

Despite passing all tests, the listener doesn't work in windows.

Fixed in https://github.com/water111/jak-project/pull/28


piknik on mobile (iOS, Android)?

Now that I'm addicted to piknik: is there any chance of getting this for mobile (Android, and in particular iOS)? This would be a great way to transport passwords/passphrases etc. without cloud usage.
Consider this a feature request. 😃
IMO the UI could be very "primitive": a -copy would literally copy from clipboard and a -paste to clipboard.

That would be great!
The core can easily be compiled for iOS and Android (or rewritten using libsodium), but I don't think I'll be able to find enough spare time to work on the actual apps in a foreseeable future :(


[Bug]: Mixtral-8x22 request cancelled by cancel scope when client sends multiple concurrent requests

Your current environment
Collecting environment information...
 After a few minutes, it will crash with strange error, and all further requests will respond with empty generated sequence. Error:
INFO 06-03 12:45:58 async_llm_engine.py:537] Received request cmpl-8475bbb3595a4743b517e0a20cf5fd31-0: prompt: "<SOME PROMPT>", params: SamplingParams(n=1, best_of=1, presence_penalty=0.0, frequency_penalty=0.45, repetition_penalty=1, temperature=0.8, top_p=1.0, top_k=-1, min_p=0.0, seed=None, use_beam_search=False, length_penalty=1.0, early_stopping=False, stop=['[INST]', '[/INST]', '\n---', '\n--', '\n\n\n', '\n\n#', '\n\nPlease', '\n\nNote:', '##', '\n\n'], stop_token_ids=[], include_stop_str_in_output=False, ignore_eos=False, max_tokens=160, min_tokens=0, logprobs=None, prompt_logprobs=None, skip_special_tokens=True, spaces_between_special_tokens=True, truncate_prompt_tokens=None), prompt_token_ids: ..., lora_request: None.
INFO: <IP_ADDRESS>:41613 - "POST /v1/completions HTTP/1.1" 200 OK
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 265, in __call__
await wrap(partial(self.listen_for_disconnect, receive))
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 261, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 238, in listen_for_disconnect
message = await receive()
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 568, in receive
await self.message_event.wait()
File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 7f274c3dc490
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 85, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 75, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 258, in __call__
async with anyio.create_task_group() as task_group:
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__
raise BaseExceptionGroup(
exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 265, in __call__
await wrap(partial(self.listen_for_disconnect, receive))
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 261, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 238, in listen_for_disconnect
message = await receive()
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 568, in receive
await self.message_event.wait()
File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 7f26b2157160
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 85, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 75, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 258, in __call__
async with anyio.create_task_group() as task_group:
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__
raise BaseExceptionGroup(
exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)

I run openai server, send streaming requests. After the error, I got logs showing that 1 request is always running

I tried to send requests in 4 threads (maybe it is caused by max-num-seqs) but it still crashes with the same error

After careful debugging it seems to be the same issue as reported in #4108

同样的问题 请问这个解决了吗


CI fails due to the build issue of winevet_c on gcc-10.1

https://github.com/fluent-plugins-nursery/winevt_c/pull/26

Fixed via #73


Doesn't work for me...

I made an openai key, added this code and got this...
Any ideas?

Execution log
11:46:14 AM	Notice	Execution started
11:46:14 AM	Error	Request failed with response code 401
11:46:14 AM	Error	Failed to fetch the URL after 5 attempts
11:46:14 AM	Info	request failed
11:46:14 AM	Notice	Execution completed

Hi,
Be careful, you use:
ChatGPTApp.setGoogleSearchAPIKey()
Instead of :
ChatGPTApp.setOpenAIAPIKey()

[FACE PALM] ... sorry!

Thanks we will add fail safes to better warn the user in case of a misconfiguration

We added error messages to warn users if a misconfiguration is detected


Support for Open source LLMs

Description
There are several open source LLMs and open source LLM providers right now.
Examples:

GPT4All by Nomic AI
Llama CPP
Hugging Face models

Can we provide support for guardrails for these sets of models and providers?
Why is this needed
Open AI gpt API is not the only one, which needs validation in end to end LLM pipelines. It is as important for open source LLMs to when developers are building and shipping use case to production.
Implementation details
As far as I have saw the code base, we might not need to do breaking changes. Rather we might need to change the way we call the function like as we used here as openai.Completion.create, similarly we need
to have support for the llm calls function for llm providers.
End result
If this feature get's implemented then we can do validation checks and evaluations for in house LLM without relying on Open AI. This will be very much useful as an evaluation procedure for fine tuning too and integrating newer LLMs in the process of CI/CD.
Here is the sample code:
import os
import torch
import guardrails as gd

from peft import PeftConfig, PeftModel
from transformers import GenerationConfig
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig

device = 'cuda:0'

quantization_config = BitsAndBytesConfig(
            load_in_4bit=True,
            bnb_4bit_compute_dtype=torch.float16,
            bnb_4bit_quant_type="nf4",
            bnb_4bit_use_double_quant=True,
        )

# my peft model after I fine tuned or I can pull the same from hub
adapter_id = 'anindya64/falcon7b_finetuned'

peft_config = PeftConfig.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
    peft_config.base_model_name_or_path,
    return_dict=True,
    device_map="auto",
    trust_remote_code=True,
    quantization_config=quantization_config,  # may be this can be an arg
)

model = PeftModel.from_pretrained(model, adapter_id)
tokenizer = AutoTokenizer.from_pretrained(peft_config.base_model_name_or_path)

def my_inference(text, generation_config):
    inputs = tokenizer(text, return_tensors="pt", return_token_type_ids=False).to(device)
    outputs = model.generate(
            **inputs,
            max_new_tokens=generation_config.max_generation_config,
            generation_config=generation_config,
            pad_token_id=tokenizer.eos_token_id
        )
    generated_text = tokenizer.decode(outputs[0]).split('### Assistant:')[1].strip()
    return generated_text

# Wrap the OpenAI API call with the `guard` object

doctors_notes = """49 y/o Male with chronic macular rash to face & hair, worse in beard, eyebrows & nares.
Itchy, flaky, slightly scaly. Moderate response to OTC steroid cream"""

guard = gd.Guard.from_rail('getting_started.rail')
raw_llm_output, validated_output = guard(
    my_inference,
    prompt_params={"doctors_notes": doctors_notes},
    engine="text-davinci-003",
    max_tokens=1024,
    temperature=0.3,
)

# Print the validated output from the LLM
print(validated_output)

This can be done similarly for gpt4all, llama cpp assuming the user had already installed dependencies. Our job would be to just call the function and run under guadrails.

Hey, Guardrails natively supports a couple different LLMs (OpenAI, Cohere), as well as Manifest, which supports many more. You can also pass in an any arbitrary python function that takes "prompt" and "instructions" as arguments.
Please see the LLM API docs for more details.
I'm closing this issue for now, but feel free to reopen it if you run into any issues :)


first SND_startPlay_4PCM() is freezing program

The first playing sound by SND_startPlay_4PCM() function,  freezes for some milliseconds the program flow. What is noteworthy is that only the first sound playback slows down the program, further playbacks is not affected on program flow. This can be easily reproducesed using the Sprite example from SGDK distribution, replacing the XGM sound playing with 4PCM.

It's loading the 4PCM driver the first time you play a sound. To avoid the delay try to load the driver beforehand with Z80_loadDriver(Z80_DRIVER_4PCM)

It worked, thank you :)


Taking<EMAIL_ADDRESS>as invalid email address.

Taking<EMAIL_ADDRESS>as invalid email address.

Hey @learneradarsh ,
We have checked our standard email validator and it seems to be working fine for your email. Please try again and let us know if you are still facing any issues.
Please contact us here for future queries.
Closing this for now.


Route middleware

Coverage increased (+4.4%) to 93.115% when pulling a7b3d82d4a0e4fdf97034f2f8a46e75851ab1fc5 on route-middleware into 21b9a8f5252e9e702a2b2fce70835948c8a6881b on master.


Document preview_context on overview page

Is your feature request related to a problem? Please describe.
The config variable preview_context is mentioned on the GitHub backend, but it (at least) also works for GitLab.
Describe the solution you'd like
Maybe document the config variable on the overview page so it won't get overlooked?

Related to https://github.com/netlify/netlify-cms/issues/4608 and https://www.netlifycms.org/docs/beta-features/#gitlab-and-bitbucket-editorial-workflow-support

Related to https://github.com/netlify/netlify-cms/issues/4608 and https://www.netlifycms.org/docs/beta-features/#gitlab-and-bitbucket-editorial-workflow-support


ERROR Cannot start nuxt:  Cannot find module 'vue-tsc/out/index'

After upgrading to v2
I'm using Nuxt 3 latest with a monorepo config (nuxt layers)

Cross referencing here since it seems to influence also vite-plugin-checker: https://github.com/fi3ework/vite-plugin-checker/issues/306
I think we need an upgrade path for libraries consuming vue-tsc v2.

@danielroe does this require an issue tracking in the nuxt repo?

Nuxt doesn't directly consume vue-tsc and I think vite-plugin-checker (which we use) is already aware.

I have the same issue:
ERROR  Cannot start nuxt:  Cannot find module 'vue-tsc/out/index'
Stack:
"nuxt": "^3.10.3",
"vue-tsc": "^2.0.4"
Require stack:

.../app-template/node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@8.57.0_stylelint@16.2.1_typescript@5.3.3_vite<EMAIL_ADDRESS>

Downgrade "vue-tsc": "^2.0.4" to "vue-tsc": "^1.8.22", I have tried it and worked.

this error also occurs with storybook build.

Looks like the latest version "vue-tsc": "^2.0.10" is working fine with "nuxt": "^3.11.2"

Looks like the latest version "vue-tsc": "^2.0.10" is working fine with "nuxt": "^3.11.2"

Not exactly. I've just upgraded nuxt and vue-tsc to latest versions (same as you said) and the error persists:
Cannot start nuxt:  Cannot find module 'vue-tsc/out/index'

I can confirm. Still am issue on my end

I can confirm too: problem persists even with a simple vue-tsc --noEmit invocation

Confirmed, problem remains in "nuxt": "^3.10.3", and "vue-tsc": "^2.0.16"

Downgrade "vue-tsc": "^2.0.4" to "vue-tsc": "^1.8.22", I have tried it and worked.

thanks it worked for me

Looks like the latest version "vue-tsc": "^2.0.10" is working fine with "nuxt": "^3.11.2"

Issue still there.

Still here with vue-tsc version 2.0.19.
 ERROR  Cannot start nuxt:  Cannot find module 'vue-tsc/out/index'                                                                                10:21:56 ч.
Require stack:
- \node_modules\vite-plugin-checker\dist\esm\checkers\vueTsc\prepareVueTsc.js

Operating System: Windows_NT
Node Version:     v20.12.2
Nuxt Version:     3.11.2
CLI Version:      3.11.1
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      runtimeConfig, modules, nitro, app, typescript, routeRules, devtools
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

The issue is still there. Appears when upgrading vue-tsc from 1.8.27 to 2x.
    "nuxt": "^3.11.2",
    "vue": "^3.4.27",
    "vue-router": "^4.3.2",

It appears that all Nuxt repositories configured with typescript: { typeCheck: true } and using vue-tsc version 1.8.27 or later are experiencing the same error: vue-tsc/out/index.

is this related? I have issue with 3.11.2 and global components like i18T not being recognized by tsc.  it occurs only from vue-tsc 1.8.24
here is a reproduction: https://stackblitz.com/edit/github-m5xc5v-gi1rab?file=package.json
abort npm run dev, and run:
npm run typecheck
you'll get error:
error TS2339: Property 'I18nT' does not exist on type '{}'.
3     <I18nT keypath="something">asdfds</I18nT>

now change vue-tsc": "1.8.27" to vue-tsc": "1.8.22" and npm install, now it will work

Same issue still happening with Nuxt3 + vue-tsc 2.0.21
Error: Cannot find module 'vue-tsc/out/index'

Any updates? Still occurring with 2.0.21 and Nuxt 3.12.2

Same issue still happening with Nuxt v3.12.2 and vue-tsc 2.0.21. Any updates?

There is no vue-tsc/out/index in this codebase at all. Could you guys provide a reproduction?

Same issue still happening with Nuxt v3.12.2 and vue-tsc 2.0.21. Any updates?

Downgrade vue-tsc to 1.8.27. Seems like 2.x doesn't play nice yet.

https://github.com/fi3ework/vite-plugin-checker/pull/327

export default defineNuxtConfig({
  typescript: {
    strict: true,
    typeCheck: false
  }
}

Disable type checking at build time and run it from the console or as script in package.json
npx nuxi typecheck

export default defineNuxtConfig({
  typescript: {
    strict: true,
    typeCheck: false
  }
}

Disable type checking at build time and run it from the console or as script in package.json
npx nuxi typecheck

this sounds like a nuxt issue then, perhaps @danielroe can give a look at it?

A fix is on its way, if somebody can help I'm sure it'll be appreciated: https://github.com/fi3ework/vite-plugin-checker/pull/327

Closing, as https://github.com/fi3ework/vite-plugin-checker/pull/327 had been merged.

The issue still occurs, it seems the require stack is still using the old vite-plugin-checker release:
 ERROR  Cannot start nuxt:  Cannot find module 'vue-tsc/out/index'                                                                                1:16:04 PM
Require stack:
- /.../node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@9.6.0_typescript@5.5.2_vite<EMAIL_ADDRESS>
  Require stack:
  - node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@9.6.0_typescript@5.5.2_vite<EMAIL_ADDRESS>  at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
  at Function.resolve (node:internal/modules/helpers:190:19)

Yes, if you are using nuxt then you will have to wait for them to upgrade their dependencies

Yes, if you are using nuxt then you will have to wait for them to upgrade their dependencies

Ok, I hope they'll update soon. For now I'm using an override in my package.json for my nuxt  project, which makes it work in the meantime:
  "pnpm": {
    "overrides": {
     "vite-plugin-checker": "0.7.0"
    }
  }

You'll get it soon, in next Nuxt patch - follow https://github.com/nuxt/nuxt/pull/27648.

Looks like it is finally fixed
"nuxt": "^3.12.3",
"vue-tsc": "^2.0.24"

Had the same error when building my Nuxt 3.14.1592 app.
:point_right: Fixed it by adding typescript: ~5.6.2 and vue-tsc: 2.1.10 (checked needed versions in vue and nuxt package.json) as dev dependencies in my package.json.


fixsort node should materialized required slots for itself

this is a follow up pr for https://github.com/apache/doris/pull/27526 . The old pr didn't fix the problem correctly, this pr do.
Issue Number: close #xxx

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

run buildall