Syncing up

Everything sesems to work fine when I configure the plugin to watch a set of files, but when I run a syncup task, it sometimes misses a few files. Any idea why?
gulp.src(['./assets/*', './layout/*', './config/*', './snippets/*', './templates/*', './locales/*'])
    .pipe(gulpShopify(shopify_api_key, access_token, shop, val))

I've ran gulp-debug on the task. Here's the output.
[11:07:29] gulp-debug: assets/banner.jpg
[11:07:29] gulp-debug: layout/theme.liquid
[11:07:29] gulp-debug: config/settings_schema.json
[11:07:29] gulp-debug: snippets/collection-sorting.liquid
[11:07:29] gulp-debug: snippets/filter-menu.liquid
[11:07:29] gulp-debug: snippets/mastfoot.liquid
[11:07:29] gulp-debug: snippets/masthead.liquid
[11:07:29] gulp-debug: snippets/search-bar.liquid
[11:07:29] gulp-debug: snippets/stock-level.liquid
[11:07:29] gulp-debug: templates/article.liquid
[11:07:29] gulp-debug: templates/blog.liquid
[11:07:29] gulp-debug: templates/cart.liquid
[11:07:29] gulp-debug: templates/collection.liquid
[11:07:29] gulp-debug: templates/index.liquid
[11:07:29] gulp-debug: templates/page.liquid
[11:07:29] gulp-debug: templates/product.liquid
[11:07:29] gulp-debug: templates/search.liquid
[11:07:29] gulp-debug: locales/en.default.json
[11:07:29] gulp-debug: 18 items
Upload Complete: collection-sorting.liquid
Upload Complete: collection.liquid
Upload Complete: masthead.liquid
Upload Complete: product.liquid
Upload Complete: mastfoot.liquid
Upload Complete: page.liquid
Upload Complete: index.liquid
Upload Complete: article.liquid
Upload Complete: search-bar.liquid
Upload Complete: theme.liquid
Upload Complete: stock-level.liquid
Upload Complete: blog.liquid
Upload Complete: settings_schema.json
Upload Complete: filter-menu.liquid
Upload Complete: cart.liquid
Upload Complete: banner.jpg

It seems the last two items, search.liquid and en.default.json are missed.

That's due to the shopify API Rate limit, someone has a pull request to fix
that that I need to merge soon, I was just trying to get another issue
fixed first.
On Thu, Aug 13, 2015 at 6:29 AM, Joel Drapper<EMAIL_ADDRESS>wrote:

Everything sesems to work fine when I configure the plugin to watch a set
of files, but when I run a syncup task, it sometimes misses a few files.
Any idea why?
gulp.src(['./assets/', './layout/', './config/', './snippets/', './templates/', './locales/'])
.pipe(gulpShopify(shopify_api_key, access_token, shop, val))
—
Reply to this email directly or view it on GitHub
https://github.com/mikenorthorp/gulp-shopify-upload/issues/14.


non standard bonding durations creating cards

Seems that yieldmos bonds LPs for 14d + 1s, which causes an "extra" bonding period to appear on the UI. I tried bonding for various durations longer than 14d (see below). It might make sense to aggregate durations higher than x into the closest (lower) duration bonding period of those specified by chain param

I'm not quite sure what is the best way to represent that they are indeed disparate lock periods but offering the option to bond back into them (with this apr display) is confusing for users

This is being tracked internally


Action seems to ignore the content of the trx file

I am getting blank test results even though the tests results exist and the action seems to find them, so am I doing something wrong?
- name: Publish Test Results
  uses: EnricoMi/publish-unit-test-result-action@v2
  with:
    xunit_files: "dist/*.trx"

The test output section has run the tests and output the trx file to the dist folder:
https://github.com/strem-app/strem/runs/7840354498?check_suite_focus=true#step:6:809

Results File: /home/runner/work/strem/strem/dist/Strem.UnitTests.Test.Results.trx
Passed!  - Failed:     0, Passed:    44, Skipped:     0, Total:    44, Duration: 146 ms - /home/runner/work/strem/strem/src/Strem.UnitTests/bin/Debug/net6.0/Strem.UnitTests.dll (net6.0)

However when the unit test publish action is run it finds the file from what I can tell but generates an empty output:
https://github.com/strem-app/strem/runs/7840354498?check_suite_focus=true#step:7:23

