Testing observable has very large timeframe

RxJS version:
beta.12
Additional information:
let's say one of observable to be tested have relatively long timeframe such as
source = cold('1--2--#');
notifier = Observable.timer(10 * 1000, testScheduler) //expect retry after 10sec

expected = ???
expectObservable(source.retryWhen(notifier)).toBe(expected);

first, since TestScheduler limits maximum virtual frame less than 1000, retry logic won't be flushed by testScheduler. Secondly, it is hard to draw marble diagram for expected values even scheduler supports it since timeframe becomes excessively long.
I think it's not general, frequent cases though - is there any possible representation for this cases?

I'll aggregate this into https://github.com/ReactiveX/rxjs/issues/1775, which'll discuss revised interface allows similar scenario as well.


2010 and earlier bootstrapper style

You should add the 2010 and earlier bootstrapper style, and it should look like the image below.

I was originally going to have this as part of the 1.0.0 release, but had to remove it for now due to some difficulties. If possible, it may be added back in the future.

Added as part of the v1.2.0 update


Telos EVM Metrics

Add metrics to the Antelope Tools Dashboard for tEVM supporting
The tEVM improves on the EVM by implementing it’s own version of the EVM. Telos has implemented the original EVM as a smart contract on the tEVM.  More info, here.
Metrics
Creating new source of information will expand the usability of Antelope Tools not only based on AntelopeIO networks but also the extensions of the capabilities of the network, such as an EVM implementation, for example, tEVM.

[x] Average block time. (box) (tEVM = .5s, EOS EVM = 1s)

[x] Gas price. (box)

[x] Average gas usage: Show to average gas usage in the last 30 transactions. (box)

[x] Total wallets created. (box)

[x] Average transactions per day (block and eosio.token -> ERC20). (box)

[x] Daily transactions. (chart line)

[x] ATH. (box)

[x] RPC endpoints: Show endpoint, latency, health check. Reference: Telos Health and Chainlist.

Support Content
web3-examples.zip

https://github.com/edenia/antelope-tools/pull/1249
https://github.com/edenia/antelope-tools/pull/1256
https://github.com/edenia/antelope-tools/pull/1260


(request org repo) highlightjs-bend

I would like to request the creation of a highlightjs-bend repository for my 3rd party grammar.

[x] I have an existing personal repository ready to go

Metadata

Grammar Name: Bend
Link to repo: https://github.com/RohanVashisht1234/bend-highlight-js/

Requirements

[x] I've read the language Contributor Checklist
[x] I've read the Language Contribution Guide
[x] I'm currently willing to support and maintain this grammar over time
[x] That repo includes a dist folder with CDN-ready CJS and ESM builds
[x] That README.md includes examples of simple web usage
[x] That README.md includes examples of Node.js usage

Afterwards
Submit a PR that:

[x] adds mention of your new language to CHANGES.md
[x] updates SUPPORTED_LANGUAGES.md in the main library

Um, it has been more than 3 weeks, please reply when ever you have time.

Sorry somehow I missed this.
https://github.com/highlightjs/highlightjs-bend

ok, I have updated https://github.com/highlightjs/highlightjs-bend


