Local battery template overrides experiment's style.css

I'm not sure how the templates are generated, but the installed localbattery.html (2.5.47) contains:
<head>
    ...
    <link rel='stylesheet' href='static/css/default_style.css' type="text/css">
</head>

This refers to default_style.css after an experiment's style.css making it awkward to override styles (e.g. experiment background colour).  As the canonical config.json includes default_style.css before style.css it looks like the reference in the template should be removed.

Agreed, the user style needs to come first. We can't assume, however that the default_style.css would be included by the user in the config.json. Would it suffice to just move around the ordering so user style takes preference?

Yeah, it's probably a better solution if the user style is the last thing in the template.

This sounds good to me. Would you like to PR with the change?

I would, but I can't figure out how that template is built.

I believe it's here:
https://github.com/expfactory/expfactory-battery/blob/master/templates/exp.html

How is that used to build localbattery.html?

Ah apologies - it isn't! I think we want this one from the other repository:
https://github.com/expfactory/expfactory-python/blob/master/expfactory/templates/localbattery.html
Apologies, it's been a while!

:) No worries.  Might be easier for you to commit than process a PR for such a small change?

good idea :)
All set : https://github.com/expfactory/expfactory-python/blob/master/expfactory/templates/localbattery.html
Give it a try!

Something not quite right with that.  Looks like default_style.css is being injected a bit too early (in relation to config.json includes, which puts it after jspsych.css).

I haven't worked on this project in years, and I'm trying to help out because my colleagues are silent. If you would be able to, it would be great for you to test this and do a PR since others will likely have the same trouble. Thanks!

I've never worked on it, and Python isn't one of my strengths.  I think your commit solves the immediate issue, so I'll create a PR with that and some tech debt comments.

PR submitted.


ORC-895: Use snappy-java <IP_ADDRESS> in bench/core to support Apple Silicon

What changes were proposed in this pull request?
This PR aims to use snappy-java <IP_ADDRESS> instead of the one (1.1.8) of parquet-hadoop dependency.
Why are the changes needed?
To support benchmark in Apple Silicon, we need to use <IP_ADDRESS>+.

https://github.com/xerial/snappy-java/releases/tag/<IP_ADDRESS>
Support Apple Silicon (M1, Mac-aarch64)

Otherwise, we hit the following error.
$ java -jar core/target/orc-benchmarks-core-*-uber.jar generate data -d sales -f parquet
Processing sales [parquet]
[WARN ] Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Exception in thread "main" org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] no native library is found for os.name=Mac and os.arch=aarch64

How was this patch tested?
Manually.
$ cd java
$ ./mvnw clean package -DskipTests -Pbenchmark
$ cd bench
$ java -jar core/target/orc-benchmarks-core-*-uber.jar generate data -d sales -f parquet

Could you review this please when you have some time, @williamhyun ?

Thank you so much!
I backported this to branch-1.7/1.6.


Sticky sessions

When working with ASP.NET SignalR Streams and scalability you need to uses Sticky Sessions to determine which signalr stream is responsive for your request. Is there a way to use this with this package?
https://learn.microsoft.com/en-us/aspnet/core/signalr/scale?view=aspnetcore-7.0 (for reference)

Any upgrades on this ?


CI Workflow run error