2022-08-15 15:00:13 +0000 - publish -  INFO - Reading dist/*.trx (1 file, 65.0 KiB)
2022-08-15 15:00:13 +0000 - publish -  INFO - Finished reading 1 files in 0.00 seconds

Any help would be great as I don't really know how to debug further as file is there, its found the file, it says its processing it, so a bit baffled.

Can you please provide the TRX file so I can debug why the action cannot process it properly?

Strem.UnitTests.Test.Results.zip
I have generated this locally but this should be what the end build uses, thanks for the quick response.

That file works fine, are you sure the file is identical to the one on GitHub actions?

It should be, it uses a cake build script so uses exactly the same logic to run the build on both local system and git hub actions, is there an easy way to get the file out of github action or do I need to publish it as an artifact?

Yes, the file needs to be uploaded as an artifact.

app.zip
There you go, that contains all the outputs from that build section, the trx, html and a code coverage bit

That is puzzling, the file works just fine, it adds 44 passing tests: https://github.com/EnricoMi/publish-unit-test-result-action/pull/345#issuecomment-1215856444

Yeah, I use the same approach on another project on Azure Devops and that processes them fine, but for some reason it doesnt work here.
Here is the build I got that artifact from (I removed the app part manually as its 40mb):
https://github.com/strem-app/strem/runs/7845897268?check_suite_focus=true
As you can see its saying nothing has passed etc.

At least I can reproduce in a fork: https://github.com/EnricoMi/strem/actions/runs/2863736835/attempts/1#summary-7846828832

I have found the issue, it is in:
with:
  xunit_files: "dist/*.trx"

It should read:
with:
  trx_files: "dist/*.trx"

https://github.com/EnricoMi/strem/actions/runs/2866802522/attempts/1#summary-7854780069
I have improved the logging so it is easier to spot this kind of issue:
2022-08-16 09:22:55 +0000 - publish -  INFO - Reading XUnit files dist/*.trx (1 file, 65.0 KiB)

It was a bit confusing because currently the front page shows these unique file name props like "trx_files" etc but the rest of the docs just says "files" so I wasnt entirely sure it was right in the first place.
Thanks for looking into it for me though!

Thanks for reporting.


Set TLS minimum version to 1.2

Partial of #10602
Changes to TLS
Currently, Gitea allows TLS 1.0 and TLS 1.1 for HTTPS connections. These versions of TLS have long been deprecated due to security vulnerabilities, and are also no longer necessary for wide browser compatibility. The change I propose in this pull request sets TLS 1.2 as the minimum TLS version, with additional support for TLS 1.3.
On SSLLabs, we can see the difference. Before the changes:

After the changes:

Closes #10602
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

do this is need a opt out?

As there is a way for users to use less secure way (reverse proxy in front of gitea configured with lower TLS version) I'm ok if we don't provide opt-out.

yes had that in mind too - just like to have a bit consent :)

Codecov Report

Merging #12689 into master will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #12689      +/-   ##
==========================================
- Coverage   43.33%   43.33%   -0.01%
==========================================
  Files         645      645
  Lines       71526    71527       +1
==========================================
  Hits        30994    30994
- Misses      35516    35518       +2
+ Partials     5016     5015       -1

Impacted Files
Coverage Δ

modules/graceful/server.go
47.00% <0.00%> (-0.41%)
:arrow_down:

services/pull/check.go
47.69% <0.00%> (-2.31%)
:arrow_down:

models/error.go
34.81% <0.00%> (-0.52%)
:arrow_down:

services/pull/pull.go
41.57% <0.00%> (-0.47%)
:arrow_down:

models/issue_comment.go
53.75% <0.00%> (-0.16%)
:arrow_down:

modules/sync/unique_queue.go
44.89% <0.00%> (+6.12%)
:arrow_up:

modules/indexer/stats/queue.go
76.47% <0.00%> (+11.76%)
:arrow_up:

modules/indexer/stats/db.go
60.86% <0.00%> (+17.39%)
:arrow_up:

Continue to review full report at Codecov.

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

This is a breaking change we should mention on release notes.


Update common.php

my mistake, of course OR not AND

tatarysh have you got Skype o something for contact you?
I'm debugging 2moons.

i do not use skype

Email? Something..

<EMAIL_ADDRESS>


Fails to get range when forcing to use pakoUnzip in node and browser

I noticed that a section of volvox-sorted.bam was failing as I was integrating bam-js into JBrowse e.g. somewhere in region ctgA:30000-35000 produced the error "unknown compression method" (there is a narrower range that can produce same error but that is the general region
My tests in node.js pass for getRecordsForRange here, but if I manually switch the node.js code to use pakoUnzip, then the tests fail in node.js land and give the same "unknown compression method" error
I guess I am curious whether it is something the bam-js code is doing that causes the unzip error or if it is a pako specific bug
CC @rbuels

For example, force bgzf-filehandle to export pakoUnzip and use this https://github.com/cmdcolin/bam-js/commit/d64a466dc371f30bc55a0a764cf4beb08c704ab1 and we get test fail

This has tentatively been fixed by fetching an extra blockLen (1<<16) for each read


Add repeatability tests

Cadl Ranch Contribution Checklist:

[x] I have written a scenario spec
[x] I have meaningful @scenario names. Someone can look at the list of scenarios and understand what I'm covering.
[x] I have written a mock API
[x] I have used @scenarioDocs for extra scenario description and to tell people how to pass my mock api check.

I can't approve my own PR, but works for me

@chunyu3 Opinion from .NET?

@chunyu3 Opinion from .NET?

Looks good for .NET


[BUG] Set-PnPListItem -Batch fails when some multivalued columns are not part of the -Values hash

Expected behavior
Set-PnPListItem allows batching as per the documentation.
Any Set-PnPListItem that works without "-Batch" is expected to also work with "-Batch".
Specifically, Set-PnPListItem could be used to update some, only, of all the columns of an Item.
Actual behavior
Set-PnPListItem -Batch will fail if the List to update contains some multivalued columns which are not mentioned under the -Values @{} parameter.
Steps to reproduce behavior
I created a "ItemTest" List with column "Title" and another column "MVL" (multivalued lookup column to some other list).
The following, without "-Batch" works fine:
Set-PnPListItem -List "ItemTest" -Identity 1 -Values @{ "Title" = "Hello" } # ==> OK THIS WORKS

The following Fails:
# Batch, update of the single column "Title" (MVL, a multivalued lookup column not updated)
$batch = New-PnPBatch
Set-PnPListItem -List "ItemTest" -Identity 2 -Values @{ "Title" = "Hello" } -Batch $batch # ==> *** THIS FAILS
Invoke-PnPBatch -Batch $batch

the error is
Set-PnPListItem : Object reference not set to an instance of an object.
At C:\...\Test7.ps1:9 char:1
+ Set-PnPListItem -List "ItemTest" -Identity 2 -Values @{
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Set-PnPListItem], NullReferenceException
    + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Lists.SetListItem

If value(s) (or $null) is(are) provided for the "MVL" column in the -Value parameters, there is no error.
To make it clear, the following works because "MVL" is present in -Value:
$batch = New-PnPBatch
Set-PnPListItem -List "ItemTest" -Identity 2 -Values @{ "MVL" = 1, 2, 3; "Title" = "Hello" } -Batch $batch
Invoke-PnPBatch -Batch $batch

Note: in a more complex test, I could determine that ALL multivalued columns MUST be specified under -Values to make the Set-PnPListItem work with -Batch (I used several multivalued lookup columns and managed metadata).
What is the version of the Cmdlet module you are running?
Version          Name                                   Repository
-------          ----                                   ----------
1.3.15-nightly   PnP.PowerShell                         PSGallery

PowerShell:
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  1490

Which operating system/environment are you running PnP PowerShell on?

[ X] Windows

Hi @PHubaut,
I was able to reproduce your error, but if you try with -UpdateType and choose your preferred update (see the Set-PnPListItem documentation), then it should work.

Hi @PHubaut,
I was able to reproduce your error, but if you try with -UpdateType and choose your preferred update (see the Set-PnPListItem documentation), then it should work.

Thank you very much indeed - error only persists with -UpdateType Update.
Either -UpdateType SystemUpdate or -UpdateType UpdateOverwriteVersion are preventing the error to occur.
This workaround works fine for me. Again, thanks a lot.


Need to be able to save a stage after it is built

As a builder, I need to be able to save a stage and load it at a later time. Currently the game loads a default stage that can be edited.
Acceptance:

An API to fetch and post stage data
The means to look at previously saved stages

 Save a stage after it is built


I want to get the NAME of the last step, not the POD NAME. Is this possible?

I want to get the NAME of the last step, not the POD NAME. Is this possible?
How do I get the step1 name?
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: lifecycle-hook-tmpl-level-
spec:
  entrypoint: main
  templates:
    - name: main
      steps:
        - - name: step1
            template: echo1
        - - name: step2
            template: echo2
            arguments:
              parameters:
                - name: status
                  value: "{{steps.step1.status}}"
                - name: node_name
                  value: "{{steps.step1.name}}"

    - name: echo1
      container:
        image: alpine:3.6
        command: [sh, -c]
        args: ["echo hello"]

    - name: echo2
      inputs:
        parameters:
        - name: node_name
        - name: status
      container:
        image: alpine:3.6
        command: [sh, -c]
        args: ["echo \"step1 status : {{inputs.parameters.node_name}}\" ;
                echo \"step1 name : {{inputs.parameters.status}}\"
              "]

The output:
step1 status : lifecycle-hook-tmpl-level-q949k-1951102024
step1 name : Succeeded

@alexec  Is there any way to receive the POD NAME specified in the configuration file?

You should be able to do this using input parameters. Is there an example in the examples folder?

You should be able to do this using input parameters. Is there an example in the examples folder?

I don't see any examples.

@alexec Is there any way to receive the POD NAME specified in the configuration file?

See pod.name: https://github.com/argoproj/argo-workflows/blob/master/docs/variables.md#containerscript-templates


build problem

When I build readium-sdk. It cames out this problem:
LINUX_ADT_NDK/android-ndk-r10e/platforms/android-19/arch-arm/usr/include -c  ./../../ePub3/xml/utilities/base.cpp -o /home/lanruotian/java_workspace/github/SDKLauncher-Android/readium-sdk/Platform/Android/obj/local/armeabi-v7a/objs-debug/epub3/ePub3/xml/utilities/base.o
make: Leaving directory `/home/lanruotian/java_workspace/github/SDKLauncher-Android/readium-sdk/Platform/Android'
./../../ePub3/xml/utilities/base.h:37:29: fatal error: libxml/xmlerror.h: No such file or directory
#include <libxml/xmlerror.h>
^
compilation terminated.
How to fix this? Thank you for answer.

OS:Ubuntu 14.10

Could you install zsh sudo apt-get install zsh and try again please?
Possibly duplicate of https://github.com/readium/readium-sdk/issues/47
(please report back in the original issue #47)

@danielweck Thanks for your help! I have build redium-sdk and SDKLauncher-Android Project successfully !
There is one point ,  SDKLauncher-Android Project can't work on Gennymotion virtual device ! Problem could be ‘ can't load epub3 library ’ ! However , it work on real android device well ! It waste me a lot of time . I think we could  write a notification on README.md  for developer to avoid this .
Forgive my poor English .  I try my best ...

@zhufx thanks for your feedback!
If I am not mistaken, Genymotion is a x86 emulator (your hardware device is probably arm). You must therefore use the android-NDK-x86 feature branch to compile the Readium SDK and the Android application:
https://github.com/readium/SDKLauncher-Android/tree/feature/android-NDK-x86/
https://github.com/readium/readium-sdk/tree/feature/android-NDK-x86/

Hi,
The links in the previous comment are not valid anymore.
I've tried to compile the last version (0.21) myself but even after getting, adapting and compiling the dependencies (based partly on the steps described at http://wudev.digitaltorque.com/2014/03/building-readium-for-x86-android.html) I still face errors.
Before going further, Is there a simple way to compile or get the Readium SDK for x86?
Thanks

The Android Readium app compiles for both ARM and X86, have you tried the develop branch?

No, I had cloned the master branch to use a stable one (which didn't contain the x86 target in Application.mk). I tried with the develop branch (0.22.1) and it works fine.
Shouldn't the READMEs be updated? For example the main one refers to the version 0.14 and the Android NDK r8e. Using r8e doesn't work, I had to run ndk-compile.sh with android-ndk-r10e.
The README under Platform/Android is not up-to-date either.
But thanks anyway, It works now!

Agreed, the documentation needs updating. Hopefully some resources will be available early next year to sort this out.
Related note: as you know there is an ongoing transition (generally-speaking, not specific to Readium) from Eclipse to Android Studio (Gradle), and a few developers have been contributing feedback and code here on GitHub. The main challenge is the native Readium C++ library (and the NDK code layer) which requires Bash build scripts (to prepare the headers and to compile), as well as some symbolinc linking magic for submodule integration...which in turn means that the dev story on Windows is not great. I assume you're on OSX or Linux?

I use Linux. I still have an issue though as the target x86 compiles to 32 bits whereas I need 64 bits. I tried to change APP_ABI := x86_64 in Application.mk but there is no 64 bit version of icu4c, open-ssl and Boost. I managed to compile  icu4c, open-ssl  for 64 bits but still have errors for Boost.

@outsideMyBox the master branch should now compile both x86/32-bit and 64-bit binaries (the develop branch was recently merged in).

@outsideMyBox could you explain how you compiled icu4c for ARM64? (please answer in this new issue:
https://github.com/readium/readium-sdk/issues/245
)
PS: Boost is not required anymore! (so we only need arm64-v8a static libs for OPENSSL and ICU4C)
Many thanks! :)


added a android program that displays output in a recycler view

added an android program that displays output in a recycler view

added and android program that displays output in a recycler view


adding support for calling NNLS code using Gram matrices

I'm interested in using your NNLS code on problems where I only have a Gram matrix, I've modified the interface and code to handle this case, and tested against solutions found with the current code.
Right now the new interface is limited to nnls algorithm, but I could extend the others if you prefer.
I tried to modify the interface as little as possible.
Let me know if you want any changes to this before a merge, or other suggestions for improvement.
(Thanks for your library, I've already found it quite useful on some problems.)

Thanks Daniel -- this is a great point and it should be easy to accommodate this possibility.
I believe the nnls_gram() algorithm you added is actually already implemented here(?): https://github.com/ahwillia/NonNegLeastSquares.jl/blob/master/src/fnnls.jl
If this is the case (let me know if I'm mistaken -- I only took a quick look), I think it would be preferable to modify the interface along the lines you suggest to call fnnls directly (this way we avoid adding any redundant code in the nnls_gram file).
I'm glad you've found this useful, and appreciate the feedback.

Yes, you're right fnnls is nnls with Gram matrices.
I assumed since it was a whole other paper it was doing some kind of fast approximation.
After taking a look at the paper, it appears that "fast" refers to the algorithm being faster for high dimensional data when using a Gram matrix instead of the data matrix directly.
I've modified the pull request to remove the nnls_gram.jl and tests, and now I've only changed the interface and added some tests to confirm the result is the same for data matrix vs Gram matrix call.
I also made is so that nonneg_lsq(A,b;alg=:nnls,Gram=true) does the same thing as nonneg_lsq(A,b;alg=:fnnls,Gram=true).
I've also updated the readme to reflect the new interface.
Again please advise if you'd like anything changed.

This looks good to me. Thanks!


added citation information

Hi @bgruening , our paper has been accepted. We plan to publish the workflow on GalaxyEU. Are you still interested in writing a blog post about it?
One more question: How can I add citation information in the workflow? Is it OK to add it in the workflow annotation?
Thanks!

Hi @bgruening , our paper has been accepted.

Cool congrats!

We plan to publish the workflow on GalaxyEU. Are you still interested in writing a blog post about it?

Sure. You can write one about the paper like those https://galaxyproject.eu/news?tag=paper
Or a slightly more technically one like: https://galaxyproject.eu/posts/2021/01/22/sars-cov-2-variant-analysis/

One more question: How can I add citation information in the workflow? Is it OK to add it in the workflow annotation?

Yes, as workflow annotation would be nice. If you want to be really professional with workflow tests etc we have https://github.com/galaxyproject/iwc and those workflows will end up in workflowhub.eu with their own DOI.

Thanks!

Thank you @bgruening
I have forwarded this information to our partners, the project organizer.


Issue with parens

given this:
fun(n)
  bottom (n - 1) * 2px

if I format above, I get:
fun(n)
  bottom ((n - 1)) * 2px

one more format and I get:
fun(n)
  bottom (((n - 1))) * 2px

version 2.5.2

Thank you for reporting the issue. I'll work on it by the end of today.

Hello @x8x,
The problem must be solved at version 2.5.4.
Cheers!

Perfect! Thank you and have a great day! :-)


Set up CI testing

Changes
What changes did you make? Include screenshots if applicable, or explain how to view the changes.

Fix "not wrapped in act" warning in TaskForm tests
Remove App.test.tsx
Override Jest config from Create React App to not reset mocks between every test
Add jest-tests Actions workflow to run all tests

Testing
How did you confirm your changes work? (Automated tests, manual verification, etc.)

Tests pass when run in VS Code
Tests pass when run from command line
We'll see if the Actions workflow passes

Tracking
Add your issue number below.
Resolves #18

Look at that green checkmark


multilevel nesting

I am trying to set up a simple project management app up with cocoon where a user can create a project with many tasks and a task can be assigned to many users also using cocoon, however, I run into trouble when trying to save the assignment of course it being 2 levels deep.
My question is, is this an option or should I try another route?

This is definitely an option, there is no limit on the level of nesting. Did you check out the demo project? It contains an example with projects -> tasks -> subtaks.
If you need more help, provide more detail or ask a question on stackoverflow.com

I have the following as the parent form.

  <%= f.hidden_field :user_id, value:current_user.id %>

    <%= f.text_field :title, label:"Task" %>

    <%= f.date_select :deadline %>

    <%= f.text_area :content, label:"Special Instructions" %>

    <%= f.fields_for :assignees do |assign| %>
      <%= render 'assignee_fields', :f => assign %>
    <% end %>

  <%= link_to_add_association ' Assign Task', f, :assignees, class:"btn btn-success btn-block" %>

    <%= link_to_remove_association "Remove Task", f, class:"btn btn-danger btn-block" %>

Sub form is as follows.

		<%= f.collection_select :user_id, User.all, :id, :full_name, {:include_blank => true} %>

    	<%= link_to_remove_association "Remove Assignee", f, class:"btn btn-warning btn-block" %>

Both are wrapped in a nested-fields div and also have a fieldset around the "assignees". Everything displays properly, I just can't seem to get it to save.

So my guess it is a strong-parameters problem: can you show me your strong parameters definition and what is posted to the server?

Yep, you nailed it, I knew I was missing something simple! I had the assigned params under my tasks instead of inside of on my projects params. Thank you for clearing this up quickly!


ashell hangs when execute command 'error'

Description
ashell hangs when execute command 'error'
Steps to Reproduction

Run commands $ node zephyrjs-cli.js -v 32902 -p 63649 -f test/HelloWorld.js
acm> error

Actual Result
$ node zephyrjs-cli.js -v 32902 -p 63649 -f test/HelloWorld.js
33 bytes read
Zephyr.js DEV MODE Apr 13 2017 02:53:31
'A Shell' bash

Commands list:
    help This help
    eval Evaluate JavaScript in real time
   clear Clear the terminal screen
    load [FILE] Saves the input text into a file
     run [FILE] Runs the JavaScript program in the file
   parse [FILE] Check if the JS syntax is correct
    stop Stops current JavaScript execution
      ls [FILE] List directory contents or file stat
     cat [FILE] Print the file contents of a file
      du [FILE] Estimate file space usage
      rm [FILE] Remove file or directory
      mv [SOURCE] [DEST] Move a file to destination
    test Runs your current test
   error Prints an error using JerryScript
    ping Prints '[PONG]' to check that we are alive
      at OK used by the driver when initializing
     set Sets the input mode for 'load' accept data
        transfer raw
        transfer ihex
     get Get states on the shell
  reboot Reboots the device

acm> error
error

The terminal screen is hang, until press 'Enter' keyboard, the screen will return to 'acm>'
Expected Result
Prints an error using JerryScript

There seems to be an issue with the ashell 'error' command. Could you please check with the ide and see if it works for you?

Checked with the IDE . The error command also leads hanging. I got this output:
acm> error
stderr test (0

Then the IDE console will not response no matter what key you enter.

zephyr.js bug: #1027

error command doesn't exit anymore in ashell. Closing this.

hi, @wanghongjuan
According to latest ashell doc, 'error' cmd has been removed, so closed it please.


ANC Logic - Diagnosis and Next Steps: Labor + Delivery [6h]

Issue
When a patient meets the criteria for Labor + Delivery it will trigger the pop-up and immediately go to referral. The patient will not finish the encounter as this is an emergency situation.

Pop-Up
Referral

Supporting Documents

The logic for ANC can be found here on the ANC - Nurse tab.
The designs can be found in Figma under HC - ANC under the purple logic heading.

Note:

In the case that the design in the issue varies from what is in Figma, ping Jeanette on slack and use the Figma design.

To Do:

Style next step screens per design
Adjust logic per document

QA Analysis
Works as designed

when >When "imminent delivery" is indicated, shows popup warning an diverts the flow to next steps.

Note to @jeanette-pelizzon The popup dialog in the design has a cancel button, but in the app, it does not. I believe that app has the right consistency (there would be no need for a cancel button there).

Thanks @adamhstewart I will update the designs for that.


Add easy way to compress to zip

Great app really love it. Some suggestions: First make it so that when moving a tab out of the current window opens an entirely new window along side the old window right now it deletes the old tab and only opens the current tab. Second, add easy way to compress to zip, right now the only way I find how to do this is to make a new empty zip folder. Third, make it snappy or add option to reduce animations to make it more responsive.

Thanks for the suggestions. Merging with #45.


Misc small chains improvements

A handful of miscellaneous fixes and cleanups related to chains. It's mostly tweaks to the demo scripts, but there's one configuration change intended to allow argocd admin permissions in the tekton-chains namespace.

FYI @Michkov @sbose78 re the top commit with "allow-argocd-to-manage" .

/ok-to-test

FYI @lcarva, @joejstuart, @bcaton85, @zregvart, @robnester-rh, @caugello .

New revision:

Apply sugestions from @lcarva
Add some more to the readme, particularly related to the DEPLOY_ONLY
Remove the argocd patch, it's now in #193
Improved commit messages in a couple of places
Split bash helper into its own commit

I might merge this soon if there are no objections.

I ran all the chains demos in my local CRC and it looks good to me. Got a +1 in slack from @lcarva . This is just chains demo tweaks, so we can merge without review from outside contract team. I'm pretty happy that we're now looking at two transparency log entries for a build-push task. Let's merge.


The workflow for multiple controllers working with one model.

What would be the proper way to tune authorization workflow for the case when there are multiple controllers to do something different with the same model?
The issue as I see it, that instance level permissions are always checked in authorizer set in model, when for class level check you could set any authorizer in controller. I think, would be natural to use authorizer specified in controller when calling authorize_action_for @variable
Also, would be nice to use custom actions right away, without declaring them in config. Let's say we have:
  authorize_actions_for Recon::StepAuthorizer, actions: {
    take_photo: 'take_photo'
  }

This calls current_user.can_take_photo?(authorizer, ... ?) and it can't resolve it further, if there's no such item in the map. Would be nice to call it on authorizer as a fallback. Or some other approach?

Currently, I don't see an easy way to customize the authorizer used per resource at the controller layer. However, I can see this as being in scope for the next major version of Authority, which I don't have a timeline for yet. I'd like to move to a more ActiveModel::Serializers approach where a default class is inferred from the model, but the controller-level hook allows for exactly that customization.
As far as the dynamic custom actions goes, I'm not 100% sold on the use-case, but I'll keep it in mind.

Authority is now unmaintained - see README.


Mount new motors onto Asembis

The motors are now in, there was a mix up in the office. We now are ready to replace to motors on Asembis and test them to close this issue.

Just finished mounting the motors. I dremeled a dimple on each of the shafts and put loctite on each of the set screws. Now we just need to test the crap out of it.

Complete and working. Asembis moves waaaaaay better then I expected! Great stuff. Any future problems will be addressed in a new issue


No LaTeX command \mathbfit

The command \mathbfit is not supported by MathJax (see http://docs.mathjax.org/en/latest/tex.html#tex-commands). \mathbfit is like \mathbf but additionally italicizing. Even though this command is rarely used you may consider it for completeness reasons.
If adding it is not an option: Any idea how to define a macro that results in similar output to \mathbfit?

AFAICT the only BoldItalic fonts are STIXMathJax_* with lots of coverage and MathJax_Math-BoldItalic with only 100 glyphs — latin full lower+upper, greek full lower+11 upper and a handful of others.
In other words, STIX is the only choice.

How can I display a nice \mathds{1} with MathJax?

As mentioned, MathJax's mathbb does actually do what mathds does if the configured font supports it. In MathJax's case, you'll need to use STIX.

Ah right, thanks :)

The \mathbfit and other similar macros are available in v3.2.


Installation requirements missing

ansible-rulebook version: '0.9.4'
Python version: 3.10
Operating System: MacOS 12.6

Java Open JDK:
openjdk 19 2022-09-20
OpenJDK Runtime Environment Homebrew (build 19)
OpenJDK 64-Bit Server VM Homebrew (build 19, mixed mode, sharing)

Description

Missing "Installation requirements section" and missing instructions for MacOS.
This derives on an issue installing and running on MacOS on M1 where:

jpyutil - WARNING: Failed to preload JVM shared library. No shared library found.
WARNING:jpyutil:Failed to preload JVM shared library. No shared library found.
ERROR:ansible_rulebook.cli:Unexpected exception
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/ansible_rulebook/cli.py", line 145, in main
asyncio.run(app.run(args))
File<EMAIL_ADDRESS>line 44, in run
return loop.run_until_complete(main)
File<EMAIL_ADDRESS>line 649, in run_until_complete
return future.result()
File "/opt/homebrew/lib/python3.10/site-packages/ansible_rulebook/app.py", line 66, in run
await run_rulesets(
File "/opt/homebrew/lib/python3.10/site-packages/ansible_rulebook/engine.py", line 289, in run_rulesets
rulesets_queue_plans = rule_generator.generate_rulesets(
File "/opt/homebrew/lib/python3.10/site-packages/ansible_rulebook/rule_generator.py", line 247, in generate_rulesets
drools_ruleset = DroolsRuleset(
File "", line 6, in init
File "/opt/homebrew/lib/python3.10/site-packages/drools/ruleset.py", line 31, in _make_jpy_instance
jpyutil.init_jvm(jvm_maxmem=max_mem, jvm_classpath=[jar_file_path])
File "/opt/homebrew/lib/python3.10/site-packages/jpyutil.py", line 453, in init_jvm
import jpy
ImportError: dlopen(/opt/homebrew/lib/python3.10/site-packages/jpy.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (_JNI_CreateJavaVM)
What I Did
pip install wheel ansible-rulebook ansible ansible-runner                          ✔  08:30:07 AM  
Requirement already satisfied: wheel in /opt/homebrew/lib/python3.10/site-packages (0.37.1)
Requirement already satisfied: ansible-rulebook in /opt/homebrew/lib/python3.10/site-packages (0.9.4)
Requirement already satisfied: ansible in /opt/homebrew/lib/python3.10/site-packages (6.5.0)
Requirement already satisfied: ansible-runner in /opt/homebrew/lib/python3.10/site-packages (2.2.1)
Requirement already satisfied: drools-jpy in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (0.0.8)
Requirement already satisfied: jinja2 in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (3.1.2)
Requirement already satisfied: janus in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (1.0.0)
Requirement already satisfied: pyparsing>=3.0 in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (3.0.9)
Requirement already satisfied: redis in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (4.3.4)
Requirement already satisfied: dpath in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (2.0.6)
Requirement already satisfied: websockets in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (10.3)
Requirement already satisfied: jsonschema in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (4.16.0)
Requirement already satisfied: durable-rules in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (2.0.28)
Requirement already satisfied: asyncio in /opt/homebrew/lib/python3.10/site-packages (from ansible-rulebook) (3.4.3)
Requirement already satisfied: ansible-core~=2.13.5 in /opt/homebrew/lib/python3.10/site-packages (from ansible) (2.13.5)
Requirement already satisfied: python-daemon in /opt/homebrew/lib/python3.10/site-packages (from ansible-runner) (2.3.1)
Requirement already satisfied: pexpect>=4.5 in /opt/homebrew/lib/python3.10/site-packages (from ansible-runner) (4.8.0)
Requirement already satisfied: pyyaml in /opt/homebrew/lib/python3.10/site-packages (from ansible-runner) (6.0)
Requirement already satisfied: packaging in /opt/homebrew/lib/python3.10/site-packages (from ansible-runner) (21.3)
Requirement already satisfied: six in /opt/homebrew/lib/python3.10/site-packages (from ansible-runner) (1.16.0)
Requirement already satisfied: cryptography in /opt/homebrew/lib/python3.10/site-packages (from ansible-core~=2.13.5->ansible) (38.0.1)
Requirement already satisfied: resolvelib<0.9.0,>=0.5.3 in /opt/homebrew/lib/python3.10/site-packages (from ansible-core~=2.13.5->ansible) (0.8.1)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/homebrew/lib/python3.10/site-packages (from jinja2->ansible-rulebook) (2.1.1)
Requirement already satisfied: ptyprocess>=0.5 in /opt/homebrew/lib/python3.10/site-packages (from pexpect>=4.5->ansible-runner) (0.7.0)
Requirement already satisfied: jpy in /opt/homebrew/lib/python3.10/site-packages (from drools-jpy->ansible-rulebook) (0.12.0)
Requirement already satisfied: typing-extensions>=<IP_ADDRESS> in /opt/homebrew/lib/python3.10/site-packages (from janus->ansible-rulebook) (4.4.0)
Requirement already satisfied: attrs>=17.4.0 in /opt/homebrew/lib/python3.10/site-packages (from jsonschema->ansible-rulebook) (22.1.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /opt/homebrew/lib/python3.10/site-packages (from jsonschema->ansible-rulebook) (0.18.1)
Requirement already satisfied: lockfile>=0.10 in /opt/homebrew/lib/python3.10/site-packages (from python-daemon->ansible-runner) (0.12.2)
Requirement already satisfied: setuptools in /opt/homebrew/lib/python3.10/site-packages (from python-daemon->ansible-runner) (65.4.1)
Requirement already satisfied: docutils in /opt/homebrew/lib/python3.10/site-packages (from python-daemon->ansible-runner) (0.19)
Requirement already satisfied: deprecated>=1.2.3 in /opt/homebrew/lib/python3.10/site-packages (from redis->ansible-rulebook) (1.2.13)
Requirement already satisfied: async-timeout>=4.0.2 in /opt/homebrew/lib/python3.10/site-packages (from redis->ansible-rulebook) (4.0.2)
Requirement already satisfied: wrapt<2,>=1.10 in /opt/homebrew/lib/python3.10/site-packages (from deprecated>=1.2.3->redis->ansible-rulebook) (1.14.1)
Requirement already satisfied: cffi>=1.12 in /opt/homebrew/lib/python3.10/site-packages (from cryptography->ansible-core~=2.13.5->ansible) (1.15.1)
Requirement already satisfied: pycparser in /opt/homebrew/lib/python3.10/site-packages (from cffi>=1.12->cryptography->ansible-core~=2.13.5->ansible) (2.21)

Hi @ezequiels This seems a installation issue of jpy. Seems that jpy was already installed, it must be installed without the default precompiled libraries.
Uninstall jpy, ensure that JAVA_HOME and PIP_NO_BINARY are properly defined as is described here and try it again:
pip uninstall jpy
pip install -U ansible-rulebook --no-cache-dir

You should see a line like: Skipping wheel build for jpy, due to binaries being disabled for it.


prevent Travis caching

What does this PR do?
As it is now the package installed pip install --editable . and so it is cached so in future it may (it is probably happening right now as it is referring to failing on actually empty line) interfere...
This change performs the package installs in clean virtual env which is removed after all.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

@williamFalcon could you restart the CI job...

@williamFalcon these tests are fine, see https://travis-ci.org/Borda/pytorch-lightning/builds/621100090

ok... how do we get the build to pass?

Sure, I will have a look at the minimal versions for Python 3.7
Pls, delete cache from master on Travis

please tell me what i need to do to delete the cache? i don’t have time to look into it this week, so it’s easier to follow steps

for me the master is fine... https://travis-ci.org/Borda/pytorch-lightning/builds/622102824


pluginZod: Type x is not assignable to type x

What version of kubb is running?
3.3.3
What kind of platform do you use?

A task object:

{
	"type" : "object",
	"properties" : {
		"id" : {
			"type" : "string",
			"readOnly" : true
		},
		"beginTime" : {
			"type" : "string",
			"format" : "date-time",
			"examples" : [
				"2022-03-10T16:15:50Z"
			],
			"x-readme-ref-name" : "Instant",
			"readOnly" : true
		},
		"taskStatus" : {
			"type" : "string",
			"enum" : [
				"STARTED",
				"STOPPED",
				"PAUSED"
			],
			"x-readme-ref-name" : "TaskStatus"
		}
	},
	"x-readme-ref-name" : "Task"
}

with a TaskStatus:

{
	"type" : "string",
	"enum" : [
		"STARTED",
		"STOPPED",
		"PAUSED"
	],
	"x-readme-ref-name" : "TaskStatus"
}

What version of external packages are you using(@tanstack-query, MSW, React, Vue, ...)
"react": "^19.0.0",
"zod": "^3.24.1"
What steps can reproduce the bug?

create the Zod schema of the task object with pluginZod
look into the taskSchema.ts
the typescript compiler will return an error on props which are an object type (in this case: Date) or an enum type (primitive types, e.g. task.id works as usual)

How often does this bug happen?
Every time
What is the expected behavior?
No compiler errors in zod schemas.
Additional information
These are the ts files generated by pluginTs:
Task.ts:
import type { Instant } from './Instant.ts'
import type { TaskStatus } from './TaskStatus.ts'

export type Task = {
  /**
   * @type string
   */
  readonly id: string
  /**
   * @type string | undefined, date-time
   */
  beginTime?: Instant
  /**
   * @type string | undefined
   */
  taskStatus?: TaskStatus
}

