Request to package localstack

https://github.com/localstack/localstack is a fully functional local AWS cloud stack. It allows you to mock AWS services and develop tests for applications that rely on AWS.
If nobody gets around to this, I may work on this later.

i started a pr for this will try to get more to it so it can be merged

Removing stale label as I've been looking into this more.
A few tricky things about localstack that I've discovered in researching this:

"localstack"'s code seems quite interwoven with the code for "localstack pro". For instance the main package localstack depends on localstack_ext, a package that exists on pypi but for which the source is not publicly hosted. You can of course download the tarball from pypi and read the source, though much of it seems to have been minified, but the largest chunk of that package seems to consist of .py.enc files - encrypted python files. I guess these get "unlocked" when you pay for "localstack pro". I think it's a bit creepy to have all this mystery code floating about and I'd be hard pressed to call this an "open source" dependency. Maybe we'd be able to just do a find . -name '*.enc' -delete in a postFixup to avoid installing this on people's machines and this would be fine, I don't know.
It appears to depend on a forked moto, which they host at https://github.com/whummer/moto and publish as the pypi package moto-ext https://pypi.org/project/moto-ext. The problem is that this package still retains the toplevel import name moto, and so we wouldn't be able to include this package in pythonPackages due to policy (it would potentially collide with the vanilla moto in generated environments). It would would still be possible to keep localstack as a regular application, not exposing its internal moto-ext outside the derivation.

Is it possible to bring in a python dep without propagating it?

might be 40 months late, but I took a stab at this.


[Bug]: Unable to run the query module in a git connected application

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When I try to run a query module from a published package, inside a git connected app, I get an error
Steps To Reproduce

https://github.com/appsmithorg/appsmith/assets/101863839/06a1250e-7402-4033-8920-6ffb41372085
Public Sample App
No response
Environment
Release
Issue video log
No response
Version
Cloud

Hasn't been implemented as a functionality yet, part of our deliverable this week. Keeping it open all the same.

@btsgh could you please re-verify this and close the issue if things look okay?


Performance improvements needed for schema form editor

Schema form editor is demonstrating sluggishness when editing large documents. From observations, there seems to be one main reason for this issue: the schema form editor often refreshes the complete view. This happens under two conditions:

when moving items in an array
when changing the value of a custom type

I tested this out and I noticed one bug where it seems the very first or last item, when moved, can’t be moved back again by their newly added direction arrows. It is not a show stopper since you can just move other languages instead or save and edit again, but I wanted to document it. I don't recall seeing that bug before these latest changes.


Rollforward "Resolve beam_fn_api experiment for side inputs, using portable expansion always"

There was an NPE in the Twister2TestRunner, and an assumption about coders in the batch side input translator. Now fixed.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

run ulr loopback validatesrunner

run java examples on dataflow v2

Run Java Examples on Dataflow Runner V2

actually I guess there are no failing examples right now?

run dataflow v2 validatesrunner

run dataflow runner v2 validatesrunner

run dataflowv2 validatesrunner

Run Java Dataflow V2 ValidatesRunner

https://ci-beam.apache.org/job/beam_PostCommit_Java_Examples_Dataflow_V2/ is failing. Looks like it gives a clearer signal on when the issue started too.

run twister2 validatesrunner

OK. Twister2 takes an hour or so. We should also see example results then.

Run Java PreCommit

Java precommit is a known flake in org.apache.beam.runners.flink.ReadSourcePortableTest.testExecution[streaming: false]. I didn't see a Jira so I filed https://issues.apache.org/jira/browse/BEAM-12291. It is flaky enough that it probably should be disabled.

OK examples and Twister are happy.


🐛 Unspendable DFIs block any transactions

What happened:
I received a masternode block reward on my light wallet address. After receiving the reward no transaction is possible until the DFI is trusted and not in immature or untrusted_pending state.

bad-txns-premature-spend-of-coinbase, tried to spend coinbase at depth 1 (code 16)

What you expected to happen:

I should still be able to do transactions
Unspendable DFI shouldn't be shown in the balance

