Connection lost on heavy load

Hello im playing around with a load testing tool, and trying to crash my application that is using this driver... i test 10k connection attempts with a vareyety of conncurent connections...while handeling 50-100 concurrent connections (based on the arangodb dashboard) without a problem, starting with < 100 concurrent connections is starting to raise  "Error 54,  in Connection reset by peer exceptions" for round about 20% of my connection attempts comming from the HttpClient of the driver... first i thought its a arangodb problem but based on my research arangodb should be able to handle 10k conccurent connections... (if no keep-alive header is send) is there something like a max concurrent connection thing in the driver and if so how to ajust it?

what version of arangodb are you using?
I am suddenly seeing something similar on arangodb3-3.1.3

using 3.1.3

Hi @chrisWhyTea,
I believe "Connection reset by peer" errors originate from ArangoDB server, which is dropping the connection for some reason. Please have a look at this thread https://github.com/kennethreitz/requests/issues/3189 and try upgrading your requests[security], openssl, and rebuild your virtualenv (if you have one). Also, could you post the stacktrace if you have any? I have a feeling this is a separate problem from bangert's.
@bangert are you sure that you weren't seeing your issue prior to ArangoDB 3.1.3?
Thanks

@joowani not really....  i just upgraded from Fedora 24 to 25, so lots of things changed.
Thanks for your feedback. i'll open a seperate bug once i have something more concrete... sorry for having highjacked this issue.

Ok great thanks @bangert!

Merging https://github.com/joowani/python-arango/issues/32 to this issue.

I am unable to reproduce the issue. Is this still happening with the latest version of ArangoDB?

just for the record: my problem was solved in #29

@bangert That's great! I'm closing this issue for now. Feel free to re-open if it's back (preferably reproducible)

@joowani I am facing the same issue with ArangoDB 3.2
I am creating the data using PySpark and then sending the dataFrames to the import_bulk API of the python-arango Document Class. It works fine when the number of records are < 100K, but my dataset is around 580K in size.
When I use a Stand-alone Python Script, the data size does not matter, but it does not work for my PySpark App.
Please suggest a workaround.

Hi @ysule,
Do you have sample code + data that you could share so I can reproduce this?
Thanks,
Joohwan

@joowani I cannot share the data since it is confidential... I can share the code with you.
3 Vertex Collections, 2 Edge Collections
This code is inserting data to 2 vertex collections but fails for the Third Vertex collection onwards.
spark-arango-app.txt

Thanks for that @ysule. Could you also provide me the full stacktrace? Thanks

@joowani it might take sometime... I'll send it soon