TaskStatus.ts:
export enum TaskStatus {
  'STARTED' = 'STARTED',
  'STOPPED' = 'STOPPED',
  'PAUSED' = 'PAUSED'
}

Instant.ts:
export type Instant = Date

and these are the zod schemas generated by pluginZod:
taskStatusSchema.ts:
import { z } from 'zod'

export const taskStatusSchema = z.enum(['STARTED', 'STOPPED', 'PAUSED'])

instantSchema.ts:
import { z } from 'zod'

export const instantSchema = z.string().datetime({ offset: true })

taskSchema.ts:
import type { Task } from '../types/Task.ts'
import type { ToZod } from '@kubb/plugin-zod/utils'
import { instantSchema } from './instantSchema.ts'
import { taskStatusSchema } from './taskStatusSchema.ts'
import { z } from 'zod'

export const taskSchema = z.object({
  id: z.string(),
  beginTime: z.lazy(() => instantSchema).optional(),
  taskStatus: z.lazy(() => taskStatusSchema).optional(),
} satisfies ToZod<Task>)

For taskSchema.beginTime, I get the following typescript compiler error:
Type 'ZodOptional<ZodLazy<ZodString>>' is not assignable to type 'ZodWithEffects<ZodOptional<ZodType<Date, ZodTypeDef, Date>>> | ZodWithEffects<ZodDefault<ZodType<Date, ZodTypeDef, Date>>>'.
  Type 'ZodOptional<ZodLazy<ZodString>>' is not assignable to type 'ZodOptional<ZodType<Date, ZodTypeDef, Date>>'.
    Type 'ZodLazy<ZodString>' is not assignable to type 'ZodType<Date, ZodTypeDef, Date>'.
      Types of property '_type' are incompatible.
        Type 'string' is not assignable to type 'Date'. [2322]

