[Snyk] Fix for 4 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 4 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):

examples/sklearn/requirements.txt

⚠ Warning
```
merlin-sdk 0.33.0 requires mlflow, which is not installed.
grpcio-tools 1.62.2 has requirement protobuf<5.0dev,>=4.21.6, but you have protobuf 3.20.3.
botocore 1.33.13 has requirement urllib3<1.27,>=1.25.4; python_version < "3.10", but you have urllib3 2.0.7.
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with your project.
> - Max score is 1000. Note that the real score may have changed since the PR was raised.
> - This PR was automatically created by Snyk using the credentials of a real user.
> - Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

---

**Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs._

For more information: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI5ZGMwMDU2OS04M2Q3LTQyNmItYTU5Yy1jZDE3NGMxOTU0OGYiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjlkYzAwNTY5LTgzZDctNDI2Yi1hNTljLWNkMTc0YzE5NTQ4ZiJ9fQ==" width="0" height="0"/>
🧐 [View latest project report](https://app.snyk.io/org/1.-demo-env/project/4cc5cdb7-3324-49f9-8488-f2b1145bed6b?utm_source=github-enterprise&utm_medium=referral&page=fix-pr)
📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
🛠 [Adjust project settings](https://app.snyk.io/org/1.-demo-env/project/4cc5cdb7-3324-49f9-8488-f2b1145bed6b?utm_source=github-enterprise&utm_medium=referral&page=fix-pr/settings)
📚 [Read about Snyk's upgrade logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities)

---

**Learn how to fix vulnerabilities with free interactive lessons:**

🦉 [Remote Code Execution (RCE)](https://learn.snyk.io/lesson/malicious-code-injection/?loc=fix-pr)

[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"mlflow","from":"1.23.0","to":"2.11.3"},{"name":"scikit-learn","from":"0.20.3","to":"1.5.0"}],"env":"prod","issuesToFix":[{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-MLFLOW-6102483","priority_score":278,"priority_score_factors":[{"name":"confidentiality","value":"high"},{"name":"integrity","value":"high"},{"name":"availability","value":"high"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.01055},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Fri Jun 07 2024 08:08:51 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"critical"},{"name":"relativePopularityRank","value":98},{"name":"impact","value":9.79},{"name":"likelihood","value":2.83},{"name":"scoreVersion","value":"V5"}],"severity":"critical","title":"Remote Code Execution (RCE)"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-MLFLOW-7217833","priority_score":170,"priority_score_factors":[{"name":"confidentiality","value":"high"},{"name":"integrity","value":"none"},{"name":"availability","value":"none"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.01055},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Fri Jun 07 2024 09:38:43 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":98},{"name":"impact","value":5.99},{"name":"likelihood","value":2.83},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Improper Access Control"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-MLFLOW-7217835","priority_score":112,"priority_score_factors":[{"name":"confidentiality","value":"none"},{"name":"integrity","value":"low"},{"name":"availability","value":"low"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"low"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.01055},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Fri Jun 07 2024 09:39:33 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"medium"},{"name":"relativePopularityRank","value":98},{"name":"impact","value":4.19},{"name":"likelihood","value":2.67},{"name":"scoreVersion","value":"V5"}],"severity":"medium","title":"Undefined Behavior"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-SCIKITLEARN-7217830","priority_score":196,"priority_score_factors":[{"name":"confidentiality","value":"high"},{"name":"integrity","value":"none"},{"name":"availability","value":"none"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"low"},{"name":"attackComplexity","value":"high"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.01055},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Fri Jun 07 2024 08:44:07 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":false},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"medium"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":5.99},{"name":"likelihood","value":3.26},{"name":"scoreVersion","value":"V5"}],"severity":"medium","title":"Storage of Sensitive Data in a Mechanism without Access Control"}],"prId":"9dc00569-83d7-426b-a59c-cd174c19548f","prPublicId":"9dc00569-83d7-426b-a59c-cd174c19548f","packageManager":"pip","priorityScoreList":[278,170,112,196],"projectPublicId":"4cc5cdb7-3324-49f9-8488-f2b1145bed6b","projectUrl":"https://app.snyk.io/org/1.-demo-env/project/4cc5cdb7-3324-49f9-8488-f2b1145bed6b?utm_source=github-enterprise&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["pr-warning-shown","priorityScore"],"type":"auto","upgrade":[],"vulns":["SNYK-PYTHON-MLFLOW-6102483","SNYK-PYTHON-MLFLOW-7217833","SNYK-PYTHON-MLFLOW-7217835","SNYK-PYTHON-SCIKITLEARN-7217830"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}'

🎉 Snyk hasn't found any issues so far.
✅ code/snyk check is completed. No issues were found. (View Details)

🎉 Snyk hasn't found any issues so far.
✅ code/snyk check is completed. No issues were found. (View Details)


Added data prop to ImageComponent. This would result the data back wh…

…en clicking on each Imagecell through props.

Added data prop in ImageCell Component to send back props when rendering the custom image layouts.


Fix linux purge for Bionic

The execute Linux Purge task hangs in Bionic, investigate and fix.

Closing in favour of #13


Vary middleware

Here's how it looks (just a draft yet). Let me know if you're ok with the approach before I finish it.
Also I've noticed you implemented tower middleware in the guard, is there any benefits compared to axum::middleware::from_fn. I can't imagine how one would use the crate without axum, so depending on it instead of axum-core seems ok, isn't it?

@robertwayne haven't had a chance to look at it yet?

Yeah, I'm good with this approach. It's about what I envisioned when you originally brought up channels. You can finish This should live behind a feature, for sure.

Also I've noticed you implemented tower middleware in the guard, is there any benefits compared to axum::middleware::from_fn. I can't imagine how one would use the crate without axum, so depending on it instead of axum-core seems ok, isn't it?

Yeah, it certainly could have used the axum from_fn method. I just chose to go with the most flexible (and lowest level) option available after initially reading through the axum middleware documentation.

@robertwayne just making sure you don't miss it, no hurry

Thanks for the ping (and the work on this)!
This looks great to me; tests, docs, and example. Thank you again!


CI: All Ruby versions are current failing the Sequel multiverse test suite

For all tested Ruby versions, the Sequel multiverse test suite has suddenly stopped capturing explain plans for Sqlite3 based SQL queries which causes fully 4 separate Sequel extension tests to fail.
To reproduce:
bermq sequel

I believe the root cause has been discovered.
In testing, Sequel is using TimedQueueConnectionPool. But our Sequel extension will only record explain plans when ThreadedConnectionPool is the pool class in play given that it is the only class in our THREAD_SAFE_CONNECTION_POOL_CLASSES array.
If TimedQueueConnectionPool is considered thread safe, we could add it to THREAD_SAFE_CONNECTION_POOL_CLASSES:
--- a/lib/sequel/extensions/new_relic_instrumentation.rb
+++ b/lib/sequel/extensions/new_relic_instrumentation.rb
@@ -78,8 +78,9 @@ def notice_sql(sql)
     end

     THREAD_SAFE_CONNECTION_POOL_CLASSES = [
-      (defined?(::Sequel::ThreadedConnectionPool) && ::Sequel::ThreadedConnectionPool)
-    ].freeze
+      (defined?(::Sequel::ThreadedConnectionPool) && ::Sequel::ThreadedConnectionPool),
+      (defined?(::Sequel::TimedQueueConnectionPool) && ::Sequel::TimedQueueConnectionPool)
+    ].compact.freeze

That gets the tests to pass. If it is not thread safe, then we will have to dig further to determine what is causing the extension tests to suddenly use a different pooling class.


Updated README about address alignment restriction

This PR:

is related to issue #52.
documents the address alignment restriction in README.

Updated. @drossetti please check.


highlightedSnippet() does not work

When rendering the search results and trying to print the $hit->highlightedSnippet() nothing gets returned but $hit->snippet() does return something (unhighlighted of course).
Am I missing something?

I'm also experiencing this, highlightedSnippet() does not return anything, but snippet() returns things that shouldn't be visible. When I'm searching something like "empleo", a simple string, it returns code from another part of the website which is completely unrelated, like in this case, where it returns something related to Axios:

I'm not sure why this is happening, but it seems that sometimes it captures this random code lines, and passes them as the snippet.

@carlosmfnt I had the same problem as you. I got rid of this by adding script to the ignored css selectors in the site_search. ignore_content_by_css_selector setting.
It does not explain why this content gets displayed though. Maybe the Meilisearch typo tolerant feature sees "empleo" somewhere in your XSRF token?! 😅


Add: Vue Tic Tac Toe (Reviewed)

General

✏ Mark the necessary items without changing the structure of the PR template.

[x] Pull request template structure not broken

Type

ℹ  What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[ ] Fix
[x] Feature

Checklist

ℹ  Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉  Put an x in the boxes that apply.

[x] Title as described
[x] Make sure you put things in the right category!
[x] Always add your items to the end of a list

Open Source

[x] Link description does not contain a link to an author / third-party resource
[x] The documentation (README) contains a description of the project, illustration of the project with a demo or screenshots and a CONTRIBUTING section
[x] The documentation is in English.
[x] The project is active and maintained.
[x] The project accepts contributions.
[x] Not a commercial product

Apps/Websites

[x] The website is available without errors or ssl certificate problems, and load in a reasonable amount of time.
[ x The website is using vuejs intensively. It should detect vue with vue-devtools.

If you cannot detect vue with vue-devtools due to work at non public pages (e.g. for enterprise website), you can send Pull Request with screenshot that detected it.

[x] The website is original and not too simple. For that reason, blogs and simple landing pages are rejected.
[x] A commercial product using Vue, provided that guests could reasonably check out how Vue was used (i.e. A headless CMS which uses Vue for the Admin/editor Area and offers a free tier).

I put it at the end of the list. I forgot that rule

With a username like that I asssumed you'd want to do some evil 😄 but its good now.

😂, thanks


Creating an LLM Using Ollama & Web Content

Idea

The purpose of this project is to have a bot utilizing a large language model work on a server.
Now, the team wants to create documentation on how to create your own model based on the information on a website (i.e. Information about a University/College)
Hopefully, we can build a web scrapper to scrap data that can be fed into a Modelfile to allow a Model to learn about a topic/area.

References

We will be looking to how to create a model both from scratch and by attaching.

Customizing a Prompt with ollama
Creating a model with ollama

A lot to learn here! Or not...?
Web scrapping with Beautiful Soup!

Refer below for an example

Sample Creation
Pulling the model:
ollama pull llama2

Modelfile:
FROM llama2

# set the temperature to 1 [higher is more creative, lower is more coherent]
PARAMETER temperature 1

# set the system message
SYSTEM """
You are Mario from Super Mario Bros. Answer as Mario, the assistant, only.
"""

Testing:
ollama create mario -f ./Modelfile
ollama run mario
>>> hi
Hello! It's your friend Mario.

Goal
This documentation will likely release on v1.0.0 and up as that will (should) be the end of this project besides maintaining and updating package versions.

This idea can be expressed in a section in the README about extending the project beyond what is planned by the present contributors as this project approaches a year in development.


Fixup CLI test

What does this PR do?
https://github.com/huggingface/transformers/commit/0ae789e04330e15a90e34cd723c851a8ab8d7ec5#diff-a48ba7f6444ca4954a58f1ac3e66c7941a2bbc4615649d56b182aeac8cc36d9c introduced _no_split_modules to the Bert config in the last release...which caused our tests to fail because the largest layer group is now the embeddings!
Changes the tests to reflect this behavior (since it's actually what we want)
Fixes failing tests on main + nightlies
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@SunMarc

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Adding JsonReader and InvariantParser.TryParse uint from Utf8String

Initial implementation.
Please provide feedback.
@krwq @KrzysztofCwalina
There is a TODO to use SubstringFrom and SubstringTo once it is completed.

Please review and provide feedback. I have tried to enable the usage as per the comments from @krwq,
There is still work left but I wanted to move the conversation further.


HARP-7904: Restrict string encoded literals

Thank you for contributing to harp.gl!
Before requesting a pull request, please remember to check the following documents:

contribution guidelines
coding style

If you are adding new functionality we would highly appreciate if you can describe what is the capability you are adding and even better if you can add some examples. Please also remember to add tests for it.
CI Check
Our bots will check whether your PR can be directly integrated into the mainline. We have some internal integration tests running on the background, our bots will inform you of the next steps and someone from our team will take a look and help if needed!
And please do not forget to sign-off your commit! You can read more about DCO here. But, in short, you just need to use git commit -s or append --signoff when you are committing to the repo.
Happy contributing!

Soon I will add (update) unit tests that proves the concept.

Codecov Report

Merging #1067 into master will increase coverage by 0.03%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master    #1067      +/-   ##
==========================================
+ Coverage   45.86%   45.89%   +0.03%
==========================================
  Files         238      238
  Lines       22171    22198      +27
  Branches     4981     4993      +12
==========================================
+ Hits        10168    10188      +20
- Misses      12003    12010       +7

Impacted Files
Coverage Δ

...rp-datasource-protocol/lib/InterpolatedProperty.ts
87.58% <50%> (+7.95%)
:arrow_up:

...rp-datasource-protocol/lib/StringEncodedNumeral.ts
53.33% <56.25%> (-6.67%)
:arrow_down:

@here/harp-mapview/lib/DecodedTileHelpers.ts
45.29% <75%> (+0.54%)
:arrow_up:

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 3ee6cb0...c0cebde. Read the comment docs.

Soon I will add (update) unit tests that proves the concept.

Unit test for StringEncodedLiterals are done and PR updated.


fix:loosing side start with center position

if position other than 5 is select by human computer will choose 5.

ok, go ahead


Create and maintain release notes

Analysis
Current State
Currently, the release overview  just shows the release number and commit.
Problem
For me, it is very difficult to find out which changes/PRs have been released and therefore run the nightly jobs.
I would like to see, which change/PR has been released to master and is running the nightly job.
Solution
Potential solutions

Manually add each PR to the release notes (see an example)
Using https://chronicler.starchartlabs.org/
Using https://github.com/toolmantim/release-drafter
... any other solution, which solves the problem

https://github.com/raiden-network/scenario-player/pull/261 does not seem to have fixed this issue. At least I don't find details about the release within https://github.com/raiden-network/scenario-player/releases/tag/v0.3.9


Removed the possibility to blacklist zero address

The new error ZeroAddressToBlacklist was created to remove the possibility to blacklist the zero address, because zero address is used for burning operations and it should not be blacklisted.
Function blacklist now will be reverted if zero address is passed as a function parameter. Function unblacklist still can remove zero address from the blacklist.
New feature is covered with tests.

Note: Implements https://github.com/cloudwalk/product-blockchain/issues/111


Fixed: Login with LinkedIn does not work

Fixed: accessing entity properties deprecation in social-profile.phtml
Fixed: call to a member function getData() on boolean in Auth/src/Auth/Adapter/HybridAuth.php#113
Auth\Entity\SocialProfiles\ProfileInterface now also implements Core\Entity\IdentifiableEntityInterface
#366

Coverage decreased (-0.01%) to 35.697% when pulling a9943a83ed6ce2067beb9633cd9de237b814546b on fedys:issue-366 into 2eed95beb1b8663e4475442ce1af6edf4a5f751b on cross-solution:release/0.29.


why use origin [0.5, 0.5, 0.0] as the origin for lidar bbox

hello @traveller59
I noticed that you found points inside bbox by points_in_rbbox(...) in box_np_ops.py
May I know why you are using [0.5,0.5, 0.0] as origin (lidar input, why not [0.5,0.5,0.5], the actual center point of the box) ?
Thanks in advance
Lin

The origin of KITTI official label format is [0.5, 1.0, 0.5], after convert camera box to lidar by rect and transform matrix, the origin become [0.5,0.5, 0.0]. Change this shouldn't affect performance.
you may need to change lots of functions if you want to change this, be careful.

:+1:

Thanks for the reply. As I am trying to use my own lidar data and it seems the center loc in annotation is at the actual center of the bbox. So I may need to change all [0.5,0.5,0.0] to be [0.5,0.5,0.5].
I will follow the logic of the code and try to modify it one by one.
Do you have any idea that where related function might be called?


Extra integration

CheckoutSessionCreateParams: some params tweaking
CheckoutSessionInformation: provide more Stripe object info
Add feature: lookup Stripe customer by email

The usage of exposed Stripe objects in CheckoutSessionInformation
public readonly Session $session;

id
currency
livemode
metadata[]
line_items[].description
line_items[].amount_subtotal
line_items[].quantity
line_items[].amount_discount
line_items[].amount_tax
total_details.amount_discount
total_details.amount_tax
customer_details.tax_ids[].type
customer_details.tax_ids[].value

public readonly ?Customer $customer;

This can be dropped

public readonly ?Invoice $invoice;

id
created
subscription.id
The whole invoice data is used as the response argument of POST /contract/payment/success

public readonly ?PaymentMethod $paymentMethod;

card.country
billing_details.address.country
billing_details.address.line1
billing_details.address.line2
billing_details.address.city
billing_details.address.state
billing_details.address.postal_code

public readonly ?Subscription $subscription;

id
The whole subscription data is used as part of the payment_provider_profile argument of POST /contract/payment/setup


Feature: Invoke Randomly Timed Chaos

Schedule a chaotic event at a specific time.
Chaotic event at a time that ...

...Happens at moment of invocation (accomplished via chaos start <extension>).
...Happens at a randomly decided future moment.
...Happens at future moment within a given time window.

Focus here is on the random point in the future and random point in a given window.

See https://github.com/Azure/platform-chaos-cli/issues/11


remove some logs.

remove some logs.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Test error on Ubuntu: Module-scoped fake filesystem fixture not found

Describe the bug
If I run pytest -vv -x, (-vv is to get verbose output, -x is to stop pytest at first error) I get the following error:
pyfakefs/tests/fake_filesystem_unittest_test.py::TestModuleScopedFsWithTmpdir::test_fail ERROR                                                                                [ 21%]

=============================================================================================== ERRORS ===============================================================================================
______________________________________________________________________ ERROR at setup of TestModuleScopedFsWithTmpdir.test_fail ______________________________________________________________________
file /home/sophie/.local/dev/pyfakefs/pyfakefs/tests/fake_filesystem_unittest_test.py, line 889
      def test_fail(self, fs_module):
E       fixture 'fs_module' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, mock, mocker, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, test_internal, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/home/sophie/.local/dev/pyfakefs/pyfakefs/tests/fake_filesystem_unittest_test.py:889
====================================================================================== short test summary info =======================================================================================
ERROR pyfakefs/tests/fake_filesystem_unittest_test.py::TestModuleScopedFsWithTmpdir::test_fail
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================== 403 passed, 39 skipped, 4 xfailed, 1 error in 2.06s =========================================================================

I followed the given advice (hence pytest --fixtures pyfakefs/pytest_plugin.py), but everything was green (it found the module-scoped fixture):
---------------------------------------------------------------------------- fixtures defined from pyfakefs.pytest_plugin ----------------------------------------------------------------------------
fs -- pyfakefs/pytest_plugin.py:21
    Fake filesystem.

fs_module [module scope] -- pyfakefs/pytest_plugin.py:34
    Module-scoped fake filesystem fixture.

fs_session [session scope] -- pyfakefs/pytest_plugin.py:46
    Session-scoped fake filesystem fixture.

First try was with older pytest (the focal packaged one, 4.6.9), but I have got the same result with latest pytest (>7.0).
I am not 100% sure this is a bug: maybe I haven't run the right tests? Or not the right way?
I have looked for the same test in your github actions (Latest Ubuntu, python3.8), but I have not found it.
How To Reproduce
Just run pytest -vv -x in the cloned repo (master branch)
Your environment
Linux-5.4.0-122-generic-x86_64-with-glibc2.31

Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0]

pyfakefs 4.7.dev0

Looks like I put this test into the wrong module. The test assumes that pyfakefs is installed as a package, so that the fixtures are registered. This is only assumed for the pytest_plugin_test module where this test belongs, and which is not by run default - I will move it there. I did not notice this, as the CI tests do install pyfakefs, and I locally use a developer install.
Thanks for the report - I will fix this in master, and then look at the other Pytho 3.11 related problems that have been reported before making a patch release.

Please check if it works with current master.

Thanks for your quick patch!
Unfortunately, it still fails the same way. I installed pyfakefs in a venv, to make sure it was installed (python setup.py install and python setup.py develop is the right way, I guess), but still:
(py38) pyfakefs [master|+1*330] $ pytest -vv -x
=============================================== test session starts ================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-0.13.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/sophie/.local/dev/pyfakefs
plugins: mock-1.10.4, cov-2.8.1
collected 2068 items

pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py::test_failed_testresult_stacktrace SKIPPED (Only run in CI tests) [  0%]
pyfakefs/pytest_tests/pytest_fixture_param_test.py::test_example_file_failing XFAIL                          [  0%]
pyfakefs/pytest_tests/pytest_fixture_param_test.py::test_example_file_passing_using_parametrized_fixture[fs0] PASSED [  0%]
pyfakefs/pytest_tests/pytest_fixture_param_test.py::test_twice_chdir PASSED                                  [  0%]
pyfakefs/pytest_tests/pytest_fixture_test.py::test_example_file_failing XFAIL                                [  0%]
pyfakefs/pytest_tests/pytest_fixture_test.py::test_example_file_passing_using_fixture PASSED                 [  0%]
pyfakefs/pytest_tests/pytest_fixture_test.py::test_example_file_passing_using_patcher PASSED                 [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py::test_fs_fixture PASSED                                          [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py::test_fs_fixture_alias PASSED                                    [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py::test_both_fixtures PASSED                                       [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py::test_pause_resume PASSED                                        [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py::test_pause_resume_contextmanager PASSED                         [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py::TestModuleScopedFsWithTmpdir::test_fail ERROR                   [  0%]

====================================================== ERRORS ======================================================
_____________________________ ERROR at setup of TestModuleScopedFsWithTmpdir.test_fail _____________________________
file /home/sophie/.local/dev/pyfakefs/pyfakefs/pytest_tests/pytest_plugin_test.py, line 62
      def test_fail(self, fs_module):
E       fixture 'fs_module' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, fake_filesystem, fs, fs_reload_example, mock, mocker, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, test_internal, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/home/sophie/.local/dev/pyfakefs/pyfakefs/pytest_tests/pytest_plugin_test.py:62
============================================= short test summary info ==============================================
ERROR pyfakefs/pytest_tests/pytest_plugin_test.py::TestModuleScopedFsWithTmpdir::test_fail
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================= 9 passed, 1 skipped, 2 xfailed, 1 error in 0.54s =================================

Ok, thank you - now I understood the problem, I fixed only half of it. I had an extra import for fs added in the conftest.py. This allowed these tests to to run without pyfakefs installed, and I forgot to add the same for fs_module. I probably have to remove installing the pyfakefs package in the CI tests to find these kind of problems. Thanks again!

Ok, second try - please check again!

Well, the tests do pass, but there's a strange exception at the end (sophie being the current user name):
pyfakefs [master|+1*330] $ pytest -x
=========================================================== test session starts ============================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-0.13.0
rootdir: /home/sophie/.local/dev/pyfakefs
plugins: mock-1.10.4, cov-2.8.1
collected 2068 items

pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py s                                                                           [  0%]
pyfakefs/pytest_tests/pytest_fixture_param_test.py x..                                                                               [  0%]
pyfakefs/pytest_tests/pytest_fixture_test.py x..                                                                                [  0%]
pyfakefs/pytest_tests/pytest_plugin_test.py ......                                                                                [  0%]
pyfakefs/tests/dynamic_patch_test.py .....                                                                                [  0%]
pyfakefs/tests/example_test.py .......s                                                                                [  1%]
pyfakefs/tests/fake_filesystem_glob_test.py .........                                                                                [  1%]
pyfakefs/tests/fake_filesystem_shutil_test.py ................s...ssssssssssssssssssssss...........sssssssssss                       [  4%]
pyfakefs/tests/fake_filesystem_test.py ............................................................................................. [  9%]
.............................................s.................................s.................................................... [ 15%]
......................................                                                                                [ 17%]
pyfakefs/tests/fake_filesystem_unittest_test.py .........................x...............................x.......................... [ 21%]
s                                                                                [ 21%]
pyfakefs/tests/fake_filesystem_vs_real_test.py ...........................                                                           [ 22%]
pyfakefs/tests/fake_open_test.py .......................................................................ssssssssssssssssssssssssssss [ 27%]
sssssssssssssssssssssssssssssssssssssssssss...sss..sss............ssssssssssss..........ssssssssss.....s..ssssssss.....sssss.....sss [ 34%]
..ss.....sssss..................ssssssssssssssssss                                                                                [ 36%]
pyfakefs/tests/fake_os_test.py ..................................................................................................... [ 41%]
.................................................................................................................................... [ 47%]
................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 54%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 60%]
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss................................................................... [ 66%]
................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.................s............... [ 73%]
....................s......sssssssssssssssssssssssssssssssssssssssssssssssss...........sssssssssss.................................. [ 79%]
....ssssssssssssss............ssssssssssssss............ssssssssssssss............ssssssssssssss.......sss                           [ 84%]
pyfakefs/tests/fake_pathlib_test.py ....s.sssssssssssssss.s......sssssssss.s..........s....sssssssssssssssss...ss........s.......... [ 89%]
.sssssssssssssssssssssssssss.......................................s...sssssssssssssssssssssssssssssssssssssssssss.....              [ 95%]
pyfakefs/tests/fake_stat_time_test.py .......sssssss........ssssssss.......sssssss........ssssssss.....sssss......ssssss             [ 99%]
pyfakefs/tests/fake_tempfile_test.py ........                                                                                [ 99%]
pyfakefs/tests/mox3_stubout_test.py .........                                                                                [100%]

=============================================== 1239 passed, 825 skipped, 4 xfailed in 5.70s ===============================================
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 2210, in get_object_from_normpath
    target = target.get_entry(component)  # type: ignore
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 733, in get_entry
    return self.entries[to_string(pathname_name)]
KeyError: 'pytest-of-sophie'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sophie/.local/lib/python3.8/site-packages/_pytest/pathlib.py", line 342, in cleanup_numbered_dir
    for path in cleanup_candidates(root, prefix, keep):
  File "/home/sophie/.local/lib/python3.8/site-packages/_pytest/pathlib.py", line 328, in cleanup_candidates
    max_existing = max(map(parse_num, find_suffixes(root, prefix)), default=-1)
  File "/home/sophie/.local/lib/python3.8/site-packages/_pytest/pathlib.py", line 170, in extract_suffixes
    for p in iter:
  File "/home/sophie/.local/lib/python3.8/site-packages/_pytest/pathlib.py", line 158, in find_prefixed
    for x in root.iterdir():
  File "/usr/lib/python3.8/pathlib.py", line 1122, in iterdir
    for name in self._accessor.listdir(self):
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_pathlib.py", line 62, in _wrapped
    return strfunc(pathobj.filesystem, str(pathobj), *args, **kwargs)
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 3382, in listdir
    directory = self.confirmdir(target_directory)
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 3288, in confirmdir
    directory = cast(FakeDirectory, self.resolve(target_directory))
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 2265, in resolve
    return self.get_object_from_normpath(self.resolve_path(
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 2215, in get_object_from_normpath
    self.raise_os_error(errno.ENOENT, path)
  File "/home/sophie/.local/dev/pyfakefs/pyfakefs/fake_filesystem.py", line 1098, in raise_os_error
    raise OSError(err_no, message, filename)
FileNotFoundError: [Errno 2] No such file or directory in the fake filesystem: '/tmp/pytest-of-sophie'

Thank you for your quick answers too!
I'll answer as quick as possible. Sometimes it can't be as quick as I wish (tonight I'm not sure, maybe it'll be late).


Demote jackson databind version to <IP_ADDRESS>

Purpose

Subject

Related PRs

https://github.com/wso2/product-is/pull/15097

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3382387939

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3382387939
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3383021569

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3383021569
Status: success


koji does not respect config in ~/.config/koji/config.toml

Describe the bug
I created a config.toml in ~/.config/koji/ with only one config line: emoji = true
When I run just koji in a git repository it does not show emojis.
When I run koji --config ~/.config/koji/config.toml the emojis are shown.
To Reproduce
See Describe the bug above
Expected behavior
koji is respecting the config in $XDG_CONFIG_HOME/koji/config.toml
Screenshots

Additional context
OS: macOS with zsh
Terminal: Alacritty with tmux; iTerm2 (both tested)
Putting a .koji.toml in the git repository works fine!

Hi Alexander, thanks for your great bug report! I'm working on a fix.

The issue should now be fixed on the main branch, so either install koji directly from the repository (cargo install --git https://github.com/cococonscious/koji) or wait for the next release (PR #117).


feature: Add margin and side props to IconText

Related to #109

Travis automatic deployment:
https://pr113--safereactcomponents.review.gnosisdev.com

@alongoni as per the retro discussion, could you add a short summary in the PR description?
What has been done, and how to test it (which icons in the UI were affected specifically).

Shouldn't margin automatically appear in the list of props in the storybook?
I can see iconSide in the list but not margin. 🤔

@katspaugh seems like a problem with the last build. Running it locally works as expected.

@alongoni you can run this command yarn tsc to see all the places that are broken

Travis automatic deployment:
https://pr113--safereactcomponents.review.gnosisdev.com

Travis automatic deployment:
https://pr113--safereactcomponents.review.gnosisdev.com

Looks good!
Maybe we could make the default margin value depend on the text size? If the text is small, the margin should be also small. And vice versa. Then you wouldn't have to pass it every time.


fix(connectivity): add dns rules and change protocol to ANY

Connectivity tests fail with the node-local-dns environment. This PR adds missing DNS rules and changes protocol from UDP to ANY

/test

Sorry for the delay.

Test failures -

AKS: no-policies/pod-to-world/https-to-bing.com-1: cilium-test/client2-5c6c769648-7zd4n (<IP_ADDRESS>) -> bing.com-https (bing.com:443)

We have similar flakes every now and then where tests involve connecting to an external entity.
I've restarted the external workloads test as there were some infrastructure failures in the earlier run.


LegoDevOps in English

Hi!
I would like to translate the game to English, (we use it internally:  https://www.eficode.com/blog/lego-devops)
How can we collaborate?
You are very welcome to contact me for more in depth talk.

HI,
I'am happy that you use this serious game and you want to collaborate to improve it.
I received several requests to have an english version and some people already translate it.
I will create a branch with resources i have waiting to integrate it properly in the site.

That sounds great @sfauvel !
Again, tell me if there is something I can help out with, as I would love to promote this more than just internally :)
We ran the game at a University course this summer with 120 students :tada:


新增fabric2.0账户支持。

Codecov Report

Merging #160 (c352f8f) into dev (5399cb7) will decrease coverage by 0.00%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##               dev    #160      +/-   ##
==========================================
- Coverage     5.59%   5.58%   -0.01%
  Complexity      35      35
==========================================
  Files           22      22
  Lines         2075    2076       +1
  Branches       268     269       +1
==========================================
  Hits           116     116
- Misses        1936    1937       +1
  Partials        23      23

Impacted Files
Coverage Δ

...n/java/com/webank/wecross/console/rpc/RPCImpl.java
0.00% <0.00%> (ø)

...om/webank/wecross/console/common/ConsoleUtils.java
35.35% <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 5399cb7...c352f8f. Read the comment docs.


⚠ Bofrost.fr has degraded performance

In 03f5a4d, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1700 ms

Resolved: Bofrost.fr performance has improved in 39561e2.


Add one shot mode

This adds one shot mode, done by @kd0aij - I'm merely assisting with the integration and continuing this PR: https://github.com/PX4/Firmware/pull/6616

i am intrested to know the advice that would be given about hacking counter frequency?

@greybush
The best reference is the STM32 reference manual for the SoC. The complications come in from the fact that all stm32 timers are not the same.  Some have 32 bit regs others do not. There is an appnote that explains the differences.  The other consideration is all PX4 bards provide a table of timers/ channels.
The normal useage is to set the prescaler to divide by the input freq/1Mhz so the counter 1 counts per 1uS.  All the rates are based on 1uS resolution.

Continuing
Rebased on master e892a51afb59763255d48d5df2613c1e10b713bc
Per @LorenzMeier
Threading / work queue should be runtime
125 nS preferred if feasible

as far as I understand it when mixed (number of outputs mixed) is 0, it should clamp everything to 0 (off). It would mean that the mixing failed or the loaded mixer is invalid, etc.

Or is this not what you're discussing?

@julianoes - Thank you for the feedback. I am am out of my element here. So guidance is much appreciated.
@kd0aij, given @julianoes - would my proposed change accomplish what your intent was? If not please let me know how you would like the done.

This is what the comment is referring to:
https://github.com/PX4/Firmware/blob/e33af23122f5ee3030bb9745bbbf616b24c2a14a/src/modules/px4iofirmware/mixer.cpp#L106
On Fri, Mar 3, 2017 at 6:42 AM Julian Oes<EMAIL_ADDRESS>wrote:

@julianoes commented on this pull request.
In src/modules/px4iofirmware/mixer.cpp
https://github.com/PX4/Firmware/pull/6678#discussion_r104154337:

@@ -287,19 +295,29 @@ mixer_tick(void)
/* mix */
mixed = mixer_mix_threadsafe(&outputs[0], &r_mixer_limits);

/* the pwm limit call takes care of out of band errors */

pwm_limit_calc(should_arm, should_arm_nothrottle, mixed, r_setup_pwm_reverse, r_page_servo_disarmed,

	       r_page_servo_control_min, r_page_servo_control_max, outputs, r_page_servos, &pwm_limit);

/* if mixer_mix_threadsafe returns zero, it did nothing */

if (mixed != 0) {

Let me check.
For multirotors, it's _rotor_count
https://github.com/PX4/Firmware/blob/master/src/modules/systemlib/mixer/mixer_multirotor.cpp#L421.
It's set using the underlying geometry, so it should be something valid if
the mixer was loaded correctly and wouldn't just be erratic during flight.
Also for fixedwing (simple mixer) it looks straightforward:
https://github.com/PX4/Firmware/blob/e7db0ed098bcc030042aba0667d09da67c130ffe/src/modules/systemlib/mixer/mixer_simple.cpp#L313
.
Therefore, I think the implementation as it was is fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PX4/Firmware/pull/6678#discussion_r104154337, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACMZPS52I_KrPWTteFj9R1eY5n_SZVPJks5riBitgaJpZM4MMydS
.

@davids5 Is there a unit test for this? Does this implementation allow both PWM and oneshot channels in the same timer?

@kd0aij -
No a timer can only be in one mode - so all channels in group (timer) are in the same mode.
I think we do need to have a mode in the FMU to get the default rate and alt rates to set to 0.

@davids5 From my post on the forum topic: "the only parameter change required is to set PWM_RATE to zero. Leave PWM min/max/disarmed at the "normal" values." You should see jitter on the output pulses and the frequency should average 250Hz.
http://discuss.px4.io/t/px4-oneshot125/303/36?u=mark_whitehorn

@kd0aij Did you only test with a quad?
Even with PWM_RATE = 0
pwm oneshot -m 0xf -g 0 -d /dev/pwm_output0
pwm oneshot -m 0x30 -g 1 -d /dev/pwm_output0

The second command - would bounce the first set back to the non zero value of _pwm_default_rate
I could not see a way to get the fmu variables:
_pwm_default_rate = 0;
_pwm_alt_rate = 0;

The last commit does that. - We can back it out if it is not need.

I've never used the -m switch; doesn't that imply you can set channel modes arbitrarily? I only used -g myself. I'm not aware of any documentation explaining the logic (or lack thereof).
What do you mean by "test with a quad"?  I wasn't aware that the timer outputs were dependent on the airframe type, and would demand that timer modes are orthogonal to airframe type.

@kd0aij  I was asking if you had tested (or scopped) more than 4 servo outs?

@PX4TestFlights Can you test this on a racer and see if you can increase rate gains?

@davids5 I tested both fmu and px4io as stated here: https://github.com/PX4/Firmware/pull/6616#issue-208740733

@LorenzMeier

rcS may need to be augmented to used the task option on fmu.
We may need more work on the pio.  In https://github.com/PX4/Firmware/pull/6678#issuecomment-284117901 I described the how The second command - would bounce the first set back to the non zero value of _pwm_default_rate. Thy may just be my lack of understanding of how to get the  default and alt rates set to 0. Hence commit 22738b1. How would this be done for the pio?

Testing verification:
It is my understanding that an ESC will not outwardly appear to act differently if the given input it supplied as PWM or Oneshot.
@PX4TestFlights - do you have a oscilloscope and a octo to test on?
When testing please configure the craft and then verify that the all 8 channels are in oneshot mode with a oscilloscope.  The PWM pins should not have high times > 250uS

@davids5 What is the definition of channel "group" and "mask"? Are they orthogonal, as is implied by some of the comments in the code?

@kd0aij - Do you have a link to the comment you are referring to.
It is my understanding in general that the group is the timer and the mask is the channels on that timer to affect, The mask is the channel number's bit position.  So channel 5 & 6 is 0x30 not 0x03
But the latter is command dependant.

So for  pwm -g 1 -m 0x30 -d /dev/pwmout0 (on a FMUv4 - not PX4IO)
is setting the group 1 to use the alt rate. The -m is the alt rate selection mask
So for  pwm -g 1 -m 0 -d /dev/pwmout0 (on a FMUv4 - not PX4IO)
is setting the group 1 to use the default rate. The -m is the alt rate selection mask
But I think the complication comes in here:
This say group (aka timer) has a bit mask of channels and you asking to modify a rate not on this group

Then it is at best misleading to require specifying both group and mask, and likely indicative of a design flaw.

Its not a design flaw. The current design requires all outputs of a timer to have the same rate (in theory multiples of a rate would be feasible and maybe what we want here to ease up the constraints).
The mask applies to all outputs of s PWM device and allows you to pick multiple timers at once and is more intuitive than specifying timers.
However, while this design closely reflects the HW I think we should switch so outputs at multiples of a rate become feasible. So 400 Hz and 50 Hz can be mixed, 300 and 400 Hz could not. That would make the airframe config much easier and only minimally increase the driver complexity and runtime interrupt load.

@davids5 Can you rebase and get this ready for flight testing?

@LorenzMeier - rebased - please chime in on
https://github.com/PX4/Firmware/pull/6678#pullrequestreview-25087903 and
https://github.com/PX4/Firmware/pull/6678#issuecomment-284156929

@julianoes It would be great if you could do the last fixes and testing. @MaEtUgR Would you mind chiming in on testing as well?

@LorenzMeier I'll bench test this but I don't have a setup to fly this.

@julianoes - Thanks for the review and catching my spelling errors! I can force push the fixes if you like.
Is the change an issue for normal operations? It was done by the OA and I do not have the familiarity with that part of the system to fully understand the ramifications.

Are this change and this one an issue for normal operations? It was done by the OA and I do not have the familiarity with that part of the system to fully understand the ramifications.

@LorenzMeier, @julianoes  -Other than the 2 issues noted above - I done with changes.

@MaEtUgR @julianoes Something for you to try - I'll get you Mindracer frames.

Flashed a pixhawk mini with this PR and it caused issues where RCin was not detected
was able to reproduce this and record, video below:
https://youtu.be/OsBB4cGbe54

@davids5 Can you look at the RC in detection problem with Santiago?

broken RCin mentioned earlier was due to pull being outdated
old commit: 1511fc6abeb1226cef30ab67468d3f1ed0ad2fef
new commit: 695e405450611c3d5b96767566a691b7cf15ab87

@santiago3dr
Would you please flight test it as well?
Also please advise if you can do what is listed here with a scope once setting PWM rates to 0

A couple of logs using one of our racers (old logger):
http://logs.uaventure.com/view/SQDKK2GWpfNHfcKwBzvgRa
http://logs.uaventure.com/view/iSsEha628yxhxdWmqTk4k7
http://logs.uaventure.com/view/8UmGv9e29EfJgCNZejex58
http://logs.uaventure.com/view/kY92UJg43nMuLkvopicpYF

is the oneshot125 finished and added to the flight stack yet?

@greybush - it is not merged yet. You can test it from here if you like.


Add better error message for failed request

A mod I was playing with got taken down on modio, so updating cache caused a 403. Looking at logs there was only this error, with no information on which mod/request caused it. By going through the last ~20 or so requests I was able to manually check, but it would be helpful if the error message said which request it failed on.
ERROR mint::gui::message: modio::Error {
    kind: Status(
        403,
    ),
    source: Error {
        code: 403,
        error_ref: 15024,
        message: "The mod ID you have included in your request could not be found.",
        errors: None,
    },
}

The mod in question: https://mod.io/g/drg/m/better-bad-terrain#3436106

cc @monsoonification

Note that you should also:

Clear the app.request_failed_mod_id (or whatever you name it) on App as soon as the user clicks the integrate / install mods button.
Get the mod id from ur propagated error information, compare it with the available mod information in the GUI, then render an error icon next to the appropriate entry.

Implemented in #138


Add keepalive flag. Fixes issue #30

Adds a new boolean flag -K or --keepalive to use persistent connections for the requests.

Codecov Report

Merging #43 into master will decrease coverage by 0.33%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
- Coverage   72.07%   71.75%   -0.32%
==========================================
  Files           8        8
  Lines         358      361       +3
==========================================
+ Hits          258      259       +1
- Misses         82       84       +2
  Partials       18       18

Impacted Files
Coverage Δ

attacker/attacker.go
69.45% <0.00%> (-1.98%)
:arrow_down:

main.go
55.92% <88.89%> (-0.12%)
:arrow_down:

Continue to review full report at Codecov.

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

@cvhariharan Hey, thank you for your contribution!


Remove requirement that the module to link exports _start.

This PR removes the requirement that the root module being linked
exports a _start function.
Instead, it now simply reexports all exported functions.  This will
enable use of the linked modules from profiles where a start function
isn't necessary (i.e. the host will call some other function).
Updated the CLI to remove references to a "main" module.
Fixes #59.

cc @radu-matei


recode image search to use AsyncDDGS

update duckduckgo_search to v3.9.1
recode image search to use AsyncDDGS

thank you, merge in #378


[Mentorship Session Request][ Machine Learning ] KGiSL Institute of Technology

Student Group Name
Tech Group - KGISL Institute of Technology
What do you want the speaker to talk about?
Getting Started with ML, Foundations and Algorithms
Are you looking for a specific tech stack expert? If yes, mention
ML
Any additional comments?
Will this session be recorded?
Yes
Where are you going to publish the recording?
Youtube and other internal college channels
What will be the attendance?

50

Preferred Timing?
As per the mentor's convenience
Mentor suggestion?(have a look at mentor's list and then suggest)
Your Name and Contact Details
Dr. Venkateshwaran Loganathan - +91-9176662877

I am interested in taking this session.

I am interested in taking this session.

@shubhankar-mohan have you registered yourself as a mentor to this repository? If not, please raise a PR with your details.

I am interested in taking this session.

@shubhankar-mohan have you registered yourself as a mentor to this repository? If not, please raise a PR with your details.

@tanaypratap PR Raised


it took much time to initial:Initializing TorchBackend in DeepSpeed with backend nccl.   Could you please help me to eliminate the consumed time.thx

me too

Same


Custom css partially working

Tried a plugin that loads custom.css in the header to make some small css changes. They appear everywhere except for the article pages. Although the custom CSS appears in the header too.
Could be a theme issue or a plugin issue? Calling the file manually in header ( index.php) doesn't seem to work. Thank you for any help. The theme is awesome.

Hi @Razerr,
Could you share the code from the plugin please, so I can test?
Maybe also add the CSS you're trying to load .

@C-Lodder Don't remember exactly the plugin source but I know the download was fron Github. In the meantime I found this one  and works as expected.
The main reason I decided to use Joomla for a personal/blogging site was your theme. The speed is quite impresive :)

Ah good good.
It could have been a bug with the other plugin.
Am I ok to close this issue?
Glad you like the template :)

Yes, issue solved :)


[Improvement] Introduce local allocation buffer to store blocks in memory

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Search before asking

[X] I have searched in the issues and found no similar issues.

What would you like to be improved?
Currently we have put the shuffle data into the off-heap memory in shuffle server . But I found it still occupancy a lot of heap memory.
The following is the result of printing by using jmap -histo.
   1:     189601376<PHONE_NUMBER>8  io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf
   2:     189860728<PHONE_NUMBER>0  java.nio.DirectByteBuffer<EMAIL_ADDRESS>   3:     189605871<PHONE_NUMBER>2  jdk.internal.ref.Cleaner<EMAIL_ADDRESS>   4:     189018520<PHONE_NUMBER>0  org.apache.uniffle.common.ShufflePartitionedBlock
   5:     189605871<PHONE_NUMBER>  java.nio.DirectByteBuffer$Deallocator<EMAIL_ADDRESS>
From the above results, we can see that the main reason for high memory usage is that there are too many blocks. And the reason why there are so many blocks is because the blocks are very small.
How should we improve?
Introduce local allocation buffer like MSLAB in Hbase.
Refer: https://hbase.apache.org/book.html#gcpause
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

@jerqi @zuston @advancedxy @rickyma PTAL.
I'm quite busy recently. If anyone interested in it, welcome to pick it up.

This issue seems feasible. I'll take a look first. We need this too.
Currently, there are a few things that we can do to make blocks smaller:

Set spark.rss.writer.buffer.spill.size to a higher value to make blocks larger, e.g. 1g or 2g.
Set rss.client.memory.spill.ratio less than 0.5, e.g. 0.3, let larger blocks spill first.
Set spark.rss.writer.buffer.size to a larger value refer to https://github.com/apache/incubator-uniffle/issues/1594#issuecomment-2081378887, e.g. 10m.


Package yrs binaries as Nuget packages

Consumption of this work (upon release) would be easier if the Yrs binaries were provided as nuget packages. If you would like, I could put together a PR for this.

Hi, @goldsam!
That would be definitely appreciated.
This is already part of the plan since I didn't plan to put the burden of providing the Yrs binaries on the clients anyway, but this would only be relevant after finishing the bindings.

It seems like your making amazing progress very quickly. I'll see what I can do

@LSViana I've made a little bit of progress in generating and packaging the binaries. The more challenging part of this task is selection of the binary to load at runtime. I was going to take some inspiration from SkiaSharp and Tesseract (the later of which uses Interop.net internally) but wanted to first get your opinion before doing any work you might disagree with.

Following your feedback from #19 , my updated build against main of LSViana/y-crdt shows 4 tests failing (165 passing). Is that expected?

@LSViana I've made a little bit of progress in generating and packaging the binaries. (...)

That looks great to me! I see you were able to build for multiple platforms successfully and that's nice.
I think we can work on downloading the correct binaries for the running platform & architecture during the build step from the published artifacts, right? If the file is already downloaded, we just skip not to slow down every build.
I don't have lots of experience with that, to be honest, but what you started there is promising and if I can help with it after I'm done with the library bindings, I'll definitely try. 🙂

@LSViana Following your feedback from https://github.com/LSViana/ydotnet/issues/19 , my updated build against main of LSViana/y-crdt shows 4 tests failing (165 passing). Is that expected?

I just noticed that some tests are failing on Windows and, no, it's not expected. I've been mixing my development time between Unix and Windows machines to ensure the bindings are working on both sides but I let these issues go unnoticed.
The issues with the ObserveDeep* tests have probably already been fixed by this commit on my fork of Yrs. Please, can you check if you have that update locally?
The issues with emojis are probably due to the usage of UTF-16 characters because the C bindings definitions are ready for UTF-8 characters. I created those tests exactly to try edge cases and, well, I found them now. 😅
I don't have an immediate fix for these failing tests related to UTF-16 characters, feel free to disable them on your fork of the repository if they're blocking your GitHub Actions pipelines, for example.

@goldsam An update here: the issues with emoji and other special characters should be fixed by now after the commits I pushed today. I tested them both on Windows and macOS and the tests are all passing now.
Beyond fixing these 2 failing tests, I actually applied a library-wide update to read and write string instances transported through the FFI to make sure we have full control instead of relying on the default mechanisms that can't handle emojis and other special characters.
If you have any issues with these latest updates, please let me know.

@goldsam are you still working on this? I would really like to use yjs in a .net project so I am pushing this and the server components. But I have almost zero experience with rust.

@SebastianStehle Did you not see the link to my repo above?

Same here, been looking for Yjs compatible port for C# that supports the current Yjs featureset. I also never worked with Rust and it's really a turn off having to struggle with that. A pipeline for this repository that builds NuGet packages with the necessary libaries would be amazing :)
The pipeline looks good, but are there any packages? Or what's the status of it @goldsam?

Hi, @Skyppid!
There's a PR that is supposed to fix that and should be merged soon really soon (see #55).

Ah I saw this one, but didn't realize that it also included the pipeline. Quite a huge PR.
Nonetheless I'm looking forward to see it merged! Definetly gonna try it out and help in case I find any issues. Gonna need this for a project I've been wanting to do for a long time now and it's the only missing puzzle piece 😄
Thanks for the quick update :)

Hi, @Skyppid!
PR #55 was just merged and you should be able to see some improvements to the strategy to include binaries for each platform in there now.
If you have questions, please let me know.

Amazing, thank you guys! I'll be checking it out as soon as I got time. I'll support wherever I can :)
Do I see it correctly that Ydotnet does not only provide the basic Y components but also some management classes already for .NET backends?
I'll use it with SignalR, maybe I can provide a basic framework for people to use it without much work on their own if @SebastianStehle isn't doing this already.

Hi,
yes YDotnet provides a websocket backend now. But there is no clustering feature yet. I was playing around here: https://github.com/SebastianStehle/ydotnet/tree/main/YDotNet.Server/Clustering, but I never put it in the pr.
The reason is that I don't have the opportunity to battle test it at the moment. The question where to handle persistency and so on is challenging because the server is stateful. In general I think the best solution would be to use something like actors or grains where exactly on server stores a single document (e.g. with Microsoft Orleans), but this has other challenges around cluster management.
So for my use case, where I have only very few people working with the yjs functionality I have decided to declare one node as yjs node. So I basically have N normal nodes and one yjs node (with a environment variable) and the UI connects to this dedicated node.

Alright, fair points. Well for me it's not necessary as of now. I'm only building a prototype for now so no need for clustering yet. Is the websocket implementation compatible with Yjs' websockets (looks like it from what I saw)?

Yes, it is. It uses the same encoders and stuff from y-protocols,
e.g. https://github.com/LSViana/ydotnet/blob/main/YDotNet.Server.WebSockets/EncoderExtensions.cs
And in the demo I use the normal websocket provider:
https://github.com/LSViana/ydotnet/blob/main/Demo/Client/src/context/yjsContext.tsx
It does not implement auth yet, but the y-websocket provider also does not support it.

Well no auth is an issue, but also something I can ignore for now. Shouldn't be too hard to implement, though. Something like that: https://github.com/yjs/y-websocket/issues/7#issuecomment-623114183

No auth is not entirely correct. You can implement the normal auth, but I think some headers are not supported for web sockets and stuff like this, therefore it can make sense to implement in the websocket part directly and not outside.


[5.2] Use SymfonyExceptionHandler@getHtml method to convert exception

Use Symfony\Component\Debug\ExceptionHandler@getHtml() method that can be use to convert exception to html content.
Remove Illuminate\Foundation\Exceptions@decorate method since it is no longer required

We can't use that method because it's not public.

Oh, right I see. I'm not sure why we didn't use that?

Please send to 5.2.

Oh, right I see. I'm not sure why we didn't use that?

Oh, they added that method after we implemented this change in L5.2.

@GrahamCampbell
I created new pull request based on branch 5.2
See  #13465


Examples: Fix Center Alignment  in Sign-In Sample Page

Description
This pull request addresses alignment issues on the sign-in sample page of the Bootstrap documentation.

Motivation & Context
In the previous version of the sign-in sample page, the logo image and the text elements, including the "Remember me" checkbox and label, were centered.
In this update, we have adjusted the current layout to match the central alignment of the previous design, ensuring consistency and continuity in the page's appearance.

Before

After

Type of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring (non-breaking change)
[ ] Breaking change (fix or feature that would change existing functionality)

Checklist

[x] I have read the contributing guidelines
[x] My code follows the code style of the project (using npm run lint)
[x] My change introduces changes to the documentation
[x] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed

Live previews

https://deploy-preview-39470--twbs-bootstrap.netlify.app/docs/5.3/examples/sign-in/
Related issues

Thanks for creating this PR @gnoot
This was discussed in https://github.com/twbs/bootstrap/pull/38058#discussion_r1178149089 while modifying the examples for the dark mode.
The left alignment was intentional, @mdo do we stick with the left alignment?

Safe to leave centered for now, thanks though!


IOS 16.4problem: Restricted network ports are not allowed

the code works fine in ios version below 16.4. but in ios 16.4, the safari could not load url, the web was  blank with "safari could not open the web page，the error is Restricted network ports are not allowed" in it. Please fix the problem.

Delta Chat has the same issue since iOS 16.4: HttpServer is used to pass a data:-url to Safari to get deep links inside the app as of https://swiftrocks.com/adding-deeplink-shortcuts-to-the-ios-home-screen.html
things i tried so far did not work out, so in case someone has an idea, that'd be very welcome. of course, if we figure out a solution, we will also report here :)

@r10s  I also had a similar problem.
Have you solved it yet, please guide me.

Have you solved it yet, please guide me.

no solution, things only got worse :)
recently apple decided to drop "Home Shortcuts" as used by web apps and for deep-linking local apps at all, https://9to5mac.com/2024/02/15/ios-17-4-web-apps-european-union/
so, for Delta Chat's usecase or deep linking local apps, the original issue of a restricted network port became a minor one :)
/offtopic


feat(runtime): add runtime quickstart from Starwhale Runtime URI

Description

related: https://github.com/star-whale/starwhale/issues/751

Modules

[x] Client

Checklist

[x] run code format and lint check
[ ] add unit test
[ ] add necessary doc

LGTM


How to show multiple fields in one field

Hi,
I'd like to customize a field that simply combine multiple fields together. I think it should be able to achieve by using __component or __slot, but the example doesn't give me enough information. The example is using @click="onAction('view-item', props.rowData, props.rowIndex)" to access rowData, but how can I simply bind rowData fields to template element content?

Solved. Can be achieve by using {{ props.rowData.field }}


Add more core support(s)

We need to implement the following,

[x] The HTTP HEAD method requests the headers that would be returned if the HEAD request's URL was instead requested with the HTTP GET method. Add HEAD support
[ ] REST API Endpoint's resource GET(right now, we only support endpoints for POST), and later an option for HTTP Basic Auth for such endpoints.
[x] (extended) We need to make a desition before creating HTTPGETREsponseHandler and HTTPPOSTResponseHandler to check for the REST API's endpoint and callback fn. And make choices accordingly(possible solution?)
[x] HTTPMessage building raw-message's SetResponseType must be determined from SetResponseCode, We need to avoid manually settingup the string value on downstream.
[ ] Think about Network-Transport independent way of handling the HTTP/1.1(read the specification and std-impls)

For point 2, (REST-APIs resource GET), I think this is an application's business logic and we as a server DO NOT need to worry about this. We will parse the HTTP-Message and pass it to the corresponding call-back handler, and it is the handler's responsibility to take care of this business logic.

We need to create a few template responses HTTP::HTTPMessage for a common types of responses like error code, Auth-fail, and such. Since the actual implementation code and client's examples get longer for no reason, we need to find some way to abstract out those templates.

Support for UNIX domain listener. Why? Because we can have web servers like NGINX as a frontend server/reverse proxy to our C++ runtime which processes the HTTP Messages from that UNIX domain sock's endpoint and write the processed response to the NGINX's socket. Make NGINX do certain heavy lifting like SSL, Timeouts and we just focus on the business logic.

Support for UNIX domain listener. Why? Because we can have web servers like NGINX as a frontend server/reverse proxy to our C++ runtime which processes the HTTP Messages from that UNIX domain sock's endpoint and write the processed response to the NGINX's socket. Make NGINX do certain heavy lifting like SSL, Timeouts and we just focus on the business logic.


Re-add #![feature(impl_trait_projections)]

I'm probably presuming a lot with the release date, but as there isn't anything else in the queue, I hope we can do it :)


feat: use TypeScript's codefixes (including type inference)

WIP

This is great. Going forward we will need to validate the priority order (jsDoc, TS, Rehearsal) of codemods based on the number of Rehearsal TODO's on actually repo's. eg in the follow codemod priority order:
A / B / C = 26 TODO's
B / C / A = 33 TODO's
C / A / B = 10 TODO's

once we are in a good place with this; be sure we are covering eg framework-object-types
and handle the integration of consuming superset ts language service eg. glint


Issue with denali generate service

$ denali generate service mixpanel
cli v0.0.12 [local] | denali v0.0.29 [local]

create app/services/mixpanel.js
Error encountered when running "undefined" command
ReferenceError: className is not defined
    at eval (test/unit/services/__name__-test.js:9:11)
    at walk.forEach (/Users/daw/projects/oss/denali/denali-cli/lib/blueprint.ts:211:42)
    at Array.forEach (native)
    at ServiceBlueprint.<anonymous> (/Users/daw/projects/oss/denali/denali-cli/lib/blueprint.ts:181:30)

Sounds like the service blueprint is expecting className to be defined by the blueprint locals() method, but it isn't?


UE 5.0.3 Missing Header Files

Build tool won't run
Appears to be missing header files

I just noticed the file is in the directory. Maybe not included in the project?
Not sure what's going on.

Hmm I'm not really sure whats going on here either. Did this work fine on the older plugin version / UE version?
Since this is the only error, I'd guess it might be because there is no AutoSIzeCommentsMacros.cpp file? Could you try creating this file in the Private folder with just the line #include "AutoSIzeCommentsMacros.h" and then rebuilding. Let me know if that fixes it.

In 5.0.0 building worked for prior version. Will try as you suggested and let you know for this one on 5.0.3.

I just noticed something. The header is referencing a file with a lowercase I AutoSizeCommentsMacros while the actual .h and cpp are names AutoSIzedCommentsMacros.h with Uppercase I

Updating the header in AutoSIzedCommentsGraphNode.cpp got me further.
#pragma once

#include "CoreMinimal.h"
-#include "AutoSizeCommentsMacros.h"
+#include "AutoSIzeCommentsMacros.h"
#include "SGraphNode.h"

enum class ECommentCollisionMethod : uint8;
class SCommentBubble;
class UAutoSizeCommentsSettings;
struct FASCCommentData;
struct FPresetCommentStyle;
class UEdGraphNode_Comment;

DECLARE_STATS_GROUP(TEXT("AutoSizeComments"), STATGROUP_AutoSizeComments, STATCAT_Advanced);

But now failing on AutoSizeCommentsCacheFile.cpp because /Core/Public/HAL/PlatformFileManager.h not found.

Looks like that should be PlatformFileManager.h.. ha hundi engine had that same bug on that one. Manager with capital M Trying another build

LOL the camelcase saga continues.
Got further still. Fixing this one as well.
I'll put all this in a pull request for you BTW.

Mission Success! +50xp

Pull request is in.

Thanks etoven, really would have never figured these out. I'm going to rename the AutoSizeCommentsMacros.h file itself instead of fixing up the headers. I think the PlatformFileManager.h was renamed with a capital M in UE5, so I trust you're going to have to fix up all the plugins which use this haha.
[+ 100 xp]

Thanks etoven, really would have never figured these out. I'm going to rename the AutoSizeCommentsMacros.h file itself instead of fixing up the headers. I think the PlatformFileManager.h was renamed with a capital M in UE5, so I trust you're going to have to fix up all the plugins which use this haha.
[+ 100 xp]
Edit: Would love to show some sort of error for case sensitive headers when you compile on windows. Some googling didn't find any answers though. Let me know if anyone has a way of enabling this.

I'm mainly glad my comments are tidy. Serenity again. :)
I'm not sure. I mainly develop on linux.
Maybe try unreal's script instead of visual studio if that's what your using currently.
I suspect it's a quirk of the toolchain being used.
I made a sh I use that wraps to the unreal native toolchain
'<Engine Install>/Engine/Build/BatchFiles/RunUAT.sh' BuildPlugin -plugin="${1}" -Package="${2}"
There is a batch file also that gets installed however in the same directory you could use:
`'/Engine/Build/BatchFiles/RunUAT.bat' BuildPlugin -plugin="${1}" -Package="${2}"
Where ${1} is the .uplugin file and ${2} is the build location