I did some research and I would like you to try the following (if it's not too much work, please test your code after each step so we can narrow down the problem).
Step 1
Try updating your security package by running:
sudo python3 -m pip install "requests[security]"

or if you use python 2:
sudo python -m pip install "requests[security]"

Step 2
Please refer to this page and inject your own custom HTTP client. You don't want to use the example code exactly, but instead enable and dial up the keep-alive following this page. It would look something like this:
# You want something like this in your custom HTTP client
from requests.adapters import HTTPAdapter

class KeepaliveAdapter(HTTPAdapter):
    def init_poolmanager(self, *args, **kwargs):
        kwargs['socket_options'] = HTTPConnection.default_socket_options + [
            (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
        ]
        super(KeepaliveAdapter, self).init_poolmanager(*args, **kwargs)

class MyCustomHTTPClient(BaseHTTPClient):

    def __init__(self, retries=5):
        self._session = Session()
        adapter = KeepaliveAdapter()
        self._session.mount('https://', adapter())
        self._session.mount('http://', adapter())
...

You may also want to tune the keep-alive of your OS (apparently default in Ubuntu is 6 mins):
sysctl -w net.ipv4.tcp_keepalive_time=180

Step 3
Make sure that your connection is not being dropped prematurely. Are you using a proxy or anything like that? How long does the import_bulk run for before it throws the exception? Try measuring the operation.
Step 4 (last resort)
Change your code and run import_bulk multiple times on smaller batches.

@joowani I changed my code and now instead I read from HDFS directly with my Application. The timeout errors were from Apache Phoenix most probably, since Now the errors that I get are as follows
**File "/home/daasuser/yayati/spark_arango.py", line 67, in
load(df,conf)
File "/home/daasuser/yayati/spark_arango_hdfs.py", line 39, in load
db.collection(elem['coll_name']).import_bulk(vertexDF.toPandas().to_dict('records'),on_duplicate="update")
File "/home/daasuser/anaconda2/lib/python2.7/site-packages/arango/api.py", line 22, in wrapped_method
return conn.handle_request(request, handler)
File "/home/daasuser/anaconda2/lib/python2.7/site-packages/arango/connection.py", line 164, in handle_request
return handler(getattr(self, request.method)(request.kwargs))
File "/home/daasuser/anaconda2/lib/python2.7/site-packages/arango/collections/standard.py", line 995, in handler
raise DocumentInsertError(res)
arango.exceptions.DocumentInsertError: [HTTP 413] Payload Too Large

Hi @ysule,
Looks like that error is coming from the ArangoDB server. Have you tried breaking down your input into batches and run import_bulk multiple times?

Hi @ysule,
Were you able to resolve your issue?


FromCode has no data access

Objects.LinkInfoExtensions.cs contains a Community and LinkInfo Object but both are set to private therefore not granting access to the end user

fixed in #49


Exceptions and Error Handling in Python

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #4788

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

@hectorkambow I would like to review this article

@hectorkambow I would like to review this article

Thank you but we have to approve both peer reviewers and test reviewers before you perform any reviews.
👍

Hello @raboba2re. Thank you for submitting your article for review.
Your article is not properly formatted in markdown. Please format your document.
Use the GitHub markdown guide to format your document.
Use our preferred heading size (h3 to h6). Also make sure there are no missing links or images in your article.
Please note:

Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.

I will close this for now. Please open a new pull request once you are done with the revisions.


AppStoreConnect accounts

VS 17.3 P2 includes initial support for Individual AppStoreConnect accounts which are needed for non-Enterprise Apple Developers.

To add an Individual account, open Tools\Options and then select the "Apple Accounts" item located in the Xamarin section. In the "Apple Accounts", click the "Add Account..." button and select "Add Individual Account" and enter the AppStoreConnect API Key information.
Once the account is created, certificates and provisioning profiles can be accessed via the "View Details" button.
Known Issues:

Automatic Provisioning may not work correctly for Individual accounts in some cases. To work around this, follow the instructions for manual provisioning.

This hopefully enables automatic provisioning scenarios across hot restart and publishing.

Related to #609
At the time of writing, the automatic provisioning enabled by an AppStoreConnect API key isn't fully working, preventing deployment to an iOS device using any technique.


[Karate-Gatling] Group function in Gatling doesn't provide group response time in report

I have the following project
karate-with-gatling.zip
I use the Group function which will call two feature files

When I run the sampleSimulation
mvn test-compile gatling:test -Dgatling.simulationClass=performance.data.sampleSimulation

I get the report as below, which doesn't have the response times for the group name

When I run the simple Gatling simulation userSimulation (just to show the difference)
mvn gatling:test -Dgatling.simulationClass=performance.data.userSimulation

I get the report as below which has the response times for the group name

@pcbue is this something you can help with as this looks related to #1467
to @sujin-sam and everyone listening - I don't consider this a priority as it needs some research into gatling and groups etc. we will move this to the project board after some time since there does not seem to be anyone else reporting this

closing this and tracked on project board: https://github.com/intuit/karate/projects/3#card-22529251

Hi, the mentioned card is marked as Done, but I still face the problem above :(

@hannilec follow this process please: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue


feat: change dependency visibility to api for submodules

Description

Solution

#183  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ArtificialPB and the rest of your teammates on  Graphite


Document the wire protocol for settings (composeExtension/querySettingUrl, composeExtension/setting)

The current documentation assumes devs are using the Teams Node.js SDK (v3).

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

ID: 88ff3777-49c4-8cdc-089e-8612a8774ffb
Version Independent ID: 0d927000-0b55-2129-cbbb-6630c1ec481e
Content: Search with messaging extensions - Teams
Content Source: msteams-platform/concepts/messaging-extensions/search-extensions.md
Product: msteams
GitHub Login: @o365devx
Microsoft Alias: o365devx

@laujan is this on your radar? The current pages basically say figure it out from the sample :)
https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/add-configuration-page

Hi @aosolis. I don't have much bandwidth prior to Build, but I will add it to the top of my post-Build backlog. 🙂

The required information is available in the content page - Search with messaging extensions - Teams, "Important" section.

Hence closing the issue.


Link warning building SmartRedis library

Description
Linking the SmartRedis library is currently generating the following warning on MacOS:
ld: warning: -undefined dynamic_lookup may not work with chained fixups

How to reproduce
Run the build and watch the output as it scrolls by
Expected behavior
No warnings should be produced when building the library
System

OS: MacOS
OS version: Ventura 13.2.1
Commit/version of library: 0.4.0

Not seeing this warning any more -- might be GNU specific though, my dev environment is using CLang

Still not seeing the issue any more


added orthography and corrected digitized data

Brought the number of errors to zero and adjusted segmentation. A couple of issues remain though:

/r/ is supposed to represent voiced dental flap, but there is no corresponding grapheme in CLTS, so I mapped it to voiced alveolar tap as the following: ɾ̪/ɾ (same goes for devoiced voiced dental flap: ɾ̪̥/ɾ̥). I could propose to add those graphemes to CLTS repository if you consider it necessary.

◌̯ stands for fronting, as in ɣ̯ and x̯, so I had to ignore the diacritic due to the absence of the proper alternative.

Thanks, @natalia-morozova! Impressive. I'll leave the judgement of the profiles to the experts. One minor request: Would you mind describing in NOTES.md a little bit more the process of digitization?

Thanks! I'll merge and check later.


Revocation Demo

@kimdhamilton I just checked in a js implementation of a revocation prototype. There's a video in the README.
I remember you mentioning that it would be good to have the Certificate Revocation Rules embedded in the certificate itself. This implementation has that ;)
When you have a chance, check the video out. I'd like some feedback on the code as well, seeing that it is my first try in node.

In the current implementation of the revocation application, revocation proofs are nothing but a string that says issuer_key or receiver_key (mocking issuer and receiver digital signatures, respectively) and the revocation rules file simply lists what strings should exist in the revocation proofs to determine that a certificate is revoked.
For instance, for the following certificate_revocation_rules.json file with the content
{ "revocation_rules":["issuer_key","receiver_key"] }
the required certificate_revocation_proofs.json file should contain
{ "proofs":[ "issuer_key","receiver_key" ] }
for that certificate to be revoked. What the Verify function does is essentially make sure that all the items incertificate_revocation_rules.json are in certificate_revocation_proofs.json.
Obviously this is an over simplification made to expedite the prototype creation and I think it's time to address how to do it properly.


error in /common/pico_sync/include/pico/sem.h

I am just a greenie in C++ but I think I encountered an error:
In the file pico-sdk/src/common/pico_sync/include/pico/sem.h, line 32, inside the typedef struct __packed_aligned semaphore{}
is defined: 'struct lock_core core;'
but in the same subfolder, in file lock_core.h, the structure defined in lines 23-29, is named 'lock_core_t'
so I think the the definition of the nested structure in sem.h should be written as: 'struct lock_core_t core;'

in file lock_core.h, the structure defined in lines 23-29, is named 'lock_core_t'

Not quite. lock_core.h defines lock_core_t as a typedef for struct lock_core.
This means sem.h is able (AFAIK, I'm not a C expert either) to either use struct lock_core core; or lock_core_t core;.
There's lots of test-code in https://github.com/raspberrypi/pico-sdk/tree/master/test and https://github.com/raspberrypi/pico-examples and I'm fairly sure that some of that would fail to compile if there were errors with the types in the headers? :wink:


Audacity Bard using Whirl loses magical weapon property on damage

Weird thing comes up when my Audacity Bard uses a "Whirl" option, her attack with a magical weapon loses the magical weapon tag and the damage resistant enemy (an Elemental in this example) shows that it is resistant to the slashing damage. When I make her second attack without the whirl, the enemy is not resistant to the slashing damage.
Save files attached showing the before and after of the Whirl attack.
Audicity Bard.sav.zip
Audicity Bard 2.sav.zip

thanks. fixed in dev.

also fixed all other similar problems with:

Arcane Archer bursting area damage
Booming Blade move damage
College of Audacity whirl damage
Guardian Aura HP swap damage
Path of The Elements elemental conduit wildfire damage
Quivering Palm damage
Way of The Dragon reactive hide damage


[feature#14654] alert-spi support prometheus alertmanager

Purpose of the pull request
To add alert-api for prometheus alertmanager close #14654.
The implementation principle is to request its alert interface through http client to generate an alert.
api document
Brief change log
a new moudle dolphinscheduler-alert-prometheus be added
Verify this pull request
create alert instance to test it.

Codecov Report

Merging #15079 (cc5cebb) into dev (ae847ba) will increase coverage by 0.07%.
Report is 1 commits behind head on dev.
The diff coverage is 66.34%.

:exclamation: Current head cc5cebb differs from pull request most recent head fde0d25. Consider uploading reports for the commit fde0d25 to get more accurate results

@@             Coverage Diff              @@
##                dev   #15079      +/-   ##
============================================
+ Coverage     39.00%   39.08%   +0.07%
- Complexity     4600     4613      +13
============================================
  Files          1231     1235       +4
  Lines         43362    43433      +71
  Branches       4796     4788       -8
============================================
+ Hits          16915    16974      +59
- Misses        24569    24577       +8
- Partials       1878     1882       +4

Files
Coverage Δ

...n/alert/prometheus/AlertManagerChannelFactory.java
95.65% <95.65%> (ø)

...plugin/alert/prometheus/AlertManagerConstants.java
0.00% <0.00%> (ø)

...gin/alert/prometheus/AlertManagerAlertChannel.java
16.66% <16.66%> (ø)

...er/plugin/alert/prometheus/AlertManagerSender.java
62.16% <62.16%> (ø)

... and 22 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@SbloodyS @Radeity @EricGao888 @qingwli  PTAL.

In addition, file name in package org.apache.dolphinscheduler.plugin.alert.prometheus should start with Prometheus, like PrometheusAlertChannel and PrometheusSender.

In addition, file name in package org.apache.dolphinscheduler.plugin.alert.prometheus should start with Prometheus, like PrometheusAlertChannel and PrometheusSender.

OK

PTAL @Radeity


Add 2.1 release notes

Signed-off-by: Ankit Kala<EMAIL_ADDRESS>Description
Add 2.1 release notes
Issues Resolved
430
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff

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

Codecov Report

Merging #432 (3de3381) into main (cd02e1f) will decrease coverage by 4.09%.
The diff coverage is n/a.

:exclamation: Current head 3de3381 differs from pull request most recent head 598913b. Consider uploading reports for the commit 598913b to get more accurate results

@@             Coverage Diff              @@
##               main     #432      +/-   ##
============================================
- Coverage     74.37%   70.27%   -4.10%
+ Complexity      996      940      -56
============================================
  Files           141      141
  Lines          4562     4562
  Branches        504      504
============================================
- Hits           3393     3206     -187
- Misses          849     1034     +185
- Partials        320      322       +2

Impacted Files
Coverage Δ

...earch/replication/action/stats/NodeStatsRequest.kt
33.33% <0.00%> (-66.67%)
:arrow_down:

...eplication/action/stats/LeaderNodeStatsResponse.kt
42.85% <0.00%> (-57.15%)
:arrow_down:

.../replication/action/replay/ReplayChangesRequest.kt
50.00% <0.00%> (-50.00%)
:arrow_down:

...arch/replication/metadata/UpdateMetadataRequest.kt
40.90% <0.00%> (-36.37%)
:arrow_down:

...replication/action/index/ReplicateIndexResponse.kt
33.33% <0.00%> (-33.34%)
:arrow_down:

...tion/action/index/block/UpdateIndexBlockRequest.kt
35.00% <0.00%> (-30.00%)
:arrow_down:

...replication/action/stats/AutoFollowStatsRequest.kt
71.42% <0.00%> (-28.58%)
:arrow_down:

...opensearch/replication/seqno/RemoteClusterStats.kt
73.01% <0.00%> (-26.99%)
:arrow_down:

...cation/action/changes/TransportGetChangesAction.kt
63.49% <0.00%> (-25.40%)
:arrow_down:

...n/index/ReplicateIndexClusterManagerNodeRequest.kt
29.16% <0.00%> (-25.01%)
:arrow_down:

... and 23 more

Continue to review full report at Codecov.

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


cosign: init at 0.1.0

Motivation for this change
Introduce cosign at the latest version. Rekor is part of the sigstore project.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

You forgot to add the derivation, pkgs/tools/security/cosign does not exist in your commit or on master. nixpkgs-review fails spectacularly.

Thanks, a git add later here we go again :smile:

Result of nixpkgs-review pr 117812 run on x86_64-linux 1

1 package built:

cosign


feat: work-in-progress PHP model generator

Motivation
I want to start creating PHP Generator. There is no Work In Progress PR and we all know the most challenging part is to start 😄

Would you like to help me? Feel free to reach out

TODO

[x] Use Generator Template
[x] Define PHP reserved words / keywords https://www.php.net/manual/en/reserved.keywords.php
[ ] Generate empty PHP files
[ ] Generate empty classes
[ ] Generate public typed properties
[ ] Generate SubObjects
[ ] Generate Enums

Thoughts, Ideas, PHP Specifics

let's support only PHP 8.0 and up. PHP 7.4 is already not supported: https://www.php.net/supported-versions.php

PHP 8.0

private properties when readonly -> getters
public properties instead of getters + setters

PHP 8.1

public readonly properties
public properties instead of getters + setters

PHP 8.2

public readonly class
public properties

Options

PHP Version (8.0, 8.1, 8.2) default (8.1)
Readonly properties (true/false) default (true)
Namespace

Awesome @Ferror, let me know if you need anything 🙂
You are free to target master by the way, your changes should in theory not make any changes that break anything 🤔

Hey @Ferror, just checking in, and wanted to hear if you need anything from me?
Looks like you are nearly there 💪 Feel free to down scope as needed.

Hey @Ferror, just checking in, and wanted to hear if you need anything from me?
Looks like you are nearly there 💪 Feel free to down scope as needed.

Yea. As always. Big ideas and ambitious, yet not enough time. I will scope it big time, but maybe I will try by writing down the issue with steps :)


ReplyMessage : value is not a function

Hi,
I am trying to reply (ReplyMessage function) to a received message but it is giving me an error :
"TypeError: messageObject.value is not a function"
It is arising from JS file at line  # https://github.com/mukulhase/WebWhatsapp-Wrapper/blob/2c1602c0d3e87d50ea9980382f3bcc7717a9101f/webwhatsapi/js/wapi.js#L682
Can someone please look into it?
Thanks!

After removing below line I am able to send reply.
https://github.com/mukulhase/WebWhatsapp-Wrapper/blob/2c1602c0d3e87d50ea9980382f3bcc7717a9101f/webwhatsapi/js/wapi.js#L682
Please check.
Thanks!

I think that method is of an old implementation. Think about send a PR with that line removal please :)

@brunosoaresds Thanks for confirmation. I already started using same with line removed.


Segmentation fault from forc build running in docker

I get a segmentation fault when running forc build on a project that has dependencies other than std and core. This is using the forc installed from fuelup with the beta-5 toolchain.
root@1d4475987f7c:~# forc --version
forc 0.51.1+nightly.20240322.290a41e726
root@1d4475987f7c:~# forc build --path projects/swaypad/
  Fetching ownership git+https://github.com/FuelLabs/sway-libs?tag=v0.19.0#dcbbec000a9051e71c0c21f4b720eebbb55c199a
Segmentation fault

If I install the same version of forc from cargo, it doesn't happen.
RUN cargo install --git https://github.com/FuelLabs/sway.git --tag v0.49.3 forc

This leads me to believe there's a problem with the way fuelup is packaging the binary.
Forc.toml:
[project]
authors = ["Fuel Labs Inc."]
entry = "main.sw"
license = "Apache-2.0"
name = "swaypad"

[dependencies]
ownership = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.19.0" }
src3 = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.3.3" }
src5 = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.3.3" }
src20 = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.3.3" }

Dockerfile:
# Stage 1: Build
FROM lukemathwalker/cargo-chef:latest-rust-1.76 as chef
WORKDIR /build/
# hadolint ignore=DL3008

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    lld \
    clang \
    libclang-dev \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Build sway-playground
FROM chef as planner
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM chef as builder

# Install charcoal
RUN cargo install --git https://github.com/camden-smallwood/charcoal.git --rev f6338bf318500dd6977af813c37f66c504925c44

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
COPY --from=planner /build/recipe.json recipe.json
# Build our project dependecies, not our application!
RUN cargo chef cook --recipe-path recipe.json
# Up to this point, if our dependency tree stays the same,
# all layers should be cached.
COPY . .

COPY --from=builder /build/target/debug/sway-playground.d .
COPY --from=builder /build/Rocket.toml .
COPY --from=builder /build/projects projects
COPY --from=builder /usr/local/cargo/bin/charcoal /bin
COPY --from=builder /usr/local/cargo/bin/forc /bin

# Install fuelup
# RUN curl -fsSL https://install.fuel.network/ | sh -s -- --no-modify-path
# ENV PATH="/root/.fuelup/bin:$PATH"

# Install all fuel toolchains
RUN fuelup toolchain install latest
RUN fuelup toolchain install nightly
RUN fuelup toolchain install beta-1
RUN fuelup toolchain install beta-2
RUN fuelup toolchain install beta-3
RUN fuelup toolchain install beta-4
RUN fuelup toolchain install beta-5

# Install the forc dependencies
RUN forc build --path projects/swaypad

EXPOSE 8080

CMD ["./sway-playground"]

If I run it with amd instead of arm, I don't get the segmentation fault.
docker buildx build --platform linux/amd64 -f deployment/Dockerfile .

The seg fault also happens for forc check and forc test


Move optional pr_tag to an internal env variable

We need to have the same value in both actions.
And we don't customize it in any project.

Ops! We have an error:
https://github.com/Qiskit/qiskit.org/actions/runs/1688292053

Reverted from now:
https://github.com/Qiskit/gh-actions/commit/c90e2f876ad023961bc8ab140cc306ffa3664420


[flutter_tools] only restrict devices based on arch + buildMode, not emulator status

Description
instead of restricting profile/release mode based on whether the tool thinks the device is an emulator, restrict based on the device target architecture and the requested build mode. Notably, this enables release mode on x86_64 Android emulators, but not x86 emulators since we do not support that as an AOT target.
This does not add release mode support for simulators, since this requires us to build and upload artifacts for simulator/x86_64
Fixes https://github.com/flutter/flutter/issues/58886
Related: https://github.com/flutter/flutter/issues/11754

Independent of other reasons to do this - emulator detection on Android is best effort, so it lets us avoid need to keep our emulator map up to date: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/android/android_device.dart#L35 (these are physical devices that register as emulators, because samsung)


Warning on upgrading Ionic Angular version to 3.7

Hi,
Thanks for the plugin. Upgrading to latest ionic-angular (3.7.1) throws a peer dependencies warning. Looks like the plugin depends on Angular ~4.1.
Let me know if I can help you with a pull request.
Thanks

Can we please update angular version? Awaiting for this.


Fully Remove HeMIS model, Adaptive and h5py/HDF5

Checklist
GitHub

[X] I've given this PR a concise, self-descriptive, and meaningful title
[ ] I've linked relevant issues in the PR body
[X] I've applied the relevant labels to this PR
[ ] I've assigned a reviewer

PR contents

[X] I've consulted ivadomed's internal developer documentation to ensure my contribution is in line with any relevant design decisions
[ ] I've added relevant tests for my contribution
[ ] I've updated the relevant documentation for my changes, including argparse descriptions, docstrings, and ReadTheDocs tutorial pages

Description

Fully deprecate HeMIS model support by dropping HDF5 dependencies and related modules.
Linked issues

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
25 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-1.6%) to 69.207%