For taskSchema.taskStatus, I get the following typescript compiler error:
Type 'ZodOptional<ZodLazy<ZodEnum<["STARTED", "STOPPED", "PAUSED"]>>>' is not assignable to type 'ZodWithEffects<ZodOptional<ZodType<TaskStatus, ZodTypeDef, TaskStatus>>> | ZodWithEffects<ZodDefault<ZodType<TaskStatus, ZodTypeDef, TaskStatus>>>'.
  Type 'ZodOptional<ZodLazy<ZodEnum<["STARTED", "STOPPED", "PAUSED"]>>>' is not assignable to type 'ZodOptional<ZodType<TaskStatus, ZodTypeDef, TaskStatus>> | ZodEffects<ZodOptional<ZodType<TaskStatus, ZodTypeDef, TaskStatus>>, any, any> | ZodEffects<...>'.
    Type 'ZodOptional<ZodLazy<ZodEnum<["STARTED", "STOPPED", "PAUSED"]>>>' is not assignable to type 'ZodOptional<ZodType<TaskStatus, ZodTypeDef, TaskStatus>>'.
      Type 'ZodLazy<ZodEnum<["STARTED", "STOPPED", "PAUSED"]>>' is not assignable to type 'ZodType<TaskStatus, ZodTypeDef, TaskStatus>'.
        Types of property '_type' are incompatible.
          Type '"STARTED" | "STOPPED" | "PAUSED"' is not assignable to type 'TaskStatus'.
            Type '"STARTED"' is not assignable to type 'TaskStatus'. [2322]

When you use typed: true,, Kubb will add satisfies ToZod<TYPE>. But if dateType for pluginTs is different from the one in pluginZod, then TypeScript will complain. We could make it as a cast but that will probably give another type then it should be. Could you try by using the samedateType?

@nimo23 Normally dateType: date should be possible, see https://www.kubb.dev/plugins/plugin-zod/#datetype. If set to date, Zod will use z.date()


xVMSwitch DSC resource does not work when VSwitch type is switched

Test:

Create a Configuration for xVMSwitch and create an Type= External switch, Ensure='Present'
Using HyperV Manager, change the switch type to Internal.
Run the configuration again. I am seeing MSFT_xVMSwitch failure. I have to manually delete the  VMSwitch using 'Remove-VMSwitch'

