[#155783706] Deploy paas-admin as part of the PaaS deployment

https://www.pivotaltracker.com/story/show/155783706
What?
We want to deploy the paas-admin application for the tenants.
We consider that the admin tool is part of every platform, so we decided to add the deployment as part of the paas-cf deployment pipeline.
The deployment requires:

A new UAA client to integrate with UAA oauth for tenants.
Deploy the app from master
Inject secrets from notify.

We follow the same pattern than other secrets, although I personally consider it extremely   overcomplicated and difficult to maintain

How to review?

Code review
Go to http://admin.${DEPLOY_ENV}.dev.cloudpipeline.digital/, try to login and use the app.
try to invite a user. You shall receive notifications.

Related
https://github.com/alphagov/paas-credentials/pull/110
Who?
Anyone but @keymon

A paas-admin client had already been added a while ago: https://github.com/alphagov/paas-cf/commit/f4f90adf7df3afdf71ce0afee077404c4d5f79d9
This pull request should be changed to update the client in the manifest properties and then pull the secret from cf-secrets.yml.

A paas-admin client had already been added a while ago: f4f90ad

I was not aware of that one. it needs update anyway, so I am going to delete it.


Adding namespace metadata to resources

Fixes #1438

[ ] Chart version not bumped (the versions are all bumped and released at the same time)
[ ] README.md updated with any new values or changes
[ ] Updated template tests in ${CHART}/tests/*.py
[ ] Updated integration tests in ${CHART}/examples/*/test/goss.yaml

@barrymars Do you intend to continue working on this issue?

@krystian-kulgawczuk what else needs doing to it?

@barrymars Nevermind. I thought that you abandoned this issue as the contribution agreement was not signed. Let's wait for someone from the organization.

sorry about that, I had done it earlier but it didn't register, so just did it again

No problems :) Either way, we'll wait a little while for it to be looked at by someone who can merge it.

jenkins test this please


MacVim - Ale stopped working, still works in CLI

I installed Ale with NeoBundle, and it was working for a bit there.  Now it does not work at all (errors do not show up in the gutter).
I am using the same config and ale works in the CLI version of vim.
Is there anything obvious to check here?
Version information:
:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 25 2017 16:44:23)
MacOS X (unix) version
Included patches: 1-237
Compiled by<EMAIL_ADDRESS>Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +channel         +comments        +diff            +extra_search    +fork()          +jumplist        +listcmds        +mouseshape      +mouse_urxvt     +odbeditor       +profile         +scrollbind      +tag_binary      +textobjects     +virtualedit     +windows         -xterm_clipboard
+arabic          +cindent         +conceal         +digraphs        +farsi           +fullscreen      +keymap          +localmap        +mouse_dec       +mouse_xterm     +packages        +python/dyn      +signs           +tag_old_static  +timers          +visual          +writebackup     -xterm_save
+autocmd         +clientserver    +cryptv          +dnd             +file_in_path    -gettext         +lambda          +lua/dyn         -mouse_gpm       +multi_byte      +path_extra      +python3/dyn     +smartindent     -tag_any_white   +title           +visualextra     -X11
+balloon_eval    +clipboard       +cscope          -ebcdic          +find_in_path    -hangul_input    +langmap         +menu            -mouse_jsbterm   +multi_lang      +perl/dyn        +quickfix        +startuptime     -tcl             +toolbar         +viminfo         -xfontset
+browse          +cmdline_compl   +cursorbind      +emacs_tags      +float           +iconv           +libcall         +mksession       +mouse_netterm   -mzscheme        +persistent_undo +reltime         +statusline      +termguicolors   +transparency    +vreplace        +xim
++builtin_terms  +cmdline_hist    +cursorshape     +eval            +folding         +insert_expand   +linebreak       +modify_fname    +mouse_sgr       +netbeans_intg   +postscript      +rightleft       -sun_workshop    +terminfo        +user_commands   +wildignore      -xpm
+byte_offset     +cmdline_info    +dialog_con_gui  +ex_extra        -footer          +job             +lispindent      +mouse           -mouse_sysmouse  +num64           +printer         +ruby/dyn        +syntax          +termresponse    +vertsplit       +wildmenu        -xsmp
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib  -L. -fstack-protector -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib   -L/usr/local/lib -o Vim -framework Cocoa -f
ramework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE

Also, the errors are not showing up in the location list.  Is there any way to debug this or see any errors that might be occurring?

Which filetype are you testing with? Python files, etc.?

It is indeed Python

Are you inside a virtualenv while in command line? If yes, it is possible that pylint is only installed for the virtualenv and not globally.

I am not currently using a virtualenv.
It seems to be related to python3.  I've got one project that is python 2, and Ale works there.  If I open python3 files in another project, Ale does not work there.
:ALEInfo returns the following while editing the python3 file:

Hmm, what's your flake8 version? It might be the newer flake8 option messing things up again.
I think that linter should be modified to only use that flag if the flake8 version is new enough. Even if that's not your issue, I'll try and fix that soon enough.

This might be unrelated, but I noticed that other plugins which are using the gutter (for instance vim-signify) stopped working as well, so this might be an issue with MacVim itself.

I just pushed some more complex code for the flake8 linter now so it will support old flake8 versions again. Here is how it works.

A command chain is used, the first command checks if the version is stored in a cache for the given executable. If the version is found in the cache, then the command is skipped. If the version is not found in the cache, the executable will be run with --version. The executable name is used as the key for the cache.
The output from the previous command will be then used to determine the flake8 command to run to check for errors. The cache for the versions will be checked again. If the version isn't in the cache, the version will be parsed from the output from the previous command.
If the version number, whether it was taken from the cache or not, is >= 3.0.0, then the --stdin-display-name flag will be included, otherwise it won't.

This should hopefully make the linter work better for everyone. Older versions should run again, and newer versions can automatically take advantage of the --stdin-display-name flag. For the vast majority of users, the --version command should only be run once per Vim session.

I updated, but unfortunately it hasn't helped.
In MacVim, if I type :!which flake8, it shows /usr/local/bin/flake8, (in both the python2 and python3 projects) from brew.  The version is as follows:
[~]$ /usr/local/bin/flake8 --version
3.2.1 (pyflakes: 1.3.0, mccabe: 0.5.2, pycodestyle: 2.2.0) CPython 2.7.10 on Darwin

As a note, other gutter programs do still work in both projects.  vim-gitgutter remains visible.

In my case, ale started working after this update. Can't say the same for vim-gitgutter and others.

It looks like I did fix the one issue. I don't know what's happen with MacVim at the moment.
I will note that there has been some trouble getting MacVim to work with the Vim 8 jobs feature at all in the past. See: #39. Nobody ever figured out how to fix that.

@synic Have recent changes fixed your issues here?

@w0rp unfortunately no.  Thanks for sticking with it, though!

Have you tried checking the version of flake8 used for Vim in a terminal and Vim as a GUI? Maybe different paths are being used in each case. Do you see any error messages at all in MacVim?
I have seen some issues with MacVim in the past where Vim 8 jobs just don't seem to work at all.

:!flake8 --version and :!which flake8 give the same responses in the terminal and in MacVim.
There are no error messages, and I don't see anything relevant in :messages.  Is there anywhere else I should look?

There is something else you could try. Could you try applying the patch I mentioned here? https://github.com/w0rp/ale/issues/283#issuecomment-278123151
I'm curious to see if some versions of MacVim will work better if the Vim 8 feature for sending a buffer directly to a job is replaced instead with manually sending the buffer through the channel commands.

No go (the patch doesn't apply cleanly to current master, but I think I edited it in correctly).

Hmm. Is there some previous revision of the plugin where it works for you? If you can get it working consistently with an old version, then we could look at the diff and find out what broke it for you.

I don't think it has ever worked, I think the title of this issue is misleading.
It took me a bit to figure out that it wasn't that it stopped working, it just never worked, it just appeared that it stopped because it still works in the terminal, and still works in the python2 project.
I've tried it on another python3 project here (an opensource one if you want to try it) with the same result:  https://github.com/enderlabs/frf

Hmm, sounds like a MacVim issue then. Some users have reported some trouble in getting the plugin to work with MacVim at all.  I don't typically have access to a Mac computer myself.
I'll try and see if I can somehow find someone with access to a Mac who is willing to track down an obscure Vim plugin bug.

Well, anything I can do, let me know.  Thanks!

MacVim has been working just fine for me on both python2 and python3 projects. My vimrc is available in my dotfiles. I use a CWD based workflow and always launch both vim or mvim from the command line within the project folder.  MacVim is installed via homebrew. I checked and it works fine for me compiled with python2 support or python3 support (both at once is not supported).
I use virtualenvs for everything and generally install pylint into the virtualenv.
If there's anything I can setup locally to attempt to reproduce an error I'm happy to help.

Started doing the process of elimination on my plugins, it seems like this one is the culprit somehow: https://github.com/mhinz/vim-startify
I'm still trying to figure out if I can find out why

How are you installing MacVim and which version of python is compiled in (see :version)? As another theory I've seen pylint crash on certain files before. Can you pylint your python3 project from the command line manually?

I'm using flake8 instead of pylint.  My :version looks like this:
:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb  3 2017 16:49:50)
MacOS X (unix) version
Included patches: 1-297
Compiled by<EMAIL_ADDRESS>Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +clientserver    +cursorbind      +ex_extra        +fullscreen      +langmap         +modify_fname    +mouse_urxvt     +path_extra      +reltime         +syntax          +timers          +viminfo         -xpm
+arabic          +clipboard       +cursorshape     +extra_search    -gettext         +libcall         +mouse           +mouse_xterm     +perl/dyn        +rightleft       +tag_binary      +title           +vreplace        -xsmp
+autocmd         +cmdline_compl   +dialog_con_gui  +farsi           -hangul_input    +linebreak       +mouseshape      +multi_byte      +persistent_undo +ruby/dyn        +tag_old_static  +toolbar         +wildignore      -xterm_clipboard
+balloon_eval    +cmdline_hist    +diff            +file_in_path    +iconv           +lispindent      +mouse_dec       +multi_lang      +postscript      +scrollbind      -tag_any_white   +transparency    +wildmenu        -xterm_save
+browse          +cmdline_info    +digraphs        +find_in_path    +insert_expand   +listcmds        -mouse_gpm       -mzscheme        +printer         +signs           -tcl             +user_commands   +windows
++builtin_terms  +comments        +dnd             +float           +job             +localmap        -mouse_jsbterm   +netbeans_intg   +profile         +smartindent     +termguicolors   +vertsplit       +writebackup
+byte_offset     +conceal         -ebcdic          +folding         +jumplist        +lua/dyn         +mouse_netterm   +num64           +python/dyn      +startuptime     +terminfo        +virtualedit     -X11
+channel         +cryptv          +emacs_tags      -footer          +keymap          +menu            +mouse_sgr       +odbeditor       +python3/dyn     +statusline      +termresponse    +visual          -xfontset
+cindent         +cscope          +eval            +fork()          +lambda          +mksession       -mouse_sysmouse  +packages        +quickfix        -sun_workshop    +textobjects     +visualextra     +xim
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib  -L. -fstack-protector -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/us
r/local/opt/libksba/lib -L/usr/local/opt/openssl/lib   -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE

... so I'm not really sure there.
Incidentally, the following settings make it work for both projects:
let g:ale_python_flake8_executable = 'python3'
let g:ale_python_flake8_args = '-m flake8'

Not entirely sure why :D

Hmm, looks like a configuration issue then. Perhaps flake8 was running a different version of flake8?

I'm not totally sure.  It doesn't explain why it did work in the circumstances that it did, though.

If configuring the executable and the options fixes the issue for you, I'll consider this a configuration issue. Sometimes you need to use python -m flake8 to use the right version of flake8.


Support Ruby SDK

I truly wish you guys can have ruby-cli.

With more languages supports,rocketmq can get  larger market,
Rocket is so excellent that other languages also want it

It's a good idea.

At present, the community has no plans for ruby language and welcomed to join the community incubator to strengthen the muti language eco If you are willing to develop ruby client together.
https://github.com/apache/rocketmq-externals

The plan always comes with the needs of the community. Nowadays, I've seen some guys start talking about PHP, NodeJS, even Ruby in this issue. Let's open this request for a long while and hear the feedback from the community :-)

It is very meaningful to develop multi language client

It is very meaningful to develop multi language client , such as php

Aha, welcome to be involved in the development of rocketmq-clients.


Filter - Remove Red Eyes

OpenCV code to find Red Eyes: http://www.betasix.net/programming/opencv/opencv-2-2-python-examples/

http://www.betasix.net/opencv-2-2-python-examples/ is the updated path

great article on detecting eyes using cv - http://nashruddin.com/OpenCV_Eye_Detection

I would really like a code review on this. Lot of magic going on.
Anyway, to test this access:
http://localhost:8888/unsafe/debug/smart/filters:red-eye()/http://kimberhills.org/tech/files/2011/09/RedEye-baby.jpg
Original picture is (you guessed anyway):
http://kimberhills.org/tech/files/2011/09/RedEye-baby.jpg


Browse: Sort by score should use effective and tool

The /browse page enables people to sort by licensed and described score. That is IMO too detailed and will confuse users into thinking that the two scores in the badge are that of the described and licensed sections when in fact they are the effective and tool scores. Consumers care about the effective score, producers (should) care about the tool score.
Suggest we change these entries to be

Effective score [ascending | descending]
Tool score [ascending | descending]

and of course to the corresponding code changes.

To do that, we need to address some changes on the service, in order to do the right queries on mongoDb.
I've addressed the required work on a specific issue: https://github.com/clearlydefined/service/issues/436

Going through the implementation, looks like that filtering the list directly in the UI will not produce the expected behavior.
Since the result of the Browse page is a paginated list, we should be able only to filter the received data, and not the entire collection that the server has.
Probably we should find a more consistent way to do that on the service.

On the /browse page, all sorting and filtering must be done server-side as we are talking about the global list of definitions. So here we should be adding a query parameter and the right query construct in the service.

Reviewing this issue I think something has changed in the meantime. That is, the site now (soon) only shows one score, the effective score combined across all the dimensions (described and licensed). I'm going to update the title and description to better capture the current state and direction.

Thanks @jeffmcaffer .
Since we are going to filter for a value that actually doesn't exists on a definition, but it's computed on the client, should we think on returning that combined value from the service, something like we've done for the urls of a definition?

The answer to my last question has been addressed in the implementation of https://github.com/clearlydefined/service/pull/439
Given that, scores coming from the server will be used instead of computing those in the UI.


Can't load exchanges data, error 500

I have installed gekko 3 days ago and i still have this error, cant pull data from exchanges

hi, try
npm install
cd exchanges
npm install
use sudo if needed

Hi, thanks, i tried but this error happens everytime and download stay stuck

I resolved that error by manually doing it.
cd exchange
sudo git clone git://github.com/askmike/npm-kraken-api.git
then
sudo npm install npm-kraken-api

<EMAIL_ADDRESS>updated 1 package and audited 10831 packages in 3.995s
found 0 vulnerabilities


collect metrics about issued API requests

This is an initial stub of metrics collection via prometheus. In light of our recent experience with API rate limits this seems like an interesting start to see whether our own tool has gone wild.
Example output from /metrics:
external_dns_api_calls_total{dns_provider="google"} 5

I guess one could use a prometheus rate aggregation to keep track of the issued API calls per timeframe and then set an alert if it exceeds some amount.
We had it in the past that an error would short circuit a loop, skipping some sleep and then issue a giant number of requests. This metric could catch it.
/cc @ideahitme @mikkeloscar @szuecs Let me know what you think.
Disclamer: I have little to no experience with prometheus metrics collection.
some other useful custom metrics: https://github.com/coreos/alb-ingress-controller/blob/master/pkg/cmd/controller/metrics.go

I like the idea in general.
Some thoughts before digging into the code:

I would rename dns_provider to provider, because it's metadata (or better dimension?) of external_dns_api_calls_total metric: external_dns_api_calls_total{provider="google"}
The suffix _total in general relates to a counter and is for example an always increasing int64, but you are referring later to a rate, which should be something like _1m_rate or so. Do you want to provide both or should only the counter and everyone that creates a check should do there own rate out of the counter value?

@szuecs I think the usual way of doing it is to collect the raw counter value and then the rate is one way to view that value:
rate(http_requests_total{job="api-server"}[5m])

https://prometheus.io/docs/querying/functions/#rate()

@linki true, thanks for the pointer to the doc

superceded by https://github.com/kubernetes-incubator/external-dns/pull/188


[BUG]Failed to load Automation tasks templates, throwing error "No Task templates found in this region, please try a using a resource located in a different region where Logic Apps is available.

Library name and version
null
Describe the bug
Automation task in Azure VM throwing error "No Task templates found in this region, please try a using a resource located in a different region where Logic Apps is available."

Expected behavior

