Fix efivar cross compilation

Success on aarch64-linux (full log)
Attempted: efivar
Partial log (click to expand)
strip is /nix/store/qjrnv0qw44bw1hc23zhfh26xd1c25dfs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/x2n3mzzrwc9d3700pcicx8fmnv32vck2-efivar-36-dev/lib
patching script interpreter paths in /nix/store/x2n3mzzrwc9d3700pcicx8fmnv32vck2-efivar-36-dev
checking for references to /build in /nix/store/x2n3mzzrwc9d3700pcicx8fmnv32vck2-efivar-36-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/01nwixngy9la1iw0dnp3l3ldym963hfb-efivar-36-man
gzipping man pages under /nix/store/01nwixngy9la1iw0dnp3l3ldym963hfb-efivar-36-man/share/man/
strip is /nix/store/qjrnv0qw44bw1hc23zhfh26xd1c25dfs-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/01nwixngy9la1iw0dnp3l3ldym963hfb-efivar-36-man
checking for references to /build in /nix/store/01nwixngy9la1iw0dnp3l3ldym963hfb-efivar-36-man...
/nix/store/dcsxa74n67ihkz0isq5mvzwcl4gzhlmg-efivar-36-bin

Success on x86_64-linux (full log)
Attempted: efivar
Partial log (click to expand)
strip is /nix/store/n4hb93w6j076xcjw5pm09rdmc09s075b-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/c21y9zad6975rpbmdjq0ii2rnf7alq9n-efivar-36-dev/lib
patching script interpreter paths in /nix/store/c21y9zad6975rpbmdjq0ii2rnf7alq9n-efivar-36-dev
checking for references to /build in /nix/store/c21y9zad6975rpbmdjq0ii2rnf7alq9n-efivar-36-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/8rbims328shy7c2a0hfsd1d4gig45n6f-efivar-36-man
gzipping man pages under /nix/store/8rbims328shy7c2a0hfsd1d4gig45n6f-efivar-36-man/share/man/
strip is /nix/store/n4hb93w6j076xcjw5pm09rdmc09s075b-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/8rbims328shy7c2a0hfsd1d4gig45n6f-efivar-36-man
checking for references to /build in /nix/store/8rbims328shy7c2a0hfsd1d4gig45n6f-efivar-36-man...
/nix/store/3b488kh5i63l1hywnv3nmr8k05bwx4jm-efivar-36-bin


What if the bandwidth is used up?

Hello, I have used this gadget to deploy my blog's picture, and I see the bandwidth is limited to 10GB, so i want to know what if the bandwidth is used up? Do i need to pay some money or just my picture can't display?
Anyway, Thanks for your good work!

Currently you don't need to worry about the bandwidth.
I will let you know before pricing plan changes.


Win CI: Fix and enable compiler specs

This now depends on #9346 and #9351.
Review only the commit "Win CI: Fix and enable compiler specs" d6016be

Finally, now that there are no dependencies on other PRs, I squashed all that merge-mess :>

I'm a bit confused as to the reason for many of these failing specs.
I'd rather not make specs pending if we don't understand why they're broken, so could you give some details?

Currently all of the specs are effectively pending, I just reduce that to a dozen.
I really just don't know why these things don't work. There are no stack traces. I'm tired.
So no, I don't want to look for an explanation.
Where I did know, I already fixed them. Many of them.
Now I just want to stop the bleeding addition of more failing specs.
Additionally, I consider merging fixes to these specs before enabling specs as strictly worse; then the fix PRs have no representation in specs even if something happens to be fixed (while with this in you just flip it back from pending). Showing the specs as what they are is good.
Best (bad) example: #9387 changes specs for seemingly no reason, but actually they were failing before, if they were to run. Then it even marks a related spec as pending, as if the commit breaks that spec???

For the record, this PR is inconsequential for the 0.35.0 release (changes only specs), so definitely feel free to postpone it to after that

I'd rather not make specs pending if we don't understand why they're broken

They've essentially been pending all the time because they're not included in win32_std_spec.cr. So this doesn't change anything for those specs that are now pending_win32. But it does change the specs that are no longer pending, because they work.
Thanks for your efforts @oprypin

🎉


Ansible pack won't install binaries when ansible is already installed on the machine

I had ansible already on the machine, installed via apt-get and when I added the ansible pack for stackstorm, it didn't add the binaries.
At the beginning I had my other ansible machine just symlink the binaries but after removing ansible on the stackstorm machine, the pack installed the binaries correcty.

Thanks for the report.
When you install a pack using packs.install, we create a new virtual environment for that pack and install all the dependencies there. This is done to prevent isolate the pack and prevent conflicts between different packs and system libraries.
This means that ansible binaries will be installed inside the virtualenv (/opt/stackstorm/virtualenv/ansible/bin/ansible) and they won't be available globally,
Can you please confirm that you checked /opt/stackstorm/virtualenv/ansible/bin/ and verify that the binaries were installed there?

I'm trying to reproduce it, waiting for my VM to provision to verify.
Also was reported in our slack community.
As I researched, it could be realted to https://github.com/pypa/pip/issues/333 when pip doesn't install packages for venv that exist in the global python installation.
But we install pip requirements with -U flag, which should work.

Yeah, good point - we create virtualenv with --system-site-packages flag so this could be the issue.
We originally didn't use that flag, but it turned out there were some issues so we decided to use it as a not so ideal workaround.

Strange, but I couldn't reproduce it on latest stable st2 version. I've got new VM and ran:
sudo apt-get install -y ansible
st2 run packs.install packs=ansible

Both global and venv ansible were installed:
# global ansible version
root@st2express:/home/vagrant# /usr/bin/ansible --version
ansible 1.5.4

# get venv ansible version
root@st2express:/home/vagrant# /opt/stackstorm/virtualenvs/ansible/bin/ansible --version
ansible 1.9.3
  configured module search path = /usr/share/ansible

Then I verified that st2 runs venv ansible version:
st2 run ansible.command_local version=True
id: 561265b69c99385501759e23
status: succeeded
result:
{
    "succeeded": true,
    "failed": false,
    "return_code": 0,
    "stderr": "",
    "stdout": "ansible 1.9.3
  configured module search path = /usr/share/ansible"
}

# st2 --version
st2 ('<IP_ADDRESS>',)

Could reproduce it when installing global ansible via pip. The difference is that apt-get installs 1.5 ansible version, while pip installs latest 1.9 ansible version.
So here virtualenv ansible is not installed, because global ansible is up to date and has the same version.
Install global ansible (via pip) and st2 virtualenv ansible:
sudo pip install ansible
st2 run packs.install packs=ansible

Check if virtualenv ansible is installed:
ls /opt/stackstorm/virtualenvs/ansible/bin
activate      activate.fish     easy_install      pip   pip2.7  python2
activate.csh  activate_this.py  easy_install-2.7  pip2  python  python2.7

I wonder if this works as intended or it's a bug in virtualenv.
In any case, it seems like we need to make sure we add global bin directory to the path. I actually thought that was already the case (we introduced this change a while ago), but there could be some edge cases which we don't handle right now.
@armab Do the ansible actions still work even if the binaries are not installed in virtualenv bin?

Yeah, there is a global bin in the path, but no sandboxed path when running local-shell-script (ansible pack is implemented via local-shell-script).
Because of that global ansible will have precedence over sandboxed ansible.
Is it good idea to add sandboxed bin dir to PATH when running local-shell-script, same as you did for python-runner https://github.com/StackStorm/st2/pull/1857 so virtualenv/bin will work with precedence?
Can this approach possibly break something or should I better modify PATH in ansible pack code?
We already pass informational env variables like ST2_ACTION_PACK_NAME to local-shell-script processes:
{'ST2_ACTION_PACK_NAME': 'ansible', 'ST2_ACTION_EXECUTION_ID': '56126e0f9c99385501759e4a', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'ST2_ACTION_API_URL': 'http://<IP_ADDRESS>:9101/v1', 'SHLVL': '2', 'SUDO_UID': '0', 'SUDO_GID': '0', 'SUDO_COMMAND': '/bin/bash -c /opt/stackstorm/packs/ansible/actions/ansible.py --connection=local --inventory-file=<IP_ADDRESS>, --version all', 'USERNAME': 'root', 'ST2_ACTION_AUTH_TOKEN': '1da359f451e24131acfc6d928b64f0b4', 'PWD': '/home/vagrant', 'LOGNAME': 'root', 'USER': 'root', 'MAIL': '/var/mail/root', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SUDO_USER': 'root' ...

Is it good idea to add sandboxed bin dir to PATH when running local-shell-script, same as you did for python-runner StackStorm/st2#1857 so virtualenv/bin will work with precedence?

I'm not convinced this is the best approach since sandbox is really specific to Python actions so I'm not a big fan of this abstraction "leaking" elsewhere.
Long term ideal solution would be for those actions to be Python runner actions but for that, we first need to add support for executing Python actions on remote hosts.
I'll think about it some more.

Ok, then I'll just modify PATH in ansible pack to fix this.
Thanks for your insights & ideas with PATH and pip flags!

I initially had ansible installed via apt-get, not pip but I had the ansible repository:
apt-add-repository ppa:ansible/ansible
apt-get update
apt-get install ansible

it installs version 1.9.3 that way so it meets the requirements set in the ansible pack, maybe thats why it didn't install the binaries?

@armab Thanks, this seems like a reasonable solution / workaround until we figure something better out :)

it installs version 1.9.3 that way so it meets the requirements set in the ansible pack, maybe thats why it didn't install the binaries?

@thomaspicquet Yes, exactly.
Fix is merged, you can try reinstalling st2 ansible pack. It should use your global ansible, if virtualenv ansible wasn't installed.

@armab
it worked fine, thanks a lot!


NNW6 (macOS): There's an extra few pixels worth of separator between the timeline and the article

@brentsimmons This happens because we are wrapping the WKWebView in an NSBox. Getting rid of the NSBox fixes the problem, but I don't know if I would be breaking something else by removing it. Do you remember the reason for the NSBox?

I don’t remember the reason for the NSBox.


Pass features to parser with option to expand the attributes column

This PR fixes #18, as well as issue #22, which has been addressed in previous PRs (my apologies for redundancy)

Thank you @sposadac !


Constructor assignment and import conflict

TypeScript Version:  3.9.2
Code
import {v4 as uuid} from 'uuid';

const abc = '';

class Task {
  // OK
  constructor(public id = uuid(), public abc = 'a') {}

  // Cannot use uuid, which is used when import library, as field name in constructor => BUG?
  //constructor(public uuid = uuid()) {}
}