BTW:
If you want to reopen the bug. I can update this PR for you.

It appears to be due to Windows vs Linux. This is someone's reply from a old forum post about the same issue:

But it is not problem of
compiler, it is problem of filesystem, because on FAT or NTFS are
always files, which differ only in upper/lower case letters, treated as
same files. You can try it with gcc on Windows, there is the same problem.

Seems to be quite an annoying issue, I think I'd need to use an external tool to check for this problem

If you want to reopen the bug. I can update this PR for you.

Thanks but I have already just pushed the fix for this here: https://github.com/fpwong/AutoSizeComments/commit/e87d712b2ae0408c49fc3f7bfa9ea6bb7960d7da

It appears to be due to Windows vs Linux. This is someone's reply from a old forum post about the same issue:

But it is not problem of
compiler, it is problem of filesystem, because on FAT or NTFS are
always files, which differ only in upper/lower case letters, treated as
same files. You can try it with gcc on Windows, there is the same problem.

Seems to be quite an annoying issue, I think I'd need to use an external tool to check for this problem

If you want to reopen the bug. I can update this PR for you.

Thanks but I have already just pushed the fix for this here: e87d712

I just noticed. I can check your commit if you would like.

I just noticed. I can check your commit if you would like.

Yes, that would be great 👍

Trying a fresh pull now. I'm also compiling over 3,552 shaders so it could be a minute. LOL