Configuration
xVMSwitch $VSwitchName
{
Name = $VSwitchName
Type = $Type
AllowManagementOS = $AllowManagementOS
Ensure = 'Present'
NetAdapterName = $NetAdapterName
}
Output
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer UCS-044 with user sid ....
VERBOSE: [UCS-044]: LCM:  [ Start  Set      ]
VERBOSE: [UCS-044]: LCM:  [ Start  Resource ]  [[xVMSwitch]vm-network-b]
VERBOSE: [UCS-044]: LCM:  [ Start  Test     ]  [[xVMSwitch]vm-network-b]
VERBOSE: [UCS-044]:                            [[xVMSwitch]vm-network-b] Checking if Switch vm-network-b is Absent ...
VERBOSE: [UCS-044]: LCM:  [ End    Test     ]  [[xVMSwitch]vm-network-b]  in 0.5000 seconds.
The PowerShell DSC resource C:\Program Files\WindowsPowerShell\Modules\xHyper-V\<IP_ADDRESS>\DscResources\MSFT_xVMSwitch returned results in a format that is not valid. The results from running Test-TargetResou
must be the boolean value True or False.
+ CategoryInfo          : InvalidResult: (:) [], CimException
+ FullyQualifiedErrorId : TestTargetResourceInvalidResultFormat
+ PSComputerName        : localhost
VERBOSE: [UCS-044]: LCM:  [ End    Set      ]
The SendConfigurationApply function did not succeed.
+ CategoryInfo          : NotImplemented: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 7
+ PSComputerName        : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.

@sathya-bhat I gave this a shot in my setup and indeed this fails if the switch type is changed as you mentioned. The interesting thing which I noticed is that if I added the missing else block to Test-TargetResource to return $false in case the VMSwitch is not present. The Set-TargetResource will create yet another VMSwitch with that name and a different type this time.
Below is how the Test/Set targetresource function determine if the resource is present or not (As per the schema both Name and SwitchType are key params).
$switch = (Get-VMSwitch -Name $Name -SwitchType $Type -ErrorAction SilentlyContinue)

Below is the test configuration used .
configuration test
{
    # One can evaluate expressions to get the node list
    # E.g: $AllNodes.Where("Role -eq Web").NodeName
    Import-DscResource -ModuleName xHyper-V
    node 'localhost'
    {
        # Call Resource Provider
        # E.g: WindowsFeature, File

        xVMSwitch 'ManagementVSwitch'
        {
        Name = 'Mgmtnet'
        Type = 'External'
        AllowManagementOS = $true
        Ensure = 'Present'
        NetAdapterName = 'Ethernet'
        }
    }
}

Below is the DSC configuration run output, after I had manually changed the type of the 'MgmtNet' VMSwitch to be of type internal, Notice at the end there are two VMSwitch created with the same name.

Now fixing this is easy if only the VMSwitch Name is defined as the key in the schema, since then the existing VMSwitch will be discovered and a Set-VMSwitch can be called to set the switch type. I will make the changes in my fork and let's see if people see that fit to be pulled here.

@sathya-bhat Yeah - I ran into this one in Lability. Unfortunately, the current schema does not allow the changing of the switch type of an existing switch because, as @DexterPOSH points out, the switch's type is part of the resource's composite key.
If we were to change the schema by making the Type property just a Write property, we would not break existing configurations - unless they have different switches with the same name, but of differing types. I'm not sure why you would do that, but the schema does currently allow people to do this.
Any other change to the schema would be a breaking change that we should try and avoid wherever possible. Therefore, I think there are two realistic options:

We leave the resource schema as-is accepting you can't rename virtual switches.
We change the Type property to Write and possibly break one or two configurations.

Thoughts?

I would vote for the second one, since I have hardly seen VMSwitches with same name and different switch type being used.
Also the idea of DSC fixing the configuration drift in this specific case is simply unjust, as it creates another VMSwitch with the correct type rather than fixing the VMSwitch whose configuration was drifted.
Let's see what @sathya-bhat  has to say on this.

I agree with DexterPOSH and believe second one is reasonable solution. Thanks!


"found '0' sites: []" if controller URL has a trailing slash

This is probably not a real issue but imho it should be some how documented.
I had a trailing slash in my controller URL. This lead to coredna-omada not finding any sites and printed the following log:
[INFO] plugin/omada: logging in... [INFO] plugin/omada: found '0' sites: [] [INFO] plugin/omada: update: updating zones...
Login succeeded and no more (error) logs were printed. It didn't matter if I had the actual site name configured or ".*".
Removing the trailing slash fixed the problem and the site was found.

Hi, thanks for letting me know. I will look in it this next time I am working an on update as it should be an easy fix to help avoid people running into config issues.

I have fixed this in the go-omada package which is used to perform the API requests. The URLs are now built up using a proper join method to avoid this issue, and I have improved the error handling as the TP-Link controller API often returns a 200 where the response body contains an error.
https://github.com/dougbw/go-omada/releases/tag/v0.5.0
I will bump the dependency on this project shortly.


initial mono repo changes

Please check if the PR fulfills these requirements

[ ] Followed the Contributing guidelines.
[ ] Tests for the changes have been added (for bug fixes/features) with 100% code coverage.
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
initial mono repo changes

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

Project coverage is 99.49%. Comparing base (42ba6ba) to head (249d6cb).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #656      +/-   ##
===========================================
- Coverage   100.00%   99.49%   -0.51%
===========================================
  Files            5        6       +1
  Lines          388      398      +10
  Branches        96       57      -39
===========================================
+ Hits           388      396       +8
- Misses           0        1       +1
- Partials         0        1       +1

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


example of mock_area issue in megaboom

I'm trying to run the mock_area flow in megaboom to repro other errors:
bazel build sdq_17x64_generate_abstract
...
[WARNING STA-0366] port 'clock' not found.
[WARNING STA-0473] no valid objects specified for -to.
[WARNING STA-0471] no valid objects specified for -from.
[WARNING STA-0473] no valid objects specified for -to.
[ERROR STA-0391] group_path command failed.
Error: constraints.sdc, 87 STA-0391

Doesn't occur when running in the bazel-orfs example flow, but it's also using a different constraints file.
Guessing that my sram SDC constraints change needs to go in first so that the clocks are properly registered. But, sharing just in case I'm way off.

yes, if the clock in the .sdc is not correct, then all_registers returns and empty list and you get the error you observe


Replace github.com/bmizerany/assert with github.com/stretchr/testify/assert

This package is now longer maintained: github.com/bmizerany/assert and updating to the testify/assert package is low effort.

Thanks for the suggestion
Fixed in #11


[BUG] An MQTT OTA request made by the library to AWS using CBOR encoding results in the Invalid response on the /rejected topic

Describe the bug
An MQTT OTA request made by the library to AWS usinf CBOR encoding results in the Invalid response on the /rejected topic
Host

Host OS: esp32
Version: latest library code as is on github

To Reproduce

Initiate OTA update
Run on esp32 and observe all CBOR requests failing

Expected behavior
I was expecting to start receiving OTA file chunks on MQTT topics.
Additional context
Using the latest tinycbor version 0.6.0 from intel.
Initial request is made successfully
00:00:00:05.252 T: prvMqttPublish()
{"clientToken":":840d8ee419b8"}
7b 22 63 6c 69 65 6e 74 54 6f 6b 65 6e 22 3a 22 3a 38 34 30 64 38 65 65 34 31 39 62 38 22 7d

AWS IOT responds with the job document as expected and a few ota methods are invoked as expected:
00:00:00:05.345 V: subscribeCB: Data
	topic: $aws/things/840d8ee419b8/jobs/$next/get/accepted
	payload: {"clientToken":":840d8ee419b8","timestamp":1685747465,"execution":{"jobId":"AFR_OTA-OTA_TEST-230602-1828","status":"QUEUED","queuedAt":1685747355,"lastUpdatedAt":1685747355,"versionNumber":1,"executionNumber":1,"jobDocument":{"afr_ota":{"protocols":["MQTT"],"streamname":"AFR_OTA-93e1bb19-0dcd-4aeb-9946-5df0260dc063","files":[{"filepath":"/ota/file","filesize":127762,"fileid":0,"certfile":"/pem","fileType":0,"sig-sha1-rsa":"na"}]}}}}
00:00:00:05.397 V: subscribeCB: handling JOB_ACCEPTED_RESPONSE_TOPIC
00:00:00:05.407 T: otaPal_GetPlatformImageState()
00:00:00:05.409 T: otaPal_CreateFileForRx()
00:00:01:26.993 T: otaPal_GetPlatformImageState()
00:00:01:27.000 V: prvMqttSubscribe: subscribed to topic $aws/things/840d8ee419b8/streams/AFR_OTA-93e1bb19-0dcd-4aeb-9946-5df0260dc063/data/cbor

then a request for the first chunk is published:
00:00:01:27.005 T: prvMqttPublish()
¦accrdyaf al ao abDÿÿÿÿan
a6 61 63 63 72 64 79 61 66 00 61 6c 19 10 00 61 6f 00 61 62 44 ff ff ff ff 61 6e 01
00:00:01:27.028 V: publishMessage: topic   : $aws/things/840d8ee419b8/streams/AFR_OTA-93e1bb19-0dcd-4aeb-9946-5df0260dc063/get/cbor

this message decoded is:
{"c": "rdy", "f": 0, "l": 4096, "o": 0, "b": h'FFFFFFFF', "n": 1}
according to this: https://cbor.me/
A6             # map(6)
   61          # text(1)
      63       # "c"
   63          # text(3)
      726479   # "rdy"
   61          # text(1)
      66       # "f"
   00          # unsigned(0)
   61          # text(1)
      6C       # "l"
   19 1000     # unsigned(4096)
   61          # text(1)
      6F       # "o"
   00          # unsigned(0)
   61          # text(1)
      62       # "b"
   44          # bytes(4)
      FFFFFFFF # "\xFF\xFF\xFF\xFF"
   61          # text(1)
      6E       # "n"
   01          # unsigned(1)

the response is:
00:00:01:27.149 V: subscribeCB: Message arrived
00:00:01:27.150 V: subscribeCB: Data
	topic: $aws/things/840d8ee419b8/streams/AFR_OTA-93e1bb19-0dcd-4aeb-9946-5df0260dc063/rejected/cbor
	payload: ¿dcodekInvalidCboraokInvalidCborgmessagetInvalid CBOR messageamtInvalid CBOR messageÿ

or

{"code": "InvalidCbor", "o": "InvalidCbor", "message": "Invalid CBOR message", "m": "Invalid CBOR message"}

BF                                      # map(*)
   64                                   # text(4)
      636F6465                          # "code"
   6B                                   # text(11)
      496E76616C696443626F72            # "InvalidCbor"
   61                                   # text(1)
      6F                                # "o"
   6B                                   # text(11)
      496E76616C696443626F72            # "InvalidCbor"
   67                                   # text(7)
      6D657373616765                    # "message"
   74                                   # text(20)
      496E76616C69642043424F52206D657373616765 # "Invalid CBOR message"
   61                                   # text(1)
      6D                                # "m"
   74                                   # text(20)
      496E76616C69642043424F52206D657373616765 # "Invalid CBOR message"
   FF                                   # primitive(*)

This is consistent with the failure I reported for the MQTT download agent library here:
https://github.com/aws-samples/aws-iot-mqtt-download-agent/issues/3
Can someone please look into this? The CBOR message seems to produce the bitmap that is rejected by the backend!

Thank you for bringing this to our attention! We will be looking further into this issue as soon as we can, thank you for your patience