Actual behavior
In the HAR traces, We can't see any error and details of all 4 templates retrieved, but in console logs we see the below js error because of which no templates are visible in portal.
source: Ema.Client.Automation.Templates
stack: Error: Failed to fetch all templates: Failed to fetch
at new t (https://portal.azure.com/Content/Dynamic/Dv1seNw9hbMj.js:57:857)
at u (https://afd-v2.hosting.portal.azure.net/ema/Content/Dynamic/BXa_RrLZvdoM.js:7:600)
at Object.f [as logError] (https://afd-v2.hosting.portal.azure.net/ema/Content/Dynamic/BXa_RrLZvdoM.js:7:122)
at n. (https://afd-v2.hosting.portal.azure.net/ema/Content/Dynamic/yQeeTZmbhDdl.js:10:2388)
at https://portal.azure.com/Content/Dynamic/Dv1seNw9hbMj.js:17:2806
at Object.throw (https://portal.azure.com/Content/Dynamic/Dv1seNw9hbMj.js:17:2911)
at s (https://portal.azure.com/Content/Dynamic/Dv1seNw9hbMj.js:17:1690)

Reproduction Steps
We were able to repro the same , the issue is intermittent.

Environment
No response

Hi @Sonalmz.  Thank you for reaching out and we regret that you're experiencing difficulties.  What you're describing appears to be related to the Azure portal and not one of the Azure SDK packages.  Unfortunately, this repository is focused on the Azure SDK for .NET - we're unable to assist with other Azure issues.  Your best path forward would be to open an Azure support request.
I'm going to close this out;  if I've misunderstood what you're describing, please let us know in a comment and we'd be happy to assist as we're able.


upd(jellyfin-media-player-deb): 1.10.1 -> 1.11.1

The default version has been updated from bookworm to jammy to ensure compatibility with libmpv.

What should i do for pre-commit test?

Force push it and we'll see.


Improve error message when a qualified import should be relative

I had a PR validation fail because I used a fully qualified import where I should have used a relative import.  The error message in the out was as follows:
dart ./dev/bots/test.dart
SHARD=analyze
⏩ RUNNING: cd examples/hello_world; ../../bin/flutter inject-plugins
Unhandled exception:
NoSuchMethodError: The getter 'iterator' was called on null.
Receiver: null
Tried calling: iterator
#0      Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
#1      _deepSearch (file:///tmp/flutter%20sdk/dev/bots/test.dart:520:17)
#2      _deepSearch (file:///tmp/flutter%20sdk/dev/bots/test.dart:525:28)
#3      _verifyNoBadImportsInFlutter (file:///tmp/flutter%20sdk/dev/bots/test.dart:454:31)
<asynchronous suspension>
#4      _analyzeRepo (file:///tmp/flutter%20sdk/dev/bots/test.dart:100:9)
<asynchronous suspension>
#5      main (file:///tmp/flutter%20sdk/dev/bots/test.dart:56:26)
<asynchronous suspension>
#6      _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#7      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

We should have a better error message that points in the direction of the problem.
The specific import was in:
circle_avatar.dart
I initially imported material colors with full qualification:
import 'package:flutter/src/material/colors.dart';
The correct import was a relative one:
import 'colors.dart'

@Hixie would the analyzer need specific Flutter support to do that?
Or is this error from the compiler?
Is this something Flutter can fix or should this be moved to the dart-lang/sdk repo?

This is just a bug in our test.dart script.

Not sure how to verify if this issue is still in dev/bots/test.dart


gRPC Rust support

Can someone please elaborate on WHEN there is going to be an official Rust support in that library. Rust has become very popular these days and I'm wondering why do you keep postponing that?

We're aware that Rust has been getting popular and there are a couple of libraries in the Rust world.  So you can check those out and contribute if there is something to improve. gRPC team doesn't have a plan for yet.

For those who come across this issue: https://groups.google.com/g/grpc-io/c/ExbWWLaGHjI/m/TJssglLiBgAJ


Hide context menu by pressing the 'Escape' key. Added the ability to …

…display different menu items based on node. Updated jqTree library to version 1.5.1 for demo. Updated jQuery library to version 3.5.1 for demo.

Thanks for the PR!


Fixed Unexpectedly huge RAM consumption of parallel datamanager

Looks like caching images during the process construction consumes more memory than expected (at least 2x). The memory footprint looks fine when it's moved after the process starts. Can anyone explain this?

In my testing I see no difference, however this does make sense since the fork() happens in python when start() is called, which means there are 2 processes with duplicated memory. How much of a difference does this make for you and what dataset are you testing?

I used a customized dataset that contains high resolution images. The peak memory usage without the proposed modification would exceeds my PC's upper bound as shown in the first pic, and the training process was OOM killed. On the other hand, the training goes okay with the modification


Add logging into e2e framework

Description
This PR enable optionally logging to different io.Writers, by default it saves the e2e logs output to a generated directory and upload the logs as an artifact for later inspection.
Changes include

[ ] Bugfix (non-breaking change that solves an issue)
[ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
[x] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

[x] I have assigned this PR to myself
[x] I have added at least 1 reviewer
[x] I have added the relevant labels
[ ] I have updated the official documentation
[x] I have added sufficient documentation in code

Testing

[x] I have tested this code with the official test suite
[x] I have tested this code manually

Manual tests
Run in local using make test-e2e
Additional comments
This PR should be merged after https://github.com/0xPolygon/polygon-edge/pull/769

Not sure if I follow the format of the output logs. As was described in the task, each test has a name (i.e. QuorumNodesDropNodeAndSyncBack) and the format of the output directory looks like this:
./e2e-tests-<timestamp1>/QuorumNodesDropNodeAndSyncBack/node1.log
./e2e-tests-<timestamp1>/QuorumNodesDropNodeAndSyncBack/node2.log
./e2e-tests-<timestamp1>/QuorumNodesDropNodeAndSyncBack/node3.log
./e2e-tests-<timestamp1>/<test_name_2>/node3.log

Then, it is easy to organize the outputs by time (all the outputs in the same timestamp folder belong to the same execution) and by a specific test.

Not sure if I follow the format of the output logs. As was described in the task, each test has a name (i.e. QuorumNodesDropNodeAndSyncBack) and the format of the output directory looks like this:
./e2e-tests-<timestamp1>/QuorumNodesDropNodeAndSyncBack/node1.log
./e2e-tests-<timestamp1>/QuorumNodesDropNodeAndSyncBack/node2.log
./e2e-tests-<timestamp1>/QuorumNodesDropNodeAndSyncBack/node3.log
./e2e-tests-<timestamp1>/<test_name_2>/node3.log

Then, it is easy to organize the outputs by time (all the outputs in the same timestamp folder belong to the same execution) and by a specific test.

Totally right, I removed the detailed folder naming during the refactor and forgot to add it again, now it looks like:


Moving a file in folder with same-named file don't work in SilverStripe 3.2

Hi,
when I try to move a file in a folder with a same-named file it first seems to work (but without renaming the file in something like filename-2.jpg) but after clicking on the sync files button it goes back to it's original folder. Shouldn't it be renamed (f.e. filename-2.jpg) and than moved to the new folder?

This has all been rewritten in SS4 and no longer has this problem.


feat(consumers): add state consumer (statusbar integration)

Added a consumer that serves as an internal state cache, which can be consumed for use in e.g. status bars
My status bar example:

Ref: #110

Probably still needs some docs

Thanks for the review :) I'll have a look

@rcarriga anything I still need to change?

Sorry for not being quicker to respond, it's quite a large PR so I need put time aside to review.
My main concern right now, is that there's a bit too much magic or "help" going on such as the fuzzy matching or the
different return types based on different scenarios (nil if no matching adapter ID found or empty list if matched but no
positions found for example). These features are very opinionated and I'd like to avoid them if possible for now.
The core goal of providing a cached state to read from is brilliant and I'm very eager to get it in! I don't have time
to complete a full review but wanted to leave you with my current thoughts.

I think the consumer name state is awkward. I feel it would be more natural to call it like a status consumer, but we have a conflict with an existing passive consumer. state sounds weird because it feels like the internal state of a client, but what we really want to extract here is the status of a test case.

I'd disagree with this because it leaves it open for extra states in future. For example it's returning the known adapter IDs, which the run consumer does but it makes much more sense in a general "state" consumer IMO

Thanks for the reviews! I'll have a look at them.

Sorry for not being quicker to respond, it's quite a large PR so I need put time aside to review.

Of course, I understand, no problem :)

My main concern right now, is that there's a bit too much magic or "help" going on

I had deliberately created the API this way, as I could either create different functions for each small variation (e.g. get_status, get_status_all), which in my opinion unnecessarily increases the API surface as it could also be a simple option.

@wookayin I'm not sure how you implemented it, but since there are no docs yet as reference here is my implementation:
Fetch count per status (pass/fail):
https://github.com/Davincible/dotfiles/blob/4b03eec730bb0ff19451a11ccf30311ad789765b/nvim/lua/uno/heirline/astro/status.lua#L509-L523
Display the current running status with animation:
https://github.com/Davincible/dotfiles/blob/4b03eec730bb0ff19451a11ccf30311ad789765b/nvim/lua/uno/heirline/astro/status.lua#L530-L546
Check if any test results are present at all, used as condition:
https://github.com/Davincible/dotfiles/blob/4b03eec730bb0ff19451a11ccf30311ad789765b/nvim/lua/uno/heirline/astro/status.lua#L696-L700
Check if neotest is currently running, used as condition:
https://github.com/Davincible/dotfiles/blob/4b03eec730bb0ff19451a11ccf30311ad789765b/nvim/lua/uno/heirline/astro/status.lua#L705-L709
Style definition of status:
https://github.com/Davincible/dotfiles/blob/4b03eec730bb0ff19451a11ccf30311ad789765b/nvim/lua/uno/heirline/astro/status.lua#L993-L1029
Style definition of running:
https://github.com/Davincible/dotfiles/blob/4b03eec730bb0ff19451a11ccf30311ad789765b/nvim/lua/uno/heirline/astro/status.lua#L1035-L1049

I had deliberately created the API this way, as I could either create different functions for each small variation (e.g. get_status, get_status_all), which in my opinion unnecessarily increases the API surface as it could also be a simple option. But I'm open to suggestions here ofcourse

I agree that the API shouldn't have lots of little functions but I think instead of trying to accommodate for those use cases in one function, it's better to expose one simple function that users can build on top of to do what they want.
I'm unclear on what exactly your goals are and so I think outlining the use cases and how they would be implemented would be a good start.
For me, the main use cases I see are

Getting the counts of all the statuses
Finding out what is running
Knowing how many positions are running
It'd be useful to have those at a global level and at a per-buffer level

With those use cases in mind, a simple API to do that might look like the following:
---@return string[]
function neotest.state.get_adapters()
  ...
end

---@class neotest.state.StatusState
---@field total integer
---@field passed integer
---@field failed integer
---@field skipped integer

---@param adapter_id string
---@param opts table
---@field buffer? integer Returns statuses for this buffer
---@return neotest.state.StatusState
function neotest.state.get_status_counts(adapter_id, opts)
  ...
end

---@class neotest.state.RunningState
---@field root string ID of position that was run
---@field total integer Number of running positions under the root

---@param adapter_id string
---@param opts table
---@field buffer? integer Returns running position IDs for this buffer
---@return neotest.state.RunningState[]
function neotest.state.get_running(adapter_id)
  ...
end

I believe this covers all of the use cases that you have in your examples, but please let me know of any other requirements.
Requiring the adapter ID means that we don't have to do any odd changing of return types depending on the arguments,
while it doesn't add much complexity to the usage, it's just a simple loop for users.
In terms of implementation, on the neotest events all corresponding state will be cleared and the global levels will be refreshed.
Buffer level states will be only be calculated when first requested and then cached for later use.
It doesn't need to be super efficient, we don't need to be smart about the state clearing (e.g. trying to only wipe the
state of buffers that have changed) as the once off calculation won't be very heavy.
What do you think?

@Davincible are you still interested in continuing this PR? If not I may have a stab at the API proposed above

@rcarriga sorry for the radio silence. I am.
I agree with the goals. However just using adapter ID is an oversimplification, as they don't always match up with what you are trying to query. See this comment for more detail.
I agree that perhaps having so many options makes it too complex. We could make the fuzzy search the default behavior.

Not a problem! :smile:
Your comment says that fuzzy searching is necessary because the running function returns only the root ID and that
might not necessarily be the file path. That's just an implementation issue. What I'd like to know is if fuzzy searching
is solving an actual use case and is it the best solution? Right now it just seems to be a way to compensate for a
lacking API.
This is why I was asking what are the use cases that you're trying to fulfill, because I just don't know exactly what
they are. The API I've proposed is designed to make querying for info on a buffer level as easy as possible which I
believe is what you're also trying to do. Is there something that it doesn't handle?

Cool :smile: What about the proposed API? Are you happy with it as is or do you have other ideas?

thus the "run" function will merely receive information of the project path, and not the adapter id,

The first argument to the run event is the adapter ID. However I think we should maintain a cache of the trees emitted during discovery, because then we can lookup those trees in the exposed API functions without doing potentially async calls in the client.

and when running a suite (provided as a specific path), we could then change the state of all sub-paths to running.

This could be problematic when multiple parents of a position are running depending on implementation. Not sure it will be, just want to point it out.

May I ask about the current status of this PR? Can I help somehow?
I finally made the transition from Ultest to Amritsar, but having this missing bugs me.

As this PR hasn't been updated in a while, I gave it a quick stab to get something to fulfil the needs discussed.
I've got it in a branch (#217) to test for now, so please let me know if anything isn't working or it doesn't cover the requirements :smile:
I actually just put the running count in the status table so that the count of statuses["total"] == sum(count for status, count in statuses if status != "total" so I didn't include the get_running function.

Hey, apologies for not working on it further. I wanted to continue but haven't found the time.
I haven't had a look at your PR @rcarriga yet, but as long as it properly takes into account the different cases of running full test suites on an entire project vs single files or single tests within a file it should be good. Those were the biggest issues I was still facing throughout the usage of my PR here.

I just quickly read over the code. I'm not sure if I missed it and it is possible. But it would be great to also get the positions of the tests. So I can say (the filter is supported) I want to know all positions (row and column [span?]) of this buffer and the related result.
I'm not sure if this makes sense to be part of this consumer, but also don't really see the meaning to have this tiny thing as another consumer. I have some "cool" ideas for some plugins to build on top of this information.

No problem @Davincible! Thanks for all the work you put in :smile:
@weilbith It definitely makes sense, I can add something for that.


AzureAppConfigurationRefresherProvider doesn't work with .NET 6 ConfigurationManager

In .NET 6 using the new minimal builder style (don't know the name) adding app configuration middleware fails because the IConfigurationRoot in this case is a ChainedConfigurationProvider so it doesn't find any refreshers.
var builder = WebApplication.CreateBuilder(args);

builder.Configuration.AddAzureAppConfiguration(o =>
{
    o.Connect("CONNECTIONSTRING");
    o.ConfigureRefresh(r =>
    {
        r.Register("Sentinel").SetCacheExpiration(TimeSpan.FromSeconds(1));
    });
});

// Add services to the container.

builder.Services.AddAzureAppConfiguration();

builder.Services.AddControllers();
builder.Services.AddSwaggerGen(c =>
{
    c.SwaggerDoc("v1", new() { Title = "MinimalAppConfigExample", Version = "v1" });
});

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "MinimalAppConfigExample v1"));
}

app.UseAzureAppConfiguration();
app.UseHttpsRedirection();

app.UseAuthorization();

app.MapControllers();

app.Run();

Similar to #168. The same solution could fix both issues.


Imran test of the test

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot claim

@savannahbot abandon

@savannahbot claim

@savannahbot abandon


Use git submodules for qtbase & qtwebkit

The base could be https://github.com/KDAB/qtbase and https://github.com/KDAB/qtwebkit, both in the phantomjs branch.

Landed in master.


Add source map support?

We should add support for source mapping, similar to https://github.com/zeit/styled-jsx/pull/34/files
What do you think, is that feasible?

@mxstbr Looks really interesting. I definitely would like to have an easy way to jump to component definition right from the style on elements panel. But I have no experience with source maps and will have no time for it in this year.

No worries, me neither 😉 let's put that on the backlog, maybe once we officially launch this a sourcemap expert jumps into the conversation!

Are there any updates, or plans on this?

Feel free to go ahead and implement this @edorivai, nobody's working on it at the minute I don't think!

Hey @mxstbr, we were considering switching to styled-components, and source map support was one of the questions of the team. We decided not to switch, but might use it in new projects/features. When we do I might take this issue on, but right now I don't have the time :disappointed:.

Really hope this feature can be implemented....with source map supporting, styled-components will be almost perfectly.

I want to switch one of the biggest Food Delivery startups in Iran to styled components but not having source maps is the reason I'm hesitating. Could you give me an update about the status of this feature or a rough estimate of it's release date?

You can calculate the release date with a simple formula:
release date
= time when a person starts working on this feature
+ time it takes that person to finish this feature

So I guess you better get going? 😉 (that's a snarky way of saying nobody's working on this right now because we all have full-time jobs but we'd love to have it so if you want to contribute to the ecosystem that's a great start and will make tons of peoples lives better!)

First I need to make sure it's on the road map. Sure I would like to work on it but first I need to know how to do this since I never wrote a source map maker for any project. If you have information about where this info can be found please let me know.

See here for some starter pointers: https://github.com/styled-components/styled-components/issues/827#issue-231139547
Definitely on the roadmap, again we'd love to have this!

Preprocessing will change btw (part of the babel plugin might not make it into v3). so don't focus on that too much :)
But if you did, that'd also be helpful since I don't know much about source mapping either ^^ thanks

@tkh44 recently did this for emotion if a potential contributor needs some inspiration: https://github.com/emotion-js/emotion/pull/320

Is anyone already working on that? Otherwise I might look into that the next few weeks

@lumio Hiya, no one is working on it yet afaik, so it’s be great if you can lend us a hand 😀

@lumio yes please!! :tada:

@lumio have you come up with something?

@selrond sadly not - I haven't had enough time to actually dig into this

I looked into this issue a bit, here is some food for thought:
disclaimer: I have never worked with source map before, correct me if you found anything wrong.
The idea of source map is very simple. it maps line and column numbers of the generated content into the line and column numbers of the original source content. Source map is not a character by character mapping. It only maps the interesting part of the source. For JavaScript, identifiers are some interesting information, like variable names, function names. for example
// original
function count() {}

// generated
function c() {}

Source map will map the position of c to the position of count. But there isn't much value to map the comments.
For styled-component, the source content is our js file, and the generated content are the <style> tags in the html.
In the context of CSS, we are probably not going to set breakpoints or step through CSS code. What we want is just the ability to go from devtool style tab to the JavaScript source file that generates this style.

So the only mapping we need is just the mapping from the beginning of the <style> tag to where the styled-component is defined (this is also what emotion does).
Some other CSS source maps, like sass source map, provide mapping for each CSS property. I think it will be hard for CSS in js, due to how dynamically we can change our generated CSS in runtime.
To add a reference to a source map, we just need to add a comment in the style tag:

In the screenshot above, the base 64 encoded string contains the information for the mapping, the source file name, and the source content, etc.
The source map can also be externalized into a separated file xxx.map, which browser will load only when we open the devtool.
This source map comment is all it takes for browsers to figure out what the mapping is, and what the original content is.
The problem I have is the source content. the inline comment needs to embed the whole js file (otherwise how would we show the original source in devtool). Because we normally don't ship the original JavaScript source to the client side. Instead of embedding the whole source content in the source map, the source map spec allows specifying a URL for browsers to load the original source. But this requires additional setup for users, to serve their original JavaScript in the server.
The original source is just the JavaScript, and we probably already have them embedded in the js source map when we uglify our js files. It would be nice if we could reuse the source content from other source maps, but I haven't found a way to do that.
Another issue is, normally the generated file is static. If we have a minified js file, it is not going to change when we run it. But the content of <style> tag will change (and this is the power of styled-component). This means, our line/column mappings might get outdated once our style changes.
I think emotion solved this problem by splitting each class into separated <style> tags,  and for each <style> tag, add an inline sourcemap content. The mapping always maps the first line, the first column of style block to the JS file, so it doesn't matter how we change it. But if we define 5 components in one js file, the same file content is duplicated 5 times in the source map. That's a lot of duplicated data sent down client's wire. This might be the reason they don't want people using source map in production https://emotion.sh/docs/source-maps
I personally really hope we can provide source map in production. There are some options I think worth looking into:

Is there a way to share source content in multiple source maps?
Maybe we can dynamically generate source maps on the fly? does that means we need to ship source-map package to the client?
We don't have to provide the original source content in the source map. We can totally fake it, maybe in the source map, we embed original content as For the code that generated this style, take a look at XXX.js line XXX

Let me know what you all think. I am happy to dig deeper into it.

I think development-only would be a great first step for a lot of people, and then we can work on making them work in production!

@yiochen how's it going?

Hi @yiochen,
You finally got to develop the source map. It becomes very heavy to have to constantly use the vscode search engine to find a styled component.

Bump, any news on the progress here?

Not at the moment, I think things will have to be redone a bit for v5 since
a lot of the library code was rewritten
On Tue, Feb 4, 2020 at 4:05 PM Paul van Dyk<EMAIL_ADDRESS>wrote:

Bump, any news on the progress here?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/styled-components/babel-plugin-styled-components/issues/14?email_source=notifications&email_token=AAELFVRHQKEK6DTREHXVE73RBHKDBA5CNFSM4CZ7UPMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKZF3PY#issuecomment-582114751,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAELFVXKALHUYXXS5CT4BQDRBHKDBANCNFSM4CZ7UPMA
.

It would be great so I can use Devsync (a chrome extension to edit CSS) that needs sourcemaps to work.

@yiochen if needed, I could help you probably. Ping me if so


Created functions for running SQL Queries via the Reports API

Added functions for running SQL Queries via the Reports API

catches SQL Errors and throws correctly
catches 0 results and throws error correctly
returns rows when found
returns the entire report object entity if using "-IncludeFullReport" switch

@homotechsual  added more things you should really put into the main module!

Will likely iterate on this to add other integrations commonly used like Xero - or to genericise that bit.


RPC server: handle huge writes

A bug i noticed when trying to stress test https://github.com/revault/revault-gui/pull/16

ACK 9686b04 -- re-applying Edouard ACK after rebase (no change)


add electronic handbook

There are several good electronics handbook out there, why should we select this one?

tbh electronics is not my field, so I leave it for discussion, but this one I chose because it is extensive and had good reviews

Almost sure its illegal but this book has a pdf version easily available from google search engines.

A review on amazon says the author made it available for free, but I can't find the author's page to confirm it, unlike to hacking the xbox
https://www.hackingthexbox.com/
and

This work is licensed under a Creative Commons License

I believe that a link to the pdf version is more interesting than the link to purchase it. Moreover, I don't believe this book is an awesome suggestion. The book is quite extensive but it isn't a classic in the field of Electronics,


Clean up the message of data commands

Tried to create a message queue so that the HaaS client can get the event behind the scene.  However, it is still not ready yet, as in the branch issue_96.


Challenge with Programming AMDC instructions for dual core

I am struggling with these instructions:

Step 1: Following the instructions so far, I don't have an app_cpu0 project:

Attention block: when I attempt to browse for an ELF file for the cpu0 I am not finding it in my Debug/ subfolder:

Did I do something wrong? Do the directions need to be adjusted?

You did not add the app_cpu0 project to your SDK environment, so it did not get compiled, so there is no elf file

Thanks. I guess I am confused. When I go through these instructions, where should I have set up the app_cpu0 project?

app_cpu0 should be added at this part:
https://docs.amdc.dev/firmware/xilinx-tools/building-and-running-firmware.html#import-projects-into-sdk

Thanks. Should app_cpu0 project have been moved over to my private user code folder or should it remain in the AMDC-Firmware submodule?


In bar chart I want to show max min

I would like to show in max and min in bar chart and I would appreciate if you can provide a solution to show it on every bar

thank you for your advice.
this feature really similar in lineChart, so I highly recommend you can learn from line charts to resolve this issue by yourself.
or I would like to fix it in the future


feat: add common sign-in resolver for simple email-to-email matching

providers.google.resolvers.emailMatchingUserEntityEmail()
providers.microsoft.resolvers.emailMatchingUserEntityEmail()
providers.okta.resolvers.emailMatchingUserEntityEmail()

Signed-off-by: Patrick Jungermann<EMAIL_ADDRESS>Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

as requested at the previous PR, I just amended the changeset.

@jhaals due to the changeset modification likely something to be merged before the next pre-release.
Of course, I can change it if it does not work out.

Thanks Patrick, I did the last tweak in a separate branch to make this release

Would have had time now. Thanks for taking care already @jhaals


Add Jetstream domain support

First of all thanks for this nice library! It helped us connecting our Elixir service to NATS JetStream :100:
We are in the process of migrating to a new NATS setup which uses Leaf Nodes (https://docs.nats.io/running-a-nats-service/configuration/leafnodes). For this we needed to use JetStream domains. This PR adds support for configuring an optional domain parameter to streams and consumers.
Tested this change in a service.

@autodidaddict are you familiar with the jetstream domains? I haven't used them and would love to get some more expert opinion on this

I am familiar. I'll take a closer look when I get to a non-phone

@brandynbennett I think this is ready to be merged. Do you have any reservations on this?

Looks like we need to do a mix format on this code change @c0deaddict
We always check the formatting on CI jobs

Looks like we need to do a mix format on this code change @c0deaddict
We always check the formatting on CI jobs

Good one! Did that now :+1:

This has been released as jetstream v0.0.9
Thanks @c0deaddict for the great PR and being open to feedback ❤ 💛 💙 💚 💜


Needed to add MVVM Light to the client

After installing NetMQ and Newtonsof.Json through NuGet the solution wouldn't build and complained about GalaSoft.MvvmLight. This was the first time I've ever used NuGet but I found I could also install MvvmLight by right-clicking on "References" in the solution explorer. It was already installed under VRE.Vridge.API.DesktopTester so I added it to VRE.Vridge.API.Client and then it built without complaint.
I think it might be good to add MvvmLight to the Requirements for this example section of the README so that other people don't get caught out by it (and perhaps a little instruction on how to install them with NuGet).

Right, MVVM Light was supposed to be auto-restored with NuGet in WPF example project but it shouldn't be necessary for Client/structs project to build. I'll update readme.


Kindly Add VISUAL (gif) images on the pub.dev page, for most common animations woth example

there are so many stuff, but most of us dont now how to use or exploring examples is too difficult.
Kindly do some work on this.

The included example file has a page showing a simple demo of every single effect included with Animate (hopefully I haven't missed any!).
I don't think I'm going to introduce the maintenance burden of maintaining gifs, or bloat the README with this, but perhaps I could export that page to web at some point and include a link to it. I'll rename this request and keep it open to track.
Feedback welcome.

Thanks A demo would be much better a link to a simple Demo website, where user can copy code and easily use that animation in their own projects

Just realized this is now a duplicate of #84


More conditionals added to validations.py to check first character

Closes:#1
With the additional conditions script is checking whether it starts with dot "." or underscore "_" and returns False if it does.
Also, 4 test cases added at the end of the script.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!

@googlebot I signed it!

@googlebot I signed it!


SonarQube >= 6.5 compatibility. Any plans for an update?

This api depends on /api/resources - which has been removed from SQ.
I had a go at fixing this - but the various methods are too deeply dependent on this api. The call to get loc. for all projects is no longer a call to /api/resources?metrics=ncloc,coverage but instead is a call to enumerate all projects (/api/projects/search) and then iterate through each one's key using something like this: /api/measures/component?componentKey=XXX&metricKeys=ncloc
It really needs a re-write.

I found https://pypi.org/project/sonarqube-py/ but less features


Regex validator does not like pipe "|" for enum

Bug Description:
Given a regex with that validades string that should contain either VALUEA or VALUEB
regex:^(VALUEA | VALUEB)$

Expected Behaviour:
it should execute the regex
Code Fragment:
payload_schema = {
    "action": "regex:^(VALUEA|VALUEB)$"
}

payload = {
    "action": "VALUEA"
}

is_valid, _, errors = validate(payload, payload_schema, return_info=True)

Error Fragment:
/usr/local/bin/python3.9 /Users/userName/Library/Application Support/JetBrains/IntelliJIdea2022.2/scratches/scratch_51.py
Traceback (most recent call last):
  File "/Users/userName/Library/Application Support/JetBrains/IntelliJIdea2022.2/scratches/scratch_51.py", line 25, in <module>
    v, e = validate_payload(ps, data)
  File "/Users/userName/Library/Application Support/JetBrains/IntelliJIdea2022.2/scratches/scratch_51.py", line 7, in validate_payload
    is_valid, _, errors = validate(payload, payload_schema, return_info=True)
  File "/usr/local/lib/python3.9/site-packages/validator/validator.py", line 81, in validate
    val = Validator(req, rules)
  File "/usr/local/lib/python3.9/site-packages/validator/validator.py", line 18, in __init__
    self.rules = Parser(rules).parse()
  File "/usr/local/lib/python3.9/site-packages/validator/parser/parser.py", line 26, in parse
    self.parsed_rules = {
  File "/usr/local/lib/python3.9/site-packages/validator/parser/parser.py", line 27, in <dictcomp>
    key: Translator(self.rules[key]).translate() for key in self.rules
  File "/usr/local/lib/python3.9/site-packages/validator/parser/translator.py", line 36, in translate
    rule = self._translate_str(elem)
  File "/usr/local/lib/python3.9/site-packages/validator/parser/translator.py", line 98, in _translate_str
    rule_instance = init_rule(*args)
  File "/usr/local/lib/python3.9/site-packages/validator/rules_src/regex.py", line 25, in __init__
    self.pattern = compile(pattern)
  File<EMAIL_ADDRESS>line 252, in compile
    return _compile(pattern, flags)
  File<EMAIL_ADDRESS>line 304, in _compile
    p = sre_compile.compile(pattern, flags)
  File<EMAIL_ADDRESS>line 764, in compile
    p = sre_parse.parse(p, flags)
  File<EMAIL_ADDRESS>line 950, in parse
    p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
  File<EMAIL_ADDRESS>line 443, in _parse_sub
    itemsappend(_parse(source, state, verbose, nested + 1,
  File<EMAIL_ADDRESS>line 838, in _parse
    raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 1

is there any other way to express an enum validation if not by regex ?
Anyone willing to contribute please review CONTRIBUTING.md for more details :100:

Hey @rafael-bm, if you're not already working on a PR for this, I'd be willing to get something going this week

Hey @rafael-bm, if you're not already working on a PR for this, I'd be willing to get something going this week

I unfortunately won't be able to work on a PR for this. Thank you for picking this bug. if u need me for testing i'm more than happy to help.

@rafael-bm No problem, I'm glad to help especially since I had the same issue while using the Validator within my own project. That would be awesome if you can test out the PR mentioned above. Let me know if you have any question or feedback.

@marshall7m my college @senemre will be checking out the branch and test it by today.

Hey @marshall7m we could run the unit tests which you added and especially the below case exactly covers our need.
assert validate({"val": "dcdcdc"}, {"val": "required|regex:(dc|ab)*"})
so it is LGTU(s)
Thanks


Set wasm-export-name attributes on exported functions again.

Sanity checked that generated .wasm/.wat files have exported functions in them with names that look about right, but didn't test fully.

The docs you linked say this should not be required:
"When building a shared library any symbols marked as visibility=default will be exported."
Are the docs wrong, or are we doing something wrong like generating an executable instead of a shared library?
We set default visibility:
https://github.com/google/iree/blob/881de81238971869d6d62cabf8dc0b54a17be704/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp#L232-L233

The docs you linked say this should not be required:
"When building a shared library any symbols marked as visibility=default will be exported."
Are the docs wrong, or are we doing something wrong like generating an executable instead of a shared library?
We set default visibility:
https://github.com/google/iree/blob/881de81238971869d6d62cabf8dc0b54a17be704/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp#L232-L233

Uhh.. well, I wish this answer was different, but:
I omit the -shared flag because:
wasm-ld: error: creating shared libraries, with -shared, is not yet stable
https://lld.llvm.org/WebAssembly.html

Missing features

Merging of data section similar to SHF_MERGE in the ELF world is not supported.
No support for creating shared libraries. The spec for shared libraries in WebAssembly is still in flux: https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md

I'll add some comments :P

hahaha


react/jsx-indent-props

I just upgraded to v 7.21.4 And it seems this rule is not properly detecting the spacing in a couple places that had worked before this version. (The @typescript-eslint/indent I also have is working fine). I attached the photo where its not correctly noticing the spacing I have as it is fine as is and I am doing very similar types of spacing in my codebase where this rul is not complaining. This kinda exposed the fact it seems like I have redundant rules and can just rely on the @typescript-eslint rule but I figured I'd put this here anyways.

export const DKListingDetailItem = ({
  label,
  text,
  classNames = '',
  testid = '',
  children,
}: Props) => {
  const detail = typeof text === 'string'
    ?
{text}

    // eslint-disable-next-line react/no-array-index-key
    : text.map((textDetail, i) => <p key={`textDetail${i}`}>{textDetail}
);

  return (
    <div
      className={`dk-listing-detail-item__section-container ${classNames}`.trim()}
      data-testid={testid}
    >

{label}

      {detail}
      {children}

  );
};

An interesting note. If I remove the ternary above the error goes away.

I believe this is fixed by #2826.

ah thanks @ljharb Ill close this and wait for the next release to confirm.


Fix build error on Python 2.6

In Python 2.6, sys.version_info does not return a named tuple, resulting in a stacktrace similar to the following:
                   Complete output from command python setup.py egg_info:
                   Traceback (most recent call last):
                     File "<string>", line 20, in <module>
                     File "/tmp/pip-build-cIKa1X/python-etcd/setup.py", line 12, in <module>
                       if sys.version_info.major == 2:
                   AttributeError: 'tuple' object has no attribute 'major'

Tested on Python 2.6, 2.7 and 3.x

Although we don't formally support python 2.6, this is just a minor stylistic annoyance, so I think it's mergeable.

@lavagetto Much appreciated.


Add description of measurement tools

Changelog:
Added description for:

Nebula
Parsec
Tiros

Copied a bit from the repo's readmes but also created a bunch of new text

@dennis-tra is this ready for a second look?

Thanks everyone for the reviews. I revised the pages quite significantly. I aimed to provide rather timeless information linking to the relevant source code parts where appropriate. I focussed more on concepts and our deployment.
I updated parsec to reflect our latest IPNI addition and extended the description of Nebula.


Code collector widget showing different tech debt value

Hello
I am using SonarQube for code quality and coverage, technical debt value is varying in Sonarqube dashboard and in Hygieia code collector widget.
Is there any fix around so that I can use in Hygieia dashboard code?

I ran a test using sonar 5.3 and the Hygieia code base and reproduced the issue.  It will need to be investigated.
Here is my review:
***Tech Debt: 6d on Hygieia and 15d in Sonar
% Coverage  - LGTM
#issues - LGTM

Hi @jimzucker ,
any update to this issue?

@papithag I took a look at the issue it the calc in the dashboard
There is a method, calculateTechnicalDebt.  I don think the calculation for Day and year are correct, the is what I see
A day is counted as 1440 min, I think it should be 480.
Year is counted as 525600 minutes I think it should be 105,600 minutes. This is what I think it should be:
Min 	          Hours 	     Days 	 Year
60.000 	         1.000 	     0.125 	 0.001
480.000 	          8.000 	     1.000 	 0.005   *assume a day == 8 hours
105,600.000 	 1,760.000     220	 1.000  * assume a year is 220 workdays
I am testing the patch now...

Hi @jimzucker
Awaiting for the fix :-)

To get the #s to tie to sonar I had to use 8.25 hours/day.
Min 	          Hours 	     Days 	 Year
60    	         1.000 	     0.125 	 0.001
495 	          8.250 	     1.000 	 0.005   *assume a day == 8.25 hours
113850 	          1,760           230	 1.000  * assume a year is 230 workdays in a year (46 weeks)

I am also working on the changes in my local as u suggested... Can u send me ur modified changes?

you can take a look at this branch:  git@github.com:jimzucker/Hygieia.git
I haven’t tested it yet I have to do that tomorrow…
On Feb 28, 2016, at 9:51 PM, papithag <notifications<EMAIL_ADDRESS>wrote:
I am also working on the changes in my local as u suggested... Can u send me ur modified changes?
—
Reply to this email directly or view it on GitHubhttps://github.com/capitalone/Hygieia/issues/368#issuecomment-190056424.

Hi @jimzucker ,
I modified the code as you mentioned, still the values are not same in sonar and hygieia.
Hygieia shows tech debt (+1 or 2 days) higher than sonar.
Still need some tuning in the calculations

@papithag can you attach the following information:

Screen shots of what you see in your sonar & Hygieia (with and without the modification)
can you provide the output of this rest call, you may have to modify the  in the URL

http://:/api/resources?format=json&resource=1&metrics=-ncloc,line_coverage,violations,critical_violations,major_violations,blocker_violations,sqale_index,test_success_density,test_failures,test_errors,tests&includealerts=true
Output looks like this: (we are interested in the list with key == sale_index
{"id":1,"key":"com.capitalone.dashboard:Hygieia","uuid":"AVMf6JQCcKPh5nAzLMVX","name":"com.capitalone.dashboard:Hygieia","scope":"PRJ","qualifier":"TRK","date":"2016-02-26T23:27:08+0000","creationDate":"2016-02-26T23:27:29+0000","lname":"com.capitalone.dashboard:Hygieia","version":"2.0.0-SNAPSHOT","description":"Spring Boot Starter Parent","msr":[
{"key":"tests","val":167.0,"frmt_val":"167","alert":null,"alert_text":null
{"key":"test_errors","val":0.0,"frmt_val":"0","alert":null,"alert_text":null},
{"key":"test_failures","val":0.0,"frmt_val":"0","alert":null,"alert_text":null},
{"key":"test_success_density","val":100.0,"frmt_val":"100.0%","alert":null,"alert_text":null},
{"key":"line_coverage","val":30.4,"frmt_val":"30.4%","alert":null,"alert_text":null},
{"key":"violations","val":783.0,"frmt_val":"783","alert":null,"alert_text":null},
{"key":"blocker_violations","val":1.0,"frmt_val":"1","alert":null,"alert_text":null},
{"key":"critical_violations","val":65.0,"frmt_val":"65","alert":null,"alert_text":null},
{"key":"major_violations","val":435.0,"frmt_val":"435","alert":null,"alert_text":null},
{"key":"sqale_index","val":7536.0,"frmt_val":"15d","alert":null,"alert_text":null}]}]

@papithag - I did some research today and it looks like we should use floor vs ceil on the resulting # of days.  In my test case I tied out. (the root cause issues was the divisor for minutes/day where off)
Here is my test case, you can see the UI ties to the values found in the rest call now.

Hi @jimzucker
As per your recommended changes, I updated the code and finally added FLOOR method also.
I still see slight variations in the value

Sonarqube dashboard has 12days where in Hygieia has 11days.
Updated code is this:
function calculateTechnicalDebt(value) {
var factor, suffix;
var hour = 60;
var day = hour * 8.25;
var year = day * 230;
        if (!value) return '-';
        if (value < day) {
            // hours
            factor = hour;
            suffix = 'h';
        } else if (value < year) {
            // days
            factor = day;
            suffix = 'd';
        } else {
            // years
            factor = year;
            suffix = 'y';
        }
        return Math.floor(value/factor) + suffix;
    }

Please make a day = hour * 8
Sent from my iPhone
On Feb 29, 2016, at 22:11, papithag <notifications<EMAIL_ADDRESS>wrote:
Hi @jimzuckerhttps://github.com/jimzucker
As per your recommended changes, I updated the code and finally added FLOOR method also.
I still see slight variations in the value
[image]https://cloud.githubusercontent.com/assets/14195791/13419203/3391b584-dfb7-11e5-8607-e2eaf254b6fc.png
[image]https://cloud.githubusercontent.com/assets/14195791/13419222/4e8b127c-dfb7-11e5-9396-a41ed2751c8f.png
Sonarqube dashboard has 12days where in Hygieia has 11days.
Updated code is this:
function calculateTechnicalDebt(value) {
var factor, suffix;
var hour = 60;
var day = hour * 8.25;
var year = day * 230;
    if (!value) return '-';
    if (value < day) {
        // hours
        factor = hour;
        suffix = 'h';
    } else if (value < year) {
        // days
        factor = day;
        suffix = 'd';
    } else {
        // years
        factor = year;
        suffix = 'y';
    }
    return Math.floor(value/factor) + suffix;
}

Reply to this email directly or view it on GitHubhttps://github.com/capitalone/Hygieia/issues/368#issuecomment-190563281.

hi @jimzucker
After making day =hour*8, Sonarqube and Hygieia dashboard are showing same values if Sonarqube has single value like 3d, 8d, 12d.... but if SonarQube has double values like 1d 3 h, then Hygieia dashboard shows +1 or 2 days.

I understand the technical debt method doesn't handle this type of values. Can we work on this as well ? :-)

@papithag I am not sure if we want to fix this as the dashboard is meant to be a radiator, and putting 2d 11h may require chasing the layout of the UI.
@tabladrum let us know what you think...
@papithag  Can you run this (modify the hostname) so we can see what is returned by the JSON server as my 5.3 sonar is returning only in Days so I match exactly.
http://dockerhost:9000/api/resources?format=json&resource=1&metrics=-ncloc,line_coverage,violations,critical_violations,major_violations,blocker_violations,sqale_index,test_success_density,test_failures,test_errors,tests&includealerts=true
Also see I did a test hardcoding "10d 2h" to see how the UI behaves, I think we can pull the string from the JSON message, in this way it will match whatever Sonar tells us, I think that is the best we can do, if @tabladrum OK with the change.
{"key":"sqale_index","val":7536.0,"frmt_val": "15d" ,"alert":null,"alert_text":null}]}]

@papithag you can try the change I just pushed, but please send me the json output from your server if it doesn't match.

Hi @jimzucker
Added the change and working as expected.
Checked for technical debt with the combination of hours, days + hours, mins alone... all are working fine.
Thanks a lot for the support


Travis: fix the build

Same as #251 in the hopes that the build will report back now.
The Travis docs say that $TRAVIS_BUILD_STAGE_NAME is in "proper case" form:

TRAVIS_BUILD_STAGE_NAME: The build stage in capitalized form, e.g. Test or Deploy. If a build does not use build stages, this variable is empty ("").

However, it looks like they made an (undocumented) change (probably a bug in their script handling) which means that the $TRAVIS_BUILD_STAGE_NAME name is now in the case as given, which in this case is lowercase.
This means that some of the comparisons are failing and the wrong things are executed for certain builds.
As I expect this to be a bug in Travis, I'm not changing the case for the comparisons at this time.
Instead I'm fixing this by inline fixing the case of the variable for the comparisons.
Refs:

https://docs.travis-ci.com/user/environment-variables#default-environment-variables (near the bottom of the list)

@dingo-d I have a feeling that the connection with Travis is broken and needs to be redone.
I had a quick look to see what's different compared to some other repos and I think removing the webhook might just fix this as there is already a GH App integration in place. What do you think ?

I know that GitHub removed services in favor of webhooks, but since we have Travis app connected to this repo we could try removing the webhook.

@dingo-d I've removed the webhook and restarted the build. Hoping it will report back now. Otherwise, I'll try a force push again.

@dingo-d Still no luck. I'll close this PR and re-open a new one as a last attempt. If that doesn't work, someone who can edit the GH Travis App permissions should probably have a look and/or remove and re-add the GH App.


[ISSUE #9007] client Connection ip is null

https://github.com/apache/rocketmq/issues/9007

Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 47.67%. Comparing base (9202de3) to head (e46cb62).
Report is 12 commits behind head on develop.

Files with missing lines
Patch %
Lines

...e/rocketmq/remoting/netty/NettyRemotingClient.java
0.00%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9008      +/-   ##
=============================================
- Coverage      47.73%   47.67%   -0.06%
+ Complexity     11774    11767       -7
=============================================
  Files           1304     1304
  Lines          91118    91211      +93
  Branches       11692    11719      +27
=============================================
- Hits           43495    43486       -9
- Misses         42264    42340      +76
- Partials        5359     5385      +26

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Check MSVC arm64 variant on arm64 host

Summary of changes

For now this selects Hostx86/arm64 because of old distutils decision:
https://github.com/pypa/setuptools/blob/a6f7484b25628ae351d4b96fa6254ada387ece10/setuptools/_distutils/_msvccompiler.py#L181-L189
This works but just runs slower. Perhaps we can safely require arm64 MSVC for arm64 python installations?
Closes #4553
Pull Request Checklist

[ ] Changes have tests - test_get_vc2017() exists but never fails
[x] News fragment added in newsfragments/.
(See documentation for details)

Hi @saschanaz, thank you very much for the contribution.
Could you please propose the change directly to the pypa/distutils repository. In the pypa/setuptools repository we don't modify the _distutils folder directly, instead we always obtain the latest version of pypa/distutils (and that overwrites any local change).

@jaraco, @zooba could you please have a look on this PR?
It looks fine to me, but you guys might have a better understanding of the whole system.

The check should use distutils.util.get_platform() == "win-arm64" so that cross-compiling overrides work (unless you've got a setuptools-specific copy of this function now).
Otherwise, checking for that component is the right thing to do when targeting ARM64. When installed, it should include all the host platforms, so whether cross-compiling or native compiling, there'll be suitable tools there.
I see there are no changes now to the code originally quoted. If you were going to change that, you'd need to compare get_host_platform() with get_platform() to decide whether to use arm64 or else one of x86_arm64 or amd64_arm64 in order to compile. Using x86_arm64 will work consistently everywhere, but is indeed likely to be slower on an ARM64 machine (i.e. when get_host_platform() == "win-arm64").

The check should use distutils.util.get_platform() == "win-arm64" so that cross-compiling overrides work (unless you've got a setuptools-specific copy of this function now).

Done!

Otherwise, checking for that component is the right thing to do when targeting ARM64. When installed, it should include all the host platforms, so whether cross-compiling or native compiling, there'll be suitable tools there.
I see there are no changes now to the code originally quoted. If you were going to change that, you'd need to compare get_host_platform() with get_platform() to decide whether to use arm64 or else one of x86_arm64 or amd64_arm64 in order to compile. Using x86_arm64 will work consistently everywhere, but is indeed likely to be slower on an ARM64 machine (i.e. when get_host_platform() == "win-arm64").

You mean in https://github.com/pypa/distutils ?

You mean in https://github.com/pypa/distutils ?

Yes, I believe the maintainers still prefer distutils changes to go into that repo first. (I was kind of hoping that it would all just be "setuptools" by now and slowly the distutils part becomes shims over setuptools implementation, but that's up to @abravalheri and team, not me.) It's not an essential change, but it was what you linked to in the original post.

Yes, I believe the maintainers still prefer distutils changes to go into that repo first. (I was kind of hoping that it would all just be "setuptools" by now and slowly the distutils part becomes shims over setuptools implementation, but that's up to @abravalheri and team, not me.)

That's correct. The strategy for integration depends on first deprecating all use of distutils interfaces so that setuptools._distutils is completely private. Once that's done, it's be easier to consolidate the behaviors and unify the test suite (the main thing that demands separate projects right now).

Thanks, here's distutils PR: https://github.com/pypa/distutils/pull/285

Thank you very much @saschanaz for working on the PR and @zooba for the review/advice.


docs: Add RHEL installation guide.

This will add the RHEL installation guide for the OBS packages for
kata runtime.
Fixes #86
Signed-off-by: Gabriela Cervantes<EMAIL_ADDRESS>

Currently this is blocked by
https://github.com/kata-containers/packaging/issues/62

Hi @GabyCT - if you don't mind, I'd like this PR to block on #145 too as I'm in the process of restructuring all the install guides.

Update: https://github.com/kata-containers/documentation/pull/145 has now landed. As such @GabyCT please can you split this install guide into two pieces:

https://github.com/kata-containers/documentation/blob/master/install/rhel-installation-guide.md
https://github.com/kata-containers/documentation/blob/master/install/docker/rhel-docker-install.md

... and make them as similar as possible to the CentOS ones:

https://github.com/kata-containers/documentation/blob/master/install/centos-installation-guide.md
https://github.com/kata-containers/documentation/blob/master/install/docker/centos-docker-install.md

Finally, please add a RHEL entry to:

https://github.com/kata-containers/documentation/blob/master/install/README.md

@jodh-intel changes applied

@jodh-intel any idea why travis is failing?

Hi @GabyCT - thanks!
lgtm
The CI is failing due to https://github.com/kata-containers/tests/issues/409, but once we have sufficient ack's, we'll just merge this as it's a limitation of the URL checker.
ping @klynnrif, @grahamwhaley, @egernst.

@klynnrif and @jodh-intel changes applied

Oops! Sorry @GabyCT - merged a bit too quickly it seems as I've just seen the block ;(


Create codeql.yml

Set up CodeQL scanning for just main branch

Well, weird that the new swift checks are failing. Looks like it's failing to import UIKit which is a standard Apple framework 🤔
Sounds like something for @nidal-stytch to look into

hmm, potentially need to change the build mode to manual and specify the build steps.
https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed
https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#about-specifying-build-steps-manually


Fix clickable area for dropdown items

The clickable area of dropdown items is more or less as the red box on the screenshot below:

Instead it should cover entire item.

Works well for all items in a dropdown except the last one (this behavior can be tested on stage); the clickable area for the last item is more or less:


DACStream format should be  rs_format.RS_FORMAT_Z16

In stream.py line 82
instead of
self.format = rs_format.RS_FORMAT_XYZ32F
I guess it should be
self.format = rs_format.RS_FORMAT_Z16
because is depth data...

correct, if you wanna create a pull request go ahead, otherwise I'll just change that myself.

Go ahead and change it. One liners are probably not worth a pull request...
Thanks!


Facebook "singular statuses API is deprecated for versions v2.4 and higher"

I saw a foreboding error in the 2.4 API just now. Digging into this post:
https://brid-gy.appspot.com/post/facebook/987100564687701/996189387112152
I went to /v2.4/996189387112152 in the graph explorer and got this error message
{
  "error": {
    "message": "(#12) singular statuses API is deprecated for versions v2.4 and higher",
    "type": "OAuthException",
    "code": 12,
    "fbtrace_id": "BCVNMo7G4yt"
  }
}

I don't see anything about singular statuses being deprecated in the changelog. The ubiquitous CBroe on StackOverflow suggests that posts should now be fetched with USERID_POSTID, but /v2.4/987100564687701_996189387112152 gives the even less helpful
{
  "error": {
    "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
    "type": "GraphMethodException",
    "code": 100,
    "fbtrace_id": "C05nKNVH9n+"
  }
}

man. has anything given us more trouble with bridgy than Facebook ids?! sigh. :P
thanks for filling so we can keep track!

turns out this may not be as scary as we thought. afaict it weighs find when you include the USERID_ prefix in the post id. (phew!)

Hi guys, this still seems happen on 2.9 on posts pages I manage.
I'm currently using this code to get reactions on each post:
/v2.9/{POSTID}?fields=reactions.type(LOVE).limit(0).summary(total_count).as(love),reactions.type(LIKE).limit(0).summary(total_count).as(like),reactions.type(WOW).limit(0).summary(total_count).as(wow),reactions.type(HAHA).limit(0).summary(total_count).as(haha),reactions.type(SAD).limit(0).summary(total_count).as(sad),reactions.type(ANGRY).limit(0).summary(total_count).as(angry),reactions.type(THANKFUL).limit(0).summary(total_count).as(thankful)
On some posts on my own page I may need to my social id to make it work (e.g {SOCIALID_POSTID}) to make it work.
But posts on the pages I manage it does not work on both. I get this error on either:
nsupported get request. Object with ID '{SOCIALID_POSTID}' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
or
(#12) singular statuses API is deprecated for versions v2.4 and higher
This only happens on the pages I manage
For videos and photos on the pages I manage, they work (There seems to be a difference on their urls for both videos and photos) , but on posts (e.g. just plain text posts) they don't.
Is there a work around on this?
Thanks.

thanks for weighing in! yup, that's still the current state. you can get many posts by id, formatted one way or another, but not all, and it's not usually clear why either way. definitely keep us posted if you find any new info!

Ok. As I could see, all those posts with 'post' on their urls on pages I manage can't be accessed whatsoever using just POSTID or SOCIALID_POSTID (e.g. these seems to happen on text posts and shared videos and photos)


Add custom char support and update to KE 1.7.1

SELF-EXPLANATORY

in the stable branch so far 1.7 since 1.7.1 was not released, use master branch in your fork, not stable


Flag all Signal msmts as failed

Related to https://github.com/ooni/probe/issues/2627

0.82~pr771-209 deployed on -test

0.82~pr771-210 deployed on -test

0.82~pr771-210 deployed on FSN


Unable to get my eGPU working

Howdy folks, I'm on my every year attempt in trialing out linux. I have Intel iGPU, Nvidia dGPU and Nvidia eGPU (via Thunderbolt3). According to nvidia-smi and lspci (or whatever the last command was to list the hardware), the gpu is detected and driver attached to it.
lspci -k -d ::03xx
00:02.0 Display controller: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] (rev 0c)
    DeviceName: Onboard - Video
    Subsystem: ASUSTeK Computer Inc. Device 1aec
    Kernel driver in use: i915
    Kernel modules: i915, xe
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device 1aec
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia
06:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3080] (rev a1)
    Subsystem: Gigabyte Technology Co., Ltd Device 405d
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

nvidia-smi
Sat Dec  7 17:19:43 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.77                 Driver Version: 565.77         CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3070 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   49C    P0             48W /  139W |    1512MiB /   8192MiB |      3%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA GeForce RTX 3080        Off |   00000000:06:00.0 Off |                  N/A |
|  0%   24C    P8             11W /  320W |       2MiB /  10240MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

What's the issue is that no monitors connected to it is detected.  I also tried all-ways-egpu - tried all 3 methods. Every time it's supposed to be using the egpu, I just get black screen with the _ on top left or computer boot screen on the laptop monitor.
I've tried cachyos (both KDE and GNOME wayland) and even tried with Nobara. All behaved the same. Currently on cachy KDE (wayland). I know when I last trialed linux longer 2y ago (on another laptop), I had a similar issue. Managed to get it working thorugh X11 then but would like to get it working with wayland this time. Any idea what might be the cause?

The Nvidia eGPU+Nvidia dGPU+iGPU combination seems to be a tricky one for sure. Others have reported issues with this combination as well.
IIRC GNOME still has issues with Intel iGPU when an Nvidia gpu is primary so I'd recommend sticking to KDE.
Have you tried manually reloading the nvidia_drm module as this was found helpful here? https://github.com/hertg/egpu-switcher/issues/117

@GameBurrow I can look into adding a way to automate it, but since I don't have an Nvidia dGPU system I'd have to rely on you to test it to make sure it works as intended

I added changes to the GitHub repo that added an entry point to the script. The idea is that you can add the custom commands needed for your unique setup before and after the script is run.
You can try installing the latest git version following these steps
Then add the commands you need to the /usr/bin/all-ways-egpu-entry.sh file as mentioned in the Entry Point section in the readme. Those commands will then be executed when the script is called at startup or if all-ways-egpu-entry.sh is run
Unfortunately, I can't help with the other Nvidia driver issues as I don't have any experience with those

I also have an Intel cpu/igpu, nvidia dgpu, and nvidia egpu. I'm using a razer blade 2018-base and a razer core x enclosure. Using method 2, I'm able to get the endeavour os (Wayland) login screen to show up on two of my monitors, while my laptop screen is blank. However, once I login, both monitors go blank and my laptop screen turns on.
I'm hoping I might be able to help with troubleshooting the nvidia dgpu/egpu - are there any logs I can share or tests I can do that might provide useful info?
This is the one of the main hurdles preventing me from switching to Linux on my laptop. I've basically replaced windows on my desktop, which outputs directly to a single display.
Lastly, thanks @ewagner12 for all that you've done for those of us stubbornly trying to get our egpus working with Linux!

@GameBurrow
Ok if you get stuck at boot like that the way to recover is to enter the grub boot menu (or whatever bootloader you're using) and boot to the multi-user.target. The script only triggers for the graphical.target so any other target like multi-user or the recovery option Ubuntu provides should avoid the script and let you login.

@GameBurrow @armenmatoosian
I just remembered that SDDM (the KDE login screen) defaults to using X rather than wayland and that's been known to cause issues. So for both of you I'd recommend switching it to use wayland instead: https://wiki.archlinux.org/title/SDDM#Wayland
That might work around some login issues you're seeing.

I added changes to the GitHub repo that added an entry point to the script. The idea is that you can add the custom commands needed for your unique setup before and after the script is run.
You can try installing the latest git version following these steps
Then add the commands you need to the /usr/bin/all-ways-egpu-entry.sh file as mentioned in the Entry Point section in the readme. Those commands will then be executed when the script is called at startup or if all-ways-egpu-entry.sh is run
Unfortunately, I can't help with the other Nvidia driver issues as I don't have any experience with those

Small update, did the try the script, it resulted in my me being unable to get into the OS at all( couldn't even get to TTY), even when eGPU was disconnecced, problably means it attempted to load the script too early or sth. Will try again at one point when I have to time to fix the the issue of me not getting in (thankly I have that the linux build on my disc for testing only atm).

I did some testing with an nvidia eGPU and I think this issue with the git version of the script was caused by reloading the nvidia_drm module. It seems like it resets the parameters needed for Wayland so reloading nvidia_drm should be done with the command:
modprobe -r nvidia_drm && modprobe nvidia_drm modeset=1 fbdev=1
In my testing that seemed to fix the issue so I made that change to the entry point example in the github repo. If you have time to test again you can change your /usr/bin/all-ways-egpu-entry.sh to make sure you're including the modeset=1 and fbdev=1 parameters


brew install fails when coreutils is already installed

On my macOS system that has the coreutils formula already installed:
$  brew install gdu
==> Downloading https://ghcr.io/v2/homebrew/core/gdu/manifests/4.10.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdu/blobs/sha256:9af37b330b0d64a2cc96927f4bd9b005a2c492f8bd084c0a1df531e7b1f003c2
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:9af37b330b0d64a2cc96927f4bd9b005a2c492f8bd084c0a1df531e7b1f003c2?se=2021-04-08T22%3A45%3A00Z&sig=pmNS716JpYgRzbYu9TTTG9o9f94Nx
######################################################################## 100.0%
Error: Cannot install gdu because conflicting formulae are installed.
  coreutils: because both install `gdu` binaries

Please `brew unlink coreutils` before continuing.

Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side effects in the
resulting software.

In coreutils, they link du to gdu to indicate that it's "GNU du". Personally I'm OK with unlinking coreutils, but this could be surprising to many users.
One suggestion could be to provide a non-conflicting binary as an option (like go-gdu or something?)... Not sure what the best fix is.
And, maybe there's no fix possible - but I just wanted to provide some new-user feedback 😉

I know about this conflict, but I also don't know the best solution.
Maybe gdu-go binary name would be even better, it will be easier to guess.

I have created pull request to rename it - https://github.com/Homebrew/homebrew-core/pull/74871

You don't actually need to unlink coreutils here. You can just do brew link --overwrite gdu. This will keep all the non-conflicting coreutils binaries linked, but still have gdu point to non-coreutils gdu.
I'm personally not a fan of renaming the binary: I think this is surprising for all your current users, whereas the current situation is surprising for only those who have both gdu and coreutils installed. It's fairly straightforward to work around too (though you do have to do manual linking every time coreutils is updated, which could be annoying).
However, this is your software, so I'm happy to go with whatever you think is best.

You can just do brew link --overwrite gdu

Ahh - that's a much better solution IMO. Maybe that could be printed in the error message instead?

I think the solution with link --overwrite is quite complicated.
If am not missing something, then you have to unlink the conflicting package first (coreutils), install the second one (gdu) and unlink it. Then link the first one (coreutils) and finally link --overwrite gdu.

No, there is no need to unlink coreutils first. This sequence of steps when you have neither installed works:
brew install coreutils
brew install --force gdu
brew link --overwrite gdu

Ah, that's better. Ok, I will close the pull request and update installation instructions for gdu. Thanks both of you!

just a FYI, I was using the overwrite but it failed to upgrade recently, it would be nice to reconsider renaming it or at least publish an "alternative" if not only for the sake of keeping backwards compatibility for existing users.

@brodock The conflict with coreutils was just removed. Gdu will be installed as gdu-go.
https://github.com/Homebrew/homebrew-core/pull/134731


Update to fix examples ipynb files

This PR updates outdated modules being used n the python notebooks in the examples folder.
Fixes #316

@s0nicboOm  @ab93 @nkoppisetty @qhuai please review this PR

May I Know why did we remove %load_ext autotime ?
I have removed it as its not present in quick_start.ipynb and I was not able to import it or install it without issues.I forgot to add it back before merging.Let me know if I should add it back.
Also, can you rebase your PR?
Otherwise looks good to me.

I see that the PR is has passed all the checks,can we  merge this?