Looks like one was missed in AutoSizeCommentsGraphHandler.h
fatal error: 'AutoSIzeCommentsMacros.h' file not found

I'm checking the rest now

I rebased to e87d712 I will submit a new PR.


Workaround for kb982107

workaround for #2057
supersedes #2140
Fix adopted from https://support.microsoft.com/en-us/kb/982107

Current coverage is 87.03% (diff: 100%)

Merging #2149 into master will increase coverage by <.01%

@@             master      #2149   diff @@
==========================================
  Files           307        307
  Lines         56399      56413    +14
  Methods           0          0
  Messages          0          0
  Branches       5841       5841
==========================================
+ Hits          49087      49101    +14
  Misses         6374       6374
  Partials        938        938

Powered by Codecov. Last update b0653de...9e800b3


action-loop runtime is not exporting env variables correctly

To reproduce:

./gradlew distDocker
docker run -d -p 8080:8080 actionloop-python-v3.7
/path/to/openwhisk/tools/actionProxy/invoke.py init main test.py '{"SOME_VAR":"abc"}'

where test.py is:
import os
a = os.environ['SOME_VAR']
def main(args):
  return { "SOME_VAR": a }

this fails with:
Traceback (most recent call last):
  File "/action/1/src/exec__.py\, line 43, in ...
    main__.py line 3... a = os.environ['SOME_VAR']
  File "/usr/local/lib/python3.7/os.py", line 679, in __getitem__
  raise KeyError(key) from None
  KeyError: 'SOME_VAR'