Files with Coverage Reduction
New Missed Lines
%

ivadomed/training.py
2
11.11%

ivadomed/utils.py
4
71.08%

ivadomed/models.py
19
88.78%

Totals

Change from base Build<PHONE_NUMBER>:
-1.6%

Covered Lines:
3960

Relevant Lines:
5722

💛  - Coveralls


Synapse charm review PR: Fix files in the charm project

This issue should address comments regarding files in the charm project such as:

actions.yaml
charmcraft.yaml
config.yaml
icon.svg
manifest.yaml
metadata.yaml
requirements.txt

Or anything not related to the code itself.
Reference: List of files in the charm project

https://github.com/canonical/synapse-operator/pull/43#discussion_r1332553975_

https://github.com/canonical/synapse-operator/pull/43#discussion_r1332554524

https://github.com/canonical/synapse-operator/pull/43#discussion_r1332555672

https://github.com/canonical/synapse-operator/pull/43#discussion_r1332557396

https://github.com/canonical/synapse-operator/pull/43#discussion_r1332562287

https://github.com/canonical/synapse-operator/pull/43#discussion_r1332562835

https://github.com/canonical/synapse-operator/pull/43#discussion_r1333914403

https://github.com/canonical/synapse-operator/pull/43#discussion_r1336690815

https://github.com/canonical/synapse-operator/pull/43#discussion_r1336696781

https://github.com/canonical/synapse-operator/pull/43#discussion_r1336719231

Ops, closed/reopened again :|

https://github.com/canonical/synapse-operator/pull/43#discussion_r1342361501

https://github.com/canonical/synapse-operator/pull/43#discussion_r1342501417

Hi @amandahla , can this issue be closed?

Yes, closing now :)


jQuery should be upgraded to 3.5.1

jQuery is lagging behind a bit at 3.5.1 due to dependabot not offering 3.5.1 to us in a PR.
We skipped 3.5.0 in https://github.com/DefectDojo/django-DefectDojo/pull/2416
I have filed a bug report with dependabot, so let's wait a bit to see their response. I'd like to help them fix it. Or get educated on what we're missing :-)
The update is not urgent, so we can afford to wait. It would also help us to see it fixed and test it so we can start trusting depandabot again :-)

This is what I sent to them:
HI,

We are using dependabot and it works fine most of the time. But currently we see what we believe to be a bug.

Earlier this year we got a PR from dependabot to update jquery rfom 3.4.1 to 3.5.0.

But jquery 3.5.0 had breaking changes, so we wanted to skip 3.5.0. So we used

@dependabot close

there was no suitable ignore option as we didn't want to ignore 3.x.x and didn't want to ignore 3.5.x and dependabot doesn't allow to ignore a specific patch version. so we just closed the PR.

However, now that jquery 3.5.1 is out for a while we should get a PR for that from dependabot. But we don't.
In the logs I can see that dependabot see 3.5.1 as latest version, but it seems to skip it because there is already a PR for 3.5.0?

updater | INFO <job_45257903> Starting job processing
updater | INFO <job_45257903> Starting update job for DefectDojo/django-DefectDojo
updater | INFO <job_45257903> Checking if jquery 3.4.1 needs updating
  proxy | 2020/08/27 18:41:01 [004] GET https://registry.npmjs.org:443/jquery
  proxy | 2020/08/27 18:41:01 [004] 200 https://registry.npmjs.org:443/jquery
  proxy | 2020/08/27 18:41:01 [006] GET https://registry.npmjs.org:443/jquery/3.5.1
  proxy | 2020/08/27 18:41:01 [006] 200 https://registry.npmjs.org:443/jquery/3.5.1
updater | INFO <job_45257903> Latest version is 3.5.1
  proxy | 2020/08/27 18:41:01 [008] GET https://registry.npmjs.org:443/jquery/3.5.0
updater | INFO <job_45257903> Requirements to unlock own
updater | INFO <job_45257903> Requirements update strategy bump_versions
updater | INFO <job_45257903> Pull request already exists for<EMAIL_ADDRESS>
Two issues with that:
1) that PR is closed so it should create a new one
2) that PR is for 3.5.0 and we now have 3.5.1 available so even if there already is an existing (open or closed) PR it should create a new PR?

Or are we missing something?

Valentijn

Logs: https://app.dependabot.com/accounts/DefectDojo/update-logs/45257903
PR: https://github.com/DefectDojo/django-DefectDojo/pull/2416
Repo: https://github.com/DefectDojo/django-DefectDojo

our config seems fine, nothing states to ignore anything jquery:
Applied config from .dependabot/config.yml:

---
update_configs:
- directory: "/components"
  package_manager: javascript
  target_branch: dev
  update_schedule: live
In addition, the following defaults have been applied:

---
allowed_updates:
- match:
    update_type: all
    dependency_type: direct
- match:
    update_type: security
    dependency_type: indirect
automerged_updates: []
default_assignees: []
default_labels:
- dependencies
- javascript
default_reviewers: []
ignored_updates:
- match:
    dependency_name: bootstrap
    version_requirement: ">= 4.a, < 5"
- match:
    dependency_name: bootstrap-social
    version_requirement: ">= 5.a, < 6"
- match:
    dependency_name: bootswatch
    version_requirement: ">= 4.a, < 5"