Hi,
Foremost, thanks for sharing these templates.
I'm a beginner to Python and hope this will help me build my first project, despite not being able to understand half of the content of the readme.md.
While creating my project clone, I received a “CI Workflow run” error message. Looking into it on GitHub, the detail of the error was:
…
2022-08-06T15:58:16.0724267Z ##[group]Run actions/setup-python@v2
2022-08-06T15:58:16.0724613Z with:
2022-08-06T15:58:16.0724799Z python-version: 3.9
2022-08-06T15:58:16.0725262Z token: ***
2022-08-06T15:58:16.0725445Z ##[endgroup]
2022-08-06T15:58:16.7770614Z Successfully setup CPython (3.9.13)
2022-08-06T15:58:16.8091702Z ##[group]Run pip install --user --upgrade pip
2022-08-06T15:58:16.8092164Z �[36;1mpip install --user --upgrade pip�[0m
2022-08-06T15:58:16.8276808Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2022-08-06T15:58:16.8277109Z env:
2022-08-06T15:58:16.8277410Z pythonLocation: C:\hostedtoolcache\windows\Python\3.9.13\x64
2022-08-06T15:58:16.8277674Z ##[endgroup]
2022-08-06T15:58:35.0156418Z Requirement already satisfied: pip in c:\hostedtoolcache\windows\python\3.9.13\x64\lib\site-packages (22.2.1)
2022-08-06T15:58:35.5641334Z Collecting pip
2022-08-06T15:58:35.5958308Z Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)
2022-08-06T15:58:35.6762744Z ---------------------------------------- 2.0/2.0 MB 25.8 MB/s eta 0:00:00
2022-08-06T15:58:35.6929232Z ERROR: To modify pip, please run the following command:
2022-08-06T15:58:35.6930066Z C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe -m pip install --user --upgrade pip
…
(see enclosed print screen as well)
I'm using Anaconda Python, so I usually install packages through "Conda install" not pip (if possible).
I tried to run the command suggested in the error message "C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe -m pip install --user --upgrade pip" but the directory mentioned hostedtoolcache was no more available.
So, please help:
Am I doing something wrong?
What are the "consequences" of this error?
How can I solve the issue?
error

Many thanks for your help.
Stefano

I have the same issue

I had the same issue and got it fixed by changing in the .github/workflows/main.yaml the "pip" command to "python -m pip"
      - name: Install Pip
        run: python -m pip install --user --upgrade pip
      - name: Install project
        run: python -m pip install -e .[test]


[virt-api] replace UPDATE client method with PATCH in pod eviction admitter

Signed-off-by: Igor Bezukh<EMAIL_ADDRESS>What this PR does / why we need it:
recently the e2e test id 3242 related to pod eviction become
flaky. The reason was a failure in updating the VMI object because
it was too old.
Therefore we use the patch method instead, since we want to do
only a partial update and not override the whole resource.
Which issue(s) this PR fixes
[test_id:3242] flakiness
Special notes for your reviewer:
As mentioned here, another improvement is required in the pod eviction admitter area, related to usage of client side cache
rather than direct API calls, I've decided to defer it to a follow up PR because of the amount of changes
it will require (most of them in unit tests)
Release note:
NONE

/cc @davidvossel @fgimenez

/retest


How to develop based on UCO?

Hi guys,
I want to develop my own security ontology based on the UCO, but I'm new to it, and I don't know how to get it done.
Could anyone give me some tips about:

how to develop on UCO, via Protege or some other software, and is there any document?
how to import UCO model into a graph database, such as Neo4j;

Regards

Paul,
Just FYSA, it’s Visual Paradigm.    I used to use Visual Paradigm UML and BPML quite extensively in a previous life.
Thanks for the ONTOUML tip!
Patrick Maroney
Principal - Cybersecurity
Chief Security Office
AT&T Services, Inc.
From: Paul Brandt @.>
Date: Friday, March 24, 2023 at 11:41 AM
To: ucoProject/UCO @.>
Cc: Subscribed @.***>
Subject: Re: [ucoProject/UCO] How to develop based on UCO? (Issue #529)
Hi @machi1271https://urldefense.com/v3/__https:/github.com/machi1271__;!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crWvoYivE$
Assuming you are knowledgable about ontology, still some hints first:

Please make sure that you have got sufficient background knowledge about top-level ontologies (a.k.a. foundational ontologies), what they are and how to use them.
Please make sure you know the principles that lay the groundwork for UFO to some extent.
*   Apart from papers that address them (you can find them by searching for papers authored by Giancarlo Guizzardi), e.g., Ontological Foundations for Conceptual Modeling with Applicationshttps://urldefense.com/v3/__https:/link.springer.com/chapter/10.1007/978-3-642-31095-9_45__;!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crYgNHMkA$,
*   you might find the PhD thesis from the same authorhttps://urldefense.com/v3/__https:/ris.utwente.nl/ws/portalfiles/portal/6042428/thesis_Guizzardi.pdf__;!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crvHuvgPo$ useful, but
*   don't forget to visit ontouml.readthedocs.iohttps://urldefense.com/v3/__https:/ontouml.readthedocs.io/__;!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crySe5-sQ$

Only then you can appreciate UFO sufficiently to actually create your ontology based on it. Naturally, you can apply the ontoUML editor as a side tool while educating yourself:

Start with this video on how to install the ontoUML editorhttps://urldefense.com/v3/__https:/www.youtube.com/watch?v=8B10cS24_D8__;!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crRQDdHR8$ as plugin to Virtual Paradigm.

I hope this helps. If so, please close this issue.
Best
Paul (another user of ontoUML as opposed to a contributor to it)
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/ucoProject/UCO/issues/529*issuecomment-1483013566__;Iw!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crcfRe86A$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AAYSFYOX72DNUZJ4ZOPUBEDW5W6APANCNFSM6AAAAAAWGGWVHQ__;!!BhdT!nUmK-EfJYyBsWYJgqcxO1qDX5WUnFPPypdP9Iez8KjZ8tViRJNxlQzlxEjVWhD5S9IiYUGsiY-6zzOr8Z7crYZfL1rs$.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hi @machi1271,
Can you share the focus of the security ontology that you would like to create? Within the Cyber Domain Ontology project, which includes UCO, we have a number of application ontologies that are released or in the works.
See the CASE Ontology (https://caseontology.org) for our digital forensics focused application ontology that builds upon UCO.
See the Adversary Engagement Ontology (https://adversaryengagementontology.org) for our cyber denial and deception operations ontology that builds upon UCO. This is brand new this month and is about to undergo a public comment period.
These will give you some good examples of how to build upon UCO. We have other application ontologies that are in the works for risk analysis and cyber threat intelligence.
Hope this helps.
Cory Hall
MITRE

Hello all,
@plbt5 accidentally steered this conversation off-topic.  @machi1271 asked for UCO (Unified Cyber Ontology) information, and @plbt5 responded about UFO (Unified Foundational Ontology).  These are independent projects, and I'll respond on the UCO side of the question.
For how to develop UCO:

Issue 449 implemented catalog-v001.xml files compatible with Protégé.  These will be available in UCO 1.2.0, coming in the next few days.  Documentation on using those files is included in this update to this repository'sCONTRIBUTE.md.
Other documentation on UCO, and more generally Cyber Domain Ontology (CDO) ontology [sic.] development practices, has been growing in this document.

As you develop your own security ontology concepts, I encourage you to review whether the concepts already have some form of implementation.  This can be done with a text search feature, such as in Protégé, GitHub's Search-in-repository function, grep over a local Git clone, search in the built ontology documentation[^1], or other features like what you're exploring with Neo4J.  We don't currently have documentation on using UCO with Neo4J.  If you're interested in contributing experience notes on that kind of development workflow, it would be welcome discussion.
One way to determine whether there is a need for some concept as you develop ontologies is to try encoding the data you need as RDF Literals (e.g. time stamps, strings housing names) in a small example graph, ponder some kind of predicate that you think should be the property that houses that literal, and then ponder the object and class (rdf:type) of the object that would have that predicate and literal.  Comfort with SPARQL will help you understand whether you're approaching a workable design.  There are demonstration queries in this folder in CASE-Corpora, or the "Urgent Evidence" narrative on the CASE website that show a few kinds of things you can find with SPARQL.
If you have other questions, please feel free to ask.  Otherwise, I'm guessing we've answered your questions in this thread, and if we don't hear from you in a few weeks we'll mark the Issue closed.
[^1]: Though that link is to CASE's built documentation, UCO's is coming soon, as noted here.

@ajnelson-nist Thanks for identifying and clarifying my off-topic response. I sincerely apologize @machi1271 and others for introducing this confusion.

@machi1271 ,
The CASE and UCO documentation sites now provide ontology resources that are compatible with the tool you noted, Protégé.  If you load any of the ontology IRIs or owl:versionIRI values, you should see it work as expected.  Here is a screenshot of https://ontology.unifiedcyberontology.org/uco/action/1.2.0:

If there is a specific concept or mechanism you'd like to explore further (we still do not have demonstrations with Neo4J), we look forward to seeing them as separate Issues.
--Alex


Documentation: Describe API as it require for python package documentation

Write down current API state.
Need to understand how to prepare python styled documentation for python modules.

I've decided to open source this repo now. Looks like it is good for development process and usage of reathedocs as documentation for API.

Looks like build of docs was successful. Now we can do documentation in doc-as-a-code style
https://pygats.readthedocs.io/en/latest/

Internationalisation is required.

Sample of documentation added https://pygats.readthedocs.io/en/latest/


psycopg2.OperationalError: database "devdb" is being accessed by other users

Summary
I am hitting this error when using reset_db from django-extensions.
psycopg2.OperationalError: database "devdb" is being accessed by other users
DETAIL:  There is 1 other session using the database.

This is happening when I've created a bare cms apphook application (i.e., just defines a CMSApp extension and registers via apphook_pool.register).
I've tracked the problem down to these lines in appresolover.py: https://github.com/divio/django-cms/blob/release/3.4.x/cms/appresolver.py#L186-L192
Looking at the code I would expect it catch the Operational error in the try block but it doesn't (for me).
It's worth noting that I tried in several places to just catch any Exception at all and still hit this error.
Thanks very much for taking the time to help.
Here's the full error stack trace:
python manage.py reset_db --noinput
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.5/site-packages/django_extensions/management/utils.py", line 58, in inner
    ret = func(self, *args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/django_extensions/management/commands/reset_db.py", line 167, in handle
    cursor.execute(drop_query)
psycopg2.OperationalError: database "devdb" is being accessed by other users
DETAIL:  There is 1 other session using the database.

Expected behaviour
python manage.py reset_db does not throw an error.
Actual behaviour
python manage.py reset_db throws an error
Environment
This is happening on my local development environment running in a docker (Alpine Linux 3.4.4) container that has python installed, and a db container running Debian GNU/Linux 8 (jessie) and Postgres 9.6.1.

Python version: 3.5.2
Django version: 1.10.7
django CMS version: 3.4.2
Database: Postgres, latest
Django Extensions: 1.7.8

Hello @aubricus,
is your server running when you run the python manage.py reset_db command?

@czpython
Thanks for responding so quickly.
Unfortunately my dev server is not running. I've also tested this locally through many docker client / container rebuilds and computer restarts to make sure there's no weird connection to the db just hanging around.
This feels related to the fact that (for reasons I fail to understand) that reset_db causes my urls.py to evaluate (and subsequently tries to load cms.urls). What I don't understand is why the try except block doesn't catch the OperationError (even when I modified the src myself to just catch any exception).

The OperationalError is raised by the command itself not by django CMS, this is why the code you linked to does not handle it.
If you can, please provide us with docker image or something packaged which we can then use to reproduce this.

@czpython Thanks again. I will put something together to reproduce the issue this week / coming weekend.

Hello @aubricus,
Any updates? :)

@czpython Hey! Been getting just crushed by work. Will make some time this weekend. Thanks for checking in!

Welp.
Just made some progress, actually :). I created this workaround, that overrides the reset_db command and disables system checks (as documented here). This prevents the manage.py session from loading urls.py during it's check cycle. Immediately I don't see any side effects to this.
Ultimately though, it feels like an issue with django_extensions needing to either disable system checks for reset_db or a least providing an option to.
Here's a Gist
I will file an issue over at django_extensions as well. Feel free to close this issue if you like.
Thanks!

I encounter similar issue within my own project. However, I found out that reset_db actually has -c argument to close all sessions and it solve this for good in a simple way.  You can look into the code for the details.


Show storage usage per repository in status page

The current overview in the pulp ui status page shows a total storage usage. It would be nice if this can be broken down in storage usage per repository.

Is there any API returning per-repository storage usage? I'm not sure this info is available anywhere...


[BUG] JSONRPC 在 TCP 协议下响应大数据会存在数据被截断的情况

Hyperf Version: 1.0.11
PHP Version: (php -v) php
Swoole Version: (php --ri swoole) 4.4.3

Description:
用jsonrpc tcp协议发送一个列表数据（两千多个字符），接收到的数据会被截断，不是一个完整的响应数据，但也不是每次都失败，10次有6，7次会这样
Steps To Reproduce:

能否提供一个可重现的代码案例 ？

阿里服务器，内网是好的，外网就有问题
发自我的iPhone
------------------ Original ------------------
From: 黄朝晖<EMAIL_ADDRESS>Date: Thu,Sep 19,2019 6:30 PM
To: hyperf-cloud/hyperf<EMAIL_ADDRESS>Cc: yangjianfeng9527<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [hyperf-cloud/hyperf] [BUG]  (#576)

具体被截断的表现是怎样的？能否提供一份可重现的代码？我可以跟你你的描述构造同样的场景

/**
 * @RpcService(name="TestService", protocol="jsonrpc", server="jsonrpc")
 */
class TestService
{
    public function index(): array
    {
        $re = '{"code":0,"msg":"success","data":[[{"id":1,"app_id":"200001","shop_number":"","title":"红包活动1","money":200,"number":2,"receive_number":2,"type":1,"status":2,"times_limit":1,"start_time":"2019-09-12 10:17:00","end_time":"2019-09-12 11:33:00","display_mode":1,"display_image":"http:\/\/www.baidu.com","created_at":"2019-09-11 21:22:15","updated_at":"2019-09-17 15:19:33","deleted_at":null,"rules":[{"id":1,"red_envelope_id":1,"money":100,"number":2,"receive_number":2,"created_at":"2019-09-11 21:22:15","updated_at":"2019-09-12 10:43:13","deleted_at":null}]},{"id":2,"app_id":"200001","shop_number":"","title":"红包活动1","money":600,"number":6,"receive_number":3,"type":3,"status":3,"times_limit":1,"start_time":"2019-09-12 10:30:00","end_time":"2019-09-12 11:33:00","display_mode":1,"display_image":"http:\/\/www.baidu.com","created_at":"2019-09-11 21:31:48","updated_at":"2019-09-16 11:28:54","deleted_at":null,"rules":[{"id":2,"red_envelope_id":2,"money":100,"number":6,"receive_number":3,"created_at":"2019-09-11 21:31:48","updated_at":"2019-09-12 15:30:32","deleted_at":null}]},{"id":3,"app_id":"200001","shop_number":"","title":"红包活动1","money":600,"number":6,"receive_number":0,"type":3,"status":2,"times_limit":1,"start_time":"2019-09-12 10:28:00","end_time":"2019-09-12 19:33:00","display_mode":1,"display_image":"http:\/\/www.baidu.com","created_at":"2019-09-11 21:32:56","updated_at":"2019-09-16 11:28:34","deleted_at":null,"rules":[{"id":3,"red_envelope_id":3,"money":100,"number":6,"receive_number":0,"created_at":"2019-09-11 21:32:56","updated_at":"2019-09-12 14:03:38","deleted_at":null}]},{"id":5,"app_id":"200001","shop_number":"","title":"伪随机红包测试002","money":1000,"number":10,"receive_number":6,"type":2,"status":2,"times_limit":1,"start_time":"2019-09-13 15:00:00","end_time":"2019-09-15 00:00:00","display_mode":1,"display_image":"http:\/\/yunhuyj.img.com\/testy.jpg","created_at":"2019-09-12 15:22:58","updated_at":"2019-09-16 10:14:19","deleted_at":null,"rules":[{"id":5,"red_envelope_id":5,"money":100,"number":10,"receive_number":3,"created_at":"2019-09-12 15:22:58","updated_at":"2019-09-13 16:44:35","deleted_at":null}]},{"id":6,"app_id":"200001","shop_number":"","title":"红包活动1","money":600,"number":6,"receive_number":0,"type":3,"status":2,"times_limit":1,"start_time":"2019-09-15 21:28:00","end_time":"2019-09-15 21:33:00","display_mode":1,"display_image":"http:\/\/www.baidu.com\/3","created_at":"2019-09-13 14:42:13","updated_at":"2019-09-16 10:14:17","deleted_at":null,"rules":[{"id":6,"red_envelope_id":6,"money":100,"number":6,"receive_number":0,"created_at":"2019-09-13 14:42:13","updated_at":"2019-09-13 14:42:13","deleted_at":null}]},{"id":7,"app_id":"200001","shop_number":"","title":"rpc添加","money":600,"number":6,"receive_number":0,"type":1,"status":3,"times_limit":1,"start_time":"2019-09-16 21:28:00","end_time":"2019-09-16 21:33:00","display_mode":1,"display_image":"http:\/\/www.baiduc.om","created_at":"2019-09-14 15:07:52","updated_at":"2019-09-17 15:19:29","deleted_at":null,"rules":[{"id":7,"red_envelope_id":7,"money":100,"number":6,"receive_number":0,"created_at":"2019-09-14 15:07:53","updated_at":"2019-09-14 15:07:53","deleted_at":null}]}],{"total":6,"page_no":1,"page_size":15}]}';
        return json_decode($re, true);
    }
}

客户端循环多调用多次，会有几次是失败的，内网没失败过，外网会失败

@yangjianfeng9527 可使用 jsonrpc-tcp-length-check 协议解决

jsonrpc使用过程中，也遇到同样的问题，即使使用 jsonrpc-tcp-length-check参数，稍后补上测试case

@ushell 你看看你的max package length的配置


cargo-readme: 3.2.0 -> 3.3.1

Description of changes

Release notes:

https://github.com/webern/cargo-readme/releases/tag/v3.3.1
https://github.com/webern/cargo-readme/releases/tag/v3.3.0

diff: https://github.com/webern/cargo-readme/compare/v3.2.0...v3.3.1
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Whoops, missed #265896


Name collision with commonregex

Checklist

[x] I have read the README and know the correct effect of the functional design.
[x] There are no similar reports on existing issues (including closed ones).
[x] I found the bug on the latest code of the master branch.

Describe the bug
Hello, I'm thinking of using this package as a dependency, but currently cannot afford to do so -
Installing commonregex-improved might break existing uses of commonregex, and more importantly, later installations or updates of
commonregex will break the access to commonregex-improved.
To Reproduce
Expected behavior
I think this package should use a different name for the import, like commonregex_improved.
If users really don't want to change their module references, they can import it as import commonregex_improved as commonregex.
Screenshots

Software
Desktop
Additional context
I appreciate your improvements to the original, but right now I cannot use your package.

Hey @erezsh , thank you for letting me know of this issue. I have updated the naming convention. With the latest patch, You can now use import crim as Commonregex instead to cater for using original commonregex. :) Please update to the latest version and lemme know if it works for you.

Great, thank you!


Pre-commit results in 'circular dependency' error

Any idea why I may see this error?
.pre-commit-config.yaml
- repo: https://github.com/dadav/helm-schema
    rev: 0.8.0
    hooks:
      - id: helm-schema
        args: [--log-level, "debug", --no-dependencies]

chart.yaml
Note: 'env-metadata' chart doesn't have any depdencies
dependencies:
  - name: env-metadata
    version: "0.1.1"

Error
ERRO[2023-10-31T14:34:10-05:00] Error while sorting results: Circular or missing dependency found

Hi @saifhassanctc ,
I think the error occurs because the dependency isn't locally present. Helm-schema does not automatically download the dependencies yet. I'll add this feature in the future. The error should disappearif you run helm dependency build beforehand.


Added Figure to RF Tutorial

I've added a figure to the Random Forest tutorial to illustrate better on the big picture before we do the slider.
Tested on : nesi999999991, gimkl-2018 kernel

Hi @prasys, thank you for adding this nice figure :).
Please could you commit the notebook without any content (clear all cells outputs)? this would make the repository lighter, ensure the learners start from a blank state and make reviewing the core changes easier :).

Hi @jennan - I've fixed it
Let me know if it is okay. I'll do for the validation bit - once I have done :)

Hi @prasys, please remove all the computed outputs of the notebook :-) (menu kernel / restart kernel and clear all outputs, so that it starts from a complete blank state.

I was doing from VSCode. Anyway I've cleared all the output now and it should be pretty good !!!

Thank you @prasys :).