This test should pass. I do not understand what's going with the action loop python proxy to debug this. @sciabarra can you take a look?
Here's a scala unit test https://github.com/apache/openwhisk-runtime-python/compare/master...rabbah:env?expand=1

This is now fixed.


GM: Switch to ECMPRDNL2 message to get low and manumatic gear modes

Description
Update GM port to use the new ECMPRDNL2 message PRNDL2 and ManualMode signals. Combined, these signals provide much improved granularity for the driver selected gear.
OP PR for issue https://github.com/commaai/openpilot/issues/24763
Verification
The OPGM fork has been using this new signal for over a month. The signal is present in all the valid fingerprints.
@sshane offered to assist with regression testing / validation against all routes.

Update: The failed test is from a route that was in L mode - carState.gearShifter is now low instead of drive - which is expected.
Working on updating logs

@sshane I've been digging into the test_replay and I think I need another pair of hemispheres on this.
Running the test locally and checking diff.txt, what I'm seeing doesn't make sense. It claims there should be 6 data points with a value of "park" followed by a ton of "drive".
***** differences for segment fakedata|2022-01-20--18-03-41--0 *****
*** process: controlsd ***
	('change', 'carState.gearShifter', ('park', 'low'))
	('change', 'carState.gearShifter', ('park', 'low'))
	('change', 'carState.gearShifter', ('park', 'low'))
	('change', 'carState.gearShifter', ('park', 'low'))
	('change', 'carState.gearShifter', ('park', 'low'))
	('change', 'carState.gearShifter', ('park', 'low'))
	('change', 'carState.gearShifter', ('drive', 'low'))
	('change', 'carState.gearShifter', ('drive', 'low'))
	('change', 'carState.gearShifter', ('drive', 'low'))
	('change', 'carState.gearShifter', ('drive', 'low'))