- match:
    dependency_name: chosen
    version_requirement: ">= 1.a, < 2"
- match:
    dependency_name: drmonty-datatables-responsive
    version_requirement: ">= 2.a, < 3"
- match:
    dependency_name: flot
    version_requirement: ">= 2.a, < 3"
- match:
    dependency_name: flot
    version_requirement: ">= 3.a, < 4"
- match:
    dependency_name: flot
    version_requirement: ">= 4.a, < 5"
- match:
    dependency_name: fullcalendar
    version_requirement: ">= 5.a, < 6"
- match:
    dependency_name: startbootstrap-sb-admin-2
    version_requirement: ">= 3.a, < 4"
- match:
    dependency_name: startbootstrap-sb-admin-2
    version_requirement: ">= 4.a, < 5"
- match:
    dependency_name: "@yarn_components/font-awesome"
    version_requirement: "!! 0d1f27efb836eb2ab994ba37221849ed64a73e5c"
version_requirement_updates: auto

after some messing around dependabot is working again for jquery: #2829


How can I gain a root access?

^

https://linux.die.net/man/8/sudo
https://linux.die.net/man/1/su

I meant in the c++ extension. @sjinks

chmod u+s /path/to/php
chown root:root /path/to/php

and then use setuid() in your extension.
But this is not a good idea in general.

Is there any good way to force php to load an extension with root permissions?

This is not an issue, so I'm closing it.


Unpacking multiple iterables yields false negatives

Environment data

Language Server version: 2022.2.1 (pyright 618f54ed)
OS and version: Red Hat 4.8.5-44
Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.1

Expected behaviour
To not flag anything as wrong.
Actual behaviour
Multiple errors errors found:

Expected expression
Expected ":"
Only one unpack operation allowed in list

Logs

(25626) Background analysis message: setFileOpened
(25626) Background analysis message: getDiagnosticsForRange
(25626) Background analysis message: getDiagnosticsForRange
(25626) Background analysis message: getSemanticTokens full
(25626) [BG(1)] getSemanticTokens full at /radarugs/hintze/s4-cnc-tools/test.py (5ms)
(25626) Background analysis message: analyze

Code Snippet / Additional information

The following executes w/o problems in Python:
a = [1, 2]
b = ["3", "4"]

for x in *a, *b:
    print(x)

c = *a, *b
print(c)

Yields the following output:
1
2
3
4
(1, 2, '3', '4')

But pylance marks the first * in line 4 (the for-loop) with Expected expression, the colon in the same line as Expected ":", and the second unpacking in line 7 (where c is assigned) as Only one unpack operation allowed in list.
This is probably (partly?) related to #700.

also note that this syntax is only valid for Python >= 3.9

Thanks for the bug report. I wasn't aware of this change to the grammar in Python 3.9. Since this is a core type checker issue, I've created a tracking bug in the pyright repo. https://github.com/microsoft/pyright/issues/3029

This will be fixed in the next release.

This issue has been fixed in version 2022.2.3, which we've just released. You can find the changelog here: CHANGELOG.md

expected expression error in visual studio code from an elif statement I tried to run. parenthesis only fixed if statement error, I', finding a hard time finding a solution for my current problem. following a PyCharm tutorial btw; but I'm having a hard time downloading it.

@realworldhacker, I copied the code from that spot in the video (see below) and Pylance doesn't show any errors for me, so I'm assuming you have a typo somewhere in the code. One wild guess is that you typed elif instead of else on the second to last line.
If you believe that there is a problem with Pylance here, please open a new issue and include a minimal code snippet that reproduces the problem.
fnum = input("What is the first number ")
snum = input("What is the second number")

if fnum > snum:
    print("The first number is larger!")
elif snum > fnum:
    print("The second number is larger. ")
else:
    print("The numbers are the same")


[flutter_markdown] Relative anchors

Is the functionality for relative anchors planned?
For example
[preface](#preface)
[development](#development)

When tapping one of these, the view would scroll to the location of the #preface element.

Hi @lifenautjoe
Looks like relative anchors are not rendered at all, thanks for filing the app

minimal code sample
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import '../shared/markdown_demo_widget.dart';

// ignore_for_file: public_member_api_docs

const String _data = '''
# Minimal Markdown Test
---
This is a simple Markdown test. Provide a text string with Markdown tags
to the Markdown widget and it will display the formatted output in a scrollable
widget.

## Section 1
Maecenas eget **arcu egestas**, mollis ex vitae, posuere magna. Nunc eget
 aliquam tortor. Vestibulum porta sodales efficitur. Mauris interdum turpis
 eget est condimentum, vitae porttitor diam ornare.

### Subsection A
Sed et massa finibus, blandit massa vel, vulputate velit. Vestibulum vitae
venenatis libero. ***Curabitur sem lectus, feugiat eu justo in, eleifend
accumsan ante.*** Sed a fermentum elit. Curabitur sodales metus id mi ornare,
in ullamcorper magna congue.
''';

const String _notes = """
# Minimal Markdown Demo
---

## Overview

The simplest use case that illustrates how to make use of the
flutter_markdown package is to include a Markdown widget in a widget tree
and supply it with a character string of text containing Markdown formatting
syntax. Here is a simple Flutter app that creates a Markdown widget that
formats and displays the text in the string _markdownData. The resulting
Flutter app demonstrates the use of headers, rules, and emphasis text from
plain text Markdown syntax.

## Usage

The code sample below demonstrates a simple Flutter app with a Markdown widget.

import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
const String _markdownData = """
Minimal Markdown Test
Section1
[Subsection A](#Subsection A)

This is a simple Markdown test. Provide a text string with Markdown tags
to the Markdown widget and it will display the formatted output in a
scrollable widget.
Section 1
Maecenas eget arcu egestas, mollis ex vitae, posuere magna. Nunc eget
aliquam tortor. Vestibulum porta sodales efficitur. Mauris interdum turpis
eget est condimentum, vitae porttitor diam ornare.
Subsection A
Sed et massa finibus, blandit massa vel, vulputate velit. Vestibulum vitae
venenatis libero. Curabitur sem lectus, feugiat eu justo in, eleifend
accumsan ante. Sed a fermentum elit. Curabitur sodales metus id mi
ornare, in ullamcorper magna congue.
""";
void main() {
runApp(
MaterialApp(
title: "Markdown Demo",
home: Scaffold(
appBar: AppBar(
title: const Text('Simple Markdown Demo'),
),
body: SafeArea(
child: Markdown(
data: _markdownData,
),
),
),
),
);
}
""";

class MinimalMarkdownDemo extends StatelessWidget
    implements MarkdownDemoWidget {
  const MinimalMarkdownDemo({Key? key}) : super(key: key);

  static const String _title = 'Minimal Markdown Demo';

  @override
  String get title => MinimalMarkdownDemo._title;

  @override
  String get description => 'A minimal example of how to use the Markdown '
      'widget in a Flutter app.';

  @override
  Future<String> get data => Future<String>.value(_data);

  @override
  Future<String> get notes => Future<String>.value(_notes);

  @override
  Widget build(BuildContext context) {
    return const Markdown(
      data: _data,
    );
  }
}

stable
master

❗
❗

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5506j darwin-x64, locale en-GB)
    • Flutter version 2.2.3 at /Users/tahatesser/Code/flutter_stable
    • Framework revision f4abaa0735 (9 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Code/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.2

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

[!] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

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

[✓] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)         • macos         • darwin-x64     • macOS 12.0 21A5506j darwin-x64
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 92.0.4515.159

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.6.0-1.0.pre.161, on macOS 12.0 21A5506j darwin-x64, locale en-GB)
    • Flutter version 2.6.0-1.0.pre.161 at /Users/tahatesser/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 334c95dbd9 (5 hours ago), 2021-09-02 08:46:27 +0200
    • Engine revision d877a4bbcd
    • Dart version 2.15.0 (build 2.15.0-68.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • CocoaPods version 1.10.2

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

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

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

[✓] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)         • macos         • darwin-x64     • macOS 12.0 21A5506j darwin-x64
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 92.0.4515.159

• No issues found!

✅: No Issue ❗: Issue reproduced

My use case:
I personally want to render a privacy policy document with a table of contents.
As a privacy policy is unfortunately often very big a it is important for users to be able to skip to specific sections if they e.g. need to look up specific information again.
Additionally I want the table of content to be displayed at the left-hand side of the page.
If I click on one of the headings the main content should scroll to the right heading.
Like in the picture below the currently "active" header should be highlighted in blue.
See the Screenshot of the Google privacy policy:

This means I need a way to

scroll to specific relative anchors from outside of the Markdown widget
retreive what elements/sections/anchors are currently shown to the user (I guess, maybe there is a smarter way)

I don't know what of my use case is in-scope of the ticket.
If there is some way I can help to implement this ticket let me know :)
Also if anyone has tips for implementing the stuff (table of content on the side) I mentioned above also let me know ;)

@stuartmorgan Will this not be addressed as this is P6 ("unlikely to be addressed")? Or was this a mistake (should be P4/P5)?
I guess this is part of a normal markdown implementation - I wouldn't know why this should not be fixed.

It should be P5; I was looking at the wrong variant of header IDs.

If there is some way I can help to implement this ticket let me know :)

Anyone is welcome to submit PRs for issues.

It should be P5; I was looking at the wrong variant of header IDs.

Thanks!

Anyone is welcome to submit PRs for issues.

Do you have some pointers or someone knowledgeable that might have some tips for the implementation?
Above in the ticket there was e.g. discussed "manually calculating the offsets" or using "ScrollablePositionedList" - I'm unfamiliar with both and I don't know what the best approach might be.
If there is one way that is most likely correct / preferred by the Flutter team I could maybe contribute.

I'm currently prototyping and did something:

Added support for scrollable anchors
Added support to see which anchors (headings) are currently visible

