Add progress bar for bundle extraction

This PR adds multiple things:

testdata for the xz format
a fix for a defer file.Close() in a loop
a progress bar for bundle extraction (in a terminal only)

Output:
INFO Checking file permissions for /etc/resolver/testing
INFO Extracting bundle: crc_hyperkit_4.4.5.crcbundle ...
crc_hyperkit_4.4.5/kubeadmin-password: 23 B / 23 B [-----------------------------------------------------------------------------------------] 100.00% ? p/s 0s
crc_hyperkit_4.4.5/kubeconfig: 11.55 KiB / 11.55 KiB [---------------------------------------------------------------------------------------] 100.00% ? p/s 0s
crc_hyperkit_4.4.5/id_rsa_crc: 2.53 KiB / 2.53 KiB [-----------------------------------------------------------------------------------------] 100.00% ? p/s 0s
crc_hyperkit_4.4.5/crc.qcow2: 490.22 MiB / 9.15 GiB [--->_______________________________________________________________________] 5.23% 34.99 MiB p/s ETA 4m13s

Tell me what you think!

Output:

Too detailed... can this be brought back to an overall extraction (displaying the extraction of the archive instead of contents)?
Also, how does this work on a non PTY enabled terminal? like from the adapter in Eclipse?

Yes there is too much details. The issue is that we don't have the total length of the uncompressed data. I can change the template and remove information.
What if I only display the bar for object larger than 1 GB ?

What if I only display the bar for object larger than 1 GB ?

That would make more sense, although the others file are relevant as part of debug perhaps?

Also, how does this work on a non PTY enabled terminal? like from the adapter in Eclipse?

Aren't they planning to use the daemon API as soon as it's available/haven't they been asking for json output for our commands?

Other try, less chatty:
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Extracting bundle: crc_libvirt_4.4.8.crcbundle ...
crc.qcow2: 445.91 MiB / 9.40 GiB [---->______________________________________________________________________________________] 4.63%

Without a pty:
level=info msg="Checking if NetworkManager service is running"
level=info msg="Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists"
level=info msg="Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists"
level=info msg="Extracting bundle: crc_libvirt_4.4.8.crcbundle ..."

Extract function that untar a single file.defer file.Close() is no……w called after each file.
is too long for a short log, you can split this in a real short log, and a longer description.
untar: call defer file.Close() after each file

deferred calls are only called when the current function ends, which means untar() is currently holding all files open until it has finished processing the whole archive. By introducing a `untarSingleFile()` helper, we can ensure each file is closed as soon as it's fully uncompressed.

I also had commented on this shortlog but it seems it was lost (?):
Add progress bar for bundle extraction (only in a terminal)
The only in a terminal could be split in the actual log, I don't think it's required to keep it in the short log.

/retest

The progress bar looks nice 👍
I thought we also wanted to show a progress bar after? but this would be a bit difficult i think because, we don't know when its going to end, maybe a indefinite spinner kind of thing.
INFO Starting OpenShift cluster ... [waiting 3m]

I tried to add a max width to the progress bar but it messes up with carriage return when 2 progress bars are shown. I tried to add newline, etc. but it's not pretty.
I'm back with a fullscreen progress bar.

Any idea why prow doesn't merge the PR ? https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md#the-code-review-process
It should do it automatically.

it did... right?


[tbb] Update to new repository

Since tbb repository has been changed as https://github.com/oneapi-src/oneTBB instead of what used to be https://github.com/intel/tbb. This caused the related hash has changed.
So I updated the repository as the new one. I also add Supports filed in CONTROL and add the related unsupported messages  in portfile.cmake.
Related issue #10447
Note: No features need to test.

/azp run

Fixes #10490


No module named version

File "e:\prg\py\pure_pylib_bridge\SmallMatlabtoPythoncompiler\smop\options.py
", line 4, in
from version import version
ImportError: No module named version

does this help: https://stackoverflow.com/questions/32423793/importerror-no-module-named-version ?

no.

that's great to hear! maybe some explanation would be helpful.

Py 3 doesn't come with version installed. You have to download the module.

I think I fixed it.  Anybody volunteers to reproduce?

Fixed in 0.40

Still have this issue as mentioned in #124

I have tried many different tricks to get the correct version number and none of them work.
Along the way I’ve noted a few points:

I’m not an experienced github user so until nowI download the zip file and use that stand alone. I wonder how many others do that? Is the git tag available in the zip file?

After a crash course in using github and installing “SmartGit” I downloaded smop to my git repository and used "pip -e …” to install from there into my Anaconda3 environment.
Still no joy, every Version number comes out as 0.32 xxxxx.

Looking at the Git Journal in SmartGit I cannot see any tag value of 0.40. Is it missing in your repo perhaps?

Your installation instructions and the setup.py file seem to rely on the "git describe —tags” command working correctly. I far as I can tell this means that non git users will strike trouble every time!

Your instructions suggest using pip to install smop. I think that is ambiguous and can be clarified.

There are two options for a pip install:
a) “pip install smop” will download and install the current version available to pip. Currently 0.35 for python2
b) downloading first from github, and then install using “pip -e .
Currently this will install version 0.40 for python3 (but with an unresolved version problem).

It is learning curve stuff, but I frequently  have PATH problems when using smop due to inexperience.
One problem is the "import libsmop” instruction.
This only works if smop is on PATH or PYTHONPATH and has been setup before smop is called.

I think it would be helpful to include libsmop by default in the smop output folder where it will be found every time by a python call, irrespective of the PATH setup.
This removes one more learning curve problem for new users.
It also makes the smop output python code more transportable.
I hope these comments are helpful to you
Regards
Rob
<EMAIL_ADDRESS>
On 11/06/2018, at 14:27, tarakobeam<EMAIL_ADDRESS>wrote:
Still have this issue as mentioned in #124 https://github.com/victorlei/smop/issues/124
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/victorlei/smop/issues/111#issuecomment-396105755, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLYJgcRS7dxzxVqTNlxMX2QHhfwR_Cxks5t7dV0gaJpZM4OEzD4.

What a mess... Thanks so much for spending time on this.  Today will give
it another try
On Wed, Jun 13, 2018 at 6:02 AM, Rob Wilkinson<EMAIL_ADDRESS>wrote:

I have tried many different tricks to get the correct version number and
none of them work.
Along the way I’ve noted a few points:

I’m not an experienced github user so until nowI download the zip file
and use that stand alone. I wonder how many others do that? Is the git tag
available in the zip file?

After a crash course in using github and installing “SmartGit” I
downloaded smop to my git repository and used "pip -e …” to install from
there into my Anaconda3 environment.
Still no joy, every Version number comes out as 0.32 xxxxx.