DOC-3537-argocd-version

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[x ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

https://harness.atlassian.net/browse/DOC-3537

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


AccessDeniedException for hybrid job submission

Hi, I'm trying to submit a hybrid job to Aquila on Amazon Braket. My account has the permissions to run these jobs: When I click on "verify existing roles" I see this: "Roles were found with sufficient permissions to execute hybrid jobs."
However when I try to submit my job, I get the following error:
"AccessDeniedException: An error occurred (AccessDeniedException) when calling the CreateJob operation: This account is not authorized to use this resource. In order to access additional resources, please contact customer support"
The code I'm trying to compile on the Python notebook is
from braket.aws import AwsQuantumJob
from braket.devices import Devices

job = AwsQuantumJob.create(
    device="arn:aws:braket:us-east-1::device/qpu/quera/Aquila",
    source_module="batchEvolution.py",
    entry_point="batchEvolution:startHere",
    wait_until_complete=True
)

I followed the documentation on AWS website to write this code. Could you help me with this?
Thanks!
Ceren.

Hi @cbdag,
This appears to be related to your IAM permissions. Please reach out to the Support Center for assistance unblocking you.
To do so:

Login to your AWS Management Console
2 .Once logged in, create a case by visiting the Support Center (https://support.console.aws.amazon.com/support/home)
Use the routing path - Service Account Activation, Category Account Verification, Severity: General question

Ref: https://repost.aws/questions/QU-tQt9DazRAGRrAeypzaHEQ/accessdeniedexception-an-error-occurred-accessdeniedexception-when-calling-the-createjob-operation-this-account-is-not-authorized-to-use-this-resource


There has a problem in version 2.1.3，when I import vconsole!!

Operating System:MacOs 10.13.4
Node Version:v11.12.0
NPM Version:6.7.0
webpack Version:4.35.0
uglifyjs-webpack-plugin Version:2.1.3

Expected Behavior
I used vconsole in my project, hoping to pack it properly.
Actual Behavior
When I upgraded to version 2.1.3, I found that packaged files deployed in nginx would report errors.
Code
  // webpack.config.js
 const Uglifyjs = require('uglifyjs-webpack-plugin');
 new Uglifyjs({
     parallel: true,
     sourceMap: true,
     cache: true,
  })

  // additional code, HEY YO remove this block if you don't need it
  import Vconsole from 'vconsole';
  new Vconsole();

How Do We Reproduce?

npm install vconsole -D;
Use this Plugin in version 2.1.3;
Deploy packaged files on nginx；
Open the file,you will find this error in Browser：Uncaught TypeError: Super expression must either be null or a function

Please use terser-webpack-plugin


Create a Test Specification document for ds VideoPort

Create a Test Specification document for VideoPort to covers L2, L3

merged to develop


  Keyboard handling isn't fully baked yet but this issue appears to be newly introduced.  Comparing the key values sent from UWP embedding and win32 embedding, the difference is as follows:
FlutterWindowWin32::OnKey sends:
key: 162
scancode: 29
action: 256
character: 0
extended: false
wasdown: false
to the engine where as
FlutterWindowWinUWP::OnKeyDown sends:
key: 17
scancode: 29
action: 256
character: 0
extended: false
wasdown: false
The result is malformed XML passed back on the platform channel which causes things to blow up.  Even though there is a problem with the payload, seems like the XML parser should be hardened to not blow up (a related case where this seems bad is if a key is held during app launch which repro's in current win32 embedder on windows).
I tried hacking around this by
if (key == 17) {     key = 162;   }
But that didn't fix it suggesting there is other state / machinery at work here that hasn't been implemented in UWP text input handling yet.
Steps to Reproduce
Ensure you are right at the tip of flutter framework, master

Clone the flutter_runner project from here: https://github.com/clarkezone/runner-uwp.git
Switch to dev branch git checkout dev
cd src
flutter run -d winuwp
when prompted, press y to launch app
once app launches, press and release the ctrl key

Expected results:
Pressing control and releasing it does nothing
Actual:
flutter_windows_winuwp.dll!rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::IsObject() Line 1024
	at c:\src\f\engine\src\third_party\rapidjson\include\rapidjson\document.h(1024)
flutter_windows_winuwp.dll!rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::FindMember<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>(const rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> & name) Line 1255
	at c:\src\f\engine\src\third_party\rapidjson\include\rapidjson\document.h(1255)
flutter_windows_winuwp.dll!rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator[]<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>(const rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> & name) Line 1135
	at c:\src\f\engine\src\third_party\rapidjson\include\rapidjson\document.h(1135)
flutter_windows_winuwp.dll!rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::operator[]<const char>(const char * name) Line 1119
	at c:\src\f\engine\src\third_party\rapidjson\include\rapidjson\document.h(1119)
flutter_windows_winuwp.dll!flutter::KeyboardKeyChannelHandler::KeyboardHook::<unnamed-tag>::operator()(const unsigned char * reply, unsigned __int64 reply_size) Line 143
	at c:\src\f\engine\src\flutter\shell\platform\windows\keyboard_key_channel_handler.cc(143)
[External Code]
flutter_windows_winuwp.dll!flutter::BinaryMessengerImpl::Send::<unnamed-tag>::operator()(const unsigned char * data, unsigned __int64 data_size, void * user_data) Line 88
	at c:\src\f\engine\src\flutter\shell\platform\common\client_wrapper\core_implementations.cc(88)
flutter_windows_winuwp.dll!flutter::BinaryMessengerImpl::Send::<unnamed-tag>::__invoke(const unsigned char * data, unsigned __int64 data_size, void * user_data) Line 84
	at c:\src\f\engine\src\flutter\shell\platform\common\client_wrapper\core_implementations.cc(84)
flutter_windows_winuwp.dll!FlutterPlatformMessageCreateResponseHandle::<unnamed-tag>::operator()(const unsigned char * data, unsigned __int64 size) Line 1669
	at c:\src\f\engine\src\flutter\shell\platform\embedder\embedder.cc(1669)
[External Code]
flutter_windows_winuwp.dll!flutter::EmbedderPlatformMessageResponse::Complete::<unnamed-tag>::operator()() Line 29
	at c:\src\f\engine\src\flutter\shell\platform\embedder\embedder_platform_message_response.cc(29)
flutter_windows_winuwp.dll!fml::internal::CopyableLambda<`lambda at ../../flutter/shell/platform/embedder/embedder_platform_message_response.cc:27:25'>::operator()<>() Line 24
	at c:\src\f\engine\src\flutter\fml\make_copyable.h(24)
[External Code]
flutter_windows_winuwp.dll!flutter::EmbedderTaskRunner::PostTask(unsigned __int64 baton) Line 78
	at c:\src\f\engine\src\flutter\shell\platform\embedder\embedder_task_runner.cc(78)
flutter_windows_winuwp.dll!flutter::EmbedderThreadHost::PostTask(__int64 runner, unsigned __int64 task) Line 270
	at c:\src\f\engine\src\flutter\shell\platform\embedder\embedder_thread_host.cc(270)
flutter_windows_winuwp.dll!flutter::EmbedderEngine::RunTask(const FlutterTask * task) Line 260
	at c:\src\f\engine\src\flutter\shell\platform\embedder\embedder_engine.cc(260)
flutter_windows_winuwp.dll!FlutterEngineRunTask(_FlutterEngine * engine, const FlutterTask * task) Line 1928
	at c:\src\f\engine\src\flutter\shell\platform\embedder\embedder.cc(1928)
flutter_windows_winuwp.dll!flutter::FlutterWindowsEngine::FlutterWindowsEngine::<unnamed-tag>::operator()<FlutterTask>(const FlutterTask * task) Line 153
	at c:\src\f\engine\src\flutter\shell\platform\windows\flutter_windows_engine.cc(153)
[External Code]
flutter_windows_winuwp.dll!flutter::TaskRunnerWinUwp::PostFlutterTask::<unnamed-tag>::operator()() Line 41
	at c:\src\f\engine\src\flutter\shell\platform\windows\task_runner_winuwp.cc(41)
flutter_windows_winuwp.dll!winrt::impl::delegate<winrt::Windows::UI::Core::DispatchedHandler,`lambda at ../../flutter/shell/platform/windows/task_runner_winuwp.cc:41:7'>::Invoke() Line 1087
	at c:\src\f\engine\src\third_party\cppwinrt\generated\winrt\Windows.UI.Core.h(1087)

`c:\src\f\engine\src>flutter doctor -v
[✓] Flutter (Channel master, 2.3.0-2.0.pre.164, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
• Flutter version 2.3.0-2.0.pre.164 at C:\src\f\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 79709605ce (5 hours ago), 2021-05-13 04:33:36 -0400
• Engine revision 08d9bc0fdd
• Dart version 2.14.0 (build 2.14.0-111.0.dev)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.4)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.9.31205.134
• Windows 10 SDK version 10.0.19041.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[✓] VS Code (version 1.56.1)
• VS Code at C:\Users\james\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.22.0
[✓] Connected device (4 available)
• Windows (desktop)       • windows • windows-x64     • Microsoft Windows [Version 10.0.19042.928]
• Windows (UWP) (desktop) • winuwp  • windows-uwp-x64 •
• Chrome (web)            • chrome  • web-javascript  • Google Chrome 89.0.4389.90
• Edge (web)              • edge    • web-javascript  • Microsoft Edge 90.0.818.56`

Isn't it a JSON parser, not an XML parser?


Problems using highway and crossing bridges with default car profile

Hi.
I think i am using the newest nuget prerelease, and a fresh OSM database.
I have contracted car fastest graph
routerDb.AddContracted(Vehicle.Car.Fastest())
But yesterday i found out, that i does not choose the highway, as it used to. Now it looks like it chooses any road, as long as its the shortest route. I don't know if something have changed in the Car profile ?. It might look like it does not travel any faster on highway, in the default profile ?
And another thing, it does not cross the main bridges i Denmark anymore. I don't think its a OSM change, but I am not quite sure.
Thanks again, for the effort you put into the project :-)

Hi Again.
I have updated the project every time you have made a new version,  the last two weeks. But I still have the same problem.
But it must be only me then ?. The biggest problem is that it does not choose highways, or keep to them.
I can make a few sample screenshots if that helps.
BR
Martin.

Feel free to send the screenshots and the exact coordinates of the route. I'm assuming you are using Denmark?

ping @t22dk
I included ferries in the default routing... have you retested this?


[BUG] Failed to create image when deployed in private network environment

Describe the bug
I've deployed Harvester using ISO in a private network, where HTTP Proxy is required to fetch external URLs. During the installation, the HTTP Proxy was set accordingly.
I tried to create an image using an external URL (https://cloud-images.ubuntu.com/focal/20210707/focal-server-cloudimg-amd64.img), it failed and shows error message:

Head https://cloud-images.ubuntu.com/focal/20210707/focal-server-cloudimg-amd64.img: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Then I SSHed into harvester and run command sudo k3os config --dump then I notice there was no http_proxy and https_proxy inside the config.
To check if it's other networking issues, I set up an Nginx HTTP server to serve the same image within the private network, then Harvester can create the image without any issue.

To Reproduce

Install Harvester using ISO, and properly set up HTTP Proxy information.
Wait until Harvester to enter ready state.
Create an image using URL https://cloud-images.ubuntu.com/focal/20210707/focal-server-cloudimg-amd64.img
The creation failed with error message: Head https://cloud-images.ubuntu.com/focal/20210707/focal-server-cloudimg-amd64.img: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Expected behavior
Create images with external URLs in a private network using HTTP Proxy should be fine.
Support bundle
Environment:

Harvester ISO version: harvester-v0.2.0-amd64.iso
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal

Additional context
I've tried updated HTTP Proxy information by adding /var/lib/rancher/k3os/config.yaml with following content:
k3os:
  environment:
    http_proxy: http://our-proxy:8080/
    https_proxy: http://our-proxy:8080/

Then enter the command sudo k3os config but this doesn't seem to work. I'm not familiar with k3os, maybe there's a way to configure HTTP Proxy manually?

The proxy configuration of the installer is used to fetch remote config files during the installation. It takes no effect afterward.
Configuring in the OS environment does no help because jobs are done in containers.
Theoretically, it works if we set http_proxy envs to harvester server pods and longhorn backing-image-manager pods(who do the download work) but it seems that backing-image-manager pods are not configurable wrt envs. We might need to investigate how to make the proxy configuration easier, e.g. have a mutating webhook to inject proxy envs.
In short, the workaround in the current release is to serve images or use a proxy as you did in the private environment.

my bad, the PR is not merged, should be a mistake of moving the issue around. Will be supported via https://github.com/harvester/harvester/pull/1337

Awaiting for UI changes

Verified fixed on master-45e25939-head. Close this issue.
Result
With the new http proxy feature provide in #1218 , we can set proxy value in harvester settings to create image from URL through the internal proxy server

Test Information

Test Environment: 3 harvester nodes on local kvm machines
Network: airgapped network created by vagrant pxe example
Http proxy: squid server on pxe_server
Harvester version: master-45e25939-head

Verify Steps

Clone the ipxe example in the offline feature branch
Create 3 nodes harvester by using vagrant pxe example
Open settings
Provide the following value in the http-proxy settings

{
  "httpProxy": "http://<IP_ADDRESS>:3128",
  "httpsProxy": "http://<IP_ADDRESS>:3128",
  "noProxy": "localhost,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>/8,cattle-system.svc,<IP_ADDRESS>/16,.svc,.cluster.local,example.com"
}

Create image from URL
https://cloud-images.ubuntu.com/focal/20211116/focal-server-cloudimg-amd64.img


Should automatically shutdown the Default MySQL before setup a MySQL

I get this error when I try to setup a mysql instance in my Actions workflow. Any idea what I'm doing wrong?
docker: Error response from daemon: driver failed programming external connectivity on endpoint busy_mcnulty (e90f9b113c26a0772d43fe413b6c5755204a5459a16817a6ff398ca003a859ee): Error starting userland proxy: listen tcp <IP_ADDRESS>:3306: bind: address already in use.
Here's my workflow:
jobs:
  ruby:
    name: Ruby Tests
    runs-on: ubuntu-latest
    steps:
      - uses<EMAIL_ADDRESS>        with:
          redis version: "4"

      - uses<EMAIL_ADDRESS>        with:
          mysql version: "5.7.17"
          mysql root password: "test"

      - uses<EMAIL_ADDRESS>
      - name: Setup Ruby
        uses<EMAIL_ADDRESS>        with:
          ruby-version: 2.5.5

      - name: Install Dependencies
        run: bundle install

      - name: Setup Database
        env:
          RAILS_ENV: test
          DATABASE_URL<EMAIL_ADDRESS>        run: bundle exec rake db:create db:schema:load --trace

      - name: Run Tests
        env:
          RAILS_ENV: test
          DATABASE_URL<EMAIL_ADDRESS>        run: bundle exec rspec

I got the same error when the host port was 3306. I changed both ports and it works for me.

@keyflight Thanks. Curious why the default port doesn't work.

@keyflight @fbjork Just found this out: looks like mysql is already installed on ubuntu (version 5.7) with root user password "root". Actually quite a bit of software is available:
https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts

Hi there,
Sorry for late reply.
Sounds like the host port 3306 has bound. It seems like MySQL was set-up twice or the port 3306 has been bound. If is the former, I will try add a --restart option to command line, but maybe I need more information about this problem.

Hi there,
I try to reproduced it. The Action building will run entry-point first, then the Action running will run entry-point again, so MySQL will be set-up twice.

For now, there is no built-in functionality to execute a command on the host before docker build (i.e., no "hooks" to trigger scripts on the host).
@fbjork @keyflight So we should run a script that will shutdown the Default MySQL before we set-up MySQL. Or just use the Default MySQL.
I have added its description to README, it is not a solution but it may be solve this problem.
Keep this issue, maybe we can fix this in future.

GitHub Actions Breaking Change:
Starting March 3rd, 2020, the Ubuntu virtual environments will no longer start the MySQL service automatically.
https://github.com/actions/virtual-environments/issues/375


dependant OneLogin php forces unwanted Metadata tags when using MicroFocus  AccessManager

Describe the bug
Not really a bug but an advisement if one is using a Microfocus AccessManager based IDP
The dependancy on which this code depends is from OneLogin-PHP, and this code implements (by default) Metadata tags 'validUntill' and 'cacheDuration'.
A microfocus AccessManager IDP does not (in its current form/version) have a mechanism to dynamically reload Metadata and coap with this tag - but if it is present it will honor it.
To Reproduce
Steps to reproduce the behavior:

this is default behaviour

Expected behavior
As stated above the most wishfull situation is that (as stated in the SAML specifications regarding this its optional) one would be able to omit this tag.
Current implementation however accepts a parameter to extend/reset a/the default, but has no option to omit the parameter in the generated Metadata.
pfSense Version & Package Version:

pfSense Version: [e.g. pfSense 2.5.1]
Package Version [e.g. v1.1.0]

Identity Provider Information:

IdP Name: Microfocus AccessManager v 4.5.3
IdP Type: internal/On-Site

Additional context
As this isnt a bug to the package itself, but more a 'limitation' as to a dependant package i just wanted to provide a solution/hack if one is using the mentioned IDP.
How to avoid this issue
The solution is 2-ways :

either after the metadata has been generated you manually remove both tags from it ( validUntill, and cacheDuration)
go into the code of the package and delete lines :
https://github.com/jaredhendrickson13/pfsense-saml2-auth/blob/27f93507d11f1818abef308d693b47df4534b1ed/pfSense-pkg-saml2-auth/files/etc/inc/saml2_auth/lib/php-saml-3.5.1/src/Saml2/Metadata.php#L178
and line
https://github.com/jaredhendrickson13/pfsense-saml2-auth/blob/27f93507d11f1818abef308d693b47df4534b1ed/pfSense-pkg-saml2-auth/files/etc/inc/saml2_auth/lib/php-saml-3.5.1/src/Saml2/Metadata.php#L179

After that save the file, and you are safe for aslong as you dont upgrade the package.
PS,
I am still in discussion with the dependant package-maintainer to see if i can change this behaviour.
Best regards,

Glowsome

Thanks for providing this information and your workaround. Hopefully anyone else running the same IdP can find this information helpful.
I've subscribed to the issue you opened on the php-saml repository. If/when such a change is implemented and released in the upstream code I will implement it in this package as quickly as possible. I would very much prefer not to modify the dependency's code within this package directly, but if the change ends up being too far out or causes too many issues, I can look into some sort of optional patch for AccessManager in this package that can at least allow you to update without reverting your changes.

For your information regarding getting the upstream maintainer of onelogin-PHP to reason as to why such change should be implemented is bumping into a difference of opinion in interpreting the SAML standards, and i cannot seem to be able to convice that person of where i stand, and why i would very much appreciate this change.

Glowsome


addressing silent slack failures issue with new slack functions

…failure

@careduz this PR is to address the silent slack failures we suspect have been occurring. All this commit is, for each DAG, is adding the new slack error function to the DAG's default_args's on_failure_callback attribute


runme run arguments not documented in CLI

Given runme version 1.0.2 (062f5eae9e600244ea23ecc69c6c1cc06c8068de) on 2023-04-18T20:49:06Z
Calling runme run --help prints
Run a selected command identified based on its unique parsed name.

Usage:
  runme run [flags]

Aliases:
  run, exec

Flags:
      --dry-run               Print the final command without executing.
  -h, --help                  Help for run
  -r, --replace stringArray   Replace instructions using sed.
  -s, --server string         Server address to connect runner to
      --tls string            Directory for TLS authentication (default "/Users/christianbromann/.config/stateful/tls")

Global Flags:
      --allow-unknown     Display snippets without known executor (default true)
      --chdir string      Switch to a different working directory before executing the command (default "/Users/christianbromann/Sites/Stateful/projects/runmejs")
      --filename string   Name of the README file (default "README.md")
      --insecure          Run command in insecure-mode

Which shows no documentation or examples of the required arguments. So users might think none are required but running runme run returns with:
accepts 1 arg(s), received 0

Let's make sure the CLI is documented correctly and has examples on how to use it.

@sourishkrout @admc I could put something together here that is inspired from what our friends over at fly.io are doing. They use a similar stack as we do. How about the following:

add this workflow which triggers when a tag was pushed
have this go file generate markdown files with documentation on all commands we have
let this script check the new files into a branch and create a PR to our docs repository

We could have a new CLI page in our docs that includes all these files. Seems straight forward and and an easy win. Wdyt?


[zh-cn]sync garbage-collection.md

content/zh-cn/docs/concepts/architecture/garbage-collection.md

/lgtm
/approve


[WFLY-11526] Remove the modular JVM arguments for mixed domain tests

https://issues.jboss.org/browse/WFLY-11526

This PR requires the java8.home system property to be set for Java 9+. This is a Java 11 job which has the properties that should be used https://ci.wildfly.org/viewLog.html?buildId=134218&. Note the Java 11 job for this PR will fail, but the linked job should hopefully pass.


✍ LaTeX/JATS improvements for Proofs

This parses algorithm environments in latex and adds the serializers for JATS. There are also a number of latex parsing improvements.

Thanks for the review @fwkoch, I am going to move ahead with this being a separate type, having this be different enough from a paragraph in the latex and jats implementations. Not totally happy with it, but also I think this is something we can back out of in the future when/if we get to a better solution.


Augmented Arguments

Codecov Report

Merging #126 into master will increase coverage by 0.16%.
The diff coverage is 88.23%.

@@             Coverage Diff              @@
##             master     #126      +/-   ##
============================================
+ Coverage     52.05%   52.22%   +0.16%
- Complexity      672      678       +6
============================================
  Files           110      110
  Lines          2507     2518      +11
  Branches        288      291       +3
============================================
+ Hits           1305     1315      +10
  Misses         1043     1043
- Partials        159      160       +1

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/chopchop/logic/parser/ArgName.java
81.81% <84.61%> (-1.52%)
15.00 <3.00> (+4.00)
:arrow_down:

...rc/main/java/chopchop/commons/util/StringView.java
91.08% <100.00%> (+1.08%)
60.00 <5.00> (+2.00)

Continue to review full report at Codecov.

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


several linker errors when using bgfx::init() in visual studio 2013 on Windows 8.1

Hello, I am having some trouble adding bgfx to a project I am working on. I have compiled bgfx as a static library and added the bgfxDebug.lib file to the projects library files as well as included the proper include folder but when I call any function like "bgfx::init();" or "bgfx::shutdown();" I get several linker errors. I have included the code (it is just one source file) and the output I get when building.
[Source.cpp]
include
include <SDL2\SDL.h>
include <bgfx\bgfxplatform.h>
include <bgfx\bgfx.h>
undef main
int main()
{
bgfx::init();
bgfx::shutdown();
std::cout << "hello world!" << std::endl;

std::cin.ignore();

return 0;

}
[Output]
1>------ Build started: Project: GitExample, Configuration: Debug Win32 ------
1>  Source.cpp
1>bgfxDebug.lib(bgfx.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(bgfx.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderer_null.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderer_null.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderer_d3d9.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderer_d3d9.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderer_d3d11.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderer_d3d11.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderer_d3d12.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderer_d3d12.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderer_gl.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderer_gl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderer_vk.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderer_vk.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(vertexdecl.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(vertexdecl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(image.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(image.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(shader_dxbc.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(shader_dxbc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(renderdoc.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(renderdoc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>bgfxDebug.lib(glcontext_wgl.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Source.obj
1>bgfxDebug.lib(glcontext_wgl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>bgfxDebug.lib(renderer_d3d9.obj) : error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function "public: virtual void __thiscall bgfx::d3d9::RendererContextD3D9::submit(struct bgfx::Frame *,struct bgfx::ClearQuad &,struct bgfx::TextVideoMemBlitter &)" (?submit@RendererContextD3D9@d3d9@bgfx@@UAEXPAUFrame@3@AAUClearQuad@3@AAUTextVideoMemBlitter@3@@Z)
1>bgfxDebug.lib(renderer_d3d11.obj) : error LNK2001: unresolved external symbol _GetProcessMemoryInfo@12
1>bgfxDebug.lib(renderer_d3d12.obj) : error LNK2001: unresolved external symbol _GetProcessMemoryInfo@12
1>bgfxDebug.lib(renderer_gl.obj) : error LNK2001: unresolved external symbol _GetProcessMemoryInfo@12
1>bgfxDebug.lib(renderdoc.obj) : error LNK2019: unresolved external symbol _EnumProcessModules@16 referenced in function "bool __cdecl bgfx::findModule(char const *)" (?findModule@bgfx@@YA_NPBD@Z)
1>bgfxDebug.lib(renderdoc.obj) : error LNK2019: unresolved external symbol _GetModuleBaseNameA@16 referenced in function "bool __cdecl bgfx::findModule(char const *)" (?findModule@bgfx@@YA_NPBD@Z)
1>E:\Primordium\Example Source\BGFX Git Example\GitExample\Debug\GitExample.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I was wondering if anyone could help put me on the right track to solving this issue and get started with implementing the bgfx library as my project's rendering backend.
Thanks

It looks like you misconfigured your build system. What are you using?
Default build system works:
https://ci.appveyor.com/project/bkaradzic/bgfx

I believe I am using the vs 2013 debug, it it what it gave me after I ran genie.exe and built that project.

Yes but your GitExample project is one that's broken.

would you know how I could fix that? it is a default empty c++ project so it's configured to whatever my visual studio give it by default.

You have to have consistent compiler and linker settings, you can't mix settings. If you want to try out stuff just use and modify existing bgfx examples.
You'll have to figure out your compiler settings yourself, I can't help you about it.

I know Its old thread but might help some one else.
For this error

error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL'

Answer:
include #define _ITERATOR_DEBUG_LEVEL 0 with new Visual studio it is by default set to 2.

bgfxDebug.lib(bgfx.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj

Answer:
This error is occurs because the bgfx lib was built with c runtime that was muti threaded static. so
go to Project Properties->C/C++->Code Generation->Run time library -> change this to /Mtd if you are in debug mode or /MT

1>bgfxDebug.lib(renderer_gl.obj) : error LNK2001: unresolved external symbol _GetProcessMemoryInfo@12
1>bgfxDebug.lib(renderdoc.obj) : error LNK2019: unresolved external symbol _EnumProcessModules@16 referenced in function "bool __cdecl bgfx::findModule(char const *)" (?findModule@bgfx@@YA_NPBD@Z)
1>bgfxDebug.lib(renderdoc.obj) : error LNK2019: unresolved external symbol _GetModuleBaseNameA@16 referenced in function "bool __cdecl bgfx::findModule(char const *)" (?findModule@bgfx@@YA_NPBD@Z)

Answer:
Above errors are there due to missing libs. Please include following library names in project.
Go to project properties->linker->input->Additional Dependencies and include following names
DelayImpl.lib; gdi32.lib; psapi.lib
Hope this will help some one.
Regards
PixelClear

BGFX's runtime linkage and iterator debug level both differ from Visual Studio defaults, so there's some work to do to make it work with projects using the typical settings.  Regarding the latter, BGFX MSVC projects use the _HAS_ITERATOR_DEBUGGING macro which is deprecated as of MSVC 2015.  Removing this define from the BGFX projects will clear up the issue.
Some info here:  https://msdn.microsoft.com/en-us/library/aa985939.aspx

A related issue related to iterator debug level:  https://github.com/bkaradzic/bgfx/issues/1200

project properties->C/C++->Code Gen->Runtime Library
setting here needs to be consistent across all projects

I know Its old thread but might help some one else. For this error

error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL'

Answer: include #define _ITERATOR_DEBUG_LEVEL 0 with new Visual studio it is by default set to 2.

bgfxDebug.lib(bgfx.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in Source.obj

Answer: This error is occurs because the bgfx lib was built with c runtime that was muti threaded static. so go to Project Properties->C/C++->Code Generation->Run time library -> change this to /Mtd if you are in debug mode or /MT

1>bgfxDebug.lib(renderer_gl.obj) : error LNK2001: unresolved external symbol _GetProcessMemoryInfo@12
1>bgfxDebug.lib(renderdoc.obj) : error LNK2019: unresolved external symbol _EnumProcessModules@16 referenced in function "bool __cdecl bgfx::findModule(char const *)" (?findModule@bgfx@@YA_NPBD@Z)
1>bgfxDebug.lib(renderdoc.obj) : error LNK2019: unresolved external symbol _GetModuleBaseNameA@16 referenced in function "bool __cdecl bgfx::findModule(char const *)" (?findModule@bgfx@@YA_NPBD@Z)

Answer: Above errors are there due to missing libs. Please include following library names in project. Go to project properties->linker->input->Additional Dependencies and include following names
DelayImpl.lib; gdi32.lib; psapi.lib
Hope this will help some one.
Regards PixelClear

now its generates error lnk1104 failed to open dalyimp.lib

@Freemorger See CI, it doesn't have any linker errors: https://github.com/bkaradzic/bgfx/actions


new gpt

Assists with job applications, specializing in cover letters and LaTeX CV refinement.
https://chat.openai.com/g/g-yGdxivD2B-job-assistant-gpt

Merged


TypeError: chown() got an unexpected keyword argument 'name'

UPDATE: This also affects the files.chmod() operation
Describe the bug
TypeError: chown() got an unexpected keyword argument 'name'

files.chown() operation does not accept the 'name' keyword argument
To Reproduce
from pyinfra.operations import files
files.chown(
    name="test test",
    target="foo",
    owner="bar",
    group="sheep"
)

will give you
TypeError: chown() got an unexpected keyword argument 'name'

Expected behavior
I expect the chown() files operation to support the 'name' argument like other operations
Meta
System: Linux
      Platform: Linux-5.10.114-1-MANJARO-x86_64-with-glibc2.35
      Release: 5.10.114-1-MANJARO
      Machine: x86_64
    pyinfra: v2.2
    Executable: /home/user/workspace/config_new_vms/venv/bin/pyinfra
    Python: 3.10.4 (CPython, GCC 11.2.0)

How was pyinfra installed (source/pip)?

pip in a venv

chown and chmod are not operations, but internal utils the are used in files. They are imported from pyinfra/operations/util/files.py as opposed to pyinfra/operations/files.py. They don't have the @operation decorator, which is what adds that keyword arguments to the signature. They are also not in the operation index in the docs so it's probably on purpose that they are not decorated.
My guess is that one of the other functions in files handles whatever you wanted to use chown for (maybe files.file?).
Maybe they should be imported as _chown and _chmod instead? I don't know what the best solution is, I just investigated because i recently made a fix such that name and  such doesn't give type errors and thought maybe I had missed some.

As @StefanBRas pointed out, there is no chown operation for the file operator.  You can see all the available file operations here: https://docs.pyinfra.com/en/2.x/operations/files.html
The solution you probably want is:
from pyinfra.operations import files
files.chown(
    name="Update file permissions",
    path="/path/to/foo",
    user="bar",
    group="sheep",
    mode="644",
)

Ah, that makes sense.

Maybe they should be imported as _chown and _chmod instead? I don't know what the best solution is, I just investigated because i recently made a fix such that name and such doesn't give type errors and thought maybe I had missed some.

I think making this change seems reasonable to distinguish "internal" methods.
@sysadmin75 I assume you mean files.file(..).

Yes, I do mean files.file  I copied his example, but forgot to change the important part. :)

Gah this has happened before with path imported into the files module (https://github.com/Fizzadar/pyinfra/commit/cc2c70bb26ba561c01f1462fa198dc8898b0348a). I think switching to import until directly and calling methods on that is safest here.
Would make sense to do a review of all module imports I think, unfortunately no way (I'm aware of) to hide non-operation ones.

Have renamed chown and chmod to avoid confusion in https://github.com/Fizzadar/pyinfra/commit/6d58f2433d2e8ac14d87f9087ba12a6a5f2f736c.


Datamatrix detection is sensitive to symbol position

I have a simple and clear datamatrix that fails to be read by the library:
The image is 200x200 pixels:

When studying the problem it seems the library is very sensitive to the size of the image.
Simply cropping 15 pixels from the bottom of the image (so it's 200x185 pixels) allows the library to detect the DM:

Also extending the image from the top by 15 pixels allows detection (now it's 200x215 pixels)

In all cases the DM is located on the right side of the image.
What is the reason for this and is there a way to fix these problems without cropping images in many ways to successfully detect the DM?

The problem is that it currently only detects the symbol if it is intersected by either the horizontal or vertical center line of the image. If you can compile the library, you can fix that yourself as mentioned in #146. Simply comment out this line and it will work (but be considerably slower).

The problem is that it currently only detects the symbol if it is intersected by either the horizontal or vertical center line of the image. If you can compile the library, you can fix that yourself as mentioned in #146. Simply comment out this line and it will work (but be considerably slower).

First here's an example where I crop the image in X and it still fails to detect even though I'm sure the vertical line is going through the DM:

After I additionally crop it in Y so it's more centered in Y then it detects it correctly:

So I'm not sure about your explanation. Maybe it works with the horizontal line but not with the vertical one.

First here's an example where I crop the image in X and it still fails to detect even though I'm sure the vertical line is going through the DM:

After I additionally crop it in Y so it's more centered in Y then it detects it correctly:

So I'm not sure about your explanation. Maybe it works with the horizontal line but not with the vertical one.

Second, I saw your fix for #146 but unfortunately I cannot try it.
I'm using zxing-cpp with the Python wrapper and release 1.1.1.
When I update the code to the latest branch I can't get it to compile anymore.
Should I open a new issue for that or is it still work in progress?

Second, I saw your fix for #146 but unfortunately I cannot try it.
I'm using zxing-cpp with the Python wrapper and release 1.1.1.
When I update the code to the latest branch I can't get it to compile anymore.
Should I open a new issue for that or is it still work in progress?

I'll try to reproduce your findings that do in fact contradict my earlier claim. As for the Python wrapper: that should definitively work (and gets tested by the CI). If you have an issue, please open another issue.

I'll try to reproduce your findings that do in fact contradict my earlier claim. As for the Python wrapper: that should definitively work (and gets tested by the CI). If you have an issue, please open another issue.

I checked your sample and can confirm your finding. It is indeed not sufficient for the symbol to be intersecting with any of the center lines, it is the vertical/left line of the 'L'-shaped finder pattern that needs to intersect with a center line. In your first counter example only the horizontal/bottom line does this.

I checked your sample and can confirm your finding. It is indeed not sufficient for the symbol to be intersecting with any of the center lines, it is the vertical/left line of the 'L'-shaped finder pattern that needs to intersect with a center line. In your first counter example only the horizontal/bottom line does this.

Ok thanks. That's useful information.
It means I should be able to run multiple windows over my image that are all wide but not tall and should be able to find any DM that is not rotated in the image.
I've opened a new issue #190 for the problem I'm having compiling the latest code.

Ok thanks. That's useful information.
It means I should be able to run multiple windows over my image that are all wide but not tall and should be able to find any DM that is not rotated in the image.
I've opened a new issue #190 for the problem I'm having compiling the latest code.

But if you can now compile the latest version, that should be easier and also more efficient than your suggested approach. Sooner or later, I'll have to decide on whether the currently implemented (but disabled because it is slow) approach is a cost that has to be payed...
Interestingly, I recently came across the fact that the Google MLKit for android, that does all sorts of barcode detection, has indeed the same limitation for DataMatrix symbols. That tells me that even they don't have a magic AI wand to quickly detect DM symbols anywhere in the image.

But if you can now compile the latest version, that should be easier and also more efficient than your suggested approach. Sooner or later, I'll have to decide on whether the currently implemented (but disabled because it is slow) approach is a cost that has to be payed...
Interestingly, I recently came across the fact that the Google MLKit for android, that does all sorts of barcode detection, has indeed the same limitation for DataMatrix symbols. That tells me that even they don't have a magic AI wand to quickly detect DM symbols anywhere in the image.

I did manage to compile the latest version after commenting out the tryharder=False line. Now I'm getting readout of the DM with all those cases.
IMO there has to be a hint from the user saying whether to search the whole image or just the center of the image.
Generally though, submitting a whole image to the read_barcode function should search the whole image, otherwise I would have submitted just a crop of the image.
Alternatively it would make sense to have a ROI hint of where to search for images.
I recently came across this very high end barcode scanner and this has tons of hints for the algorithm (the process of defining the hints is called 'tuning'). Which codes to search, which orientation, where to search (different for each code type), maximum number of codes to detect, invert code and many others. This makes sense because there are a lot of assumptions when reading barcodes and these assumptions should both help the reading process, speed it up and be configurable in the form of 'hints'.

I did manage to compile the latest version after commenting out the tryharder=False line. Now I'm getting readout of the DM with all those cases.
IMO there has to be a hint from the user saying whether to search the whole image or just the center of the image.
Generally though, submitting a whole image to the read_barcode function should search the whole image, otherwise I would have submitted just a crop of the image.
Alternatively it would make sense to have a ROI hint of where to search for images.
I recently came across this very high end barcode scanner and this has tons of hints for the algorithm (the process of defining the hints is called 'tuning'). Which codes to search, which orientation, where to search (different for each code type), maximum number of codes to detect, invert code and many others. This makes sense because there are a lot of assumptions when reading barcodes and these assumptions should both help the reading process, speed it up and be configurable in the form of 'hints'.

Sort of fixed here: https://github.com/nu-book/zxing-cpp/commit/d6dc409ef15ff7171c7f9130dff7266a7c65f053 (needs c++-20).

This is as fixed as it gets... -> closing.


chore: add publish.yml

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

Project coverage is 99.39%. Comparing base (9ffef54) to head (43eb390).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   99.39%   99.39%
=======================================
  Files           6        6
  Lines         165      165
  Branches       16       16
=======================================
  Hits          164      164
  Partials        1        1

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