fix(op-node): l1 client use eth_getFinalizedBlock to get finalized block

There are two methods to get finalized block on BSC:

eth_getBLockByNumber with finalized tag
eth_getFinalizedBlock

This PR changes l1Client to use second method instead of first one, due to first method only return the fastFinalizedHeader, which is not the exact finalized block when fast finalize failed

Although the changes in this pull request (PR) will not result in a hard fork, they will modify the behavior related to returning the "finalize" block height. It is advisable to put this on hold for now and release it as part of a hard fork plan.


Table 32 broken

## Error in data.frame(..., check.names = FALSE): arguments imply differing number of rows: 15, 14

Caused because steepness is not estimated in the 2018.40.02_h_fix_high model, and cbind to the other models fails because they have one more estimated parameter.

I've opened a can of worms with this.. I found out while fixing the tables (31 and 32) that the following do not exist in the derived_quants list any more for SS 3.30. I've paired them up with things that are similar that exists in the list. Any ideas Ian?
previously,            now
SSB_SPRtgt,          SSB_Btgt or SPR_Btgt
Fstd_SPRtgt,         Fstd_Btgt or Fstd_SPR
TotYield_SPRtgt,   ? Nothing seems to match this

Sorry Chris.
I should have remembered that some of the reference point names have changed.
I believe that these are the correct translations. However, we should still compare the table to last year's to make sure nothing looks funny.

OLD
NEW

SSB_SPRtgt
SSB_SPR

Fstd_SPRtgt
Fstd_SPR

TotYield_SPRtgt
Dead_Catch_SPR

Great, thanks. I'll check all the values once done.

After much frustration, I got these working in commit 29775f5e6b25b54ffdc127f901cfefb9dc2a8e8c

Good effort (Chris was fighting with this for most of the day).


remove bringup true on route_test_ios

Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

You don't need to do this as the bot is in charge of it (to ensure no flaky tests are added as blocking). After 100ish runs (or a ~week), it'll get promoted.


Parameterized Hasura REST endpoints

What feature would you like to see in DipDup?
Ability to generate more complex queries.
Why do you need this feature, what's the use case?
More flexibility clientside.
Is there a workaround currently?
No.

Close in favor of https://github.com/dipdup-net/dipdup/issues/450?


ReferenceError: 'Proxy' is undefined in IE11

To @chris-allnutt and refer to #56
An error ReferenceError: 'Proxy' is undefined will appear while using eosjs in IE11. We could reproduce this error in the simple boilerplate project:
Reproducing steps:
Clone repo https://github.com/EOSIO/eosio-project-boilerplate-simple and run ./quick_start.sh
Open http://localhost:3000/ in IE11
Add a note by using the first account in the listed account array.
Then you could see the error in the console and the note is not added to the blockchain.
FYI:
By looking into the source code of eosjs, the Proxy object is used in /src/ripemd.js line 382.
The ripemd is required from /src/eosjs-numeric.ts.
And Proxy is not supported in IE11 at all.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
@ChristianDunst @rickykung

Thanks, @terrylks I'll look into this.

@Todd-Bowden would it be possible to replace our RipeMD with a package like this one? https://github.com/crypto-browserify/ripemd160/blob/master/index.js
Or update our RipeMD to not utilize Proxy. It looks like it's only used in one place and I'm pretty sure we could make it work without the Proxy.

I think the above message was for @tbfleming

The above package depends on Node's Buffer. eosjs avoids pulling in Node stuff.

The respective lines are as follow @tbfleming
https://github.com/EOSIO/eosjs2/blob/master/src/ripemd.js#L382
https://github.com/EOSIO/eosjs2/blob/master/src/ripemd.es5.js#L331
@terrylks @ChristianDunst @rickykung @andriantolie  would you like to propose a PR for this?

@chris-allnutt @tbfleming
I have made a PR for the fix in eosjs repo: https://github.com/EOSIO/eosjs/pull/411
Please check. Thanks.


Remove FIRST aggregation expression

FIRST is not supported by MySQL