@gmtt - thank you - do you have an estimate of when we can expect some answer/resolution? We are in the middle of implementation and were hoping that the AWS library will work with the AWS backend "as-is". This is quite unexpected honestly.
We need to make a decision on whether to continue using the AWS OTA library or move to some other solution (which would be very unfortunate to be honest).

Hi @arkhipenko, the encoded hex appears to be correct. However, we suspect that the issue may lie in the cloud part. Could you please enable debug logging to obtain more information about this? Additionally, could you try using the tinycbor version that we tested here: https://github.com/aws/ota-for-aws-iot-embedded-sdk/tree/main/source/dependency/3rdparty instead of the latest version? As we haven't tested the latest version of this library, it's possible that an incompatible library is causing the problem.

Hi @gmtt
Thank you for getting back to me.
Based on the observed behavior, I do also suspect that the problem is with the cloud end of the process.
Meanwhile:
I have downgraded CBOR library to the version you advised me to work with (0.5.4)
I have enabled all logging and attached is the interaction log from the last session (a few minutes ago) with the same unfortunate outcome.
ota-poc.log

Hi @gmtt
Just checking about the status of this - we are on hold until we hear back from you as to whether to expect a fix and when.
Our assumption with choosing of this library was that it should "just work" b/c it is a library provided by AWS communicating with the AWS backend. It is quite surprising to discover that this is not the case.   I would much prefer it was a bug in our code since that is easy to fix.  Please advise!

Hi @arkhipenko
Sorry for the delayed response. We are currently investigating the issue and communicating with the cloud team to identify the problem. Please note that it may take some time due to our bandwidth limitations. We appreciate your patience.

Hi @arkhipenko
We have used our other tool to perform the same task and encountered the same error, indicating a strong likelihood that the problem lies in the cloud component. We have already informed our cloud team about the issue and requested an investigation. We will provide you with an update as soon as we have identified the cause.

Thank you @gmtt
What is surprising to me is that there were no 1000s of reports of MQTT based OTA not working. I was expecting this to be used a lot!

Hello @arkhipenko,
Firstly, apologies that it is taking a bit longer than expected.
I tried with the older release version of OTA library and my firmware upgrade worked as expected.
Can you also try using the last released stable version of the library as here: https://github.com/aws/ota-for-aws-iot-embedded-sdk/releases/tag/v3.4.0?
We are working on figuring out what is causing the issue you are seeing.
This experiment would let us know whether there is anything wrong in the configuration that you are using to build/compile the library.
Thank you,
Aniruddha

I tried compiling with releases 2.0.0 and 3.0.0, but there are too many binary API mismatches - it would take a long time to adjust.

Hey @arkhipenko, I was trying the projects in one of our reference integration projects in this repository: https://github.com/FreeRTOS/iot-reference-nxp-rt1060
It uses the OTA lib submoduled here: https://github.com/FreeRTOS/iot-reference-nxp-rt1060/tree/main/Middleware/AWS. The version in use is v3.4.0.
One of my colleagues also mentioned that it worked for them when they tried it on Tuesday (13th June).
That being said, we are looking into the cloud side of things as well to make sure that there is no breaking change there.
Thank you for your patience.

@AniruddhaKanhere - it is quite interesting.
I had another look at the payload and as far as I can understand the bitmapping, every bit of the bitmap represents a block of data.  What was your colleague's file size?
According to my stream definition: [{"filepath":"/ota/file","filesize":127762 the file size is 127762 bytes.
That size represents 31.19 blocks 4096 bytes each., so a 32 bit bitmap (or 8 bytes) should be sufficient, which explains the number of 'F's in my 'b' field CBOR message:
   44          # bytes(4)
      FFFFFFFF # "\xFF\xFF\xFF\xFF"

a 20-byte 'b' field would suggest a file 655360 or so bytes long.
Regardless, it is still perplexing why his message is accepted and mine is rejected.

I had another look at the payload and as far as I can understand the bitmapping, every bit of the bitmap represents a block of data. What was your colleague's file size?

Yes, that is what the bitmap means. But I don't think that the size of the file should matter because we are still requesting the file and while doing that, we do not know the size of the new file. For all it matters, the new file can be double the size and may not fit in the bitmap that we sent at all. I am not sure though so don't quote me on this :)
But, the image is quite big as you predicted: 34 28770 [OTAAgent] [INFO] Extracted parameter: [key: value]=[filesize: 647324].
That being said, the bitmap has a 7F at the end in his case.
By the way, we were able to figure out that there is nothing wrong with the cloud side of things. We were just sending wrong CBOR.
But this is good news because it now pinpoints that there might be something wrong on the application side of things. And we can figure out what is wrong in your application. :)
Thanks,
Aniruddha

When you say "we are sending the wrong CBOR", what does it mean exactly?
What would the  right CBOR be for that scenario? (Given that you have the exact file stream information).
@AniruddhaKanhere

Ah yes, let me clarify.
If we were supposed to send A6 F1 (assume it to be valid CBOR), then we were actually sending the binary for ASCII A (decimal 65) then binary for ASCII 6(decimal 54) then binary for ASCII F(decimal 70) and then binary for ASCII 1 (decimal 49).
We were supposed to send 0xA6 (decimal 166) and 0xF1 (decimal 241).
This happened because we assumed that the test setup we were using was aware of the hexadecimal numbers. So when we sent 0xF1, we assumed that it would send 241 in decimal notation. But, that test setup wasn't hexadecimal system aware and it actually sent 0..x..F...1.
But, when we did send the valid CBOR message, it was accepted by the cloud.
Following up on your issue though; would it be possible for you to upload your code (only the parts we need to understand this issue) to github and share with us? That way we can replicate your results.

@AniruddhaKanhere
Thank you for your message.
I fully appreciate how the CBOR messaging works. What surprises me is that I literally use CBOr library 0.5.4 as-is, no modifications, AWSIOT library code 3.4.0 as-is, and the results are rejected. I cannot explain this.
The library does not produce '0x' prefixed bitmap, it produces an 'h' prefixed bitmap, which seems to be rejected by the backend. I am yet to see a reasonable explanation why that is. There is barely any code in want you refer to as 'my code' - it just facilitates the MQTT messaging via standard esp32 library. The rest is 100% unmodified AWS, Core JSON and CBOR code. If the 'h' prefixe before the bitmap is a problem, how do I make CBOR not prefix it ?

@AniruddhaKanhere
Thank you for your message.
I fully appreciate how the CBOR messaging works. What surprises me is that I literally use CBOr library 0.5.4 as-is, no modifications, AWSIOT library code 3.4.0 as-is, and the results are rejected. I cannot explain this.
The library does not produce '0x' prefixed bitmap, it produces an 'h' prefixed bitmap, which seems to be rejected by the backend. I am yet to see a reasonable explanation why that is. There is barely any code in want you refer to as 'my code' - it just facilitates the MQTT messaging via standard esp32 library. The rest is 100% unmodified AWS, Core JSON and CBOR code. If the 'h' prefixe before the bitmap is a problem, how do I make CBOR not prefix it ?
Can you actually pinpoint what is wrong with my CBOR message?:
A6             # map(6)
   61          # text(1)
      63       # "c"
   63          # text(3)
      726479   # "rdy"
   61          # text(1)
      66       # "f"
   00          # unsigned(0)
   61          # text(1)
      6C       # "l"
   19 1000     # unsigned(4096)
   61          # text(1)
      6F       # "o"
   00          # unsigned(0)
   61          # text(1)
      62       # "b"
   44          # bytes(4)
      FFFFFFFF # "\xFF\xFF\xFF\xFF"
   61          # text(1)
      6E       # "n"
   01          # unsigned(1)

@AniruddhaKanhere - would it be possible for me to add you to a private Git repo for code sharing?
Also, this is written for esp32 - do you have an esp32 dev board you can run it on?

Hey @arkhipenko,
I am not saying that anything is wrong with your CBOR as it is, maybe we are missing something.
Can you try the steps mentioned here in this repository: https://github.com/FreeRTOS/iot-reference-esp32c3?
This is one of our reference integration repositories and the OTA on that should just work if you follow the instructions in the getting started guide that I linked above. Can you please try that and let us know what happens?
I suggest using everything new for this test (including the 'thing' and corresponding certs/keys and policies). All the process should be outlined in the above linked GSG.

would it be possible for me to add you to a private Git repo for code sharing?

I think it should be fine if you think there is nothing proprietary in there which I should not see.

@AniruddhaKanhere - after careful re-examination of my code I found a nasty little bug in the way outgoing MQTT messages were handled corrupting the CBOR message at the very last step of the process. Corrected and I seem to be getting the MQTT file payloads as expected now.
I apologize for tormenting you with what indeed ended up being an issue on my end, albeit not trivial.
Thank you for your help.
I will close this issue now and open a new one if there are other problems.
Thank you again!

It is great news that you found the bug @arkhipenko!
Thank you for informing us about it. Would you mind elaborating what was happening in your MQTT sending logic? I ask because if this is common enough, then it would benefit all readers of this issue :)
Thanks again for informing us about the issue and the fix,
Aniruddha

The original MQTT code assumed payload was always an ASCII string, so the very final buffer copy was done with strncpy() method, which of course is not suitable for true binary payload, as it stops at the first zero.
Replacing that with memcpy() solved the problem.
So everything looked correct and was correct right up to the point of sending to the backend.

Again, thanks for your help!


Use  'syscall' source in extractor plugin

Motivation
I want to make a custom extractor plugin to extend some field in the syscall events, just like some file stats .
So can I use  'syscall' source in my custom extractor plugin?

Feature

Alternatives

Additional context

Hi @Snailll, this is not supported yet but is in high demand in the community. This will be on the project roadmap, but I think no progress has been made so far.

Hi @jasondellaluce ,thanks for your reply.  How about the feasibility  of  writing a custom ebpf driver , a source plugin and a  extractor plugin.
So I can get syscall info from the ebpf driver then extend fields in the syscall events by a custom plugin?

From a feasibility perspective, you can make something like this work even right now. However, the events coming from your source plugin will only be of "plugin type" from the standpoint of libsinsp and libscap, and so existing fields (evt.type, fd.name, proc.name, ...) will not be usable in Falco rules because the libsinsp internal state is not built from those kind of events.
I hope we will able to change this in the future. An OK solution will be to let plugins generate events of any type (not just "plugin type"). Note that the event type is a very meaningful information used by both libscap and libsinsp to implement things like capture reproduction (.scap files) and the reproduction of the system's state. I hope we'll explore this direction in the near future.
On the bright side, if you plan to built a plugin on top of other non syscall-related features of eBPF, than that would make sense even now and would be a cool project/contribution to attempt! 😄

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

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

/remove-lifecycle rotten
/reopen

@jasondellaluce: Reopened this issue.

In response to this:

/remove-lifecycle rotten
/reopen

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

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

/remove-lifecycle stale


feat: Implement prometheus pull monitoring metrics data from the openGemini

…table and write them to Prometheus

