internal: mandate installation device for the simplified installer

Fix https://github.com/osbuild/osbuild-composer/issues/1660
Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>This pull request includes:

[ ] adequate testing for the new functionality or fixed issue
[ ] adequate documentation informing people about the change such as

[ ] create a file in news/unreleased directory if this change should be mentioned in the release news
[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

@teg @gicmo ptal

@teg @gicmo @achilleas-k there's 8.6 now so this is no longer blocked and we can get it in right?

@achilleas-k rebased - let's clean up labels as well

rebased and pushed again

Tested in a RHEL8.6 machine, I got the expected error message if no installation device is specified in blueprint.
[root@yih-test-edge-rhel86 workspace]# composer-cli blueprints show simplenodevice
name = "simplenodevice"
description = "A rhel-edge simplified-installer image"
version = "0.0.1"
packages = []
modules = []
groups = []
distro = ""
[root@yih-test-edge-rhel86 workspace]# composer-cli compose start-ostree simplenodevice edge-simplified-installer --ref rhel/8/x86_64/edge --url http://<IP_ADDRESS>:8080/repo/
2021-11-12 00:33:52,750: failed to create osbuild manifest: boot ISO image type "edge-simplified-installer" requires specifying an installation device to install to

Hi @runcom I have added a test case in test/cases/ostree-simplified-installer.sh to check the error message when no installation device specified in blueprint, and created a pull request to your branch.
Can you please review and merge it?


[ENG-3685] Add permissions for withdrawn registration files

Purpose
Implement custom permissions to handle file access for withdrawn registrations.
Changes

Added WithdrawnRegistrationPermission and updated FileDetailPermission to enforce access control for withdrawn registrations.
Restrict API response

Ticket
<(https://openscience.atlassian.net/browse/ENG-3685)>

So, I looked into this a while ago, and I think the actual easiest thing to do is to add a check for target.is_retracted the same way we do for target.deleted here (or, technically, getattr(target, 'is_retracted', False)): https://github.com/CenterForOpenScience/osf.io/blob/develop/api/files/views.py#L53
I don't love mixing permissions in with the get_queryset functionality, but a) we already do it and b) it feels significantly more appropriate for something that we want to universally mark GONE than for actual permissions.
Also, want to update get_auth here to make sure that WB download links also break (since retractions are always visible)


Add a test for python that verifies numpy and c extensions work.

Fixes:
Related:
Pre-review Checklist

Ref: https://github.com/GoogleContainerTools/distroless/issues/1296


Questionnaire submit crash

Describe the bug
The questionnaire submit validation action provides two options to either fix incorrect fields or submit anyway, should one hit submit anyway the app enters into the wait of death(hangs indefinitely)
Component
SDC library
To Reproduce
See the attached screen record
Expected behavior
What was the initial concept behind the submit anyway? If there' need to keep it then we need to handle its persistence in the application. Alternatively, can this be configurable for those who want to implement draft questionnaires?
Screenshots
https://github.com/google/android-fhir/assets/23252704/2c3fe403-00ce-42f7-b892-a54b41fb4fff
Smartphone (please complete the following information):

Device: Xiomi - Redmi Note 9 Pro
Android version: 10 QKQ1.191215

Would you like to work on the issue?
No

@ageryck, submit anyway should trigger the code here https://github.com/google/android-fhir/blob/aa6b233221e6a38aaed765c42bacd1a847049be4/datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireFragment.kt#L256 which will set the fragment result.
So the fact that the subsequent dialog is hanging seems to be a fhircore issue instead.
Closing this issue for now. Please feel free to reopen Ager if this is indeed an SDK issue and not a fhircore issue.


Compatibility with PlotJuggler

This might seem like a longshot but how would I go about supporting defmt logs in PlotJuggler? My idea is to bring the functionality similar to Arduino's Serial Plotter to defmt-based systems such that recurring logs with the same format, but differing values for a certain variable, can be plotted. I think PlotJuggler is a good choice as it's an incredibly powerful tool, already has plugin support, and is transport- and protocol-agnostic. Building upon that brings a lot of value to defmt-based systems without needing to build the entire plotting application from scratch.

probe-run did support a --json mode which might be handy here. You could build a script/tool/plugin the reads the json and feeds it into PlotJuggler. You can read about it here: https://defmt.ferrous-systems.com/json-output
The problem is that probe-rs does not support the json mode atm, but it should not be too hard to add it, since all the formatting logic is in defmt-decoder.


Create guide: How to use ytt with Helm

Why
Authors or consumers can use helm and ytt together, but they may believe that it's not possible since we have no documentation on how to do it or what use cases it would serve. These guides are intended to be lightweight and highlight these use cases with simple examples.
What
Some use cases we can touch on are:

Patching Helm templates: show example of Helm templates with a ytt overlay Helm post-renderer. (ie: --post-renderer "./overlays.sh)

There's an example of this here

Schema type checking Helm inputs: Using ytt Schemas to type check values that are then piped into helm templates. (ie: ytt -f schema.yml -f values.yml | helm upgrade –values -)
...

How
In a page the carvel.dev/ytt documentation

Note: sad thing is, post-renderer is in some usecases unusable because of this bug: https://github.com/helm/helm/issues/7891 some of the manifest will just skip the hook :disappointed:


Add and use ProcessObject::MakeRequiredOutputs

Intended to supersede pull request #4687

/azp run ITK.Windows

@blowekamp Brad would you mind double checking that this looks OK?


most browser does not support new ImageData()

most browser does not support new ImageData()

@whxaxes ImageData is supported in modern Chrome, Firefox, and Safari. IE not supported at all and I personally won't be adding workarounds for IE, but you can submit a PR if you want IE support :)

PR Submitted


Aw book es6

Please check my PR:
In this Awesome book project following things were added:

Use JavaScript to add or remove books from the list. 👍
Use object-oriented programming to create this project 👍
Write code according to ES6 format 👍

Thanks, sir for reviewed


Add support for Azure, OpenAI, Palm, Anthropic, Cohere, Replicate Models - using litellm

This PR adds support for models from all the above mentioned providers using https://github.com/BerriAI/litellm/
Here's a sample of how it's used:
from litellm import completion, acompletion

## set ENV variables
# ENV variables can be set in .env file, too. Example in .env.example
os.environ["OPENAI_API_KEY"] = "openai key"
os.environ["COHERE_API_KEY"] = "cohere key"

messages = [{ "content": "Hello, how are you?","role": "user"}]

# openai call
response = completion(model="gpt-3.5-turbo", messages=messages)

# async openai
response = acompletion(model="gpt-3.5-turbo", messages=messages)

# cohere call
response = completion("command-nightly", messages)

# anthropic call
response = completion(model="claude-instant-1", messages=messages)

@thevickypedia can you take a look at this PR? Happy to add more comments/ info in the readme if the initial commit looks good😊

@ishaan-jaff Thanks for raising a PR. I would like to run an extensive test the library.
As you may have already noticed, my package is a natural language solution and mostly related to home-automation and serving as a personal-assistant rather than an AI. So it has little to no use for ML/DL libraries.
Nevertheless, I'll go through your library and analyze the use-case scenarios before I can integrate it.

It's open ai it answer the user request generating it instead of using the specfic command which you given it in jarvis/modules/conditions/conversation.py instead of that we can integrate it with open ai

I'm revisiting this PR after a long time. I did research about all the OpenAI solutions
Unfortunately all the APIs are behind a payment firewall (one way or the other), and I'm totally against paying for a feature solely to integrate with Jarvis which is free otherwise
So I decided to create my own private AI with ollama2, I'm still in the initial stages of customizing the model
I'll have the feature integrated in the near future, so I'm closing this PR now
Thanks again for raising a thoughtful PR


test_tpm2_encryptdecrypt test should probe Symmetric Encryption support using GetCapability

If the test_tpm2_encryptdecrypt.sh test is run on a device with a TPM 2.0 implementation that doesn't support Symmetric Encryption, the test will fail.
It should be possible for the script to use the new tpm2_dump_capability (in master) command to request the attributes for the TPM2_EncryptDecrypt command (CC=0x164).  If no results are returned, the command isn't supported by the device, and the test shouldn't fail.
This is being reported as of tpm2.0-tools version 1.1.0.

Good catch. Seems like the right thing to do here would be to have tpm2_encryptdecrypt.c check for command support before execution. Probably something we should do for each tool but I guess that all depends on what commands are required vs optional.


Add C3 LSP

Describe your changes
Adding pherrymason c3-lsp
Checklist before requesting a review

[X] I have successfully tested installation of the package.
[X] I have successfully tested the package after installation.

Screenshots

Any news on that merge?

superseded by https://github.com/mason-org/mason-registry/pull/7642


visual-hexdiff: init at 0.0.53

Description of changes
Init of hexdiff: Visual hexadecimal difference editor

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Is there any way to signal the name this package has on Repology?

Yes, by making the necessary changes in https://github.com/repology/repology-rules/. Though in this case we may also need to rename hexdiff in nixpkgs.


VIECAR dongle

Hi! I am trying to connect to my Viecar dongle, but after selecting it from the list the m5stack reboots and scans BLE again, is this because I dont have the battery on the m5stack? or because my dongle is not supported?
Unknown Service
UUID: 49535343-fe7d-4ae5-8fa9-9fafd205e455
PRIMARY SERVICE
Unknown Characteristic
UUID: 49535343-6daa-4d02-abf6-19569aca69fe Properties: READ, WRITE
Unknown Characteristic
UUID: 49535343-aca3-481c-91ec-d85e28a60318
Properties: NOTIFY, WRITE
Descriptors:
Client Characteristic Configuration UUID: 0x2902

I am trying to connect to my Viecar dongle,

You can set uuid manually via console (termimal). Arduino IDE has a terminal.

Select board -M5Stack-Core2 (you have to install esp32 library first), select port..
Tools serial monitor ... speed is 115200

Enter commands:
serviceUUID=49535343-fe7d-4ae5-8fa9-9fafd205e455
charTxUUID=49535343-aca3-481c-91ec-d85e28a60318
charRxUUID=49535343-6daa-4d02-abf6-19569aca69fe
saveSettings
reboot


Adding the sql-stored-connector

Adding the connector which includes the VerifierExtension as well as the MetaDataExtension. The MetaDataExtension will need to go through another iteration to adhere to the latest conventions.

@zregvart I think your comments on the pom above should be addressed in a separate issue as this applies to all the connectors.


Add event metadata as expected for beta and stable pubsub

Describe the proposal
We uncovered a bug in runtime where content-length metadata was conflicting with the expected value for the payload delivered to pubsub subscriber. The issue happened only with Pulsar and could not be reproduced with Redis, uncovering lack of consistency in how pubsub components handle event metadata. Redis, as a stable component should not have an incomplete implementation - uncovering gap in coverage for conformance tests too.
Long story short, conformant pubsub components should handle metadata and not ignore it.
TODO: validate if there is any existing beta or stable pubsub component that does not handle event metadata and cannot implement it - this would be a blocker to close on this issue.
As an alternative, we can accept the behavior difference and document it just like we do in the state store table in Dapr Docs: https://docs.dapr.io/reference/components-reference/supported-state-stores/
Please, comment and vote:
👍 Make event metadata standard for beta and stable components.
🚀 Document that beta and stable components can optionally implement event metadata handling and which ones have this feature.
👎 Leave it optional and undocumented.
References:
https://github.com/dapr/dapr/issues/7413
https://github.com/dapr/components-contrib/pull/3320

Just as an FYI, when I originally worked on pubsub metadata many moons ago it was to break the abstraction layer to support specific features of Azure Service Bus PubSub such as to allow a user to set the session ID or other attributes on an Azure Service Bus message to enable specific functionality. See the implementation https://github.com/dapr/components-contrib/blob/main/common/component/azure/servicebus/message.go. Therefore, it was not meant as a general purpose feature to attach common "metadata" to any message in a general way and was only documented in the specific components that supported it. So rather than saying a PubSub supports metadata I think of it as a PubSub supports a feature (such as ASB Sessions) by using metadata. This was a long time ago and I am not sure whether the use of pubsub metadata has evolved or the use has changed but thought I would share that if it helps.

Just as an FYI, when I originally worked on pubsub metadata many moons ago it was added to break the PubSub abstraction to support implementation specific features of Azure Service Bus PubSub such as to allow a user to set the session ID or other attributes on an Azure Service Bus message to enable specific functionality. See the implementation and notice there is explicit mapping to and from Message attributes that have meaning in ASB https://github.com/dapr/components-contrib/blob/main/common/component/azure/servicebus/message.go. Therefore, it was not meant as a general purpose feature to attach common "metadata" to any message in a general way and at the time was only documented in the specific components that explicitly used it. So rather than saying a PubSub supports metadata I think of it as a PubSub supports an implementation specific feature by using metadata; if it is not implementation specific then it should be part of the common request API to ensure consistency. This was a long time ago and I am not sure whether the use of pubsub metadata has evolved or how other components have implemented it but if there is a conflict due to the use of metadata that sounds implementation specific. Just thought I would share this in case it helps.
Also worth calling out that not all SDKs seem to implement this either. I recently added it to the go SDK.

This is a great point. Maybe there is no way to have a consistent implementation of event metadata since a simple passthrough is not the expected behavior for some of it.

I made the same point in discord. Each component has a separate set of reserved metadata which will be used to tweak component behavior. That is what the metadata was originally created for. The passthrough of metadata came much later as a request.
You can only passthrough the metadata that is not a reserved keyword for the given pubsub component.
So absolute consistency won't be possible. I suggest that any user wishing to pass through custom data instead manually sends a cloud event using application/cloudevent+json to include cloud event extension attributes.
I have seen some folks with the requirement for Dapr to be sending the metadata as headers to the subscribing service. To me that's a completely separate request. It could be made part of the subscription metadata and we could say that such metadata would automatically be extracted from the cloud event envelope or some other place.


[Socket] condition to release thread

Update src to close socket and release msg thread.
GSocket will close socket automatically if its ref count is 0.
Signed-off-by: Jaeyun<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #40. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


API to allow applying patches to crates

This PR is part of rust-lang/crater#441 and adds a public api to allow adding patch tables to crates.
It adds a builder in front of the BuildDirectory::build method and adds any patches to the crate's Cargo.toml during tweaking.
Thanks!

When you're going to integrate this with Crater, point to the git repo initially. I'll make a release of rustwide soonish.


ALL TEN PERCENT STOCK BOARDS

CORRECTION: AGENCY FOR FROZEN FOOD EXPRESS, WALMART AND SEARS?

https://www.aphis.usda.gov/aphis/ourfocus/business-services


Use range provided dependencies for integrations

What has been done in this PR?

Change all integration dependencies to a Provided range:

//from this:
libraryDependencies += "org.typelevel" %% "cats-effect" % "2.1.1"

//to this:
val `cats-effect` = on {
  case (2, 12) => "[0.2,)"
  case (2, 13) => "[2.0.0,)"
}

libraryDependencies += "org.typelevel" %% "cats-effect" % `cats-effect`

With ranges as wide as possible, from the first version possible (that compiles with current code) to the latest version.
Since scala-steward is going to update versions in docs project, we can check if a new version of the library stops compiling and in that case, we'll need to release a new version upgrading the range.
Other changes

Remove context-applied compiler plugin, until support for IDEs is added.
Convert dependencies object into an auto plugin to simplify dependency management with something like:

override def projectSettings: Seq[Def.Setting[_]] = Seq(
  libraryDependencies ++= projectID.value.name match {
    case "docs"             => docs
    case "memeid4s-cats"    => cats.value
    case "memeid4s-literal" => literal.value
    case "memeid4s-doobie"  => doobie.value
    case _                  => Nil
  }
)

LGTM :shipit:


Add username in async data cache

Add username in async data cache.
This allows multiple users on the same system to use slimline, before they would try to access the same cached data and get a permission denied.

Thanks!


question about kitti datasets

Your work is very good, but I'm a novice in this research direction. I have a question about where to get the "ImageSets" pointed by the red arrow in the picture below. I don't see the download information about this "ImageSets" on kitti's official website. Looking forward to your reply, thank you!

Thanks for ur attention. U can get it here[https://github.com/open-mmlab/OpenPCDet/tree/master/data/kitti/ImageSets]


I think website is down

Should work now.

Thank you @Weilbyte you are amazing! Is there any way we could implement this on our own? Are there voice models we could leverage?


uhc: Use Stackage LTS 4.1 to build UHC

UHC release cycle doesn't align nicely with Hackage's constant stream of new package releases. To make maintenance of the Nix UHC package easier, the Stackage LTS package set should be used.
PR tested on Linux Fedora 64bit.
Maybe the UHC build needs to be disabled on Hydra, as it uses Stackage LTS now ?

See also https://github.com/UU-ComputerScience/uhc/issues/69

Yes, hydra builds for UHC would definitely have to be disabled, because Hydra would end up compiling many, many packages just for this build. I think that would be too expensive.

Also, I'd very much prefer to use LTS 5.x for this, if possible.

I agree that LTS 5.0 would be better. The problematic package is hashable <IP_ADDRESS> or newer. The latest LTS with an old enough version of hashable is LTS 4.1, so there is not much choice there.
With this PR/change, the UHC build might lag a bit behind current Stackage/Hackage versions, but I think this is better than having broken UHC builds half of the time.
I updated the PR, added some more comments and disabled hydra builds.


Handle cycle ref in JSON.stringify

React Native plugin calls the native JSON.stringify, which could causes cycling reference throws. This uses json-stringify-safe package, which is already used in Raven.js core.

Thanks!


Features/dashboard screen

Description
New dashboard
On what platform have you tested the change?

[ ] Android - Emulator
[ ] Android - Physical device
[x] iOS - Emulator
[ ] iOS - Physical device

Screenshots
Please attach screenshots showing the change if relevant
Checklist

[ ] I have updated mockServer
[ ] I've added analytics as relevent
[x] I have run npm test
[ ] I have run npm run test:i18n

Out of scope and potential follow-up
Is there any related changes that you plan to do in a follow-up PR or voluntarily excluded from the scope?

This can be pointed to home-redesign branch

I'm not sure if the embedded html (/estimated-cases-map.html ) will stop working at some point if webflow decides to remove some of the linked assets (e.g. CSS) which has hash appended to the file name.
  <link rel="stylesheet"
    href="https://assets-global.website-files.com/5e3d471e8cf4751833faf0f9/css/joinzozoe-6588f74e1279182-600bce95d784d.3350ecb78.min.css">
</head>

Anyway - my thoughts: lets merge into the shared branch, we might hide the webview for now.


Live Reload Not Working

After executing ng add @angular-architects/module-federation command, live reload not working anymore. Nx based project.
Inf.
os: Ubuntu 20
node: v14.16.1
npm: 7.11.2
yarn: 1.22.5

I removed node_module folder and reinstall, but still not working, maybe some ides anyone

Seems like webpack problem => https://github.com/webpack/webpack/issues/11182

I think, this works now with CLI 12 and its webpack 5 integration.


Issue for Cuda

Hi biu,
When i run command line for training. I'm facing this issue:
RuntimeError: CUDA out of memory. Tried to allocate 200.00 MiB (GPU 0; 3.94 GiB total capacity; 2.79 GiB already allocated; 208.50 MiB free; 28.71 MiB cached).
Please give me some advice.
Best regards,
PeterPham

Same question,it seems like that the train.py is runned by many times,and the gpu memory is filled. did you solve the question?thanks!

@DennisJcy Change the batch size when you train model

@ThanhPham1987 thank you for your reply!🥸


deprecate at-unpack

Since we already require Julia v1.7 where the destructuring syntax (; a, b) = stuff was introduced, I changed all uses of @unpack. This reduces the number of external functions from UnPack.jl that need to be cached, see also https://github.com/SciML/OrdinaryDiffEq.jl/pull/1893. In our case, the impact was less significant since we don't really precompile stuff, but the size of our cache file went down a bit.
Current main branch: ll ~/.julia/compiled/v1.9/Trixi gives
2416516 Mär  9 05:48 fRRHt_BQSYv.ji
25127736 Mär  9 05:48 fRRHt_BQSYv.so*

This PR yields
2413604 Mär  9 05:52 fRRHt_BQSYv.ji
24973976 Mär  9 05:52 fRRHt_BQSYv.so*

This is a reduction by ca. 150 KiB.
julia> 25127736 - 24973976
153760

julia> ans / 1024
150.15625

It looks like the automated approach
julia> function modify(filename)
           file = read(filename, String) |> strip
           file = replace(file, r"@unpack (.+) = (.+)\n" => s"(; \1) = \2\n")
           open(filename, "w") do io
               println(io, file)
           end
       end
modify (generic function with 1 method)

julia> for (root, dirs, files) in walkdir(@__DIR__)
           for file in files
               endswith(file, ".jl") || endswith(file, ".md") || continue
               filename = joinpath(root, file)
               modify(filename)
           end
       end

also introduced some whitespace changes :see_no_evil:

Alternatively, you could replace UnPack with SimpleUnPack (that was done e.g. in OrdinaryDiffEq) and only change the Project.toml + import statements. On Julia >= 1.7, SimpleUnPack.@unpack is expanded to the (; ...) = ... syntax and on older Julia versions it expands to a block of getproperty calls (i.e., it fixes the problems with number of specializations also on older Julia versions). Similarly, SimpleUnPack.@pack! expands to a sequence of setproperty! calls.

Alternatively, you could replace UnPack with SimpleUnPack (that was done e.g. in OrdinaryDiffEq) and only change the Project.toml + import statements. On Julia >= 1.7, SimpleUnPack.@unpack is expanded to the (; ...) = ... syntax and on older Julia versions it expands to a block of getproperty calls (i.e., it fixes the problems with number of specializations also on older Julia versions). Similarly, SimpleUnPack.@pack! expands to a sequence of setproperty! calls.

This sounds like an interesting approach as well, and probably much less hassle. Does it have the same positive impact on precompilation times?

I haven't benchmarked it but that's the main idea - it does just rewrite everything using the base syntax (if available) or getproperty/setproperty! calls, so there is no difference in the generated code compared with writing out the assignments manually. Whereas UnPack.jl rewrites the assignments as calls to unpack(x, Val(key)) and pack!(x, Val(key), val) which leads to a large number of method specializations due to Val (and is also not completely equivalent to getproperty/setproperty!, e.g., unpack/pack! is implemented for dictionaries as well).

Let's do both: I switched to SimpleUnPack.jl for now. Nevertheless, we can keep the change to Julia's standard destructuring syntax. My reasoning is that it's better to use plain base syntax when possible without too much hassle.


Azure AD Connect: Fix topologies after docs migration. Added 1.1.370 scenarios.

…scenarios

Hi @AndKjell, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Andreas Kjellman). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@AndKjell : Thanks for your contribution to the Azure documentation! The author, @AndKjell, has been notified to review your proposed change.

@billmath Hi Bill Please review these changes to your content. Thanks.

#sign-off


Incomptabile Version name for vibe_core/setup.py "2023-02-16" makes it fail for enviroments setup

in file farmvibes-ai/src/vibe_core/setup.py the version name "2023-02-16" is incompatible with older versions of pip which is used by the environments so the environment setup fails after  PEP 440 error , a quick solve was to locally change the version name to " 2023.2.16" which solved the problem for most environments , yet it's very apparent that different notebooks uses different package versions in their environments which makes them incompatible with each other & makes the API integration harder eventually I hope that wide compatibility gets a better focus in upcoming releases

I'm having the same issue which I believe is related.
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
Traceback (most recent call last):
File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/_normalization.py", line 62, in safe_version
return str(packaging.version.Version(v))
File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/_vendor/packaging/version.py", line 197, in i
nit
raise InvalidVersion(f"Invalid version: '{version}'")
setuptools.extern.packaging.version.InvalidVersion: Invalid version: '2023-02-16'
  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/home/azureuser/farmvibes-ai/src/vibe_core/setup.py", line 3, in <module>
      setup(
    File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
      return distutils.core.setup(**attrs)
    File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 147, in setup
      _setup_distribution = dist = klass(attrs)
    File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/dist.py", line 483, in __init__
      self.patch_missing_pkg_info(attrs)
    File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/dist.py", line 472, in patch_missing_pkg_info
      dist._version = _normalization.safe_version(str(attrs['version']))
    File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/_normalization.py", line 65, in safe_version
      return str(packaging.version.Version(attempt))
    File "/home/azureuser/anaconda3/envs/farmvibes-ai/lib/python3.8/site-packages/setuptools/_vendor/packaging/version.py", line 197, in __i

nit__
raise InvalidVersion(f"Invalid version: '{version}'")
setuptools.extern.packaging.version.InvalidVersion: Invalid version: '2023-02-16'
[end of output]

Thanks for reporting, folks. We are working on a fix in our pipelines.

For those with installation issues (@Amr-MKamal, @richstep) , does a pip install --upgrade pip fix the installation error?


Move server-sdk files into packages subdirectory

In order to keep the commit history of the node-repo, we'll have to temporarily allow regular merge-commits instead of squashing them.

I've enabled merge commits here

@nbsp I also copied over most of your README proposal for the node real-time SDK, I hope that's alright with you!

I don't see any line associated with your comment, maybe a GH bug?
I'm assuming you mean the dispose call?

yep

also, weird nit, it feels odd that our two subfolders are rtc-node and livekit-server-sdk. i know they're the package names and one of them is under a namespace — but it isn't consistent to have livekit- on one but not the other (and the prefix is redundant as well, maybe)

can we rename rtc-node to livekit-rtc ?

can we rename rtc-node to livekit-rtc ?

sure, I'll make that change and merge the PR.
We had users (and also Russ) confused in the past as to why repos/folders and the npm package name weren't aligned, so I thought that would be a good shout here. livekit-rtc doesn't make a whole lot of sense to me when the package is called @livekit/rtc-node.

is GH Actions set up to release version packages for rtc-node from this repo as well or not yet?

yeah, it's set up to release all packages in scope


[Snyk] Fix for 2 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
package-lock.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

661/1000  Why? Recently disclosed, Has a fix available, CVSS 7.5
Uncontrolled resource consumption SNYK-JS-BRACES-6838727
Yes
No Known Exploit

661/1000  Why? Recently disclosed, Has a fix available, CVSS 7.5
Inefficient Regular Expression Complexity SNYK-JS-MICROMATCH-6838728
Yes
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: @nuxt/content
    The new version differs by 250 commits.

5fd673e feat(plausible): add plausible ; fix landing page
75a2e74 docs(migration): add redirects for v1 (#1130)
561ec51 chore(docs): import v1 docs (#1123)
c75808a docs(urls): fix starter and v1 urls (#1133)
5fb40f0 docs: add video
e0f9e8e docs: add note to content v1
a78c4b5 docs(blog): update video url
6682dfe docs: fix cover image on blog post
124e3c5 docs: add video
4654da9 docs(writing): add json, csv and yaml (#1121)
de3a57c fix: separate cache version from integrity (#1132)
c858efd docs(marketing): update @ nuxt/content marketing (#1117)
e5b79b4 docs(querying): fix example json title (#1131)
c5591b3 fix(components): improvements on Content components
78c84cc fix(module): invalidate cache on options change (#1129)
6403e35 feat(markdown): web-friendly excerpt delimiter (case & space insensitive) (#1116)
a958db7 fix: remove trailing slash to support nuxt generate (#1127)
4c365fc fix(navigation): sort items numerically (#1122)
99af5aa fix(navigation): fix  `_dir` detection for index pages (#1124)
7db8da5 docs: typo data to navigation (#1120)
58f2d50 feat: internal cache version (#1114)
a13f744 docs: add note on template
5bace6a docs: let link next to each other
9740129 docs: update link to content-wind demo

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Uncontrolled resource consumption

👷 Deploy Preview for competent-cray-5c2b99 processing.

Name
Link

🔨 Latest commit
6b6b793e4017d45ff644a197dd256963df8011c3

🔍 Latest deploy log
https://app.netlify.com/sites/competent-cray-5c2b99/deploys/66427ae2a16d0a0008445c7e


fix: correctly update memoized function with balance changes

Merging without review - this was a bug found by a user in production, and the fix was tested against testnet


Use Airbnb JavaScript Style

It's well designed and pretty popular (37,697 stars), defacto standard.
It's not ready for Eslint 3 because some depending libs were not yet updated.
https://github.com/GeekyAnts/NativeBase/blob/master/Components/Widgets/Title.js

#178 tracking it here.


Label "public" or "private" on board is misleading

The terms "Public session" or "Private session" aren't properly explained and also there's no link to the board settings to directly edit the settings.

Defined in #1942


Add README.md to TS Dashboard

[ ] Description
[ ] How to run (incl. requirements, steps to generate data)
[ ] Screenshots

Since we'll be moving this to another repo, closing this.


"Execute Save Actions on multiple files" not working when whole project or similar (e.g. directory) is selected

Checklist

[X] I am able to reproduce the bug with the latest version
[X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
[X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug.

Affected version
1.2.2
Steps to reproduce the bug

Open a maven multimodule project
Run Code > Save Actions >"Execute Save Actions on multiple files"
Select "Whole project"
❌ Nothing happens

Expected behavior
Formatting should occur
Actual behavior
No response
Additional information
No response

@tboehm-xdev
Should be fixed in the next release (may take ~2 days to be approved by JetBrains).
Alternatively you can also use the latest snapshot.
In the meantime you can try to filter only for .java files as the inspections just crashed on non-text files.
FYI: The UX is still not great (e.g. UI hangs during processing, no feedback), I created a separate issue for that: #130


Add citation of Daniel's TMI 2003 paper

Add to section related to statistical FFD:
[1] Rueckert et al., Automatic construction of 3-D statistical deformation
    models of the brain using nonrigid registration, IEEE TMI, 22(8), 1014–25 (2003)

Added with commit (issue belongs to documentation module actually...).


Added a Swift blog under News, Blogs and more

Project URL

Category

Description

Why it should be included to awesome-ios (mandatory)
Checklist

[ ] Has 50 GitHub stargazers or more
[ ] Only one project/change is in this pull request
[ ] Isn't an archived project
[ ] Has more than one contributor
[ ] Has unit tests, integration tests or UI tests
[ ] Addition in chronological order (bottom of category)
[ ] Supports iOS 9 / tvOS 10 or later
[ ] Supports Swift 4 or later
[ ] Has a commit from less than 2 years ago
[ ] Has a clear README in English

@rizwan95 Thanks for contributing.


Add __NATIVESCRIPT_METADATA_GENERATOR preprocessor macro when generating metadata

Related to: https://github.com/NativeScript/ios-runtime/issues/768#issuecomment-303841384
ping @NathanaelA

run ci

run ci

run ci


GCP Vault Support leveraging Camel-Google-Secret-Manager Properties Function

Related to #3031

Would there be a way to group all implementations of a secret manager under a single vault addon/trait instead of creating every time a new one?

No, because you might want to use all of them together or alone and mixing up the properties doesn't look clear. In camel they are separated concepts.

Thanks, just wondering if we can introduce some map notation (ie, -t vault.aws:access-key="aws-access-key", -t vault.gpc:service-account-key="file:serviceaccount.json"). Not sure how to manage that but it would be something to consider in a second iteration development.

or maybe we might select the type of vault to use through another parameter. In 1.11.0 once we switch to 3.19.x we should add other option for refreshing camel context automatically at secret updates. So maybe we can rework that at that stage and unified the vault.


Controls: Allow right-click menu text to be customized

Feature description: The language of the right-click menu can be customized.

Example:
this.ScottPlot.SetToolStripMenuItemText(ScottPlotMenuItem menuitem,string text);

enum ScottPlotMenuItem
{
  copyMenuItem,
  saveImageMenuItem,
  autoAxisMenuItem,
  ...
}

// Change "Save Image As..." to "保存图像为..."
this.ScottPlot.SetToolStripMenuItemText(ScottPlotMenuItem.saveImageMenuItem,"保存图像为...");

Hi @YNBTools, thank you for this suggestion! I will leave this issue open to remind me to explore options for customizing the text in the labels.
For now, the best way to customize the right-click window is to replace the default one with your own as described here: https://scottplot.net/faq/right-click-menu/

There hasn't been movement on this issue so I'm going to close it, but the best current solution for this is for developers who want to customize the right-click menu to create their own as described by https://scottplot.net/faq/right-click-menu/

Thanks


.timeout() functionality does not work on payload processes with children

The implementation of timeout implemented in #92 does not work as intended for payload processes with children.
Namely, it will get stuck here:
        let stdout = stdout
            .and_then(|t| t.join().unwrap().ok())
            .unwrap_or_default();

waiting for the stdout to EOF, while the "grandchild" process happily keeps that fd open indefinitely.
In order to behave as expected, we need to explicitly kill all transitive children of the payload process here:
                .unwrap_or_else(|| {
                    let _ = child.kill();
                    child.wait()
                })

or at least apply some sort of timeout logic on the read threads.
cc @epage

What OS is this on and can you create a reproduction case to add to the tests?
When the child process is killed, I would expect the OS to close the stdio which would cause the reader threads to end

The file descriptor will be closed if there are no more processes attached to it, but if the initial payload process spawns a child process before being killed, and that child process inherits the standard out of the payload process, then after the kill there will still be a process attached to the stdout fd, so it will not be closed.
I can try to put up a test for this, but I probably won't get to it for a while.

If we cancel the read threads, what would be keeping us from leaking the child processes?  I feel like the main issue here is that those aren't being killed and not us continuing to read from them.


more test masks

add more masks for 2023 submission
Set of experiments to validate femwell notebooks:

rings w/ varying widths, gaps, radii for waveguide properties (width variations, dispersion, bent waveguide loss)
bend cutbacks for bent waveguide loss
coupling to large silicon for coupling to continuum
beta-mismatched directional couplers for coupled-mode theory

Masks will be uploaded once DRC action passes
Next PR will push active experiments
@HelgeGehring

amazing :partying_face:
could we add an additional  "coupling to the continuum" cell with a different gap width? (i.e. the same cell, just that parameter different?)

yes just did that independently lol

I was trying to play with waveguide width too but the mode wasn't coming out nice


Fix basic block number in test/IRGen/weak_import_native.swift

rdar://46712197

@swift-ci Please smoke test and merge


Fix crash where SubscriptionHelper.deferredRequest with non-positive values.

This is an attempt to fix for https://github.com/akarnokd/RxJava2Interop/issues/10.
Some operators (filter in particular) will request zero items, but this does not work with RxJava2.
I'm not sure if this is the correct fix or if there are any implications of this - I'm mostly opening this up to start a discussion.

Current coverage is 100% (diff: 100%)

Merging #11 into master will not change coverage

@@           master   #11   diff @@
===================================
  Files          12    12
  Lines         275   276     +1
  Methods         0     0
  Messages        0     0
  Branches       10    11     +1
===================================
+ Hits          275   276     +1
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update d97a32f...d9cb761

Sorry, didn't see this in time. I've fixed it a bit differently since we still want negative values to trigger the error.

No worries - thanks for being super responsive!


[SR SQL Planner Summer Camp] Support show tablet in new parser

What type of PR is this：

[ ] bug
[x] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #7938
Problem Summary(Required) ：

[FE PR Coverage check]
:disappointed: fail : 116 / 150 (77.33%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/sql/analyzer/ShowTabletStmtAnalyzer.java
76
107
71.03%

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
3
4
75.00%

:large_blue_circle:
com/starrocks/analysis/ShowTabletStmt.java
16
18
88.89%

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
18
18
100.00%

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
2
2
100.00%

run starrocks_fe_unittest

[FE PR Coverage check]
:disappointed: fail : 116 / 150 (77.33%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/sql/analyzer/ShowTabletStmtAnalyzer.java
76
107
71.03%

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
3
4
75.00%

:large_blue_circle:
com/starrocks/analysis/ShowTabletStmt.java
16
18
88.89%

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
18
18
100.00%

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
2
2
100.00%

[FE PR Coverage Check]
:disappointed: fail : 116 / 150 (77.33%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/ShowTabletStmtAnalyzer.java
76
107
71.03%
[27, 42, 43, 50, 64, 87, 93, 94, 112, 117, 127, 128, 132, 133, 137, 138, 143, 144, 149, 150, 155, 156, 161, 162, 167, 168, 169, 170, 173, 174, 179]

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
3
4
75.00%
[354]

:large_blue_circle:
com/starrocks/analysis/ShowTabletStmt.java
16
18
88.89%
[189, 193]

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
18
18
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
2
2
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

admit show tablet case error, please fix it.

[FE PR Coverage Check]
:disappointed: fail : 117 / 150 (78.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/ShowTabletStmtAnalyzer.java
77
107
71.96%
[27, 42, 43, 64, 87, 93, 94, 112, 117, 127, 128, 132, 133, 137, 138, 143, 144, 149, 150, 155, 156, 161, 162, 167, 168, 169, 170, 173, 174, 179]

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
3
4
75.00%
[369]

:large_blue_circle:
com/starrocks/analysis/ShowTabletStmt.java
16
18
88.89%
[189, 193]

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
18
18
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
2
2
100.00%
[]

run starrocks_admit_test

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 122 / 149 (81.88%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
3
4
75.00%
[369]

:large_blue_circle:
com/starrocks/sql/analyzer/ShowTabletStmtAnalyzer.java
82
107
76.64%
[27, 42, 43, 64, 87, 112, 117, 127, 128, 132, 133, 137, 138, 143, 144, 149, 150, 155, 156, 161, 162, 167, 168, 169, 170]

:large_blue_circle:
com/starrocks/analysis/ShowTabletStmt.java
16
17
94.12%
[188]

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
18
18
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
2
2
100.00%
[]


Lua Support

https://luau-lang.org/
https://www.lua.org/manual/5.1/manual.html
https://stackoverflow.com/questions/3593959/integrating-lua-to-build-my-gameentities-in-my-game-engine
https://stackoverflow.com/questions/2184510/easily-porting-lua-code-to-c-sharp

Ok


Blurry texts in cards in canvas

In new core plugin, Canvas, when zooming in the canvas for like 75%, the text is so blurry, only the text in note cards is visible. Besides that, the theme works great, it is one of my favorite themes I use to romanticize my writing

Hi, I may ask if you can add screenshots. I haven't used canvas much myself, so I may be missing it. I tried what you were saying, and although I saw a little blur, it wasn't more than I'd expect with resizing down. I didn't see a difference between cards and notes in the canvas. I think the way canvas works it doesn't resize the font down, but just scales the rendering (just my guess, not sure).
Also, do you have the fonts locally installed? Figtree? And Crimson Pro if you're using the alt style?

Hi, here is the screenshot of my Canvas. I didn't have the fonts locally installed, so it could be the reason (because when I used Canvas with other themes, the card text visibility is totally ok without the custom fonts, so I thought it applies to every theme on Obsidian) and it was probably because I have a small inch laptop screen, so it was a bit difficult for me to see the card texts. In overall, it's not a really major bug.

If you get a chance, try the latest update and let me know if it helps

The texts in the cards are still blurry for me, but it doesn't matter much, thank you for updating the theme


connection lost while called for Twisted, bug-like issue

code structure:
reactor.callFromThread(self.addConnection, channel)
def addConnection(self, channel):
        self.conns[channel] = connectWS(self.factories[channel])

reactor is from twisted.internet import reactor

self.factories[channel] is from

(WsClientFactory)
    def __init__(self, *args, payload=None, **kwargs):
        WebSocketClientFactory.__init__(self, *args, **kwargs)

self.factories[channel]
web sockets url:  wss://ws.okx.com:8443/ws/v5/public?brokerId=9999
arg payload:

payload = json.dumps({"op": "subscribe", "args": "{'channel': 'books', 'instId': 'BTC-USDT-SWAP'}}", ensure_ascii=False).encode(
            "utf8")

when connectWS to above params, we got:

WsClientFactory execute clientConnectionLost. Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
],retried 1 times
WsClientFactory execute clientConnectionLost. Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
],retried 2 times

it is sure that normal ws connect to that url is ok, and the issue is caused at exactly reactor.callFromThread(self.addConnection, channel) so maybe the connectWS  in the self.addConnection has bug-like issue, THX !!!!

@oberstet

@Roms1383

this project has been abandoned? same bug issue several years ago no contributor cares and now again??

Pretty sure the project hasn't been abandoned but you could perhaps do a PR to fix the issue if that bothers you

OH seriously uhhh
so anyone who come out and solve this bro issue? #1267
why so obvious bug-like issue WAS ABANDONED several YEARS ago huh 🤔😑
@om26er
if anyone not, that’s the real botherrrrrrrr

Hi there,
@om26er is perfectly right. this project isn't abandoned, it is used in production in various systems.
@Pborz when you say "why so obvious bug-like issue WAS ABANDONED several YEARS ago huh": there is no bug in autobahn. if you think otherwise, provide a complete test case or example, or a PR together with test cases.
connectWS is an ancient API using ancient Twisted APIs, and you can't call that from a background thread via callFromThread.
The modern API for establishing WebSocket client connections is using Twisted Endpoints, here is a screenshot from a project in crypto which connects to various exchange feeds ... connect_exchange_feed can be called from background threads (via callFromThread)

ok huh so
first, why that bro #1267 didn’t get whatever like this? no even single character. answering whatever like this now, isn’t that goodness? if I say that ‘ it’s my idea to turn you guys all on that an interesting way —cry out ridiculous words—to activate everyone to discuss and solve something, wouldn’t that be so tragically?
second, connectWS is ancient balabala, so if it is a newbie, how to let them know effectively? by repeating some rules like read doc balabala?
third, I not yet read in detail but, why autohabn need to make out a so called ——connect_exchange_feed can be called from background threads (via callFromThread)——
for crypto WS? isn’t that crypto WS not good WS? do you remember that, if someone use the original import websockets to connect() and send(), everything is so smoothly! WHY we need to spending time in something ancient or not? why not based stablely like websockets and every project so easily?

sorry I can't be of any use here, to be honest my issue dates back over 3 years ago and I completely forgot about its details.


SPARKC-231: Create Cassandra table from DataFrame schema

Add methods to aid in creating a new Cassandra table based on the schema of a spark DataFrame. This makes it easy for an application to save a DataFrame to a new Cassandra table without knowing its schema.
One use case for this is to be able to read a DataFrame from a Cassandra table (not knowing or caring about its existing schema), add new columns to the schema, and save the result as a new Cassandra table.

Hi, thanks for the patch.
Could you create a ticket in Jira, and rename your commit so that their titles start with "SPARKC-xxx".

Okay, I created a Jira ticket, squashed the two commits into one and renamed the commit.

@rizzlesauce could you also add relevant documentation or an example under the docs?

I added documentation.

I would actually find this quite useful. Any idea on when it will go into master?

Just tried to run these commands, took 20 minutes to figure out this is an open PR!   Would be very useful to create table off of external schemas.

As this is my first contribution to this particular project, I don't know much about the process of getting it into master or how long it will take.

Understood. In the meantime I am creating custom builds for our use by merging your changes into master and uploading to our repo.
Your contribution is really appreciated, really helped me out
Thanks

Merged into B1.5 Thanks again!


test(toc): add mocha and test for toc, fixes add tests for toc filter #19

Closing this for now due to lack of capacity.


jwt.decode_and_verify

hi, I get jwt.decode_and_verify in developmet mode

Hello @irmaster ! Sorry for delay in response, was a bit busy lately.
You should get JWT from /auth endpoint first. Seems you use barong as standalone. Its much more convenient to use it with ambassador or envoy, so it will do the job of getting JWT for you

thank you so much

guys can you help me as well . . hitting /auth gives me 'ok' but not jwt token

Start rails server JWT_PUBLIC_KEY=$(cat config/secrets/rsa-key.pub| base64 -w0) rails s -b <IP_ADDRESS> (base64 -b0 for macOS)


Expand all available record on Enter click

OOB dyn365 functional allows you to see all available records in lookup field by clicking Enter button. Your control do the same but on Space button click. Is it possible to add the same functional on Enter click?

Hi! I will develop something within the week to achieve what you are saying. I will let you know once it is done if that's ok with you. Thank you for your time!

Thanks!

Hi @yauheni-nechayeu Good news! I have released the latest version v1.0.03 with new improvements and one of them is the Search you were looking for!
Let me know if that works for you :D

Thanks @victorsolaya but this is not exactly what I was talking about) When you open a form, put mouse cursor into search box and click Enter button, the list of values still doesn't expanded.

Oh sorry! Thought that could work for you. I will work on it so it will be in the next release as well. Sorry for the inconvenience

Thank you @victorsolaya ! Yes now it is working as expected!


CLI: allow passing sub-directories of a git repo

Problem
When passing an argument of type Directory, the CLI accepts a git remote url (eg. https://github.com/dagger/dagger) which is awesome; but it does not support passing a sub-directory of that git repo (eg. https://github.com/dagger/dagger/docs) which is not awesome.
Solution
Support passing a sub-directory of a git remote as CLI argument to Dagger CLI.

This can be done today using something like the following syntax:
dagger -m github.com/vikram-dagger/daggerverse/fileutils call tree --dir=https://github.com/dagger/dagger#main:cmd/dagger

This is the same syntax as found in dockerfiles - see https://docs.docker.com/build/building/context/#url-fragments.

Supporting generic slashes is interesting, but I'm not actually sure how possible this is given how nesting works:

github.com/foo/bar/baz/qux is an org foo with project bar with baz/qux as the path
gitlab.com/foo/bar/baz/qux could be:

an org foo with project bar with baz/qux as the path
an org foo with sub-org bar with project baz with qux as the path
an org foo with sub-org bar with sub-org baz with project qux

We've discussed this before in relation to module refs - cc @vito. We could just steal what go does today, and use special meta tags in pages (maybe it's worth just biting that bullet?)

This works fine for me. We should just document it.

Supporting generic slashes is interesting, but I'm not actually sure how possible this is given how nesting works:

github.com/foo/bar/baz/qux is an org foo with project bar with baz/qux as the path

gitlab.com/foo/bar/baz/qux could be:

an org foo with project bar with baz/qux as the path
an org foo with sub-org bar with project baz with qux as the path
an org foo with sub-org bar with sub-org baz with project qux

We've discussed this before in relation to module refs - cc @vito. We could just steal what go does today, and use special meta tags in pages (maybe it's worth just biting that bullet?)

Don't we have to solve this problem anyway for dagger -m <MOD>?
I do think it's a little weird for users, that we have 2 completely different ways to describe the same thing (a directory inside a remote git repo) depending on which flag it's being passed to.

@shykes Yep, that's what the v2 refs proposal was all about (https://github.com/dagger/dagger/pull/6187); it was meant to be a unified ref syntax for any Directory, which could be used for both module refs and arbitrary git + subpath refs. But then we got stuck in discussions around whether we want short refs for the Daggerverse and the proposal died.
Combined with #6895 where a contributor is trying to decouple our module refs from GitHub, it feels like it's time to revive that proposal (in spirit, not necessarily in its last form).

Potential proposal - could we "borrow" the go method of working out where the split is, and then also add our own version in as well (essentially s/go/dagger) for anyone implementing it from scratch?
That would help at least unblock #6895, even if we don't fully get to the full power of refs v2 described in #6187.

How does terraform do it?
module "example_module" {
  source = "git::https://github.com/username/repo.git//path/to/subdirectory?ref=branch_or_tag"
}

@grouville, can you own this as well?


[Bug]: OpenVPN is not connecting to services behind it

Description
I deploy OpenVPN pod for development team access to k8s services.
OpenVPN client can connect to pod use pod ip and port, but if use service ip and service port connection timeout.
I think issue same as:
https://serverfault.com/questions/924773/openvpn-is-not-connecting-to-services-behind-it-iptables
Please help!
Kube.tf file
module "kube-hetzner" {
  providers = {
    hcloud = hcloud
  }
  hcloud_token = var.hcloud_token != "" ? var.hcloud_token : local.hcloud_token
  source = "kube-hetzner/kube-hetzner/hcloud"
   ssh_port = 2222
  ssh_public_key = file("${path.module}/ssh/k8s-hetzner.pub")
  ssh_private_key = file("${path.module}/ssh/k8s-hetzner")
  network_region = "eu-central"
  network_ipv4_cidr = "<IP_ADDRESS>/8"
  cluster_ipv4_cidr = "<IP_ADDRESS>/16"
  control_plane_nodepools = [
    {
      name        = "control-plane-fsn1",
      server_type = "cpx11",
      location    = "fsn1",
      labels      = [],
      taints      = [],
      count       = 1

      # Enable automatic backups via Hetzner (default: false)
      # backups = true
    },
    {
      name        = "control-plane-nbg1",
      server_type = "cpx11",
      location    = "nbg1",
      labels      = [],
      taints      = [],
      count       = 1

      # Enable automatic backups via Hetzner (default: false)
      # backups = true
    },
#    {
#      name        = "control-plane-hel1",
#      server_type = "cpx11",
#      location    = "hel1",
#      labels      = [],
#      taints      = [],
#      count       = 1
#
#      # Enable automatic backups via Hetzner (default: false)
#      # backups = true
#    }
  ]

  agent_nodepools = [
    {
      name        = "agent-small",
      server_type = "cpx11",
      location    = "fsn1",
      labels      = [],
      taints      = [],
      count       = 2

      # Enable automatic backups via Hetzner (default: false)
      # backups = true
    },
    {
      name        = "agent-large",
      server_type = "cpx21",
      location    = "nbg1",
      labels      = [],
      taints      = [],
      count       = 0

      # Enable automatic backups via Hetzner (default: false)
      # backups = true
    },
    {
      name        = "storage",
      server_type = "cpx21",
      location    = "fsn1",
      # Fully optional, just a demo.
      labels      = [
        "node.kubernetes.io/server-usage=storage"
      ],
      taints      = [],
      count       = 1

    },
    {
      name        = "egress",
      server_type = "cpx11",
      location    = "fsn1",
      labels = [
        "node.kubernetes.io/role=egress"
      ],
      taints = [
        "node.kubernetes.io/role=egress:NoSchedule"
      ],
      floating_ip = true
      count = 0
    },
    {
      name        = "agent-arm-small",
      server_type = "cax11",
      location    = "fsn1",
      labels      = [],
      taints      = [],
      count       = 0
    }
  ]
  load_balancer_type     = "lb11"
  load_balancer_location = "fsn1"
  ingress_controller = "traefik"

  traefik_additional_options = ["--log.level=DEBUG"]
  initial_k3s_channel = "stable"
  cluster_name = "k3s"

  restrict_outbound_traffic = true

   extra_firewall_rules = [
     {
       description = "ELK logs"
       direction       = "out"
       protocol        = "tcp"
       port            = "9200"
       source_ips      = [] # Won't be used for this rule
       destination_ips = ["<IP_ADDRESS>/0", "::/0"]
     },
     {
       description = "To Allow ArgoCD access to resources via SSH"
       direction       = "out"
       protocol        = "tcp"
       port            = "22"
       source_ips      = [] # Won't be used for this rule
       destination_ips = ["<IP_ADDRESS>/0", "::/0"]
     }
   ]

   cni_plugin = "cilium"
   enable_cert_manager = false
   dns_servers = ["<IP_ADDRESS>", "<IP_ADDRESS>", "<IP_ADDRESS>"]

  cilium_values = <<EOT
ipam:
  mode: kubernetes
k8s:
  requireIPv4PodCIDR: true
kubeProxyReplacement: true
routingMode: native
ipv4NativeRoutingCIDR: "<IP_ADDRESS>/8"
endpointRoutes:
  enabled: true
loadBalancer:
  acceleration: native
bpf:
  masquerade: true
egressGateway:
  enabled: true
MTU: 1450
EOT

 traefik_values = <<EOT
deployment:
  replicas: 1
globalArguments: []
service:
  enabled: true
  type: LoadBalancer
  annotations:
    "load-balancer.hetzner.cloud/name": "k3s"
    "load-balancer.hetzner.cloud/use-private-ip": "true"
    "load-balancer.hetzner.cloud/disable-private-ingress": "true"
    "load-balancer.hetzner.cloud/location": "nbg1"
    "load-balancer.hetzner.cloud/type": "lb11"
    "load-balancer.hetzner.cloud/uses-proxyprotocol": "true"

ports:
  web:
    redirectTo: websecure

    proxyProtocol:
      trustedIPs:
        - <IP_ADDRESS>/32
        - <IP_ADDRESS>/8
    forwardedHeaders:
      trustedIPs:
        - <IP_ADDRESS>/32
        - <IP_ADDRESS>/8
  websecure:
    proxyProtocol:
      trustedIPs:
        - <IP_ADDRESS>/32
        - <IP_ADDRESS>/8
    forwardedHeaders:
      trustedIPs:
        - <IP_ADDRESS>/32
        - <IP_ADDRESS>/8

tlsOptions: {}
tlsStore: {}

certResolvers:
  letsencrypt:
    email<EMAIL_ADDRESS>    tlsChallenge: true
    httpChallenge:
      entryPoint: "web"
    #     # It has to match the path with a persistent volume
    storage: /data/acme.json

  EOT
}

provider "hcloud" {
  token = var.hcloud_token != "" ? var.hcloud_token : local.hcloud_token
}

terraform {
  required_version = ">= 1.3.3"
  required_providers {
    hcloud = {
      source  = "hetznercloud/hcloud"
      version = ">= 1.39.0"
    }
  }
}

Screenshots
No response
Platform
Linux

When I send packet to service use command
curl http://<IP_ADDRESS>:9090
08:09:43.557956 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57615 > <IP_ADDRESS>.9090: Flags [SEW], cksum 0xc2fe (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val 418076138 ecr 0,sackOK,eol], length 0
08:09:44.560509 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57615 > <IP_ADDRESS>.9090: Flags [S], cksum 0xbfd5 (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val 418077139 ecr 0,sackOK,eol], length 0
08:09:45.561348 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57615 > <IP_ADDRESS>.9090: Flags [S], cksum 0xbbec (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val 418078140 ecr 0,sackOK,eol], length 0
08:09:46.561143 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57615 > <IP_ADDRESS>.9090: Flags [S], cksum 0xb803 (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val 418079141 ecr 0,sackOK,eol], length 0
08:09:47.563019 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57615 > <IP_ADDRESS>.9090: Flags [S], cksum 0xb41a (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val 418080142 ecr 0,sackOK,eol], length 0
08:09:48.562645 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57615 > <IP_ADDRESS>.9090: Flags [S], cksum 0xb031 (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val 418081143 ecr 0,sackOK,eol], length 0

when I send packed to pod ip all ok:
curl http://<IP_ADDRESS>:9090
 08:11:27.416767 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 64)
    <IP_ADDRESS>.57666 > <IP_ADDRESS>.9090: Flags [SEW], cksum 0x91e9 (correct), seq<PHONE_NUMBER>, win 65535, options [mss 1356,nop,wscale 6,nop,nop,TS val<PHONE_NUMBER> ecr 0,sackOK,eol], length 0
08:11:27.416865 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 60)
    <IP_ADDRESS>.9090 > <IP_ADDRESS>.57666: Flags [S.E], cksum 0x237b (incorrect -> 0x7ddc), seq<PHONE_NUMBER>, ack<PHONE_NUMBER>, win 64704, options [mss 1360,sackOK,TS val 271347987 ecr<PHONE_NUMBER>,nop,wscale 7], length 0
08:11:27.472540 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 52)
    <IP_ADDRESS>.57666 > <IP_ADDRESS>.9090: Flags [.], cksum 0xa104 (correct), ack 1, win 2058, options [nop,nop,TS val<PHONE_NUMBER> ecr 271347987], length 0
08:11:27.567033 IP (tos 0x2,ECT(0), ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 132)
    <IP_ADDRESS>.57666 > <IP_ADDRESS>.9090: Flags [P.], cksum 0xe117 (correct), seq 1:81, ack 1, win 2058, options [nop,nop,TS val<PHONE_NUMBER> ecr 271347987], length 80
08:11:27.567096 IP (tos 0x0, ttl 63, id 8131, offset 0, flags [DF], proto TCP (6), length 52)
    <IP_ADDRESS>.9090 > <IP_ADDRESS>.57666: Flags [.], cksum 0x2373 (incorrect -> 0xa62e), ack 81, win 505, options [nop,nop,TS val 271348138 ecr<PHONE_NUMBER>], length 0
08:11:27.570339 IP (tos 0x2,ECT(0), ttl 63, id 8132, offset 0, flags [DF], proto TCP (6), length 362)
    <IP_ADDRESS>.9090 > <IP_ADDRESS>.57666: Flags [P.], cksum 0x24a9 (incorrect -> 0x4738), seq 1:311, ack 81, win 505, options [nop,nop,TS val 271348141 ecr<PHONE_NUMBER>], length 310
08:11:27.624034 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 52)
    <IP_ADDRESS>.57666 > <IP_ADDRESS>.9090: Flags [.], cksum 0x9e50 (correct), ack 311, win 2053, options [nop,nop,TS val<PHONE_NUMBER> ecr 271348141], length 0
08:11:27.719946 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 52)
    <IP_ADDRESS>.57666 > <IP_ADDRESS>.9090: Flags [F.], cksum 0x9e4f (correct), seq 81, ack 311, win 2053, options [nop,nop,TS val<PHONE_NUMBER> ecr 271348141], length 0
08:11:27.720080 IP (tos 0x0, ttl 63, id 8133, offset 0, flags [DF], proto TCP (6), length 52)
    <IP_ADDRESS>.9090 > <IP_ADDRESS>.57666: Flags [F.], cksum 0x2373 (incorrect -> 0xa3c4), seq 311, ack 82, win 505, options [nop,nop,TS val 271348291 ecr<PHONE_NUMBER>], length 0
08:11:27.776932 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 52)
    <IP_ADDRESS>.57666 > <IP_ADDRESS>.9090: Flags [.], cksum 0x9d20 (correct), ack 312, win 2053, options [nop,nop,TS val<PHONE_NUMBER> ecr 271348291], length 0

First screen request to pod, second to service k8s

Hey @CroutonDigital, I was not able to get a full picture from the information you provided and maybe I went the wrong path trying to follow your description. Can you try to be as precise as possible about the scenarios, especially from where you try to reach what?
Here is what I understood so far, but please read it carefully and correct/add missing information:

OVPN Client: ?
OVPN Pod: <IP_ADDRESS>
Node (OVPN): <IP_ADDRESS>
Web-App Pod: <IP_ADDRESS>
Service (Web-App): <IP_ADDRESS>

when I try connect inside OpenVPN pod, curl http://<IP_ADDRESS>:9090/
all ok

OVPN Pod >  Service (Web-App) > Web-App Pod: OK

OpenVPN client can connect to pod use pod ip and port [...]

OVPN Client > OVPN Pod >  Web-App Pod: OK

[...] but if use service ip and service port connection timeout

OVPN Client > OVPN Pod >  Service (Web-App) > Web-App Pod: Fail
Please answer the following points:

Please provide traces for those 3 scenarios (pcap appreciated, otherwise meaningful WireShark screenshot with the relevant packet opened in the details explorer)
I guess the traces are created from Node (OVPN)? -> Please provide your full command you have used for the trace
Have you enabled some kind of masquerading in your OVPN Pod? -> Please provide the commands you use
If you use the egress, have you excluded the <IP_ADDRESS>/8 range? -> see: excludedCIDRs in CiliumEgressGatewayPolicy example from README.md
Please provide your service definition

Route path:
Not Worked:
OVPN CLIENT (OS X with VPN IP <IP_ADDRESS>/24 range) > LOAD BALANCER TCP 1194 > k8s > OVPN POD (<IP_ADDRESS>) > GRPC BACKEND SERVICE (<IP_ADDRESS>:9090) > GRPC BACKEND POD (<IP_ADDRESS>:9090)
Worked:
OVPN CLIENT (OS X with VPN IP <IP_ADDRESS>/24 range) > LOAD BALANCER TCP 1194 > k8s > OVPN POD (<IP_ADDRESS>) > GRPC BACKEND SERVICE (<IP_ADDRESS>:9090) > GRPC BACKEND POD (<IP_ADDRESS>:9090)
OVPN Client: <IP_ADDRESS>/24 range (MASKED IP OVPN POD <IP_ADDRESS> use SNAT RULE IPTABLES)
OVPN Pod: <IP_ADDRESS>
Node (OVPN): <IP_ADDRESS>
Web-App Pod: <IP_ADDRESS>
Service (Web-App): <IP_ADDRESS>
vpn.pcap.zip

service definition
resource "kubernetes_service" "binance_test_futures_client" {
  metadata {
    name = "binance-test-futures-client"
    namespace = local.namespace_name
  }
  spec {
    port {
      port        = 9090
      target_port = 9090
      protocol    = "TCP"
    }
    selector = {
      app = kubernetes_daemonset.binance_test_futures_client.metadata[0].labels.app
    }
  }
}

Thx @CroutonDigital!
I can't see the that the service LB is even trying to act on the masqueraded packet destined to the cluster IP. Can you please try it again with the following cilium configuration?
ipam:
  mode: kubernetes
k8s:
  requireIPv4PodCIDR: true
kubeProxyReplacement: true
routingMode: native
ipv4NativeRoutingCIDR: "<IP_ADDRESS>/8"
endpointRoutes:
  enabled: true
loadBalancer:
  acceleration: native
bpf:
  masquerade: true
socketLB:
  hostNamespaceOnly: true
egressGateway:
  enabled: true
MTU: 1450

This will skip the socket LB for services when inside a pod namespace, in favor of the service LB at the pod interface (tc load balancer).

I change cilium values on kube.tf
  cilium_values = <<EOT
ipam:
  mode: kubernetes
k8s:
  requireIPv4PodCIDR: true
kubeProxyReplacement: true
routingMode: native
ipv4NativeRoutingCIDR: "<IP_ADDRESS>/8"
endpointRoutes:
  enabled: true
loadBalancer:
  acceleration: native
bpf:
  masquerade: true
socketLB:
  hostNamespaceOnly: true
egressGateway:
  enabled: true
MTU: 1450
EOT

same issue,
also I have additional VM attached to the hetwork and same issue with service communicate.
I take dump from OVPN POD:
dump.pcap.zip
OVPN Client utun3 inet <IP_ADDRESS> --> <IP_ADDRESS>
OVPN Pod: eth0 <IP_ADDRESS> | tun0: <IP_ADDRESS>
Node (OVPN): <IP_ADDRESS>
Web-App Pod: <IP_ADDRESS>
Service (Web-App): <IP_ADDRESS>

Hey @CroutonDigital, that's strange. Are you sure the new configuration is applied successfully? You can enforce it with the following command: kubectl -n kube-system rollout restart daemonset/cilium
Here is a new version that explicitly allows external access to Cluster IPs (bpf.lbExternalClusterIP: true). Imho this should not be necessary as the IP should be SNATed with the Pod IP, but just in case it is smarter than I thought.
ipam:
  mode: kubernetes
k8s:
  requireIPv4PodCIDR: true
kubeProxyReplacement: true
routingMode: native
ipv4NativeRoutingCIDR: "<IP_ADDRESS>/8"
endpointRoutes:
  enabled: true
loadBalancer:
  acceleration: native
bpf:
  masquerade: true
  lbExternalClusterIP: true
socketLB:
  hostNamespaceOnly: true
egressGateway:
  enabled: true
MTU: 1450

also I have additional VM attached to the hetwork and same issue with service communicate.

This will not work out of the box because the underlying network does not know about where to route the service CIDR traffic to. Cluster IPs to not belong to a single node as they are only virtually known by the service load balancers inside of the nodes.
Here some more points you can try/verify:

Please make sure, that you have the egress exception, in case you use it (see: excludedCIDRs in CiliumEgressGatewayPolicy example from README.md)
Can you provide the output for iptables -t nat -L -n -v, ip a and ip route from inside of the OpenVPN Pod after you tried to reach the service from the OpenVPN client?
Try to start with a minimal setup like this and see if it works:ipam:
  mode: kubernetes
k8s:
  requireIPv4PodCIDR: true
kubeProxyReplacement: true
routingMode: native
ipv4NativeRoutingCIDR: "<IP_ADDRESS>/16"
bpf:
  lbExternalClusterIP: true
socketLB:
  hostNamespaceOnly: true
MTU: 1450

Info: These settings also disable XDP, so that tcpdump could be able to see more with this setup. A new trace could be worth it after applying this.
You can also provide me the full OpenVPN service so I can try it on my own cluster because there are so many possibilities here as to what could be the reason. But please try the previous options first and see if we can come closer to the root cause.

@M4t7e it seems worked after kubectl -n kube-system rollout restart daemonset/cilium )))))
I will test today, I write feedback for you!


mdspan incorrect is_contiguous for CUDA with strided layout

https://github.com/rapidsai/mdspan/blob/5752ba5b42a8660a573555dab025bcd64ead912e/include/experimental/__p0009_bits/layout_stride.hpp#L301

Wrong place.


Adding Mozzarella as an allergen doesn't work

Adding Mozarella as an allergen doesn't work because Mozarella isn't a common allergen and isn't in the ingredient list:
https://world.openfoodfacts.org/product/8000430133035/mozzarella-galbani
As a result, we should restrict the allergen alert to common allergens that have been translated accross languages.

Hi @teolemon , I checked this by adding Mozzarella as allergen and then checked for the product below. Mozzarella alert as an allergen doesnt work here too, but it is there in the ingredients list.
Could you please ellaborate what needs to be done ? :)


Is variable inspection supported in the console?

Looking to debug inputs to modules. Seeing that it should be possible to access local variables in the console when using regular terraform. Cannot find any documentation regarding this for terragrunt, is this supported?
include {
  path = find_in_parent_folders()
}

terraform {
  source = "../../../modules//some-module"
}

locals {
  secrets = yamldecode(sops_decrypt_file("secrets.yml"))
  foo = "hello"
}

inputs = {
  account-name = "prod"
}

λ terragrunt console
... snip ...
Terraform has been successfully initialized!
... snip ...

> local.foo

>
Error: Reference to undeclared local value

  on <console-input> line 1:
  (source code not available)

A local value with the name "foo" has not been declared.

> local.account-name

>
Error: Reference to undeclared local value

  on <console-input> line 1:
  (source code not available)

A local value with the name "account-name" has not been declared.

terragrunt verision: v0.23.33 (downgraded because of #1329)
terraform version: v0.14.7

No, Terraform has no awareness or visibility of anything in the Terragrunt config. If you want to see the variables Terragrunt is resolving, you probably want the --terragrunt-debug flag instead: https://terragrunt.gruntwork.io/docs/features/debugging/

Ah cool, the --terragrunt-debug flag generates a terragrunt-debug.tfvars.json file, that's very helpful, thanks!


Speed up node block synchronization time

For blocks full of transactions on testnet it can take more than 2 minutes to sync a block (longer then block produce time [~1 min?], which results in not being able to catch up with the tip):
eg. block 205520 took 2 mins 27 seconds to sync
godwoken_1  | [2021-12-20T21:35:06Z INFO  gw_block_producer::poller] known last tx hash, skip 0ae1bfc7dada69ee4a822193eab79466849c33e4d47132eefa98355f35016d4d
godwoken_1  | [2021-12-20T21:36:03Z INFO  gw_chain::chain] sync new block #205502 success
godwoken_1  | [2021-12-20T21:36:20Z INFO  gw_block_producer::poller] known last tx hash, skip ca6714d068569357e64cd1090cd721ff518b7ca847dae60af0d31de72d2e9fd8
godwoken_1  | [2021-12-20T21:38:11Z INFO  gw_chain::chain] sync new block #205503 success
godwoken_1  | [2021-12-20T21:38:31Z INFO  gw_block_producer::poller] known last tx hash, skip 69135636c50a9685d018eafcfd483caaab30fa756113daa216934cf7e6d8ebf0
godwoken_1  | [2021-12-20T21:39:42Z INFO  gw_chain::chain] sync new block #205504 success
godwoken_1  | [2021-12-20T21:39:54Z INFO  gw_block_producer::poller] known last tx hash, skip a61b7b1ec49a659b113ecc4152ae5546c522cf7983c93f876f2a82fce6229166
godwoken_1  | [2021-12-20T21:41:34Z INFO  gw_chain::chain] sync new block #205505 success
godwoken_1  | [2021-12-20T21:41:51Z INFO  gw_block_producer::poller] known last tx hash, skip 318644f963d763b03bcb350792cf3fb99c054c33b53b924348628720e25d5767
godwoken_1  | [2021-12-20T21:43:04Z INFO  gw_chain::chain] sync new block #205506 success
godwoken_1  | [2021-12-20T21:43:21Z INFO  gw_block_producer::poller] known last tx hash, skip bcdfe7d11254fdc9c8d1fc261a034b0ca9d7aa0fc1dc26f9ce1346cb7d47a720
godwoken_1  | [2021-12-20T21:45:10Z INFO  gw_chain::chain] sync new block #205507 success
godwoken_1  | [2021-12-20T21:45:26Z INFO  gw_block_producer::poller] known last tx hash, skip 32dce1049448cf17c4348e6a58646a2c8e95b80bab5757f693f0276febeb5f9c
godwoken_1  | [2021-12-20T21:46:34Z INFO  gw_chain::chain] sync new block #205508 success
godwoken_1  | [2021-12-20T21:46:44Z INFO  gw_block_producer::poller] known last tx hash, skip 126785868f9b79be58e6808d8108ee9339a159e54de5ae5969a24ae3c92953e0
godwoken_1  | [2021-12-20T21:48:23Z INFO  gw_chain::chain] sync new block #205509 success
godwoken_1  | [2021-12-20T21:48:44Z INFO  gw_block_producer::poller] known last tx hash, skip 0b40a853a6957eb55ffc295571220363728d2d4c5622886cf7a32f0463c90b67
godwoken_1  | [2021-12-20T21:49:50Z INFO  gw_chain::chain] sync new block #205510 success
godwoken_1  | [2021-12-20T21:50:03Z INFO  gw_block_producer::poller] known last tx hash, skip 4dd373547e4549d9f119fe69c04669a2012a21c9fc1813b96339111b0e5a3baa
godwoken_1  | [2021-12-20T21:51:52Z INFO  gw_chain::chain] sync new block #205511 success
godwoken_1  | [2021-12-20T21:52:09Z INFO  gw_block_producer::poller] known last tx hash, skip 1bca7dfd97d0bdba30b7120caae3ce47d38d6650135ede917cc58c9eb549cd50
godwoken_1  | [2021-12-20T21:53:17Z INFO  gw_chain::chain] sync new block #205512 success
godwoken_1  | [2021-12-20T21:53:26Z INFO  gw_block_producer::poller] known last tx hash, skip 5b87d7e3eb22e184f1890cef33492a53f83a113d83ab80467e41759dce78db76
godwoken_1  | [2021-12-20T21:55:10Z INFO  gw_chain::chain] sync new block #205513 success
godwoken_1  | [2021-12-20T21:55:27Z INFO  gw_block_producer::poller] known last tx hash, skip dc8114bbb75ce5ac7760d2fd4fba1313cecf9900d6b36759cf6e41a935b4f1e7
godwoken_1  | [2021-12-20T21:56:40Z INFO  gw_chain::chain] sync new block #205514 success
godwoken_1  | [2021-12-20T21:56:57Z INFO  gw_block_producer::poller] known last tx hash, skip 8d03fa6545a5138f39a5d380c51d5202be1e342185ee5912af5fc6e757a7d3ad
godwoken_1  | [2021-12-20T21:59:05Z INFO  gw_chain::chain] sync new block #205515 success
godwoken_1  | [2021-12-20T21:59:35Z INFO  gw_block_producer::poller] known last tx hash, skip ba32eb7ad9acd05489abddb59c50400bd2a667dba2dd5f28f81180df353c85e7
godwoken_1  | [2021-12-20T22:00:14Z INFO  gw_chain::chain] sync new block #205516 success
godwoken_1  | [2021-12-20T22:00:20Z INFO  gw_block_producer::poller] known last tx hash, skip 3c1c525f366ec501a4eb469896ef9019ad9a9f175fd4b8ca2f21b628e4489cc5
godwoken_1  | [2021-12-20T22:02:34Z INFO  gw_chain::chain] sync new block #205517 success
godwoken_1  | [2021-12-20T22:03:03Z INFO  gw_block_producer::poller] known last tx hash, skip 98618f2647dcac614ff9a36f1ca44af61be880a5bfd4f6a62985c96f003f6777
godwoken_1  | [2021-12-20T22:03:42Z INFO  gw_chain::chain] sync new block #205518 success
godwoken_1  | [2021-12-20T22:03:50Z INFO  gw_block_producer::poller] known last tx hash, skip 83bca18542109aba7e9973338e8e0e1b23df6e733bca72809b63eb79ac8b6a22
godwoken_1  | [2021-12-20T22:03:59Z INFO  gw_chain::chain] sync new block #205519 success
godwoken_1  | [2021-12-20T22:04:02Z INFO  gw_block_producer::poller] known last tx hash, skip 03accde4c4dde5ad5338ce51aa5d83d1e94e16b13adf4b5e278acf386246104f
godwoken_1  | [2021-12-20T22:06:26Z INFO  gw_chain::chain] sync new block #205520 success

You can compile godwoken with AOT VM feature https://github.com/nervosnetwork/godwoken/blob/develop/crates/block-producer/Cargo.toml#L66, this should speedup syncing time about 3x.

https://hub.docker.com/layers/nervos/godwoken-prebuilds/v0.9.0-aot-rc5/images/sha256-54e7ac4693d705ebaba9276ab035c8d8d5b80fee640d3cf4f38a1ded655da50d?context=explore
This is the godwoken-prebuilds image complied with AOT Mode  enabled.
When you use it, please update the Polyjuice generator_path in godwoken-config.toml first:
generator_path = '/scripts/godwoken-polyjuice/generator.aot'

Like this: https://github.com/Kuzirashi/nervos-godwoken-testnet-node/commit/ad71bc4a93299668a822ca039e36a6af4fe8dbce ?
@Flouse @jjyr

Syncing is much faster when CKB Indexer and Godwoken node are in the same world region / on the same server.


feat(core): Bump to go 1.22.7

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[ ] Updated relevant documentation (docs/ or spec/) and code comments

We need a new version of cometbft-db to this to work, but in this case we are using v1.23 indirectly....

If we cut a cometbft-db v0.14.1 bumping the version I think it will unblock this. I've pushed a PR on cometbft-db for that

@mergify backport v1.x


LinodeDetail disk refactor

Use EnhanceSelect for Disk selection linodes/:id settings PasswordRest (removes context/redux)
Use Pagey on linodes/:id/settings AdvancedSettings to list Disks. (Adds pagination, removes context/redux)

Pagey was updated to pass ownProps (the props of the component being extended) to the request. The request footprint is now T(ownProps, params, filters) => Promise<T>.

Add Disk reducer under features/linodeDetail/disks (currently only used on LinodeConfigs)

Part two is to remove the reducer entirely and move configuration creation into the drawer for better performance.

Coverage decreased (-0.01%) to 26.382% when pulling ae47013c9ad06651df0aa0c8a42ec40229c72363 on rjstires:linode-detail-redux into 77060cd2af827594e9762bcf6a8bd78a973d590e on linode:develop.

After typing into the debounced search, the component hides because the options length is 1

As a bonus, it would be nice to refactor <DebouncedSearch /> to use the react-select, but that's non-blocking

When i resize a disk, the page seems to reload or shift on update of the resize progress bar.

Resized Disks fail to Update

Power down a linode
Resize disk
Observe, resize eventually succeeds but the of the disk in the table fails to update in the UI.

Removed Disks fail to be removed from the disks table:

Settings > Advanced Configurations > Disks .. Delete a disk
Observe, the disk is sucessfully removed (either via the notifications menu or watching the api calls returned)
Observe, the disk is never removed from the table in the UI.

Another bit of feedback, which isn't a bug but sorta a known limitation that i think we could handle a bit better...
If a disk is in use, (such as a Linode’s OS disk image) the resize request will initially succeed but then eventually fail (as noted in the api documentation). If we can’t prevent user’s from resizing active disks, perhaps it'd be good to note somewhere that the linode must be powered down to resize active disks? LMK your thoughts on this one @rjstires @Jskobos @martinmckenna

When i resize a disk on Settings > Configurations, the page seems to reload or shift on update of the resize progress bar.

This is an issue that exists in production and will be resolved with the final update to LinodeDetail.

Resized Disks fail to Update

Power down a linode
Resize disk
Observe, resize eventually succeeds but the of the disk in the table fails to update in the UI.

Got it, good eye.

Removed Disks fail to be removed from the disks table:

Settings > Advanced Configurations > Disks .. Delete a disk
Observe, the disk is sucessfully removed (either via the notifications menu or watching the api calls returned)
Observe, the disk is never removed from the table in the UI.

Same issue as the previous, no problem. Thanks

Another bit of feedback, which isn't a bug but sorta a known limitation that i think we could handle a bit better...
If a disk is in use, (such as a Linode’s OS disk image) the resize request will initially succeed but then eventually fail (as noted in the api documentation). If we can’t prevent user’s from resizing active disks, perhaps it'd be good to note somewhere that the linode must be powered down to resize active disks? LMK your thoughts on this one @rjstires @Jskobos @martinmckenna

@patthiel This is a good idea, and is a feature, I would recommend opening a ticket.

After typing into the debounced search, the component hides because the options length is 1
@martinmckenna I went ahead and removed the hide. Selection of the first disk proved very difficult and unreliable.


feat: add default cli flag

This PR adds the --default=<default_pattern> flag to glob CLI.
It allows one to pass a default pattern that will be used if no positional argument is given.
This is especially useful when glob is aliased to some command. For instance, we can have in a package.json:
{
  [...],
  "scripts": {
    "test": "glob -c \"<test_command>\" --default \"./**/*.(spec|test).ts\""
    }
}

This allows one to pass a glob to select tests or run all tests if nothing is passed.
I currently use glob to pass files to our test command, hence the PR, but it likely has many other potential applications.
I intended to write a test, but looking at the codebase, I'm unsure if there is a way to test glob when used in CLI mode (via src/bin.ts). Please let me know if I'm wrong.

Hey @isaacs any updates on this ? Thx!

Ty @isaacs :)


Problem during configuring the 2019_R1.1 -- "Could NOT find CUDA"

When I am trying to configure dldt-2019_R1.1 with next keys:
cmake -D CMAKE_BUILD_TYPE=Release \
    -D THREADING=TBB \
    -D GEMM=JIT \
    -D ENABLE_MKL_DNN=ON \
    -D ENABLE_OPENCV=OFF \
    -D BUILD_SHARED_LIBS=OFF \
    -D BUILD_TESTS=OFF \
    -D ENABLE_PLUGIN_RPATH=OFF \
    -D ENABLE_PYTHON=OFF \
    -D ENABLE_TESTS=OFF \
    -D ENABLE_SAMPLES=OFF \
    -D ENABLE_STRESS_UNIT_TESTS=OFF \
    -D ENABLE_GAPI_TESTS=OFF \
    -D GAPI_TEST_PERF=OFF \
    -D ENABLE_SEGMENTATION_TESTS=OFF \
    -D ENABLE_OBJECT_DETECTION_TESTS=OFF \
    -D ENABLE_GNA=OFF \
    -D ENABLE_PROFILING_ITT=OFF \
    -D ENABLE_ALTERNATIVE_TEMP=OFF \
    -D ENABLE_VPU=ON \
    -D ENABLE_CLDNN=OFF ../../dldt/inference-engine/

No matter, do I use -D ENABLE_VPU=ON or not.
 InferenceEngine
-- CMAKE_BINARY_DIR ...................... /home/kabakov/TMP/opencv-python-inference-engine/build/dldt
-- IE_MAIN_SOURCE_DIR .................... /home/kabakov/TMP/opencv-python-inference-engine/dldt/inference-engine
-- CMAKE_GENERATOR ....................... Unix Makefiles
-- CMAKE_C_COMPILER_ID ................... GNU
-- TBB include: /home/kabakov/TMP/opencv-python-inference-engine/dldt/inference-engine/temp/tbb/include
-- TBB Release lib: /home/kabakov/TMP/opencv-python-inference-engine/dldt/inference-engine/temp/tbb/lib/libtbb.so
-- TBB Debug lib: /home/kabakov/TMP/opencv-python-inference-engine/dldt/inference-engine/temp/tbb/lib/libtbb_debug.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PythonInterp: /usr/bin/python (found version "2.7.15")
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
configuring file: /home/kabakov/TMP/opencv-python-inference-engine/build/dldt/tests/helpers/test_model_repo.h
CMake Warning at tests/unit/opencv_test_gapi/CMakeLists.txt:6 (message):
  Skipping GAPI unit tests

-- Found Git: /usr/bin/git (found version "2.20.1")
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for strtoll
-- Looking for strtoll - found
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find CUDA: Found unsuitable version "10.0", but required is exact
  version "9.0" (found
  /home/hdd/DIFFERENT_CUDA/cuda-10.0_7500_tensorRT-<IP_ADDRESS>)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindCUDA.cmake:1080 (find_package_handle_standard_args)
  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:86 (find_package)
  /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:105 (find_host_package)
  samples/common/format_reader/CMakeLists.txt:16 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/kabakov/TMP/opencv-python-inference-engine/build/dldt/CMakeFiles/CMakeOutput.log".
See also "/home/kabakov/TMP/opencv-python-inference-engine/build/dldt/CMakeFiles/CMakeError.log".

The previous version did nothing like it. 2019_R1.0.1 behaved differently.
Why do it looks for CUDA?

Why do it looks for CUDA?

Because your version of OpenCV binaries are built with CUDA 9.0 and they were installed into the system (/usr/local).

Could NOT find CUDA: Found unsuitable version "10.0", but required is exact version "9.0"

Meantime CUDA has been upgraded from 9.0 to 10.0 without updating of dependent packages/libraries/apps, like OpenCV (OpenCV build scripts searching for CUDA 9.0).

Pass OpenCV_DIR for proper OpenCV location.

Thank you, wise man)

NB: OpenCV_DIR is environmental variable, not cmake's. And it should point to "The directory containing a CMake configuration file for OpenCV"
In my case was something like:
OpenCV_DIR=${CUSTOM_OPENCV_INSTALLATION_PATH}/lib/cmake/opencv4/ ./dldt_setup.sh