On the left is the table of contents where the currently visible headings are highlighted.
See my comment about my use case (privacy policy) above to get what I was aiming for.
https://user-images.githubusercontent.com/29028262/163055718-5afe65b0-10c6-4a43-86d5-4e3a360ba5f5.mp4
The implementation is very scuffed though. I basically have to loop through all widgets that are created so I can know what anchor will have what index inside the widget list that is returned for the markdown.
I then use ScrollablePositionedList to scroll to a specific anchor.
I'd be grateful if anyone would have a better solution or just general feedback.
See my code:
https://github.com/flutter/packages/compare/main...SharezoneApp:main
(Its not pretty, I just wanted to see if its even possible asap, before committing more time for a tested implementation)
DO NOT USE THIS FOR YOURSELF YET! It's WIP still

The code for the privacy policy page is here if you want to see how I use the markdown widget (I created a new one called RelativeAnchorsMarkdown: https://github.com/SharezoneApp/sharezone-app/blob/privacy-policy-rework/app/lib/onboarding/sign_up/pages/new_privacy_policy_page.dart
(Its also bad prototype code right now so don't judge me :D)

This would be very neat to have, is this going to be addressed any time soon? It's been almost 5 years...


Prepare next Dev Cycle v1.101.0-dev

How to categorize this PR?

/kind enhancement
What this PR does / why we need it:
Prepare next Dev Cycle v1.101.0-dev
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/hold

/unhold

/retest

/retest

/retest


Default state for views

When views are created they need a place to store their states and have a default state:
const component = view(() => ...)
component.defaultState = {
  foo: '123'
}
``

This is solved by using expressions:
const component: view = ({
  foo: Get.foo || '123'
} => {})

#33


no callbacks in .initialize()

would be nice if user could do:
emailClient.initialize("64d2fa2b73f6f7cc61a4b3e8")
emailClient.send ....
})

rather than:
emailClient.initialize("64d2fa2b73f6f7cc61a4b3e8").then(function(){
<EMAIL_ADDRESS><EMAIL_ADDRESS>"subject-1", "message-1", function(err, result){
	})
})

The issue is that .initialize is making an async call to populate the actual api keys so that individual service providers can be initialized (mandrill, sendgrid, etc.)

can do this but actually getting keys/initing clients in send function


docs: slow loading of assets

Some of the assets (docsify code on unpkg and google fonts, at least) occasionally load painfully slowly (5 - 10 second waits).  Assuming the problem isn't anything at my end, it could be worth pulling those into our CDN.

Assuming the problem isn't anything at my end, it could be worth pulling those into our CDN.

Can you confirm if these assets are being throttled by anything on your system/network? Testing this with VPN (On/Off) and extensions disabled etc.

It's intermittent.  Right now everything is fine, but I'll test it properly if it's slow in the future.

Thanks closing this for now.


how can i put a "agentUser id" to homegraph & there is a problem to help:

1. got error when doing test 'Test suite for smart home'
Failed to get device list from HomeGraph: Requested entity was not found. 404

2. submit param to this api always got error:https://homegraph.googleapis.com/v1/devices:requestSync
{
  "error": {
    "code": 404,
    "message": "Requested entity was not found.",
    "status": "NOT_FOUND"
  }
}

3. maybe the question is how to put a agentuserId to homegrah
how to connected the agentuserid to homegrah?
now i can't find some api to do this.i just find some query api:
https://homegraph.googleapis.com/v1/devices:{api}
query
reportStateAndNotification
requestSync
DELETE https://homegraph.googleapis.com/v1/{agentUserId=agentUsers/**}

4.The smart home function has been developed, and it only needs to be tested when it is released. Https://smarthome-test-suite.appspot.com/ This has been prompted "Requested entity was not found." and then can't proceed to the next step

The agent user ID is something you return in your initial SYNC response.

sync response like this:
{
	"requestId":"4442832499392385678",
	"payload":
	{
		"devices":
		[
			{
				"id":"250000000218",
				"type":"action.devices.types.LIGHT",
				"traits":
				["action.devices.traits.OnOff","action.devices.traits.Brightness","action.devices.traits.ColorSetting"],
				"name":{"defaultNames":["银河风云Macbee型LED灯"],"name":"灯","nicknames":["250000000218"]},
				"willReportState":false,"attributes":{"colorModel":"rgb"},
				"deviceInfo":{"manufacturer":"深圳市银河风云网络系统股份有限公司",
				"model":"i+rfllamp2","hwVersion":"1.1","swVersion":"1.1"},
				"customData":{"fooValue":12,"barValue":false,"bazValue":"dancing alpaca"}
			}
		],
		"agentUserId":"87157"
	}
}

it doesn't work.
when i submit param to this api always got error:https://homegraph.googleapis.com/v1/devices:requestSync

You might be receiving this error from the test suite for a few different reasons:

The agentUserId you entered into the test suite is incorrect.
The service account key you uploaded doesn't have access to the project with the agentUserId you entered.
The agentUserId hasn't been linked to the Google Assistant from your service before running the test.

Without the last step, there won't be any data in Home Graph for that agentUserId for the test suite to verify (the test suite doesn't send intents to your service, it only verifies Home Graph state).

thanks，wowo！，i don't do anything but it's work, perhaps need wait a moment before test suite to verify


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/106570

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/110311


feat: Add missed tags

Description of the change
Tags are very useful for cost and ownership tracking.
This PR adds tags to resources that support tags field, to be able to provide all needed tags to all resources.
Type of change

[ ] Bug fix (non-breaking change that fixes an issue);
[x] New feature (non-breaking change that adds functionality);
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected);
[ ] Documentation (a documentation or example fix not affecting the infrastructure managed by this module);

Checklists
Development

[x] All necessary variables have been defined, with defaults if applicable;
[x] The code is formatted properly;

Code review

[ ] The module version is bumped accordingly;
[ ] Spacelift tests are passing;
[ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached;
[ ] This pull request is no longer marked as "draft";
[ ] Reviewers have been assigned;
[ ] Changes have been reviewed by at least one other engineer;

Hey @MaxymVlasov , It seems like you didn't update the module_version in the .spacelift/config.yml file. Please do so in order to kick off the required checks

done

Resolved by #94 (here was CI problems)


Oops; flutter has exited unexpectedly: "type 'Null' is not a subtype of type 'String' in type cast".

Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter pub get
exception
_CastError: type 'Null' is not a subtype of type 'String' in type cast
#0      new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34)
#1      new Plugin._fromMultiPlatformYaml (package:flutter_tools/src/plugins.dart:142:21)
#2      new Plugin.fromYaml (package:flutter_tools/src/plugins.dart:78:21)
#3      _pluginFromPackage (package:flutter_tools/src/flutter_plugins.dart:63:17)
#4      findPlugins (package:flutter_tools/src/flutter_plugins.dart:88:28)
<asynchronous suspension>
#5      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1080:32)
<asynchronous suspension>
#6      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:357:5)
<asynchronous suspension>
#7      PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:182:7)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16     main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>

flutter doctor
[✓] Flutter (Channel stable, 3.7.8, on Microsoft Windows [Version 10.0.19044.2728], locale en-US)
    • Flutter version 3.7.8 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 90c64ed42b (3 days ago), 2023-03-21 11:27:08 -0500
    • Engine revision 9aa7816315
    • Dart version 2.19.5
    • DevTools version 2.20.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\marcu\AppData\Local\Android\sdk
    • Platform android-33-ext5, build-tools 33.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
    • All Android licenses accepted.

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

[✓] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.24)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.33328.57
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)

[✓] VS Code (version 1.76.2)
    • VS Code at C:\Users\marcu\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.60.0

[✓] Connected device (4 available)
    • SM J260M (mobile) • 4200c1f102e12663 • android-arm    • Android 8.1.0 (API 27)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19044.2728]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 111.0.5563.111
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 111.0.1661.51

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

• No issues found!

Plz, use the latest version.


Update Cadence 1.0 feature branch to latest Cadence version

⚠ Depends on #533
Description

Update to latest master
Updates to the latest commit of flow-go PR onflow/flow-go#5102

For contributor use:

[ ] Targeted PR against master branch
[x] Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the GitHub PR explorer
[x] Added appropriate labels

Codecov Report
Attention: 242 lines in your changes are missing coverage. Please review.

Comparison is base (c4e40a9) 52.92% compared to head (7896fff) 53.26%.

Files
Patch %
Lines

server/access/streamBackend.go
0.00%
156 Missing :warning:

adapters/access.go
46.51%
18 Missing and 5 partials :warning:

server/access/rest.go
0.00%
23 Missing :warning:

emulator/blockchain.go
79.79%
14 Missing and 6 partials :warning:

adapters/sdk.go
0.00%
8 Missing :warning:

storage/store.go
91.66%
6 Missing and 2 partials :warning:

storage/memstore/memstore.go
0.00%
4 Missing :warning:

Additional details and impacted files
@@                    Coverage Diff                     @@
##           feature/stable-cadence     #532      +/-   ##
==========================================================
+ Coverage                   52.92%   53.26%   +0.34%
==========================================================
  Files                          28       29       +1
  Lines                        3622     3869     +247
==========================================================
+ Hits                         1917     2061     +144
- Misses                       1556     1653      +97
- Partials                      149      155       +6

Flag
Coverage Δ

unittests
53.26% <45.86%> (+0.34%)
:arrow_up:

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

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


Fix sequencelocks stempool

A new build of 266bc83ba55c13837c05bdf15341c75c8527e25f has completed succesfully!
Binaries available at https://build.nav.community/binaries/fix-sequencelocks-stempool


Can't make it work

Keep getting
{"id":"switchbotone","status":"errorLocatingDevice"} The MAC address is correct. What can I try?

you will need to post your config changes or message me on HA forum or reddit with them. Also it needs to be switchbot branded, not "magic switchbot"

I deleted switchbot HA integration and now everything is working!


indexer-alt: separate updates for consistent sequential pipelines

