Credential Error Uploading Experiment Data File

Describe the bug
Trying to upload a data file as described in the Scientist Python SDK Example Script, and similar to as shown in the simulation tutorial, throws a credential error, saying token has expired.
To Reproduce
To reproduce, run the script below. It works as intended if the file/data lines are commented out.
import os
import json
import cript

api_token = os.environ.get('CRIPT_API_TOKEN')
storage_token = os.environ.get('CRIPT_STORAGE_TOKEN')

api = cript.API(
    host='https://api.criptapp.org',
    api_token=api_token, storage_token=storage_token
)
api.connect()

SUFFIX = '10'

print('Creating project and collection...')
project = cript.Project(name='My Scratch Project {}'.format(SUFFIX))
collection = cript.Collection(name='My Scratch Collection {}'.format(SUFFIX))
project.collection += [collection]

print('Creating materials and inventory...')
pp = cript.Material(
    name='PP Scratch {}'.format(SUFFIX), identifier=[{'names': ['PP Scratch {}'.format(SUFFIX)]}]
)
product = cript.Material(
    name='Generic Product {}'.format(SUFFIX), identifier=[{'names': ['Generic Product {}'.format(SUFFIX)]}]
)

inventory_materials = [pp, product]

print('len(inventory_materials): {}'.format(len(inventory_materials)))
inventory = cript.Inventory(
    name='My Scratch Inventory {}'.format(SUFFIX),
    material=inventory_materials
)
collection.inventory += [inventory]

# EXPERIMENT 1
expt1 = cript.Experiment(
    'My Scratch Experiment {}-1'.format(SUFFIX),
)
collection.experiment += [expt1]

process1 = cript.Process(name='Pyrolysis 1', type='multistep', description='pyrolysis')
expt1.process += [process1]

pp_quantity1 = cript.Quantity(key='mass', value=1e-5, unit='kg')
initiator1 = cript.Ingredient(
    keyword=['initiator'], material=pp, quantity=[pp_quantity1]
)
process1.ingredient += [initiator1]

process1.product += [product]

yield_file = cript.File(
    name='Percent weight yield',
    type='data',
    source='/home/czh/nvme1/cript_sandbox/experiment_results/expt1/%WtYield_Chemicals.tsv'
)
yield_data = cript.Data(
    name='Percent weight yield',
    type='product_chemical_composition',
    file=[yield_file],
    notes='test',
)
expt1.data += [yield_data]

project.validate()
api.save(project)

Resulting error:
Traceback (most recent call last):
  File "/home/czh/nvme1/cript_sandbox/scratch.py", line 99, in <module>
    api.save(project)
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/cript/api/api.py", line 698, in save
    self._internal_save(project)
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/cript/api/api.py", line 722, in _internal_save
    file_node.ensure_uploaded(api=self)
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/cript/nodes/supporting_nodes/file.py", line 221, in ensure_uploaded
    self.source = _upload_file_and_get_object_name(source=self.source)
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/cript/nodes/supporting_nodes/file.py", line 73, in _upload_file_and_get_object_name
    object_name = api.upload_file(file_path=source)
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/cript/api/api.py", line 869, in upload_file
    self._s3_client.upload_file(Filename=file_path, Bucket=self._BUCKET_NAME, Key=object_name)  # type: ignore
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/cript/api/api.py", line 359, in _s3_client
    identity_id = auth.get_id(IdentityPoolId=self._IDENTITY_POOL_ID, Logins={self._COGNITO_LOGIN_PROVIDER: self._storage_token})
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/czh/nvme1/cript_sandbox/cript_venv/lib/python3.10/site-packages/botocore/client.py", line 980, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.NotAuthorizedException: An error occurred (NotAuthorizedException) when calling the GetId operation: Invalid login token. Token expired:<PHONE_NUMBER> >=<PHONE_NUMBER>

Expected behavior
The file is uploaded, attached to the data node, and associated with the experiment.

The issue you're encountering seems to be related to the AWS S3 tokens we use. These tokens, which can be obtained from the frontend security page, have an expiration time for security purposes. The error suggests that the token you're using has expired. Please obtain a new token from the security page and try again. Let me know if you continue to face any issues!

Ah, gotcha, thanks for letting me know!


createEach: use the output of async.map

instead of using helper array. to ensure the order is correct.
Supplement to #980, ensuring it passes the .create() should return rows in the correct order when creating multiple rows test.
cc: @devinivy, @kevinburkeshyp, @particlebanana, @brandonsimpson

Looks good to me.  One question: are undefined values filtered out in case the array is sparse or something?  I don't see why any entries should be undefined.  (I'm wondering if that should throw an error.)  I suppose this question might not be part of this PR– I see that the code is just meant to work the same as it did before.

I see that the code is just meant to work the same as it did before.

Precisely @devinivy.
Regarding the origin of filtering out undefined values I traced it to https://github.com/balderdashy/waterline/commit/ebcf0662d8f01d2f70d4ad2c88494536468e9010 and https://github.com/balderdashy/waterline/commit/3e0c18016f43bdada790dce2ebeaf614bfb8c947, not a 100% sure why though.

Merging this in order to fix the integration tests in waterline-adapter-tests but we should continue the discussion about undefined and we can continue it here, for now.


⚠ Bofrost.de has degraded performance

In 26be21b, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1331 ms

Resolved: Bofrost.de performance has improved in 1ae2838 after 19 minutes.


[zh-cn] Fix 404 link in /zh-cn/docs/tutorials/security/apparmor

The documentation seems untranslated yet and will be 404 Not Found in page 使用 AppArmor 限制容器对资源的访问
Should translate this page https://kubernetes.io/docs/concepts/security/linux-kernel-security-constraints/ later

See #46559 , this /zh-cn can be kept.

See #46559 , this /zh-cn can be retained.

OK I see , thank you


Spare-Capacity will not be added on "fresh" HA installation

Having the integration installed (the custom_component), but not configured any integration - restart HA - then add the WEB-API - for what ever reason only 13 Entities will be shown in the GUI - the spare_capacity entity is not showing up - even if the EntityRegistry event-logger is showing that the entity will be created!
When you restart HA, then the 14'th Entity ill show up and works as expected...
When you remove the WEB-API - and do not restart HA - and re-add it again - the 14'th entity is also instant present... When you remove the integration - restart HA - and then re-add it again - there are only 13 entities!
For local debugging I use here a docker HA-installation running in WSL on my Windows Notebook - this is the easiest way for me to test the code that I develop in my IDE.

I could reproduce the issue.
In my case, when I see 13 Entities the 14th Entity appears after some time. No reload of the integration or restart of Home Assistant is necessary.
For testing purposes I've added several additional Logger-Calls, but could not find any hint, why the Entity doesn't apper immediately. It seems as if the Number-Plattform as well as the Number-Entity is set up as expected.
Currently I don't have any thesis, where the problem ist and have to analyse this further.

indeed - if I wait 5min+ the missing entity does appear automatically ... this is really  strange - HA logic ?!

As you see, sometimes I struggle as well to understand the behaviour of Home Assistant....
I will continue thinking, what the reson could be.


cannot build glfw as shared and another cmake library as static

The only way (reasonable) to build glfw as a shared lib through cmake is to set BUILD_SHARED_LIBS to ON.
This has the effect of changing every library that does not explicitly specify itself as STATIC or SHARED to be SHARED so it is not suitable when multiple cmake files are in the same "cache domain" of this variable.
PLEASE provide a different way to specify how glfw is built. Maybe add a supplementary option to test against, one that is only for glfw?
if (BUILD_SHARED_LIBS OR GLFW_BUILD_AS_SHARED)
set(_GLFW_BUILD_DLL 1)
endif()
...
if(GLFW_BUILD_AS_SHARED)
add_library(glfw SHARED ${glfw_SOURCES} ${glfw_HEADERS})
else()
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS})
endif()

still thinking about this..

I have just got burned by this issue... GLFW "namespaces" its other CMake variables so it's strange this one is not "namespaced". This is a real inconvenience with the way CMake works, a CMakeLists include_directorying another CMakeLists has no good way to work around namespace stomping performed by the included CMake file

Personally I'd rather GLFW not do this.
When you set BUILD_SHARED_LIBS the expectation is that every library that didn't manually specify it's type will conform to what you said.
Creating custom conventions is never ideal, and age very badly in cmake.
(Speaking as someone who is revamping my company's cmake infrastructure...)
Here is a way you can handle this situation in cmake, without having to modify the cmake code.
set(BUILD_SHARED_LIBS_OLD ${BUILD_SHARED_LIBS})

# OFF or ON whatever you want.
set(BUILD_SHARED_LIBS OFF)

add_subdirectory(glfw)

set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_OLD})

Thank you for your feedback and your patience.
You can now (finally) control the library type of GLFW separately with the optional GLFW_LIBRARY_TYPE CMake variable added by d83849792b0cf3e40c402f299c867ac6e1fd0e20. When set this will override the value of BUILD_SHARED_LIBS without affecting other libraries.


Implementation of CRF parser in another language

Hi, recently I want to reimplement the CRF parser in another language like (C++/flex, python/boost and so on). I have read the paper "Less grammar, more features" which proposes more features for CRF model. I am trying to figure out how the parser is implemented using CRF model.

syntactic parser, implement transition functions (anchor rule production in Context Free Gramma) to build up nodes of a syntactic tree. (part 1)
CRF based model training with proposed features to provide baseline for syntactic transition function. (part 2)

I am trying to read the source code to understand how this works. I wish some the author can help me to figure out how these two parts are implemented.
For the first part, since I am going to use Neural CRF, more details about data preprocessing are appreciated.
Have a nice weekend!

it would be good if you could list specific confusions. There's a lot going
on. For the basic linear model,
score(A -> B C, i, j, k) = weights dot features(A->B C, i, j, k)

For the neural model, the score is that plus s(i, j, k) * W * r(A->B, C),
where s is a feed forward neural network.
The rules are extracted from the treebank by applying "head outward"
binarization using a slightly modified variant of Collins' head rules (for
English). All introduced intermediate states are collapsed into a single
state.
The feature templates are as described in the paper, though the lexicon is
maybe underspecified. Feature hashing (as described) is important. Don't
ignore.
HTH,
-- David
On Sun, Sep 24, 2017 at 4:31 PM, yiak<EMAIL_ADDRESS>wrote:

