Update readme

What is the purpose of the change
Correct some typos.
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[ ] Run mvn clean install -DskipTests & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #2488 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2488      +/-   ##
============================================
+ Coverage     54.99%   55.02%   +0.02%
- Complexity     5265     5266       +1
============================================
  Files           573      573
  Lines         25454    25454
  Branches       4520     4507      -13
============================================
+ Hits          13998    14005       +7
+ Misses         9358     9350       -8
- Partials       2098     2099       +1

Impacted Files
Coverage Δ
Complexity Δ

...onfig/spring/extension/SpringExtensionFactory.java
78.57% <0%> (-7.15%)
10% <0%> (ø)

...bo/rpc/protocol/dubbo/telnet/LogTelnetHandler.java
68.57% <0%> (-2.86%)
3% <0%> (ø)

...va/org/apache/dubbo/remoting/exchange/Request.java
83.33% <0%> (-2.39%)
20% <0%> (ø)

...in/java/org/apache/dubbo/common/utils/IOUtils.java
84.78% <0%> (-2.18%)
15% <0%> (-1%)

.../dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java
43.75% <0%> (-1.57%)
8% <0%> (ø)

...ache/dubbo/remoting/transport/mina/MinaClient.java
56.92% <0%> (-1.54%)
8% <0%> (-1%)

...ache/dubbo/common/compiler/support/ClassUtils.java
48.12% <0%> (-1.07%)
61% <0%> (ø)

...che/dubbo/common/compiler/support/JdkCompiler.java
64.54% <0%> (ø)
5% <0%> (ø)
:arrow_down:

...pache/dubbo/registry/support/AbstractRegistry.java
68.53% <0%> (+1.12%)
62% <0%> (ø)
:arrow_down:

...e/dubbo/remoting/transport/netty4/NettyServer.java
75.4% <0%> (+3.27%)
10% <0%> (+1%)
:arrow_up:

... and 4 more

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 8c2f34e...92c5156. Read the comment docs.

looks good to me.


"exec format error" on RPi

While trying out getumbrel/middleware:v0.1.0-build.1

getumbrel/middleware:v0.1.0-build.1 was an x64 image 🤦♂


Help Understanding Config

Could I get some assistance with the config file?  How would I slow the rate at which trees grow?
What is the difference between GrowthMultiplier and GrowthRateMultiplier, and how do they play together to affect tree growth rates on the server?

This is the place to report bugs with the mod. For help with the mod I recommend asking in the official Discord or in another modding forum/reddit/IRC.


SWA should have resolution and interval/frequency hparams

SWA should have a resolution hparam for controlling whether the averaged model is updated with stepwise or epochwise resolution, and a frequency or interval hparam for controlling the number of steps/epochs per update.

Closing. Tracking elsewhere as low pri


Output of ank apply is flickering

Assume an Ankaios manifest with an error inside like:
apiVersion: v0.1
workloads:
  invalidworkload:
    runtime: podman
    agent: agent_A
    runtimeConfig: |
      image: docker.io/busybox:latest
      commandOptions: ["--invalidoption"]

When this is applied using ank apply the output flickers and is hard to read for the user. In regular intervals a newline is added between the header and the table content. See

In addition the final output does not contain the cause anymore:
❯ ank apply invalidworkload.yaml
 WORKLOAD NAME     AGENT     RUNTIME     EXECUTION STATE           ADDITIONAL INFO

 invalidworkload   agent_A   podman      Pending(StartingFailed)   No more retries.

which makes it even harder for the user to determine the problem (here the invalid option).
Current Behavior
When ank apply is called and the manifest contains an error a retry is executed and the output between the retries changes its position.
Expected Behavior
The output should not change its position such that it is easier for the user the read it and determine the error source. In addition the final message and also ank get workloads should show the real error message and not No more retries.
Steps to Reproduce

Install Ankaios with the setup script
sudo systemctl start ank-server ank-agent
ank apply invalidworkload.yml (see above for content).

Context (Environment)

Ankaios v0.3.0
Podman 4.9.3

Logs

Additional Information

Final result

To be filled by the one closing the issue.

We can try a no-wrap functionality which cuts the line according to the size of the terminal.
To enrich the "Pending(StartingFailed)   No more retries." with more information we can use transition function for states or we can use the information available. Maybe we also need an additional sub-state for the no-more-retries.

We can try a no-wrap functionality which cuts the line according to the size of the terminal. To enrich the "Pending(StartingFailed) No more retries." with more information we can use transition function for states or we can use the information available. Maybe we also need an additional sub-state for the no-more-retries.

The tabled crate does not support a no wrap option. However I search for alternatives.

Somehow we need to handle long lines, i.e. lines that are longer than the terminal width. I see two options:

Truncate the line
Break the line but keep the text in the current column

If we break a line and continue in another column then it looks ugly.

Somehow we need to handle long lines, i.e. lines that are longer than the terminal width. I see two options:

Truncate the line
Break the line but keep the text in the current column

If we break a line and continue in another column then it looks ugly.

I have tested a truncating and a wrap of the additional info column and both functions require a maximum width as a number as an argument. You can use percentage values, but it didn't work with the column-specific setting (compiler error). In order to get the available remaining width of the terminal for the last column, a manual calculation is necessary. The terminal size can be easily obtained using an existing crate in our code base, but determining the size of the columns using the Tabled create Table object is rather cumbersome (string table output parsing) or the column size can only be determined inaccurately. All the manual workarounds in the code appear to be impractical and error-prone.  I have created an issue describing our problem: https://github.com/zhiburt/tabled/issues/407. I hope the authors suggest a solution or a workaround.

I implemented the following approach:

When the user runs ank apply ..., the additional info column is truncated and suffixed by '...' according to the available terminal width.

When the user runs 'ank get workloads', the additional info column shows the full detailed message, but the column is wrapped according the available terminal width.

For both commands, if the terminal window is too small so that the header column names cannot be shown in a single line I output the default table and no wrap/truncate is done. This prevents ugly output like this:

How it looks:

PR was reviewed and merged.


adb: command not found

When I run the command line “adb”  it shows that "command not found"，but at the time I use the terminal ,it works properly

did u config android tool path in .zshrc?

There are many posts on how to configure Android adb in the shell of your choice, including here: https://stackoverflow.com/questions/17901692/set-up-adb-on-mac-os-x

I have solved the problem,thank you

You Should put your solution here to other people

The folder where the adb command is located needs to be in $PATH.

oh-my-zsh config


JSON parsing error