Description
Use object changes from transaction effects to figure out which changes to consistent tables correspond to new rows and which changes correspond to updates. This means we can avoid using INSERT ... ON CONFLICT DO UPDATE which requires postgres to try an insert, detect constraints, and then go for the update, which should hopefully improve performance. On the other hand, it means that these pipelines will not work at all if they are started at an arbitrary point in time (because the UPDATE-s will fail).
The largest part of this change was adding support for bulk-updates to diesel (see https://github.com/diesel-rs/diesel/discussions/2879). This requires opting in to breaking changes by exposing diesel's internals. To limit the fall out of that, this support has been added in its own crate.
Finally, as part of this change, I ran into a flag that can be set on model types: #[diesel(treat_none_as_default_value = ...)] which defaults to true. Setting this to false on models that contain optional values should improve statistics collection and may improve performance through prepared statement caching.
Test plan
Unit tests for update_from query generation, and E2E tests for running updates on a DB with the new DSL:
sui$ cargo nextest run -p diesel-update-from

Run the indexer before and after the change, dump the resulting tables and make sure the results are the same:
sui$ cargo run -p sui-indexer-alt -- generate-config > /tmp/indexer.toml
sui$ cargo run -p sui-indexer-alt -- indexer            \
  --remote-store-url https://checkpoints.mainnet.sui.io/ \
  --last-checkpoint 50000 --config /tmp/indexer.toml    \
  --pipeline sum_obj_types --pipeline sum_coin_balances

sui$ psql postgres://postgres:postgrespw@localhost:5432/sui_indexer_alt
sui_indexer_alt=# COPY
    (SELECT object_id, object_version, owner_kind, owner_id FROM sum_obj_types ORDER BY object_id)
TO
    '/tmp/objs.csv'
WITH
    DELIMITER ',' CSV HEADER;
sui_indexer_alt=# COPY
    (SELECT object_id, object_version, owner_id, coin_balance FROM sum_coin_balances ORDER BY object_id)
TO
    '/tmp/coins.csv'
WITH
    DELIMITER ',' CSV HEADER;

Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

[ ] Protocol:
[ ] Nodes (Validators and Full nodes):
[ ] Indexer:
[ ] JSON-RPC:
[ ] GraphQL:
[ ] CLI:
[ ] Rust SDK:
[ ] REST API:

Shall we treat this as an experiment first?
It would break the ability to benchmark arbitrary range of checkpoint data, and introduces non-trivial complexity.
So I think we should merge it only if we are sure it's valuable and worth the cost.

Experiments showed that even with this change we weren't matching the performance of the new obj_info and coin_balance_buckets pipelines, even before we landed further improvements to them. Given we are fairly confident that those pipelines will serve as well in production, I think it's safe for us wind this experiment down, and avoid taking on the extra complexity in our codebase!


Icon button tooltips misaligned

Problem description
When using the size examples from the icon library demo page in conjunction with tooltips, the tool tips are not aligned correctly
Steps to reproduce
Add a tooltip to the buttons in the size examples and view the position of the tooltip.
Versions

Material-UI: 0.15.2
React: 15.2.1
Browser: OS X Chrome 52.0.2743.116

Closing for #2230


update readme, fwup-git updated with proper deps

fwup-git's dependencies are now up to date, so AUR users should no longer need to manually install xdelta3 before buliding.

Thanks!


sap.m.MultiComboBox does not handle correctly myltiple selectedKeys if binded

OpenUI5 version: Latest
Browser/version (+device/version): Chrome Latest
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):  https://jsbin.com/zefiwa/edit?html,js,output
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:

Open JSBIN provided, you will see two multicombobox
First is working correctly as is binded to the property name of first line in JSON model ( value = '1' )
Second is not working correctly as is binded to the property name of second line in JSON model ( value = '1,2'
Third multicombobox has no binding but same value as second, "1,2" and values are shown

What is the expected result?
Multicombobox 2 should show the same as multicombobox 3
What happens instead?
Nothing is shown in Multicombobox 2
Any other information? (attach screenshot if possible)

Hi @JoseMunozHerrera ,
Please try with ["1", "2"] instead of "1,2". Then it seems to be working :)
Thanks and Kind Regards,
Diana, SAPUI5 Dispatcher

Ok, with ["1","2"] works but... should not behave the same as when I do a fix selectedKeys?

Or, when I bind to one single value '1' is working and I don't have to do [ "1" ]
is that normal?

Dear @JoseMunozHerrera,
We made a discussion with the owners of the control and here's what they said.
There's no bug in that JSBin example.
The property "selectedKeys" expects an array of keys. As you could see it could gracefully accept also a single value.
However if you want to provide more than one key, it must be an array.
So, the proper data should be:
[
{name : ['1'], description: 'say hello'},
{name : ['1', '2'], description: 'say world'}
]
The way it's implemented in the 3rd example is the way you could provide an array in XML view.
So, selectedKeys="1,2" in XML view is equal to selectedKeys: [1, 2] in JavaScript.
Thanks and Kind Regards,
Diana


Call of Juarez Gunslinger → everything is black

With d9vk

When I hit "escape", I have this:

System information
GPU: Nvidia GT 730M
Driver: 430.26-9
Wine version: Proton 4.2
DXVK version: 0.13
Apitrace file(s)
https://mega.nz/#!bjQExY5D!XR7yAofHGhtnCHbukLDA5uBiVBs0tmU1WAdBq0VfM34
Log files
d3d: CoJGunslinger-204450.log

This issue exists only when the option "Textures' quality" is set to "high".

Your trace replays fine with D9VK. Please retest the game with the latest master.
If you need a build: https://git.froggi.es/joshua/d9vk/pipelines

Tested with the latest master. The issue still exists when "Textures' quality" is set to "high".
Plus, now, the screen is black on the first screen "hit a button to continue" and on the loading screens.

@Joshua-Ashton It shouldn't be closed, the main issue is not fixed.

It was closed when I merged that patch. The issue is still occurring on master?

I guess I misunderstood you. The apitrace renders perfectly fine with D9VK. Was it made with the problematic graphic setting?
If it was I might need a D9VK trace again.

I played back your trace and it renders fine for me -- would you be able to provide a d9vk trace? Cheers.

@Joshua-Ashton

The issue is still occurring on master?

The regression (when you are on loading screens) is fixed, but not the black screen when your are in the game, which was not related to the regression.
@K0bin

Was it made with the problematic graphic setting?

Yes.
@Joshua-Ashton

would you be able to provide a d9vk trace?

apitrace with d9vk + the problematic graphic setting:
https://mega.nz/#!WuRmwCgS!HISvR_I2V-LB3eqeq4R5tm7F0fQ9YTdr9ipETY-GpsM

Thanks, can replicate with this.

Can you upload the d3d9 logs from playing the game with D9VK?

Can you also try running with
PROTON_FORCE_LARGE_ADDRESS_AWARE=1

For both: D9VK + PROTON_FORCE_LARGE_ADDRESS_AWARE=1
@K0bin
CoJGunslinger_d3d9.log
@Joshua-Ashton
https://mega.nz/#!fvYWlS4Q!sclDK38sJCoyw6gca6upm7n4qQWNtlUbYStVaGl4J7M

Can you try the https://github.com/Joshua-Ashton/d9vk/tree/d3d9-memory-tracking branch
Build should be on here when it's done.
https://git.froggi.es/joshua/d9vk/-/jobs/693

Great that it works. I'll just drop this here as a reminder for us:
We still need to fix locking the same buffer/image multiple times:

Right now it kinda works for some reason but we should handle that properly.
I've tested it with Windows D3D9 and that seems to return the same pointer every time regardless of the Offset. This isn't what happens in the trace though (WineD3D trace).


attributes interface is fragile

If I enter "bill," for add attributes and no following attribute, a blank attribute is created. If I enter "bill,,bob", a blank attribute is created. Blank names aren't valid attributes.

Attributes structure has been reworked using context menu


Describe the data option of the javascript typeahead plugin.

Took me a while to find it.

replaced that with source option - which is now in the docs - thanks though!


Jacdavisrelease

@gregg-miskelly @pieandcakes @richardstanton @paulmaybee @chuckries

This is comparing with the wrong branch. Will recreate.


Minitest/GlobalExpectations doesn't seem to be triggered

I'm sure I must have configured something incorrectly, but I can't figure out what.
I created a new project, installed the rubocop and rubocop-minitest gems, then added the following .rubocop.yml:
require:
  - rubocop-performance
  - rubocop-minitest

I then added the following spec
# frozen_string_literal: true

require 'minitest/autorun'
require_relative './meme'

describe Meme do
  before do
    @meme = Meme.new
  end

  describe 'when asked about cheeseburgers' do
    it 'must respond positively' do
      @meme.i_can_has_cheezburger?.must_equal 'OHAI!'
    end
  end

  describe 'when asked about blending possibilities' do
    it "won't say no" do
      @meme.will_it_blend?.wont_match(/^no/i)
    end
  end
end

And ran the following command:
rubocop --auto-correct --only Minitest/GlobalExpectations example_spec.rb

And got the following output:
Inspecting 1 file
.

1 file inspected, no offenses detected

My versions of rubocop and rubocop-minitest are:
rubocop (1.16.1)
rubocop-ast (1.7.0)
rubocop-minitest (0.12.1)
rubocop-performance (1.11.3)

My expectation is that this would have resulted in 2 offenses detected. Can anyone confirm whether this is a bug or I'm doing something dumb?
Thank you!

By default, test directory, or file name ends with _test.rb are targeted for detection. _spec.rb is not the target.
https://github.com/rubocop/rubocop-minitest/blob/v0.12.1/config/default.yml#L3-L5
Thank you.

I'm not sure if it's a strong convention, but here's an example of name with_spec.rb:
https://semaphoreci.com/community/tutorials/getting-started-with-minitest
If further examples can be found, then perhaps the behaviour could be changed.