What problem does this PR solve?
Implement openGeminicon to read monitoring indicators from the table and write them to Prometheus

What is changed and how it works?
Implemented the /metrics interface to read metrics from db for reporting.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B
[ ] Test cases to be added
[ ] No code

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Can I know the design plan of the metrics system?

squash the commit into one?

squash the commit into one?

yes

Can I know the design plan of the metrics system?

During initialization, the metric will be registered and initialized first. When /metric is called, getMetrics will be called to obtain the metric from the database, and then Collect will be triggered to write the metric through.

I think a list of prometheus metrics definition should be reviewed first and carefully before implementation

please squash your commit. @gueFDF

@gueFDF do you submit all the modifications? should I merge?

@gueFDF do you submit all the modifications? should I merge?

Yes, I've committed all my changes


does it support download video subtitle from bilibili.com ?

I tried all subtitle options but any of subtitle were downloaded.

Go #26057 and please close this.

same issue was opened


[BUG] Microsoft.Azure.Management.SignalR.Models.SignalRFeature: inconsistency with resource manifest/template because of static member Flag

Describe the bug
In Microsoft.Azure.Management.SignalR.Models.SignalRFeature class, there is no way to set value of Flag member to "ServiceMode". And it being a static string causes issues when object of type Microsoft.Azure.Management.SignalR.Models.SignalRResource is created (through signalRManagementClient.SignalR.CreateOrUpdateAsync(...)), that Flags of both returned Features are set to "EnableConnectivityLogs". This is in conflict with manifest/template of the created resource in Azure Portal, which shows the following Features:
"features": [
    {
        "flag": "ServiceMode",
        "value": "Default",
        "properties": {}
    },
    {
        "flag": "EnableConnectivityLogs",
        "value": "True",
        "properties": {}
    }
]

Microsoft.Azure.Management.SignalR NuGet Version: 1.0.1
Exception or Stack Trace
NA
To Reproduce
Create instance of SiglaR through .Net Core SDK. Use code snippet provided bellow.
Code Snippet
var signalRCreateParameters = new SignalRCreateParameters() {
    Location = resourceGroup.RegionName,
    Tags = tags,

    Sku = new ResourceSku {
        Name = "Standard_S1",
        Tier = "Standard",
        Capacity = 1,
    },
    Properties = new SignalRCreateOrUpdateProperties {
        HostNamePrefix = signalRName,
        Features = new List<SignalRFeature> {
            new SignalRFeature {
                Value = "Default"
            }
        }
    }
};

signalRCreateParameters.Validate();

var signalR = await _signalRManagementClient
    .SignalR
    .CreateOrUpdateAsync(
        resourceGroup.Name,
        signalRName,
        signalRCreateParameters,
        cancellationToken
);

Expected behavior

It is possible to set Flag member of Microsoft.Azure.Management.SignalR.Models.SignalRFeature class. For example to "ServiceMode" or "EnableConnectivityLogs".
When Microsoft.Azure.Management.SignalR.Models.SignalRResource is created, it can have Features with different Flags. In my case:

one whose Flag is equal to "ServiceMode", and Value to "Default"
one whose Flag is equal to "EnableConnectivityLogs", and Value to "True"

Setup (please complete the following information):

OS: Windows 10 Enterprise x64 (1909)
IDE : Visual Studio Enterprise 2019, Version 16.3.9
Microsoft.Azure.Management.SignalR NuGet Version: 1.0.1

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Bug Description Added
[x] Repro Steps Added
[x] Setup information Added

Sorry for late response. @sffamily, @chenkennt could you please share some insights? Thank you

@juniwang please help take a look.

Sorry for late response. We have a PR under reviewing, a preview of the .net SDK change can be found at https://github.com/AzureSDKAutomation/azure-sdk-for-net/pull/585/files#diff-32198cbb0ddba3a6b70e55a0eff49202L42. After this PR merged, it will be fixed in the new version of .NET SDK.
In older versions of SDK, since ServiceMode is the only public FeatureFlag, so the auto-generated SDK used a static flag.  It's a by-design behavior of autorest which we use to generate Azure management SDKs. In the upcoming new version, another FeatureFlag introduced, then both flag and value are required to set.

@juniwang, should this issue be closed as #9377 is merged ?

Yes. it's resolved


[WFLY-16486] upgraded Hibernate ORM to 5.3.27.Final

Issue: https://issues.redhat.com/browse/WFLY-16486

Thanks @istudens


[GR Phase 2] Step 2 Bank account details screen (without API calls)

Design doc section: https://docs.google.com/document/d/1Y4P7G9h0Easjcea7wyk52gKrNB9o1yTjpmJFYkrHDW4/edit?tab=t.0#bookmark=id.ka53nv4qgeyh

Hi, I'm Eugene from Callstack - expert contributor group. I’d like to work on this issue.

@ishpaul777 - Offer sent in Upwork 😃

Paid! Thanks everyone 😃


Add a total of 100 schools to table

Make the total number of economics PhD programmes displayed equal 100 (US + non-US programmes).

Technically this was a goal from day one of this passion project, but I forgot to add it way back when I first created this GitHub repo. Adding and closing this enhancement issue for completeness sake. :)


Fix the AWS_BUCKET check

Ensure that AWS tests are run if the AWS_BUCKET environment variable is
set.
Signed-off-by: Major Hayden<EMAIL_ADDRESS>

Something's still not right...

@ondrejbudai Success!


Frequent ConnectionExceptions started yesterday

Describe the bug
Since yesterday around midday I'm starting to get a lot more ConnectionExceptions than before. My sockpuppets mostly have around 3-4 profiles that get scraped randomly twice a day downloading the latest new posts (at maximum 10) and all new stories. This was working like a charm till we had to fix the missing window.shared_data in version 4.9.1. Afterwards I started to see 429 Errors more frequently and today most of the sockpuppets got logged out.
To Reproduce
My code is something like this (broken down to relevant part):
profile = Profile.from_id(api.context, int(identifier))
posts = list()
for count, element in enumerate(profile.get_posts(), start=1):
    if count > 10:
        break
    posts.append(element)

stories = [item for story in api.get_stories([profile.userid]) for item in story.get_items()]
return posts + stories

Expected behavior
It should still be possible to scrape around ~15-20 profiles saving only the new posts and stories twice a day when using 5 sockpuppets from one machine. This is not "that much" of data.
Error messages and tracebacks
Relevant part is this one for example:
raised unexpected: ConnectionException('JSON Query to graphql/query: Redirected to login')
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 338, in get_json
    raise TooManyRequestsException("Redirected to login")
instaloader.exceptions.TooManyRequestsException: Redirected to login

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 338, in get_json
    raise TooManyRequestsException("Redirected to login")
instaloader.exceptions.TooManyRequestsException: Redirected to login

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 338, in get_json
    raise TooManyRequestsException("Redirected to login")