Looking at the Git Journal in SmartGit I cannot see any tag value of 0.40.
Is it missing in your repo perhaps?

Your installation instructions and the setup.py file seem to rely on
the "git describe —tags” command working correctly. I far as I can tell
this means that non git users will strike trouble every time!

Your instructions suggest using pip to install smop. I think that is
ambiguous and can be clarified.

There are two options for a pip install:
a) “pip install smop” will download and install the current version
available to pip. Currently 0.35 for python2
b) downloading first from github, and then install using “pip -e .
Currently this will install version 0.40 for python3 (but with an
unresolved version problem).

It is learning curve stuff, but I frequently have PATH problems when
using smop due to inexperience.
One problem is the "import libsmop” instruction.
This only works if smop is on PATH or PYTHONPATH and has been setup before
smop is called.

I think it would be helpful to include libsmop by default in the smop
output folder where it will be found every time by a python call,
irrespective of the PATH setup.
This removes one more learning curve problem for new users.
It also makes the smop output python code more transportable.
I hope these comments are helpful to you
Regards
Rob
<EMAIL_ADDRESS>
On 11/06/2018, at 14:27, tarakobeam<EMAIL_ADDRESS>wrote:
Still have this issue as mentioned in #124 <
https://github.com/victorlei/smop/issues/124>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <
https://github.com/victorlei/smop/issues/111#issuecomment-396105755>, or
mute the thread <https://github.com/notifications/unsubscribe-auth/
AGLYJgcRS7dxzxVqTNlxMX2QHhfwR_Cxks5t7dV0gaJpZM4OEzD4>.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/victorlei/smop/issues/111#issuecomment-396798787, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEhsG5kJyO3UdyJOtb_QhF5wMWAsKp-Iks5t8IDagaJpZM4OEzD4
.

--
Calligraphy of geese /  Against the sky /  The moon seals it /
(Buson/Hass)

Just noticed your note on Jun13. Did not see it  until now, apologies

Hi Everyone,
I can succesfully translated matlab file to python file. when i'm running translated matlab file, its showing 'module not found error'.
Traceback (most recent call last):
File "adnet_train.py", line 2, in
from smop.libsmop import *
File "/home/venchi/anaconda3/lib/python3.6/site-packages/smop-0.41-py3.6.egg/smop/libsmop.py", line 6, in
ModuleNotFoundError: No module named 'builtin'
what does it mean? and how can i solve this issue.
Thanks in advance.

I am travelling away from my home computer so cannot verify my following comment before posting it.
Smop version 0.41 and up runs in Python 3 but produces Python 2.7 +
Code which is not fully compatible with Python 3.
You have hit such a case with a python 2.
“From libsmop import * ” command which generates an
“import builtins”  (a python 2 command) being issued to Python 3 which does not recognise such a command.
Try running your smop generated code under Python 2.7
Or if you want to experiment, use the Python 3 “futurize” feature on your smop generated code.
Hope my memory of what I tried a couple of months ago is helpful.
Regards
Rob Wilkinson

On 5/09/2018, at 10:32, avvaruvenkatsai<EMAIL_ADDRESS>wrote:
Hi Everyone,
I can succesfully translated matlab file to python file. when i'm running translated matlab file, its showing 'module not found error'.
Traceback (most recent call last):
File "adnet_train.py", line 2, in
from smop.libsmop import *
File "/home/venchi/anaconda3/lib/python3.6/site-packages/smop-0.41-py3.6.egg/smop/libsmop.py", line 6, in
ModuleNotFoundError: No module named 'builtin'
what does it mean? and how can i solve this issue.
Thanks in advance.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


[2.7] Save OpenLDAP password in Shibboleth config as a secret

Issue:

Problem

Solution

Testing

Engineering Testing
Manual Testing

Automated Testing

QA Testing Considerations

Regressions Considerations

Just to confirm: QA would need to test the general functionality of pretty much every provider, right?

Yes

Another question, Chad: there was a second issue before with metadata validation.
* 'metadata.CreationTimestamp' expected a map, got 'string'
* 'metadata.ManagedFields[0].Time' expected a map, got 'string'

Is it also resolved by the change?

Another question, Chad: there was a second issue before with metadata validation.
* 'metadata.CreationTimestamp' expected a map, got 'string'
* 'metadata.ManagedFields[0].Time' expected a map, got 'string'

Is it also resolved by the change?

Yes!


Add start up music to blot

Could happen when the blot is powered?
Could happen when data connection is made?
Also indicates if it has Blot firmware.

Music as in the motor? or the computer?

Music on the machine. So the motors.


Add Chinese version of README

ref #88

Codecov Report

Merging #90 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop      #90   +/-   ##
========================================
  Coverage    97.36%   97.36%
========================================
  Files           55       55
  Lines         1403     1403
========================================
  Hits          1366     1366
  Misses          37       37

Continue to review full report at Codecov.

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


fix: [Fluent Blazur Web App Template will not compile]  syntax error in [Weather.razor line 17]

🐛 Bug Report

Line 18
 <FluentDataGrid Id="weathergrid" Items="@forecasts"" GridTemplateColumns="1fr 1fr 1fr 2fr" TGridItem="WeatherForecast">
schould be
<FluentDataGrid Id="weathergrid" Items="@forecasts" GridTemplateColumns="1fr 1fr 1fr 2fr" TGridItem="WeatherForecast">
Version
Microsoft.FluentUI.AspNetCore.Templates Version 4.4.1

Reported and fixed already. Will be in 4.5.0

4.5 shipped a couple hours ago, but templates didn't: https://www.nuget.org/packages/Microsoft.FluentUI.AspNetCore.Templates

Working on it... 😁


Added credit card token functionality

We added credit card token functionality which allows cards to be reused. Common uses include:

Recurring payments
Future individual purchases

Coverage remained the same at 100.0% when pulling 862b9005a576b8ba27b8a79f1537cba2ed1f1439 on barrycarrjr:master into 2885db1b455b2f545aff3d03efffe77fe4a6a1bd on lemonstand:master.

@aperdomo We tested pretty well. Have you had a chance to review our PR?

Looks good - apologize for the delay.

No problem at all. Figured you were busy :)


Add get_video to ScherrerOphysImagingExtractor

Add support for get_video in ScherrerOphysImagingExtractor.
This should be merged after https://github.com/catalystneuro/roiextractors/pull/195.

LGTM - thanks for all the work on this


Add a Plymouth splash screen

Retro Home has a bespoke splash screen implementation based on fbi and xli.


Tiny, but possibly crucial, detail