Hi, recently I want to reimplement the CRF parser in another language like
(C++/flex, python/boost and so on). I have read the paper "Less grammar,
more features" which proposes more features for CRF model. I am trying to
figure out how the parser is implemented using CRF model.

syntactic parser, implement transition functions to build up nodes
of a syntactic tree. (part 1)
CRF based model training with proposed features to provide baseline
for syntactic transition function. (part 2)

I am trying to read the source code to understand how this works. I wish
some the author can help me to figure out how these two parts are
implemented.
For the first part, since I am going to use Neural CRF, more details about
data preprocessing are appreciated.
Have a nice weekend!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dlwh/epic/issues/67, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAloWO-3p9G9ZzWYHu5fbXNRMRua1neks5sllnNgaJpZM4Ph45s
.


Update awscli install instruction via pip

boto3 is the Python library to access AWS resources whereas awscli provides a CLI tool.

Thanks!


send command not fired

Issue Summary
Using @sendgrid/email in a Netlify function does not send the email. The send(msg) command returns neither a success nor an error. Nothing seems to be fired.
Steps to Reproduce

Setup a Netlify Function with the "hello email" example provided by sendgrid
Deploy the site to Netlify
fire the Netlify function

Code Snippet
 const sendgrid = require('@sendgrid/mail');
 sendgrid.setApiKey(process.env.SENDGRID_API_KEY);

 const handler = async (event) => {
const msg = {
  to<EMAIL_ADDRESS>  from<EMAIL_ADDRESS>// Use the email address or domain you verified above
  subject: 'Sending with Twilio SendGrid is Fun',
  text: 'and easy to do anywhere, even with Node.js',
  html: 'and easy to do anywhere, even with Node.js',
};

sendgrid
  .send(msg)
  .then(() => {console.log('hop !')}, error => {
    console.log(error);

    if (error.response) {
      console.log(error.response.body)
    }
  });
    return {
        statusCode: 200,
        body: JSON.stringify({ retour: "ok"}),
        // // more keys you can return:
        // headers: { "headerName": "headerValue", ... },
        // isBase64Encoded: true,
      }
    }

    module.exports = { handler }

I verified that the SENDGRID_API_KEY has the correct key. No error fired but no email sent. It works in local development... I am not sure of the difference.
Exception/Log
No log output, neither console.log("hop") nor the error message

Technical details:

sendgrid-nodejs version: "@sendgrid/mail": "^7.6.2"
node version: 16

Any help would be really appreciated.
I am also posting this to the Netlify forum.
Thanks,
Nicolas

Hello,
It was a promise not correctly dealt with.


Create logo

Think up a name and create a cool logo.

Name: PlayCardsWith.Me. Now we just need a logo

I'm thinking of something like this:

So using the text on some cards held like they are in a hand. I'll try to work it out further.

I think that is a nice idea

What do you think of this?

I like it. I just think there is one too many colors here with the red, white, yellow, blue, green and orange. Maybe join room can be the same color as the cards

I kind of liked the blue cards as well. Did that not work in the design on the front page?

I kindof thought more blue looked really boring, because the entire background is already blue...

Makes sense

How about this, more of a casino table vibe with the red background.

Oh ja, dat is wel mooi!

Oh that looks nice! I'm only not sure about the New Room button going over the logo so much.

What about a spacing like this? Apart from the colors.

Or without the cursor?

So this is with that kind of spacing:

And this is with shorter spacing:

I think I prefer it with the overlap, to be honest

I think the pixelated cursor looks a bit jarring, with all other things being smooth

Wow that looks great! I like the version with overlap more.
Very minor: maybe the . in .me should be a bit more visible so people know it's an URL? Just moving that card to the right slightly would do that.

Good point! I don't want to have the '.' completely in view, because then it kindof looks odd since all other words are cut off on the side. But here I have given the '.' a bit more space:

What do you think @flori9 ?

I get that; I think it's great like this!

Nice. It is probably better with this new favicon to also use it in the header, like this:


Please add count argument to lpop

lpop command has count argument https://redis.io/commands/lpop
This feature would be very useful.
Thanks!

Feel free to open a PR with the change 👍


Update Adjoint

Adjoint builds accounting solutions and HQ is in London.

Thanks! Will deployed updated info to the site during the day.


Rocm compiler -- improper warning