Coverage is generated but I get this stack trace after every test run.
/Users/tyler.hampton/.rvm/gems/ruby-2.1.5/gems/multi_json-1.10.1/lib/multi_json/adapter.rb:19:in `load': JSON::ParserError (MultiJson::ParseError)
	from /Users/tyler.hampton/.rvm/gems/ruby-2.1.5/gems/multi_json-1.10.1/lib/multi_json.rb:119:in `load'
	from /Users/tyler.hampton/.rvm/gems/ruby-2.1.5/gems/simplecov-0.9.1/lib/simplecov/json.rb:10:in `parse'
	from /Users/tyler.hampton/.rvm/gems/ruby-2.1.5/gems/simplecov-0.9.1/lib/simplecov/last_run.rb:10:in `read'
	from /Users/tyler.hampton/.rvm/gems/ruby-2.1.5/gems/simplecov-0.9.1/lib/simplecov/defaults.rb:66:in `block in <top (required)>'

Thanks for the bug report.  Without more information, though, there's not much we can do.  From the stack trace, it looks like it's reading a file in from the file system.  Check what json files you have in your coverage dir.

@howdoicomputer Can you please try deleting the coverage dir and regenerating from scratch? It seems something hicked up and cleaning up probably will resolve it.
Closing, please feel free to reopen if you can reproduce this after cleaning up.


PowerLauncher high CPU and PowerToys Run does not open

Microsoft PowerToys version
0.37.2
Running as admin

[X] Yes

Area(s) with issue?
General, PowerToys Run
Steps to reproduce
Updated from 37.1 to 37.2 , after a clean start of Windows 10, PowerLaucher uses high cpu (15%) forever.
Using Alt+space doesn't start Power Run as expected.
PowerLaucher uses 143Mb RAM.
Update: after 30sh minutes the "Run" window showed up and cpu went to 0%.
I'm using a corporate pc, so I can provide a debug zip via private channels.
✔ Expected Behavior
PowerLaucher uses no cpu at startup or at least for less time.
❌ Actual Behavior
PowerLaucher uses high cpu forever.
Using Alt+space doesn't start Power Run as expected.
PowerLaucher uses 143Mb RAM.
Update: after 30sh minutes the "Run" window showed up and cpu went to 0%.
Other Software
No response

Probably caused by the Program plugin indexing

tks @mykhailopylyp for your reply. Do you know if it's possible to disable part of the indexing?
If there is a index going through the whole filesystem, maybe the problem could be some node_modules folders I have?

@mykhailopylyp I tried to disable it and restart, but no visible changes, or at least it runs for more than 20 minutes. So I think it's something else. Any other ideas?

@rallets
Right-click on the PowerToys icon in the tray menu and select Report Bug

Drag and drop report into a GitHub comment.

@mykhailopylyp can I send this privately to someone somehow? It's a corporate pc, and I saw in the logs there are some sensitive information.

@rallets
Can you share %appdata%\..\Local\Microsoft\PowerToys\PowerToys Run\Logs folder or it also contains sensitive information?

I did an anonymization round on the file, let me know please once you are done, so I can remove it
PowerToys RunLogs_<IP_ADDRESS>_2021-05-18.zip

@rallets
Thank you! You can remove it now.

From logs
[2021-05-18 09:51:21.6970] [INFO] [S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50]
Microsoft.Plugin.Program.Main - Win32Program index cost <1764272ms>

[2021-05-18 10:41:27.6590] [INFO] [S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50]
Microsoft.Plugin.Program.Main - Win32Program index cost <1718432ms>

It is Program indexing that takes around 28.6 seconds.

Action items:

Move program indexing out of the Program plugin. So users can disable it and don't get this impact.
Reconsider Program plugin approach

It is tracked by https://github.com/microsoft/PowerToys/issues/7208

@mykhailopylyp yes the difference is due to the Program plugin been disabled. It still takes 29sh minutes to run.
I would suggest to add an "exclude folders" filter, for example I have some node_modules folder that are indexed and they are huge and "useless" (ex. /node_modules/).
Thank you for your support


[engine] Sync Flutter 3.22.0 source code

+) https://github.com/flutter-tizen/engine/tree/flutter-3.22.0

Rebased


Fix broken since 4.2 (maybe 4.1)

I just tried raiden boss fight today and the fix isn't working anymore, it need to be updated. Last time it was working for me was 4.0, didn't tried with 4.1.

Have you installed the latest version of the fix?
The fix has undergone a HUGE Change since 4.1... :stuck_out_tongue_winking_eye:

If you do not want to always go on Github and worry about whether you have the latest version, I recommend you to run by CMD as a Python Module:
Step 1
Install the latest release by typing on CMD:
python -m pip install -U FixRaidenBoss2

Step 2
run this line on CMD in the Raiden mod folder
python -m FixRaidenBoss2

More info at README
All Version Releases:
https://github.com/Alex-Au1/Fix-Raiden-Boss/releases

IF THE NEWEST CHANGES DOES NOT WORK, PLEASE SCREENSHOT THE ERROR LOG

@nhok0169
in my opinion, this issue can be closed (I don't have permissions to close it)

Yes i'm using latest version of the python script, it do not produce error but it do not work, the boss model is still completely broken after running the fix.

@Alex-Au1 I do not open issue for nothing so please refrain yourself, thank you.

Is this a specific individual mod on the site? If it is I can test it out.
Otherwise, send the .ini file

Here is the mod used : https://gamebanana.com/mods/437248

interesting,
send your .ini file
not sure if it may be build issue,
cause im able to get the mod work on my computer

Well, I use latest publicly available GIMi (v7) so if it work for you then there is something that buf it out on my side for sure. I will have to check mods one by one until I found the [culpit.
Here is the ini : RaidenShogun.zip

Not sure if this has anything to do anything but when comparing .ini to mine, it looks like you are using the white fur's .ini file instead of the black fur's .ini file based on our different draw values

Also, looks like your .ini does not have the 4.1 fix

Holly molly that was it, I don't know why but the draw potision was borked.


Enable QUALIFY without GROUP BY / WHERE / HAVING

Closes #123

Codecov Report

Merging #201 (b8e896a) into main (745096f) will increase coverage by 0.02%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
+ Coverage   47.82%   47.84%   +0.02%
==========================================
  Files          47       47
  Lines       17923    17919       -4
==========================================
+ Hits         8571     8573       +2
- Misses       7910     7913       +3
+ Partials     1442     1433       -9

@goccy I've updated the variable scope

Thank you !!! LGTM 👍


README.md broken link

The second link in the README is no longer available, please update it.
See the following part:
Installation & First Steps
If you want the latest release version of the PLCnext CLI, you can find it in the PLCnext Technology controller download area.
For more information and first steps with PLCnext Technology please visit our PLCnext Community.

The correct URL for the second link is something like this:
https://www.plcnext.help/te/Programming/Introduction.htm

Will be fixed with the next update.


Add More Customization Options

Allow users to customize additional aspects of the flashcards, such as colors or layout.

I think I can work on this. Do you mind assigning this issue to me?


Generation the Helmholz Table

It is not clear in your documentation on how to generate the table you are interpolating over. If I want to make a table that has the true values (or as close as I can get numerically) how would I do that?

Unfortunately, I've never made the table and the code provided here is not capable of generating the table itself. I can point you to the webpage of the original Fortran code that interpolates the table http://cococubed.asu.edu/code_pages/eos.shtml and the paper describing the method is here: https://iopscience.iop.org/article/10.1086/313271/pdf

Ok, thank you.


Looping and Loop Control in Java

Brief Summary:
Describe the what, why, and how of your content idea in 2-5 sentences.
This article would introduce the reader to looping and control in Java. It would introduce the reader to the various loop constructs like:

for loop
while loop
do...while loop

And also some looping control statements like:

break
continue

Key Takeaways:
What are the 3-5 most important things the reader should understand or be able to do after reading this article?

The reader will be able to understand the various looping statements in Java.
The reader will be able to use various control statements to control loops.
The reader will be given hands-on examples and will be able to use loops in the Java language.

References:
Please list links to any published content/research that you intend to use to support/guide this article. (If none, please indicate 'N/A'.)
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/flow.html

@cyberShaw Could you please expand upon how your article will differ from what's already available in the documentation?

@cyberShaw Could you please expand upon how your article will differ from what's already available in the documentation?

@cyberShaw Could you please expand upon how your article will differ from what's already available in the documentation?

You're right. There wouldn't be enough value to this topic. Can you close this issue so that I can open a new topic?


Impossible to run with JAX_DISABLE_JIT set to True model with zero dof

Related issue on JAX: https://github.com/google/jax/issues/4668
The error is:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
File /home/acroci/repos/component_alpha/rigid_contacts_analytical.py:11
      [7](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:7) integration_time = 0.001
      [9](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:9) representation = jaxsim.VelRepr.Mixed
---> [11](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:11) data = js.data.JaxSimModelData.build(
     [12](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:12)     model=model,
     [13](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:13)     velocity_representation=representation,  # standard_gravity=7.0
     [14](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:14) )
     [15](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:15) # integrator = integrators.fixed_step.RungeKutta4SO3.build(
     [16](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:16) # integrator = integrators.fixed_step.ForwardEuler.build(
     [17](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:17) integrator = integrators.fixed_step.ForwardEulerSO3.build(
     [18](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:18)     dynamics=js.ode.wrap_system_dynamics_for_integration(
     [19](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:19)         model=model,
   (...)
     [25](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:25)     ),
     [26](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/rigid_contacts_analytical.py:26) )

File ~/repos/jaxsim/src/jaxsim/api/data.py:186, in JaxSimModelData.build(model, base_position, base_quaternion, joint_positions, base_linear_velocity, base_angular_velocity, joint_velocities, standard_gravity, contact, contacts_params, velocity_representation, time)
    [176](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:176) time_ns = (
    [177](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:177)     jnp.array(time * 1e9, dtype=jnp.uint64)
    [178](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:178)     if time is not None
    [179](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:179)     else jnp.array(0, dtype=jnp.uint64)
    [180](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:180) )
    [182](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:182) if isinstance(model.contact_model, SoftContacts):
    [183](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:183)     contacts_params = (
    [184](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:184)         contacts_params
    [185](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:185)         if contacts_params is not None
--> [186](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:186)         else js.contact.estimate_good_soft_contacts_parameters(
    [187](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:187)             model=model, standard_gravity=standard_gravity
    [188](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:188)         )
    [189](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:189)     )
    [190](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:190) else:
    [191](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/data.py:191)     contacts_params = model.contact_model.parameters

File ~/repos/jaxsim/src/jaxsim/api/contact.py:270, in estimate_good_soft_contacts_parameters(model, standard_gravity, static_friction_coefficient, number_of_active_collidable_points_steady_state, damping_ratio, max_penetration)
    [263](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:263)         return 2 * (W_pz_CoM - W_pz_C.min())
    [265](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:265)     return 2 * W_pz_CoM
    [267](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:267) max_δ = (
    [268](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:268)     max_penetration
    [269](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:269)     if max_penetration is not None
--> [270](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:270)     else 0.005 * estimate_model_height(model=model)
    [271](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:271) )
    [273](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:273) nc = number_of_active_collidable_points_steady_state
    [275](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:275) sc_parameters = SoftContactsParams.build_default_from_jaxsim_model(
    [276](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:276)     model=model,
    [277](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:277)     standard_gravity=standard_gravity,
   (...)
    [281](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:281)     damping_ratio=damping_ratio,
    [282](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:282) )

File ~/repos/jaxsim/src/jaxsim/api/contact.py:259, in estimate_good_soft_contacts_parameters.<locals>.estimate_model_height(model)
    [252](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:252) """"""
    [254](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:254) zero_data = js.data.JaxSimModelData.build(
    [255](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:255)     model=model,
    [256](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:256)     contacts_params=SoftContactsParams(),
    [257](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:257) )
--> [259](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:259) W_pz_CoM = js.com.com_position(model=model, data=zero_data)[2]
    [261](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:261) if model.floating_base():
    [262](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/contact.py:262)     W_pz_C = collidable_point_positions(model=model, data=zero_data)[:, -1]

File ~/repos/jaxsim/src/jaxsim/api/com.py:29, in com_position(model, data)
     [16](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:16) """
     [17](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:17) Compute the position of the center of mass of the model.
     [18](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:18)
   (...)
     [24](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:24)     The position of the center of mass of the model w.r.t. the world frame.
     [25](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:25) """
     [27](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:27) m = js.model.total_mass(model=model)
---> [29](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:29) W_H_L = js.model.forward_kinematics(model=model, data=data)
     [30](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:30) W_H_B = data.base_transform()
     [31](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/com.py:31) B_H_W = jaxlie.SE3.from_matrix(W_H_B).inverse().as_matrix()

File ~/repos/jaxsim/src/jaxsim/api/model.py:441, in forward_kinematics(model, data)
    [427](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:427) @jax.jit
    [428](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:428) def forward_kinematics(model: JaxSimModel, data: js.data.JaxSimModelData) -> jtp.Array:
    [429](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:429)     """
    [430](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:430)     Compute the SE(3) transforms from the world frame to the frames of all links.
    [431](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:431)
   (...)
    [438](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:438)         The first axis is the link index.
    [439](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:439)     """
--> [441](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:441)     W_H_LL = jaxsim.rbda.forward_kinematics_model(
    [442](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:442)         model=model,
    [443](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:443)         base_position=data.base_position(),
    [444](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:444)         base_quaternion=data.base_orientation(dcm=False),
    [445](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:445)         joint_positions=data.joint_positions(model=model),
    [446](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:446)     )
    [448](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/api/model.py:448)     return jnp.atleast_3d(W_H_LL).astype(float)

File ~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:78, in forward_kinematics_model(model, base_position, base_quaternion, joint_positions)
     [74](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:74)     W_X_i = W_X_i.at[i].set(W_X_i_i)
     [76](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:76)     return (W_X_i,), None
---> [78](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:78) (W_X_i,), _ = jax.lax.scan(
     [79](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:79)     f=propagate_kinematics,
     [80](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:80)     init=propagate_kinematics_carry,
     [81](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:81)     xs=jnp.arange(start=1, stop=model.number_of_links()),
     [82](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:82) )
     [84](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/repos/jaxsim/src/jaxsim/rbda/forward_kinematics.py:84) return jax.vmap(Adjoint.to_transform)(W_X_i)

    [... skipping hidden 1 frame]

File ~/mambaforge/envs/jaxsim/lib/python3.11/site-packages/jax/_src/lax/control_flow/loops.py:231, in scan(f, init, xs, length, reverse, unroll, _split_transpose)
    [229](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/mambaforge/envs/jaxsim/lib/python3.11/site-packages/jax/_src/lax/control_flow/loops.py:229) if config.disable_jit.value:
    [230](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/mambaforge/envs/jaxsim/lib/python3.11/site-packages/jax/_src/lax/control_flow/loops.py:230)   if length == 0:
--> [231](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/mambaforge/envs/jaxsim/lib/python3.11/site-packages/jax/_src/lax/control_flow/loops.py:231)     raise ValueError("zero-length scan is not supported in disable_jit() mode because the output type is unknown.")
    [232](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/mambaforge/envs/jaxsim/lib/python3.11/site-packages/jax/_src/lax/control_flow/loops.py:232)   carry = init
    [233](https://file+.vscode-resource.vscode-cdn.net/home/acroci/repos/component_alpha/~/mambaforge/envs/jaxsim/lib/python3.11/site-packages/jax/_src/lax/control_flow/loops.py:233)   ys = []

ValueError: zero-length scan is not supported in disable_jit() mode because the output type is unknown.

I already encountered this problem in the past for similar reasons. Refer to:

https://github.com/ami-iit/jaxsim/pull/106
https://github.com/ami-iit/jaxsim/commit/945f04b683c3519772ad4ec7bb916bacd4400a3f

In that occasion, I fixed only the RBDAs that I needed. In your case, there are other ones that fail for similar reasons. Can you try to apply something similar to the following to exclude running the scan call?
https://github.com/ami-iit/jaxsim/blob/7340d43172d5ec528f3f7547d532ffeb9770355d/src/jaxsim/rbda/aba.py#L163-L171

This can be added to https://github.com/ami-iit/jaxsim/pull/186

This can be added to #186

Probably it's time to merge that PR. We're already a bit further than what I define "minor changes", as it often happens :smile:

I already encountered this problem in the past for similar reasons. Refer to:
* [Add new test suite of functional APIs #106](https://github.com/ami-iit/jaxsim/pull/106)

* [945f04b](https://github.com/ami-iit/jaxsim/commit/945f04b683c3519772ad4ec7bb916bacd4400a3f)

In that occasion, I fixed only the RBDAs that I needed. In your case, there are other ones that fail for similar reasons. Can you try to apply something similar to the following to exclude running the scan call?
https://github.com/ami-iit/jaxsim/blob/7340d43172d5ec528f3f7547d532ffeb9770355d/src/jaxsim/rbda/aba.py#L163-L171

Cool thanks, we had the intuition that a workaround something that was necessary, but we were a bit clueless. @xela-95 probably you can open a PR yourself with the fix proposed by @diegoferigo ?

Cool thanks, we had the intuition that a workaround something that was necessary, but we were a bit clueless. @xela-95 probably you can open a PR yourself with the fix proposed by @diegoferigo ?

Sure, I'll try to see if this fixes the issue and then open a PR :)

xref other jax issues:

https://github.com/google/jax/issues/8152
https://github.com/google/jax/pull/19517

The fix suggested by @diegoferigo is useful and may be useful for users finding related jax issues on search engines.

It's worth noting that (if I don't mistake) the fix works in our case only because the statement of the if operates on a static element (following model, kin_dyn_parameters, link_names). I fear that it won't work if the condition cannot be evaluated statically. In that case, using jax.lax.cond might be necessary.

Most cases we saw were indeed due to model.number_of_links() > 1 (and probably went unnoticed as it is not so common to integrate a rigid body without joints).

Most cases we saw were indeed due to model.number_of_links() > 1 (and probably went unnoticed as it is not so common to integrate a rigid body without joints).

We actually do support that, and single-body models are also part of our test suite (together with a fixed-based and a floating-base model). This went unnoticed because JIT is automatically enabled in tests, and JIT-compiled jax.lax.scan do not complain if there is no actual iteration. They complain only if called either with JAX_DISABLE_JIT or inside a jax.disable_jit context.

Thanks @flferretti !


Change VectorReaderListener to expect number array

Description
Refactors VectorReaderListener onResponse to expect arrays of Number type from search result instead of Double type. This will allow the training to handle cases where the vectors source is stored as an integer array. Adds test case to confirm that it can handle Integer type. Cleans up tests in VectorReaderTest class.
Credit to @martin-gaievski for the suggested fix.
Issues Resolved
#415
Check List

[X] New functionality includes testing.

[X] All tests pass

[X] Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #416 (0bab5ca) into main (dbe32fc) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##               main     #416   +/-   ##
=========================================
  Coverage     84.01%   84.01%
  Complexity      911      911
=========================================
  Files           130      130
  Lines          3879     3879
  Branches        359      359
=========================================
  Hits           3259     3259
  Misses          458      458
  Partials        162      162

Impacted Files
Coverage Δ

...java/org/opensearch/knn/training/VectorReader.java
83.56% <100.00%> (ø)

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 dbe32fc...0bab5ca. Read the comment docs.


Password protection

is it possible to "encrypt" arx file or password protect access ?

This is planned but not yet possible.
See https://github.com/jubako/jubako/issues/36


updating supervisor install

I was getting errors building until doing a little googling and testing. Submitting changes in this PR which addresses the build problems for me at least.

I don't have merge permissions and this isn't being maintained. Closing.


Switch to MPI.gather

MPI.jl has added a few more functions that automatically serialize, including gather and scatter:
https://github.com/JuliaParallel/MPI.jl/pull/756
https://github.com/JuliaParallel/MPI.jl/pull/758
Should be able to drop our own implementation of gather in favor of the one in MPI.jl. @b-kloss

Nice. We had count = Ref{Clong}() to accomodate very large message sizes, but I assume that just using Julia types defaults as in MPI.jl, count = length(sendbuf), defaults to Int64 so that should be a safe switch.


Backport PR #158 on branch 0.2.x (Fix metadata issue)

Backports PR #158

Thanks, @fcollonval!
The test failures are not related.


Have to access relation through .data?

I'm in the process of mocking a front-end dashboard, and I'm feeding fake data into Sarala. I have the following relationship structure:
User

relationships
-- parkingAuthorities

Once the data comes back, I can't just access user.parkingAuthorities to get the relationship collection. I have to to access user.parkingAuthorities.data. This seems odd and doesn't follow the Laravel relationship collection pattern.
Is this intended? Am I perhaps doing something wrong?
There's no documentation on how to actually use/access the relationships; just on how to define them and fetch them.

Hi @zlanich,
It is documented here at the bottom of the page: https://sarala-io.github.io/sarala-js-docs/guide/model/define-relationships.html

Ah! I somehow missed the destructuring assignment there. Thank you!


Revert single upload to LBS readFile

Don't agree. We shouldn't have to load things into memory. Can we talk through issue before we do anything.


Question about burn in steps

Thanks for the repository.
In the appendix of your paper, it says "For the COCO-standard, we train 180k iterations, which includes 1/2/6/12/20k iterations for 0:5%/1%/2%/5%/10% in the Burn-In stage and the remaining iterations in the Teacher-Student Mutual Learning stage. ".
I notice that in this repository, all the burn in steps are set as 2k in the config files. Would that affect the results?

refer to issue #6


Possible bug in evaluate function

Describe the bug
I have been using the evaluate function in ragas to obtain different metrics of a RAG system, the evaluation consists on 51 questions with gorund truth.
I use evaluate as:
evaluation_df = evaluate(dataset=dataset, metrics=metrics, llm=vertex_llm, embeddings=vertex_embeddings).to_pandas()
with metrics  = [faithfulness, context_precision, context_relevancy, answer_relevancy, answer_correctness]
I did an study of stability, meaning, launching the same questions to the evaluation system and checking if scores varies. We all know that LLM's do not always return the same, both for the RAG and the evaluation. I launched each question 11 times.
For the metric answer_correctness with gemini-pro I obtained:

Each color represents a question, each dot a score and each error bar the std.
I was comparing with other LLM's to check if the LLM was the culprit when I realised that If I use the evaluate function with a single ragas metric this effect of non-replicability was highly reduced.
I changed evaluation method to:
df = None
for metric in metrics:
evaluation_df = evaluate_ragas(dataset=dataset, metrics=[metric], llm=vertex_llm, embeddings=vertex_embeddings).to_pandas()
if df is None:
df = evaluation_df
else:
df[metric.name] = evaluation_df[metric.name]
Just doing one metric at a time. It is much slower but the results improved:

For a clearer comparison I have sorted the questions based on std. Obtaining:
First case:

Second case:

I decided to use a bar graph of the metrics. Bar height is the average score and error bar is the average std.
First case:

Second case:

In the first case both the average value and the std seems to be fairly similar for all metrics while in the second case is not like this at all. I think there is something off with the results. I don't know how the code works so I cannot give more insights but I think this is something it should be be looked at.
If you need anything else please let me know.
Ragas version: 0.1.1
Python version: 3.10.13
Code to Reproduce
I cannot share the dataset because its not public. But I think others might behave the same way.

@shahules786 Wow, this is great. Awesome work. I did some analysis earlier this year on reproducibility using KL divergence and scatter plots of experiment results of two different runs. I would love to get on with a call and chat with you on this later this week if possible, can we do that, please?
my calendly

This week is not possible for me, but I have scheduled a meeting for next Monday. Please feel free to email me if you need anything else!

hey @abetatos thanks for sharing your findings with us - ensuring reproducibility is a top concern of ours so we'll try to improve this as fast as possible
I'm also running some tests here #671 to ensure that its not any obvious bugs. Looking forward to meeting you on Monday 🙂


Load Balancer is always Pending

Rancher versions:
rancher/server or rancher/rancher: v2.0.3
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
AWS China
Steps to Reproduce:

Setup a cluster in AWS EC2 in China region
Launch a Helm app in Catalog Apps
Find Moodle and Launch it

Results:
In AWS the Load Balancer is created automatically and the app is already accessible through the Load Balancer. But in Rancher Load Balancer, it is still showing Pending. Here are some information copied from the API result:
"projectId": "c-krcvz:project-n5l5k",
"publishNotReadyAddresses": false,
"selector": {
    "app": "moodle-moodle"
},
"sessionAffinity": "None",
"state": "pending",
"transitioning": "yes",
"transitioningMessage": "Load Balancer is being provisioned",
"type": "service",
"uuid": "392a686c-80bf-11e8-ab71-02ee297771fe",
"workloadId": null

Did you configure the Kubernetes Cloud Provider?
https://rancher.com/docs/rancher/v2.x/en/faq/technical/#why-is-my-layer-4-load-balancer-in-pending-state and https://rancher.com/docs/rancher/v2.x/en/concepts/clusters/cloud-providers/

Does the IAM role attached to the instances have the permissions as stated in the docs?
If you can provide a kubectl describe svc -n yournamespace, I can take a look.

Yes, I just copied the permission from the document. It's attached to the Rancher server and Cluster instance. But one thing I am not so sure. Since you have the last 2 statements, it provides full permissions on EC2  and ELB resources, why do you still need the first 3 statements? The last 2 already covers the first 3.
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "ec2:Describe*",
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "ec2:AttachVolume",
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "ec2:DetachVolume",
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": ["ec2:*"],
            "Resource": ["*"]
        },
        {
            "Effect": "Allow",
            "Action": [ "elasticloadbalancing:*"],
            "Resource": ["*"]
        }
    ]
}

And here is the information you asked:
> kubectl describe svc -n moodle
Name:                     moodle-moodle
Namespace:                moodle
Labels:                   app=moodle-moodle
                          chart=moodle-2.0.0
                          heritage=Tiller
                          io.cattle.field/appId=moodle
                          release=moodle
Annotations:              kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"moodle-moodle","chart":"moodle-2.0.0","heritage":"Tiller","release":"...
Selector:                 app=moodle-moodle
Type:                     LoadBalancer
IP:                       <IP_ADDRESS>
Port:                     http  80/TCP
TargetPort:               http/TCP
NodePort:                 http  32391/TCP
Endpoints:                <IP_ADDRESS>:80
Port:                     https  443/TCP
TargetPort:               https/TCP
NodePort:                 https  31359/TCP
Endpoints:                <IP_ADDRESS>:443
Session Affinity:         None
External Traffic Policy:  Cluster
Events:                   <none>

I had the same problem on GCE.
To reproduce, you can simply run the openvpn helm chart. By default, the chart will try to expose a LoadBalancer L4. The openvpn pod takes a long time to start and become reachable, until RSA keys generation.
When the chart is deployed, here are the steps you can see:

Creation of the pod along with a LoadBalancer L4 service.
The LB tries to be created but the pod takes a long time to become ready
The LB is stuck on both google cloud console and Rancher
The pod finally become reachable and fully started
Even after the pod is reachable, the LB is kept stuck at pending.

Then, the only way to get the LB to start is then to kill the LB service and deploy another by hand. Since the pod is reachable, the LB is created without any problem.

Same thing here

I had the same problem in AWS EC2 us-east-1. I had to add permissions for CreateServiceLinkedRole.
{     "Version": "2012-10-17",     "Statement": [         {             "Sid": "VisualEditor0",             "Effect": "Allow",             "Action": "iam:CreateServiceLinkedRole",             "Resource": "arn:aws:iam::XXXXXX:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing"         }     ] }

@jasonfhill thx! your solution solved my problem, fantasitc!
btw,  hi, @superseb I think the docs should be updated by adding the iam:CreateServiceLinkedRole authority, so the policy json content should be
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "ec2:Describe*",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "ec2:AttachVolume",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "ec2:DetachVolume",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": ["ec2:*"],
      "Resource": ["*"]
    },
    {
      "Effect": "Allow",
      "Action": ["elasticloadbalancing:*"],
      "Resource": ["*"]
    },
    {
      "Effect": "Allow",
      "Action": ["iam:CreateServiceLinkedRole"],
      "Resource": ["*"]
    }
  ]
}

in the rancher1.6 docs: https://rancher.com/docs/rancher/v1.6/en/kubernetes/providers/#adding-hosts
and rancher2.0 docs: https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/rke-clusters/options/cloud-providers/

If you are still facing issues with the correct IAM policy (corrected in docs) and added the AWS cloud provider, please reopen a new issue.

Same issue for me.

Same here

Any update for the L4 Load balancing pending issue?

Same problem on EC2 cluster

any solution for this isuue?, Same problem in my rancher on DigitalOcean

Does anyone have a solution for that ?

There is no general "problem" or "issue" here.  Vanilla kubernetes (and therefore Rancher/RKE clusters) do not come with any implementation to handle services with type=LoadBalancer by default. And there is no good way to tell for a given cluster if something will handle them if you request the creation of one.
Cloud Providers plug-ins can be installed (if not built in) and configured to add this support.  They work for the specific provider your nodes are in and create some their particular implementation of a balancer and update the status on the service to reflect what was created.
For bare-metal/on-premise  you probably want something like MetalLB instead.  K3s ships with a very minimal implementation that uses available ports on the nodes to satisfy LB requests for the simplest use cases.
If these are not configured, or not working correctly, then the service stays in pending state forever because that is their initial state.. waiting for someone to do something.

Is there any documentation or tutorial how to set this up then?

same here
apiVersion: v1
kind: Service
metadata:
  creationTimestamp: null
  labels:
    app: traefik
    chart: traefik-1.0.0
    heritage: Tiller
    io.cattle.field/appId: traefik
    release: traefik
  managedFields:
  - apiVersion: v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .: {}
          f:app: {}
          f:chart: {}
          f:heritage: {}
          f:io.cattle.field/appId: {}
          f:release: {}
      f:spec:
        f:externalTrafficPolicy: {}
        f:ports:
          .: {}
          k:{"port":80,"protocol":"TCP"}:
            .: {}
            f:name: {}
            f:port: {}
            f:protocol: {}
            f:targetPort: {}
          k:{"port":443,"protocol":"TCP"}:
            .: {}
            f:name: {}
            f:port: {}
            f:protocol: {}
            f:targetPort: {}
        f:selector:
          .: {}
          f:app: {}
          f:release: {}
        f:sessionAffinity: {}
        f:type: {}
    manager: Go-http-client
    operation: Update
    time: "2020-10-05T22:52:03Z"
  name: traefik
  selfLink: /api/v1/namespaces/kube-system/services/traefik
spec:
  externalTrafficPolicy: Cluster
  ports:
  - name: http
    nodePort: 31621
    port: 80
    protocol: TCP
    targetPort: http
  - name: https
    nodePort: 32238
    port: 443
    protocol: TCP
    targetPort: 443
  selector:
    app: traefik
    release: traefik
  sessionAffinity: None
  type: LoadBalancer
status:
  loadBalancer: {}

kubectl get svc -n traefik
NAME      TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE
traefik   LoadBalancer   <IP_ADDRESS>   <pending>     80:31099/TCP,443:30553/TCP   11m

The same here.
I have an on-premise cluster and followed this blog https://traefik.io/blog/install-and-configure-traefik-with-helm/. I am showing you how my CloudFlare configuration is doing. I have a wildcard pointing at my worker nodes.

Same with MetalLB on treafik. Could we improve debugging process somehow?


Backport the bug fix where a connection is closed before a response is written in HTTP/1.x

Motivation:
We are seeing this issue server side but cannot upgrade Armeria in the short term.
Modifications:

Backport the fix https://github.com/line/armeria/commit/deee635ca2857e973a7bf5d344596d677ad770a9 to branch 1.16.
Mostly clean merge, a couple conflicts resolved in HttpServerHandler.java .

Result:

When client closes connection, we will not see errors that do not set the cancellationCause on the server side.

Superceded by https://github.com/line/armeria/pull/4893


feat: add contributors and contact page

Add menu to change between about, contributors and contact
Add missing institutes in about page
Add contributors page
Add contact page

Merged


Subgraph overhaul: query response typing & parsing

What does this PR do and why?
These changes all center around improving subgraph query argument typing and return typing, renaming some types, and cleaning up old sloppy code.

query utils have been refactored, and typing of entities returned from queries is more reliable. removes a big chunk of ts-ignored code blocks
splits + organizes subgraph types + utils files
subgraph-related types now include SG acronym
eliminates repeated code in subgraph entity parsing functions, and hugely reduces file sizes. in the future, we can further reduce complexity by relying on generated subgraph entity types
parsing functions no longer add <key>: undefined properties that aren't included in the actual query response
removes <EntityName>Json models, and adds a very handy Json<T> type, which jsonifies any object T
sepana endpoints now make use of new querySubgraphRaw functions, which bypass parsing the returned entities json

Future subgraph improvements that I've left out of the scope of this PR can include:

relying on generated/graphql types vs. defining subgraph entity types manually (will still need parsing functions)
using graphql lib to format queries (this overlaps this PR a bit, but not much)

Reviewers, sorry for another big diff 🥺 Lots of files have changed but most changes are uniform and/or fairly simple. Changed files can be categorized as one of:

uniform updates to models/subgraph-entities/*.ts files (most files are this)
small updates in various hooks/components for compatibility with new types, or changed type names (no logic changes). in some cases potential runtime errors are now avoided
most significant changes:

utils/graph.ts (massive diff. lots of bad code replaced + types moved to models/graph.ts)
models/graph.ts (new file, contains types moved out of utils/graph.ts and improved upon)
models/json.ts (small new file, used broadly)

Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

@peripheralist any chance we can move to industry-standard graphql

~@peripheralist any chance we can move to industry-standard graphql~
LOL sorry Peri accidentally clicked the wrong button. Wasn't actually going to comment but too late now.
Since you're looking to refactor all this stuff i thought it worth mentioning how i think we should be doing graphql. Apollo docs say it better than I can so here's a snippet:
import React from 'react';
import { useQuery } from '@apollo/client';

import { gql } from '../src/__generated__/gql';

const GET_ROCKET_INVENTORY = gql(/* GraphQL */ `
  query GetRocketInventory($year: Int!) {
    rocketInventory(year: $year) {
      id
      model
      year
      stock
    }
  }