CI is failing because the group by was making use of the `first, I'll fix it

@mcarmonaa can you rebase please?

@ajnavarro it's not ready to merge because of #21 , the groupby should be fixed before, I'm on it

#51 fix the problem with the groupby so after merge that PR it should be fine remove the FIRST aggregation expression.

Rebase needed


Document or include Sphinx requirements

I needed to install the following to get the docs to build locally:

sphinx
sphinxcontrib-spelling
pyenchant

I have traditionally followed the docs-requirements.txt/dev-requirements.txt pattern for stuff like this, but didn't want to presume this is where you were heading with a premature PR.
I can toss a PR over the fence if you let me know how you'd like to handle it (or not handle it).
Looking good so far!

Thanks for the feedback. I've been pretty lax on the requirements stuff because I personally tend to use apt-get for these kinds of dependencies. I'll try and clean up the build/install process shortly.

Fixed in 2f8cd145606f515ce1e1d5d8a465f0b5bf2bbc3f


Meetup Suggestion: Bitcoin Guadalajara Meet-Up

Thanks for making a suggestion for a new meetup.
Please note: Only suggest bitcoin-only meetups.
Meetups which promote any coin or token other than Bitcoin are not suitable for listing.
Altcoin's are only mentioned in the context of warnings or lessons learnt for bitcoin.
Required:

Name of Meetup: Bitcoin Guadalajara MeetUp
Location Of Meetup: Guadalajara, Mexico
At least one of the following:

Telegram Group: https://t.me/BitcoinGuadalajara

Optional

Name of Organiser(s) & Twitter Handle: Katie Ananina @katieAnanina
Links showing public support:
https://twitter.com/KatieAnanina/status/1194495703944499206?s=20

As the organizer of Bitcoin Guadalajara Meetup I can confirm that the meetup is bitcoin-only
-The meetup is bitcoin focused.
-'Altcoins' are scams and are not promoted in talks/presentations at our meetups.
#bitcoinonlymeetups @bitcoinonly_

Added!


moving windows

how I can move windows around with your DWM setu (dwm+dwmblocks+st+voidrice), now clue how to move terminal A+B to terminal B +A in a workspace, looking how to do this like i3 with MOD+arrow

Read the manual.


AttachmentStore implementation based on Azure Blob

Adds AzureBlobAttachmentStore as an AttachmentStore implementation backed by Azure Blob
Fixes #4666
Description
azure-storage-blob:12.0.0 is now based on Project Reactor. AzureBlobAttachmentStore uses the library via the Reaxtive Stream support (Publisher/Subscriber) from Akka and Project Reactor and thus enables non blocking reads and writes
This library adds following dependencies

Usage
To enable this one needs to configure
whisk {
    azure-blob {
        # Config property when using AzureBlobAttachmentStore
        # whisk {
        #  spi {
        #    AttachmentStoreProvider = org.apache.openwhisk.core.database.azblob.AzureBlobAttachmentStoreProvider
        #  }
        #}

        # Blob container endpoint like https://foostore.blob.core.windows.net/test-ow-travis
        # It is of format https://<account-name>.blob.core.windows.net/<container-name>
        # endpoint =

        # Storage account name
        # account-name =

        # Container name within storage account used to store the blobs
        # container-name =

        # Shared key credentials
        # https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/storage/azure-storage-blob#shared-key-credential
        # account-key

        # Folder path within the container (optional)
        # prefix
    }
}

Testing
AzureBlobAttachmentStoreITTests enables integration test which run against the Azure Blob service. It needs following env settings

AZ_ENDPOINT - Endpoint url
AZ_ACCOUNT_NAME - Name of storage account
AZ_ACCOUNT_KEY - Account key
AZ_CONTAINER_NAME - Optional. Defaults to test-ow-travis

Another test is being implemented based on Azurite Simulator. However currently due to Azure/azure-sdk-for-java#6140 (fixed in master but not released) the tests cannot be run against that
Related issue and scope

[ ] I opened an issue to propose and discuss this change (#4666)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[ ] I signed an Apache CLA.
[ ] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #4716 into master will decrease coverage by 7.14%.
The diff coverage is 6.45%.

@@            Coverage Diff             @@
##           master    #4716      +/-   ##
==========================================
- Coverage   84.99%   77.85%   -7.15%
==========================================
  Files         198      199       +1
  Lines        8841     8903      +62
  Branches      614      631      +17
==========================================
- Hits         7514     6931     -583
- Misses       1327     1972     +645

Impacted Files
Coverage Δ

.../scala/org/apache/openwhisk/core/WhiskConfig.scala
94.81% <100%> (+0.03%)
:arrow_up:

...ore/database/azblob/AzureBlobAttachmentStore.scala
4.91% <4.91%> (ø)

...core/database/cosmosdb/RxObservableImplicits.scala
0% <0%> (-100%)
:arrow_down:

...enwhisk/connector/kafka/KamonMetricsReporter.scala
0% <0%> (-100%)
:arrow_down:

...e/database/cosmosdb/cache/ChangeFeedConsumer.scala
0% <0%> (-100%)
:arrow_down:

...ore/database/cosmosdb/cache/CacheInvalidator.scala
0% <0%> (-100%)
:arrow_down:

...core/database/cosmosdb/CosmosDBArtifactStore.scala
0% <0%> (-96.23%)
:arrow_down:

...sk/core/database/cosmosdb/CosmosDBViewMapper.scala
0% <0%> (-93.8%)
:arrow_down:

...tabase/cosmosdb/cache/CacheInvalidatorConfig.scala
0% <0%> (-92.31%)
:arrow_down:

...e/database/cosmosdb/cache/KafkaEventProducer.scala
0% <0%> (-77.78%)
:arrow_down:

... and 14 more

Continue to review full report at Codecov.

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

The PR is now ready for review


[Snyk] Upgrade axios from 1.6.7 to 1.7.7

Snyk has created this PR to upgrade axios from 1.6.7 to 1.7.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 12 versions ahead of your current version.

The recommended version was released on a month ago.

Issues fixed by the recommended upgrade:

Issue
Score
Exploit Maturity

Prototype PollutionSNYK-JS-AXIOS-6144788
375
No Known Exploit

Server-side Request Forgery (SSRF)SNYK-JS-AXIOS-7361793
375
Proof of Concept

Release notes

Package name: axios

1.7.7 - 2024-08-31Release notes:
Bug Fixes

fetch: fix stream handling in Safari by fallback to using a stream reader instead of an async iterator; (#6584) (d198085)
http: fixed support for IPv6 literal strings in url (#5731) (364993f)

Contributors to this release

 Rishi556
 Dmitriy Mozgovoy

1.7.6 - 2024-08-30Release notes:
Bug Fixes

fetch: fix content length calculation for FormData payload; (#6524) (085f568)
fetch: optimize signals composing logic; (#6582) (df9889b)

Contributors to this release

 Dmitriy Mozgovoy
 Jacques Germishuys
 kuroino721

1.7.5 - 2024-08-23Release notes:
Bug Fixes

adapter: fix undefined reference to hasBrowserEnv (#6572) (7004707)
core: add the missed implementation of AxiosError#status property; (#6573) (6700a8a)
core: fix ReferenceError: navigator is not defined for custom environments; (#6567) (fed1a4b)
fetch: fix credentials handling in Cloudflare workers (#6533) (550d885)

Contributors to this release

 Dmitriy Mozgovoy
 Antonin Bas
 Hans Otto Wirtz

1.7.4 - 2024-08-13Release notes:
Bug Fixes

sec: CVE-2024-39338 (#6539) (#6543) (6b6b605)
sec: disregard protocol-relative URL to remediate SSRF (#6539) (07a661a)

Contributors to this release

 Lev Pachmanov
 Đỗ Trọng Hải

1.7.3 - 2024-08-01Release notes:
Bug Fixes

adapter: fix progress event emitting; (#6518) (e3c76fc)
fetch: fix withCredentials request config (#6505) (85d4d0e)
xhr: return original config on errors from XHR adapter (#6515) (8966ee7)

Contributors to this release

 Dmitriy Mozgovoy
 Valerii Sidorenko
 prianYu

1.7.2 - 2024-05-21Release notes:
Bug Fixes

fetch: enhance fetch API detection; (#6413) (4f79aef)

Contributors to this release

 Dmitriy Mozgovoy

1.7.1 - 2024-05-20Release notes:
Bug Fixes

fetch: fixed ReferenceError issue when TextEncoder is not available in the environment; (#6410) (733f15f)

Contributors to this release

 Dmitriy Mozgovoy

1.7.0 - 2024-05-19Release notes:
Features

adapter: add fetch adapter; (#6371) (a3ff99b)

Bug Fixes

core/axios: handle un-writable error stack (#6362) (81e0455)

Contributors to this release

 Dmitriy Mozgovoy
 Jay
 Alexandre ABRIOUX

1.7.0-beta.2 - 2024-05-19Release notes:
Bug Fixes

fetch: capitalize HTTP method names; (#6395) (ad3174a)
fetch: fix & optimize progress capturing for cases when the request data has a nullish value or zero data length (#6400) (95a3e8e)
fetch: fix headers getting from a stream response; (#6401) (870e0a7)

Contributors to this release

 Dmitriy Mozgovoy

1.7.0-beta.1 - 2024-05-07Release notes:
Bug Fixes

core/axios: handle un-writable error stack (#6362) (81e0455)
fetch: fix cases when ReadableStream or Response.body are not available; (#6377) (d1d359d)
fetch: treat fetch-related TypeError as an AxiosError.ERR_NETWORK error; (#6380) (bb5f9a5)

Contributors to this release

 Alexandre ABRIOUX
 Dmitriy Mozgovoy

Install
npm i axios@next

1.7.0-beta.0 - 2024-04-28

1.6.8 - 2024-03-15

1.6.7 - 2024-01-25

    from axios GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.
Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 8.27%. Comparing base (ed4b158) to head (3f47de7).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #799   +/-   ##
======================================
  Coverage    8.27%   8.27%
======================================
  Files          68      68
  Lines        3952    3952
  Branches      864     864
======================================
  Hits          327     327
  Misses       3625    3625

Flag
Coverage Δ

8.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

/retest

/retest

covered in https://github.com/RedHatInsights/ocp-advisor-frontend/pull/828


Add ACCESS_MEDIA_LOCATION permission

Summary
This PR adds ACCESS_MEDIA_LOCATION permission to the PermissionsAndroid library. It fixes #31953.
It's a dangerous permission added in API level 29.
https://developer.android.com/reference/android/Manifest.permission#ACCESS_MEDIA_LOCATION
Changelog

[Android] [Added] - Add ACCESS_MEDIA_LOCATION permission to PermisionsAndroid library.
Test Plan
PermissionsAndroid.ACCESS_MEDIA_LOCATION === 'android.permission.ACCESS_MEDIA_LOCATION'

Thanks for the PR @Skrilltrax. I've imported the PR, I believe we should be good merging this 👍


The user needs more info on the font afm requirement

PROBLEM
If the host computer doesn't have font afm files installed, the default core fonts ought to magically appear to a call of 'my $f = Font::AFM.new: "Helvetica" (i.e., return Font::Metrics::helvetica), but, unfortunately they don't.
POSSIBLE SOLUTIONS

[RECOMMENDED] Modify "TWEAK"to return a core-font class if the desired font is one of the core fonts.

Provide the core font afm files in resources and employ them via the "?%RESOURCES" variable.

Use a "Build.rakumod" to:

Create a suitable directory in the "$HOME"  directory and copy the ./etc/*/*afm files there. Have the font loader look there as part of its scanning pattern.
Note  The default Ubuntu distro does not have AFM fonts installed which causes a test failure on Github workflows, and I'm not sure which package to recommend to install.

Looks good on my local host. Thanks!

Looks good on my local host. Thanks!


sensu_check provider: fix missed value

This was missed in 4f1fa9fb0ae9e1a029b04a8da4f0dec85e18e9aa

@pjfbashton thank you for catching this.
@jaxxstorm this is a needed fix to #573.
I will try to learn about testing the provider code. Maybe we can catch such bugs with some beaker tests or unit tests for providers.


Update dependencies

In particular, move to Express 5.

Partially updated. Waiting for Express 5 to be released ...


implicit conversion from 'const long' to 'double' changes value from<PHONE_NUMBER>854775807 to<PHONE_NUMBER>854775808

Bug description
In file included from velox/functions/prestosql/registration/ArithmeticFunctionsRegistration.cpp:18:
velox/functions/prestosql/Arithmetic.h:100:25: error: implicit conversion from 'const long' to 'double' changes value from<PHONE_NUMBER>854775807 to<PHONE_NUMBER>854775808 [-Werror,-Wimplicit-const-int-float-conversion]
        resultDouble <= kLongMax) {
                     ~~ ^~~~~~~~

System information
Velox System Info v0.0.2
Commit: 1b111c0f7c53e37027d8c2bbafa02a3f5f5d1380
CMake Version: 3.24.4
System: Darwin-21.6.0
Arch: arm64
C++ Compiler: /opt/homebrew/Cellar/llvm/16.0.1/bin/clang++
C++ Compiler Version: 16.0.1
C Compiler: /opt/homebrew/Cellar/llvm/16.0.1/bin/clang
C Compiler Version: 16.0.1
CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/usr/local/cmake-3.24.4/CMake.app/Contents;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local
Relevant logs
No response

Similar to https://github.com/facebookincubator/velox/issues/1280, but in different function, will submit a fix.

Fixed by https://github.com/facebookincubator/velox/pull/8177, closing it.


Add compatibility with new subscription models

https://www.paypal-community.com/t5/PayPal-HTML-Buttons/Upcoming-Change-to-PayPal-Subscriptions/m-p/1390212

This has been done.


refactor RocketMQProduceFactory: reuse producer

Describe what this PR does / why we need it
Refactor RocketMQProduceFactory: reuse producer
Does this pull request fix one issue?

Describe how you did it

add a Map private static Map<String, DefaultMQProducer> producers = new HashMap<>(); to store producers in the factory.
reuse the producer in the factory

Describe how to verify it
Create several output bindings, and the producer will be reused.
Special notes for reviews

Maybe Spring cloud stream had cache producer, we don't need to cache producer in spring cloud alibaba.

@steverao @zkzlx @yuhuangbin This PR may be reviewed and merged

Don't forget to create a same PR to branch of 2021.x.


Prometheus metrix support

Is your feature request related to a problem? Please describe.
When running in Kubernetes environment, it would be cool to have Prometheus support. Right now the heath API seems to be the only way about this
Describe the solution you'd like
Expose Prometheus metrics.
Describe alternatives you've considered
Build an Exporter
Additional context
nah.

@ilarimikkonen thanks for the suggestion. This feature could be quite useful actually.
Design note. We could implement this relatively easily since we have telemetry already. To avoid impacting QL operation, we could have a separate process import the CSV generated by Telemetry into Prometheus. This way the whole import process can even run in a separate pod which would be ideal from a performance standpoint.


User/purifoypaul/toast activation handlers

Contains implementation required for foreground/background handling of cloud toast activation.

Moving PR to https://github.com/microsoft/WindowsAppSDK/pull/1973 for rebase.


Foreach error on route /amseed/generators/new

Hi, first thanks for this plugin.
Unfortunately when I hit the "New dummy generator" button I get an error on the following page (/amseed/generators/new). You'll see the details on the attached screenshot. My PHP version is 7.0.2.

I think you posted this in the wrong place...

My bad ! Sorry for this..


Integrate ls-lint

Is your feature request related to a problem? Please describe.
superlinter is great to lint source code and file contents, however, it would be great if we can lint the directory and file names as well.
Describe the solution you'd like
Integrate ls-lint as a way to allow superlinter to lint the names of directories and files.

Hey @billxinli and @ferrarimarco,
thank you @billxinli for suggesting ls-lint to super-linter! ❤
i would love to implement this (creator of ls-lint) - is this a desired feature @ferrarimarco?

Hi @loeffel-io ! Feel free to contribute a PR for this. I'll happily review it. Thanks!

Closing due to inactivity. Feel free to reopen if interested in implementing ls-lint.


viewState.save is not run on rotate in sample

Hi
The view is not detached before onSaveInstanceState, therefor viewState.save is not run.
I can't really see any clear good way to solve this either... Yes one could run that method manually, but we have a presenter like pattern where we do state saving/cleanup in onDetachedFromWindow. This function does trigger, but it triggers after serialization, which is obviously a problem.
This worked for us in 0.8 since the objects before and after rotation were the same instance instead of being serialized/deserialized like they are in my tests now. (Which I'm a little surprised happens, but I haven't dug into why yet).

A little update. We have a custom StateParceler which does serialization at the wrong stage (outside the parceler instead of inside). Why this worked before I have no idea, but it should be trivial to fix.
The original issue still remains though.

Should be fixed with the new lifecycle integration on master, thanks!


Add rerun-if-env-changed to build.rs

If either of the LIBPCAP environment variables we use in build.rs changes, cargo will recompile

Lgtm, it seems to be a nice addition!


fix: update the PATH env var with dynamic elements

This should prepend any new PATH elements that were added after the pixi global install was performed to the PATH.

Awesome!


Adding Redirect and Proxy Error Reporting Valves

These 2 error reporting valves allow to delegate error report for dynamic generation to an external source either via issuing a redirect or proxying the request.

Thank you for your contribution. I have a few comments:

The javadoc was copy/pasted and inaccurate: both classes claim to serve JSPs for errors, and neither of them do this.
Each valve is configured using an external properties file instead of within server.xml like valves are typically configured.
The documentation (XML) disagrees with the implementation, including documenting  attributes that don't have any effect and confusing them with entries in the file-based configuration and failing to document nnn= vs http.nnn= in any way
Trace log statement(s) is/are not guarded by e.g. log.isTraceEnabled
The URL parameters are not consistently sanitized using URLEncoder.encode
There doesn't seem to be a reason to prohibit URL parameters from the "base URL" for each valve

For the "Proxy" error report valve:

No attempt is made to set the response's Content-Length or other appropriate headers coming from the proxied connection (I do see the Content-Type in there, which is good
This valve will fail if the request has already been using a Writer
This valve will fail if url.openStream returns null
Performance: Please use StringBuilder instead of string-concatenation when possible

Writing an HTTP proxy is non-trivial. I am going to need a LOT of convincing that the proxy Valve is both safe and compliant with the relevant RFCs.

Writing an HTTP proxy is non-trivial. I am going to need a LOT of convincing that the proxy Valve is both safe and compliant with the relevant RFCs.

I'd like to point out that, despite it's name, this is not a proxy. It's just fetching its error response from another server, so IMHO doesn't have any expectation of being compliant with any particular RFC(s).
That said, I'm curious as to why any of this is necessary.
You can set up whatever you want in <error-page> elements in WEB-INF/web.xml and handle errors any way you want including redirects, forwards, external-fetches, etc. There is no particular reason to create any new Valves for these purposes.

@ChristopherSchultz thank you for your meticulous review, I'll make the adjustments. As far as the "why". We are deploying hundreds of containerized apps that need the same tomcat behavior and do not want to configure this on app level. It is more straightforward to delegate error formatting to external error formatter and make updates to formatter ONLY, without having to redeploy a multitude of apps.

This feels more like a custom ErrorReportValve rather than something that would ship with Tomcat. I do agree with Chris that a lot (all?) of this functionality could be achieved with the existing error handling mechanism and a suitable Servlet / JSP as the target for the error reports.

Thank you for your contribution. I have a few comments:

The javadoc was copy/pasted and inaccurate: both classes claim to serve JSPs for errors, and neither of them do this.

Changed the wording.

Each valve is configured using an external properties file instead of within server.xml like valves are typically configured.

The idea here is to be able to provide different resource bundles based on the locale of the requests. French errors may looks somewhat different from English ones. Do you believe It is a requirement to configure valves only using their attributes?

The documentation (XML) disagrees with the implementation, including documenting  attributes that don't have any effect and confusing them with entries in the file-based configuration and failing to document nnn= vs http.nnn= in any way.

The documented attributes are not for the valve, but for the resource bundle. I believe that what the text states. How do you suggest I reword this to avoid confusion?

Trace log statement(s) is/are not guarded by e.g. log.isTraceEnabled

Added

The URL parameters are not consistently sanitized using URLEncoder.encode

Added

There doesn't seem to be a reason to prohibit URL parameters from the "base URL" for each valve

Added support for arbitrary url params.

For the "Proxy" error report valve:

No attempt is made to set the response's Content-Length or other appropriate headers coming from the proxied connection (I do see the Content-Type in there, which is good

Added content-length

This valve will fail if the request has already been using a Writer
This valve will fail if url.openStream returns null
Upon any failure valves return handling to ErrorReportValve.

Performance: Please use StringBuilder instead of string-concatenation when possible
Changed

This feels more like a custom ErrorReportValve rather than something that would ship with Tomcat. I do agree with Chris that a lot (all?) of this functionality could be achieved with the existing error handling mechanism and a suitable Servlet / JSP as the target for the error reports.

@markt-asf You are right. This is a Custom error reporting valve. We are deploying this as a standalone artifact within our tomcat distribution. It is a small and a rather generic use-case that others may benefit from. This is the only reason I am contributing this.
As far as leveraging an existing error mechanism to achieve the same.. I spent a few hours searching github, stack overflow, and google for examples of delegating error reporting to something outside of an application. I was hoping to find something that would intercept an unhandled error and forward it to /ROOT/error.jsp, or some thing like that. I couldn't find anything meaningful. Could you please suggest an example of how I may achieve this  "with the existing error handling mechanism"?
Thank you.

This would be per web application but if you put the following in web.xml
<error-page>
  <location>/WEB-INF/default-error-handler.jsp</location>
</error-page>

you should get close to what you need. That page can forward elsewhere if necessary.
(The error page is placed under WEB-INF so it isn't directly accessible)

@markt-asf I guess you are right and the JSP can do the same proxying as the valve to the external url. Still this does not scale well for our needs. We would need to rebuild a few hundred servlets with this approach, where many webapps are legacy ones where build processes no longer work. This is very time-costly and produces the same result as a quick tomcat config change. Just not worth the time for us. Thank you for your ideas.

I would recommend to make this TWO PRs because both new valves serve different purposes...

I had a look at it and ended up merging the feature as https://github.com/apache/tomcat/commit/2c2a1bd248b1ee200a0898c30e355802f0a6f7a6
We'll see what the final feedback on it is ...


Add option to order pages during build

Hi and big thanks for your work on this beautiful tool!
I have a problem where the main page is built before the other pages. A link to a sub-page appears on the main page, but the new sub-page is not built yet. This results in 404s for a first dozen of seconds after a subpage gets published.
The solution might be to let users select how the pages will be ordered during a build. I would also suggest to build the latest published pages first, because menus/main pages tend to be created before all other pages.
What do you think? I only suggest this because I haven't found a workaround.

Hi @gasman,
Yeah, it sounds like a good workaround, thanks! Yes, that's right, the files were served directly out of the build folder.


hasPreviousPage returns true incorrectly

Hi, I have a problem where hasPreviousPage returns true in the following query:
query Applications {
    applications {
        edges {
            cursor
            node {
                id
                name
            }
        }
        pageInfo {
            startCursor
            hasPreviousPage
            hasNextPage
            endCursor
        }
    }
}

The specification says:

HasPreviousPage(allEdges, before, after, first, last)
If last is set:

Let edges be the result of calling (allEdges, before, after).
If edges contains more than last elements return true, otherwise false.

If after is set:

If the server can efficiently determine that elements exist prior to after, return true.

Return false.

I thought the problem was on this line:

https://github.com/spring-projects/spring-graphql/blob/2a99c1ffa0251b76c95f242a181acb638be102fb/spring-graphql/src/main/java/org/springframework/graphql/data/query/WindowConnectionAdapter.java#L56

and I reported the problem in spring data but the team closed my issue with an answer:

https://github.com/spring-projects/spring-data-jpa/issues/3180

Thanks for the report.
Under https://github.com/spring-projects/spring-data-jpa/issues/3180 you show invoking the repository with a ScrollPosition. What is the actual position passed since the query doesn't have any arguments like after or before, and have you tried calling the repository without a position for this query?
I think with keyset scrolling, when there is a non-empty keyset, there may be more items in the overall result set that come ahead of that keyset, and there isn't an easy way to know if there are previous items because the query returns only items from the keyset forward. The only way to be certain time, with forward pagination at least, is when the keyset is empty, then we now it's the very first page, and that's how KeysetScrollPosition#isInitial() is implemented.

And of course the same is also true in reverse for hasNextPage. When paginating forward, we should know if there are more windows, but not when paginating backward and again in that case the spec allows us to always return false.

Basically, what Rossen suggested.
We should consider the scroll direction when providing has previous/has next pagination details. From forward-scrolling, you cannot know, whether there is a previous page and likewise, from backwards scrolling, you cannot know whether there is a next page because we do not have information on whether there is data before the position you've started from.
For offset-based queries, we could indeed optimize and check whether the offset is zero, but that would handle only a very specific case while adding some complexity.

I've created #843 to fix the behavior of hasNext/hasPrevious with keyset scrolling. After the change hasPrevious will always return false with forward-scroll, and likewise hasNext will always return false with backward-scroll.
This is spec compliant and about as much as we can do.


ValueError: max() arg is an empty sequence

For some pairs of input and output sentences I get the following error: ValueError: max() arg is an empty sequence. In the error message it is written that line 171 in metric.py (simp_score =  max(p_simp)) causes the error message. Interestingly, for some pairs of input and output sentences the code executes just fine. This is my code which I am running in a new Python file:
from metric import r_meaning_score, `p_simp_score
from comparative_complexity import *