Compiler Options
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "moduleResolution": 2,
    "target": "ES2017",
    "jsx": "React",
    "module": "ESNext"
  }
}

Stackblitz Link: Provided

constructor(public uuid = uuid()) {}

When you write it like this, then the identifier uuid in your function call (uuid()) refers to the argument uuid, not to the imported function. This is correctly and matches how JavaScript works.
See the JS and the logs (when you hit run) on the playground: Playground Link

Thanks for your explanation!


Errors of rasterize

I always failed to install the gsplat.
So I transfer other people's conda environment to run the gsplat, but it takes this error:
Traceback (most recent call last):
  File "test.py", line 17, in <module>
    colors, alphas, meta = rasterization(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/rendering.py", line 360, in rasterization
    render_colors, render_alphas = rasterize_to_pixels(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/cuda/_wrapper.py", line 481, in rasterize_to_pixels
    render_colors, render_alphas = _RasterizeToPixels.apply(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/torch/autograd/function.py", line 506, in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/cuda/_wrapper.py", line 824, in forward
    render_colors, render_alphas, last_ids = _make_lazy_cuda_func(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/cuda/_wrapper.py", line 12, in call_cuda
    return getattr(_C, name)(*args, **kwargs)
RuntimeError: Failed to set maximum shared memory size (requested 7168 bytes), try lowering tile_size.

Could you tell me how to correct install the gsplat?

try lowering tile_size

try lowering tile_size

How to setting， where？

Hi, have you solved this problem? kindly ask for the solution, thank you very much.

here is the docs,which defines the interface
use ctrl +f in browser to find which parameters you wanna have a look

here is the docs,which defines the function rasterization
use ctrl +f in browser to find which parameters you wanna have a look
hope it would help :) @vasile-v1 @DabblerGISer

Thank you for your reply!
I'm not solving configuration locally. It runs perfectly on my conda env. But now I'm trying to pack my project to use on another computer, and it turns out that the rasterization part can't reference the cuda code correctly. Im looking for a good way to solve this.

Hi, @DabblerGISer @mingqiJ
Did you solve this problem? I encountered it as well. I 've tried a lot of diffenrent GPUs, the code runs fine on some GPUs (like RTX 4050, 4070), and some get error like yours (RTX 3070...). I tried lower tile_size, but it didn't work.


Expose multiple tracks to the OS (music/sound effects)

Would it be possible to support having multiple output tracks and naming it?
I have seen games doing that, so that as a player, I could see multiple tracks of the same process in my OS sound settings, and configure it separately. I would like to use this to send the music and sound effects in two different contexts/tracks/playbacks (I don't know the correct name for this).
For example, any Youtuber or Streamer who records the game would have two different audio tracks in their video editors, and be able to remove/replace the music while keeping the sound effects.
That would be a big help since I want to use royalty-free musics (which usually triggers Content-ID copyright issues on Youtube).
I don't know if my understanding is correct, but I guess that it would require to allow multiple contexts and name them? Or would Player be the correct abstraction layer for this (are they always mixed by the process itself instead of the OS)?

Is this #54?

No, it's a different request.

Or would Player be the correct abstraction layer for this (are they always mixed by the process itself instead of the OS)?

Yes, if I understand your request correctly.


⚠ Mobitopup has degraded performance

In 7133373, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 15887 ms

Resolved: Mobitopup performance has improved in fc854d5.


AI assistant

This issue was originally part of one of your first issues: #3
I split the issue up into multiple issues for a better overview.

Ah. More like an Copilot thing from Windows. But in good ish. Or a fake "AI" would be funny too if implemented right

I have no experience with Microsoft Copilot. Is it like a desktop application or more like an assistant, similar to Clippy or Siri? Or is it something entirely different?

Yes, something like that, in very dumbed down terms


fixed a bug matching long ids in searchparams

Intermittent test failures found another bug in id matching

@jamesagnew please review and merge this small bugfix

Can this feature be merged on v3.7.0 and augment the minor version please?
Thanks.


feat: message sorting

This adds a new hook that consolidates the messages hook so that all messages can be pulled into an application and displayed in a sorted order

What's the status of this PR @KolbyRKunz

Tested against AFJ 0.3.3 in bifold without any issues. This is was with main merged. @TimoGlastra. Currently do not have a way to test with AFJ 0.4.0.

We can merge for 0.3 now and update to 0.4 later.
Can you remive the package-lock and fix the version?


WIP: Create recipe for Octave

Tested on Centos6
Currently fails with octave: failed to exec '/usr/libexec/octave/4.0.3/exec/x86_64-pc-linux-gnu/octave-gui' message.
@probonopd to the rescue!

Please provide a matching Dockerfile as well, otherwise we can't build it on Travis CI. Can you post a link to your AppImage for testing/debugging?

@probonopd http://<IP_ADDRESS>/tmp/Octave-4.0.3.glibc2.4-x86_64.AppImage Not sure why it picked up GLIBC 2.4 though

Where to point Dockerfile to pick up Recipe? It is not your master tree yet.

The following should help, please test and then integrate it:
# Move libraries in place
mv lib64/* usr/lib && rm -r lib64/
mv ./usr/lib64/atlas/* usr/lib && rm -r ./usr/lib64/atlas/
mv ./usr/lib64/* usr/lib && rm -r ./usr/lib64/

# Remove developer stuff
rm -rf usr/include/
find . -type f -executable -exec strip {} \; || true

# Patch absolute /usr away; make relative to usr/ inside the AppDir
find usr/ -type f -executable -exec sed -i -e "s|/usr|././|g" {} \;

@probonopd by the way, why in patching absolute /usr away block, there you replace /usr with ././ not just ./ ?

@probonopd I tested your additions, and Octave now runs. Although I see some warnings

And it seems like on pressing File -> New -> Function, new file is edited with makeinfo. Do we need to include it as well? It has almost no dependencies.

BTW, when pressing OK for desktop file installation prompt, there is a error message in console

Otherwise this Appimage looks good for 64 bit build. Although I should mention that I am no Octave/Matlab user.

Which version of desktop-file-install do you have on your machine?

EDIT: It seems like you should use string of the same length

You guessed it :-)

@probonopd desktop-file-utils-0.23-1.fc24.x86_64


Add tropical semiring

It's warm outside!

Oops sorry this has conflicts now... but we can merge once they are fixed.

Oops sorry this has conflicts now... but we can merge once they are fixed.

We should get this merged- there are some conflicts but they should be easy to resolve.


RTSP using the liv link fails with VLC

Connection failed:
VLC could not connect to "--:8900".
Your input can't be opened:
VLC is unable to open the MRL 'rtsp://--:8900/live'. Check the log for details.

We are looking into it. We will update it shortly.

@namkedia I hope you followed https://azure.github.io/Vision-AI-DevKit-Pages/docs/RTSP_stream/
if not kindly go through it.

@namkedia Was your issue resolved or needs further support. Kindly update

Closing, Kindly re-open if further support is required.


test_settings.py:11: Drop dj_database_url dependency.

The puzzle 230-5492e443 from #230 has to be resolved:
https://github.com/fidals/refarm-site/blob/934ee8c4ab4d2909210cfee4976cc83688b1d466/tests/test_settings.py#L11-L11
The puzzle was created by duker33 on 27-Dec-18.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

fixed env file at the same task


Frequent Exit Code 1 error on apk installation from Windows

Steps to Reproduce
I'm using Powershell from within VSCode, and about 30% of the time flutter run will crash at the Installing build\app/outputs/apk/app.apk... step.
If I immediately try adb install -r build\app\outputs\apk\app.apk the install succeeds with no issue, but obviously no debugging.
I've tried doing adb kill-server before each run. I've tried flutter run --no-build. Nothing works 100% of the time, and the logs all look identical.
I'm going to start regularly using -v so I can maybe give better logs next time it happens.
(Don't mind the host error, I was offline this last time.)
Shell log
Launching lib/main.dart on LG H910 in debug mode...
Running 'gradle assembleDebug'...
Built build\app/outputs/apk/app-debug.apk (21.9MB).
Installing build\app/outputs/apk/app.apk...

Oops; flutter has exited unexpectedly: "Exit code 1 from: C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd install -r build\app
/outputs/apk/app.apk".
Sending crash report to Google.
Failed to send crash report due to a network error: SocketException: Failed host lookup: 'clients2.google.com' (OS Error: No such
host is known.
, errno = 11001)
Crash report written to C:\Users\Kyle\Source\Flutter\Cybertronix\flutter_11.log;
please let us know at https://github.com/flutter/flutter/issues.

flutter_11.log
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter run
exception
String: Exit code 1 from: C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd install -r build\app/outputs/apk/app.apk
#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:214)
<asynchronous suspension>
#1      AndroidDevice.installApp (package:flutter_tools/src/android/android_device.dart:241)
<asynchronous suspension>
#2      AndroidDevice._installLatestApp (package:flutter_tools/src/android/android_device.dart:281)
<asynchronous suspension>
#3      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:335)
<asynchronous suspension>
#4      HotRunner.run (package:flutter_tools/src/run_hot.dart:203)
<asynchronous suspension>
#5      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:291)
<asynchronous suspension>
#6      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:151)
<asynchronous suspension>
#7      RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:205)
<asynchronous suspension>
#8      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:121)
#9      CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:262)
<asynchronous suspension>
#11     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#12     Future.Future.sync (dart:async/future.dart:208)
#13     CommandRunner.run (package:args/command_runner.dart:109)
#14     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:157)
#15     run.<anonymous closure> (package:flutter_tools/executable.dart:140)
<asynchronous suspension>
#16     AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#17     AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#18     _rootRun (dart:async/zone.dart:1120)
#19     _CustomZone.run (dart:async/zone.dart:1001)
#20     runZoned (dart:async/zone.dart:1465)
#21     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#22     run (package:flutter_tools/executable.dart:113)
<asynchronous suspension>
#23     main (package:flutter_tools/executable.dart:66)
<asynchronous suspension>
#24     main (file:///C:/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#25     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

flutter doctor
[✓] Flutter (on Microsoft Windows [Version 6.3.9600], channel master)
    • Flutter at C:\flutter
    • Framework revision e2cd78358f (19 hours ago), 2017-04-26 13:14:31 -0700
    • Engine revision a5b64899c9
    • Tools Dart version 1.23.0-dev.11.11

[✓] Host Executable Compatibility
    • Downloaded executables execute on host

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    • Android SDK at C:\Android\sdk
    • Platform android-25, build-tools 25.0.2
    • ANDROID_HOME = C:\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 2.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2016.3)
    • Dart plugin version 163.13137
    • Flutter plugin version <IP_ADDRESS>

[✓] Connected devices
    • LG H910 • LGH9107a67a5fd • android-arm • Android 7.0 (API 24)

@goderbauer would know. :)

Looks like adb always returns 1 when something goes wrong :(. A failing run with -v might be more helpful in debugging this. Please post it here, if you're able to reproduce it with -v.
Also, can you please start Android Studio and use the SDK Manager there to update to the latest Android Platform Tools? The release notes mention that some crashes of adb on Windows were fixed in the most recent release (version 25.0.5).

I will make both of those changes.
If I don't get another crash by this evening, I'll call it fixed.

First try after upgrading the Platform-Tools, it failed in a much more informative way.
Key line, to my novice eyes anyway, is
[+1362 ms] Failed to install build\app/outputs/apk/app.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl703449352.tmp/base.apk using APK Signature Scheme v2: SHA-256 digest of contents did not verify]
flutter run -v
[  +32 ms] [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +64 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] [C:\flutter\] git ls-remote --get-url origin
[  +41 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [C:\flutter\] git log -n 1 --pretty=format:%H
[  +42 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ]<PHONE_NUMBER>d661b5b30b8f69599667476ab49aca
[        ] [C:\flutter\] git log -n 1 --pretty=format:%ar
[  +33 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 2 hours ago
[ +400 ms] C:\Android\sdk\platform-tools\adb devices -l
[+4098 ms] Exit code 0 from: C:\Android\sdk\platform-tools\adb devices -l
[        ] List of devices attached
           * daemon not running. starting it now at tcp:5037 *
           * daemon started successfully *
           LGH9107a67a5fd         device product:elsa_att_us model:LG_H910 device:elsa
[  +45 ms] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd shell getprop
[ +873 ms] Launching lib/main.dart on LG H910 in debug mode...
[ +151 ms] Using gradle from C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle.bat.
[   +1 ms] [android\] C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle.bat app:properties
[+2323 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle.bat app:properties
[   +2 ms] C:\Android\sdk\build-tools\25.0.2\aapt dump badging build\app/outputs/apk/app.apk
[  +18 ms] Exit code 0 from: C:\Android\sdk\build-tools\25.0.2\aapt dump badging build\app/outputs/apk/app.apk
[        ] package: name='com.yourcompany.Cybertronix' versionCode='1' versionName='0.0.1' platformBuildVersionName='7.1.1'
           sdkVersion:'16'
           targetSdkVersion:'21'
           uses-permission: name='android.permission.INTERNET'
           application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
           application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
           application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
           application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
           application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
           application: label='' icon='res/mipmap-mdpi-v4/ic_launcher.png'
           application-debuggable
           launchable-activity: name='com.yourcompany.Cybertronix.MainActivity'  label='' icon=''
           feature-group: label=''
             uses-feature: name='android.hardware.faketouch'
             uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
           main
           supports-screens: 'small' 'normal' 'large' 'xlarge'
           supports-any-density: 'true'
           locales:
           densities: '160' '240' '320' '480' '640'
           native-code: 'armeabi-v7a' 'x86' 'x86_64'
[   +7 ms] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd logcat -v time -t 1
[ +189 ms] Exit code 0 from: C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd logcat -v time -t 1
[        ] --------- beginning of main
           04-27 13:21:48.367 D/libc    (32654): getaddrinfo called from pid =32654
[   +6 ms] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd logcat -v time
[ +458 ms] DependencyChecker: C:\Users\Kyle\Source\Flutter\Cybertronix\.packages is newer than 2017-04-27 10:38:29.000
[   +7 ms] C:\Android\sdk\platform-tools\adb version
[  +34 ms] Android Debug Bridge version 1.0.39
           Revision 3db08f2c6889-android
           Installed as C:\Android\sdk\platform-tools\adb.EXE
[   +4 ms] C:\Android\sdk\platform-tools\adb start-server
[  +14 ms] Building APK
[  +91 ms] Found plugin url_launcher at C:\Users\Kyle\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-0.2.0\
[  +30 ms] Using gradle from C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle.bat.
[   +3 ms] Running 'gradle assembleDebug'...
[   +2 ms] [android\] C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle.bat -Ptarget=C:\Users\Kyle\Source\Flutt
er\Cybertronix\lib/main.dart assembleDebug
[+2534 ms] Incremental java compilation is an incubating feature.
[  +16 ms] The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskI
nputs.file(Object).skipWhenEmpty() instead.
[  +35 ms]      at build_bhixzqu22wz2op93jnb3b0cud$_run_closure2.doCall(C:\Users\Kyle\Source\Flutter\Cybertronix\android\build.gra
dle:20)
[+4658 ms] :app:flutterBuildX86Jar
[   +2 ms] :app:preBuild UP-TO-DATE
[        ] :app:preDebugBuild UP-TO-DATE
[        ] :app:checkDebugManifest
[        ] :app:preProfileBuild UP-TO-DATE
[   +1 ms] :app:preReleaseBuild UP-TO-DATE
[        ] :url_launcher:preBuild UP-TO-DATE
[        ] :url_launcher:preReleaseBuild UP-TO-DATE
[   +1 ms] :url_launcher:checkReleaseManifest
[   +1 ms] :url_launcher:prepareReleaseDependencies
[   +4 ms] :url_launcher:compileReleaseAidl UP-TO-DATE
[   +2 ms] :url_launcher:compileReleaseNdk UP-TO-DATE
[   +1 ms] :url_launcher:compileLint UP-TO-DATE
[   +1 ms] :url_launcher:copyReleaseLint UP-TO-DATE
[   +2 ms] :url_launcher:mergeReleaseShaders UP-TO-DATE
[   +2 ms] :url_launcher:compileReleaseShaders UP-TO-DATE
[        ] :url_launcher:generateReleaseAssets UP-TO-DATE
[   +7 ms] :url_launcher:mergeReleaseAssets UP-TO-DATE
[   +1 ms] :url_launcher:mergeReleaseProguardFiles UP-TO-DATE
[   +2 ms] :url_launcher:packageReleaseRenderscript UP-TO-DATE
[   +7 ms] :url_launcher:compileReleaseRenderscript UP-TO-DATE
[   +3 ms] :url_launcher:generateReleaseResValues UP-TO-DATE
[        ] :url_launcher:generateReleaseResources UP-TO-DATE
[   +6 ms] :url_launcher:packageReleaseResources UP-TO-DATE
[   +5 ms] :url_launcher:processReleaseManifest UP-TO-DATE
[   +4 ms] :url_launcher:generateReleaseBuildConfig UP-TO-DATE
[   +5 ms] :url_launcher:processReleaseResources UP-TO-DATE
[        ] :url_launcher:generateReleaseSources UP-TO-DATE
[   +7 ms] :url_launcher:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
[ +636 ms] :url_launcher:compileReleaseJavaWithJavac
[        ] Full recompilation is required because 'flutter.jar' was changed. Analysis took 0.449 secs.
[+1011 ms] :url_launcher:processReleaseJavaRes UP-TO-DATE
[        ] :url_launcher:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
[   +4 ms] :url_launcher:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
[  +18 ms] :url_launcher:mergeReleaseJniLibFolders UP-TO-DATE
[   +1 ms] :url_launcher:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
[   +1 ms] :url_launcher:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
[        ] :url_launcher:bundleRelease UP-TO-DATE
[   +2 ms] :app:prepareIoFlutterPluginsUrl_launcherUrl_launcher10SNAPSHOTLibrary UP-TO-DATE
[   +1 ms] :app:prepareDebugDependencies
[   +6 ms] :app:compileDebugAidl UP-TO-DATE
[   +7 ms] :app:compileDebugRenderscript UP-TO-DATE
[   +3 ms] :app:generateDebugBuildConfig UP-TO-DATE
[+8673 ms] :app:flutterBuildDebug
[   +3 ms] :app:mergeDebugShaders UP-TO-DATE
[   +2 ms] :app:compileDebugShaders UP-TO-DATE
[        ] :app:generateDebugAssets UP-TO-DATE
[   +4 ms] :app:mergeDebugAssets UP-TO-DATE
[  +24 ms] :app:copyFlutterAssetsDebug
[   +2 ms] :app:generateDebugResValues UP-TO-DATE
[        ] :app:generateDebugResources UP-TO-DATE
[   +6 ms] :app:mergeDebugResources UP-TO-DATE
[   +6 ms] :app:processDebugManifest UP-TO-DATE
[   +6 ms] :app:processDebugResources UP-TO-DATE
[  +23 ms] :app:generateDebugSources UP-TO-DATE
[   +6 ms] :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
[ +341 ms] :app:compileDebugJavaWithJavac
[   +3 ms] Full recompilation is required because 'flutter.jar' was changed. Analysis took 0.235 secs.
[ +301 ms] :app:compileDebugNdk UP-TO-DATE
[   +2 ms] :app:compileDebugSources
[+4456 ms] :app:transformClassesWithDexForDebug
[   +4 ms] :app:mergeDebugJniLibFolders UP-TO-DATE
[+4915 ms] :app:transformNative_libsWithMergeJniLibsForDebug
[   +4 ms] :app:processDebugJavaRes UP-TO-DATE
[ +799 ms] :app:transformResourcesWithMergeJavaResForDebug
[   +1 ms] :app:validateSigningDebug
[+6514 ms] :app:packageDebug
[        ] :app:assembleDebug
[   +1 ms] :url_launcher:preDebugBuild UP-TO-DATE
[   +2 ms] :url_launcher:checkDebugManifest
[   +1 ms] :url_launcher:prepareDebugDependencies
[   +7 ms] :url_launcher:compileDebugAidl UP-TO-DATE
[   +4 ms] :url_launcher:compileDebugNdk UP-TO-DATE
[   +2 ms] :url_launcher:copyDebugLint UP-TO-DATE
[   +3 ms] :url_launcher:mergeDebugShaders UP-TO-DATE
[   +3 ms] :url_launcher:compileDebugShaders UP-TO-DATE
[   +2 ms] :url_launcher:generateDebugAssets UP-TO-DATE
[   +3 ms] :url_launcher:mergeDebugAssets UP-TO-DATE
[   +1 ms] :url_launcher:mergeDebugProguardFiles UP-TO-DATE
[   +2 ms] :url_launcher:packageDebugRenderscript UP-TO-DATE
[   +6 ms] :url_launcher:compileDebugRenderscript UP-TO-DATE
[   +2 ms] :url_launcher:generateDebugResValues UP-TO-DATE
[   +1 ms] :url_launcher:generateDebugResources UP-TO-DATE
[   +6 ms] :url_launcher:packageDebugResources UP-TO-DATE
[  +44 ms] :url_launcher:processDebugManifest UP-TO-DATE
[   +1 ms] :url_launcher:generateDebugBuildConfig UP-TO-DATE
[        ] :url_launcher:processDebugResources UP-TO-DATE
[        ] :url_launcher:generateDebugSources UP-TO-DATE
[   +4 ms] :url_launcher:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
[  +97 ms] :url_launcher:compileDebugJavaWithJavac
[        ] Full recompilation is required because 'flutter.jar' was changed. Analysis took 0.044 secs.
[  +99 ms] :url_launcher:processDebugJavaRes UP-TO-DATE
[  +27 ms] :url_launcher:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +5 ms] :url_launcher:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] :url_launcher:mergeDebugJniLibFolders UP-TO-DATE
[        ] :url_launcher:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
[        ] :url_launcher:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
[   +4 ms] :url_launcher:bundleDebug UP-TO-DATE
[        ] :url_launcher:compileDebugSources
[        ] :url_launcher:assembleDebug
[   +1 ms] BUILD SUCCESSFUL
[  +14 ms] Total time: 35.348 secs
[ +996 ms] calculateSha: build\app/outputs/apk/app.apk
[ +462 ms] Built build\app/outputs/apk/app-debug.apk (21.9MB).
[   +1 ms] C:\Android\sdk\build-tools\25.0.2\aapt dump badging build\app/outputs/apk/app.apk
[   +9 ms] Exit code 0 from: C:\Android\sdk\build-tools\25.0.2\aapt dump badging build\app/outputs/apk/app.apk
[        ] package: name='com.yourcompany.Cybertronix' versionCode='1' versionName='0.0.1' platformBuildVersionName='7.1.1'
           sdkVersion:'16'
           targetSdkVersion:'21'
           uses-permission: name='android.permission.INTERNET'
           application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
           application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
           application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
           application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
           application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
           application: label='' icon='res/mipmap-mdpi-v4/ic_launcher.png'
           application-debuggable
           launchable-activity: name='com.yourcompany.Cybertronix.MainActivity'  label='' icon=''
           feature-group: label=''
             uses-feature: name='android.hardware.faketouch'
             uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
           main
           supports-screens: 'small' 'normal' 'large' 'xlarge'
           supports-any-density: 'true'
           locales:
           densities: '160' '240' '320' '480' '640'
           native-code: 'armeabi-v7a' 'x86' 'x86_64'
[        ] Stopping app 'app.apk' on LG H910.
[        ] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd shell am force-stop com.yourcompany.Cybertronix
[+1080 ms] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd shell pm list packages com.yourcompany.Cybertronix
[ +504 ms] package:com.yourcompany.Cybertronix
[   +2 ms] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd shell cat /data/local/tmp/sky.com.yourcompany.Cybertronix.sha1
[  +45 ms] 51703fedab42ec515ca21c850e002577d2d35671
[   +1 ms] Installing APK.
[   +2 ms] C:\Android\sdk\platform-tools\adb version
[  +18 ms] Android Debug Bridge version 1.0.39
           Revision 3db08f2c6889-android
           Installed as C:\Android\sdk\platform-tools\adb.EXE
[   +1 ms] C:\Android\sdk\platform-tools\adb start-server
[  +14 ms] Installing build\app/outputs/apk/app.apk...
[        ] C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd install -r build\app/outputs/apk/app.apk
[+1362 ms] Failed to install build\app/outputs/apk/app.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certi
ficates from /data/app/vmdl703449352.tmp/base.apk using APK Signature Scheme v2: SHA-256 digest of contents did not verify]
[   +1 ms] 'flutter run' took 48683ms.

Oops; flutter has exited unexpectedly: "Exit code 1 from: C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd install -r build\app
/outputs/apk/app.apk".
[  +20 ms] Sending crash report to Google.
[ +977 ms] Crash report sent (report ID: 56bf015d90000000)
Crash report written to C:\Users\Kyle\Source\Flutter\Cybertronix\flutter_12.log;
please let us know at https://github.com/flutter/flutter/issues.
[ +592 ms] ensureAnalyticsSent: 0ms
[   +1 ms] exiting with code 1

flutter_12.log
exception
String: Exit code 1 from: C:\Android\sdk\platform-tools\adb -s LGH9107a67a5fd install -r build\app/outputs/apk/app.apk
#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:214)
<asynchronous suspension>
#1      AndroidDevice.installApp (package:flutter_tools/src/android/android_device.dart:241)
<asynchronous suspension>
#2      AndroidDevice._installLatestApp (package:flutter_tools/src/android/android_device.dart:281)
<asynchronous suspension>
#3      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:335)
<asynchronous suspension>
#4      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:223)
<asynchronous suspension>
#5      HotRunner.run (package:flutter_tools/src/run_hot.dart:183)
<asynchronous suspension>
#6      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:306)
<asynchronous suspension>
#7      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:151)
<asynchronous suspension>
#8      RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:210)
<asynchronous suspension>
#9      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:121)
#10     CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:262)
<asynchronous suspension>
#12     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#13     Future.Future.sync (dart:async/future.dart:208)
#14     CommandRunner.run (package:args/command_runner.dart:109)
#15     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:157)
#16     run.<anonymous closure> (package:flutter_tools/executable.dart:140)
<asynchronous suspension>
#17     AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#18     AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#19     _rootRun (dart:async/zone.dart:1120)
#20     _CustomZone.run (dart:async/zone.dart:1001)
#21     runZoned (dart:async/zone.dart:1465)
#22     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#23     run (package:flutter_tools/executable.dart:113)
<asynchronous suspension>
#24     main (package:flutter_tools/executable.dart:66)
<asynchronous suspension>
#25     main (file:///C:/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#26     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#27     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

flutter doctor
[✓] Flutter (on Microsoft Windows [Version 6.3.9600], channel master)
    • Flutter at C:\flutter
    • Framework revision<PHONE_NUMBER> (2 hours ago), 2017-04-27 09:39:12 -0700
    • Engine revision 3211d2fca2
    • Tools Dart version 1.23.0-dev.11.11

[✓] Host Executable Compatibility
    • Downloaded executables execute on host

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    • Android SDK at C:\Android\sdk
    • Platform android-25, build-tools 25.0.2
    • ANDROID_HOME = C:\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 2.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2016.3)
    • Dart plugin version 163.13137
    • Flutter plugin version <IP_ADDRESS>

[✓] Connected devices
    • LG H910 • LGH9107a67a5fd • android-arm • Android 7.0 (API 24)

Looks like there is some issue with certificates, maybe.
@jakobr-google Do you have any insights into this?

This actually looks like a duplicate of https://github.com/flutter/flutter/issues/8605. Let's close this bug here and move the discussion over there.

hellio > can you heelp me
Error: ADB exited with exit code 1
adb: failed to install C:\Users\karrar\untitled1\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on Android SDK built for x86.

@kararsaadkd looks like your device/emulator's storage is full.
Try deleting some apps or similar to free up storage.

@zoechi You King I register with you say thank you :)

Hi everyone. I was trying to run the flutter demo app on the Android Studio emulator on Win10. But I got this complaint. Could you please help me?
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Users\Jarvis\Desktop\code\first_app\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]
Error launching application on COR AL00.

@Neo42 Using the AVD manager to "Wipe Data" seems to have cleared it.

See here for read-only file system problem: https://stackoverflow.com/questions/6066030/read-only-file-system-on-android

In the end I made a new emulator deleted the old ones. And it worked.

Im not using an emulator and I have more than 2gb free and I cannot send the app to my Moto G6 but I can to Moto Z

Same here, got space on my moto G7 but suddenly can't run the app on it anymore

restart your android phone and build again. worked for me.
Thank you

Open Android Studio: Configure ->AVD Manager->Edit AVD->Show Advanced Options->Memory and Storage-> increment Memory Storage and SD CARD

i tried Open Android Studio: Configure ->AVD Manager->Edit AVD->Show Advanced Options->Memory and Storage-> increment Memory Storage and SD CARD as FranciscoDevPy commented. it worked with me than you. i tried this with new emulater.

@kararsaadkd looks like your device/emulator's storage is full.
Try deleting some apps or similar to free up storage.

Thank's man

@zoechi era isso mesmo falta de espaço no dispositivo, deu certo aqui obrigado!

for ADP issue you just need to double your emulator storage from the AVD Manager - advanced setting
you can set the following values in the memory and storage section for instance :
Ram : 3072
VM heap: 512
Internal Storage: 1024
SD Card : 1024 - optional
and Allah willing every thing will be fine


CLN plugin build fails

6f107361abc173624870f7a96d91ee6702a397e0 fails on arm64 ubuntu 22.04
rust version: 1.65.0 (897e37553 2022-11-02)
$ cargo install --path watchtower-plugin
  Installing watchtower-plugin v0.1.2 (/home/cln/rust-teos/watchtower-plugin)
    Updating crates.io index
   Compiling watchtower-plugin v0.1.2 (/home/cln/rust-teos/watchtower-plugin)
error[E0277]: the trait bound `Arc<std::sync::Mutex<WTClient>>: AsyncRead` is not satisfied
   --> watchtower-plugin/src/main.rs:527:32
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ------------ ^^^^^ the trait `AsyncRead` is not implemented for `Arc<std::sync::Mutex<WTClient>>`
    |                   |
    |                   required by a bound introduced by this call
    |
    = help: the following other types implement trait `AsyncRead`:
              &[u8]
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              h2::codec::framed_write::FramedWrite<T, B>
              hyper::server::tcp::addr_stream::AddrStream
            and 27 others
note: required by a bound in `cln_plugin::Builder::<S, I, O>::new`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:107:8
    |
107 |     I: AsyncRead + Send + Unpin + 'static,
    |        ^^^^^^^^^ required by this bound in `cln_plugin::Builder::<S, I, O>::new`

error[E0277]: the trait bound `tokio::io::Stdin: AsyncWrite` is not satisfied
   --> watchtower-plugin/src/main.rs:527:39
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ------------        ^^^^^^^ the trait `AsyncWrite` is not implemented for `tokio::io::Stdin`
    |                   |
    |                   required by a bound introduced by this call
    |
    = help: the following other types implement trait `AsyncWrite`:
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              Vec<u8>
              hyper::server::tcp::addr_stream::AddrStream
              hyper::upgrade::Upgraded
            and 27 others
note: required by a bound in `cln_plugin::Builder::<S, I, O>::new`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:105:15
    |
105 |     O: Send + AsyncWrite + Unpin + 'static,
    |               ^^^^^^^^^^ required by this bound in `cln_plugin::Builder::<S, I, O>::new`

error[E0061]: this function takes 2 arguments but 3 arguments were supplied
   --> watchtower-plugin/src/main.rs:527:19
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ^^^^^^^^^^^^                 -------- argument of type `tokio::io::Stdout` unexpected
    |
note: associated function defined here
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:109:12
    |
109 |     pub fn new(input: I, output: O) -> Self {
    |            ^^^
help: remove the extra argument
    |
527 |     let builder = Builder::new(state, stdin())
    |                               ~~~~~~~~~~~~~~~~

error[E0277]: the trait bound `Arc<std::sync::Mutex<WTClient>>: AsyncRead` is not satisfied
   --> watchtower-plugin/src/main.rs:527:19
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncRead` is not implemented for `Arc<std::sync::Mutex<WTClient>>`
    |
    = help: the following other types implement trait `AsyncRead`:
              &[u8]
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              h2::codec::framed_write::FramedWrite<T, B>
              hyper::server::tcp::addr_stream::AddrStream
            and 27 others
note: required by a bound in `cln_plugin::Builder`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:37:8
    |
37  |     I: AsyncRead + Unpin,
    |        ^^^^^^^^^ required by this bound in `cln_plugin::Builder`

error[E0277]: the trait bound `tokio::io::Stdin: AsyncWrite` is not satisfied
   --> watchtower-plugin/src/main.rs:527:19
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncWrite` is not implemented for `tokio::io::Stdin`
    |
    = help: the following other types implement trait `AsyncWrite`:
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              Vec<u8>
              hyper::server::tcp::addr_stream::AddrStream
              hyper::upgrade::Upgraded
            and 27 others
note: required by a bound in `cln_plugin::Builder`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:38:15
    |
38  |     O: Send + AsyncWrite + Unpin,
    |               ^^^^^^^^^^ required by this bound in `cln_plugin::Builder`

error[E0599]: the method `option` exists for struct `cln_plugin::Builder<_, Arc<std::sync::Mutex<WTClient>>, tokio::io::Stdin>`, but its trait bounds were not satisfied
   --> watchtower-plugin/src/main.rs:528:10
    |
528 |         .option(ConfigOption::new(
    |          ^^^^^^ method cannot be called on `cln_plugin::Builder<_, Arc<std::sync::Mutex<WTClient>>, tokio::io::Stdin>` due to unsatisfied trait bounds
    |
   ::: /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/io/stdin.rs:29:5
    |
29  |     pub struct Stdin {
    |     ---------------- doesn't satisfy `tokio::io::Stdin: AsyncWrite`
    |
    = note: the following trait bounds were not satisfied:
            `tokio::io::Stdin: AsyncWrite`
            `Arc<std::sync::Mutex<WTClient>>: AsyncRead`

Some errors have detailed explanations: E0061, E0277, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `watchtower-plugin` due to 6 previous errors
error: failed to compile `watchtower-plugin v0.1.2 (/home/cln/rust-teos/watchtower-plugin)`, intermediate artifacts can be found at `/home/cln/rust-teos/target`

Hey @grubles,
It looks like the upstream library we are using cln-plugin introduced some breaking changes and only changed the patch version (tbh, I don't really know how SemVer works), thus version 0.1.1 - which is fetched by your cargo - isn't compatible.
I was able to fix this by editing Cargo.toml found in watchtower-plugin directory like so:
diff --git a/watchtower-plugin/Cargo.toml b/watchtower-plugin/Cargo.toml
index ae864f2..c0cc8dd 100755
--- a/watchtower-plugin/Cargo.toml
+++ b/watchtower-plugin/Cargo.toml
@@ -26,7 +26,7 @@ tokio = { version = "1.5", features = [ "rt-multi-thread", "fs" ] }

 # Bitcoin and Lightning
 bitcoin = "0.28.0"
-cln-plugin = "0.1.0"
+cln-plugin = "=0.1.0"

 # Local
 teos-common = { path = "../teos-common" }

@sr-gi, we can track Cargo.lock in git to avoid such errors in the future.

@grubles @mariocynicys that is the issue indeed. I will fix cln-plugin = "=0.1.0 until I can patch the code to match 0.1.1.
Regarding tracking Cargo.lock, I think that's something you're not supposed to do. Minor version upgrades should not have breaking changes like this one (I think?)
In any case, yaaay new cln-plugin version, this means new functionality for watchtower-plugin!

Regarding tracking Cargo.lock, I think that's something you're not supposed to do. Minor version upgrades should not have breaking changes like this one (I think?)

I think this is true in SemVer world, but it shouldn't hurt anyways having everybody running on the same state, and new minor versions shouldn't have any logic-changing/breaking stuff anyways.

In any case, yaaay new cln-plugin version, this means new functionality for watchtower-plugin!

Cool!

and new minor versions shouldn't have any logic-changing/breaking stuff anyways.

Well, maybe they can have a security related changes that has nothing to do with the logic, that's one valid counter argument.
So let's not track Cargo.lock then :+1:.

and new minor versions shouldn't have any logic-changing/breaking stuff anyways.

Well, maybe they can have a security related changes that has nothing to do with the logic, that's one valid counter argument.
So let's not track Cargo.lock then :+1:.

Oh wait, looks like I'm wrong here.
https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

@grubles #149 should have fixed this. Can you give master a try?

832dd71ae5b8b7875f892d12851379349812b0cd doesn't seem to build either.
   Compiling watchtower-plugin v0.1.2 (/home/cln/rust-teos/watchtower-plugin)
error[E0277]: the trait bound `Arc<std::sync::Mutex<WTClient>>: AsyncRead` is not satisfied
   --> watchtower-plugin/src/main.rs:527:32
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ------------ ^^^^^ the trait `AsyncRead` is not implemented for `Arc<std::sync::Mutex<WTClient>>`
    |                   |
    |                   required by a bound introduced by this call
    |
    = help: the following other types implement trait `AsyncRead`:
              &[u8]
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              h2::codec::framed_write::FramedWrite<T, B>
              hyper::server::tcp::addr_stream::AddrStream
            and 27 others
note: required by a bound in `cln_plugin::Builder::<S, I, O>::new`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:107:8
    |
107 |     I: AsyncRead + Send + Unpin + 'static,
    |        ^^^^^^^^^ required by this bound in `cln_plugin::Builder::<S, I, O>::new`

error[E0277]: the trait bound `tokio::io::Stdin: AsyncWrite` is not satisfied
   --> watchtower-plugin/src/main.rs:527:39
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ------------        ^^^^^^^ the trait `AsyncWrite` is not implemented for `tokio::io::Stdin`
    |                   |
    |                   required by a bound introduced by this call
    |
    = help: the following other types implement trait `AsyncWrite`:
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              Vec<u8>
              hyper::server::tcp::addr_stream::AddrStream
              hyper::upgrade::Upgraded
            and 27 others
note: required by a bound in `cln_plugin::Builder::<S, I, O>::new`                                                                                [42/1629]
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:105:15
    |
105 |     O: Send + AsyncWrite + Unpin + 'static,
    |               ^^^^^^^^^^ required by this bound in `cln_plugin::Builder::<S, I, O>::new`

error[E0061]: this function takes 2 arguments but 3 arguments were supplied
   --> watchtower-plugin/src/main.rs:527:19
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ^^^^^^^^^^^^                 -------- argument of type `tokio::io::Stdout` unexpected
    |
note: associated function defined here
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:109:12
    |
109 |     pub fn new(input: I, output: O) -> Self {
    |            ^^^
help: remove the extra argument
    |
527 |     let builder = Builder::new(state, stdin())
    |                               ~~~~~~~~~~~~~~~~

error[E0277]: the trait bound `Arc<std::sync::Mutex<WTClient>>: AsyncRead` is not satisfied
   --> watchtower-plugin/src/main.rs:527:19
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncRead` is not implemented for `Arc<std::sync::Mutex<WTClient>>`
    |
    = help: the following other types implement trait `AsyncRead`:
              &[u8]
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              h2::codec::framed_write::FramedWrite<T, B>
              hyper::server::tcp::addr_stream::AddrStream
            and 27 others
note: required by a bound in `cln_plugin::Builder`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:37:8
    |
37  |     I: AsyncRead + Unpin,
    |        ^^^^^^^^^ required by this bound in `cln_plugin::Builder`
    |        ^^^^^^^^^ required by this bound in `cln_plugin::Builder`                                                                                [0/1629]

error[E0277]: the trait bound `tokio::io::Stdin: AsyncWrite` is not satisfied
   --> watchtower-plugin/src/main.rs:527:19
    |
527 |     let builder = Builder::new(state, stdin(), stdout())
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncWrite` is not implemented for `tokio::io::Stdin`
    |
    = help: the following other types implement trait `AsyncWrite`:
              &mut T
              Box<T>
              BufStream<RW>
              DuplexStream
              Pin<P>
              Vec<u8>
              hyper::server::tcp::addr_stream::AddrStream
              hyper::upgrade::Upgraded
            and 27 others
note: required by a bound in `cln_plugin::Builder`
   --> /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/cln-plugin-0.1.1/src/lib.rs:38:15
    |
38  |     O: Send + AsyncWrite + Unpin,
    |               ^^^^^^^^^^ required by this bound in `cln_plugin::Builder`

error[E0599]: the method `option` exists for struct `cln_plugin::Builder<_, Arc<std::sync::Mutex<WTClient>>, tokio::io::Stdin>`, but its trait bounds were not satisfied
   --> watchtower-plugin/src/main.rs:528:10
    |
528 |         .option(ConfigOption::new(
    |          ^^^^^^ method cannot be called on `cln_plugin::Builder<_, Arc<std::sync::Mutex<WTClient>>, tokio::io::Stdin>` due to unsatisfied trait bounds
    |
   ::: /home/cln/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/io/stdin.rs:29:5
    |
29  |     pub struct Stdin {
    |     ---------------- doesn't satisfy `tokio::io::Stdin: AsyncWrite`
    |
    = note: the following trait bounds were not satisfied:
            `tokio::io::Stdin: AsyncWrite`
            `Arc<std::sync::Mutex<WTClient>>: AsyncRead`

Some errors have detailed explanations: E0061, E0277, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `watchtower-plugin` due to 6 previous errors
error: failed to compile `watchtower-plugin v0.1.2 (/home/cln/rust-teos/watchtower-plugin)`, intermediate artifacts can be found at `/home/cln/rust-teos/target`

@grubles , You wanna install using the current locked version of Cargo.lock. i.e. cargo install --locked --path watchtower-plugin.
See https://github.com/talaia-labs/rust-teos/pull/149#issuecomment-1312480254 for more info.

@grubles , You wanna install using the current locked version of Cargo.lock. i.e. cargo install --locked --path watchtower-plugin.
See #149 (comment) for more info.

It may actually be worth adding the --locked modifier to the install instructions now that you mention it :/

Ok --locked did the trick! The build finished successfully. Agree that it's a good idea to add that flag to the install instructions.


Fix td-agent.conf on bastion

https://scalar-labs.atlassian.net/browse/DLT-6466
td-agent.conf for Cassandra hosts is installed on the bastion host.
Only the difference is that td-agent for Cassandra hosts looks at /var/log/cassandra/system.log.

@ymorimo Is this the reason why you said it wasn't working ?

@ymorimo Is this the reason why you said it wasn't working ?

@feeblefakie
No, that was my misunderstanding of the warning message. 😑
https://scalar-labs.atlassian.net/browse/DLT-6467


HW Release Model - Collaterals Test

The HW Model Release Documentation should define a list of recommended tests that the integrator should execute to validate the Caliptra RTL in the SOC environment.
Those tests should be delivered as part of the release collateral archive

Fabrizio, please assign to steph-morton when done. Can you provide this by 9/8? Thanks

Sorry, I realize there is a PR merged. Close the issue? Or more work needed?

@andreslagarcavilla, the merged PR that was referenced above does not address this issue. A few of us at AMD have started creating this test document this week, but it will not be done by 9/8. We intend to bring the framework to present to the larger WG this Friday, and hopefully get some owners assigned to help build out the details collaberatively.


Event automation fuzzy matches on data

This PR supersedes #401 and makes event automation rules more flexible. Now given event data is used as a filter, if all given event data is present in the fired event, the automation will fire.
CC @maddox

👍👍👍

On Sep 19, 2015, at 11:29 AM, Paulus Schoutsen<EMAIL_ADDRESS>wrote:
This PR supersedes #401 and makes event automation rules more flexible. Now given event data is used as a filter, if all given event data is present in the fired event, the automation will fire.
You can view, comment on, or merge this pull request online at:
https://github.com/balloob/home-assistant/pull/405
Commit Summary
Event automation fuzzy matches on data
File Changes
M homeassistant/components/automation/event.py (5)
M tests/components/automation/test_event.py (3)
Patch Links:
https://github.com/balloob/home-assistant/pull/405.patch
https://github.com/balloob/home-assistant/pull/405.diff
—
Reply to this email directly or view it on GitHub.

Hmm. My automation still isn't being kicked off with this new change.
Automation
automation 9:
  alias: When the kitchen tv is turned off notify about it
  trigger:
    - platform: event
      event_type: 'call_service'
      event_data: {'service': 'turn_off', 'entity_id': 'switch.kitchen_tv'}
  action:
    service: notify.jon
    data: {"message":"The tv was turned off."}

Log
15-09-19 15:21:46 INFO (Thread-46) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homeassistant, service=turn_off, entity_id=switch.kitchen_tv, service_call_id=4480001696-18>

@maddox Not 100% sure, but if I understand the change and yaml parser correctly this should work.
automation 9:
  alias: When the kitchen tv is turned off notify about it
  trigger:
    - platform: event
      event_type: 'call_service'
      event_data:
        service: 'turn_off'
        entity_id: 'switch.kitchen_tv'
  action:
    service: notify.jon
    data: {"message":"The tv was turned off."}

That did it! Thanks!


Meeting notes from 09/21-09/25/2020

Notes for the latest TSC meeting and config working group. please suggest edits if I misheard or missed anything.
Signed-off-by: Michael Dolan<EMAIL_ADDRESS>

Approved the TSC meeting minutes.

As usual this is a notice that we will merge this on Tuesday, if there are no more comments on the pull request. But I would rather prefer to have someone present at the Config meeting approving the pull request.


Edited Duplicate content

Duplicate content

@absheik : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Ingress Gateway returns 503 errors when I down scale a service with a port which does not follow a naming convention

Bug description
Ingress Gateway returns 503 errors in a moment of downscaling a service with a port that does not follow a naming convention (e.g. foo-http).
[ ] Docs
[ ] Installation
[ X ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Steps to reproduce the bug

Install Istio Demo profile and Bookinfo application as described on Getting Started page

istioctl install --set profile=demo -y
kubectl label namespace default istio-injection=enabled
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml

Upscale productpage-v1 deployment

date; kubectl scale --replicas=2 deployment productpage-v1; date;

Change the port name for productpage Service

kubectl apply -f - <<EOF
apiVersion: v1
kind: Service
metadata:
  name: productpage
  labels:
    app: productpage
    service: productpage
spec:
  ports:
  - port: 9080
    name: foo-http
  selector:
    app: productpage
EOF

Find an IP and port which can be used for accessing. For kind I used the following. A cluster name is istio-demo-test
WORKER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' istio-demo-test-worker); echo $WORKER_IP
INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}'); echo $INGRESS_PORT
echo http://$WORKER_IP:$INGRESS_PORT/productpage

Create a constant load of 30 parallel threads. I did it with my custom Python script, which shows every second amount of requests splited by response code.

#!/usr/bin/python

import threading
import urllib.request
from datetime import datetime
from urllib.error import HTTPError

secondsDict = {}
secondsDictLock = threading.RLock()

url = "http://<IP_ADDRESS>:31485/productpage"
hdr = {}
N = 30

class RequestThread (threading.Thread):
    def __init__(self, name):
        threading.Thread.__init__(self)
        self.name = name

    def run(self):
        print("Running thread: " + self.name)
        self.print_time()

    def print_time(self):
        while True:
            begin_datetime = datetime.now()
            begin_time = int(datetime.timestamp(begin_datetime))

            with secondsDictLock:
                if begin_time not in secondsDict:
                    secondsDict[begin_time] = {"sent": 0, "received": 0, "printed": 0, "codes_counters": {}}

                secondsDict[begin_time]["sent"] += 1

                if begin_time-1 in secondsDict and secondsDict[begin_time-1]["printed"] != 1 \
                        and secondsDict[begin_time-1]["sent"] == secondsDict[begin_time-1]["received"]:

                    print(datetime.fromtimestamp(begin_time-1).strftime("%H:%M:%S"), secondsDict[begin_time-1]["codes_counters"])
                    secondsDict[begin_time-1]["printed"] = 1

            try:
                req = urllib.request.Request(url, headers=hdr)
                resp = urllib.request.urlopen(req)

                with secondsDictLock:
                    if resp.code not in secondsDict[begin_time]["codes_counters"]:
                        secondsDict[begin_time]["codes_counters"][resp.code] = 0
                    secondsDict[begin_time]["codes_counters"][resp.code] += 1

                    secondsDict[begin_time]["received"] += 1
            except HTTPError as err:
                with secondsDictLock:
                    if err.code not in secondsDict[begin_time]["codes_counters"]:
                        secondsDict[begin_time]["codes_counters"][err.code] = 0
                    secondsDict[begin_time]["codes_counters"][err.code] += 1

                    secondsDict[begin_time]["received"] += 1

                    print(datetime.fromtimestamp(begin_time).strftime("%H:%M:%S"), err.code)

for i in range(0, N):
    thread1 = RequestThread("Thread-" + str(i))
    thread1.start()

Downscale the service and fetch debug logs. I did it with the following commands

IGW1_POD=$(kubectl -n istio-system get pods --no-headers -o custom-columns=":metadata.name" --selector=app=istio-ingressgateway | head -n 1); echo IGW1_POD $IGW1_POD;
istioctl proxy-config -n istio-system log $IGW1_POD --level trace ;
date; kubectl scale --replicas=1 deployment productpage-v1; date; sleep 3;
istioctl proxy-config -n istio-system log $IGW1_POD --level info ;
kubectl -n istio-system logs $IGW1_POD -c istio-proxy --since 60s > $IGW1_POD.log;

As a result, my script shows that there are several 503 errors approximately equals to the number of parallel threads in the next second after downscaling.
In logs, I see the following
2021-05-25T12:33:45.187197Z	debug	envoy router	[C9626][S3883408614724272782] upstream reset: reset reason: connection termination, transport failure reason:
2021-05-25T12:33:45.187276Z	debug	envoy http	[C9626][S3883408614724272782] Sending local reply with details upstream_reset_before_response_started{connection termination}
2021-05-25T12:33:45.187544Z	debug	envoy http	[C9626][S3883408614724272782] closing connection due to connection close header
2021-05-25T12:33:45.187596Z	debug	envoy http	[C9626][S3883408614724272782] encoding headers via codec (end_stream=false):
':status', '503'
'content-length', '95'
'content-type', 'text/plain'
'date', 'Tue, 25 May 2021 12:33:44 GMT'
'server', 'istio-envoy'
'connection', 'close'

Expected behavior
Ingress Gateway should perform retries and do not return 503 errors.
Although, I was aware of a message that returned by istioctl analyze
Info [IST0118] (Service productpage.default) Port name foo-http (port: 9080, targetPort: 9080) doesn't follow the naming convention of Istio port.

I did not pay attention to it as it has just Info level and routing/networking, in general, worked as expected.
Possibly there is some Envoy misconfiguration, which prevents performing retries? In VirtualService we define an HTTP route, so I am unsure why port naming convention affects the system here.
If it is expected behavior, then the IST0118 message should be changed to Error, at least.
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
Istio
client version: 1.10.0
control plane version: 1.10.0
data plane version: 1.10.0 (8 proxies)

Kubernetes
Client Version: v1.19.7
Server Version: v1.19.7

How was Istio installed?
I installed it with the help of istioctl. I described it in the first reproducing step.
Environment where the bug was observed (cloud vendor, OS, etc)
I reproduced it locally with the help of the kind tool. Initially, I noticed this behavior on our EKS infrastructure.
Attaching the tarball generated by istioctl bug-report bug-report.tar.gz

Do you also see the same behavior if you do follow the naming conventions?

@howardjohn Hello John,
No, I don't. I do not see 503 errors at the downscaling moment when I follow the naming conventions.


WIP, testing, debugging: Debugging kapi github CI

[ ] Have you provided a meaningful PR description?
[ ] Have you added a test, reproducer or referred to an issue with a reproducer?
[ ] Have you tested your changes locally for CPU and GPU devices?
[ ] Have you made sure that new changes do not introduce compiler warnings?
[ ] If this PR is a work in progress, are you filing the PR as a draft?

Issue was, most likely, related to #1308


fix(ingest/snowflake): exclude snowflake excluded tags

Snowflake tags weren't excluding properly when allow/deny was used in the pipeline. Changed the code to properly exclude them + adding tests
Checklist

[x] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[x] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@coderabbitai summary


CSP + .kint   d(foo)

When I am trying to print some data using d(foo) and I've got CSP enabled in the same time then there is no css loaded cuz of CSP rules:
I guess this is related to .kint
Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: void 0===window.kintRich&&(window.kintRi.... index:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“style-src”). Source: .kint-rich{font-size:13px;overflow-x:aut.... index:3

Logs from FF console.

Nothing we can do here. Kint's a third-party library so we can't change the way it outputs stuff.
Personally, I recommend not using CSP in development, except to run some tests to make sure it's working correctly. Otherwise - it causes issues like this. :)


There's a TODO with a link to a page that no longer exists.

It's the link on this line:
https://github.com/libgdx/gdx-ai/blob/1.8.2/tests/src/com/badlogic/gdx/ai/tests/steer/box2d/Box2dSteeringEntity.java#L202

Here is a copy if you are interested: http://web.archive.org/web/20180302115404/http://www.bulletphysics.org/mediawiki-1.5.8/index.php/Simulation_Tick_Callbacks

Thank you.
It looks like that link is referencing Bullet Physics, not Box2D. So that TODO should probably just be deleted. I wonder if that's even an issue with Box2D?


finish adding ref value met_typical_tasks

Btw, I m not sure if
import {met_typical_tasks} from "./src/utilities/utilities.js"; //The path to utilities.js
is right hahh.

Btw, I m not sure if import {met_typical_tasks} from "./src/utilities/utilities.js"; //The path to utilities.js is the most appropriate hahh.

maybe do
import { met_typical_tasks } from "jsthermalcomfort/utilities";


add 'Approve' button to submitted evidence items so that admins can approve from the frontend

Duplicate of #196


could I use iter to control learning process rather than epoch?

I want to control the learning process more accurately, such as increasing or decreasing the learning rate within an epoch. Is there a parameter that can directly control the iteration instead of epoch? like warmup_iters in warmup processing. Thanks!

Interesting at this question too!

There is an argument by_epoch that determines the learning rate adjustment. If set to False, the learn rate will be updated by iteration.

wow! Thank you for your answer! I find it in mmcv. Time to read mmcv codes!


Add backers and sponsors from Open Collective

This is for your open collective backers and sponsors to appear directly on your README.
see how it'll look here
More info
Also add badges on top.

Thanks @piamancini !

hey guys, I noticed you removed the pixel links from your reamde, that's why the backers and you have not showing up. If this is a conscious decision you should state that in your tiers. In general, backers and sponsors expect to find their avatars/logos on the project's readme.
cheers


Unable to edit a skill manifest

Describe the bug
Select to edit a skill manifest, but cannot edit the manifest.
R11 bugbash electron / Windows
To Reproduce
Steps to reproduce the behavior:

Select the hamburger menu of a skill bot
Choose Create/edit skill manifest
Attempted to edit the skill manifest file but cannot

Screenshots

Additional context

@zxyanliu this modal looks like hook up with Show skill manifest from property editor. Create/edit skill manifest works at my side (latest main)


How to add the keyboard

Hi!
Can't figure out how to add the keyboard (which is below the message input field) to the menu template?

Telegram has two different keyboards: InlineKeyboardMarkup and ReplyKeyboardMarkup.
The custom keyboard below the input field is the ReplyKeyboardMarkup and only acts as a "send this text" on click. The keyboard this library uses is the InlineKeyboardMarkup which has multiple advantages over the ReplyKeyboardMarkup. For example the Button Text and data do not have to be the same. This way you can translate your bot without additional logic how to handle the button clicks. Also your logic can be stateless which is way less error prone and easier to handle when resting the application.
So in short: This library wasnt made for the ReplyKeyboardMarkup as it seeks statelessness and easy ways to translate the menus which the ReplyKeyboardMarkup simply does not offer.

I'll just close this due to inactivity. If you have any questions feel free to ask ahead!


failed: Error during WebSocket handshake: Unexpected response code: 503

WebSocket connection to 'ws://localhost:3001/browser-sync/socket.io/?EIO=3&transport=websocket&sid=3VX8pvyMtE4G8qRiAAAA' failed: Error during WebSocket handshake: Unexpected response code: 503
webpackconfig:
new BrowserSyncPlugin({
open: false,
host: 'localhost',
proxy: 'http://localhost:7001/',
files: ['app/**'],
port: 8088,
reloadDebounce: 1000
},
{
reload: false
})

pls,tell me what is wrong..?

hello,
to be honest, i have no idea. please, make sure you're doing things according to provided documentation and that the issue is not in related configuration/setup by setting things up afresh.
or close it, if fit is not an issue anynore.
regards


Changes to abstract compilation services from C# invoker

Summary of changes
The work in this PR is primarily code cleanup and refactoring to abstract the compilation logic (introducing an ICompilationService and related interfaces) from the invoker, where that C# specific logic was previously contained.
This resolves #218 , provides an easier/better model to plug other .NET languages in and supports some of the changes we're currently working on for the invoker updates.

@dsyme, these are the changes I've shared with you. I tried to incorporate things you guys needed where there were clear gaps, but please let me know if you feel additional changes are required or have any other concerns.

This looks good.  If you merge it I can reconcile it with the F# changes

:ship:

@dsyme this has been merged into dev

Should I retarget this PR to dev?

Yes, our default branch is now dev. master is now our release branch. Sorry if this transition causes you troubles :)

np, will do


When deleting, helm can say non-existent resources are kept

These resources were kept due to the resource policy:
[Secret] my-secret-user

If an installation were aborted, or a problem occurred and my-secret-user was not actually created, this warning would be inaccurate.

labelling this as a starter bug. This should be relatively simple to fix.

Dibs, i'd like to work on this one if anyone else is already with it


[4.0] [iOS] Swift runtime support for iOS Plugins

Same as #49828 for master branch

Adds a use_swift_runtime key to iOS Plugin configuration in [config] section.
This should allow to use Swift-based plugins without using custom export template or manually changing exported project. This also allows to use Swift runtime only when it's required by libraries/frameworks.
Fixes https://github.com/godotengine/godot-proposals/issues/2895
Related issue https://github.com/godotengine/godot/pull/46683

Thanks!


SUN RGB-D code

Cloud you share code for SUNRGBD dataset?

me too, Cloud you please share code for SUNRGBD dataset?

Hi @dmsqlchoi @CrazySnailer
Did you get the code for SUN RGBD dataset ?


Added phpstan and bumped min versions of dependencies

Version bumping should have probably been done in a separate PR, but it was more convenient to do it now.
Some dependencies that are not always mandatory have been moved to suggest.
Some dependencies have been bumped to their LTS or fixed minimum version.
Return types have been added so this means BC breaks.
PHPStan is on level 5

@cezarystepkowski i don't think it's worth it to go to higher levels in PHPstan, but they would not be so difficult to reach

@dragosprotung Great job, thanks! Level 5 of PHPstan is enough in my opinion.

@cezarystepkowski any chance you can tag a new version (0.8 as it contains BC breaks) ? Is there anything we should change now that breaks BC ? If not next step is to bring it to fully Symfony 4 compatibility

@dragosprotung new version tagged.  No obstacles for starting with Symfony 4 compatibility. Do you have any idea how much work it would be? I didn't really look into what has to be done yet.

@cezarystepkowski I will fist try to update it using the alpha version of liip bundle and integrate it into a simple Symfony flex project and then create a PR for it. Might take some time

@dragosprotung sounds good.
As of Symfony 4.1, there is a new TestContainer that allows fetching private services within tests but it's not backported to 3.4 and 4.0 so probably we cannot use it from the beginning, but might be worth taking a look into it.


Locks are not working

After adding lock Alexa says, that "server is not responding". May be I have done something wrong, but can't also find any manual.

From the docs:

For Lock device support, both the SetLockState and GetLockState can be answered with a msg.extra.lockState of either "LOCKED" or "UNLOCKED" as follows:
msg.extra = {
    lockState: "LOCKED"
};
msg.paylaod = true;
return msg;

You can not use "Auto Acknowledge" with lock devices, you need to build a message as described in the docs and send it via a response node.

I have readed this, but, i Assume, this should be done after sending command to the lock to open or close it. Bit i have got "Server not responding" immediately after discovering new devices in Alexa app. I try to redicover it, but nothing helps.

You are going to have to supply a LOT more detail about exactly what you have done.

So. I have added one device here https://alexa-node-red.bm.hardill.me.uk/devices with "lock/unlock" ability.
After that I have discovered new devices with Alexa app and Alexa founded my lock.
And directly after that on this device I got error message in Alexa app "Server does not respond". But only within this lock. All other devices are working properly.

No, still not enough detail.
Have you added any nodes to the node-red flow yet?
Did you ask Alexa to lock the device?

No, I haven't ask alexa to do something with lock.
Yes, I have added 2 nodes - one is Alexa Home with selected lock and one is response node with injected data regarding docs. but still in alexa app "Server not responding" and "Problem with lock, please check your lock"

The Alexa-Response node needs to be connected to the Alexa-input node (usually with some logic between).
You can NOT just directly inject things into the response node, it has to be triggered by the message that came from the  Alexa-input node.

Here the switch node forks the path based on the request:

first path is for SetLockStateRequest
second is for GetLockStateRequest

Of course they are connected. After 3-4 times of deployment it stops showing me "server not responding" error. But, have no idea why, now it has state "Lock is locked. Alexa can not open this smart device." Where I can find all states, which I can give to response node?

They are in the docs I pointed to in the first answer.
You can no unlock the device via voice as it is not secure

Understood. Anyway, thank you for your help! You are awesome!


Duplicated instances imported by Alexa Media Player

Alexa Media Player integration allows to add devices connected via Echo devices. I was mainly using that to get the sensors from Echo devices. It has a way to detect if the devices were added via skill (this is how the core smart_home alexa integration is managed in HomeAssistant), the logic can be found here:
https://github.com/alandtse/alexa_media_player/blob/master/custom_components/alexa_media/alexa_entity.py
alexa_media_player doesn't import devices that were added to Alexa via the integration. Can you please @t0bst4r sync up with them in order to find a solution to the Issue? I opened an issue to them:
https://github.com/alandtse/alexa_media_player/issues/2709
Here an example of the Logs from alexa_media_player for a swich device:
{
    "applianceId": "AAA_SonarCloudService_<void>",
    "endpointTypeId": "",
    "driverIdentity": {
        "namespace": "AAA",
        "identifier": "SonarCloudService"
    },
    "manufacturerName": "TestVendor",
    "friendlyDescription": "TestVendor smart device",
    "modelName": "",
    "deviceType": "",
    "version": "0",
    "friendlyName": "Camara",
    "friendlyNameModifiedAt":<PHONE_NUMBER>197,
    "capabilitiesModifiedAt":<PHONE_NUMBER>197,
    "ipAddress": "",
    "port": "",
    "entityId": "<void>",
    "applianceNetworkState": {
        "reachability": "REACHABLE",
        "lastSeenAt":<PHONE_NUMBER>179,
        "createdAt":<PHONE_NUMBER>197,
        "lastSeenDiscoverySessionId": {
            "value": "<void>"
        }
    },
    "tags": {
        "tagNameToValueSetMap": {}
    },
    "additionalApplianceDetails": {
        "additionalApplianceDetails": {}
    },
    "firmwareVersion": "0",
    "actions": [],
    "capabilities": [
        {
            "capabilityType": "AVSInterfaceCapability",
            "type": "AlexaInterface",
            "version": "3",
            "properties": {
                "supported": [
                    {
                        "name": "powerState"
                    }
                ],
                "proactivelyReported": true,
                "retrievable": true,
                "readOnly": false
            },
            "interfaceName": "Alexa.PowerController"
        },
        {
            "capabilityType": "AVSInterfaceCapability",
            "type": "AlexaInterface",
            "version": "3",
            "properties": {
                "supported": [
                    {
                        "name": "connectivity"
                    }
                ],
                "proactivelyReported": true,
                "retrievable": true,
                "readOnly": false
            },
            "interfaceName": "Alexa.EndpointHealth"
        }
    ],
    "applianceTypes": [
        "SMARTPLUG"
    ],
    "isEnabled": true,
    "aliases": [],
    "connectedVia": "Echo Comedor",
    "alexaDeviceIdentifierList": [],
    "applianceKey": "<void>",
    "identifiers": {},
    "applianceDriverIdentity": {
        "namespace": "AAA",
        "identifier": "SonarCloudService"
    },
    "ipaddress": "",
    "applianceLambdaControlled": true,
    "mergedApplianceIds": [
        "AAA_SonarCloudService_<void>"
    ]
}

I don’t think we can do anything about it in the hub. I will check why the manufacturer is "TestVendor" instead of "t0bst4r", but that‘s all I can do here…
On the other hand, I don’t think there is a clean automated way for alexa-media-player to decide which devices to exclude or include.
To solve this, there needs to be a way to tell alexa-media-player which ones to exclude.
I am closing this issue to keep track in the other issue (https://github.com/alandtse/alexa_media_player/issues/2709)

@t0bst4r FYI, fix: home-assistant-matter-hub duplicated entities #2730 with home-assistant-matter-hub 3.0.0-alpha.52 is now preventing duplication of entities by Alexa Media Player.
Thanks for changing/correcting manufacturerName from TestVendor to t0bst4r!


How to re-run test script of nmtscore

Hi @jvamvas
I'm doing a research on cross-lingual plagiarism identification and found your tool is so good. I tried to run your test script (with steps that you pointed out in README.md).

When run the script with "prism", I ran into this error

Then, I modified the model from prism to small100 and ran the script again, but it took me more than 12 hours waiting and nothing happen.
Could you tell me the exactly way to re-run the script and which format of dataset should I choose if I want to run test on cross-lingual plagiarism identification between English and Vietnamese?
Thanks,

Hi @longmai-pinbus, the script is for reproducing Table 2 in the paper. Yes, it takes some time and memory.
To evaluate cross-lingual plagiarism identification between English and Vietnamese I would recommend to create your own evaluation script.
Maybe along the lines of:
from nmtscore import NMTScorer

scorer = NMTScorer()
num_correct = 0
for sentence_en, sentence_vi, gold_label in my_dataset:
    similarity_score = scorer.score(sentence_en, sentence_vi)
    num_correct += (similarity_score > my_threshold) == gold_label
accuracy = num_correct / len(my_dataset)

Closing this, feel free to reopen


Toggle Behavior for Single Radio Button

It would be very effective if the RadioForm component toggles selection when there is just one radio button (like a check box).

I agree. This really needs to be an added feature.


Can't deploy using Github Actions on Turborepo

Describe the bug
Can't deploy with Github Actions

Reproduction repo
_
To reproduce
use the Github Action provided by the docs
Additional information
It's a turbo repo

Hi there! I understand you're having trouble deploying using Github Actions with trigger.dev in your Turborepo setup. Let me help you resolve this issue.
Looking at the error and the latest documentation, there are a few things we need to address:

First, make sure you're following the latest deployment guidelines for Github Actions. You'll need a proper workflow file that looks something like this:

name: Deploy Trigger.dev
on:
  push:
    branches: [main]
    paths:
      - 'trigger/**'

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 18
      - name: Deploy Trigger.dev
        env:
          TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
        run: npx trigger.dev@latest deploy

Since you're running into an issue with esbuild-decorators, you should:

Add esbuild-decorators to your dependencies if not already present
Configure it properly in your build setup

For better version management, I recommend adding the deploy command to your package.json:

{
  "scripts": {
    "deploy:trigger": "npx trigger.dev@latest deploy",
    "deploy:trigger:staging": "npx trigger.dev@latest deploy --env staging"
  }
}

This way, your Github Actions workflow will use the version specified in your package.json.
The error you're seeing with esbuild-decorators suggests there might be a compatibility issue with the beta version you're using. I recommend:

Upgrading to the latest stable version of trigger.dev
Ensuring all your dependencies are properly installed before deployment
Adding a build step before deployment if needed

If you continue to experience issues, please share your complete:

trigger.config.ts file
Github Actions workflow file
package.json dependencies

This will help us provide more specific guidance for your setup.
References:

Github Actions setup documentation
Version pinning guidelines

Let me know if you need any clarification or run into other issues!


doc: added first version of workload docs

Signed-off-by: Thomas Schuetz<EMAIL_ADDRESS>

Workloads are representing Kubernetes primitives as [Deployments](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/), [StatefulSets](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset) and [DaemonSets](https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/). Workload resources are used to track the state of your deployments and to trigger pre- and post-deployment tasks and evaluations.

In other words, workloads correlate directly to Deployments, StatefulSets and DaemonSets. 2 Deployments == 2 Workloads ??
If one of these annotations exist, the Keptn Lifecycle Toolkit will create a workload resource for it.

Add the word "automatically"? If one of these annotations existm the Lifecycle Toolkit [capitalised?] will automatically create a Workload` resource for it.
When a workload is detected, the Keptn Lifecycle Toolkit will create a KeptnWorkload resource fort it

Small typo: fort > for
KeptnWorkload should be backticked: KeptnWorkload

General point: can it be used less in the copy - be explicit to make it clearer what it refers to.
Summary
What I understood from this page:

A KeptnWorkload is an annotated Deployment, StatefulSet or DaemonSet
A KeptnWorkload is created by adding either app.kubernetes.io/name OR keptn.sh/workload to the relevant k8s primitives
app.kubernetes.io/part-of or keptn.sh/app can optionally be used to signal that this KeptnWorkload is part of a KeptnApp.
Note: This doesn't say anything about the fact that all labelled primitives (with either part-of or keptn.sh/app) MUST be listed in the KeptnAppotherwise deployments will be blocked (see [here](https://github.com/keptn/lifecycle-toolkit/issues/258#issuecomment-1306575769)). This will be a common source of tickets as a lot of helm charts come pre-packaged withpart-ofbut since theKeptnApp` doesn't exist, the deployments will be blocked as pending.
app.kubernetes.io/version or keptn.sh/version can optionally be given
keptn.sh/pre-deployment-tasks, keptn.sh/post-deployment-tasks, keptn.sh/pre-deployment-evaluations and keptn.sh/post-deployment-evaluations are all technically optional (but since these are hte key point of the KLT - it's assumed the user will want to use at least 1 or more of them.
KeptnWorkloadInstances are the "object" to KeptnWorkloads class. It is not explained how / why a new KeptnWorkloadInstance is created (what signifies uniqueness to create a new instance of a KeptnWorkloadInstance?


[FEATURE] The "intelligent" computer player

Description
You said that the feature of this game includes "Intelligent computer player (optional)".
But when I reviewed the source code, I found that the computer player would move completely RANDOMLY.
https://github.com/kunalshah017/Tic-Tac-Toe/blob/fe07a5af0a2783b5fdfab31114a05ebeecaddfd7/main.cpp#L102
...
void ChooseRandom()
  {
      static std::random_device rd;
      static std::mt19937 gen(rd());
      std::uniform_int_distribution<int> distribution(1, 9);
      comp = distribution(gen);
  }

  void ComputerMove()
  {
      ChooseRandom();
      if (comp >= 1 && comp <= 9)
      {
          if (chars[comp] == '0' + comp)  // int -> char  e.g. '0' + 5 = '5'
          {
              chars[comp] = 'O';
          }
          else
          {
              ComputerMove();
          }
      }
      else
      {
          ComputerMove();
      }
  }
...

As a result, the computer player wins at a dramaticly low possibility.
So I suggest to give the computer player some intelligence.
Screenshots
No response
Additional information
No response
👀 Have you checked if this issue has been raised before?

[X] I checked and didn't find similar issue

Are you willing to work on this issue
Yes I am willing to submit a PR!

Reference: https://www.geeksforgeeks.org/finding-optimal-move-in-tic-tac-toe-using-minimax-algorithm-in-game-theory/

Yes this is one good issue you have come up with. this will make the possibilty of wining somewhat better
As you have choosed to submit a PR I'll assign it to you.
Thank You

Reference: https://www.geeksforgeeks.org/finding-optimal-move-in-tic-tac-toe-using-minimax-algorithm-in-game-theory/
I'll try to implement the algorithm in this repo when I'm free. If you want to write the code yourself you can also assign yourself.

Thanks but you can surely come up with a PR when you are free, I'll also go through the algorithm and try to implement it differently.