...

I dumped the rlog to a file (url is https://commadataci.blob.core.windows.net/openpilotci/fakedata/2022-01-20--18-03-41/0/rlog.bz2)
And searched for "gearShifter = park". No results. I then tried "address = 309" - this one isn't as simple because there is also a message id 309 coming from the chassis bus - it has a value of zero, but is completely unrelated.

 I'm not going to mess with updating logs till you have a chance to peek.

Yeah not really sure where those parks are coming from in test_processes, it's only a few frames at the beginning of the drive. Could make sense if we start logging too early and they're not initialized yet, but they should be, and the default of park (1) doesn't make sense.

Checked a few random routes:

Volt (3aef7c4addc53455|2022-08-01--06-12-37): User ended up in drive with the old signal which is now low with the new signal, everything else is the same: https://user-images.githubusercontent.com/25857203/182280259-d8b5aff4-b139-4458-aadd-d057fa378103.png


Retrieve email id of user who is logging in

I need to retrieve mail id of users who is logging in
Tableau server version is 2020.4.5
tableauserverclient version is 0.15.0
I am using the code mentioned in https://github.com/tableau/server-client-python/issues/278
still i get none for fullname and email
Note: i want to retrieve mail id of the site admin who is logging in as we have multiple sites and need to send a mail to that site admin whoever logging to that particular site admin
code:
import tableauserverclient as TSC
tableau_auth = TSC.TableauAuth('USERNAME', 'PASSWORD')
server = TSC.Server('https://SERVERURL')
with server.auth.sign_in(tableau_auth):
all_users, pagination_item = server.users.get()
for user_item in all_users:
print("User name: '{}' fullname: '{}', User email: '{}'".format(user_item.name,
user_item.fullname,
user_item.email))

you need to request these fields explicitly, they are not all included in the return object by default. I'll have to look at how tsc code supports that.
Info about fields: https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_fields.htm#get-users_site


ci: use caching actions to setup build environment

Description
This enables the usage of GitHub Actions which cache dependencies by default
in order to speed up builds.

@dtolnay's action seems to not perform caching by itself and @actions-rs are unmaintained. Probably manual caching should be done for the former.

It looks like running apt install isn't too bad in our existing GitHub actions (I've seen it range from 4s to 16s).
Though it definately seems a good idea to use @dtolnay's toolchain action.