# setup
tokenizer = BertTokenizer.from_pretrained(r'./bert-base-uncased')
lm_model = BertModel.from_pretrained(r'./bert-base-uncased')
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
lm_model.to(device)
ranker = torch.load(r"./bert_base_all.ckpt", map_location=torch.device('cpu'))
ranker.to(device)

# Compute r_meaning_score
r_mean_score = r_meaning_score(input_sent, output_sent, tokenizer, lm_model, device)
print(f"R Meaning Score: {r_mean_score}")

# Compute p_simp_score
p_simp_score_value = p_simp_score(input_sent, output_sent, tokenizer, lm_model, ranker, device)
print(f"P Simp Score: {p_simp_score_value}")

When running the code for input_sent = "He is sophisticated." and output_sent = "He is smart." the code works just fine. I get an R meaning preservation score of 0.9413632035255433 and a P simplification score of -0.055137112736701965. However, when I run the code with input_sent = "one" and output_sent = "one" I get a P meaning preservation score of 1.0 and the ValueError instead of the P simplification score.
I didn't really understand the code provided under the Usage  section which is why I just sticked to the r_meaning_score and p_simp_score functions from metric.py.

this is actually not a bug. The code basically works on sentence pairs with unique words that form potential simplicity change. To solve this issue, you can check line 131 of metric.py: for uwd in unique_words. You can either choose a pair of inputs with unique words, e.g., "one" vs. "1" or change the code to traverse all words instead of just unique words