`);

export function RocketInventoryList() {
  // our query's result, data, is typed!
  const { loading, data } = useQuery(
    GET_ROCKET_INVENTORY,
    // variables are also typed!
    { variables: { year: 2019 } }
  );
  return (

Available Inventory

      {loading ? (

Loading ...

      ) : (

              Model
              Stock

            {data && data.rocketInventory.map(inventory => (

                {inventory.model}
                {inventory.stock}

            ))}

      )}

  );
}

GET_ROCKET_INVENTORY could/should also be a file (getRocketInventory.query.graphql). This way we have specific files for each graphql query we're doing.
Just a thought, i know it would be a lot of work, so no dramas.
https://www.apollographql.com/docs/react/development-testing/static-typing/

ya into it! this PR is all just formatting/typing subgraph responses, doesn't change anything with how we're sending queries. but i am considering in this PR trying to replace our subgraph-entity models with the graphql generated types (if not now, later)

@tomquirk yep totally fair. this nearly all typing and not logical changes, so compiling is the main concern. ty ser 🙏


serf and 0.6.0

I'm running the 0.6.0 docker container, and getting this output:
...
kong_1       | [INFO] Migrating response-ratelimiting on keyspace "kong" (cassandra)
kong_1       | [INFO] response-ratelimiting migrated up to: 2015-08-21_init_response-rate-limiting
kong_1       | [INFO] Migrating hmac-auth on keyspace "kong" (cassandra)
kong_1       | [INFO] hmac-auth migrated up to: 2015-09-16-132400_init_hmacauth
kong_1       | [INFO] dnsmasq............address=<IP_ADDRESS>:8053 dnsmasq=true port=8053
kong_1       | [INFO] Auto-generating the default SSL certificate and key...
kong_1       | [INFO] nginx .............admin_api_listen=<IP_ADDRESS>:8101 proxy_listen=<IP_ADDRESS>:8101 proxy_listen_ssl=<IP_ADDRESS>:8543
kong_1       | [INFO] serf ..............-profile=wan -rpc-addr=<IP_ADDRESS>:7373 -event-handler=member-join,member-leave,member-failed,member-update,member-reap,user:kong=/usr/local/kong/serf_event.sh -bind=<IP_ADDRESS>:7946 -node=1e2396c98d96_<IP_ADDRESS>:7946 -log-level=err
kong_1       | [INFO] Trying to auto-join Kong nodes, please wait..
kong_1       | [WARN] Cannot auto-join the cluster because no nodes were found
kong_1       | [OK] Started
devenv_kong_1 exited with code 0

I'm aware the 0.6.0 kong forces us to now use serf, but how does it relate to docker? Do I need a serf daemon on the kong container? Or a separate container with serf? Or how do I disable serf for development/testing purposes?

Just checking if something like the following needs to be added to the Dockerfile:
RUN yum install -y wget unzip
ENV SERF_VERSION 0.7.0
RUN cd /tmp \
 && wget https://releases.hashicorp.com/serf/${SERF_VERSION}/serf_${SERF_VERSION}_linux_amd64.zip \
 && unzip serf_${SERF_VERSION}_linux_amd64.zip \
 && rm -rf serf_${SERF_VERSION}_linux_amd64.zip \
 && mv serf /bin

(the yum bit before the existing clean all bit)

exact same issue here... did you manage to solve it ?

This output is correct, I am not seeing anything wrong with it. The warning is just to tell the user that no nodes were found.

But when i try to do http get to Kong API it never responds. If i try a curl http://<IP_ADDRESS>:8001/apis within the container bash it never returns anything, it looks like the http request gets hanged somewhere... and i cant ser anything wrong in the log files.
I only can get this working if i downgrade to Kong v0.5 which doesnt support clusters... Any idea of what could be missing?

I'm seeing the same behvior with frozen curl requests. Also, not being able to connect to serf caused disk space issues https://github.com/Mashape/docker-kong/issues/23

Yeah I'm getting the exact same issue here with 0.6.1.  Just upgraded from 0.5.4.

just downgraded to docker toolbox v1.8.3 and apparently it's working...
https://github.com/docker/toolbox/releases/tag/v1.8.3
can you give it a try ?

i've tested both on my personal / work osx and the problem is solved.
make sure you delete the virtual machine and turn off internet connection when installing docker toolbox 1.8.3 to disable boot2docker.iso update.

That's interesting to know but I would appreciate to use latest docker version, not 1.8.3. I do think that this issue is strongly related to https://github.com/Mashape/docker-kong/issues/23 which has something to do with being unable to connect to default serf host (due to ipv6 errors)

I agree that's interesting.  Does anyone know the big changes between those 2 versions?  I don't believe this is a valid solution for me as I'm packaging this all in a docker-compose as a closed box solution for developers to use while developing other microservices and I'd rather not have a dependency on an old version of docker toolbox.
@gottfrois Thanks for the link to the other issue.  This does look like it could all be related.

Running kong like this seems to solve serf connection issues and therefor, curl command freezing:
docker run -d --name kong \
            --link cassandra:cassandra \
            -p 8000:8000 \
            -p 8443:8443 \
            -p 8001:8001 \
            -p 7946:7946 \
            -p 7946:7946/udp \
            --security-opt seccomp:unconfined \
            mashape/kong

See https://github.com/Mashape/docker-kong/issues/21

@ambrons I want to use docker-compose too, just tried and you can throw the following to make it work:
  security_opt: ["seccomp:unconfined"]

Full example:
kong:
  image: mashape/kong
  links:
    - "cassandra:cassandra"
  ports:
    - "8000:8000"
    - "8443:8443"
    - "8001:8001"
    - "7946:7946"
    - "7946:7946/udp"
  security_opt: ["seccomp:unconfined"]

@gottfrois you're the man!
Did you override the command so that you can ensure that Cassandra has started first?
Here's my whole docker-compose.yml with your addition:
version: '2'
services:
  kong:
    image: mashape/kong:0.6.1
    ports:
      - "8000:8000"
      - "8443:8443"
      - "8001:8001"
      - "7946:7946"
      - "7946:7946/udp"
    links:
      - cassandra
    depends_on:
      - cassandra
    security_opt: ["seccomp:unconfined"]
    command: sh -c 'until nc --recv-only -i 0.1 cassandra 9042 2>&1 >/dev/null|grep timeout >/dev/null; do :; done; kong start && tail -f /usr/local/kong/logs/error.log'

  cassandra:
    image: cassandra:2.2.4
    ports:
      - "9042:9042"

@ambrons ah cool! I was missing this part, it was next on my todo ;) thx man

Yep, you guys figure this out properly. From the Docker documentation at http://docs.docker.com.s3-website-us-east-1.amazonaws.com/engine/security/seccomp/

Docker’s default seccomp profile is a whitelist which specifies the calls that are allowed.

seccomp:unconfined will just allow every system call. I will update the instructions on the website.

The documentation on the website has been updated. Thanks everybody.


Project Communication and User Relations

Problem
Background
I posted this comment on an issue about ~/.cargo: https://github.com/rust-lang/cargo/issues/1734#issuecomment-1911469616
The result of this comment was a - for me surprisingly - vivid reaction and a flood of comments which eventually resulted in the issue being locked 13hrs after the post, which is an hour before I first saw the responses.
I would have liked to have the opportunity to respond at least once to these reactions, part of which would have been an apology to @epage personally, whom I did not intend to attack, neither do I believe that this was actually inappropriate if controversial.
The Problem
In this issue (the one I opened here) I would like to abstract from the original problem (XDG vs ~) but use it as an example to clarify or explain my point.
MY problem is more social or political, than it is technical, but it expresses itself in the form of a technical issue, here the fact that cargo writes into my home directory without my consent and against both my intentions and expectations. Let me explain:
I wanted to look at a gemini browser, because I wanted to see what Gemini looks like. So I ran an ephemeral distrobox (basically a podman image of arch, because that usually is the easiest and fasted way to do that kind of thing for me), installed one of the terminal clients which in turn showed me a Gemini page.
The result of this process was that I have a ~/.cargo folder that among other things contains a cache of some repository. My backup process will dutifully protect this cache of data for the next year and make sure it will be around even if the office and my home burns down.
There will be a day when I will happily use cargo, I will then read its documentation and set CARGO_HOME appropriately or just make an entry in my backup ignore list. That's because I plan to learn rust unless I first look at zig, but that's not now. I am not a rust developer yet and I don't want to be bothered by cargo.
Now that raises the question, am I a cargo user (because I find .cargo at $HOME) or am I a cargo victim? How does the answer to that question affect your responsibility towards me, that is if there is any responsibility. You may think that it's up to your real users - rust developers - to make sure that they take care of their users. But the author or that Gemini browser did not create ~/.cargo, that was paru. And hey, actually it was my fault, because if I use paru, of course there will be stuff installed in my home directory. That's how it works, right? So paru is the culprit? But paru does not know about cargo. So it's people who want to look at Gemini, who have to read cargo's documentation to understand that they have to update their backup procedure when they want to browse Gemini space?
This network of responsibilities is what I meant with the problem being social in nature. What we do as developers, packagers and users has effects that are hard to predict. There is very often "a right thing to do", in this particular example, it's to honor platform conventions, more concretely the XDG directories. This is objectively the right thing to do, not just an opinion, because doing so allows users to choose the behavior they expect (and because they own their home directory they have the right to control its contents). It does not prevent users to choose letting cargo write to ~/.cargo, because CARGO_HOME can still be used. It's not a big effort to implement.
If you agree with me, that XDG is "the right thing" to do (at least for Linux), then the next question is of course why it wasn't done. And there is no surprise here. There are always more attractive and more important things to do. I mean nobody dies from ~/.cargo, there are no security implications, no performance hits and most people really don't care what's in these dotfiles. These are all valid and understandable points of view. I mean it.
But the consequence is, that your convenience trumps my right to decide what stuff is being written to or read from my home directory. When I spoke of a violation of trust, I meant the principle. If a program uses my CPU to mine crypto currency without my consent, that's criminal. If they upload my photo library, my address book or the pin code from my bank account without my consent, that's also criminal. This is not just a violation of trust, it's a crime. But technically, what they do is to use my resources for their purposes without my consent. I can hardly enforce how programs use my resources, that's somewhere between unfeasible to impossible, so whenever I use any kind of software, I have to trust that they behave, and the the tools they use transitively also behave.
So this is really a slippery slope argument here. The problem is not what cargo does in this particular case, the problem is that cargo believes it has a valid choice. And this is what I called a lack of respect. Not the malicious kind of disrespect, more a lack of awareness. Much like we called pseudo terminals masters and slaves before codes of conduct and linters convinced us that this is not inclusive and thus git will not accept a racist commit. I don't think that linters contributed much to the improvement of social justice or that they will anytime soon.
But I really think that it's important to make it perfectly clear what any piece of software is allowed to do, and I mean that as a matter of principle, not just in the concrete case.
Cargo is not a gemini browser, some obscure tool that somebody wrote after work. If some malicious code makes it into cargo, it can affect the whole world with incalculable potential for damages. Because of that, you have to be held to higher standards than some random rust program.
Please do not misunderstand this as another rant. From all I know, you are doing an awesome job. I'm not a Rust developer, so I have to rely on what I hear about rust and cargo and that's uniformly positive.
But here is the thing: If cargo, a gem among its peers, can afford to ignore XDG, then everybody else can do so. That makes XDG obsolete and with it, my ability to control the contents of my home folder. I am not ok with that. And I really don't care about ~/.cargo. I can just delete it and spend more effort on isolating my app containers further. I do care for the attitude of the industry towards users, especially those users who know much less about stuff than I do.
And that brings me to the next point, again respect. We are a particular generation of people who shape many aspects of what will be established norms in the future, we software developers. The last Sun CEO said something to the effect that "You guys have no privacy, get over it" (not a correct quote, just from the top of my mind). When I heard that, I thought "And who are you to decide that, it's my privacy, not yours". He was of course right. If I want privacy, I have to take it back from "them" and fight for it. A fight I will most likely loose. How about the ownership of what is in my home directory? Is this also something I lost and have to get over? Does cargo actually have the right to choose whether to honor XDG settings? Is it enough to provide CARGO_HOME if there is a good chance that a user cannot reasonably know about having a choice to set it? I don't think so. For me, this is clearly a breach of trust and the long term result in the slippery slope that already cost me my privacy, might well cost me the ownership of everything that's on my computer.
My generation saw the transition from a world without internet to coffee shops in which people sit at the same table each staring on a small phone, likely talking to each other via chat. As a kid I discussed the role and responsibilities of scientists in school in relation to humanity or society - motivated by the making of the nuclear bomb. That was when we were scared of nukes. Today, it's not so much scientist who shape the future of humanity as it is us, software developers - and that's not only because of AI's we're building. What we do is not to invent exciting technology that can destroy the world, we make it cheap and easily accessible to abuse people, people we call users and that terminology coincides with drug use as if that was intended.
Principles matter, because they are the only effective counter to slippery slopes. If you consider XDG compliance as an optional feature to implement or not, then you invade my property. If you consider the failure to comply with XDG as a bug that doesn't need to be fixed, you disrespect my right to my property. If you think that I am hysterical because I cannot wait 9 years for a fix, then you live in a world very different from mine.
I spend a lot of time writing this thing, because I want you to understand my point. This is not about ~/.cargo or cargo. This is not about your particular ethics, competency or morality. ~/.cargo is not important, you are doing a great job and from the looks of it, you look like good guys. The problem is that I strongly feel that appearances are not enough because we live in one of these periods of time where decisions are made that will define how the next century will be shaped. What we decide today, will be the norm by which our children will have to live, for better or worse. It's not about ~/.cargo, it's about whether people will have something like digital ownership of anything.
If you believe it's your choice, you stole my choice. And you probably didn't know that. Just saying.
Proposed Solution
Cargo is not going to save humanity, my property or XDG. Neither is it going to destroy it. But I think there are some things were cargo could serve as an example for a minor improvement. Here are my suggestions:
Know your users
Cargo is not only used by rust developers. Many users who don't even know they are such have no voice. Please take a step back an consider that at least once.
Reconsider Github Issues
Github became much more than just a git frontend. It is a social network, a job market and much more.
The role of issues is primarily very technical. But it is also the most accessible interface for users to communicate with projects. Communication between humans is messy, emotional and can easily become very unproductive. Something you don't want to have in your development workflow.
But it's probably the only place where you can hear from your users and just because communication is messy or at times impolite, does not mean that it's not valuable.
I got a whole bunch of mail notifications from my original comment. Your mailbox must look much worse. So yes, I see how you don't want to suffer the fallout of every flame war. But that's a technical problem that has potential technical solutions.
There is no need to endure insults or abuse from users or colleagues, but I don't think that my comment or the discussion resulting from it reached that level of heat that justifies locking the discussion.
As annoying as casual, social, political or controversial opinionated discussions in issues are, I believe they overall add more value than damage. Most projects tune down the volume of issues as much as possible. I think this is a bad idea.  But that's just an opinion.
Please don't lock an issue if it's not absolutely necessary (@epage). Was it really?
(I had more to say, but it's getting late and I don't even know if you are at all interested in this sermon, so I'll leave it at that for now and add the rest if there is any interest.)
Notes
No response

Please don't lock an issue if it's not absolutely necessary (@epage). Was it really?

I locked it for social reasons, not technical, as that conversation was going in the wrong direction.  As this violates the spirit of that locking, I am going to lock this as well until we feel it is time to open things back up.
I understand you don't see yourself as a Rust user and so its surprising when Rust related things get in your way.  This will be a continued problem we need to work on improving (in multiple ways, including a concept called "minimum supported rust version").  I don't want to say too much more because I don't want this viewed as me "getting in the last word" before locking but I want to make sure you understand that I understand the problem, even if not the degree you feel about it.


Icons overlap

I assume this is not normal ?

guess that isn't chrome... ;-(

Yeah Safari on OS X 10.11


feat: unique_element_ids kwarg for UUID elements

Summary
Closes #1071. Adds a unique_element_ids kwarg to partition functions. If True, the element IDs will be a UUID instead of a SHA-256 hash. This is helpful if you'd like to use the element IDs as the primary key in a database.
Testing
from unstructured.partition.text import partition_text

elements = partition_text(text="Here is some example text.", unique_element_ids=True)
# Should be a UUID like 256b25cc-9922-4673-8b49-d0afcf1a6271
elements[0].id

elements = partition_text(text="Here is some example text.")
# Should be 6b318ad9116de363fe8f131b7d103ff5
elements[0].id

Hi @MthwRobinson ! This makes element_id inconsistent with parent_id, at least in partition_docx which i am using right now. So parent_id is the very same as if unique_element_ids == False. Which makes parent_id rather useless as the id it points to does not exist. Is this the intended use? Would be pretty straightforward to me to use these unique ids in the parent_id field as well.


Feature/auto deploy

Changes proposed in this Pull Request:

Adds PUBLISHING.md
Adds pack & package step to circle CI.

Master merges will auto-deploy NPM package if version being built > latest npm published version.


Discuss Github actions pipeline

Since we are accumulating more and more tools for analysis, tests, etc. we could have a discussion what order jobs in the pipeline should run.
I propose the following chain of jobs:
lint -> build -> static analysis -> unit tests -> sonarcloud
The reasoning behind this order (and dependencies) is the following:

build should only be done when coding conventions are correctly done
(most) static analysis requires error-free compilation
unit tests (i.e., dynamic analysis) is done after potential bugs are removed
lastly, sonarcloud can be executed once the unit tests are done to collect the code coverage and do a final analysis

A breakdown of the jobs:

lint:

clang-format linting
clang-tidy linting

build:

CMake build

static analysis (list of some tools, any amount is fine):

Cppcheck
Clang Static Analyzer

unit tests:

CMake build of Criterion test suite

sonarcloud

The order looks good to me, but I would add additional pre-commit hooks, that enforce the lint rules.
This enables us to keep our code clean before committing (via pre-commit hooks), as well as notify us if someone down the line (unknowingly) omits our format rules (via pipeline).

That is true, that should be better!


k3s fails to start in Rancher workload with oom_score_adj: invalid argument error

Version:
v1.0.0
Describe the bug
Launching k3s server inside a Rancher workload is failing.
To Reproduce

Install Rancher v2.3.3 and add a v1.16.3 cluster with at least one node.
In the Default project, create a new workload. Use the image rancher/k3s:v1.0.0 and the command server --https-listen-port 6443 --cluster-cidr <IP_ADDRESS>/16 --service-cidr <IP_ADDRESS>/16. Set privileged to Yes and click Launch button.
Exec into the container and you can see the pods are not starting:

/ # kubectl get pods -A
NAMESPACE     NAME                                      READY   STATUS              RESTARTS   AGE
kube-system   helm-install-traefik-z78w7                0/1     ContainerCreating   0          104s
kube-system   coredns-d798c9dd-l2qbv                    0/1     ContainerCreating   0          103s
kube-system   local-path-provisioner-58fb86bdfd-bvmw4   0/1     ContainerCreating   0          103s
kube-system   metrics-server-6d684c7b5-pvlw5            0/1     ContainerCreating   0          103s

Describe a pod and can see errors for trying to adjust oom score:
/ # kubectl describe pod -n kube-system coredns-d798c9dd-l2qbv
Name:           coredns-d798c9dd-l2qbv
Namespace:      kube-system
Priority:       0
Node:           k3stest-78b95f4f86-7bjmv/<IP_ADDRESS>
Start Time:     Thu, 05 Dec 2019 22:52:29 +0000
Labels:         k8s-app=kube-dns
                pod-template-hash=d798c9dd
Annotations:    <none>
Status:         Pending
IP:
IPs:            <none>
Controlled By:  ReplicaSet/coredns-d798c9dd
Containers:
  coredns:
    Container ID:
    Image:         coredns/coredns:1.6.3
    Image ID:
    Ports:         53/UDP, 53/TCP, 9153/TCP
    Host Ports:    0/UDP, 0/TCP, 0/TCP
    Args:
      -conf
      /etc/coredns/Corefile
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Limits:
      memory:  170Mi
    Requests:
      cpu:        100m
      memory:     70Mi
    Liveness:     http-get http://:8080/health delay=60s timeout=5s period=10s #success=1 #failure=5
    Readiness:    http-get http://:8181/ready delay=10s timeout=5s period=10s #success=1 #failure=5
    Environment:  <none>
    Mounts:
      /etc/coredns from config-volume (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from coredns-token-hhjct (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      coredns
    Optional:  false
  coredns-token-hhjct:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  coredns-token-hhjct
    Optional:    false
QoS Class:       Burstable
Node-Selectors:  beta.kubernetes.io/os=linux
Tolerations:     CriticalAddonsOnly
                 node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason                  Age        From                               Message
  ----     ------                  ----       ----                               -------
  Normal   Scheduled               <unknown>  default-scheduler                  Successfully assigned kube-system/coredns-d798c9dd-l2qbv to k3stest-78b95f4f86-7bjmv
  Warning  FailedCreatePodSandBox  38s        kubelet, k3stest-78b95f4f86-7bjmv  Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: io.containerd.runc.v2: failed to adjust OOM score for shim: set shim OOM score: write /proc/22586/oom_score_adj: invalid argument
: exit status 1: unknown
  Warning  FailedCreatePodSandBox  27s  kubelet, k3stest-78b95f4f86-7bjmv  Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: io.containerd.runc.v2: failed to adjust OOM score for shim: set shim OOM score: write /proc/22957/oom_score_adj: invalid argument
: exit status 1: unknown
  Warning  FailedCreatePodSandBox  16s  kubelet, k3stest-78b95f4f86-7bjmv  Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: io.containerd.runc.v2: failed to adjust OOM score for shim: set shim OOM score: write /proc/23408/oom_score_adj: invalid argument
: exit status 1: unknown
  Warning  FailedCreatePodSandBox  1s  kubelet, k3stest-78b95f4f86-7bjmv  Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: io.containerd.runc.v2: failed to adjust OOM score for shim: set shim OOM score: write /proc/23871/oom_score_adj: invalid argument
: exit status 1: unknown

Expected behavior
Would expect the pods to go into a Running state.
Actual behavior
Pods are stuck in ContainerCreating indefinitely.
Additional context
This also fails when I try to run this on rancher/k3s:v0.10.0 but works on rancher/k3s:v0.9.0. So it appears to be a regression introduced in v0.10.0. This issue may also be related: https://github.com/rancher/k3s/issues/1016
Can reproduce this on Rancher running on rke-based k8s w/ Docker on RancherOS & Ubuntu as well as Rancher running on k3s w/ containerd.

@dnoland1 After debugging and thanks to @erikwilson he pointed out that containerd shim v2 sets the oom score of the pod to that of the parent + 1 https://github.com/microsoft/hcsshim/blob/master/vendor/github.com/containerd/containerd/runtime/v2/shim/util_unix.go#L58
and in k8s if you dont set memory/cpu request or limits the pods will be in BestEffor qos class with oom score of 1000, so to workaround the issue you need to set the memory/cpu request of the k3s pod when starting it on rancher downstream cluster

Sounds like this is behavior as intended. We need follow up from @dnoland1 to figure out if we can close.

@cjellick Believe this is still a valid issue, but not one that I'm concerned with anymore. Other users who want to run k3s inside a pod may hit this. It's a bit of a corner case, but could be useful for running a large number of clusters within one cluster for testing or development.


Creating Qiita client package

This depends on #1683, so review/merge that one first.
This PR extracts the module "qiita_client" from the target gene plugin and sets it up as its own package in the plugins directory. Eventually this package would be it's own package that the plugins developer can use so they don't need to re-implement some of the functionality available here.
I've extended the class to support a few common functionality that all plugins will need to implement, and updated the target gene plugin to make use of this new "package".

Ready for review

looks good to me, :+1: once tests pass, as @josenavas said he is basically moving code around to make it reusable.

@ElDeveloper or @mortonjt able to review?

:+1:

The tests have already passed and the latests change doesn't change that results: Merging.


precompilation error

Hi I am getting this
WARNING: --output requested, but no modules defined during run
WARNING: The call to compilecache failed to create a usable precompiled cache file for module FFTW. Got:
WARNING: Cache file "/home/febbo/.julia/lib/v0.6/FFTW.ji" not found.
WARNING: eval from module Main to FFTViews:
Expr(:call, Expr(:., :Base, :include_from_node1)::Any, "/home/febbo/.julia/v0.6/FFTW/src/FFTW.jl")::Any
  ** incremental compilation may be broken for this module **

Any ideas on how to fix this?
Thanks!

First of all, on Julia v0.6, it uses Base.FFTW. You can just use Base.FFTW rather than install FFTW.jl.
Second, it seems /home/febbo/.julia/lib/v0.6/FFTW.ji doesn't exists, would you remove and reinstall FFTW again?

Known issue, unavoidable on 0.6. See https://github.com/JuliaMath/FFTW.jl/issues/46. Note that these are warnings, not errors, and everything will still work as intended.


Add TaskLauncherCFSink

As a developer, I'd like to add TaskLauncherCFSink, so we can use this application to consume Task events and launch a Task using the CF deployer.
Acceptance:
I can launch a task by a stream that's running in cf platform.

Duplicate of https://github.com/spring-cloud/spring-cloud-stream-app-starters/issues/196.


documentation unclarity for model.fit / model.fit_generator

Hello!
Just a little issue with the documentation, which can be misleading: The documentation about the model.fit function (and analogously the model.generator_fit function) tells us:

epochs: integer, the number of epochs to train the model.
initial_epoch: epoch at which to start training (useful for resuming a previous training run)

I understood that this code starts at epoch 15 and goes on to epoch 25:
model.fit(x, epochs=10, initial_epoch=15)

What happens instead is that the model isnt fitted at all, the as the parameter epochs is understood is "final_epochs" or "total_epochs". As the initial_epoch is bigger that the "final_epoch", it simply never starts.
The same happens if I write
model.fit(x, epochs=100, initial_epoch=15)

In that case the model is trained until epoch 100, not for 100 epochs.
I think the documentation is slightly misleading and see two solution to fix this:

Convince me that I'm the only person who misunderstood this
Make the documentation more verbose.

If the consensus goes for the latter, I can try to fix it myself.

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!

[x ] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[ x] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

In the Keras source code, training.py,
the training in the _fit_loop function runs in the range(initial_epochs, epochs). So it must be the case that the training loops starts from initial_epochs and runs until epochs.

I have no problems with the behaviour (in hindsight, I think its reasonable). I just think its not clear from the documentation alone.

Yes, I agree to that.

Ok, if I'm not alone with that assesment I'll quickly make a patch for the docstring.
I think the best place for that would an additional line in the description of initial_epoch.


UI Routing Error Catalog Tab Launch Route

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Create a setup with at least one cluster
Navigate to a catalog item launch page at the project level
Select global from the top nav
Select a project from the top nav
Result:
We are transitioned to the fail-whale page
Other details that may be helpful:
This happens because the catalog app launch page is expecting an ID and when we use the project route session variable to return the user back to the previous project page we dont save any of the query params, only the route.

Version: master 2.2 (1/2/19)
Confirmed fixed. I could not reproduce the issue and also halo tested related areas. Further testing will also be done around this PR in related issues that the PR fixed.


GitHub Actions Tests Status (on master branch)

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

R: @dpcollins-google


ARROW-14095: [C++] subtract(timestamp, duration) -> timestamp kernel

ARROW-14095

@lidavidm similar question about units as in #12124 - should we only cover matching time units (e.g. subtract(timestamp[s], duration[s]) -> timestamp[s]) or allow non-matching units too (e.g. subtract(timestamp[s], duration[ms]) -> timestamp[s]).

I would expect that for non-matching resolution in the input, we cast to the most detailed resolution. But, this doesn't necessarily need to have kernels for all combinations of resolutions. I think the casting step before calling the kernel should take care of that (like add(int64, int32) -> int64 is not a registered kernel (only add(int64, int64) is), but still works).
The same is true for subtract(timestamp, timestamp) -> duration, which is for now only implemented for matching resolutions, and also the automatic casting doesn't seem to work yet for timestamps.

@jorisvandenbossche heterogeneous time resolutions are now supported.

@jorisvandenbossche It would appear test + doc only yes. ARROW-14095 added the subtract(timestamp, duration) kernel and dispatch best path to get from subtract(date, duration) -> subtract(timestamp, duration).


After configuring cf isn't working

I configured cf parametres such as login, folder, template. Then I couln't use cf. This is error message:
panic: regexp: Compile(d:\AZIMJON\Dasturlash\rd\codeforces\/contest/((?P<contestID>\d+)/((?P<problemID>\w+)/)?)?): error parsing regexp: invalid escape sequence: \c
goroutine 1 [running]:
regexp.MustCompile(0xc0001a7260, 0x59, 0xc000075c38)
/usr/local/go/src/regexp/regexp.go:311 +0x159
github.com/xalanq/cf-tool/cmd.parsePath(0xc0001ca0e0, 0xe, 0x7bb84a)
/Users/xalanq/go/src/github.com/xalanq/cf-tool/cmd/args.go:225 +0x2c7
github.com/xalanq/cf-tool/cmd.parseArgs(0xc00009d8f0, 0x7375e0, 0xc000090ea0)
/Users/xalanq/go/src/github.com/xalanq/cf-tool/cmd/args.go:93 +0x8f0
github.com/xalanq/cf-tool/cmd.Eval(0xc00009d8f0, 0x19, 0xc0000fd6e0)
/Users/xalanq/go/src/github.com/xalanq/cf-tool/cmd/cmd.go:23 +0x7e
main.main()
/Users/xalanq/go/src/github.com/xalanq/cf-tool/cf.go:160 +0x2d1

Ouch. Seems like regexp has some corner case missed out.
Also, the author of the tool is currently not active, so you might not get a bug patch for it currently. However, you can try using a near similar tool (with much better features) which I've developed. Here's the repo https://GitHub.com/infixint943/cf

@infixint943

a near similar tool (with much better features) which I've developed. Here's the repo https://github.com/infixint943/cf

Cool.., but what's the point of doing same work multiple times; or your project entirely different this one, in terms of implement. If @xalanq is very busy, all of us could request him to add some more volunteers as maintainer (people whom he trust), so even in his absence, project will move forward.

@Azimjon-ibn-Mehmonali, can fix spell mistake in title of issue? It should be working instead of worling.

@infixint943

a near similar tool (with much better features) which I've developed. Here's the repo https://github.com/infixint943/cf

Cool.., but what's the point of doing same work multiple times; or your project entirely different this one, in terms of implement. If @xalanq is very busy, all of us could request him to add some more volunteers as maintainer (people whom he trust), so even in his absence, project will move forward.
PS: @infixint943, I think, you would be great candidate for maintainer job. :)

Exactly, I started it to later make a pull request to the this tool. However, it looks like xalanq is currently not available, so I thought of maintaining by myself. But I'll be very glad if xalanq adds me as a contributor and am willing to merge my source code with this.
However, I've had many more in-progress plans. They are

Migration of the tool to work with atcoder (nearly done, it in infixint943/atc repo, v0.9.0 branch), topcoder, codechef etc
Also the code has been completely restructured, enabling using client package as a library, which would help in creating API tools easily.
Extensions to most major IDE's using features of the above point.
Also, I plan on merging the tool for all platforms, to a single tool to use across multiple platforms. (Once the tool is migrated to other sites, I would consider starting with this)

So now, if xalanq is interested, he could add me as a maintainer and also create an organisation (since multiple tools are to be made under the same name). Otherwise, I could continue in my own repo and "soon" make a codeforces blog stating the reasons and asking for contributors.
Any suggestions are appreciated!

@Azimjon-ibn-Mehmonali  I think, replacing
fmt.Sprintf(/contest/(?P<contestID>%v)(/problem/(?P<problemID>%v))?, ContestRegStr, ProblemRegStr) with fmt.Sprintf((/contest/(?P<contestID>%v)(/problem/(?P<problemID>%v))?), ContestRegStr, ProblemRegStr) (add parenthesis at begin of /contest and end of ?), should work. (Disclaimer: sorry, if didn't work; I don't know Golang, it was just a random guess.)

@infixint943 let's discuss this is on issue https://github.com/xalanq/cf-tool/issues/100. We are unnecessarily cluttering @Azimjon-ibn-Mehmonali issue.


update can introduce unvendored dependencies

The update command will download a new version of a single package. However this new version might have new dependencies, which end up not being vendored.
By default update should download any new missing packages. It should however probably not update the entire recursive dependency tree, unless asked (see #6). If this introduces conflicts, they are for the human to fix.

Is something like for i in `gvt list -f {{.Importpath}}`; do gvt delete $i; gvt fetch $i; done a reasonable workaround here?


Enable support for mapping from non-nested to nested collection

#1486 enables support the other way. It should be possible to map:
/Person<a>/fullName to /Company<b>/Org<c>/Employee<d>/fullName
given a=d, b=0, c=0
Consider enabling mapping from nested collection to nested collection with 0 padding in parent levels if source nest  depth < target nest depth. It needs to be clearly communicated to the user that 0 is used for parent levels.

Yes, it should add WARN in mapping validation so that it's presented in UI.


bug fix in Atoms

fix the set_cell api in Atoms: updating cell doesnt update the scaled_positions
some minor pep8 formatting fixes in the atoms.py module

Thanks. I'm going to merge.
For irreps, I will prepare simple tests and check if your commit works well. It will take some time since I have to find phonon results having those point groups.
On Atoms, I could not understand your comment

fix the set_cell api in Atoms: updating cell doesnt update the scaled_positions
I think scaled_positions is not necessary to be updated by updating cell. What is the actual problem that you have met?
In fact, I don't like the Atoms class and want to replace it by something like that shown below (tuple one),
http://atztogo.github.io/spglib/python-spglib.html#crystal-structure-cell

The issue was that the atoms class let's one initialize the object with out the cell and/or positions and if you try to set the cell later using the set_cell API it doesn't complain about not having the positions, causing other things to fail later ......I was trying to ensure that setting the cell and positions go hand in hand..I will take a look at your suggestion and try to port it to phonopy.. thanks

For Atoms, I think you don't need to port that I suggested (I didn't mean to ask you to do it). Instead, I will change the code to raise an exception when any of three values, cell, scaled_positions (=positions), and numbers (=symbols), are missing for set_cell, etc.

I merged all your changes to develop and then

I found a problem on -43m database and fixed it. But does this work for you?
I updated Atoms class so as to raise exception when not having positions or for similar cases, i.e., some consistency check is now done. Please check it if you like it or not.

thank you!
I am not sure whether you are planning to do it or not but i think it would be nice to add the basis functions to the character dictionary so that we can predict whether the phonon mode is raman or ir active..please let me know your thoughts on it...i can help with it if you are too busy..
thanks for all your help.
-Kiran Mathew

Currently I have no plan to do it. But I think there is no problem for phonopy to include it. For it, the database should be separated from irreps.py and moved to some other place since it became too many lines, which prevents the readability of the logic part.
Once the irrep is known, we can easily refer other source of such information, e.g., http://www.cryst.ehu.es/ . A problem of such a database is that internet connection is mandatory. If a computer accessible database that doesn't need internet connection is expected and if such a database doesn't exist , I think it's a better idea to create a new project focusing on it, in such a way, it is separately maintained.