Using rocm 3.1.
MIDDLE is a passed to the compiler using -D, as in -DMIDDLE=10
I assume the compiler would also barf if I used "#define MIDDLE 10"
Rocm is complaining about valid C code (messages at end of this message):
length = (MIDDLE <= 12 || MIDDLE == 15) ? 1 : 2;
and
if ((MIDDLE >= 6 && MIDDLE <= 8) || (MIDDLE >= 11 && MIDDLE <= 13) ...
It also seems that after warning several times, the compiler aborts.
/tmp/comgr-01e5ad/input/CompileSource:1663:24: warning: use of logical '||' with constant operand
length = (MIDDLE <= 12 || MIDDLE == 15) ? 1 : 2;
^  ~~~~~~~~~~~~
/tmp/comgr-01e5ad/input/CompileSource:1663:24: note: use '|' for a bitwise operation
length = (MIDDLE <= 12 || MIDDLE == 15) ? 1 : 2;
^~
|
/tmp/comgr-01e5ad/input/CompileSource:1834:18: warning: use of logical '&&' with constant operand
if ((MIDDLE >= 6 && MIDDLE <= 8) || (MIDDLE >= 11 && MIDDLE <= 13) {
^  ~~~~~~~~~~~
/tmp/comgr-01e5ad/input/CompileSource:1834:18: note: use '&' for a bitwise operation
if ((MIDDLE >= 6 && MIDDLE <= 8) || (MIDDLE >= 11 && MIDDLE <= 13) {
^~
&

Correction:  The compiler aborting after several warnings was something else (mismatched paren).

Thanks @gwoltman for reaching out.
Can you please verify with ROCm 4.0 and share an update asap for moving this ticket to next level in a faster manner.
Thank you.

Closing this as there is no response from the user.
Thank you.


Add CoreWebView2.Settings.AreDevToolsEnabled

Can you add this for disable access to dev tools?
Here are more details
https://stackoverflow.com/questions/65428492/disable-devtools-in-microsoft-web-webview2-wpf-component

Raised a pull request for this


Add pre-commit, virtual environment, requirements-dev.txt

This branch will add pre-commit to the pyramid_swagger development environment. I also ran the hooks on all files.
If you now type make it will install hooks and create a virtual environment with all necessary tools and dependencies for pyramid_swagger development. Either activate this environment with source .activate.sh or use aactivator.
This enables the developer to easily run single tests or the full test suite without using tox. Furthermore, we'll now use tox that is installed in the virtualenv, not requiring it to be installed system-wide anymore.
I've also added a small Contributing section to the README.

Coverage increased (+0.007%) to 99.577% when pulling 0b9e8cda11a53bd31fbb5875e3c379a7c1b11f96 on sjaensch:venv-pre-commit-requirements-dev into 4abaf05ab542f6136ebc04d7d02f85097b71e323 on striglia:master.

Coverage increased (+0.007%) to 99.577% when pulling 993b3d0a5c1c2e23154c436c08d921e19780942e on sjaensch:venv-pre-commit-requirements-dev into 4abaf05ab542f6136ebc04d7d02f85097b71e323 on striglia:master.

looks sane to me 🚢

🚤
Thanks Stephan!


feat: migrate to nvim_buf_set_text

Closes #52

Apparently nvim_buf_set_text feels slower when doing line comment/uncomment on a large file. This might be because of multiple calls that need to be done to update every single line individually.


Doc: update internal build.info manual

Checklist

[x] documentation is added or updated
[ ] tests are added or updated

Merged.
7c3ccd7fc823b5580f862c0e35dd7962fd2ae0f0 Doc: update internal build.info manual


Change doc about e2e presubmit status

Matches https://github.com/istio/istio/issues/3509

/cc @hklai

BTW, I don't know why we moved pilot e2e/integration tests under this dir, they don't even use this framework. It's confusing to me it lives under istio/tests/e2e/tests

@yutongz: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
345a13ad5b488fded1435ab5ddd0c42afe654e32
link
/test istio-pilot-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

BTW, I don't know why we moved pilot e2e/integration tests under this dir, they don't even use this framework. It's confusing to me it lives under istio/tests/e2e/tests

I agree
/lgtm

/test istio-pilot-e2e

/lgtm


feat: add github action to lock new issues

Description 📝

Fixes/Closes: #469
Added github action workflow to lock new issues.
Files added 💬

.github/workflows/lock.yml

Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[ ] I have commented my code, particularly wherever it was hard to understand.
[ ] I have made corresponding changes to the documentation.

Please review this PR
Thanks.

@PiyushKalyanpy please review this PR
Thanks

@PiyushKalyanpy please add gssoc23 label and label to the PR, otherwise my PR won't count.

@PiyushKalyanpy please add gssoc23 label and label to the PR, otherwise my PR won't count.

Sorry for the inconvenience @harmeetsingh11 , I have updated the labels. We look forward to receiving more contributions from you.

Thanks
Glad to be a contributor of this project!
Will try to contribute as much as possible.😊

Hey @harmeetsingh11 locking issues are not working please check, and resolve the problem.

@PiyushKalyanpy You need to enable the permissions to run any workflow. Here's how to do it:
To run this workflow you need to enable the following permission:

Go to your project repository settings
On left pane > Actions > General

Scroll down and Go to Workflow permissions > select "Read and write permissions"

Click save and its done.

Why issues are not unlocked when label is added ??


Results list to remember scroll position when returning to results after looking at a group page

I initially thought we could use window.history.back for this, and it works, but it's probably not ideal as someone may land on a group page without having previously visited the site. In that case, it would take them back to whatever site they were on previously, or do nothing.
It may be possible to check the router's history, and then choose whether to use history.back or the actual link to the results?

@johnthepink thats a great thought


Added install-latest Makefile target to allow testing of ecr image

Signed-off-by: Brady Siegel<EMAIL_ADDRESS>

/assign @divyansh-gupta @solonish

How do you feel about replacing the test with beta throughout? I'd like our test repository to turn into an easy to use beta program one day - plugin beta users would probably like install-beta-ecr-image a bit more than install-beta-test-image. Small-nitpick.


Feature domains update

Codecov Report
Base: 71.18% // Head: 71.18% // No change to project coverage :thumbsup:

Coverage data is based on head (5caa8b0) compared to base (5eddd38).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #55   +/-   ##
=======================================
  Coverage   71.18%   71.18%
=======================================
  Files           9        9
  Lines         465      465
=======================================
  Hits          331      331
  Misses        134      134

Flag
Coverage Δ

unittests
71.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Disable Swipe when pressing a button

Is there a way to disable swipe temporarily?
For example, when I'm pressing a record button on a camera, i don't want to let the user swipe tabs.

maybe add another condition  and variable,
var TempDisableSwiped = false
private func shouldSuspendInteraction
in SwipeInteractor class
eg.
if !TempDisableSwipe {
return true
}
then in SwipeableTabBarController class:
open func setTemporaryDisableSwipe(enabled: Bool) {
swipeInteractor.TempDisabledSwiped = enabled
}
then in any class i can use
tabBarController?.setTemporaryDisableSwipe = true
and
tabBarController?.setTemporaryDisableSwipe = false

Good point! I was thinking about adding something like excluded indexes, but this makes sense too, I'll set a milestone for this.

Forgot the commit message. Added support to disable the interactor at will a0a9e8a

I'm not sure if I'm using this right.

Is this the intended functionality?
I'd like to be able to disable it and enable it during the lifetime of a viewController


Name columns in loaddata from a Table

just like the name say, i like to know if there is a way to do this with a bucle for and database, like
for (content)
{
grid->
}

Sorry, i don't understand what you mean...
If you want to rename a column, use :
$grid->addColumn('firstname', 'Firstname', 'string');
arg1 'firstname' : key in the data arrat
arg2 'Firstname' : column label
arg2 'string' : datatype/


S2 inclusion times out and fails

Is your problem within Home Assistant (Core or Z-Wave JS Integration)?
NO, my problem is NOT within Home Assistant or the ZWave JS integration
Is your problem within ZWaveJS2MQTT?
YES, BUT a ZWaveJS2MQTT developer has told me to come here
Checklist

[X] I have checked the troubleshooting section and my problem is not described there.

[X] I have read the changelog and my problem was not mentioned there.

Describe the bug
I have two Aeotec Range Extender 7 devices. They are the same version and have the same firmware. One was included with S2 security with no problem. The other one seems to timeout after entering the DSK and then it is added with security "None".
Steps to reproduce the behavior:

Put z-wave js into inclusion mode with defaults
Click button on range extender to start inclusion
Click next for default security settings (S2 Authenticated & S2 Unauthenticated)
Enter DSK key

Expect to inclusion to complete successfully with security. Instead it pauses for about 2 minutes and then says that it was added with security "None".
Device information
Manufacturer: Aeotec Ltd.
Model name: ZW189-C15
Node ID in your network: 16
How are you using node-zwave-js?

[X] zwavejs2mqtt Docker image (latest)
[ ] zwavejs2mqtt Docker image (dev)
[ ] zwavejs2mqtt Docker manually built (please specify branches)
[ ] ioBroker.zwave2 adapter (please specify version)
[ ] HomeAssistant zwave_js integration  (please specify version)
[ ] pkg
[ ] node-red-contrib-zwave-js (please specify version, double click node to find out)
[ ] Manually built from GitHub (please specify branch)
[ ] Other (please describe)

Which branches or versions?
version:
node-zwave-js branch:
zwavejs2mqtt branch:
Did you change anything?
no
If yes, what did you change?
No response
Did this work before?
Yes (please describe)
If yes, where did it work?
Yes. It worked with another Range Extender with identical version information.
Attach Driver Logfile
zwavejs_2021-09-07.log

Part of the S2 bootstrapping process requires the nodes to send commands to which Z-Wave JS must react. Most of the time when S2 bootstrapping fails, these commands are never received - like in this case, which is exactly as I described there: https://github.com/zwave-js/node-zwave-js/issues/3239#issuecomment-906963206
Duplicate of #3239

Duplicate of #3239


Add CB version check in plugin.yml

allow for more flexibility by ignoring dev bukkits inflexibility. :)
proposed change.

use plugin.yml to refer to the target CB build. ignoring dev.bukkit

Closing this due to the project not being active anymore, please see https://bukget.org/news/BukGet-Winding-Down/ for more details.


Fix and re-enable remote terminal integrated tests

They're probably flaky because there is still a case where the terminal won't launch https://github.com/microsoft/vscode-remote-release/issues/2313

@Tyriar Is this still an issue?

@joaomoreno "the terminal won't launch" still is a very common problem.

https://github.com/microsoft/vscode-remote-release/issues/1154
https://github.com/microsoft/vscode-remote-release/issues/2313
https://github.com/microsoft/vscode-remote-release/issues/2579
https://github.com/microsoft/vscode-remote-release/issues/2979
https://github.com/microsoft/vscode-remote-release/issues/3082
https://github.com/microsoft/vscode-remote-release/issues/3312
https://github.com/microsoft/vscode-remote-release/issues/3320
https://github.com/microsoft/vscode/issues/102880
https://github.com/microsoft/vscode/issues/102911

I'm also facing this same issue, whenever I use remote ssh.

No options are shown even

I am also experiencing this issue. On WSL 1

I'm constantly getting this issue and it's very frustrating....

This issue is about tests, https://github.com/microsoft/vscode-remote-release/issues/2313 is tracking the bug.


Fix Documentation: example code error in docs/lang/depth-subtyping

This fixes an error in the docs, specifically the example code in the depth-subtyping section.

Hi. I have already signed the CLA, but I received this email saying it has
expired.
I tried signing again but it says:
"There were some errors submitting your CLA: GitHub Username is already
associated with an existing contributor.".
On Wed, Jul 19, 2017 at 7:37 AM, Facebook Community Bot <
<EMAIL_ADDRESS>wrote:

Thank you for your pull request. We require contributors to sign our
Contributor License Agreement, and yours has expired.
Before we can review or merge your code, we need you to email<EMAIL_ADDRESS><EMAIL_ADDRESS>with your details so we can update your status.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/flow/pull/4415#issuecomment-316238258, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAWi6IdbnNF1HjBmyiakG4WJFi1lbb55ks5sPU-wgaJpZM4OcFu3
.


feat(1ES Pipeline Migration): Migrated staging and canary ado extension validation pipelines to 1ES templates

Details
Migrated publish ado-extension-canary-validation and ado-extension-staging-validation to 1ES templates. Tested the updated pipelines and it running as expected and have verified the artifacts generated with old run.
Also update ado-extension-prod-validation.yaml file as it is using the same template which modified for staging and canary validation pipelines. However, this file is not used in any of the pipelines.
Motivation
This PR is part of migrating all build pipeline to 1ES template feature work.

User Story 2126512: [Action] Migrate ado-extension-staging-validation to 1ES PT
User Story 2126511: [Action] Migrate ado-extension-canary-validation to 1ESPT

Context

Pull request checklist

[na] Addresses an existing issue: Fixes #0000
[na] Added relevant unit test for your changes. (yarn test)
[na] Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
[x] Ran precheckin (yarn precheckin)

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

Comparison is base (301acd7) 94.52% compared to head (90b94ca) 94.52%.
 Consider uploading reports for the commit aca02ef to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1963   +/-   ##
=======================================
  Coverage   94.52%   94.52%
=======================================
  Files          38       38
  Lines        1059     1059
  Branches      145      145
=======================================
  Hits         1001     1001
  Misses         58       58

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

@DaveTryon
#1 is known issue in the template for git hub repos and it is harmless. Please refer Bug 2119901: Address issue "Failed to fetch default branch"
#2 CodeQL not running in this pipeline as this pipeline is marked as non production and using UnOfficial template. CodeQL is not enabled by default for unofficial template. I have enabled CodeQL for these pipelines.
#3 I added pattern accessibility-reports*/* to download required folders and files only.


Closes widgets via X isn't registered as unticking in the plugin menu

🐛 Bug
Refers to this issue discovered using a napari-matplotlib plug in, but happens with other plugins
To Reproduce
Steps to reproduce the behavior:

Plugins menu --> select widget e.g. Histogram (tick appears next to Histogram and widget appears)
Close the Histogram widget using the X in the top left corner of the widget so it disappears
Plugins menu Histogram widget still has a tick next to it and clicking Histogram again makes the tick disappear and the widget appear so the functionality is swapped

Expected behavior

Environment

Please copy and paste the information at napari info option in help menubar here:

Any other relevant information:

Additional context

Thanks for reporting this. I can reproduce with my 0.4.17 install.
Frankly, the whole interaction with hidden vs. closed widgets and the plugin menu vs view menu has been hard for me to really get so this is something we need to look at carefully.

I've looked at this a bit more. The menu tick/untick state is managed through the menu item QAction's checkable attribute - presumably the toggled signal is only emitted when you actually click the item. When we build the hide and close buttons  for the dock widget, we don't manually toggle the QAction in the menu.
So, we could easily do that, if we could grab the QAction associated with the dock widget when we build it. I don't know a good way to do that though... I think we might just have to iterate through the plugins_menu actions? In QtCustomTitleBar we can look through self.parent().parent()._window.plugins_menu.actions() but that seems a bit wild. Maybe @Czaki knows a better way?
Note that @psobolewskiPhD even if we hooked this up, it wouldn't allow us to provide a three-state menu item as you've shown there for the Mac. I don't think there's a native way to do that, but this stack post might be useful if we want to go in that direction.


Dynamic External Data inside GraphQL data layer

Testing out Gridsome, trying to get my bearings together. I have been able to load an external API into the local GraphQL data layer as per the documentation:
const axios = require('axios')

module.exports = function (api) {
  api.loadSource(async store => {
    const { data } = await axios.get('https://api.example.com/posts')

    const contentType = store.addContentType({
      typeName: 'BlogPosts',
      route: '/blog/:year/:slug'
    })

    for (const item of data) {
      contentType.addNode({
        id: item.id,
        title: item.title,
        slug: item.slug,
        date: item.date,
        content: item.content
      })
    }
  })
}

However, the data fetched from the endpoint is only fetched once per build. That's doesn't seem too useful. Is the expectation to rebuild the site any time the data from an external API changes? I see this functionality is acknowledged on the Fetching API doc page.
As a workaround, I can use Vuex and write something like this inside one of my page components to request the data and have it available for my components.
axios.get('https://api.example.com/posts')
  .then((res) => {
  	this.$store.commit('change', res.data)
  	this.apidata = this.$store.getters.change
  })
  .catch((err) => {
    console.log(err);
  })

So now I have data I can manipulate in JSON format, but I really want the JSON to be available to me as a GraphQL query so I can use it for templates and whatnot. I thought the Gridsome Wordpress boilerplate might have a solution to this, so I installed it, pulled some data, created a new post on the Wordpress site I was pulling from...and realized that it operates the same way. Any external API you pull into the GraphQL data layer isn't really dynamic. The data is only as fresh as your last build.
Are there any plans to make external data available in <page-query> actually dynamic?

@ryancookio Thanks for submitting your issue.
Gridsome is a Static Site Generator at it's core, using GraphQL in the build process to pull in the data source and generate the site based on the data and your templates and Vue.js logic. This is by design. You should still be able to use the data as state for your components though, so the main thing you'll be lacking compared to vanilla Vue.js or Nuxt.js is dynamic fetching.
Have a look at our documentation for more information:

You can fetch data after load though, which might be what you're looking for. See here:


Removed the details button of the rightmost column

closes coatrack#99

Is going to be merged to CoatRack master in the main repository.


Cannot read property 'importKey' of undefined while creating message

Deployment via Docker:
version: '3.7'

services:
  memcached:
    image: memcached:1-alpine
    entrypoint: memcached -m 128 # Limit to 128 MB Ram, customize at free will.
    ports:
      - 11211:11211

  app:
    image: cupcakearmy/cryptgeon:latest
    depends_on:
      - memcached
    ports:
      - 8081:5000

index.svelte-2cde6fd6.js:1 TypeError: Cannot read property 'importKey' of undefined
at E (Button-93aec9d8.js:1)
at HTMLFormElement. (index.svelte-2cde6fd6.js:1)
at Generator.next ()
at index.svelte-2cde6fd6.js:1
at new Promise ()
at a (index.svelte-2cde6fd6.js:1)
at HTMLFormElement. (index.svelte-2cde6fd6.js:1)
at HTMLFormElement. (vendor-cb0ac300.js:1)

Code: https://github.com/cupcakearmy/cryptgeon/blob/edbf8a8ecfd4652bd5fb092d53926882a93746a4/client/src/lib/crypto.ts#L29

What browser are you using?

Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36
Latest Firefox & Chromium, same effect.

That is interesting...
You need support for subtle but latest chromium & ff versions definitely support it
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto#browser_compatibility
This is happenning in the decrypt phase right? when you want to see a note?

No its happening while trying to encrypt. But the reason for that is the the following.
https://stackoverflow.com/questions/46468104/how-to-use-subtlecrypto-in-chrome-window-crypto-subtle-is-undefined
crypto.subtle is only available in secure (https) context.
Sorry for the inconvenience

Yup, im selfhosting. After enabling ssl everything works perfect.
thank you

I'll add a notice in the readme so it's clear for everyone :)


feat : Add User Profile feature

Fixes #1844
Changes:

[x] Add first name, last name and avatar in User profile layout
[x] Fetch User data using token and identifier
[x] Add layout for updating profile
[x] Add API service to make PATCH request to server for updating user data
[x] Add swipe refresh layout to update info by swiping down
[x] Add changes confirmation on pressing back button
[x] Add option to update Avatar
[x] Add option to change password

@shailesh351 please add a screenshot.

@rohanagarwal94 Currently looks like this. I'll change UI after implementing main logic and feature.

I think it would be better if instead of a nav drawer item as a profile button, the top shelf of the nav drawer where the org logo exists, be changed to the user profile photo and the user gets directed to his profile on click.

@Shailesh351 The profile edit photo would look better if it is circular.

@shreyasnbhat @rohanagarwal94 Now looks like this

Now look like this

Final demo here : https://www.youtube.com/watch?v=OHIoE9ExdiU
@iamareebjamal @shreyasnbhat @the-dagger @mananwason Please review

looks good 👍


Update time scale range only for visible datasets

This brings its behaviour in line with the other scale types.

Coverage decreased (-1.0%) to 70.203% when pulling 195cace7c215ec90ae29d2a90ac439ba5c2595f8 on Lighnat0r:master into 450a08420ba2e08ec8c6ca4e0f29d58400b2a60b on chartjs:master.

@Lighnat0r we just merged some changes that change how the isDatasetVisible stuff works. Could you update for those changes?

Coverage decreased (-1.0%) to 70.203% when pulling c5c38de5c306049fc9b04a09688adcae3fb1f383 on Lighnat0r:master into 450a08420ba2e08ec8c6ca4e0f29d58400b2a60b on chartjs:master.

Thanks @Lighnat0r

Coverage increased (+0.4%) to 71.618% when pulling 200abc184ba8a9ff1a5ac091e10fd024690392fb on Lighnat0r:master into 450a08420ba2e08ec8c6ca4e0f29d58400b2a60b on chartjs:master.


What about dosage

Dosage doesn't link to a resource, what are the fields that you see on this.
Is https://hl7.org/fhir/R4B/dosage.html#Dosage the reference of what the profile is going to use?
For instance the timing is much broader than what is now supported in kmehr.
@costateixeira @bdc-ehealth

@pablocorilus
For now, there haven't been created any limitations on https://hl7.org/fhir/R4/dosage.html#Dosage (we use R4). I know there is a tendency ( I think of the efforts by Dirk Broeckx) to keep the dosage simple, but I would like to leave this open to the community.

A long time ago we identified the cases for dosage. I think we had them all covered (some of them required some clarification but they were supported).
If this is correct, I would leave the dosage open - i.e. as it is the base spec, leaving for implementers to use it - I expect no extensions needed.

Just to add to this: I recently modelled something in our base API's based on the Dosage structure from FHIR.
Dosage is not a resource, but it's a structure. We just use it as an object in our API's and attach it to the resource that uses it. For now: that means we just take the dosage object, marshal it, and persist it like that.
The same happens for timing: timing is not a resource (you won't persist a discrete timing on its own), but it is a structure. For now we also just marshal and save this.
For the timing: I think most transformations from KMEHR to Timing might be possible, but you can't go from Timing to KMEHR, if that makes sense. There might be some issues with dayperiod, but for periodicity this should work.

Hello,
I'm Jacques. I made my own library on my free time to help me deal with Dosage object : fhir-dosage-utils .
It seems to work quite nicely, with its generic approach it was built on. Feel free to consult the examples I collected.
To answer @JensPenny questions about periodicity and dayperiod points, I had to do that while analyzing FHIR impacts in the VIDIS project (since I would like to have like everyone complete test cases) :
CD-DAYPERIOD
In FHIR, it is going to be mapped under when and offset fields in the Timing object which express the Dosage.

KMEHR code
when
offset
Notes

afterbreakfast
PCM

afterdinner
PCV

afterlunch
PCD

beforebreakfast
ACM

beforedinner
ACV

beforelunch
ACD

betweenbreakfastandlunch
CM
60
Between codes need offset to express the "during" part

betweenlunchanddinner
CD
60
codes need offset to express the "during" part

betweendinnerandsleep
CV
60
codes need offset to express the "during" part

duringbreakfast
CM

duringdinner
CV

duringlunch
CD

morning
MORN

thehourofsleep
HS

aftermeal
PC

betweenmeals
C
60

afternoon
AFT

evening
EVE

night
NIGHT

CD-PERIODICITY
In FHIR, it is going to be mapped under frequency / period and periodUnit fields in the Timing object which express the Dosage.
periodUnit will follow the UnitsOfTime Valueset.

I'd prefer that we don't give the option to add another valueset to the fhir specs, especially for the units of measurements. The mapping will have to happen somewhere, and most of the administrationunits in kmehr are dimensionless non-units. For example: tablet could map to {tablet} or {tbl}.
The reason why you would still have to translate them, is that you need them to be in ucum to do any meaningful calculations with them. If you have a dosage of 1000 ml, and you want to calculate how long this will last with a flow of 100 ml/h, you'll still need to translate the kmehr unit to something you can calculate stuff with. Using ucum makes this process way easier.
The UCUM internalization page mostly looks to be about other (localized) non-si units, but translating the ucum units is indeed not provided out of the box. As far as I know there are 2 approaches to this issue:

You provide translations for the base terms. For all ucum, you split them into terms and translate these, while using 'per' for division.
You provide a base set of commonly used values and translate these. The rest is english. You can find an example in pdf or docx in this repository

I share your opinion : conversions and calculations are quite important to take into account, like showing a proper posology to patients and professionals. I saw that UK recommends this : Use UCUM where available, otherwise SNOMED CT .
So here is my proposal for the units of measurements in Belgian FHIR (which could be improved with everyone feedbacks) :
KMEHR codeUCUM codeSNOMED CTNotes000015.mL00002732978007Ampule00003413568008 Application - unit of product usage00004428641000Capsule00005336624003High compression (extensible) bandage00006408102007Dose00007[drp]00008419672006Bottle00009732996003Implant00010129331004Perfusion00011422237004Inhalation00012257867005Insertion00013732989000Chewing gum00014336624003High compression (extensible) bandage00015337087003Enema syringe00016mL0001773153001Ovum0001834258004"Pearl" doesn't exist like that in SNOMED. So "Spherical shape" is the closest match<PHONE_NUMBER>7008Lozenge00020419702001Patch00021732988008Cartridge00022733006000Pen00023415215001Puff00024429671000Sponge00025733006000Pen00026430293001Suppository00027418530008Tube00028116251003Wick00029428672001Bag00030426148002Sachetcmcmdropsperminute[drp]/min Could be split into two units in fact[drp] for the "drops" partmin for the "perminute" partgmginternationalunits[IU]mck/hug/h Could be split into two units in factug for the "mck" parth for the "h" partmck/kg/minuteug/kg/min Could be split into three units in factug for the "mck" partkg for the "kg" partmin for the "minute" partmeasure767524001Unit of measuremg/hmg/h Could be split into two units in factmg for the "mg" parth for the "h" partml/hml/h Could be split into two units in factml for the "ml" parth for the "h" parttbl{TBL}tsp[tsp_m]unt/h[IU]/h Could be split into two units in fact[IU] for the "unt" parth for the "/h" partmgmgmg/mlmg/mL Could be split into two units in factmg for the "mg" partmL for the "ml" partmeqmeqmium[IU]iu[IU]mmolmmoleffervescent-tablet{TBL} UCUM doesn't have the "effervescent" partmicrogramsugbandage63995005Bandagepiece[IU]As it is quite arbitrary, let's reflect it as is box419694003SprayliterLsyringe733020007Syringeampoule732978007Ampulebottle419672006Bottlesyringe-ampoule465315001Syringe/ampule
As you can see, some units can't be present in UCUM and will be in SNOMED CT. My biggest concern is the interoperability between softwares : I would prefer having the UK guidelines enforced here in Belgium  instead of handling custom curly braces codes unknown to other software vendors that will cause at some point issues.

Link with https://github.com/hl7-be/medication/issues/216 for the comparison between KMEHR and FHIR representation


Rendering of ${['']} in an attribute inconsistent with the spec

According to the specification, attributes containing an array with just an empty string should be rendered with an empty value:

However, when I try the same code on my AEM instance, I get the following output:

I'm using AEM 6.2 and the following bundles:

Apache Sling Scripting Sightly Engineorg.apache.sling.scripting.sightly	1.0.18
Apache Sling Scripting Sightly JavaScript Use Providerorg.apache.sling.scripting.sightly.js.provider	1.0.10	sling
Apache Sling Scripting Sightly Models Use Providerorg.apache.sling.scripting.sightly.models.provider	1.0.0
Adobe Experience Manager Sightly Extensioncom.adobe.cq.sightly.cq-wcm-sightly-extension	1.3.8
Adobe Granite Sightly Template Engine (compatibility)io.sightly.bundle	1.1.72

Is this an error in the specification or is this a bug in my specific version and one of the bundles requires an update?

This seems to be an implementation bug. I will update the HTL TCK with a relevant test, file an issue in SLING and submit a patch.

Thanks @vladbailescu

Hi, is this issue resolved? seems to be not working for me on 6.4.5

@mehtarachna, if you have any implementation issues please use the official support channels for reporting them. For AEM, the instructions are available at https://helpx.adobe.com/experience-manager/kb/accessing-aem-support-portal.html.


ez quickswap

Creating the ez quickswap tables and moving quickswap over to the new dex pipeline

@SebMelendez01 Wanna move the existing quickswap models to the QUICKSWAP WH soon? Or should we deprecate those too

We will depreciate all those models. Wanna let this run for a day on the new pipeline and then will delete all the old models


⚠ Bofrost.de has degraded performance

In 1158891, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 801 ms

Resolved: Bofrost.de performance has improved in 657c5a1 after 6 minutes.


i18n(zh-cn): Update images.mdx

Description (required)
Update images.mdx

Related issues & labels (optional)

#8177

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
guides/images.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


containerssh:0.4.1 image in example only offers ssh-rsa

Which example does this problem concern?

Quick start

Please describe the problem?
I followed the Quick start guide.
But failed at step 3 with no matching host key type found. Their offer: ssh-rsa
$ ssh foo@localhost -p 2222
Unable to negotiate with <IP_ADDRESS> port 2222: no matching host key type found. Their offer: ssh-rsa

Based on the log, ContainerSSH server only supports ssh-rsa, which is deprecated.
Log
Screenshot:

In text:
quick-start-containerssh-1  | {"timestamp":"2022-06-13T08:41:38Z","level":"debug","code":"SSH_CONNECTED","message":"Client connected","details":{"connectionId":"9d3e38c7182d4efb9f21b00db2ad88e7","module":"ssh","remoteAddr":"<IP_ADDRESS>"}}
quick-start-containerssh-1  | {"timestamp":"2022-06-13T08:41:38Z","level":"info","code":"SSH_HANDSHAKE_FAILED","message":"SSH handshake failed (ssh: no common algorithm for host key; client offered<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>ssh-ed25519 ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521<EMAIL_ADDRESS><EMAIL_ADDRESS>rsa-sha2-512 rsa-sha2-256], server offered: [ssh-rsa])","details":{"connectionId":"9d3e38c7182d4efb9f21b00db2ad88e7","module":"ssh","remoteAddr":"<IP_ADDRESS>"}}
quick-start-containerssh-1  | {"timestamp":"2022-06-13T08:41:38Z","level":"debug","code":"SSH_DISCONNECTED","message":"Client disconnected","details":{"connectionId":"9d3e38c7182d4efb9f21b00db2ad88e7","module":"ssh","remoteAddr":"<IP_ADDRESS>"}}

any update on when this could be fixed? @tsipinakis

@paseaf @Weetile You can use any other type of key the same way as rsa. The quick start example is meant to be just that - a quick and easy way to test ContainerSSH. Most importantly, the RSA host key used in the quickstart is on the repository and meant to be only used for testing, for other uses you are expected to generate your own keys.
As an example and to avoid further confusion I have now removed the RSA key in the repo and replaced it with a generate_keys.sh script which will generate RSA, ED25519 and ECDSA keys and pass them to ContainerSSH.
I consider this issue resolved, let me know if you need further guidance.


Correct namespace for tests

GitHub Issue: https://github.com/Islandora/documentation/issues/1224
** DO NOT MERGE FIRST **
The sequence for the related PRs is

this PR
update Crayfish PR to direct to dev-symfony-flex branch
Merge https://github.com/Islandora/Crayfish/pull/102
Merge https://github.com/Islandora-Devops/ansible-role-crayfish/pull/34
cut a new version of Crayfish role, update islandora-playbook PR
Merge https://github.com/Islandora-Devops/islandora-playbook/pull/175

What does this Pull Request do?
This really does nothing other than update the symfony version and composer packages, fix the tests namespaces for autoload and a change in how a ClientException is constructed.
How should this be tested?
This is used as part of above PRs, if that passes then this could be merged.
Interested parties
@Islandora/8-x-committers

@rosiel yes, if there is still a desire to transition from Flex to Symfony.

@whikloj i can give a shot at testing this - would this be the first PR in the sequence?

To test this I did the following:

spun up a playbook
in composer.json at the islandora root, aliased this branch as dev-dev and ran composer update
ran the tests in crayfish-commons
verified no composer dependency issues
verified an object could be saved to fedora
I think that is sufficient.
Any complaints?


Update php.ini include paths

Committed slightly modified, we don't want /usr/local/share to override our own files 6655ee9
Thanks!


Add SafeHaven-5 Linux resize KB

Thank you @grrtrr for the detailed review comments. I've addressed all of them.

@gsanchezu if you could merge this, it would be appreciated.


Support for creating a structure in structure directly

field_20 in struct_a is surely a pointer for another structure or class. Support for clicking on field_20 and creating a structure by pressing S would be useful feature.

I think @xusheng6 might have a feature branch that adds this, but I'm not sure.

My current branch does not have this and I am about to merge it. Maybe I will add this feature later!

I have unassigned myself on this because I am not working on this recently.


readonly in c#?

thanks! :)
edit: oh I guess we have to add keywords ourselves somehow

I have not yet added keywords for cSharp.  I still need a list of keywords and common library methods.

This should now be fixed with 0.15.0.  Please update the extension.


Refactor/admin 311 anagkazo banking by constituencies

Description

This PR does two things:

It provides a list of constituencies that have not been confirmed as banked (Anagkazo Stream)
It allows the confirmer to confirm an entire constituency and mark all it's fellowships as banked when confirmed.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?
This has been tested on my localhost and proved to be working

Screenshots/Videos (if appropriate):
https://drive.google.com/file/d/1VVXVIP77vCCebXflnUISLPAAJJOUtVn2/view?usp=sharing (video is too large for github)

LOL chief. You couldn't compress the video a bit? The G Drive also wants me to download.

@ahadziii Do you know how to commit directly to this branch without forking? That's why I was calling you

@ahadziii Do you know how to commit directly to this branch without forking? That's why I was calling you

let me try

Ah @ahadziii why are you also pushing merge commits

When I pushed the code there were conflicts. Which I resolved on GitHub but it still brought this up


Cherry pick #7293 to 22.12 [skip ci]

cherry-pick #7293
to support run test from source build
Signed-off-by: Alex Zhang<EMAIL_ADDRESS>Signed-off-by: Alex Zhang<EMAIL_ADDRESS>Co-authored-by: Alex Zhang<EMAIL_ADDRESS>

build


Remove the default dependency on the OpenFAST Registry

Complete this sentence
THIS PULL REQUEST IS READY TO MERGE
Feature or improvement description
This pull request removes the default dependency of the OpenFAST Registry on any module with registry-generated types files. Instead, the OpenFAST Registry is enabled via a CMake flag, GENERATE_TYPES. When this flag is enabled, the openfast-registry target is added as a dependency to any other relevant targets and an additional command is added to the build step to execute the registry. Though the OpenFAST registry will be executed for any modules that use it, only the types-files that have changed are recompiled and show different in version control.
The types files for each module as they are in the openfast/dev branch are also added into version control in this pull request.
Related issue, if one exists
https://github.com/OpenFAST/openfast/issues/303
Impacted areas of the software
CMake configuration and documentation
Additional supporting information
None
Test results, if applicable
Not applicable to tests. A live version of the documentation is available at https://raf-openfast.readthedocs.io/en/feature-registry_rework/source/dev/types_files.html

As an added bonus, this fixes a problem in building with Visual Studio where the autogenerated files aren't recognized by the build system in the same step as when they are generated.

@ebranlard @andrew-platt I fixed a problem you may have noticed where the C++ API wasn't building correctly. And I turned on the GENERATE_TYPES flag in one of the Travis CI cases.

Could you also modify the vs-build project files to point to the new locations for the _Types.f90 files? They are still pointing to the .\build\types-files\ directory.

@bjonkman is that the only change that needs to happen for the vs-buid project? I see these lines in the projects for the drivers:
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FAST_Registry", "..\Registry\FAST_Registry.vcxproj", "{DA16A3A6-3297-4628-9E46-C6FA0E3C4D16}"
EndProject

Do those also need to be removed?

@rafmudaf, that line in the drivers allows the driver codes to build types files if the registry files change, so I wouldn't remove it from the solution files.
This is what I think needs to be changed:

I don't think I've ever used the vs-build\FAST-Types project file. Unless someone else has a need for it, I would remove everything in that directory.
The RunRegistry.bat file should have the Output_Loc environment variable changed for each module that generates files. You might be able to just put SET Output_Loc=%CURR_LOC% after each module sets CURR_LOC.
I would remove all of these sections that I noticed in the .vfproj files: AdditionalIncludeDirectories="..\..\build\types-files;..\..\OpenFAST\modules\nwtc-library\src". The source directories are included by default, so there's no need to specify them. (And if people don't name their directory OpenFAST, it probably won't work anyway.)
You'll have to replace all of the file names that contain \build\types-files\ with the new appropriate locations.

@andrew-platt I've updated the documentation for this to add some guidance on working with modified or new registry input files: https://raf-openfast.readthedocs.io/en/feature-registry_rework/source/dev/types_files.html.
What do you think?

@rafmudaf The documentation is pretty clear in my opinion.  That should help any developer wanting to modify or update modules.  I'm guessing we will have some questions that come up when this PR is merged.

@bjonkman I've made the changes to the vs-build project, but unfortunately this did not solve the problem where Visual Studio doesnt recognize the new types files. I guess the way to do that is to have a switch or otherwise turn off running running the registry in Visual Studio.
Also, this was a good find: asdf

@bjonkman could you please double check what I've done?

The CMake-generated Visual Studio solution will get around the problem where VS doesnt recognize the new types files because they wont be new. I mentioned this above because I was hoping that the standalone project would also be fixed since the files are actually there.

@rafmudaf I fixed a few things in the vs-build and made a pull request to your branch.
Unless this was caused by the IceFloe issue I just fixed, I'm not sure what you mean by

this did not solve the problem where Visual Studio doesnt recognize the new types files

As far as I can tell, this works as I expect it to. This change means that on a new checkout of the code, you should not have to hit build, close the solution when it finishes, then reopen the solution file and build again. I didn't check, but if you still have that guidance in the documentation, you can remove it.
However, Visual Studio does still use the time-file-was-last-modified at the time when you hit "build" to determine if a *_Types.f90 file should be compiled, so if it calls the Registry to regenerate a file, it will need to be built a second time to take those changes into account (it doesn't seem to realize that the timestamp on the Types files change during the build process). That said, if you "build" instead of "rebuild" or "clean" a solution, the Registry will almost never run. "rebuild" and "clean" will delete all of the registry-generated files.
Interesting find on "asfasdf". 👍

Thanks Bonnie. I think what I was seeing was indeed due to the bug you fixed for icefloe. I've also removed the bit about closing and reopening the Solution in the docs.


Blocking calls

Do not use to report bugs!
Is your feature request related to a problem? Please describe.
Non blocking calls are great. But for my use case, I actually need it to be blocking.
Describe the solution you'd like
Along with MB.addRequest, it would be great to have something like MB.addRequestSync.
Or maybe, another call like response = MB.waitResponse()
Describe alternatives you've considered
I tried storing data in a global and then keep checking if the data is there or not. But, this is too dirty.
Additional context
I'm not sure if this is a feature request or a question though. Maybe I'm just missing something.
I also wanted to say thanks to the devs. This is an actually good modbus library that can practically be used.

Please see the docs - there are syncRequest() calls since long that probably will do what you desire. 😉

I did go over the documentation but I have no idea how I missed it.
Anyway, perfect answer. Thanks.

👍🏻 👋🏻


TF Lite LSH Projection returns different results on Big Endian and Little Endian Machines

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): N
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 2.3.1
Python version: 3.8.5
Bazel version (if compiling from source): 3.1.0
GCC/Compiler version (if compiling from source): gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the current behavior
The LSH Projection defined in tensorflow/lite/kernels/lsh_projection.cc has different outputs on Big Endian and Little Endian machines for the same input. The issue is caused by the fact that the input array is flattened into a string in this line. When the elements in the array are more than 1 byte long, the same array will be represented differently in bytes for LE and BE, and that will cause the string it converts to - key here - be different. Thus the Fingerprint64() will return differently for LE and BE.
Describe the expected behavior
Since Fingerprint64 function returns the same results for the same input string across all platforms, I am actually not sure whether we are expecting the results of lsh_projection to be consistent across all platforms as well. In other words, I wonder when the lsh_projection op is called, are we expecting to see a specific output for a specific input, or it will be okay as long as different inputs have different outputs.
If it is the former one, I have a patch ready that could make Big Endian machine flatten the array into the same string as Little Endian ones, and the output will be the same on both platforms with the same input array.
If it is the latter one, then we could keep the way it is then.
Standalone code to reproduce the issue
The following test case will fail on Big Endian machine:
bazel --host_javabase="@local_jdk//:jdk" --cache_test_results=no --test_timeout 300,900,1200,3600 --build_tests_only --test_output=errors -- //tensorflow/lite/kernels:lsh_projection_test

Other info / logs

Thanks for raising the issue and for suggesting a potential solution via your PR. The requirement of returning the exact same hash regardless of the endianness of the machine is not necessary. Therefore, I would suggest creating a fix for the test. If you are willing, please create the PR fixing lsh_projection_test.cc and assign to me. Thank you!

Thanks for the feedback, I will push the fix for the test case to merge with my PR that fixes other issues on TF Lite.

Closed the issue as the PR has been merged.


#feature request# DeepSeek-Moe for code

Thank you for your excellent work.
DeepSeek-MoE and DeepSeek-Coder are impressive.
Will you combine DeepSeed Coder with MoE architure?
This would bring significant performance improvement.

Thank you for your excellent work. DeepSeek-MoE and DeepSeek-Coder are impressive.
Will you combine DeepSeed Coder with MoE architure? This would bring significant performance improvement.

Our next coder model will based on MoE.


Add input to specify windows architecture target to build vulkan-1.lib

Hello,
I know it's probably a minor set of the users but I needed to make sure that my project using  Vulkan would also compile for Win32. This didn't seem to be covered by your action as I understood everything was set to x64 by default; I hope I didn't miss anything. If you think it's too specific, feel free to leave it pending. At least, I wanted to share my solution for the few people that might be interested.
I added an optional input to be able to select x64 or Win32 with a description mentioning that this is relevant for windows only. Then, there is a catch: vsdevenv can be set with x86 but not Win32, so I added a step in the action to translate the arch to x86 in the only case that user want to set up vulkan for Win32.
The windows test for powershell was replaced with a test including the arch.
P.S. I am sorry, the intermediate tests were a bit messy and I didn't know about action-tmate until 10min ago...

(half a year later... apologies for delay reviewing!)
This is really great! In the back of my mind I remember wanting to keep the x64 specifier near to the surface -- so that one day x86 support could be revisited. I am very glad you were able to figure out a working recipe and get it working.
For now I will plan on leaving this PR open as a reference and hope to find more time coming up to look into the best way to integrate/merge the enhanced feature into mainline. Thanks!


Add onnx.LSTM operator test

Note that this is very basic and does not test some of the optional inputs / attributes of onnx.LSTM

Also note that it only runs with --torchtolinalg


README - Product Hunt link badge is broken and listing is marked for removal

Expected Behavior
README.md icon for Product Hunt link should have expected badge/icon.
When Product Hunt link to Teller is clicked,
one should not get warning/error page that Product Hunt listing is marked for removal.
Current Behavior
Broken badge on Product Hunt link and not getting straight to Teller's Product Hunt page without error message on their side.

Steps to Reproduce

Look at https://github.com/tellerops/teller#readme - icon for Product Hunt is loaded broken
Click Product Hunt link - you get warning that listing is marked for removal instead of real listing

Notes
It is small cosmetic issue, but we should be aiming for perfection.
Target page error message below:

taken care of with teller 2.0 readme.


Model with nested input spec fails

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.5.0
Python version: 3.9

Describe the current behavior
The logic  to test if a structure is nested is wrong. Example of failing case: {"a": {"b": 1}}
Contributing

Do you want to contribute a PR? (yes/no): yes
Briefly describe your candidate solution(if contributing):
Change this line from:

if (isinstance(self._nested_inputs, (dict, list, tuple)) and
        len(self._nested_inputs) != len(self.inputs)):

to:
if max([len(path) for path in nest.yield_flat_paths(
        self._nested_inputs)]) > 1:

Standalone code to reproduce the issue
import tensorflow as tf
import numpy as np

input_tensor_shape = [16]
random_tensor = np.random.random([1]+input_tensor_shape)

def sequential():
  layers = [tf.keras.layers.InputLayer(input_shape=input_tensor_shape),
            tf.keras.layers.Dense(8)]
  return tf.keras.Sequential(layers=layers)

network = sequential()
network2 = sequential()

nested_input = {'input': {'sub_input1': network.input,
                          'sub_input2': network2.input}}

model = tf.keras.Model(inputs=nested_input, outputs=network.output)

input = {'input': {'sub_input1': random_tensor,
                   'sub_input2': random_tensor}}
# Works
model(input)

fail_nested_input = {'input': {'sub_input': network.input}}
fail_model = tf.keras.Model(inputs=fail_nested_input, outputs=network.output)

input = {'input': {'sub_input': random_tensor}}
# Fails
fail_model(input)

@nicolaspi ,
Please post this issue on keras-team/keras repo.
To know more refer to:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999

@tilakrayal  ,
Done

@nicolaspi ,
Please feel free to move this to closed status as this issue has been tracked in keras repo.Thanks!


app.renderLine doesn't work on my 2nd app

My use case (switching from a DOM based out-game to a PlayCanvas in-game) requires the creation and destruction of app objects as part of its natural lifecycle.
One problem I ran into is that it seems that app.renderLine(...) only works on the very first app. Once I destroy that app, then create a new one, I can no longer render lines on that second app. My guess is it has something to do with the global state that _addLines depends on, but I'm not 100% sure.
Does anyone have any advice? Is this indeed a PlayCanvas bug?

Hmm, yes, I had just noticed there is some global state used by renderLines. I'm currently updating it to work with the new Layer interface and I've removed the global state as part of that change. Release for Layers is targeted in the next few weeks, but it's a pretty big change.

Related: #1086


[Web][Engine]: AssertionError when execute Tests with ListView on Headful Chrome

Steps to Reproduce

Execute flutter run test.dart -d chrome on the code sample
Following conditions must be fulfilled, all considered in the tests below:

Widget (stateful or via ValueListener) must be updated asynchronously (e.g. with a delay)
Must render a ListView (or other BoxScrollView with SliverChildListDelegate), Column works fine
List items must be reduced from test to test (increasing or equal number works fine)
Must be executed in Web (e.g. Chrome)
Must be executed Headful (a headless test is successfull)

In order to be able to debug headful tests in Chrome I added the method resetDebugOptions and executed the file as a flutter app. Otherwise the test environment complains, that the debug values changed, I think by flutter. Here's the .run file for IntelliJ:
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="ListView Test" type="FlutterRunConfigurationType" factoryName="Flutter">
    <option name="additionalArgs" value="--purge-persistent-cache" />
    <option name="filePath" value="$PROJECT_DIR$/test/test.dart" />
    <method v="2" />
  </configuration>
</component>

Expected results:
Test should be successful
Actual results:
Test failed:
The following assertion was thrown during a scheduler callback:
Assertion failed: "Parent #9 has child #7. However, the child is attached to #8."

See Flutter Engine: https://github.com/flutter/engine/blob/802332a525246a031da14e59bb87394707d1bd95/lib/web_ui/lib/src/engine/semantics/semantics.dart#L1621-L1623
My guess is, that ListItems are not deleted properly between tests or some how cached by CanvasKit / Skia. Or more likely the test is interrupted and because of the async rendering, the items are stored in the wrong internal rendering list of web, and therefore not deleted on the widget.dispose() method.

Code sample
/// test.dart

import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';

// Set overall count of tests, equals item count of first test
// Can be also set to higher value, in order to execute tests with more items.
const maxTests = 2;

void main() {
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();

  group('test-async-listview', () {
    for (var testCount = maxTests; testCount > 0; testCount--) {
      testWidgets('Display $testCount items', (WidgetTester tester) async {
        await tester.pumpWidget(MaterialApp(home: TestScreen(testCount)));
        await tester.pumpAndSettle();

        await waitFor(find.byType(TestScreen), tester);

        for (var i = 0; i < testCount; i++) {
          await waitFor(find.text('item$i'), tester);
          print('\x1B[35m Found item$i in test $testCount \x1B[0m');
        }
        // Can be commented to execute in full speed:
        await tester.pump(const Duration(milliseconds: 2000));

        resetDebugOptions();
      });
    }
  });
}

class TestScreen extends StatefulWidget {
  final int testCount;

  const TestScreen(this.testCount, {Key? key}) : super(key: key);

  @override
  State<TestScreen> createState() => _TestScreenState();
}

class _TestScreenState extends State<TestScreen> {
  bool isLoading = true;

  List<String> getItems() {
    final data = <String>[];
    for (var i = 0; i < widget.testCount; i++) {
      data.add('item$i');
    }
    return data;
  }

  @override
  void initState() {
    Future.delayed(const Duration(microseconds: 1)).then((value) {
      if (mounted) {
        setState(() {
          isLoading = false;
        });
      }
    });
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    print('\x1B[37m Build new state in test ${widget.testCount} \x1B[0m');

    final data = getItems();

    return Scaffold(
      appBar: AppBar(
        title: const Text('TestScreen'),
      ),
      body: isLoading
          ? const CircularProgressIndicator()
          : ListView.builder(
              itemCount: data.length,
              itemBuilder: (context, index) {
                return Text(data[index]);
              },
            ),
          /// Uncomment to test with column, which works fine
          // : Column(children: data.map((e) => Text(e)).toList()),
    );
  }
}

Future<void> waitFor(Finder finder, WidgetTester tester) => waitUntil(
      () async {
    try {
      await tester.pumpAndSettle();
      expect(finder, findsOneWidget);
      return true;
    } on TestFailure {
      return false;
    }
  },
);

/// Waits until the [condition] returns true
/// Will raise a complete with a [TimeoutException] if the
/// condition does not return true with the timeout period.
/// Copied from: https://github.com/jonsamwell/flutter_gherkin/blob/02a4af91d7a2512e0a4540b9b1ab13e36d5c6f37/lib/src/flutter/utils/driver_utils.dart#L86
Future<void> waitUntil(
  Future<bool> Function() condition, {
  Duration? timeout = const Duration(seconds: 15),
  Duration? pollInterval = const Duration(milliseconds: 500),
}) async {
  return Future.microtask(
    () async {
      final completer = Completer<void>();
      var maxAttempts = (timeout!.inMilliseconds / pollInterval!.inMilliseconds).round();
      var attempts = 0;

      while (attempts < maxAttempts) {
        final result = await condition();
        if (result) {
          completer.complete();
          break;
        } else {
          await Future.delayed(pollInterval);
        }
      }
    },
  ).timeout(
    timeout!,
  );
}

resetDebugOptions() {
  debugPrint = debugPrintSynchronously;
  debugDefaultTargetPlatformOverride = null;
  debugDoublePrecision = null;
  debugBrightnessOverride = null;
}

Logs
Launching test\test2.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
This app is linked to the debug service: ws://<IP_ADDRESS>:55021/sP9LJ77_YbM=/ws
Debug service listening on ws://<IP_ADDRESS>:55021/sP9LJ77_YbM=/ws

 Running with sound null safety
Debug service listening on ws://<IP_ADDRESS>:55021/sP9LJ77_YbM=/ws
00:00 +0: test-async-listview Display 2 items
 Build new state in test 2
 Build new state in test 2
 Found item0 in test 2
 Found item1 in test 2
00:04 +1: test-async-listview Display 1 items
00:04 +1: test-async-listview Display 2 items
 Build new state in test 1
 Build new state in test 1
00:05 +1: test-async-listview Display 1 items
 Found item0 in test 1
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
Assertion failed: "Parent #9 has child #7. However, the child is attached to #8."

When the exception was thrown, this was the stack:
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49  throw_
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/semantics/semantics.dart 1601:15           <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/linked_hash_map.dart 21:13      forEach
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/semantics/semantics.dart 1585:22           <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/semantics/semantics.dart 1615:14           updateSemantics
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 630:35            updateSemantics
packages/flutter_test/src/window.dart 394:24                                                                               updateSemantics
packages/flutter/src/semantics/semantics.dart 3056:22                                                                      sendSemanticsUpdate
packages/flutter/src/rendering/object.dart 1098:7                                                                          flushSemantics
packages/flutter/src/rendering/binding.dart 502:21                                                                         drawFrame
packages/flutter/src/widgets/binding.dart 883:13                                                                           drawFrame
packages/flutter/src/rendering/binding.dart 363:5                                                                          [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1144:15                                                                        [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1081:9                                                                         handleDrawFrame
packages/flutter_test/src/binding.dart 1458:30                                                                             handleDrawFrame
packages/flutter/src/scheduler/binding.dart 995:5                                                                          [_handleDrawFrame]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 1060:13           invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 160:5             invokeOnDrawFrame
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/initialization.dart 128:45                 <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1442:13                                          _rootRunUnary
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1335:19                                          runUnary
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1244:7                                           runUnaryGuarded
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1281:26                                          <fn>
════════════════════════════════════════════════════════════════════════════════════════════════════
00:08 +1: test-async-listview Display 1 items [E]
  Test failed. See exception logs above.
  The test description was: Display 1 items

00:08 +1 -1: (tearDownAll)
00:08 +2 -1: Some tests failed.

[√] Flutter (Channel master, 2.10.0-1.0.pre.359, on Microsoft Windows [Version 10.0.22000.466], locale
    en-US)
    • Flutter version 2.10.0-1.0.pre.359 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d010a85476 (3 hours ago), 2022-02-01 14:55:07 -0500
    • Engine revision b0e6fe8e80
    • Dart version 2.17.0 (build 2.17.0-69.0.dev)
    • DevTools version 2.10.0-dev.1

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\src\android\Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Java\jdk-15.0.2\bin\java
    • Java version OpenJDK Runtime Environment (build 15.0.2+7-27)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.8)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32002.261
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed
      instructions).

[√] IntelliJ IDEA Ultimate Edition (version 2021.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.2
    • Flutter plugin version 63.2.4
    • Dart plugin version 213.5744.122

[√] VS Code (version 1.56.2)
    • VS Code at C:\Users\Gustl\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.466]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 97.0.4692.99
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 96.0.1054.34

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Verified this behavior on latest stable and master using both renderers and behavior is same, ie, below failure occurs:

 console error log

dhs@Dhss-MacBook-Pro int_test_sample % flutter run integration_test/app_test.dart -d chrome
Running "flutter pub get" in int_test_sample...                     5.5s
Launching integration_test/app_test.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             18.8s
This app is linked to the debug service: ws://<IP_ADDRESS>:52160/iiVsT7Geots=/ws
Debug service listening on ws://<IP_ADDRESS>:52160/iiVsT7Geots=/ws

💪 Running with sound null safety 💪

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

An Observatory debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:52160/iiVsT7Geots=
00:00 +0: test-async-listview Display 2 items
 Build new state in test 2
The Flutter DevTools debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:9100?uri=http://<IP_ADDRESS>:52160/iiVsT7Geots=
 Build new state in test 2
 Found item0 in test 2
 Found item1 in test 2
00:03 +1: test-async-listview Display 1 items
00:03 +1: test-async-listview Display 2 items
 Build new state in test 1
 Build new state in test 1
00:03 +1: test-async-listview Display 1 items
 Found item0 in test 1
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
Assertion failed: "Parent #9 has child #7. However, the child is attached to #8."

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49  throw_
lib/_engine/engine/semantics/semantics.dart 1601:15                           <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/linked_hash_map.dart 21:13      forEach
lib/_engine/engine/semantics/semantics.dart 1585:22                           <fn>
lib/_engine/engine/semantics/semantics.dart 1615:14                           updateSemantics
lib/_engine/engine/platform_dispatcher.dart 623:35                            updateSemantics
packages/flutter_test/src/window.dart 380:24                                  updateSemantics
packages/flutter/src/semantics/semantics.dart 3056:22                         sendSemanticsUpdate
packages/flutter/src/rendering/object.dart 1076:7                             flushSemantics
packages/flutter/src/rendering/binding.dart 502:21                            drawFrame
packages/flutter/src/widgets/binding.dart 883:13                              drawFrame
packages/flutter/src/rendering/binding.dart 363:5                             [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1145:15                           [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1082:9                            handleDrawFrame
packages/flutter_test/src/binding.dart 1450:30                                handleDrawFrame
packages/flutter/src/scheduler/binding.dart 996:5                             [_handleDrawFrame]
lib/_engine/engine/platform_dispatcher.dart 1005:13                           invoke
lib/_engine/engine/platform_dispatcher.dart 159:5                             invokeOnDrawFrame
lib/_engine/engine.dart 455:45                                                <fn>
dart-sdk/lib/async/zone.dart 1444:13                                          _rootRunUnary
dart-sdk/lib/async/zone.dart 1335:19                                          runUnary
dart-sdk/lib/async/zone.dart 1244:7                                           runUnaryGuarded
dart-sdk/lib/async/zone.dart 1281:26                                          <fn>
════════════════════════════════════════════════════════════════════════════════════════════════════
00:10 +1: test-async-listview Display 1 items [E]
  Test failed. See exception logs above.
  The test description was: Display 1 items

Consider enabling the flag chain-stack-traces to receive more detailed exceptions.
For example, 'dart test --chain-stack-traces'.
00:10 +1 -1: (tearDownAll)
00:10 +2 -1: Some tests failed.

 stable master flutter doctor -v

[✓] Flutter (Channel master, 2.10.0-1.0.pre.369, on Mac OS X 10.15.4 19E2269 darwin-x64, locale en-GB)
    • Flutter version 2.10.0-1.0.pre.369 at /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9bdf809e53 (4 hours ago), 2022-02-01 22:25:19 -0500
    • Engine revision f22420acf7
    • Dart version 2.17.0 (build 2.17.0-69.0.dev)
    • DevTools version 2.10.0-dev.1

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (4 available)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 • ios            • iOS 14.4.1
      18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    • darwin-x64     • Mac OS X
      10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   • web-javascript • Google Chrome
      97.0.4692.99

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[✓] Flutter (Channel stable, 2.8.1, on Mac OS X 10.15.4 19E2269 darwin-x64, locale en-GB)
[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    ! Flutter recommends a minimum Xcode version of 13.0.0.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[✓] VS Code (version 1.62.0)
[✓] Connected device (4 available)

! Doctor found issues in 1 category.

As a workaround, you should be able to pass semanticsEnabled: false to testWidgets. This will turn off engine-side semantics tree.
The issue is probably because the framework resets the semantics node ID counter, which the engine interprets are some sort of state corruption.

Hi @yjbanov the workaround works fine. Unfortunately we use a framework (flutter_gherkin) which doens't provide this option, but in the mean time, I'll make a custom fork or send a PR to add the option.
I found a second scenario, which seems quite complicated and doesn't involve ListView.
Conditions:

Test 0:

Display a Card with nested Column asynchroniously after some time (here: error_card)
At the same time display a AlertDialog via WidgetsBinding.instance!.addPostFrameCallback
Then Dismiss the dialog

Test 2+:

No AlertDialog needed
One of the consecutive tests must display a Card with Column with at least two RadioListTiles

Maybe one can shrink down the size of the second test, but for me all these things were needed to fail the test.

Code sample 2
/// test2.dart
import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
// Set max item count of last test, equals count of tests - 1
// Can be also set to higher value, in order to execute tests with more items.
// For this test, at least two elements must be in the list
const maxItems = 2;

void main() {
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();

  group('test-async-column', () {
    for (var testCount = 0; testCount <= maxItems; testCount++) { // Can also skip test with one item only by testCount+=2
      runTest(testCount);
    }
  });
}

void runTest(int testCount) {
  testWidgets('Display $testCount items', (WidgetTester tester) async {
    await tester.pumpWidget(MaterialApp(home: TestScreen(testCount)));
    await tester.pumpAndSettle();

    await waitFor(find.byType(TestScreen), tester);

    if(testCount == 0) {
      // When no items, display an error widget
      await waitFor(find.byKey(const Key('dialog')), tester);
      await tester.tap(find.byKey(const Key('dialog_dismiss_button')));
      await waitFor(find.byKey(const Key('error_card')), tester);
    } else {
      for (var i = 0; i < testCount; i++) {
        await waitFor(find.text('item$i'), tester);
        print('\x1B[35m Found item$i in test $testCount \x1B[0m');
      }
    }
    // Can be commented to execute in full speed:
    await tester.pump(const Duration(milliseconds: 2000));

    resetDebugOptions();
  },
      // semanticsEnabled: false,
  );
}

class TestScreen extends StatefulWidget {
  final int testCount;

  const TestScreen(this.testCount, {Key? key}) : super(key: key);

  @override
  State<TestScreen> createState() => _TestScreenState();
}

class _TestScreenState extends State<TestScreen> {
  bool isLoading = true;

  List<String> getItems() {
    final data = <String>[];
    for (var i = 0; i < widget.testCount; i++) {
      data.add('item$i');
    }
    return data;
  }

  @override
  void initState() {
    Future.delayed(const Duration(milliseconds: 1)).then((value) {
      if (mounted) {
        setState(() {
          isLoading = false;
        });
      }

      if (widget.testCount == 0) {
        // Dialog must be called via addPostFrameCallback
        WidgetsBinding.instance!.addPostFrameCallback(
          (_) {
            showDialog<bool>(
                builder: (context) {
                  return AlertDialog(
                    key: const Key('dialog'),
                    content: const Text('My dialog'),
                    actions: [
                      TextButton(
                        key: const Key('dialog_dismiss_button'),
                        onPressed: () async {
                          Navigator.of(context, rootNavigator: true).pop();
                        },
                        child: const Text('Cancel'),
                      ),
                    ],
                  );
                },
                context: context);
          },
        );
      }
    });
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    print('\x1B[37m Build new state in test ${widget.testCount} \x1B[0m');

    final data = getItems();

    return Scaffold(
      appBar: AppBar(
        title: const Text('TestScreen'),
      ),
      body: isLoading
          ? const CircularProgressIndicator()
          : data.isEmpty
              ? Card(
                  key: const Key('error_card'),
                  child: Column(children: [
                  TextButton(
                    child: const Text('no item'),
                    onPressed: () {},
                  )
                ]))
              : Column(
                  children: data
                      .asMap()
                      .entries
                      .map(
                        (entry) => Card(
                          child: RadioListTile<int>(
                            onChanged: (v) => {},
          value: entry.key,
          groupValue: 0,
          title: Text(entry.value),
        ),
      ),).toList()),
    );
  }
}

Future<void> waitFor(Finder finder, WidgetTester tester) => waitUntil(
      () async {
    try {
      await tester.pumpAndSettle();
      expect(finder, findsOneWidget);
      return true;
    } on TestFailure {
      return false;
    }
  },
);

/// Waits until the [condition] returns true
/// Will raise a complete with a [TimeoutException] if the
/// condition does not return true with the timeout period.
/// Copied from: https://github.com/jonsamwell/flutter_gherkin/blob/02a4af91d7a2512e0a4540b9b1ab13e36d5c6f37/lib/src/flutter/utils/driver_utils.dart#L86
Future<void> waitUntil(
    Future<bool> Function() condition, {
      Duration? timeout = const Duration(seconds: 15),
      Duration? pollInterval = const Duration(milliseconds: 500),
    }) async {
  return Future.microtask(
        () async {
      final completer = Completer<void>();
      var maxAttempts = (timeout!.inMilliseconds / pollInterval!.inMilliseconds).round();
      var attempts = 0;

      while (attempts < maxAttempts) {
        final result = await condition();
        if (result) {
          completer.complete();
          break;
        } else {
          await Future.delayed(pollInterval);
        }
      }
    },
  ).timeout(
    timeout!,
  );
}

resetDebugOptions() {
  debugPrint = debugPrintSynchronously;
  debugDefaultTargetPlatformOverride = null;
  debugDoublePrecision = null;
  debugBrightnessOverride = null;
}

I'm hitting this issue too. Unfortunately this happens in a complex scenario and I probably won't manage to create a small repro. I'll investigate though

I'm too, my solution is to wrap the ExcludeSemantics widget
await tester.pumpWidget(   ExcludeSemantics(     child: app.MyApp(),   ), );


Add flag for max number of idle connections

This additional flag allows for specifying the maximum number of idle
connections per target host, with a default of 10,000.
If I missed anything, just give me a heads up :D
Closes #28

Codecov Report

Merging #48 into master will decrease coverage by 0.03%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
- Coverage   77.78%   77.75%   -0.02%
==========================================
  Files           8        8
  Lines         369      373       +4
==========================================
+ Hits          287      290       +3
- Misses         63       64       +1
  Partials       19       19

Impacted Files
Coverage Δ

attacker/attacker.go
69.24% <66.67%> (-0.21%)
:arrow_down:

main.go
79.42% <100.00%> (+0.21%)
:arrow_up:

Continue to review full report at Codecov.

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

@fsmiamoto Hey, thanks for your contribution! Perfect, helped a lot.


Allow install composer/xdebug-handler 3

Type: feature
Breaking change: no
This allows to install composer/xdebug-handler 3 which should be fine since its usage remains the same:
https://github.com/phpmd/phpmd/blob/9e531d61b088339078f7e5cce5390e2beeb8e810/src/bin/phpmd#L29-L32

Please bump this changes into 2.11.2 patch version

Releases are done based on master, so yes this will be in 2.11.2/2.12.0.

Hi folks! How long to wait for this release? The merge of this code was 2 months ago

8 Ball says: Cannot predict now.
If this is causing issues on your end I would suggest using "dev-master" as the version in composer to get it now rather then later.