All right, this makes sense! What I just did now as an adjustment is that I return a simp score of 0 if both sentences have the same set of unique words.

you solution also makes sense.


Move comment rule

And also change col offset in error rule

Codecov Report

Merging #191 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
+ Coverage   98.58%   98.60%   +0.02%
==========================================
  Files          31       31
  Lines        1979     1938      -41
==========================================
- Hits         1951     1911      -40
+ Misses         28       27       -1

Impacted Files
Coverage Δ

robocop/checkers/comments.py
100.00% <100.00%> (+3.44%)
:arrow_up:

robocop/checkers/errors.py
100.00% <100.00%> (ø)

robocop/checkers/naming.py
99.21% <100.00%> (-0.06%)
:arrow_down:

tests/utest/test_thresholds.py
95.45% <0.00%> (-0.20%)
:arrow_down:

robocop/checkers/duplications.py
94.49% <0.00%> (-0.06%)
:arrow_down:

robocop/checkers/lengths.py
97.94% <0.00%> (-0.03%)
:arrow_down:

robocop/config.py
100.00% <0.00%> (ø)

tests/e2e/test_e2e.py
100.00% <0.00%> (ø)

tests/utest/conftest.py
100.00% <0.00%> (ø)

... and 6 more

Continue to review full report at Codecov.

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


Refactor update update channel's form info

This PR creates GraphQL fragment for data into UpdateUpdateChannel  form and uses it in the UpdateChannel page.
This PR also gets rid of relay/unused-fields ESlint warning for the UpdateChannel page.

Closing as superseded by #505


[DNM] Experimental buildpack support

Opening this PR as a RFC.
Experimental support for using a buildpack to create an image rather than a Dockerfile.
To use with cflocal:

install the cf-cli and cflocal
install npm-pack-zip npm install -g npm-pack-zip
clone and checkout this branch
riff invokers apply -f node-invoker.yaml
cd samples/square && touch ../@projectriff
riff init node --useraccount $DOCKER_REPO_OVERRIDE
npm-pack-zip --src ../.. --dst .. && cf local stage square -b<EMAIL_ADDRESS>&& cf local export square -r $DOCKER_REPO_OVERRIDE/square:0.0.1
riff apply
riff publish -d 3 -r

Benefits:

the latest appropriate version of node will used on each build
should work in any environment that supports buildpacks

Known issues:

cohabitation of buildpack and invoker
should leverage libbuildpack

Replaced by #60


 When polling for updates is enabled in the integration configuration, it calls the /list endpoint of the Nuki Bridge HTTP API so the "ring action" sensor may be turned off with the polling updates.
So what happens if the polling for updates is disabled? Well, once the "ring action" binary sensor turned on it will never turned off.
I delegate the updates for Nuki devices to the webhook so I keep disabled the polling for updates to reduce LAN traffic.
This PR introduced the schedule of a task to turn off the "ring action" binary sensor 5 second after it turn on.

Works for me. Thank you.

I've merged two open PRs, could you please check the latest master and then I can release a new version?


Add JVP/VJP type checking in Catalyst frontend

Context: Improve type checking and error messaging in the Catalyst JVP and VJP functions.
Description of the Change: Adds type checking to ensure the following for JVP:

Number of tangent operands and number of differentiable parameters are equal.
Data types of function params and tangents arguments are equal.
Function params and tangent arguments are the same shape.

and for VJP:

Number of cotangent operands and number of function output parameters are equal.
Data types of function output params and cotangents arguments are equal.
Function output params and cotangent arguments are the same shape.

Note that the equivalent type checking is also performed at the MLIR level.
Benefits: Checking functional parameters earlier in the frontend improves error messaging and usability rather than falling back to the MLIR error messages.
Possible Drawbacks: There's a small risk that stricter type checking in the frontend might break backward compatibility if users are calling these functions in unconventional or non-standard ways that are not captured by our unit/integration tests.
Related GitHub Issues:

@joeycarter Also for the the code factor issue, you can apply black -l 100 on the test file


Untyped string literals in Explore view don't match to literals with type xsd:string and vice versa