How to reproduce it (as minimally and precisely as possible):

redirect masternode rewards to a light wallet address via rewardaddress in defi.conf
wait for the masternode to find a block
try to do a transaction

Anything else we need to know?:
I believe it's a missing feature in the ocean api, because it doesn't report if the DFI is immature untrusted_pending or trusted.
Related to https://github.com/kuegi/defichain_maxi/issues/100

Closing here and opening on Jellyfish repo - https://github.com/JellyfishSDK/jellyfish/issues/1807


Simultaneous requests can sometimes lock the listener

It's a difficult issue to reproduce and I haven't been able to make a sample project to help find what's causing it.
It was tested with SQLite storage type and CBL Android 1.2.0-26.
However, the zip file at http://cl.ly/0s3a3i3d3C1A contains:

A screenshot of the Network debugging tab in Chrome when the issue starts happening. A lot of requests are in a pending state.
Multiple thread dumps.

The same test was done by replacing the filter on the changes feed requests (for example, /_changes?filter=orders/order...) with requests to the view endpoints (for example /_design/orders/_view/order) and the issue remains.
Is there something that could cause the Listener to have multiple requests pending? What happens if multiple requests hit _changes at the same time? If part of the code is not thread safe and each request creates a new thread, could it then be in a locked state?
This locked state could be reproduced most of the time when the replication between devices was interrupted. When the replication resumed, the pending requests returned 200 and the application resumed. I'm wondering if the replications resuming could have an impact in triggering the pending requests to return.

I realize that's a lot of questions in one go, I wrote down the observations from testing the application in different scenarios.

Note: the files in the zip were taken from testing the app without replications, only requests to the Listener on localhost. The issue happens with or without replications. But, in the test with replications, it would eventually unblock the app and it would become responsive again. The moment the replicator inserts records to the database it triggers the pending HTTP requests over localhost to return.