instaloader.exceptions.TooManyRequestsException: Redirected to login

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
 [... my code ...]
    stories = [item for story in api.get_stories([profile.userid]) for item in story.get_items()]
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloader.py", line 798, in get_stories
    stories = self.context.graphql_query("303a4ae99711322310f25250d988f3b7",
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 428, in graphql_query
    resp_json = self.get_json('graphql/query',
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 394, in get_json
    return self.get_json(path=path, params=params, host=host, session=sess, _attempt=_attempt + 1)
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 394, in get_json
    return self.get_json(path=path, params=params, host=host, session=sess, _attempt=_attempt + 1)
  File "/usr/local/lib/python3.8/dist-packages/instaloader/instaloadercontext.py", line 384, in get_json
    raise ConnectionException(error_string) from err
instaloader.exceptions.ConnectionException: JSON Query to graphql/query: Redirected to login

Instaloader version
Was using instaloader version 4.9.1, but it does not seem that there are relevant changes to this in 4.9.2
Additional context
Maximum number of requests in 429 warning I could find in the logs of the last days was 21 iPhone requests. I remember times where I have seen those errors with way higher 3-digit numbers and nothing happened. Seems instagram is getting stricter every day.

Thanks for reporting! I have not yet fully confirmed it, but that suggests that we may have to verify and eventually adjust the default rate controller.


Mistakes indication

After received my mistakes to Telegram, I wanted to practice writing sentences.
It works, but I made a lot of grammatical mistakes due to my illiteracy.
It will be cool if the Bot underlines the mistakes and sends the correct version, as Google Translete does.

The issue is not related to the project.
See PracticeTurkishBot repository.


Wave 3 Results - JASIST Paper

Put link to draft and updates here

Outline/draft #? -- this time is the charm: https://docs.google.com/document/d/1x--HPQmnsNDkdtSSD1r-TIecOOpeNo-LunwySpDhhtE/edit#

Paper draft  10.07 - no comments - fullest draft, minus conclusion and citations; shared with lab
Paper draft 07.20- with comments - includes comments on structure, alt. phrasing, citations
GigPlat Open Questions - NW memo on structure

Revisiting transcripts: https://docs.google.com/spreadsheets/d/1K9J7f1V-ZKrb9FTVQQhr0GI1yGHqVUq8W7cGEyihIcY/edit#gid=0

@lindseysschwartz  - motivate the interpretations, and place them back in the findings section -->
conjecture, how often we saw it, and then substantiate

@nniiicc -- reiterating the message I sent in slack - I built out the findings section of the gigplat paper -- see here --  but it definitely needs to be pared down. I plan to edit a hard copy to restructure the argument when I have fresh eyes. If you look it over before monday, what would be most helpful is highlighting points to elaborate on and points to exclude. I left comments around a few excerpts that may fit in. if they don’t, we’ve got them for later. thank you again!

👍

To dos

[ ] Write a reverse outline from the draft (including an unwritten discussion / conclusion section)
[ ] Clarify "contributions" vs "implications" vs "findings"

Set up the contribution and implications in the Introduction in short sentences
The expand upon these contributions, tying back to the findings, in the Conclusion section

Other notes:

[ ] Make consistent the dates (2019-2022); as well as things like “three years”
[ ] Explain Design vs Implementation of policy

Policy is hard to design because of compensation structure
Difference bw roles of City Council and OLS
We describe implementation in the findings section, but need to summarize design beforehand

[ ] Legislation vs regulation vs policy vs municipal ordiance
[ ] Table for the policies in Seattle
[ ] In the background - under explaining regulation - talking about why this is so hard to design - what are you rewarding, per task, per mile, or per minute...
[ ] include Uber / Lyft fined by Seattle
[ ] Sentiment section needs transition from Policy Access
[ ] Sentiment section streamlined...
[ ] Reverse engineer the finding section from the “implications of findings” (from 07/20 draft)


PARQUET-1104: Upgrade to Apache Arrow 0.7.0 RC0

This will enable most of the outstanding PRs to be rebased and then merged
Close #384
Close #394

Cherry-picked PARQUET-1082 since it's a required fix

@majetideepak I included a fix for the boost_system issue. I remember you mentioned this, but I'd been too busy to investigate. Can you definitely bug us very loudly when you run into a new transitive dependency? I would rather have fixed this before cutting the Arrow 0.7.0 RC but it's not a big enough problem to cancel the release over.

@wesm  Will be very loud next time. Can we revert the  boost_system dependency in the next release?

I created https://issues.apache.org/jira/browse/ARROW-1536 about fixing that, yes

Filed PARQUET-1105 on the Parquet side to track it.


Nothing appear on the map or catalog after installation

The issue
I installed geoportal-server-catalog 2.6.5 following all the instructions at the letter. However, when accessing the webservice I see no metadata on the page or on the map (see screenshot). I would imagine I should see something like what one can see on the sandbox version of the geoportal...?
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome
Version: 107

hi! congratulations: you have a local instance of Geoportal Server running. This is however always empty by default (0 items). From here you can populate your Geoportal Server either manually by uploading an XML file in one of the configured metadata standards or by using the built-in metadata editor.
Alternatively, you can deploy the Geoportal Server Harvester web application. If you do that, you can harvest metadata from the demo Geoportal Server catalog to fill up your local instance quickly.

Thank you, @mhogeweg
I forgot to say that I did also deployed the Harverster and managed to harvest some data prior to deploying the Catalog.
So, I guess the output folder specified in the Harvester should be reachable by the Catalog through a url (or maybe a filesystem path is enough)...? And where would I specify that?
Thank you again for your time.

I must be missing something in how the Geoportal Server gets results from ElasticSearch results.  I am also not seeing any results after adding metadata via the editor, upload or via the harvester.  I do see results if I directly query ElasticSearch including those I have added via the editor or upload, so the adding of results is working, but the display is not.  I am guessing there is a configuration I am missing.
Also, is there a way to manage records (approved, published, etc) like there was in Geoportal 1.x?

as you can see on the demo site, the first request should return results:
https://gpt.geocloud.com/geoportal2/elastic/metadata/item/_search?from=0&size=10
do you see any errors in the browser console or network traffic or Tomcat logs? Is your elastic running on the same machine as elasticsearch?

I don't see any errors in the browser console, network traffic or Tomcat logs.  It returns a 200 response, just with no hits.
I have ES running in a docker container and I have tried running the Catalog application in both docker and as a local tomcat application with the same result.  The Harvester application successfully puts records into ES as does the Catalog upload/add metadata, I just am not seeing them display in Catalog.
Does Catalog use the same configuration settings to put records into ES as it does to retrieve records to display?

Looking at the elasticsearch docs, I am not seeing why "item" is included in the query url.  Even using your example url, if you remove the item folder in the path, it still works.  The elasticsearch docs I am seeing just have the index (in our case metadata) as an optional part of the _search syntax.
Elasticsearch doc for 7.5
https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search-search.html
demo site search without "/item" in path returns same results as with "/item" in path.
https://gpt.geocloud.com/geoportal2/elastic/metadata/_search?from=0&size=10

there are two paths to the search:

https://gpt.geocloud.com/geoportal2/elastic/metadata/_search?from=0&size=10
https://gpt.geocloud.com/geoportal2/rest/metadata/search?from=0&size=10

these are equivalent and should return the same results. however, they are not the same path. The geoportal/rest path will always include the name /metadata/. However, in the geoportal2/elastic path, you need to include the name of the index you configured in app-context.xml in <beans:property name="indexName" value="**this_value_here**" />.
if your index is not named 'metadata' then you also need to include the name of that index in app-security.xml in the section below the comment:  <!-- /elastic/ - proxied to the Elasticsearch cluster -->.

@mhogeweg
Blah, restarted my computer along with tomcat and docker and things are working now....   Thanks for humoring my idiosyncratic issues.  :)

alright!

A small caveat that may help someone else out in the future, the order in which I start my tomcat and elasticsearch services/containers is what makes for the empty results display.   Any time I need restart tomcat I have to stop both elasticsearch and tomcat and then turn on tomcat and then elasticsearch.  I am not sure why that would be the case, but that is the workaround that is working for me.   This is all in a local dev environment.


WindowsMultiProcessFileAppender - FileSystemRights.AppendData

Merged #1474 with master, and changed from native windows file handle to managed FileStream-object
Using FileSystemRights.AppendData (FILE_APPEND_DATA / O_APPEND) allows multiple processes to write to the same local file without needing a global mutex object. This improves file-write performance with a factor 2.
There are different rumors on the Internet whether FILE_APPEND_DATA works correctly when the number of bytes written in a single operation is larger than 1KByte or 4KByte. The file-size increase that allocates the needed room in the file is atomic. But writing the bytes to the allocated room is probably done in sector size depending on version of operating system. This means if having very aggressive tail application that performs direct file reads, then it can momentarily read the allocated room without data has actually been written.

This change is

I have tested the updated solution with the test-project from #1474 made by @AndreGleichner, and it completes and performs successful verification.

Current coverage is 80% (diff: 77%)

Merging #1756 into master will increase coverage by <1%

@@             master      #1756   diff @@
==========================================
  Files           274        275     +1
  Lines         17422      17525   +103
  Methods        2741       2752    +11
  Messages          0          0
  Branches       1966       1980    +14
==========================================
+ Hits          13974      14088   +114
+ Misses         3005       2971    -34
- Partials        443        466    +23

Powered by Codecov. Last update 71c8b60...1bf7eaa

There are different rumors on the Internet whether FILE_APPEND_DAT

So it's untrue? Or unsure?

Thanks for the changes! Will try to review it soon and release in into 4.4 (rc)

Have discovered that the unit test time has increased. Most likely because of the added combinations in FileTargetTests.cs  (Linq-booleanValues).
Not sure if this is a good direction, as every new parameter will double the time.

Good to know. It was ~11min and now ~19.
In my experience 11 was already to long. When working on several items, I have to wait for hours.
Everything is tested with net35+net40+net45. Maybe we should test some tests only with net45

Added a filter so it only exercises the major FileAppenders.
Travis Test Count = 1734 (Before=2190), but still an increase from current master=1554
AppVeyor Test Count = 1875 (Before=2355), but still an increase from current master=1677

Will try to test this next week

Reviewed 1 of 20 files at r1, 23 of 24 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

src/NLog/Internal/FileCharacteristicsHelper.cs, line 68 at r2 (raw file):

        /// <param name="fileStream">The file stream.</param>
        /// <returns>The file characteristics, if the file information was retrieved successfully, otherwise null.</returns>
        public abstract FileCharacteristics GetFileCharacteristics(string fileName, FileStream fileStream);

Is this not infecting performance?

Comments from Reviewable

Need docs for
ForceManaged = forceManaged,
ForceMutexConcurrentWrites = forceMutexConcurrentWrites

src/NLog/Internal/FileCharacteristicsHelper.cs, line 68 at r2 (raw file):
Previously, 304NotModified (Julian Verdurmen) wrote…
> Is this not infecting performance?

Changing the parameter from IntPtr to FileStream-reference ?

Comments from Reviewable

Review status: all files reviewed at latest revision, 1 unresolved discussion.

src/NLog/Internal/FileCharacteristicsHelper.cs, line 68 at r2 (raw file):
Previously, snakefoot (Rolf Kristensen) wrote…
> Changing the parameter from IntPtr to FileStream-reference ?

Well using FileStream insteaf of IntPtr

Comments from Reviewable

src/NLog/Internal/FileCharacteristicsHelper.cs, line 68 at r2 (raw file):
Previously, 304NotModified (Julian Verdurmen) wrote…
> Well using FileStream insteaf of IntPtr

I'm only using the FileStream-parameter to carry the IntPtr (If needed). If using Win32FileCharacteristicsHelper then it will use fileStream.SafeFileHandle.DangerousGetHandle()

Comments from Reviewable

Review status: all files reviewed at latest revision, 1 unresolved discussion.

src/NLog/Internal/FileCharacteristicsHelper.cs, line 68 at r2 (raw file):
Previously, snakefoot (Rolf Kristensen) wrote…
> I'm only using the FileStream-parameter to carry the IntPtr (If needed). If using Win32FileCharacteristicsHelper then it will use fileStream.SafeFileHandle.DangerousGetHandle()

OK thanks! :)

Comments from Reviewable

from tests give me ~10% performance gain, also with 1 thread.
tested with
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 1  8  1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 1  16 1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 1  32 1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 2  16 1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 4  16 1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 8  16 1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 16 16 1 false >> performance-log.log
NLogPerformance\bin\Release\NLogPerformance.exe 3000000 60 16 1 false >> performance-log.log

Will be in news post


Which CUDA Toolkit version to use?

Hey,
I'm getting a DllNotFoundException on GpuContext.cs:26.
Additional information: Unable to load DLL 'cudnn64_6.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
On a fresh Win10 64bit, I'm running VS 2015, VS 2017 and cuda 8. According to the managedCuda Repo, 7.5 should be the matching version, so I installed it in coexistence of version 8, which did not resolve the issue. I did the builds using VS 2015, because the cuda toolkit does not come with a VS 2017 integration yet. Before I start installing and unistalling cuda versions, I'd like to clarify this concern. As the missing dll includes the digit 6, does that mean, that cuda toolkit version 6 is the right version to go with for this repo?

Hi,
Cuda Toolkit version 8 should work.
I now realize there is an important information missing in the README: you need to download Cudnn library version 6.0 for CUDA 8.0 (here) and you must reference it in the PATH environment variable.

Thanks, issue is resolved.
I added the cudnn64_6.dll to the ../Windows/System32/ directory.


Kiko

Description

Testing instructions

Types of changes

Checklist

[x] Prefix PR title with [WIP] if necessary.
[x] Add tests to cover changes as needed.
[ ] Update documentation as needed.
[ ] I have read the guidelines for adding a new blockchain
[ ] If there is a related Issue, mention it in the description (e.g. Fixes #<issue_number> ).
Thx

I think this is a misake.
What is the purpose, please describe.
Way too  many changed files.
Why target branch is my Solana branch?
Closing.

hi dear adam
perhaps i dont know exactly about that
im a new and no experience in code programer i just read some and run it
testing
so can you explain pls to me target branch.? what is that if is
different ?? so if the target is solana or i dont know is a town or what ?
On Thu, Oct 22, 2020 at 6:57 PM Adam R<EMAIL_ADDRESS>wrote:

I think this is a misake.
What is the purpose, please describe.
Way too many changed files.
Why target branch is my Solana branch?
Closing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/trustwallet/wallet-core/pull/1150#issuecomment-714572979,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARJDFWXQ7F5YLKDRJKEMQT3SMBFPFANCNFSM4S3LJUPQ
.

What are you trying to achieve?

i try to get some tokern or something else but i cant
On Mon, Oct 26, 2020 at 12:43 PM Adam R<EMAIL_ADDRESS>wrote:

What are you trying to achieve?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/trustwallet/wallet-core/pull/1150#issuecomment-716416744,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARJDFWVA6ZUDOSRYUQEXHLDSMU4TZANCNFSM4S3LJUPQ
.