#83 now relies on rust-toolchain.toml as the baseline source of truth, and uses the toolchain action where needed (to switch to e.g. beta).

Could this PR be merged at its current state so that I can actualize #83?

Superseded by #83


Request: Include simple copy-paste snippets in README.md

It requires significant digging to figure out how to use the library to generate a simple textual diff between two strings. I suggest adding a handful of example code snippets to the README.md file rather than directing readers to the wiki, which itself redirects to the not particularly compelling examples page.
The examples on the examples page would be more compelling if they included the input and outputs of the snippets.

You know. Documentation is always tough. Do you have any suggestions? I thought pointing out the tests was ok.

I think the key is to include a snippet and then show what happens when it
is executed.
https://github.com/java-diff-utils/java-diff-utils/wiki/Examples is pretty
close but is missing the execution for several examples.
I also think a lot of users don't care about deltas at all and just want a
diff they can print in a test. Showing a simple diff between two strings
might help people who just want that.
This is a reasonable example: https://gobyexample.com/if-else
On Fri, Oct 14, 2022 at 4:21 PM Tobias @.***> wrote:

You know. Documentation is always tough. Do you have any suggestions? I
thought pointing out the tests was ok.
—
Reply to this email directly, view it on GitHub
https://github.com/java-diff-utils/java-diff-utils/issues/158#issuecomment-1279585052,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZHJ6YROQ7F5LGPVXHQ4LLLWDHTGNANCNFSM6AAAAAARFK526E
.
You are receiving this because you authored the thread.Message ID:
@.***>