(Migrated from https://openrdf.atlassian.net/browse/SES-1761)
This bug bubbled up when I applied my fix for SES-1753.
Repro Steps: Populate a new repository with the following SPARQL Update statement:
{code}
prefix :http://www.example.org/
prefix rdfs:http://www.w3.org/2000/01/rdf-schema#
prefix xsd:http://www.w3.org/2001/XMLSchema#
insert data
{
:alice rdfs:label "Alice" .
:alice2 rdfs:label "Alice"^^xsd:string .
}
{code}
Exploring on {{"Alice"}} only shows the triple for {{http://www.example.org/alice}}. To see the triple for {{http://www.example.org/alice2}}, you must explore on {{"Alice"^^http://www.w3.org/2001/XMLSchema#}}.
However, the Workbench displays both literals the same in tables: {{"Alice"}}

In 2.3-SNAPSHOT both resources come up for me when exploring "Alice"


Display '' in the path of the blob when setting '//' as the uploaded blob's destination directory

Storage Explorer Version: 1.15.0-dev
Build: 20200813.4
Branch: master
Platform/OS: Windows 10/ CentOS 7.6.1810 (Core) / MacOS Catalina
Architecture: ia32/x64
Regression From: Previous release(1.14.2)
Steps to reproduce:

Expand one non-ADLS Gen2 storage account -> Blob Containers.
Create a blob container -> Click 'Upload' -> Select 'Upload Files...'.
Select one file -> Type '//' in the 'Destination directory' box -> Click 'Upload'.
Check the path of the uploaded blob after uploading successfully.

Expect Experience:
The path is normal.
Actual Experience:
The path is odd.

More Info:

This issue also reproduces when selecting 'Upload Folder...'.
The screenshots on version 1.14.2 & 1.13.1.
1.14.2

1.13.1

This is by design. Blob storage supports no name directories so we removed the logic to trim the duplicated "/" characters. The user needs to ensure there is no extra "/" characters which indicate no name directories.

@JasonYeMSFT Thank you for the sharing.
Colud you help to take a look at the below scenarios? Are these also by design?

When typing '\' in the Destination directory:

Show two layers directory  against the uploaded blob.

When typing '/' in the Destination directory:

Show one layer directory  against the uploaded blob.

When creating one folder named '\' then upload one blob to it. The uploaded blob doesn't display under the current view.

When creating one folder named '/' then upload one blob to it. The uploaded blob displays under the current view.


Logseq extension

Description
Add a new extension for Logseq to add notes quickly.
Screencast
https://user-images.githubusercontent.com/6268441/161554327-eb068107-cabd-4f68-9a58-ca40bbf8b03e.mp4
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed in the metadata folder

hi @futantan - thanks for the extension! Works as intended when a correct path is specified. However, if I specify /Users/sorin/N (doesn't exist either as a folder or a file), trying to add a note crashes the extension 😢

https://user-images.githubusercontent.com/1155589/162085199-2a3ded16-42c8-4358-89a8-7b16a02601ed.mov

@sxn Thanks for your feedback! Added a hint to let user check the path.

🎉

@sxn What if my graph is stored in an iCloud folder? I tried entering /Users/phil/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/zettelkasten in the settings but this causes the plugin to fail.

@sxn What if my graph is stored in an iCloud folder? I tried entering /Users/phil/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/zettelkasten in the settings but this causes the plugin to fail.

@ituri Try to use /Users/phil/Library/Mobile Documents/iCloud~md~obsidian/Documents/zettelkasten (remove the backslash)

It remains in "Adding note" but neither throws an error nor performs any action.
I have tried changing the path but it is still in this mode for more than five minutes now.
Happy to give you all the info you need for debugging.

@iampbernardo Did you configured the :journals-directory in file /the-path-you-configured/logseq/config.edn

@futantan 感谢logseq扩展，已经用上啦，很棒，是否有计划在其中增加搜索功能，包括文件名搜索和全文搜索/块搜索呢？

@absir1949 So happy that you like it!
I'm willing to support these features if logseq provides those abilities for the extension to extend.
I also provided the ideas to the logseq team and looking forward to it!

@iampbernardo Did you configured the :journals-directory in file /the-path-you-configured/logseq/config.edn
Let me check that because I am not 100% sure I get your point here.


Is there a way I can disable auto suggestions for specific categories

Is your feature request related to a problem? Please describe.
It's annoying when I'm typing out my command and then it's constantly sending requests for the autosuggestions because it's really slow and makes it feel laggy. I don't want it to auto suggest those but I would still like to be able to search with tab. Same thing for when I'm scping and it tries to auto suggest directories.
Describe the solution you'd like
A way to disable internet requests for auto suggestions
Describe alternatives you've considered
Disabling per command but this would suck more since I would have to manually add to the list every time I find a command that's affected by this
Additional context
n/a

It's annoying when I'm typing out my command and then it's constantly sending requests for the autosuggestions because it's really slow and makes it feel laggy

Have you tried the async mode? This will be enabled by default in the next version.
https://github.com/zsh-users/zsh-autosuggestions#enable-asynchronous-mode

Disabling per command

You can try this for now if you haven't already.
https://github.com/zsh-users/zsh-autosuggestions#skipping-completion-suggestions-for-certain-cases

Oh the async mode makes it a lot better. Thanks.


fix: #2066 - return value of func defaultDiskSize

 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.

@hash-sha512 is this pull request ready to be reviewed?

@hash-sha512 looks like the test failures might be unrelated for this? Let me know if it's ready for review, would be good to get this into the next release 🙏

@aliscott my approach was wrong. I have elaborated further in #2066

Thanks for the update @hash-sha512 🙏. Is it okay if we close this PR for now?

@hash-sha512 As a small thank you gift for contributing, we'd like to send you some InfraSocks 🧦 Can you please email me at<EMAIL_ADDRESS>so I can sort it out?


Add vertical bounding octagon

In commit e1fe5c40bafd7d472ff41f0ca84ebe9ea5a12f29 you added the bounding octagon graphic, for reference and testing. It could be useful to also have av vertical version of the octagon as well

My suggestion is to have three different octagon graphics:

BoundingOctagon.svg (with no mod1 and mod2 indicators)
BoundingOctagonHorizontal.svg
BoundingOctagonVertical.svg

If you want I can create the files and submit a pull request.

Added vertical bounding octagon and changed the name of the horizontal bounding octagon in merge #162.

Thanks @abouffard.

I'm waiting on DISA to send me their octagon svg without the sector lines, then I'll add it too.

I'm sorry for closing the issue prematurely. For my symbology explorer I created an "unofficial" bounding octagon manually: BoundingOctagon.svg. Feel free to use it if you don't hear back from DISA.

Thanks @kjellmf

@kjellmf , this symbology explorer is AWESOME! Very cool. I'm adding a link to it on the main repo readme, let me know if that's not OK.

Yes very nice :+1: @kjellmf

Thanks @joebayles. Feel free to add a link.

That web app is extremely nice and thorough - a great tool/supplement to the standard - especially thanks for the technical description http://kjellmf.github.io/military-symbology-explorer/#/about and the more succinct JSON format
This is yet another great example of how opening/apache-licensing technical data (in this case data model + images) only benefits the community and ensures overall better quality, tools, collaboration, and more.

Thank you @csmoore and everyone else for the feedback, and thanks for making the data available to everyone!. I'm glad that you liked the web app. It is a fun project to work on and I will try to make it more user friendly and useful.

Sectorless bounding octagon added in PR #169.

Excellent. Closing this issue now that all the octagons have been added.


Identifying works pageviews for items available for online requesting

We want to know if the following change has improved the user experience
Researchers are able to request items from works pages more easily
Definition of success is
More online requests
We'll know if we're succeeding if we measure the following metric and this happens
Increased percentage of total online requests / total works pageviews for items available for online requesting

We want to be able to count in Elasticsearch only those works pageviews which allow users to request items online.
Here's an example:


 All versions in looping during docker-compose up command with errors:
cvat_opa                | {"level":"error","msg":"Bundle load failed: request failed: Get \"http://cvat-server:8080/api/auth/rules\": dial tcp <IP_ADDRESS>:8080: connect: connection refused","name":"cvat","plugin":"bundle","time":"2023-02-24T10:02:13Z"}
cvat_worker_export      | Error: could not find config file supervisord/worker.export.conf
cvat_worker_export      | For help, use /usr/bin/supervisord -h
cvat_worker_import      | Error: could not find config file supervisord/worker.import.conf
cvat_worker_import      | For help, use /usr/bin/supervisord -h
cvat_worker_export exited with code 2
cvat_worker_import exited with code 2

I have same issue. @wDevil Did you solve it?

It looks like you might need to rebuild or re-download the Docker image for CVAT server. Could you please try to run
CVAT_VERSION=v2.3.0 docker compose up --pull=always?

Hi, please also run git checkout v2.3.0.

Hi, please also run git checkout v2.3.0 before running the containers.

Hi @zhiltsov-max Thank you. I tried that and the server now doesn't have the cvat_worker_export, cvat_worker_import and cvat_worker_annotation after that change so no longer this issue. However,  after I checkout to the branch you suggested whenever I want to create a new annotation task I get the following error, hence I'm still not able to annotate anything on the local server.
django.db.utils.ProgrammingError: relation "engine_jobcommit" does not exist
LINE 1: INSERT INTO "engine_jobcommit" ("scope", "owner_id", "timest...

Here is the full logs in case you want to take a look.

Thank you for the response @zhiltsov-max. Here is the log output after running that command:

or if you prefer I also exported the logs in the following file:
logs.txt

@azhavoro, could you please look?

@CheloGE
your database schema and CVAT code are not compatible (different versions), I think the reason is that you ran the develop version of cvat, then you tried to run the v2.3.0 version. This will not work. CUrrently you need to use dev images or delete the database.

Hi @azhavoro Thank you for the hint. Yes, you are right, I did run the dev branch of cvat first and then switch to the 2.3.0 version. However, I can't use the dev version because it is v2.5 and I must run the v2.3.0 as I have some libraries that are not yet compatible with version 2.4 onwards. Does that mean that the only option I have is deleting the database? Do you mind explaining me how should I do that?

@CheloGE If you have any data you don't want to lose, an additional option to try is to manually unapply migrations, but I'm not sure if that's possible. If you don't have CVAT data, it will be much easier to just delete the cvat database with docker compose down -v that will delete all docker volumes as well

@CheloGE If you have any data you don't want to lose, an additional option to try is to manually unapply migrations, but I'm not sure if that's possible. If you don't have CVAT data, it will be much easier to just delete the cvat database with docker compose down -v that will delete all docker volumes as well

After applying the docker compose down -v command the error was fixed. Now, everything is running as expected. Thank you very much! @azhavoro


Readme: Fix links for readme.dev and readme.prod

Absolute links is necessary for readthedocs to properly
link to the files. Mentioned in PR #859

Automated message from Dropbox CLA bot
@staranjeet, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @staranjeet!


Language qualifications

The esolangs are getting a bit out of hand. I think there should be some requirements for languages to be added. Has an interpreter/compiler (not hypothetical)? Turing complete?

Requiring a language to be Turing-complete may rule out some languages with significant real-world use. For example, proof assistants (e.g. Coq and Agda) are generally not Turing-complete.

True
On Fri, Jul 28, 2023 at 9:36 AM Po-Yi Tsai @.***> wrote:

Requiring a language to be Turing-complete may rule out some languages
with significant real-world use. For example, proof assistants (e.g. Coq
and Agda) are generally not Turing-complete.
—
Reply to this email directly, view it on GitHub
https://github.com/leachim6/hello-world/issues/1494#issuecomment-1655798090,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APYEERRBKYZ7OTTHJ77IG2TXSPE6NANCNFSM6AAAAAA2A26CQI
.
You are receiving this because you authored the thread.Message ID:
@.***>


Expose abi encoding

What was wrong?
The main goal of this PR is to implement ABI encoding for structs and expose it the user via a builtin attribute function abi_encode().
How was it fixed?

Implemented the AbiEncoding trait for structs. This was quite easy since structs are already encoded following the ABI standard.
Implemented the abi_encode() attribute function for structs.

There were a few other things that I ran into and fixed/changed.

#263
We're using the struct field pointer getter operations for storage too now.
Field value offsets are now calculated using field_index * 32 + (32 - field_size) instead of field_index * 32, which fixed a bug I was seeing.
Changed the array field dimension to size. This should be correct terminology.
Some refactoring to the struct implementation and more testing.

To-Do

[ ] Update Spec if applicable

[ ] Add entry to the release notes (may forgo for trivial changes)

[ ] Clean up commit history

Codecov Report

Merging #266 (c07d8e9) into master (fd9f78e) will decrease coverage by 0.20%.
The diff coverage is 78.08%.

@@            Coverage Diff             @@
##           master     #266      +/-   ##
==========================================
- Coverage   93.94%   93.73%   -0.21%
==========================================
  Files          54       54
  Lines        3798     3816      +18
==========================================
+ Hits         3568     3577       +9
- Misses        230      239       +9

Impacted Files
Coverage Δ

analyzer/src/namespace/operations.rs
84.84% <ø> (ø)

analyzer/src/traversal/assignments.rs
96.66% <ø> (ø)

compiler/src/yul/mappers/assignments.rs
97.82% <ø> (ø)

compiler/src/yul/mappers/declarations.rs
100.00% <ø> (ø)

compiler/src/yul/mappers/functions.rs
100.00% <ø> (ø)

compiler/src/yul/names.rs
100.00% <ø> (ø)

compiler/src/yul/operations/abi.rs
88.23% <0.00%> (-2.68%)
:arrow_down:

compiler/src/yul/runtime/functions/abi.rs
91.61% <41.66%> (-4.20%)
:arrow_down:

compiler/src/yul/utils.rs
93.75% <66.66%> (-2.92%)
:arrow_down:

analyzer/src/namespace/types.rs
81.94% <71.42%> (+0.46%)
:arrow_up:

... and 11 more

Continue to review full report at Codecov.

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


TestExplorer cannot understand TestCase-naming-style

Description
I have an implementation for ITestDiscoverer as follows:
class MyClass : ITestDiscoverer
{
    public void DiscoverTests(IEnumerable<string> sources, IDiscoveryContext discoveryContext, IMessageLogger logger, ITestCaseDiscoverySink discoverySink)
    {
        discoverySink.SendTestCase(new TestCase(
          "My.Namespace.MyType.MyMember.MyMember(1)",
          new Uri("executor://myexecutor/v1"),
          "path\\to\\my.test.assembly.dll"));
    }
}

Furtmerore my test-project has this class:
namespace My.Namespace
{
    [TestFixture]
    public class MyType
    {
        [TestCase(1)
        public void MyMember(int n) { ... }
    }
}

However VS TestExplorer cannot interpret the testcase's name and allways just assumes My.Namespace.MyType to be the namespace, instead of My.Namespace.

I omited the very first level of hierarchy, which applies to the assembly.
So there's no way to indicate where the namespace for a particular testcase ends and where its member starts.
Furthermore the test appears twice in TestExplorer. I assume this is because some default (?) test-discoverer also running.
Steps to reproduce
Create a new adapter and add it to your test-project as a reference. Then use TestExplorer to see the testcase appearing twice: once with namespace being My.Namespace.MyType and once with My.Namespace.
Using VS2022.
Expected behavior
TestCase should only appear once, with second hierarchy (=namespace) My.Namespace and third hierarchy (=type) MyType.
Actual behavior
TestCase appears twice, once with namespace being My.Namespace.MyType and once with My.Namespace
Environment
running VS2022 on Windows and NUnit 4.1

Couldn't imagine I didn't try that.
Anyway now my test-explorer shows this:

So the test still appears twice, while one of them cannot be executed, even if I right-click and say "Run selected". So how can I disable the "default"-adapter for my project? In vstest..console I could just provide the /TestAdapterPath-argument. However how would I do that in TestExplorer?

I would go and enable trace logging in VS.

You can then inspect the messages that MSTest / NUnit in similar setup send, and compare your data and the other data.
That is probably the easiest way to troubleshoot this.

You will see where the logs are collected in the Test output window. It is in Temp.

@nohwnd well, tbh, the log-files were incredibly huge and pretty unstructured. I didn't even get which places specifically to look for.

You can simply look into the *.host.*  log, and search for the data sent as json, e.g. sending data from testhost (formatted):
TestRequestHandler.SendData: sending data from testhost: {
    "Version": 7,
    "MessageType": "TestExecution.Completed",
    "Payload": {
        "TestRunCompleteArgs": {
            "TestRunStatistics": {
                "ExecutedTests": 1,
                "Stats": {
                    "Passed": 1
                }
            },
            "IsCanceled": false,
            "IsAborted": false,
            "Error": null,
            "AttachmentSets": [],
            "InvokedDataCollectors": [],
            "ElapsedTimeInRunningTests": "00:00:00.1127182",
            "Metrics": {},
            "DiscoveredExtensions": {
                "TestDiscoverers": [
                    "Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.MSTestDiscoverer, Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                ],
                "TestExecutors": [
                    "executor://MSTestAdapter/v2"
                ],
                "TestExecutors2": [],
                "TestSettingsProviders": []
            }
        },
        "LastRunTests": {
            "NewTestResults": [
                {
                    "TestCase": {
                        "Id": "65747f33-daed-a11c-25ff-09a600cdc21f",
                        "FullyQualifiedName": "mstest162.UnitTest1.TestMethod1",
                        "DisplayName": "TestMethod1",
                        "ExecutorUri": "executor://MSTestAdapter/v2",
                        "Source": "S:\\t\\mstest162\\bin\\Debug\\net9.0\\mstest162.dll",
                        "CodeFilePath": null,
                        "LineNumber": -1,
                        "Properties": [
                            {
                                "Key": {
                                    "Id": "TestCase.ManagedType",
                                    "Label": "ManagedType",
                                    "Category": "",
                                    "Description": "",
                                    "Attributes": 1,
                                    "ValueType": "System.String"
                                },
                                "Value": "mstest162.UnitTest1"
                            },
                            {
                                "Key": {
                                    "Id": "TestCase.Hierarchy",
                                    "Label": "Hierarchy",
                                    "Category": "",
                                    "Description": "",
                                    "Attributes": 2,
                                    "ValueType": "System.String[]"
                                },
                                "Value": [
                                    null,
                                    "mstest162",
                                    "UnitTest1",
                                    "TestMethod1"
                                ]
                            },
                            {
                                "Key": {
                                    "Id": "TestCase.ManagedMethod",
                                    "Label": "ManagedMethod",
                                    "Category": "",
                                    "Description": "",
                                    "Attributes": 1,
                                    "ValueType": "System.String"
                                },
                                "Value": "TestMethod1"
                            },
                            {
                                "Key": {
                                    "Id": "MSTestDiscoverer.TestClassName",
                                    "Label": "ClassName",
                                    "Category": "",
                                    "Description": "",
                                    "Attributes": 1,
                                    "ValueType": "System.String"
                                },
                                "Value": "mstest162.UnitTest1"
                            },
                            {
                                "Key": {
                                    "Id": "TestObject.Traits",
                                    "Label": "Traits",
                                    "Category": "",
                                    "Description": "",
                                    "Attributes": 5,
                                    "ValueType": "System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"
                                },
                                "Value": []
                            },
                            {
                                "Key": {
                                    "Id": "MSTest.TestIdGenerationStrategy",
                                    "Label": "TestIdGenerationStrategy",
                                    "Category": "",
                                    "Description": "",
                                    "Attributes": 1,
                                    "ValueType": "System.Int32"
                                },
                                "Value": 2
                            }
                        ]
                    },
                    "Attachments": [],
                    "Outcome": 1,
                    "ErrorMessage": null,
                    "ErrorStackTrace": null,
                    "DisplayName": "TestMethod1",
                    "Messages": [],
                    "ComputerName": "RDESKTOP",
                    "Duration": "00:00:00.0034517",
                    "StartTime": "2024-07-09T15:23:31.2494352+02:00",
                    "EndTime": "2024-07-09T15:23:31.2679196+02:00",
                    "Properties": [
                        {
                            "Key": {
                                "Id": "InnerResultsCount",
                                "Label": "InnerResultsCount",
                                "Category": "",
                                "Description": "",
                                "Attributes": 1,
                                "ValueType": "System.Int32"
                            },
                            "Value": 0
                        },
                        {
                            "Key": {
                                "Id": "ExecutionId",
                                "Label": "ExecutionId",
                                "Category": "",
                                "Description": "",
                                "Attributes": 1,
                                "ValueType": "System.Guid"
                            },
                            "Value": "00000000-0000-0000-0000-000000000000"
                        },
                        {
                            "Key": {
                                "Id": "ParentExecId",
                                "Label": "ParentExecId",
                                "Category": "",
                                "Description": "",
                                "Attributes": 1,
                                "ValueType": "System.Guid"
                            },
                            "Value": "00000000-0000-0000-0000-000000000000"
                        }
                    ]
                }
            ],
            "TestRunStatistics": {
                "ExecutedTests": 1,
                "Stats": {
                    "Passed": 1
                }
            },
            "ActiveTests": []
        },
        "RunAttachments": [],
        "ExecutorUris": [
            "executor://mstestadapter/v2"
        ]
    }
}

hmmm, that's strange:
"ExecutorUris": [             "executor://nunit3testexecutor/",             "executor://myexecutor/v1"         ],

Yes this is unfortunate behavior of VS / vstest.console, all adapters are scraped and unified and sent to all projects, probably because someone in the past did not want to install adapter and framework into every project, and also because tests were running directly in the vstest.console process in the beginning.

That's indeed pretty unfortunate and unexpected. In particular, it's really annoying to try to run a test without the correct adapter. My adapter starts another process, so there's little use in having a test run without that process. Isn't there a way to disable all other adapters so only mine is used?

That's indeed pretty unfortunate and unexpected. In particular, it's really annoying to try to run a test without the correct adapter. My adapter starts another process, so there's little use in having a test run without that process. Isn't there a way to disable all other adapters so only mine is used?

Otherwise all miy tests appear twice, which is really annoying in TestExplorer as mentioned earlier.

Are you using types from the other adapter (nunit)? Because otherwise I don't see a reason why the tests would appear twice. Maybe you are just returning different ID for the test each time (random guid), rather than a guid you determine from the test data and that remains the same across runs?

Can you confirm that the GUID returned for the same test remains the same in Discovery and Run phases in your test adapter? How are you generating the test id?

well, I don't set any GUIDs in my code.

Then your discovered test and executed test will not map correctly together.

Eeeeehm, if I wanted that kind of mapping, I'd need to persist these GUIDs between discovery and execution on some way, right? That seems odd, IMHO.

Is your source code shared anywhere?

Not publicily available. I'm gonna check if I can share some demo-code.