Thank you for a very nice article.
In the section copied in the following image, I had to add an at-sign to the highlighted "await" to get this example to work.

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

ID: d670c64c-4030-312c-4355-ee518a23a56a
Version Independent ID: c20d4db8-d403-9218-c39d-47e56c34e767
Content: Partial views in ASP.NET Core
Content Source: aspnetcore/mvc/views/partial.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @ardalis
Microsoft Alias: riande

@xenophilios  can you paste in the code you used?

@model PartialViewsSample.ViewModels.Article

<EMAIL_ADDRESS>@* Pass the author's name to Views\Shared\_AuthorPartial.cshtml *@
@await Html.PartialAsync("_AuthorPartial", Model.AuthorName)
@Model.PublicationDate

@* Loop over the Sections and pass in a section and additional ViewData to
   the strongly typed Views\Articles\_ArticleSection.cshtml partial view. *@
@{
    var index = 0;

    foreach (var section in Model.Sections)
    {
        await Html.PartialAsync("_ArticleSection",
                                section,
                                new ViewDataDictionary(ViewData)
                                {
                                    { "index", index }
                                });

        index++;
    }
}

Yes, that's it.

That's not required, because it's in a code block started by @{

That's what I thought, too. But the proof of the pudding is in the eating. Perhaps there was some other issue in my environment.


particle-dev-profiles not found

I am not able to install the particle dev local compiler because particle-dev-profiles is not found:
npm ERR! git rev-list -n1 feature/no-serialport: fatal: ambiguous argument 'feature/no-serialport': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 feature/no-serialport: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 feature/no-serialport: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 feature/no-serialport:
npm ERR! Darwin 15.3.0
npm ERR! argv "/Applications/Particle Dev.app/Contents/Resources/app/apm/bin/node" "/Applications/Particle Dev.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/amadeocasas/.particledev/.apm/.apmrc" "--userconfig" "/Users/amadeocasas/.particledev/.apmrc" "install" "/private/var/folders/dw/cxhg2rgx4pj8901kddsdxk0m0000gp/T/d-116116-83782-1xuao3b/package.tgz" "--target=0.30.7" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code 128

npm ERR! Command failed: fatal: ambiguous argument 'feature/no-serialport': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git <command> [<revision>...] -- [<file>...]'
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/dw/cxhg2rgx4pj8901kddsdxk0m0000gp/T/apm-install-dir-116116-83782-c5630r/npm-debug.log

Is this a known issue? Is there a workaround for this?
Thanks.

It looks like feature branch in dependent package was deleted. I pushed it again so it should work now.


why not angular-cli

most of angular project on github use angular-cli can you explain why  you are not using it in this project

@badre429 let me explain as much as I can to clarify.
The approach by angular-cli vs this project which is based on asp.net core spa/javascript services (details here) is different. Angular cli manages client side build + code scaffolding + few other things which are specific to client aretefact like typescript/html/css/scss files. However, you still need a server-side(e.g node, .net) or server-less (e.g firebase) backends to make an angular-cli project to communicate. For server-less architecture you can rely purely on angular-cli. Also, there is a proxy mechanism in angular-cli project which you can leverage to point your backend calls to another web address e.g a node based backend running seperately in another command line process locally.
This is an Asp.net core single page full stack project and the whole purpose of using some of the new tools (e.g Asp.Net core javascript services) is so that we don't have to manage client/server side build tools and processes seperately. With just a single click or F5 key (Visual studio debugging shortcut key) you are running a project which is single page angular application with .net backend. A huge shout out to @SteveSandersonMS from microsoft who has built this framework to make developer's life easy. Internally .net is managing the client build tools, which angular-cli manages using the same module bundle called webpack. So that is common tool between cli and this project.
Having said that, this project still uses angular-cli but only for code scaffolding for now becuase why not. You can find more information on readme of this project for usage of code scaffolding in this project. In future I am planning to leverage more tools from cli which are angular specifc e.g AOT/SSR etc.
Hope that explains the reason why this project cannot solely rely on angular-cli.


[Bug]: After dev channel update getting source error

Expected behavior
There should be no error on sourcing bash profile or opening new tab
Current behavior
The latest commit I have in the bashit directory is af11a50854b7af3f9a4b1c7f4f51dafe8b89f243 and it is giving following error
-bash: /Users/terabyte/.bash_it/completion/*.bash: No such file or directory

Possible solution
No response
Context
No response
Steps to reproduce
Update the bash to latest version
Bash-it version
dev
List of enabled plugins, themes and aliases
Check notes
Bash version
5.2.15(1)-release
Operating system and version
macos 13
bash-it doctor output
DEBUG: core: main: Loading libraries(except appearance)...
DEBUG: lib: colors: Loading library file...
DEBUG: lib: command_duration: Loading library file...
DEBUG: lib: helpers: Loading library file...
DEBUG: lib: history: Loading library file...
DEBUG: lib: log: Loading library file...
DEBUG: lib: preexec: Loading library file...
DEBUG: lib: preview: Loading library file...
DEBUG: lib: search: Loading library file...
DEBUG: lib: utilities: Loading library file...
DEBUG: core: reloader: Loading all enabled components...
DEBUG: aliases: general: Loading component...
DEBUG: aliases: general: Loaded.
DEBUG: aliases: git: Loading component...
DEBUG: aliases: git: Loaded.
DEBUG: aliases: osx: Loading component...
DEBUG: aliases: osx: Loaded.
DEBUG: plugin: base: Loading component...
DEBUG: plugin: base: Command 'markdown' does not exist
DEBUG: plugin: base: Loaded.
DEBUG: plugin: git: Loading component...
DEBUG: plugin: git: Loaded.
DEBUG: plugin: history-search: Loading component...
DEBUG: plugin: history-search: Loaded.
DEBUG: plugin: history-substring-search: Loading component...
DEBUG: plugin: history-substring-search: Loaded.
DEBUG: plugin: man: Loading component...
DEBUG: plugin: man: Loaded.
DEBUG: completion: bash-it: Loading component...
DEBUG: completion: bash-it: Loaded.
DEBUG: completion: cargo: Loading component...
DEBUG: completion: cargo: Loaded.
DEBUG: completion: git: Loading component...
 WARN: completion: git: completion already loaded - this usually means it is safe to stop using this completion
DEBUG: completion: git: Loaded.
DEBUG: completion: go: Loading component...
DEBUG: completion: go: Command 'gocomplete' does not exist
DEBUG: completion: go: Loaded.
DEBUG: completion: pip: Loading component...
DEBUG: completion: pip: Loaded.
DEBUG: completion: rustup: Loading component...
DEBUG: completion: rustup: Loaded.
DEBUG: completion: system: Loading component...
DEBUG: completion: system: Loaded.
DEBUG: completion: terraform: Loading component...
DEBUG: completion: terraform: Loaded.
DEBUG: completion: yarn: Loading component...
DEBUG: completion: yarn: Loaded.
DEBUG: completion: brew: Loading component...
DEBUG: completion: brew: Loaded.
DEBUG: completion: aliases: Loading component...
DEBUG: completion: aliases: Loaded.
DEBUG: core: main: Loading theme 'bira'.
DEBUG: core: main: Loading custom aliases, completion, plugins...
DEBUG: core: main: Loading general custom files...
DEBUG: custom: example: Loading custom file...
DEBUG: core: main: Command 'gloobus-preview' does not exist
-bash: /Users/terabyte/.bash_it/completion/*.bash: No such file or directory

Your ~/.bashrc
#!/usr/bin/env bash

# Hide bash deprecation warning
export BASH_SILENCE_DEPRECATION_WARNING=1

# If not running interactively, don't do anything
case $- in
  *i*) ;;
    *) return;;
esac

# Path to the bash it configuration
export BASH_IT="/Users/terabyte/.bash_it"

# Lock and Load a custom theme file.
# Leave empty to disable theming.
# location /.bash_it/themes/
export BASH_IT_THEME='bira'

# (Advanced): Change this to the name of your remote repo if you
# cloned bash-it with a remote other than origin such as `bash-it`.
# export BASH_IT_REMOTE='bash-it'

# (Advanced): Change this to the name of the main development branch if
# you renamed it or if it was changed for some reason
# export BASH_IT_DEVELOPMENT_BRANCH='master'

# Your place for hosting Git repos. I use this for private repos.
export<EMAIL_ADDRESS>
# Don't check mail when opening terminal.
unset MAILCHECK

# Change this to your console based IRC client of choice.
export IRC_CLIENT='irssi'

# Set this to the command you use for todo.txt-cli
export TODO="t"

# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set to actual location of gitstatus directory if installed
#export SCM_GIT_GITSTATUS_DIR="$HOME/gitstatus"
# per default gitstatus uses 2 times as many threads as CPU cores, you can change this here if you must
#export GITSTATUS_NUM_THREADS=8

# Set Xterm/screen/Tmux title with only a short hostname.
# Uncomment this (or set SHORT_HOSTNAME to something else),
# Will otherwise fall back on $HOSTNAME.
#export SHORT_HOSTNAME=$(hostname -s)

# Set Xterm/screen/Tmux title with only a short username.
# Uncomment this (or set SHORT_USER to something else),
# Will otherwise fall back on $USER.
#export SHORT_USER=${USER:0:8}

# If your theme use command duration, uncomment this to
# enable display of last command duration.
#export BASH_IT_COMMAND_DURATION=true
# You can choose the minimum time in seconds before
# command duration is displayed.
#export COMMAND_DURATION_MIN_SECONDS=1

# Set Xterm/screen/Tmux title with shortened command and directory.
# Uncomment this to set.
#export SHORT_TERM_LINE=true

# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/djl/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt

# (Advanced): Uncomment this to make Bash-it reload itself automatically
# after enabling or disabling aliases, plugins, and completions.
# export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1

# Uncomment this to make Bash-it create alias reload.
# export BASH_IT_RELOAD_LEGACY=1

# Load Bash It
source "$BASH_IT"/bash_it.sh

# Load custom files
for file in $BASH_IT/completion/*.bash; do source $file; done

export PATH=/Users/terabyte/Library/Python/3.9/bin:/opt/homebrew/bin:/usr/local/go/bin:$PATH
export PATH="/opt/homebrew/opt/node@16/bin:$PATH"

if type brew &>/dev/null
then
  HOMEBREW_PREFIX="$(brew --prefix)"
  if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]]
  then
    source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
  else
    for COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"*
    do
      [[ -r "${COMPLETION}" ]] && source "${COMPLETION}"
    done
  fi
fi
export GPG_TTY=$(tty)
alias python="$(which python3)"
alias pip="$(which pip3)"
. "$HOME/.cargo/env"```

Notes
Plugins: base,git,history-search,history-substring-search,man
Completions: aliases,bash-it,brew,cargo,git,go,pip,rustup,system,terraform ( not even enabled yarn completion, so it is not related to yarn)
Aliases: general,git,osx

Hi !
So you don't think this is related to your bashrc line here:
# Load custom files
for file in $BASH_IT/completion/*.bash; do source $file; done

?
Could you try disabling this line and checking?

Where can i find this?

Where can i find this exactly

In your .bashrc about 20 lines up from the bottom

Fixed, but I wonder why it came after updating bashit


Set onClick event to LineNumbers

Browser version: Google Chrome Version 94.0.4606.8
Operating system: macOS Big Sur v 11.5.2
Codemirror version: v 5.63.3
Issue: unable to set onClick event to lineNumbers.
Having gone through the docs, I was wondering if there might be a workaround to help me achieve this. Any help is appreciated.

Use the gutterClick event for this. And next time, please use the forum, not the bug tracker, for questions.

Use the gutterClick event for this. And next time, please use the forum, not the bug tracker, for questions.

Thank you very much. And understood.


zos_gather_facts sample playbook

add sample playbook, readme and supporting files for zos_gather_facts module

On comment I forgot to make was where do you plan to link it from the main project README,  i did not notice it linked under any topic , etc Basic Operations or concepts.

It is linked in the main README, the PR says the main README.md file wasn't viewed,

Looks good @ketankelkar thank you so much, congratulations on fact gathering work you did in ZOAU and Ansible and now this playbook!!!


feat: add children jobs support to label parsing module

I had to create a "Project" type that contains the job interface, project input type, etc, so that we can pass just one object to all classes.
I had circular imports issues (pytest could not detect the tests). I fixed them using "import ... as ***_module".
But pylint still shows this error:
************* Module kili.core.graphql.operations.organization.queries
src/kili/core/graphql/operations/organization/queries.py:1:0: R0401: Cyclic import (kili.services.label_data_parsing.job_response -> kili.services.label_data_parsing.json_response) (cyclic-import)
src/kili/core/graphql/operations/organization/queries.py:1:0: R0401: Cyclic import (kili.services.label_data_parsing.annotation -> kili.services.label_data_parsing.category -> kili.services.label_data_parsing.json_response -> kili.services.label_data_parsing.job_response) (cyclic-import)
src/kili/core/graphql/operations/organization/queries.py:1:0: R0401: Cyclic import (kili.services.label_data_parsing.annotation -> kili.services.label_data_parsing.json_response -> kili.services.label_data_parsing.job_response) (cyclic-import)

I think it's a pylint bug because I don't know why it's saying the errors are in module src/kili/core/graphql/operations/organization/queries...
Right now, all modules are at the same level in kili.services.label_data_parsing. The circular import comes from the fact that json_response.py module uses the job_response.py module, that then uses either (or both) the annotation.py module and category.py module. And if there are children jobs, annotation.py or category.py will import json_response.py to create a children job response.

I prefer not to rework the json_response.py for now. I'll split it in ChildrenParsedJobs and ParentParsedJobs later on (if needed) when I'll do the video label parsing


Runtime-Error "Uncaught TypeError: Cannot read property 'value0' of undefined"

Hi,
sadly this one is rather complex.
I have an application that does various async stuff on init (loading local storage, querying the backend, etc.) and is using RoutingDuplex for SPA navigation.
There error happens when I reload a certain page - if I navigate there from within the application (so I guess no initial logic) the error does not happen.

The error is thrown in the last line here:
           if (reason instanceof Halogen_Hooks_Internal_Eval_Types.Step) {
                                  return Control_Bind.bind(Control_Monad_Free.freeBind)(getState)(function (v1) {
                                      var nextIndex = (function () {
                                          var $69 = (v1.effectCells.index + 1 | 0) < Data_Array.length(v1.effectCells.queue);
                                          if ($69) {
                                              return v1.effectCells.index + 1 | 0;
                                          };
                                          return 0;
                                      })();
                                      var v2 = unsafeGetCell(v1.effectCells.index)(v1.effectCells.queue);
                                      if (v.value0 instanceof Data_Maybe.Just && v2.value0 instanceof Data_Maybe.Just) {

it's the v2 refernce that is undefined
This code seems to be part of the UseState constructor of the HookM Monad/Algebra if this help.

I'm trying to get a minimal example that causes this problem but right now I could not come up with one.

So is this a bug or expected behavior - to be honest: I don't know - what do you think?

Just an update - I think I've got the problem and it was most likely my own fault:
I used a captures on an component/hook-input together with useTickEffect seems this fired the Step before the Initialize and so the effectsQueue is empty.
So is this a bug or expected behavior - to be honest: I don't know - what do you think?

Could you provide a reproducible demo of the issue?

Could you provide a reproducible demo of the issue?

Thanks for the report, @CarstenKoenig! I'll need to take a deeper look when I have a little more time, but this library definitely shouldn't produce runtime errors unless you explicitly do something unsafe, so I consider this a bug that needs to be fixed.

Thanks for the report, @CarstenKoenig! I'll need to take a deeper look when I have a little more time, but this library definitely shouldn't produce runtime errors unless you explicitly do something unsafe, so I consider this a bug that needs to be fixed.

I'll try to recreate a short example - I let you know if I can come up with something quick.

I'll try to recreate a short example - I let you know if I can come up with something quick.

Hooks can be run on try.purescript.org, so some code that fails over there would be ideal for quickly debugging in a shared environment. Thank you!

Hooks can be run on try.purescript.org, so some code that fails over there would be ideal for quickly debugging in a shared environment. Thank you!

I tried to recreate it locally - it's actually really hard - a simple nested componente with a simulated Aff (setTimeout to delay a bit) does not recreate the error.
I guess I have to dig through the actual code some more to see what is needed - but this has to wait for tomorrow - it's quite late here sorry.

I tried to recreate it locally - it's actually really hard - a simple nested componente with a simulated Aff (setTimeout to delay a bit) does not recreate the error.
I guess I have to dig through the actual code some more to see what is needed - but this has to wait for tomorrow - it's quite late here sorry.

short update:
there is something really strange going on.
I did not manage to reproduce with a small example, but in my big application I ran into yet another (probably related) problem: it can happen, that i get a Tuple undefined 0 when I do Hooks.useState (I checked with that Debug.log function).
Just some hints about what might be happening:

the app uses routing and on when a route is matched (uses matchesWith from Routing.PushState) it tells the main-component (could call it routing component I guess) about the new route.
the main/routing component will display the pages using slots based on the current route (that might change via the query)
now during each query there might be an affjax call (to fetch a token if there was none) and the Hooks.put for the current-route is after this Aff-call

Now in exactly this case: the affjax-call happens it seems that the useState in the component that will eventually be shown will trigger a few times when it will return an undefined/0 Tuple - if the call does not happen everything is fine (useState will correctly initialize with the given value - no undefined)
In my use case this will trigger a match-exception (I'm using the RemoteData library and it has this in it's functor-map instance:
throw new Error("Failed pattern match at Data.RemoteData (line 12, column 1 - line 12, column 90): " + [ showData.constructor.name, v.constructor.name ]);

the original problem seems to be similar - there a affjax-call was waited for inside a useTickEffect - if I move this into useLifecycleEffect it does not happen anymore.

Has somebody any clue where I can look further?

short update:
there is something really strange going on.
I did not manage to reproduce with a small example, but in my big application I ran into yet another (probably related) problem: it can happen, that i get a Tuple undefined 0 when I do Hooks.useState (I checked with that Debug.log function).
Just some hints about what might be happening:

the app uses routing and on when a route is matched (uses matchesWith from Routing.PushState) it tells the main-component (could call it routing component I guess) about the new route.
the main/routing component will display the pages using slots based on the current route (that might change via the query)
now during each query there might be an affjax call (to fetch a token if there was none) and the Hooks.put for the current-route is after this Aff-call

Now in exactly this case: the affjax-call happens it seems that the useState in the component that will eventually be shown will trigger a few times when it will return an undefined/0 Tuple - if the call does not happen everything is fine (useState will correctly initialize with the given value - no undefined)
In my use case this will trigger a match-exception (I'm using the RemoteData library and it has this in it's functor-map instance:
throw new Error("Failed pattern match at Data.RemoteData (line 12, column 1 - line 12, column 90): " + [ showData.constructor.name, v.constructor.name ]);

the original problem seems to be similar - there a affjax-call was waited for inside a useTickEffect - if I move this into useLifecycleEffect it does not happen anymore.

Has somebody any clue where I can look further?

BTW versions used:

halogen - v.5.1.0
halogen-hooks - v.0.4.3

BTW versions used:

halogen - v.5.1.0
halogen-hooks - v.0.4.3

tried updated the package-set (now halogen is v.5.1.1) - did not help :(

tried updated the package-set (now halogen is v.5.1.1) - did not help :(

I narrowed it down some more - please decide if this is an bug or it's me being stupid.

Background: I needed some way to keep track of logged-in users so my idea was to use a Handle-Pattern, put the Handle into a reader-monad (to pass it around) and be somewhat clever with IxQueue to create a EventSource components can subscribe to when the status of the login changes.
The problem here seems to be, that the affjax-call I mentioned eventually will update this status and trigger the eventsource and the main/routing component is subscribed to that (I need to know if the current users has certain rights to give access to restricted routes) - that seems to have caused the issue here (if I remove the emit or something similar the bug will go away).

Should I still try to create some sort of minimum-example? It probably would involve all that.

Some details on the implementation
this is the implementation in case someone want to take a look
module Services.Login.Handle
  ( Handle
  , init
  , subscribe
  , putToken
  , readToken
  ) where

import Prelude

import Control.Error.Util (hush)
import Data.Maybe (Maybe)
import Effect.Aff.Class (class MonadAff)
import Effect.Class (class MonadEffect, liftEffect)
import Effect.Ref as Ref
import Halogen (SubscriptionId)
import Halogen.Hooks (HookM)
import Halogen.Hooks as Hooks
import Halogen.Query.EventSource (EventSource, Finalizer(..), effectEventSource, emit)
import IxQueue as Queue
import Services.Login.Token (JwtToken)

newtype Handle
  = Handle
  { setToken :: forall m. MonadEffect m => Maybe JwtToken -> m Unit
  , getToken :: forall m. MonadEffect m => Unit -> m (Maybe JwtToken)
  , eventSource :: forall m. MonadAff m => String -> EventSource m (Maybe JwtToken)
  }

init :: forall m. MonadAff m => Maybe JwtToken -> m Handle
init initToken = do
  current <- liftEffect $ Ref.new initToken
  -- Queue to broadcast new Token/Users
  queue <- liftEffect $ Queue.new
  let
    setToken :: forall m'. MonadEffect m' => Maybe JwtToken -> m' Unit
    setToken token = liftEffect do
      Ref.write token current
      Queue.broadcast queue token

    getToken :: forall m'. MonadEffect m' => Unit -> m' (Maybe JwtToken)
    getToken unit = liftEffect $ Ref.read current

    eventSource :: forall m'. MonadAff m' => String -> EventSource m' (Maybe JwtToken)
    eventSource subId =
      effectEventSource \emitter -> do
        Queue.on queue subId  (emit emitter)
        -- on unsubscribe remove the handler from the queue
        pure $ Finalizer (void $ Queue.del queue subId)
  pure
    $ Handle
        { setToken
        , getToken
        , eventSource
        }

subscribe :: forall m. MonadAff m => Handle -> String -> (Maybe JwtToken -> HookM m Unit) -> HookM m SubscriptionId
subscribe (Handle h) subId onTokenChanged = Hooks.subscribe (map onTokenChanged $ h.eventSource subId)

putToken :: forall m. MonadEffect m => Handle -> Maybe JwtToken -> m Unit
putToken (Handle h) token = h.setToken token

readToken :: forall m.

Background: I needed some way to keep track of logged-in users so my idea was to use a Handle-Pattern, put the Handle into a reader-monad (to pass it around) and be somewhat clever with IxQueue to create a EventSource components can subscribe to when the status of the login changes.
The problem here seems to be, that the affjax-call I mentioned eventually will update this status and trigger the eventsource and the main/routing component is subscribed to that (I need to know if the current users has certain rights to give access to restricted routes) - that seems to have caused the issue here (if I remove the emit or something similar the bug will go away).

Should I still try to create some sort of minimum-example? It probably would involve all that.

Some details on the implementation
this is the implementation in case someone want to take a look
module Services.Login.Handle
  ( Handle
  , init
  , subscribe
  , putToken
  , readToken
  ) where

import Prelude

import Control.Error.Util (hush)
import Data.Maybe (Maybe)
import Effect.Aff.Class (class MonadAff)
import Effect.Class (class MonadEffect, liftEffect)
import Effect.Ref as Ref
import Halogen (SubscriptionId)
import Halogen.Hooks (HookM)
import Halogen.Hooks as Hooks
import Halogen.Query.EventSource (EventSource, Finalizer(..), effectEventSource, emit)
import IxQueue as Queue
import Services.Login.Token (JwtToken)

newtype Handle
  = Handle
  { setToken :: forall m. MonadEffect m => Maybe JwtToken -> m Unit
  , getToken :: forall m. MonadEffect m => Unit -> m (Maybe JwtToken)
  , eventSource :: forall m. MonadAff m => String -> EventSource m (Maybe JwtToken)
  }

init :: forall m. MonadAff m => Maybe JwtToken -> m Handle
init initToken = do
  current <- liftEffect $ Ref.new initToken
  -- Queue to broadcast new Token/Users
  queue <- liftEffect $ Queue.new
  let
    setToken :: forall m'. MonadEffect m' => Maybe JwtToken -> m' Unit
    setToken token = liftEffect do
      Ref.write token current
      Queue.broadcast queue token

    getToken :: forall m'. MonadEffect m' => Unit -> m' (Maybe JwtToken)
    getToken unit = liftEffect $ Ref.read current

    eventSource :: forall m'. MonadAff m' => String -> EventSource m' (Maybe JwtToken)
    eventSource subId =
      effectEventSource \emitter -> do
        Queue.on queue subId  (emit emitter)
        -- on unsubscribe remove the handler from the queue
        pure $ Finalizer (void $ Queue.del queue subId)
  pure
    $ Handle
        { setToken
        , getToken
        , eventSource
        }

subscribe :: forall m. MonadAff m => Handle -> String -> (Maybe JwtToken -> HookM m Unit) -> HookM m SubscriptionId
subscribe (Handle h) subId onTokenChanged = Hooks.subscribe (map onTokenChanged $ h.eventSource subId)

putToken :: forall m. MonadEffect m => Handle -> Maybe JwtToken -> m Unit
putToken (Handle h) token = h.setToken token

readToken :: forall m. MonadEffect m => Handle -> m (Maybe JwtToken)
readToken (Handle h) = h.getToken unit

now with halogen-subscriptions out I could remove the extra queue there and either that or the new version together with halogen-6 seems to have solved this issue (at least for me).


chore: merge dev into main 5-22-24

Description
What this PR does / why we need it:

merges dev into main

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Helm Chart Change (any edit/addition/update that is necessary for changes merged to the main branch)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[ ] Does the affected code have corresponding tests?
[ ] Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
[ ] Does this introduce breaking changes that would require an announcement or bumping the major version?
[ ] Do all new files have appropriate license header?

Post Merge Requirements

[ ] MAINTAINERS: manually trigger the "Publish Package" workflow after merging any PR that indicates Helm Chart Change

thanks for the reminder! lets merge this one in the community meeting.

looks like all the AKS test is having some issues

@susanshi @binbin-li I think we're ready to merge this? The AKS test is unblocked thanks to Binbin's efforts.


Revert to nodejs 18.17.1

Reason:
libuv update in 18.18.0 breaks webpack's thread-loader
Node issue:
https://github.com/nodejs/node/issues/49911
Fix:
Reverting back the node version to 18.17.1 for a temporary fix.
The issue to revert back this temporary fix in the future:
https://github.com/red-hat-storage/odf-console/issues/1069

/approve

/approve

/cherry-pick release-4.14

/cherry-pick release-4.14-compatibility


__eq metamethod does not work

Hello! The __eq metamethod does not work, at all.
Sample code:
local t = setmetatable({}, {
    __eq = function()
        return true
    end,
})

print(t == {}) -- should print true, but prints false

The official Lua demo page correctly runs this code and outputs true, but Luau seems to be struggling with it. (tested on Luau 0.596-windows, latest at the time of writing)

Also the case with Roblox (on a completely blank workspace):

For completeness, the following two code samples do not work too:
local t = {}
setmetatable(t, {
    __eq = function()
        return true
    end,
})

print(t == {}) -- should print true, but prints false

local t = {}
t.__eq = function()
    return true
end

print(t == {}) -- should print true, but prints false

luau-compile output: https://gist.github.com/DimitarBogdanov/2c72dd31ef5ea465a50e8aca3ee15715

I'm speculating here, but it seems that this would be the reason for the issue:
Referenced in compileExprBinary, the compileCompareJump function doesn't seem to check if the type is a table when emitting.
Linked code:
// this is in an if statement which checks if the left value is a constant, which it isn't here
        else
        {
            LuauOpcode opc = getJumpOpCompare(expr->op, not_);

            uint8_t rr = compileExprAuto(right, rs);

            size_t jumpLabel = bytecode.emitLabel();

            if (expr->op == AstExprBinary::CompareGt || expr->op == AstExprBinary::CompareGe)
            {
                bytecode.emitAD(opc, rr, 0);
                bytecode.emitAux(rl);
            }
            else
            {
                bytecode.emitAD(opc, rl, 0);
                bytecode.emitAux(rr);
            }

            return jumpLabel;
        }
    }

Why is this the behavior? It's non-compliant to Lua - and not documented in the compatibility docs.

Luau is based on Lua 5.1 and doesn't include all the changes from later versions.
Luau is compliant to Lua 5.1 and 5.2 here.

We will update the compatibility document to note that this change from 5.3 is not supported.

This makes sense. Thank you.


Update the testing framework in SODA Dashboard

Issue/Feature Description:
Update the testing framework that is shipped with the SODA Dashboard.
Why this issue to fixed / feature is needed(give scenarios or use cases):
The testing framework that was installed alongwith the SODA Dashboard includes Karma and Jasmine.
Over time the Angular version and version of some of the other dependencies have been updated but the test framework was not updated. To implement unit testing and to integrate the same with CI the testing framework needs to be updated to the latest supported version.
Other Notes /  Environment Information: (Please give the env information, log link or any useful information for this issue)

@kumarashit @skdwriting
I updated the testing framework by updating the versions of Karma, Jasmine and their dependencies.
There were some issues with the typings for Jasmine core and this required to remove the node typings from the current dashboard. Removing this may cause something to break and so i have to test the application features and build before raising the PR.


MNT: Re-rendered with conda-smithy 2.4.5

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


parquet dictionary filter does not work.

When perform selective query, we observed that dictionary filter was not applied.  Please see following code snippet.
if (rowGroupOffsets != null) {
  // verify a row group was found for each offset
  List<BlockMetaData> blocks = reader.getFooter().getBlocks();
  if (blocks.size() != rowGroupOffsets.length) {
    throw new IllegalStateException(
        "All of the offsets in the split should be found in the file."
        + " expected: " + Arrays.toString(rowGroupOffsets)
        + " found: " + blocks);
  }

} else {

*Why apply data filter when row group offset equal to null? *
// apply data filters
reader.filterRowGroups(getFilter(configuration));
}
I can enable filter after move else block code into second layer if.
Environment: Hive 2.2.0 + Parquet-mr 1.9.0/master
Reporter: Junjie Chen / @chenjunjiedada
Note: This issue was originally created as PARQUET-1061. Please see the migration documentation for further details.

Ryan Blue / @rdblue:
Did you set the property to enable dictionary filtering? https://github.com/apache/parquet-mr/blob/master/parquet-hadoop/src/main/java/org/apache/parquet/filter2/compat/RowGroupFilter.java#L95

Junjie Chen / @chenjunjiedada:
Yes, I already set parquet.filter.dictionary.enabled to true.
ParquetFileReader#filterRowGroup is called in ParquetRecordReader#initializeInternalReader. while in initializeInternalReader, filterRowGroup will be called when (rowGroupoffset == null).
If rowGroupOffset == null means no row group in split(am I right?), so the call is wrong here.

Junjie Chen / @chenjunjiedada:
Hi [~blue_impala_48d6]
Could you please help take a look?

Junjie Chen / @chenjunjiedada:
In parquet storage handler, when parquet.task.side.metadata set, rowGroupOffset is null.  While when hive doesn't use storage handle, it implements ParquetRecordReaderWrapper by itself which use deprecated ParuqetInputSplit construct. Then the rowGroupOffset is not null.  So this is not a parquet issue.

Junjie Chen / @chenjunjiedada:
Hi [~blue_impala_48d6]
Could you please try it out?

Hudson:
[ https://issues-test.apache.org/jira/browse/PARQUET-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265591#comment-16265591 ]
Jorge Machado commented on PARQUET-1061:
Hi guys,
I'm trying to read a parquet file in parallel outside of hadoop. Spark is using  the class ParquetInputSplit.
I would like to use it to but I'm wondering how to get the rowGroupOffsets[] ? is this the start position from every single block ?

thanks

–
This message was sent by Atlassian JIRA
(v7.6.0#76001)


[PLUGIN-115] Implementation of Datastage functions

This PR includes a few changes

[x] Reorganized documentation [1].
[x] Added new date and time functions.
[x] Added new null functions.
[x] Added logical test functions.
[x] Added number functions.
[x] Improved json functions.
[x] Improved geo functions.
[x] Fixing EL error handling and messaging.

@CuriousVini can you please take a look at it again

This was broken up into smaller PRs and merged.


Image Permissions from SSI book?

@peacekeeper can we get permission to include this image (with a link to the src of course) in the DIF FAQ?

@bumblefudge I think it was @talltree who created this particular image, and he as well as Alex Preukschat are more familar with the book publication process and associated legal question, so you should ask them.


Not listed yet: www.tiobe.com

The website at this url is unlisted: https://www.tiobe.com/tiobe-index/

This site is now listed in the latest version of Global Consent Manager. Thank you for the notification and let us know if you have any more issues.

Also, note that the Mozilla Add-On release will only be updated when I've finished all of the current listing issues. Today or tomorrow.


docker: unit test case failure when running shell command with timeout

When run in Docker, the following test case fails in maint-1.1 branch:
$ nosetests invenio.shellutils_unit_tests:RunProcessWithTimeoutTest.test_run_cmd_timeout
F
======================================================================
FAIL: shellutils - running simple command with expiring timeout
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/invenio/lib/python/invenio/shellutils_unit_tests.py", line 155, in test_run_cmd_timeout
    self.failUnless(time.time() - t1 < 8, "%s < 8" % (time.time() - t1))
AssertionError: 13.0472679138 < 8

----------------------------------------------------------------------
FAILED (failures=1)

When run in regular OS environment, things work fine.
Would be good to investigate and fix this, so that all maint-1.1 tests pass in Docker, like they do in regular OS environment.

Works now with the latest maint-1.1 branch:
$ docker exec -i -t inveniomaint11_web_1 /bin/bash
bash-3.2$ nosetests invenio.shellutils_unit_tests:RunProcessWithTimeoutTest.test_run_cmd_timeout
.
----------------------------------------------------------------------
Ran 1 test in 7.153s

OK


Kubernetes Runbook: Kubelet has too many pods

Is your feature request related to a problem? Please describe.
Kubelets have a configuration that limits how many Pods they can run. The default value of this is 110 Pods per Kubelet, but it is configurable. It will be great to have a runbook that detects when Kubelet has more than desired capacity of pods and mitigates the issue.
Describe the solution you'd like
Here's a Prometheus runbook for this: https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubelettoomanypods/

Hello, I am interested in working on this issue, can you please assign it to me?

@tsari02 , assigning this to you.

Yeah, I would like to work on this.
My approach would be to increase the capacity of pods to more than 110, am I proceeding in the right direction?
Also, I am completely new to Kubernetes, could you tell some resources which can serve as prerequisite to solve this issue or is reading the repo sufficient?

Hey @tsari02 , the pod limit is enforced and we can't change that. We will have to scale up the resources here. @abhishek-unskript , can we help @tsari02 with the appropriate resources here?

@jayasimha-raghavan-unskript can help here.

Hello @tsari02!
Thank you for helping us out.
Here are some documentation links
Kubernetes Architecture
Kubernetes Nodes
Kubernetes Resource Limits
Best practices for Deploying Kubernetes cluster
Best practice for Resource requests and limit
Here a brief digest that could you help you get started.
Kubernetes has many components that gets deployed as soon as you install a Kubernetes cluster.
There are many ways to install a kubernetes cluster locally, Like K3S, Minikube, Microk8s, etc..
Also Many cloud providers have their own Kubernetes solutions like AWS's EKS, Googles K8S Cluster, etc..
Lets consider a deployment scenario where the cluster has a single node, N1.  Say there are about 109 PODS on N1.  Node N1 is being used almost to its capacity.  Consider there is a new Microservice (lets call it API metrics module) that need to be installed in this cluster. If we try to deploy this Pod (with 2 replica set) on node N1, the Kubelet will complain saying, the Maximum pod count has reached, cannot be deployed on Node N1.
This runbook as @JBAhire explained earlier, is intended to be run proactively that will detect if the Node's maximum capacity is about to reach (say at 95%), Once it detects, will inform the User to either Add a New Node to the cluster or consider increasing the POD Count via configuration if the given host has enough resource to support the new POD.
Let me know if you have any questions.


Donation button missing

Hello,
For some reason that I cannot seem to figure out, there is no donate button on our account: https://gratipay.com/~riseup.net
I've added an email address, confirmed it and added a paypal connection, but it still isn't showing up.
The button I mean is like on this one, where it says "Give to Nuvola...": https://gratipay.com/nuvola-player/
Maybe we aren't "approved"? If so, how do we go about getting approved?
thanks!
Riseup

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27999704-donation-button-missing?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github).

Sorry for the confusion, @riseupdotnet. :-(
When we relaunched as Gratipay 2.0 earlier this year, we reified a distinction between so-called "~users" and "Teams." We have a ticket about better differentiating ~user and Team pages (#3852), and I've added a +1 for you there.
You can read our 2.0 announcement for all the details, but the tl;dr is that you'll need to apply for a new Team in order to get back on track.

Gonna go ahead and close this out. We can reopen if you have more questions here. :-)


Rationalle for autobind decorator comparing to = () => syntax sugar

In time of introducing React 0.13 Facebook devs ran into same problem and proposed to autobind method syntactically as:
class Counter extends React.Component {
  tick = () => {
    ...
  }
  ...
}

This syntax already work when using Babel with stage=0 setting, so I want to understand what problems solved @autobind decorator and is it ok, when one goal reached by two completely different ways?
More about autobinding from React v0.13.0 Beta 1 blog post

So
class Counter extends React.Component {
  tick = () => {
    ...
  }
  ...
}

vs.
class Counter extends React.Component {
  @autobind
  tick() {
    ...
  }
  ...
}

Don't have the answer so just some observations.
Both are explicit about the intentions.
Instance property version props:

Doesn't require using 3rd party code

Instance property version cons:

Looks too cryptic
It doesn't really clear from syntax what this does point to inside the function.

Decorator version pros:

Looks like a method (but decorated)

Decorator version cons:

Look too cryptic (though a little less cryptic to me than instance property version)

One advantage of the decorator and bound method would be that when debugging you should get a named function vs an anonymous function. I guess that would just be down to personal preference of the developer or what syntax they prefer. The react solution is certainly simple.

Thanks for clarification, this should be closed now, after fixing https://github.com/babel/babel-eslint/issues/71 I prefer to stay on () => {} syntax, but would know that there is @autobind alternative.

One pro is we'll be able to support hot reloading decorated version in React Hot Loader 2 (you can try react-hot-loader@2.0.0-alpha). We'll eventually get to supporting property syntax too, but probably outside React Hot Loader, with a Babel plugin, and not very soon. :-)

Hi guys,
when you are using () => {} you are not able to override this method in extended class. This is the huge disadvantage.
@autobind is great but sometimes is better to use ES7 :: instead of bind