Oh I didn't realise, thank you!
I added this to my .rubocop.yml and this fixed the issue.
Minitest:
  Include:
    - '**/spec/**/*'
    - '**/*_spec.rb'

After that, I investigated about this issue. As a result, it could include '**/test/**/*_spec.rb' compliant Minitest::Spec. However, it doesn't include '**/spec/**/*_spec.rb' for the following reasons:

Not officially present in Minitest
Preventing false positives in RuboCop RSpec

I opened #135. Thank you.


No Windows stemcell for VSphere ESX

Hi,
I'm not sure whether this is right place to ask for Windows stemcell for VSphere ESX.
I don't find Windows 2012 R2 stemcell for VSphere ESXi in http://bosh.cloudfoundry.org/stemcells/
Is there any plans to generate Windows stemcell for VSphere ? I have a use case to implement on Windows and we use VMWare VSphere. Do let me know.
Regards.

Hi @sumanth-suvarna
Due to MSFT's licensing requirements, we are unable to distribute windows stemcells for On-Prem IaaS like vSphere.
Therefore, we publish instructions for users to be able to create their own stemcells - https://github.com/cloudfoundry-incubator/bosh-windows-stemcell-builder/wiki/Creating-a-vSphere-Stemcell-by-Hand

I am going to close this issue. Please feel free to open another issue if you need further assistance. Alternatively, you can reach me on the Cloud Foundry slack as well.


Firefox 68.0 headless is not working inside docker containers

What is your Test Scenario?

Running testcafe in a docker image, looks like firefox headless is broken for some reason.  I reckon it's a profile related issue.
Normal firefox with xvfb works OK (i.e, not headless).  dbus-daemon is also running in the background and makes no difference.
What is the Current behavior?

Testcafe doesn't finish, and complains the browser is unresponsive:
ERROR The Firefox 68.0.0 / Ubuntu 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.

If you exec into the docker and run top you can see firefox taking up to 4gb RAM and using a lot of CPU.
What is the Expected behavior?

Firefox runs fine in headless mode.
What is your web application and your TestCafe test code?

Using the standard tutorial page.

Test Code:

import { Selector } from 'testcafe';

fixture `Getting Started`
    .page `http://devexpress.github.io/testcafe/example`;

test('My first test', async t => {
    // Test code
});

Docker File:

FROM ubuntu:18.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
    apt-get install -y \
        curl \
        sudo \
        software-properties-common

RUN add-apt-repository -y ppa:ubuntu-mozilla-security/ppa
RUN apt-get update && apt-get install -y firefox

RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
RUN apt-get install -y nodejs

RUN npm install -g testcafe

Steps to Reproduce:

Run docker build with the dockerfile: `docker build -T
Run docker run with the test file mounted somewhere or just cut & paste it.
Inside the docker execute testcafe firefox:headless test.js
See the error:

ERROR The Firefox 68.0.0 / Ubuntu 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.

Your Environment details:

testcafe version:                   1.3.2
node.js version:                   v10.16.0
command-line arguments:   firefox:headless test.js
browser name and version: firefox headless 68.0
platform and version:          Ubuntu 18.04 docker

Hi @cetra3

I've updated the Firefox browser version up to 68 in our Dockerfile and build the new docker image.
After that, I run a simple test using the created docker image.
All works as expected.

This fact means the cause of the problem is not Firefox 68. Most likely the cause of the problem is in Docker file settings. We need additional time to investigate the problem more deeply.

@miherlosev
Yeah I'm not sure where the issue is, but I see there is a related closed issue that has a similar problem.
You should be able to replicate with the included Dockerfile which uses the ubuntu 18.04 image.

You should be able to replicate with the included Dockerfile which uses the ubuntu 18.04 image.

I hope so, but we need additional time to do this. We will update this thread as soon as we have any results.

Thank you for your patience. I tried to reproduce the issue using an image based on the provided Dockerfile and our basic example, but it didn't appear with my configuration. The huge RAM consumption indicates a problem with the browser. I will try to prepare a debug build that will output browser logs to the terminal.

Please use this command in your Dockerfile to install the debug build:
RUN npm i -g https://git.io/fj7CF

The debug build will output browser logs to your CI build log. Please collect and share them with me.

I can't see any output when I run:
testcafe firefox:headless test.js

The output is as follows:
ERROR The Firefox 68.0.0 / Ubuntu 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.

Type "testcafe -h" for help.

To throw a spanner in the works, this appears to work fine on newer versions of Docker, but I'm not too sure why this matters.
The version of Docker I am running where I can replicate the issue is: Docker version 17.05.0-ce, build 89658be on an Ubuntu 14.04 server.
The newer version is running Docker version 19.03.1, build 74b1e89 on an Ubuntu 18.04 server.

Absence of browser logs indicates that some problem in the environment can cause browser failures. Since you can't reproduce this problem with newer OS and Docker version, I guess that the problem was caused either by the OS or Docker.

Yep, I agree.  Hopefully this issue will assist if other people run into it!


[AUTOMATED] Update Version Pinning for Terraform to support 0.13

What

Update Version Pinning for Terraform to support 0.13

Why

This is a relatively minor update that the CloudPosse module already likely supports.
This allows module consumers to not individually update our Terraform module to support Terraform 0.13.

/test all

/test all

/test all

/test all


fix(docs): correct the docs for AWS Athena, CLI, DynamoDB and ECR

As discussed, I have added accessKeyId, secretKeyId and region in all the examples.


Frame rate limiter (v2)

Turns out that stalling the queue thread works significantly better than stalling the app thread.
Supersedes #2091.

There seems to be a difference in vsync detection between D3D9 and 11 (VRR off yet): In D3D9 games like Mirror's Edge, I have to go down to 82fps to make the fps limiter still enable with 85Hz vsync. When I use a value of 83fps, it is disabled and fps are capped by vsync at 85fps instead. In D3D11 Witcher 3, I can enable vsync and the limiter still caps fps at 84 when configured to.
Imho it'd be nice if the vsync detection doesn't turn of the limiter as long as the defined value for the limiter is at least 1fps lower than the display's refresh rate to allow a bit of flexibility for VRR usage.
Blurbusters tested input-to-pixel input lag of vsync vs. vsync + fps limiter and it showed how atrocious the input lag is that is caused by vsync capping fps, even with VRR enabled (with the driver's CPU prerender option set to 1, I think both values would be higher/lower by the same amount, not changing the relative distance):
https://blurbusters.com/gsync/gsync101-input-lag-tests-and-settings/4
https://blurbusters.com/gsync/gsync101-input-lag-tests-and-settings/7

Works like a charm with VRR. The display is overclocked to 64.8Hz and Heroes of the Storm and Days Gone run really well with vsync + an fps limit of 64fps.
 So, once again DXVK can be a savior for AMD Windows users when the driver features let you down. :)

There seems to be a difference in vsync detection between D3D9 and 11

There is not; since this is implemented in the backend, the vsync detection just checks the present mode.
Note that using the environment variable (DXVK_FRAME_RATE) bypasses this and always enables the limiter, while using the config file does not (because we do enable this by default for some games).

I guess i am not super happy about having to lock a third mutex for presenting even in the case where this is disabled.
It probably doesn't matter (especially if it ends up being an SRW mutex) but... it does bug me a bit.
Anyway, other than that, lgtm.

In Watch Dogs Legion, the limiter still doesn't work correctly on Windows. A limit of 50 runs with 50fps on Linux/Wine, whereas on Windows it's something in the 30ies (and RTSS graph looks fat). It's really weird, as it definitely works correctly in other games.

Not sure if I can be arsed to debug that, there's nothing wrong on our end.


ESM Support

When will ESM support be available for this package?

Yep, just got terrifically burnt by this :( Did you find a simple workaround?
I'm seeing what I can find, will post here if I get something clean

Does this really mean appinsights doesn't support ESM-modules? I have tried this and that with version 3.1.0 and nothing works.

By overriding a dependency, the error seems to be resolved. Maybe this also works for you?
...
  "overrides": {
    "@opentelemetry/instrumentation": "0.52.1"
  },
...


[AIRFLOW-1325] Use Elasticsearch as logging backend

Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Airflow 1325 issues and references them in the PR title.

Description

[x] Here are some details about my PR, including screenshots of any UI changes:
Please refer to Airflow 1325 for more details.

This PR depends on #2383
This PR is made the following changes:
Frontend

ti_logs.html This adds JS to fetch from flask endpoint get_log.

Flask Endpoint

get_log The endpoint for fetching logs from logging backend.

Logging Backend (Most Important)

airflow/logging_backends folder.  The general idea here is to dynamically instantiate logging backend class based on user configuration logging_backend_url. The current logic with S3/GCS won't be changed if logging_backend_url is not configured.

BaseLoggingBackend: an interface exposed to query logs. ElasticsearchLoggingBackend is an implementation of this base class.
imports.py: a util file to get class reference by name.
logging_backend.py: it acts like cached_app except it returns a cached logging backend.

Test

test_elasticsearch_logging_backend.py: A ES integration test.
test_elasticsearch.sh: A script to run integration test with Elasticsearch logging backend using Docker. This is not added to Travis-CI because Elasticesarch requires > 30s to install, initialize and execute the test.
test_logging_backend.py: Test getting logging backend correctly.
test_imports.py: Test importing class by its full name.

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Unit test for logging_backend.py and imports.py
Integration test for ElasticsearchLogginBackend using Docker.

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@aoen @amaliujia

Codecov Report

Merging #2380 into master will decrease coverage by 0.23%.
The diff coverage is 26.47%.

@@            Coverage Diff             @@
##           master    #2380      +/-   ##
==========================================
- Coverage   69.22%   68.99%   -0.24%
==========================================
  Files         145      149       +4
  Lines       11134    11198      +64
==========================================
+ Hits         7708     7726      +18
- Misses       3426     3472      +46

Impacted Files
Coverage Δ

airflow/logging_backends/base_logging_backend.py
0% <0%> (ø)

.../logging_backends/elasticsearch_logging_backend.py
0% <0%> (ø)

airflow/bin/cli.py
52.06% <100%> (ø)
:arrow_up:

airflow/utils/imports.py
33.33% <33.33%> (ø)

airflow/logging_backend.py
50% <50%> (ø)

airflow/www/views.py
67.45% <54.54%> (-0.17%)
:arrow_down:

... and 1 more

Continue to review full report at Codecov.

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

@bolkedebruin I realized there might be some confusion of logging backend abstraction. As you mentioned, we can have customized logging handlers, but no matter which handler we use, Webserver needs a way to query those logs, in S3, GCS, ES, etc. Abstraction layer in this PR is between Webserver and any of the logging backend. Let me know if you have more comments :)

Close this PR in favor of #2469.


all GJGameLevel Keys

big thanks to Shira/blaze and zmx for speeding this up by a lot

hi, after briefly looking at this i would like to know why the texture of every single object in the game is also part of this pull request

hi, after briefly looking at this i would like to know why the texture of every single object in the game is also part of this pull request

aaah that was a part of a seperate project i never meant to add, will remove right away

this branch rn has conflicts because of #45


Feature Request: Searchable descriptions

Hey really great job on the cheat sheets, I have not been able to find any other resources on the subject. That being said, the functionality that is missing for me is the ability to have these is a single file that I can easily open with a vim keybinding, then search for the icon I am looking for. For instance, searching for "battery" would provide all locations of a glyph matching that description.

Just stumbled across this again.
@samerickson, this is great work by @just3ws :bowing_man: and maybe this isn't quite what you want but we've overhauled the cheat sheet on the website, you can see all 'battery' related icons: https://www.nerdfonts.com/cheat-sheet?set=battery
If you want something in the markdown that is searchable then it probably isn't what you want. There are css class names that could probably easily be mapped to the markdowns @just3ws has here..

@ryanoasis Yes, I did not mean for it to sound like I am not appreciating the work that has gone into this, in fact this is the best solution I have ran into. Through, my thoughts were is this is intended for usage in the terminal, it would be nice to be able to search through them as well. At the time of me writing this, I was prepping for mid terms, but I have a bit of time before the school year ramps up, I have time to add descriptions.
The we interface, at least for me, is borderline unusable. It just feels clunky, but at least it works, so I guess it's better than nothing.

Hey @samerickson and @ryanoasis! Thanks, glad you've found it useful. I've been on a break for past few days so haven't had a chance to reply. This set of files is pretty old and was just something I generated over my commute so I could visualize the glyphs I wanted to use in command prompts. The search was nothing more than ack and lots of scrolling to find the glyph that was most like what I wanted.
@samerickson I totally agree about the web interface. The biggest reason I created this was because I could view the glyph in the same context I'd be using it. Usually Vim and Zsh.
FWIW I don't know if the codes have been altered since this was originally generated. I might look at it again on the train and see if it could be cleaned up a bit. Maybe adding some descriptions would be good but I didn't have an easy way to do that that I can recall.

Hah. I just realized that your comment @samerickson was from February. Sorry this feel though the cracks. No disrespect intended by the ridiculously long delay in replying. I just saw the new messages popup over my break.

Hey @just3ws no worries. I have started adding descriptions to as many icons as I can identify without preforming a google search: https://github.com/samerickson/nerd-font-cheatsheets


update to 0.14.0-dev.91+a154d8da8

I am not sure, if the output of the child process should be used or not, but this change lets it compile again.

Thanks! We'll see if the output is useful, maybe for errors and such. I don't know if it prints those by default now...


Adds remote error queue and replaces Jimson with Ruby's DRb

This adds error sharing between clients. This is useful when you want to prepare an error on client A that lets a request on client B fail. In our case we have an "external" service that's using stripe ruby mock and an another service that runs the specs and prepares and Stripe::Card error.
I've replaced Jimson with Ruby's DRb so actual Ruby objects can be shared, in this case the prepared error type. Before switching to DRb I tried to implement this in Jimson but I didn't like the serialisation/marshalling of error types too much. In this application, where client and server share the same code, DRb looked like an ideal candidate to share client / server data.
This pr still needs some TLC.

Being able to drop Jimson would be awesome, as it looks to be no longer maintained, and is causing this gem to not work under Rails 5 (see #341). You mention this PR needs some TLC. Anything specific?

Remove the leftover Jimson stuff and remove it as dependency. I'll create a cleanup pr!

@Willianvdv Good to know! I've already created a clean up PR in #342.


Key/Secret auth fails after upgrade from v1.5.7 to v1.6.6-rc3 with AD auth enabled

Rancher versions: v1.6.6-rc3
rancher/server: v1.6.6-rc3
Infrastructure Stack versions:
healthcheck: v0.2.3
ipsec: v0.11.2
network-services: metadata:v0.9.1 network-manager:v0.6.6
scheduler: -
kubernetes (if applicable): k8s:v1.5.4-rancher1-4
Docker version: (docker version,docker info preferred)
1.12.6
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
RHEL 7.3
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
AWS
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node, internal DB
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
k8s
Steps to Reproduce:

deploy server:v1.5.7
create k8s environment
enable AD auth
create Key/secret and test using rancher cli. Should work with no problems.
upgrade to server:v1.6.6-rc3

Results:

Key/Secret auth fails after the upgrade:

./rancher config
URL [http://<IP_ADDRESS>:8080/v2-beta/schemas]: http://111.222.333.444:8080/
Access Key [F8F48999E71FD92D4AC0]: 97BB179995EE0484229
Secret Key [R5H4ATaxuZHRCsHRkdLfiYhoVsfFnQgyVvaoiR4x]: n5RAZRiDB3xMywHP4u7ysgVt3SQezKL3LinwdVLD
FATA[0027] Bad response statusCode [400]. Status [400 Bad Request]. Body: [message=Token malformed after retrieval., baseType=error, code=InvalidFormat] from [http://111.222.333.444:8080/v2-beta]

Creating new keys also doesn't work.

Available in v1.6.8-rc1

Tested upgrade from v1.6.7 to v1.6.8-rc1. Tests passed


[Win/Linux] add a graalvm native image example

Add an example sbt project that can build dashboard example app into standalone binary with graal vm native image on Windows and Linux.
To add an example, I moved examples/*  to examples/dashboard/*

graalvm-ce-java16:21.1.0
Windows 10 amd64
ubuntu 20.04 amd64

git clone git@github.com:HumbleUI/JWM
git checkout add-example
cd examples/sbt
sbt nativeImageCommand nativeImageRunAgent
sbt nativeImage

./target/native-image/example

Is the native-image-configs folder meant to be generated by the end user in the demo?
Cloned this repo to try on Windows. When building, I get this:
rayga@DESKTOP-88A51E5 MINGW64 ~/Projects/tmp/JWM/examples/sbt (add-example)
$ sbt.bat -Dsbt.log.noformat=true 'show nativeImage'

[info] welcome to sbt 1.5.5 (GraalVM Community Java 16.0.2)
<SNIPPED>

[info] C:\GraalVM\graalvm-ce-java17-21.3.0-dev\bin\native-image.cmd -cp C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image-internal\manifest.jar -H:ReflectionConfigurationFiles=C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image-configs\reflect-config.json -H:ConfigurationFileDirectories=C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image-configs -H:+JNI --no-fallback --report-unsupported-elements-at-runtime --allow-incomplete-classpath io.github.humbleui.jwm.examples.Example C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image\example
[C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image\example:18952]    classlist:   4,319.00 ms,  0.96 GB
[C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image\example:18952]        (cap):   5,956.32 ms,  0.96 GB
[C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image\example:18952]        setup:   7,286.96 ms,  0.96 GB
Error: The reflection configuration file "C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image-configs\reflect-config.json" does not exist.
[C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image\example:18952]      [total]: Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
 11,693.93 ms,  0.96 GB
# Printing build artifacts to: C:\Users\rayga\Projects\tmp\JWM\examples\sbt\target\native-image\example.build_artifacts.txt
Error: Image build request failed with exit status 1
[error] native-image command failed with exit code '1'
[error] (nativeImage) native-image command failed with exit code '1'
[error] Total time: 17 s, completed Oct 3, 2021, 12:48:44 PM

@GavinRay97 Did you run sbt nativeImageRunAgent?

cd examples/sbt
sbt nativeImage
// ↑ Running this may be necessary to fetch graal native specified in `build.sbt` and its agent component before `sbt nativeImageRunAgent`.
// !! Note that this command will fails due to "path/to/native-image-configs/reflect-config.json does not exist" error, but it is not probrem. Just ignore it.

sbt nativeImageRunAgent
// ↑ this will generate "target/native-image-configs" directory and configuration files.
// If this fails because of "Could not find agent library native-image-agent on the library path" error,
//  try running `sbt nativeImage` command first to fetch agent component and re-run `sbt nativeImageRunAgent`.

// run again
sbt nativeImage

./target/native-image/example

Ahhh okay, yeah this the step I missed -- thanks!

Thank you for trying this!
If something still goes wrong, please feel free to ask!

Thanks for the PR, merged to main.
I renamed examples/sbt to examples/native-image, seems to be better-suited.
One thing though: right now *.java in examples/native-image is a copy of *.java from examples/dashboard. I would prefer if we shared source files somehow, otherwise they will start drifting at some point. Is it possible with sbt?

@tonsky

Is it possible with sbt?
yes, Iwill send PR soon.


DNP3 Protocol help...

I'm starting a new project using node-modbus-tcp to read data on device...it's work fine!! i would like a help to implement a code to send data reading from node-modbus-tcp and send to SCADA Software using a DNP3 protocol...Is it possible?

You could ask Ivan see https://github.com/IvanGaravito/dnp3-lib