It looks like this issue (https://github.com/couchbase/couchbase-lite-java-listener/issues/57). But I'm not sure.

Hi @jamiltz,
From current information, I am not sure where error is. So I will fix #57 first. Then, can you verify if fix for #57 also fixes this issue too?
Thanks,
Hideki

Ok sounds good. Yes of course I'll try with the fix from #57 first.

@jamiltz,
As I merged PR for #57, I will close this ticket.
if #62 and #57 is different issue, please reopen this?
Thanks!


Mention provider setup with reason-apollo

This PR updates the README to mention how to use reason-apollo and reason-apollo-hooks simultaneously

:shipit: 🚀

@all-contributors add @arielschiavoni for documentation


[JAX] Support layernorm/rmsnorm sm_margin control through environment variable

This PR does support layernorm and rmsnorm sm_margin control through environment variables NVTE_FWD_LAYERNORM_SM_MARGIN and NVTE_BWD_LAYERNORM_SM_MARGIN

/te-ci jax

/te-ci jax

/te-ci jax

/te-ci jax

Hi @ksivaman @timmoon10 @denera, all tests are passed. Could you help review the PR? Thanks!


Add disableMeta prop to SharePage

This PR resolves #3586.
This PR adds the disableMeta prop to the SharePage.
disableMeta defaults to false.
When true, the <MetadataNav> component is removed from the output of sharePage.jsx, and the brewTitle styling is tweaked to remove the cursor changes.

Thanks @G-Ambatte !


Angular 10 Main entry is missing. App cannot be started. Verify app bootstrap

tns info:
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 6.8.0-rc.4 and the latest available version is 6.8.0.
✔ Component tns-core-modules has 6.5.12 version and is up to date.
✔ Component @nativescript/core has 7.0.0-rc.34 version and is up to date.
✔ Component tns-android has 6.5.3 version and is up to date.
✔ Component tns-ios has 6.5.2 version and is up to date.

My package:
  "dependencies": {
    "@angular/animations": "~10.0.0",
    "@angular/cdk": "^10.1.1",
    "@angular/common": "~10.0.0",
    "@angular/compiler": "~10.0.0",
    "@angular/core": "~10.0.0",
    "@angular/elements": "^9.0.6",
    "@angular/flex-layout": "^10.0.0-beta.32",
    "@angular/forms": "~10.0.0",
    "@angular/http": "8.0.0-beta.10",
    "@angular/material": "10.1.1",
    "@angular/platform-browser": "~10.0.0",
    "@angular/platform-browser-dynamic": "~10.0.0",
    "@angular/pwa": "0.900.2",
    "@angular/router": "~10.0.0",
    "@angular/service-worker": "8.2.14",
    "@fortawesome/fontawesome-free": "^5.13.0",
    "@fullcalendar/core": "^5.1.0",
    "@fullcalendar/daygrid": "^5.1.0",
    "@fullcalendar/interaction": "^5.1.0",
    "@fullcalendar/list": "^5.1.0",
    "@nativescript/angular": "~10.0.0",
    "@nativescript/core": "rc",
    "@nativescript/theme": "~2.3.0",
    "@ngrx/data": "^8.6.0",
    "@ngrx/effects": "^8.6.0",
    "@ngrx/entity": "^8.6.0",
    "@ngrx/router-store": "^8.6.0",
    "@ngrx/store": "^8.6.0",
    "@ngrx/store-devtools": "^8.6.0",
    "animejs": "3.1.0",
    "chart.js": "^2.9.3",
    "core-js": "^2.6.9",
    "mapbox-gl": "^1.11.1",
    "nativescript-bottom-navigation": "^2.0.5",
    "nativescript-https": "^1.3.0",
    "nativescript-material-snackbar": "^3.1.11",
    "nativescript-secure-storage": "^2.6.1",
    "ngx-image-cropper": "3.0.3",
    "ngx-mapbox-gl": "^4.8.1",
    "reflect-metadata": "~0.1.12",
    "rxjs": "~6.6.2",
    "safe-buffer": "^5.2.1",
    "tns-core-modules": "~6.5.0",
    "tslib": "1.10.0",
    "zone.js": "~0.10.3"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1000.2",
    "@angular/cli": "~10.0.0",
    "@angular/compiler-cli": "~10.0.0",
    "@nativescript/schematics": "^10.0.1",
    "@nativescript/tslint-rules": "~0.0.5",
    "@nativescript/webpack": "~2.0.0",
    "@types/animejs": "3.1.0",
<EMAIL_ADDRESS>"2.9.14",
    "@types/jasmine": "~3.5.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/jest": "25.1.2",
    "@types/mapbox-gl": "^1.11.1",
    "@types/mapbox__polyline": "^1.0.0",
    "@types/node": "^12.11.1",
    "codelyzer": "^5.1.2",
    "jasmine-core": "~3.5.0",
    "jasmine-spec-reporter": "~4.2.1",
    "jest": "25.1.0",
    "jest-preset-angular": "8.0.0",
    "karma": "~4.4.1",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~2.1.0",
    "karma-jasmine": "~3.0.1",
    "karma-jasmine-html-reporter": "^1.4.2",
    "nativescript-dev-webpack": "~1.5.1",
    "node-sass": "^4.7.1",
    "protractor": "~5.4.3",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~3.9.0"
  }

Describe the bug
After running npm run clean and npm i  and then postinstall  will run ngcc --properties es2015 module main --first-only automatically and compiles for Ivy
> ngcc --properties es2015 module main --first-only

Compiling @angular/animations : es2015 as esm2015
Compiling @angular/core : es2015 as esm2015
Compiling @angular/compiler/testing : es2015 as esm2015
Compiling @angular/cdk/keycodes : es2015 as esm2015
Compiling @angular/service-worker/config : es2015 as esm2015
Compiling @angular/common : es2015 as esm2015
Compiling @angular/animations/browser : es2015 as esm2015
Compiling @angular/cdk/observers : es2015 as esm2015
Compiling @angular/cdk/collections : es2015 as esm2015
Compiling @ngrx/store : es2015 as esm2015
Compiling @angular/core/testing : es2015 as esm2015
...

Now if I run tns run android --no-hmr
Compiling @angular/animations : es2015 as esm2015
Compiling @angular/core : es2015 as esm2015
Compiling @angular/cdk/keycodes : es2015 as esm2015
Compiling @angular/compiler/testing : es2015 as esm2015
...

Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (android)
Restarting application on device emulator-5554...
Successfully synced application org.nativescript.lohisportsv1 on device emulator-5554.
System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to start activity ComponentInfo{org.nativescript.lohisportsv1/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
System.err: Error: Main entry is missing. App cannot be started. Verify app bootstrap.
System.err:
System.err: StackTrace:
System.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.lohisportsv1/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
System.err: Error: Main entry is missing. App cannot be started. Verify app bootstrap.
System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
System.err: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
System.err: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
System.err: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
System.err: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
System.err: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
System.err: 	at android.os.Handler.dispatchMessage(Handler.java:106)
System.err: 	at android.os.Looper.loop(Looper.java:193)
System.err: 	at android.app.ActivityThread.main(ActivityThread.java:6669)
System.err: 	at java.lang.reflect.Method.invoke(Native Method)
System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
System.err: Caused by: com.tns.NativeScriptException: Calling js method onCreate failed
System.err: Error: Main entry is missing. App cannot be started. Verify app bootstrap.
System.err: 	at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: 	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286)
System.err: 	at com.tns.Runtime.callJSMethodImpl(Runtime.java:1173)
System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:1160)
System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:1138)
System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:1134)
System.err: 	at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:29)
System.err: 	at android.app.Activity.performCreate(Activity.java:7136)
System.err: 	at android.app.Activity.performCreate(Activity.java:7127)
System.err: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
System.err: 	... 11 more