Short solution needed: "Hscikit-learn homogeneity score" (python-scikit-learn)

Please help us write most modern and shortest code solution for this issue:
Hscikit-learn homogeneity score (technology: python-scikit-learn)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to get model homogeneity score


FreeRTOS+TCP should flush its ARP cache on network-down

From the perspective of a typical IoT use case, one possible tradeoff in flushing the ARP cache unconditionally in response to network down in FreeRTOS_IP.c (see prvProcessNetworkDownEvent) is if the node is experiencing intermittent connectivity (i.e. rather than an actual disconnect/reconnect to a different network). If temporary network outages are causing network down, then the cache entries are still valid, and the cost could be a flood of broadcast traffic.
Nevertheless, I think that this is the right thing to do. As a sanity check, desktop operating systems appear to flush the ARP cache for a given port in response to disconnect.

Closing this since pull request is tracked in  https://github.com/aws/amazon-freertos/pull/101


Update from Intel upstream repo

Turns out this is not the correct way to sync a forked repo. It can only be done via command line git. seehttps://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork
i manually removed this commit and forced push the master branch to restore state prior to this pull request. Then I manually sync'd and pushed _--mirror) all regs, tags, branches.


Add run,migrate,fixtures,static,serve-html to Makefile

Current coverage is 100% (diff: 100%)