But It will get fixed If I change something in a tns file to make it just recompile.
File change detected. Starting incremental webpack compilation...
 Watching for file changes.
Webpack build done!
Successfully transferred all files on device emulator-5554.
Restarting application on device emulator-5554...
Successfully synced application org.nativescript.lohisportsv1 on device emulator-5554.
JS: nativescript-https > Disabled SSL pinning by default
JS: Angular is running in development mode. Call enableProdMode() to enable production mode.

To Reproduce
Let me know I might be able to create a sample project
Expected behavior
Just start working normally without need to edit a file to make it recompile
Sample project
I used workspace sample project given for angular schematics v 10
Additional context
One other thing when I run Nativescript side of project and I want to run Angular side with ng serve
I will get the following error which to get rid of it I need to run npm run clean and npm i again.
But is it normal way? Shouldn't they work together.
TypeError: Class constructor BehaviorSubject cannot be invoked without 'new'
    at DevtoolsDispatcher.ActionsSubject [as constructor] (store.js:123)
    at new DevtoolsDispatcher (store-devtools.js:165)
    at ActionsSubject_Factory (store.js:145)
    at Object.DevtoolsDispatcher_Factory [as factory] (store-devtools.js:167)
    at R3Injector.hydrate (core.js:11348)
    at R3Injector.get (core.js:11170)
    at injectInjectorOnly (core.js:801)
    at Module.ɵɵinject (core.js:805)
    at Object.StoreDevtools_Factory [as factory] (store-devtools.js:876)
    at R3Injector.hydrate (core.js:11348)

Thank you @pyrrhicman this is related to es2017 targeting in latest rc's. May want to check if store-devtools has a newer version? I'll help look as well.

Thank you @pyrrhicman this is related to es2017 targeting in latest rc's. May want to check if store-devtools has a newer version? I'll help look as well.

Thanks, It was it. I just needed to update
    "@ngrx/data": "^9.2.0",
    "@ngrx/effects": "^9.2.0",
    "@ngrx/entity": "^9.2.0",
    "@ngrx/router-store": "^9.2.0",
    "@ngrx/store": "^9.2.0",
    "@ngrx/store-devtools": "^9.2.0"

and it's good now. I hope one day comes that I understand tsconfig libs and target.
although Error: Main entry is missing. App cannot be started. Verify app bootstrap  error still exist.

Main entry is missing.

I recall that may have something to do with webpack.config.js. Did you try deleting your webpack.config entirely and doing a clean to let @nativescript/webpack drop you in a brand new one using latest configurations?