Merging #12 into master will not change coverage

@@           master   #12   diff @@
===================================
  Files          10    10
  Lines         208   208
  Methods         0     0
  Messages        0     0
  Branches        8     8
===================================
  Hits          208   208
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 3eaea6b...f88dafc


Duplicated content

Every data value (such as the value of an expression, or the parameter to a function, or the value of an expression)

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

ID: 303e5f6b-e267-4c5d-36ae-b82999a9ebf2
Version Independent ID: e41a87d8-e321-1fe3-8854-384eaf2030a2
Content: Scalar data types - Azure Data Explorer
Content Source: data-explorer/kusto/query/scalar-data-types/index.md
Service: data-explorer
GitHub Login: @shsagir
Microsoft Alias: shsagir

Thanks for the feedback and bringing this to our notice. At this time we are reviewing the feedback and will update the document as appropriate.

The PR for the fix has been created and it will be merged soon. Thanks again for pointing this out, I am closing the issue based on this update, please let us know if there is something else that we can help you with.


Cannot find module '@newrelic/browser-agent/loaders/browser-agent' while running jest tests but builds fine

Description
I have created a service for NewRelic and importing @newrelic/browser-agent/loaders/browser-agent in there. It works fine while building the app and is also able to send data to New Relic but I am unable to get this past jest tests.
Steps to Reproduce

Created New Relic service

import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent';
import { config } from '../../config/NewRelic';
export class NewRelicService {
  private static instance: NewRelicService;
  private readonly browserAgent: BrowserAgent;

  private constructor() {
    this.browserAgent = new BrowserAgent(config);
  }

  /**
   * Retrieves the single instance of the NewRelicService class.
   * If an instance does not exist, it creates a new one.
   * @returns {NewRelicService} The single instance of the NewRelicService class
   */
  public static getInstance(): NewRelicService {
    if (!NewRelicService.instance) {
      NewRelicService.instance = new NewRelicService();
    }

    return NewRelicService.instance;
  }

  /**
   * Returns the New Relic agent to add page events
   */
  public getNewRelicAgent(): BrowserAgent {
    return this.browserAgent;
  }
}

Importing this way
import { NewRelicService } from '../../services';

// Log event to New Relic
    NewRelicService.getInstance()
      .getNewRelicAgent()
      .addPageAction('pageAction', { user: user.id });

Expected Behavior
Test should run just fine.
Relevant Logs / Console output
Your Environment

ex: Browser name and version: Chrome
ex: Operating System and version: Mac OS
Node.JS Version: v14.17.6
npm version: 6.14.15

@ushangt Thanks for reporting this issue. Unfortunately there is not a lot of information here to troubleshoot. If the build is working fine but tests are throwing an error, I would suggest looking at the TS config for jest. You node and npm versions are quite old as well. If you still need assistance, please provide an error message or some console output that could lead us to the issue. If the issue is resolved, please let me know so we can close out this ticket. Thanks.

Hi @ushangt . It looks like this has been open a while with no further details. For now, I am going to close this issue. Feel free to re-open it and attach a reproduction case.


Add erf function

Description
It would be nice to have erf function for NDArray in addition to the existing erfinv function.
Will this change the current api? How?
NDArray api will have another method
Who will benefit from this enhancement?
Someone who needs the erf method
References

Wikipedia: https://en.wikipedia.org/wiki/Error_function
existing erf inv: https://javadoc.io/doc/ai.djl/api/latest/ai/djl/ndarray/NDArray.html#erfinv()

Added in: #2842


Mapping for DP IDs

Hi all,
I added a first "Proof of Concept" for doing a DPS <-> Name/Code mapping to have a more comfortable way to set and read the DPS.
At a first step I included mappings from IOBroker and FHEM project (they already use the DPS<->Code/Name mapping). The mapping is read once at startup after reading the devices.json and after saving a new deivces.json. Only those mappings are kept in memory (in a dict) which are currently used. This keeps things small and almost fast.
/status/{DEVICE_ID} now additionally give back the mapping scheme if one exists for the Product_Key in mappings/mappings.json:
{"devId": "05047xxxxxx923ca8", "dps": {"1": false, "2": 21, "3": 13, "4": "hot", "9": 256}, "dps_scheme": [{"id": 1, "code": "Power"}, {"id": 2, "code": "temp_set"}, {"id": 3, "code": "temp_current"}, {"id": 4, "code": "mode"}, {"id": 9, "code": "fault"}]}

At a first step I included the mapping in the WebUI:

What's still missing:

Re-Read mappings if a device is discovered
Add mappings in /set/.... command

Very cool @mschlenstedt !
@uzlonewolf - I know we don't want to  burden the library with a large json mapping payload (it is TINYtuya after all), but this seems reasonable for the server tool.  Thoughts? 😄

I agree for the Lib to not include mapping - this should be done on the application side. But as the server is an application, I would really like mapping here :-)

Grabbing the mapping "live" is cool - I wasn't successfull with it to be honest. But it's more "tiny" than delivering a 5 MB json database...
Important for me is that the /status call dilivers the scheme for other software who uses the API. I would like to use it from my MQTT script.

I played a little bit around with https://eu.iot.tuya.com/cloud/explorer But I haven't found any Cloud call which gives me back name/code and DP ID. Best results I found was with https://openapi.tuyaeu.com/v1.2/iot-03/devices/{device_id}/specification and/or https://openapi.tuyaeu.com/v1.0/iot-03/devices/{device_id}/functions. But bith just give me the names and codes, but not the corresponding DPS.
{
  "result": {
    "category": "rs",
    "functions": [
      {
        "code": "Power",
        "desc": "{}",
        "name": "开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "temp_set",
        "desc": "{\"unit\":\"℃\",\"min\":8,\"max\":40,\"scale\":0,\"step\":1}",
        "name": "设置温度",
        "type": "Integer",
        "values": "{\"unit\":\"℃\",\"min\":8,\"max\":40,\"scale\":0,\"step\":1}"
      },
      {
        "code": "mode",
        "desc": "{\"range\":[\"auto\",\"cold\",\"hot\"]}",
        "name": "模式",
        "type": "Enum",
        "values": "{\"range\":[\"auto\",\"cold\",\"hot\"]}"
      }
    ],
    "status": [
      {
        "code": "Power",
        "name": "开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "temp_set",
        "name": "设置温度",
        "type": "Integer",
        "values": "{\"unit\":\"℃\",\"min\":8,\"max\":40,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_current",
        "name": "当前温度",
        "type": "Integer",
        "values": "{\"unit\":\"℃\",\"min\":-10,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "mode",
        "name": "模式",
        "type": "Enum",
        "values": "{\"range\":[\"auto\",\"cold\",\"hot\"]}"
      },
      {
        "code": "fault",
        "name": "故障告警",
        "type": "Bitmap",
        "values": "{\"label\":[\"P1\",\"P2\",\"P3\",\"P4\",\"P6\",\"P7\",\"P8\",\"P9\",\"PL\",\"PC\",\"E3\",\"E4\",\"E8\",\"CS\",\"E6\"],\"maxlen\":15}"
      }
    ]
  },
  "success": true,
  "t":<PHONE_NUMBER>736,
  "tid": "105ee88bfa5811edbfbfa24bf1d21c99"
}

Yes, I can confirm that I get same result as you with cloud.getdps(dev_id)`. This is great - never tried this!
Maybe you should use "code" instead of "name" in your mappings.json - as this is the standard. When your PR is included, I can change my functions to use the format if your mappings.json.
{
    "result": {
        "category": "rs",
        "functions": [
            {
                "code": "Power",
                "dp_id": 1,
                "type": "Boolean",
                "values": "{}"
            },
            {
                "code": "temp_set",
                "dp_id": 2,
                "type": "Integer",
                "values": "{\"unit\":\"\u2103\",\"min\":8,\"max\":40,\"scale\":0,\"step\":1}"
            },
            {
                "code": "mode",
                "dp_id": 4,
                "type": "Enum",
                "values": "{\"range\":[\"auto\",\"cold\",\"hot\"]}"
            }
        ],
        "lang_config": {},
        "status": [
            {
                "code": "Power",
                "dp_id": 1,
                "type": "Boolean",
                "values": "{}"
            },
            {
                "code": "temp_set",
                "dp_id": 2,
                "type": "Integer",
                "values": "{\"unit\":\"\u2103\",\"min\":8,\"max\":40,\"scale\":0,\"step\":1}"
            },
            {
                "code": "temp_current",
                "dp_id": 3,
                "type": "Integer",
                "values": "{\"unit\":\"\u2103\",\"min\":-10,\"max\":100,\"scale\":0,\"step\":1}"
            },
            {
                "code": "mode",
                "dp_id": 4,
                "type": "Enum",
                "values": "{\"range\":[\"auto\",\"cold\",\"hot\"]}"
            },
            {
                "code": "fault",
                "dp_id": 9,
                "type": "Bitmap",
                "values": "{\"label\":[\"P1\",\"P2\",\"P3\",\"P4\",\"P6\",\"P7\",\"P8\",\"P9\",\"PL\",\"PC\",\"E3\",\"E4\",\"E8\",\"CS\",\"E6\"],\"maxlen\":15}"
            }
        ]
    },
    "success": true,
    "t":<PHONE_NUMBER>149,
    "tid": "ec01691cfa6c11edbfbfa24bf1d21c99"
}

I now changed over to the DPS mapping from Tuya Cloud now. The server now uses the mappings found in devices.json (if any). It's shown in the WebUI and also used in the set API call, e. g.
/set/pool%20heat%20pump/temp_set/26
is possible now.

This is great @mschlenstedt !!  Love this...

Thanks @mschlenstedt !!  This is a great enhancement to the server!

Thanks for removing the obsolete stuff ;-)


[2.1] explicitly pass unix_socket

this affects only kubic for now where we use PyMySQL
we cant use the MYSQL_UNIX_PORT workaround anymore as we could
do with MySQLdb
salt#mysql-unix-socket
Signed-off-by: Maximilian Meister<EMAIL_ADDRESS>(cherry picked from commit 45b8f7b54511f38135d7fdbbd36cc262349f9d45)

I'm closing this, it will be fixed in repo