Main entry is missing.

I recall that may have something to do with webpack.config.js. Did you try deleting your webpack.config entirely and doing a clean to let @nativescript/webpack drop you in a brand new one using latest configurations? If not, definitely try deleting the one in your project and let it get replaced with the new one when running again from @nativescript/webpack ~2.0.0

I DID it 👍
Well It wasn't library, It was my code, Just fixed some errors and it boots perfectly now.
Thanks for support.

TypeError: Class constructor BehaviorSubject cannot be invoked without 'new' was not gone And
I needed to disable Ivy at least for development of Angular side
so I added this to tsconfig.app.json
"angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true,
    "enableIvy": false
  }

and now I run my code with tns run android --bundle


SmartContract: contract assembly cannot be unloaded

Contract assembly cannot be unloaded,  and all  will reside in memory.

Unload assembly from runtime will be publish in dotnet core 3.0. https://github.com/dotnet/coreclr/issues/20806


Support Python3 for PostgresMetadataExtractor

See #108
Summary of Changes
Using Six, include logic for encoding the database key string if using Python2.7
Tests
Need guidance for writing py2/py3 compatibility tests
Documentation
Addresses the same issue as #108
CheckList
Make sure you have checked all steps below to ensure a timely review.

[x] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[x] PR includes a summary of changes.
[x] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[x] In case of new functionality, my PR adds documentation that describes how to use it.

All the public functions and the classes in the PR contain docstrings that explain what it does

[x] PR passes make test
[x] I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message"

Codecov Report

Merging #117 into master will decrease coverage by 0.01%.
The diff coverage is 80%.

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
- Coverage   82.92%   82.91%   -0.02%
==========================================
  Files          54       54
  Lines        2683     2687       +4
  Branches      276      277       +1
==========================================
+ Hits         2225     2228       +3
  Misses        370      370
- Partials       88       89       +1

Impacted Files
Coverage Δ

...tabuilder/extractor/postgres_metadata_extractor.py
93.44% <80%> (-1.3%)
:arrow_down:

Continue to review full report at Codecov.

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

@jinhyukchang Looks like the existing tests fail with Python3 before the proposed changes, but this PR gets them to pass

thanks.

thanks @lelandtran !


Does not seem to delete .zsh_history

With last version, it seems that my .zsh_history was not clean as expected
Step to reproduce
$ #in zsh
$ sudo moonwalk start
$ echo "in moonwalk"
$ sudo moonwalk finish

Then :
$ history # or cat ~/.zsh_history
[...]
 1054  sudo moonwalk start
 1055  echo "in moonwalk"
 1056  sudo moonwalk finish

is it not the expectedbehaviour right?

It's isolated to what user is executing moonwalk so when you run moonwalk as root it clears the .zsh_history of the root user, run it without sudo and the history file of the currently logged in user will be cleared.
I think clearing all the user's history file (if tampered/accessed) might be a good feature? Please let me know what you think and I might add this for the next release!
Thank you! :raised_hands:

Oh ok ! I see
By reflex I launched moonwalk with sudo privileges by thinking that it will be able to perform more job.
Maybe it could be interesting to be able to detect/precise a specific user to whom the history file will be deleted afterward

Yeah it does perform more with sudo. I think this is doable, I will implement this in the next release!
Thank you for your interest in the project!


Dependency on New-Runspace function

Error:
New-Runspace : The term 'New-Runspace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\PSBlackListChecker\0.7\Public\Search-Blacklist.ps1:52 char:17

    $pool = New-Runspace -MaxRunspaces $maxRunspaces -Verbose:$Ve ...

            ~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (New-Runspace:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException

Fix:
Install-Module PSSharedGoods

Hi,
My POSH version:
PS C:\temp> $PSVersionTable
Name                           Value

PSVersion                      5.1.17134.407
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.407
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
After doing the update-module on the other issue, it seemed to install all the dependencies now so I am not sure what happened. Maybe my computer was being weird or the repository wasn't available when I installed your module. Thanks again!