How to make a forecast for data of size seq_len?

Hi!
I want to pass data that I want to forecast in production, limited by the seq_len dimension. So basically the latest available data to get a forecast, without the reference y value.
I removed the borders so that 100% of the data passed to the model is loaded. Here: https://github.com/thuml/Time-Series-Library/blob/main/data_provider/data_loader.py#L248-L255
But I have data size equal to seq_len, and the error occurs with different dimensions in the model. The model expects seq_len + label_len.

https://github.com/thuml/Time-Series-Library/blob/main/data_provider/data_loader.py#L92-L103
https://github.com/thuml/Time-Series-Library/blob/main/data_provider/data_loader.py#L290-L301
https://github.com/thuml/Time-Series-Library/blob/main/exp/exp_long_term_forecasting.py#L45-L60

I'm thinking of padding the data with zeros and date stamps. How do you like this solution or is there a better one?

Hi, I think you need an inference function. You may find this code helpful: https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py#L241


RHIROS-647  minor bug fix related to suggestions store

Jira card:
https://issues.redhat.com/browse/RHIROS-647

Codecov Report

Merging #124 (03c21a3) into main (a42beee) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #124   +/-   ##
=======================================
  Coverage   21.95%   21.95%
=======================================
  Files          40       40
  Lines         788      788
  Branches      141      141
=======================================
  Hits          173      173
  Misses        572      572
  Partials       43       43

Impacted Files
Coverage Δ

src/store/systemRecs.js
0.00% <ø> (ø)

Continue to review full report at Codecov.

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


video resolution

Can diffuser's version only reason at a fixed 720*480 resolution?

We only trained it on 720*480 resolution.


UK flag is not right.

UK flag is not right. UK flag and its country name doesn't match.

Given that it's been more than six months without another report of this issue, and no feedback here. I am closing this issue. If you are still seeing the problem with the updated version of the plugin, please let me know.


Missing libemer::glow::GlowParameterBase::setValue(..) overload for const char*

As the libember::glow::Value constructor is overloaded to take a const
std::string& and a const char*, i would suggest to overload
libemer::glow::GlowParameterBase::setValue(..) to take a const char* to avoid
unexpected behaviour. See the attached patch with a proposal.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 7 May 2013 at 8:42

Blocked on: #20

Attachments:

Overload_setValue_const_char_pointer.patch

Since this issue will (probably) be resolved with the upcoming C++ 17 version I would like to close this entry. If this is a requirement for the 1.8 release, please reopen this issue.


SES sourceArn is configurable via properties

AWS Java SDK v2 SES API ensures the necessary methods to setup sourceArn property at message sending moment but this configuration is not yet available via properties.
:loudspeaker: Type of change

[ ] Bugfix
[ ] New feature
[X] Enhancement
[ ] Refactoring

:scroll: Description
Based on experiences if sourceArn is not specified in SendRawEmailRequest or in SendEmailRequest then one will be picked. It works well until there is only one verfied identity in AWS SES but when there are multiple ones, currently there is no control over which one to be used.
This PR gives the possibility to set the sourceArn in the application properties/yaml file.
:bulb: Motivation and Context
Context: there is an AWS account having multiple verfied identities in SES.
Motiviation: developers want to specify the verified identity to be used.
:green_heart: How did you test it?
Existing unit tests are updated to test if the sourceArn is passed to the request.
:pencil: Checklist

[ ] I reviewed submitted code
[ ] I added tests to verify changes
[ ] I updated reference documentation to reflect the change
[ ] All tests passing
[ ] No breaking changes

:crystal_ball: Next steps

Thanks for a PR! Documentation also needs to be updated: https://docs.awspring.io/spring-cloud-aws/docs/3.0.0-SNAPSHOT/reference/html/index.html#configuration-3

updated the ses.adoc

Thanks @schjan79! I made small polishing


Bug in Chromium >= 95.0.4609.0 (912033) affecting especially MathJax

Disclaimer
This is not a MathJax bug, but a Chromium bug. However, due to the popularity of Chromium-based browsers (Chrome, Edge, ...), it should be considered to do something about it.
Issue summary
Heavility nested HTML elements with the style display: inline-block can make Chromium-based browsers freeze completely. It seems to occur primarily when using a touch screen. Whenever the user touches a non-trivial MathJax formula, for example to scroll the page, there is a good chance that the browser will freeze either for a few seconds or "forever". When that happens, the browser utilizes 100% of CPU time and becomes unresponsive.
Here's my Chromium bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=1274205
I attached an example HTML document and a video to the Chromium bug report. The example document initially contained formulas rendered by MathJax in the form of highly nested structure of <span> elements with the style display: inline-block. In an effort to create a minimal working example, I removed everything MathJax-specific and left only the <span> structure.
What to do?
Help get the bug fixed
I think this is a pretty severe bug in Chromium and it needs to be fixed soon. However I'm afraid that my bug report may go unnoticed due to the high number of reports being filed on a daily basis.
If you know a Chromium developer or you are one yourself, please help make sure that this bug gets the attention it deserves. It has the potential to destroy the user experience of all websites or WebView apps that make use of MathJax.
Workaround
Since this bug heavily affects my current project that uses MathJax and I'm not very confident that it will get fixed soon, I'm trying to find a workaround. My findings so far:

Values for CSS display that trigger the bug: inline-block, inline-table and possibly table-row and table-cell
No problem when using display: block, display: flex or display: inline-flex!

I've been trying to use JavaScript to convert the MathJax output to use inline-flex. But I haven't been successful so far, due to the vertical-align CSS property not being respected on a Flexbox. I've tried to wrap elements in blocks, but I can't get the vertical alignment right.
My other idea was to remember the position and size of each generated <span> inside a MathJax frame relative to the frame, then set all elements to display: block and position: absolute (circumventing the bug) and set their position and size directly in CSS (left, top, width, height).
If anyone has other ideas for a workaround, let's discuss them here.

That's a bit of a misleading title. Something like "Incredibly basic Chrome bug affecting MathJax" seems to be more appropriate.
Like so many recent Chrome regressions, I'd expect it will disappear without being officially addressed.

You're right, Peter. I changed the title.
I haven't noticed this bug on any other HTML content except for MathJax (and MathQuill) - probably there aren't that many cases of such heavily nested elements.
I'm working around the issue and I managed to eliminate a huge part of the inline-block usages. I will provide my workaround once it's ready.

By the way, the SVG renderer doesn't seem to be affected, so switching to SVG is a quick fix.

The chrome issue's last comment indicates that this was fixed.

The test file does seem to work now in Chrome 99.


How to enter new line when upload image finish

Version: 2.45.1
I want to use Keyboard to enter new line.

Thank you!

@nvthuong11 Hi! You can try my PR for it: https://github.com/JiHong88/suneditor/pull/1267

@nvthuong11 Hi! You can try my PR for it: #1267

Thank you for reply,
I tried and it doesn't work. You can check my demo.
https://codepen.io/thuonnv/pen/RwEoboZ
I've copied your file: https://github.com/JiHong88/suneditor/blob/8c5e82359f07c0a92d8f9c43ebfd1e369f5eac13/dist/suneditor.min.js
To file: https://customappstore02062023.myshopify.com/cdn/shop/t/1/assets/suneditor.min.js?v=41654728684273330901693899051
Thank you,

@nvthuong11 Hi! You can try my PR for it: #1267

Thank you for reply, I tried and it doesn't work. You can check my demo. https://codepen.io/thuonnv/pen/RwEoboZ I've copied your file: https://github.com/JiHong88/suneditor/blob/8c5e82359f07c0a92d8f9c43ebfd1e369f5eac13/dist/suneditor.min.js To file: https://customappstore02062023.myshopify.com/cdn/shop/t/1/assets/suneditor.min.js?v=41654728684273330901693899051
Thank you,

Hi! Yes, your codepen demo doesn't work ;)
I've removed your external script link in the codepen and added the text from PR's min.js file (https://github.com/JiHong88/suneditor/blob/8c5e82359f07c0a92d8f9c43ebfd1e369f5eac13/dist/suneditor.min.js) directly to the <script> tag, and it worked like a charm.

Maybe there is something wrong with the file you tried? Some caching or else.
Your file in codepen is not the same as the file from the PR.

@nvthuong11
I'm glad that I was helpful!
Unfortunately, I can't answer your question, because I am not a package maintainer. I just saw the lone soul with the same problem as I had earlier (before I did that PR) ;)

@SystemChanger,
Yes, thank you again.


Stuck when analyzing large image

My machine has memory of 32G, and can analyze tiny image normally using dive. But when I analyze an image of 20G, I can barely control the cursor with pressing up and down on the keyboard (long delay), and it will be stucked when the cursor moves to the bottom or the top, where I can't see any message of Image Details (blocked by layer info). Sinece the memory is not run out, is there any bug when analyzing large image?

I'm 99% sure your problems would be fixed if the filetree wasn't updated with each cursor move. Is that an option for you, or is the filetree the thing you'd want to inspect?

@mark2185 Hiding the filetree would be an option for me. How can I hide it?

You're right, I meant https://github.com/wagoodman/dive/issues/288. Thanks, Mark

@rodrigobdz sorry for the late reply.
Here's the patch:
diff --git a/runtime/ui/controller.go b/runtime/ui/controller.go
index 964fb83..3eedb56 100644
--- a/runtime/ui/controller.go
+++ b/runtime/ui/controller.go
@@ -85,10 +85,10 @@ func (c *Controller) onLayerChange(selection viewmodel.LayerSelection) error {
 	c.views.Details.SetCurrentLayer(selection.Layer)

 	// update the filetree
-	err := c.views.Tree.SetTree(selection.BottomTreeStart, selection.BottomTreeStop, selection.TopTreeStart, selection.TopTreeStop)
-	if err != nil {
-		return err
-	}
+	// err := c.views.Tree.SetTree(selection.BottomTreeStart, selection.BottomTreeStop, selection.TopTreeStart, selection.TopTreeStop)
+	// if err != nil {
+	// 	return err
+	// }

 	if c.views.Layer.CompareMode() == viewmodel.CompareAllLayers {
 		c.views.Tree.SetTitle("Aggregated Layer Contents")

This will stop the tree from updating.
Feel free to apply it on top of #399 , it should make dive a bit more pleasant to use. (the hashes are different so here's the new patch)
diff --git a/runtime/ui/controller.go b/runtime/ui/controller.go
index bc76423..26ba3ff 100644
--- a/runtime/ui/controller.go
+++ b/runtime/ui/controller.go
@@ -85,10 +85,10 @@ func (c *Controller) onLayerChange(selection viewmodel.LayerSelection) error {
 	c.views.LayerDetails.CurrentLayer = selection.Layer

 	// update the filetree
-	err := c.views.Tree.SetTree(selection.BottomTreeStart, selection.BottomTreeStop, selection.TopTreeStart, selection.TopTreeStop)
-	if err != nil {
-		return err
-	}
+	// err := c.views.Tree.SetTree(selection.BottomTreeStart, selection.BottomTreeStop, selection.TopTreeStart, selection.TopTreeStop)
+	// if err != nil {
+	// 	return err
+	// }

 	if c.views.Layer.CompareMode() == viewmodel.CompareAllLayers {
 		c.views.Tree.SetTitle("Aggregated Layer Contents")

@mark2185 Wow, thank you very much for helping out! 💯

@mark2185 thanks for the tip on how to speed this up!
is it possible to turn your patch into a config option? seems like it would be pretty useful for others who are analyzing large images.

Well, it disabled the treeview completely so I wouldn't have that as a config option (unless you can toggle it back on during runtime).
Would you like to try and give it a shot? :)
I.e. a launch flag to run dive with the treeview disabled, and then toggle the treeview during runtime.

Can we get some 👁 on this please? <3
The whole point of dive is to analyse large images -- running it on 7GB image (lots of small files from node_modules) makes a 16 core machine come to a crawl with every keystroke, making the tool unusable. It fits in around 10GB of RAM (all physical) but the CPU is crying at 100% usage.
Maybe it's the tree implementation? Maybe it's re-rendering unnecessarily outside of the viewport?

I was about to open an issue regarding dive not working at all, after analysing an image, as all user input is seemingly ignored by the application. This issue made me check and realise, that it's only related to the image size. I have an image of over 2GB and dive is absolutely useless, because all user input is being ignored.
Since this tool is mainly supposed to be used with larger images, it kind of doesn't make sense, that it doesn't work at all, with an image, that is over 2GB in size.

Since this tool is mainly supposed to be used with larger images, it kind of doesn't make sense, that it doesn't work at all, with an image, that is over 2GB in size.

💯
Running Dive on my 2.2GB image eats up 10GB of RAM and 100% cpu on each keystroke for like 30s.


[1Password] Cannot log into onepassword

Extension
https://www.raycast.com/khasbilegt/1password
Description
op signin command fails, log below
Steps To Reproduce
on macos latest
Install the raycast onepassword extension
Try to sign in
login with 1password and allow access
enable 1password cli

Current Behaviour
Command failed: /usr/local/bin/op signin --account
[ERROR] 2023/07/24 16:40:27 read: context deadline exceeded
Expected Behaviour
signin successful and ability to copy passwords

Just to be sure, can you run everything related to 1Password in the terminal, like /usr/local/bin/op whoami

@pernielsentikaer Hey, manually signing in with op signin fixed this for me.


Add ASSERT instrumentation to rrtmg_sw_rad to detect unphysical inputs

Zero-diff in sense that just reports errors and bombs.


chore(eslint): use ecmascript 2020 globals

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.168%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
442

Relevant Lines:
445

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.168%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
442

Relevant Lines:
445

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.168%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
442

Relevant Lines:
445

💛  - Coveralls


dts: remove zephyr,panel-timing compat

Since the panel timing node comes from linux bindings, let's try to remove the zephyr-specific compatible by using a child binding. This would potentially require some other work if another type of child node is needed to be specified in the future.
This compatible was mentioned in #74415 as a supporting example for more zephyr-specific compatibles, hence the motivation of this PR.

I actually think I don't want this PR to be merged right now, I'd rather just rework the DT tooling and expand the zephyr binding yaml schema, but I'll leave this draft open as a reminder

closed in favor of something like https://github.com/zephyrproject-rtos/zephyr/pull/79751


Support for Azure Postgres Cluster

Background and Motivation
Adding support for Azure Cosmos DB for Postgres Cluster (Citus extension)
see https://learn.microsoft.com/en-us/azure/cosmos-db/postgresql/concepts-cluster

Proposed API
namespace Aspire.Hosting;

public static class AzurePostgresExtensions
{
+    public static IResourceBuilder<T> PublishAsAzurePostgresClusterServer<T>(this IResourceBuilder<PostgresServerResource> builder, Action<IResourceBuilder<AzurePostgresReaource>, ReaourceModuleConstruct, PostgresSqlClusterServer>? configurrReaource)
}

Usage Examples

Alternative Designs

Risks

I'd love to see the API request fully filled out with examples of how this API would work and how it would change the existing API. Would this be a method on CosmosDB or on PostgresServerResource? Also why is it generic?


Bug with Undo/Redo buttons.

It's a known issue that will be fixed soon.  For now, please first use the clear button.


Native compilation doesn't work anymore when using Axon Framework 4.9.1

Since Axon Framework 4.9.1, the Axon Server Connector uses the Shaded Netty dependency. Unfortunately, the native reachability metadata repository for GraalVM doesn't have any information for Netty Shaded yet. The issue has been brought up with the GraalVM team.
As a workaround, we could add the metadata ourselves based on the metadata for netty itself. The packages of all classes would need to be prefixed with the shader prefix.

It looks like there is native metadata available in the shaded jar, but for some reason, it doesn't work.
https://github.com/grpc/grpc-java/issues/10601

Closing this issue as it has already been resolved.


:FZF Does not work in gvim/mvim, works in console vim on OSX

Nothing happens at all.
I have latest fzf, vim, macvim and no strange stuff in .bashrc like the gentelman with zsh had.
Looking at fzf.vim, might be related to the fact that there is no xterm in newer osx...

Yep, install XQuartz solves the issue, though it looks like a completely separate window that can even be alt-tabbed to separately. Is  this how it's supposed to work?

Yes, it's the best we can do with GVim. fzf is a command-line program that runs on a terminal, so there's no way to start it without a terminal emulator. A GUI-version of neovim, once released, will be able to embed fzf inside Vim split.


Update how-to-build-deploy-onnx.md

@j-martens : Thanks for your contribution! The author, @prasanthpul, has been notified to review your proposed change.

#sign-off


nixos/luksroot: Check whether the device already exists

The new reuse behaviour is cool and really useful but it breaks one of
my use cases. When using kexec, I have a script which will unlock the
disks in my initrd. However, do_open_passphrase will fail if the disk is
already unlocked.
Btw, can this be backported?
Motivation for this change
It braks my old (18.03) kexec-and-autounlock behaviour.
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

@GrahamcOfBorg test boot.luksroot

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: tests.boot.luksroot
Partial log (click to expand)
Cannot nix-instantiate `tests.boot.luksroot' because:
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix:347:27:
while evaluating the attribute 'boot' at /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/nixos/tests/all-tests.nix:32:3:
while evaluating 'handleTestOn' at /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/nixos/tests/all-tests.nix:19:33, called from /var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/nixos/tests/all-tests.nix:32:10:
access to path '/nix/store/w7v2s97vvwawhkm2nh0cg5fbjb0rx8b4-grahamc-aarch64-community-14' is forbidden in restricted mode

@GrahamcOfBorg test installer.luksroot

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: tests.installer.luksroot
Partial log (click to expand)
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:347:27:
while evaluating anonymous function at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/lists.nix:113:41, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/lib/attrsets.nix:347:46:
while evaluating the attribute 'installer' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/nixos/tests/all-tests.nix:106:3:
while evaluating 'handleTest' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/nixos/tests/all-tests.nix:17:22, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/nixos/tests/all-tests.nix:106:15:
while evaluating 'discoverTests' at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/nixos/tests/all-tests.nix:13:19, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/rbvermaa-spot/nixos/tests/all-tests.nix:18:5:
access to path '/nix/store/nasmnyzyj6h1slqq3gj4fjib3fyjdhn6-rbvermaa-spot' is forbidden in restricted mode

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: tests.installer.luksroot
Partial log (click to expand)
Cannot nix-instantiate `tests.installer.luksroot' because:
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/lib/attrsets.nix:347:27:
while evaluating the attribute 'installer' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/nixos/tests/all-tests.nix:106:3:
while evaluating 'handleTest' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/nixos/tests/all-tests.nix:17:22, called from /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/nixos/tests/all-tests.nix:106:15:
while evaluating 'discoverTests' at /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/nixos/tests/all-tests.nix:13:19, called from /var/lib/gc-of-borg/nix-test-rs-19/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-19/nixos/tests/all-tests.nix:18:5:
access to path '/nix/store/vx1j2g6vfnn5akxmzp9vl3ivx9dsr2w4-grahamc-aarch64-community-19' is forbidden in restricted mode

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: tests.installer.luksroot
Partial log (click to expand)
Cannot nix-instantiate `tests.installer.luksroot' because:
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/lib/attrsets.nix:347:27:
while evaluating the attribute 'installer' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/nixos/tests/all-tests.nix:106:3:
while evaluating 'handleTest' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/nixos/tests/all-tests.nix:17:22, called from /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/nixos/tests/all-tests.nix:106:15:
while evaluating 'discoverTests' at /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/nixos/tests/all-tests.nix:13:19, called from /var/lib/gc-of-borg/nix-test-rs-8/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-8/nixos/tests/all-tests.nix:18:5:
access to path '/nix/store/6skgv13ma24s9xkxzss3nvnpzdnf6i49-grahamc-aarch64-community-8' is forbidden in restricted mode

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: tests.installer.luksroot
Partial log (click to expand)
Cannot nix-instantiate `tests.installer.luksroot' because:
error: while evaluating 'recursiveUpdate' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:415:26, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:384:37, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:347:21, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:332:33, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/lib/attrsets.nix:347:27:
while evaluating the attribute 'installer' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/nixos/tests/all-tests.nix:106:3:
while evaluating 'handleTest' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/nixos/tests/all-tests.nix:17:22, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/nixos/tests/all-tests.nix:106:15:
while evaluating 'discoverTests' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/nixos/tests/all-tests.nix:13:19, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/builder-0-gustav.ewr1.nix.ci/nixos/tests/all-tests.nix:18:5:
access to path '/nix/store/5kbmfpapf81z35i9awqy860cmipw13ph-builder-0-gustav.ewr1.nix.ci' is forbidden in restricted mode

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: tests.boot.luksroot
Partial log (click to expand)
cannot link '/nix/store/.links/10z1wkbi5b6f5sri7fq4lsww59vp0cjg63jnhwx6glqjl4hpxgy5' to '/nix/store/332i2l76nlwzddv74xb6lmqwfjg57xja-gleber-bastion/pkgs/os-specific/linux/kernel/linux-4.4.nix': No space left on device
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:347:27:
while evaluating anonymous function at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/lists.nix:113:41, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:347:46:
while evaluating the attribute 'boot' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/tests/all-tests.nix:32:3:
while evaluating 'handleTestOn' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/tests/all-tests.nix:19:33, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/tests/all-tests.nix:32:10:
access to path '/nix/store/332i2l76nlwzddv74xb6lmqwfjg57xja-gleber-bastion' is forbidden in restricted mode

Bump

@Infinisil Fixed and rebased

Broke my boot sequence, stuck on waiting for device ....

@eadwu Strange, to me it looks like it's waiting before the changed code is executed

Yes, the order from my initrd:
wait_target …

do_open_passphrase() {
  # My code is here
}

open_normally() {
  do_open_passphrase
}

open_normally

It would help to add boot.trace to the kernel boot.kernelParams to see what code it executes.

Ah darn, thanks for the quick report @eadwu. @Mic92 You gonna revert it on master as well?


automate step for pushing new strings for translation

Step 2 of the i18n (translation) process describes how new strings are pushed to Zanata for translation. This should be automated as part of Travis.

https://github.com/weldr/welder-web/pull/318


Remove includeSubdomains from HSTS header

includeSubdomains can lead to issues where not all subdomains are
able to use HTTPS.  This options might be too strict for the general
case: https://www.owasp.org/index.php/HTTP_Strict_Transport_Security.
It can be re-enabled w/ a custom template if needed.
Fixes #109

I'd possible remove STS entirely from the default configuration and document how to add it back on a per-VIRTUAL_HOST basis.
Otherwise, this change LGTM


Fixed h1 of SOS

Fixes #1149
Please add “hacktoberfest-accepted” label
Before -

After -

Please add hacksquad label also to it.


[BEAM-10856] Support for NestedValueProvider for Python SDK

Support for NestedValueProvider for Python SDK. I've also added more comments to the pydoc for value_provider classes. R: @pabloem

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Thanks @epicfaace for implementing these! I will not be able to review them for a couple of weeks. I can review once I'm back, or I can help find a new reviewer. What do you prefer?
(tvalentyn, udim) would be good choices for reviewers if you'd like a review soon.

Thanks for the heads up @pabloem . @tvalentyn , would you be able to review?

By the way, how do you normally lint your code according to the Beam guidelines / PR checks? I couldn't find any guidance / a quick reference in the Beam development guide on how to do that.

https://cwiki.apache.org/confluence/display/BEAM/Python+Tips has some autoformatter tips that can help.

@epicfaace Curious, what use-case do you have in mind for this change?

@epicfaace Curious, what use-case do you have in mind for this change?

I'm creating a Dataflow template in which I need to write to multiple different output tables, "[prefix]_a", "[prefix]_b", "[prefix]_c", etc. I'd like to be able to specify a single runtime parameter, "prefix", and derive the output table names from this parameter, rather than having to redundantly specify each table name as an input runtime parameter.
I noticed that this page said that the Apache Beam SDK for Python does not support NestedValueProvider, so I just implemented it in Python in a similar way to how the Java SDK does it.

Ok. We actually consider ValueProvider's an anti-pattern now, prefer not to extend their scope, and recommend to use FlexTemplates instead, see: https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates. Could you give that a try? I do appreciate your effort to improve the SDK and documentation though!
CC: azurezyq@ who is an expert on Flex Templates.

Hmm, I did try using Flex Templates initially, but it took way too long -- maybe 7-8 minutes -- for the job to initialize, as I think it was installing apache-beam and other dependencies. I switched to using ValueProviders because I needed a quick turnaround time for the job (the job itself takes around 10 minutes, so a 7-8 minute additional startup time is not worth it for me).

I see, I'd like @arvindram03 and @azurezyq chime in here on their recommendation. I think there are undergoing efforts to reduce the startup time, or perhaps there are some tips to reduce it?

Hi @epicfaace ,
We agree the startup time with flex template python jobs is an issue. We are are working towards reducing the overall startup time to 3-4 mins by end of this year.  We recommend using flex templates instead of classic ones purely for flexibility and also you can leverage more feature expansions in the near future.
One of the major objective of flex templates is to avoid using ValueProviders. So, further overloading them with new features is not aligned with the roadmap.

@arvindram03 , thanks for the update. To clarify, this PR only aims for feature parity with the Java SDK, which already supports NestedValueProvider -- I'm not "overloading them with new features".
Additionally, Flex Templates is still a Pre-GA Offering, and as you mentioned, requires some work for it to be as efficient as regular templates. For these reasons, I don't think they're really a viable alternative to traditional templates at the moment (of course, with additional improvements by the end of the year, it could be!)

A user has written a feature that they would find useful, and that will not change the experience for other users (if anything, it should improve it). The feature looks correct, and similar to what we do in Java. If we reject the PR, we may push the user to run on a fork. Can we let this in? @tvalentyn
Flex templates have numerous benefits that are not being undone or discounted by adding this improvement to traditional templates, so I don't see a great disadvantage to merge this.

A user has written a feature that they would find useful, and that will not change the experience for other users (if anything, it should improve it). The feature looks correct, and similar to what we do in Java. If we reject the PR, we may push the user to run on a fork. Can we let this in? @tvalentyn

I agree with this assessment, feel free to merge once tests pass.

@epicfaace can you ensure PythonDocs and PythonLint checks pass?

@epicfaace LMK if you can take a look at the lint issues

What is the next step on this PR?

@epicfaace there's a number of failing tests. (Python Docs and Lint) - can you fix those?

@epicfaace @pabloem
I have open PR into @epicfaace 's branch to fix pylint errors.

@tvalentyn
Another possible use case for NestedValueProvider is to fetch external secrets based on provided values from, for example, Vault.

@epicfaace
I am not sure why the tests are still failing.
Rebasing against current master might help.
Pylint runs fine locally after my docstrings fix. I have also tried building docs with sdks/python/scripts/generate_pydoc.sh.

@pabloem, Python Docs and Lint tests now succeed.

@pabloem I'm not quite sure why CI is still failing, it gives this error:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\beam\\beam\\sdks\\python\\target\\.tox\\py36-win\\tmp\\it-4m1c1oje2145793178144\\full\\fb91a47796-2145832985040-2145832986608-2145793178144'

Any ideas? Or is the CI just flaky?

BeamAssertException

This one looks like a test on the asserts.
The actual error (which is likely a flake) is:
logs: https://github.com/apache/beam/pull/12779/checks?check_run_id=1433935136
apache_beam\runners\interactive\recording_manager_test.py:75:

apache_beam\runners\interactive\interactive_environment.py:118: in new_env
_interactive_beam_env.cleanup()
apache_beam\runners\interactive\interactive_environment.py:272: in cleanup
cache_manager.cleanup()
apache_beam\runners\interactive\caching\streaming_cache.py:391: in cleanup
shutil.rmtree(self._cache_dir)
c:\hostedtoolcache\windows\python\3.6.8\x64\lib\shutil.py:500: in rmtree
return _rmtree_unsafe(path, onerror)
c:\hostedtoolcache\windows\python\3.6.8\x64\lib\shutil.py:390: in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
c:\hostedtoolcache\windows\python\3.6.8\x64\lib\shutil.py:395: in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())

...

              os.unlink(fullname)

E                   PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\a\beam\beam\sdks\python\target\.tox\py36-win\tmp\it-4m1c1oje2145793178144\full\fb91a47796-2145832985040-2145832986608-2145793178144'
Maybe clean should catch the error and not fail? Or try again?
@KevinGG - Could you check this error?
@pabloem @epicfaace - I believe you can ignore this error for the purposes of this PR.

BeamAssertException

This one looks like a test on the asserts.
 Or try again?
@KevinGG - Could you check this error?

The problem is windows specific. I tried on Mac OS, the shutil.rmtree works even if the file handler is still open:

It's said that on windows, if a file is opened, even if in the same process deleting it (or its parent directory), you will see this error: https://stackoverflow.com/questions/27215462/permissionerror-winerror-32-the-process-cannot-access-the-file-because-it-is.
Potential breaking point is in the streaming cache where the open and close are explicitly invoked (where with is inappropriate to use):

Is it possible that a finish_bundle would fail silently or not executed at all?
This probably does not happen that often, we can revisit this if it happens frequently and ignore this by specifying shutil.rmtree(path, ignore_errors=True, onerror=...) since it's just failing to clean up useless temp files.

BeamAssertException

This one looks like a test on the asserts.
 Or try again?
@KevinGG - Could you check this error?

The problem is windows specific. I tried on Mac OS, the shutil.rmtree works even if the file handler is still open:

It's said that on windows, if a file is opened, even if in the same process deleting it (or its parent directory), you will see this error: stackoverflow.com/questions/27215462/permissionerror-winerror-32-the-process-cannot-access-the-file-because-it-is.
Potential breaking point is in the streaming cache where the open and close are explicitly invoked (where with is inappropriate to use):

Is it possible that a finish_bundle would fail silently or not executed at all?
This probably does not happen that often, we can revisit this if it happens frequently and ignore this by specifying shutil.rmtree(path, ignore_errors=True, onerror=...) since it's just failing to clean up useless temp files.

Maybe file a JIRA and we can track how often this happens? I do not think people triage all failures so it is hard to tell how frequently this happens in pre commit tests.

Maybe file a JIRA and we can track how often this happens? I do not think people triage all failures so it is hard to tell how frequently this happens in pre commit tests.

Filed BEAM-11339 for this.

thank you @epicfaace !


Login demo variations

http://www.patternfly.org/pattern-library/application-framework/multi-factor-login/
http://www.patternfly.org/pattern-library/application-framework/single-sign-on/

Are we ready to go ahead and close this one?

Sorry, I meant to follow back up on this last week. Are we just adding the first example from https://www.patternfly.org/pattern-library/application-framework/multi-factor-login/? Do we need to show a person's username/avatar or anything like that? Assuming not, yep this is OK to close.
You can see our current demos on https://pf4.patternfly.org/components/Login/examples/
If we need any more functionality than that in the login component, let me know.

@mceledonia did you and Michael resolve his questions above?

@rachael-phillips @mcoker @mcarrano I'm not sure how extensive we want to be in this demo. We've got the design work done for the full MFA flow, so I will defer to Michael or Matt for how far to take it. We really just wanted to go ahead and have the design work to cover all use cases included in the PF3 login flow.

We would need to add functionality to the login component to support the MFA flow before we could create a demo. All we support currently in the component are the default and invalid layouts. We can build that, I'm just not sure of the priority.

I don't have an easy answer to this question. I understand @mcoker 's point that we can't really full demo this without adding JS. That said, there are some unique screens for MFA and SSO that could be implemented. Does core need to build out the needed screens and a React demo gets created to wire these together? @dgutride whould be interested in your take about how this should work.
As for priority, it may be that we can push alternative login flows to a 4.x release. I'm not aware that early adopters are asking for this. I think we just need to be clear on what use cases are supported and what is not. We did have implementations of these screens in PF3.

@mcarrano we can create a demo in core that just shows screens for the various states without it being an interactive demo. That said, core does need to build the functionality into the login component for the MFA layouts before either we or react could create a demo.  For example, we don't have a layout in the login component for the avatar + email + "not you?" links, or the bold "enter verification code" description below the avatar.  Also the title text that says "Enter SMS Code," "Enter Backup Code," etc would need to be added - unless that would replace the "Log in to your account" title currently in the login component.

Hmmm... Let's figure out the priority of this first. It sounds like more discussion is in order if and when we decide to move ahead with this.

Ya I’d like to consider how in core we can best present multi step flows.
It was a bit awkward in PF3. We could consider building it into core and
implementing it in React and linking to it from core. This is a new
approach so we can figure out if we like it and the best way to make it
happen.
On Thu, Feb 14, 2019 at 7:17 PM mcarrano<EMAIL_ADDRESS>wrote:

Hmmm... Let's figure out the priority of this first. It sounds like more
discussion is in order if and when we decide to move ahead with this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/patternfly/patternfly-next/issues/354#issuecomment-463712310,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARkiObO6oXDQHA0zlmwJ4O90q91D4LHks5vNZo3gaJpZM4Um6Gm
.

--
Matthew Carleton
Senior Interaction Designer
User Experience Design Team
Red Hat, Inc.
<EMAIL_ADDRESS><EMAIL_ADDRESS>

@dlabaj do you mind advising us from the React side on what all will need to be done for MFA?

@mcoker @rachael-phillips @mcarrano From the react side we would just add the different screens and give the user the ability to swap them out.  As far as how this logic works that would be on the application to handle the transition from one screen to the next.  We could put together a demo on the react side to do this to show how an application would transition each screen.

@dlabaj @mcarrano would we need to either design/build the section where email address and bold text are under the title as seen in the pf3 demos or provide a box for them to put their own content or anything like that? Or would it just be up to the application to create that section/layout on their own?

@mceledonia Do we have mockups for what we are expecting here?


Badge circle is clipped / imperfectly round

Huge thanks to xChris_vC for compiling these issues for me!

It appears this may be an artifact of specific resolutions with the UICorner instances? Uncertain how to resolve - only workaround I can imagine is adding a texture, however ideally those would be kept to a minimum to reduce bandwidth burdens + allow for more elements to be used during initial loading.

I believe I figured it out - this artifact only appears when the element has an odd number of pixels in width - something which can occasionally happen with different screen sizes + scales. I've made a patch to round it down to the specific pixel size, rather than use the scale attribute of the UDim2.


nuke: work around a reboot -n trouble

@zmc I've tested this on @yuriw's t-nuke --stale pile.  Some had their rootfs filled up with stray OSD logs and required manual intervention, but that has nothing to do with this change.
Right now the -n branch is taken only if stale kernel client state is detected (so k* runs only), but I plan to try to extend it to cover some generic kernel issues as well (such as soft lockups on old distro kernels during rados runs).  A power cycle fall back is definitely valuable, but in order to cover the rest it needs to work from the outside and not try to ssh in, so I say let's merge this today and work on a better version of PR #1023 next week (or see for how long we can get by without a fall back, just as an exercise).

@idryomov That sounds good. We can follow up with other PRs next week. Thanks!


Period converted projection

Change test data to accept period interval type-converted and time-wrapped behaviors in dsgrid.
dsgrid companion PR: https://github.com/dsgrid/dsgrid/pull/228

The files you changed are generated by running dsgrid-admin make-filtered-registry on the StandardScenarios project. Are your changes one-off changes or are you also going to make changes to the SS repo?

Please excuse my ignorance, but do we want ._SUCCESS.crc and .snappy.parquet.crc files in this repository, or just .parquet files?

Those are required. Spark checks the CRCs when loading the Parquets in order to verify the contents.

@elainethale @lixiliu My take is this: don't make this change. I don't know how many tests will fail without it. We can either mark those to be skipped or tolerate the failures. Once all of the dsgrid PRs are merged (hopefully today or tomorrow) I will regenerate all of the datasets and then re-create this filtered registry.

Old branch, no longer relevant


Feature: add a toggle fullscreen button

Feature
Users often need to switch to fullscreen mode for a better viewing experience. Adding a dedicated toggle fullsceen button will improve the user experience by allowing quick access to fullscreen mode.
Additional details

A button labeled 'Fullscreen' or with a fullscreen icon is to be added.
Clicking the button toggles between fullscreen and normal mode.
If it's a button, then it should show the current state (e.g., "Exit Fullscreen" when in fullscreen mode).
It should be compatible with all the browsers.

@sk66641 can you please assign me this issue

@sk66641  i have added the toggle fullscreen button can you please assign me this issue so i can create a pull request

please assign me this issue


KaiOS number input can not delete existing number

When you are on KaiOS, you can increase and decrease the number by up and down arrow, or type in number.....but back button does not delete the number already typed in🤷♀

Have you found any solution for this issue. @kosamari

I've found couple solution like using type="tel" but it does not fit my need.


HTML Generation Documentation

I'm using version 2.11.0 and am trying to generate static HTML.  I see the documentation in your README for how to build the ReDoc or the Swagger UI, but there is nothing about static HTML.  I see in the main Swagger Codegen docs that it is possible by passing -l html as command line args, but I don't see a way to do it with this plugin.

You can generate static HTML by code generation with language = 'html' or language = 'html2' option.
See the following examples in https://github.com/int128/gradle-swagger-generator-plugin/tree/master/acceptance-test.

Working with Swagger Code Generator 2
Basic example for HTML document generation
Working with Swagger Code Generator 3
Basic example for HTML document generation


Show input fields based on Quantity

Question
I want to collect guest's names based on the number of tickets selected. I have this working ok when there is only one ticket available, but (using Commerce product variants) if I have more than one I'm struggling to get it to work.
{% set qty = 'purchasables[' ~ loop.index ~ '][qty]' ? 1 %}
{% set guests = range(0, qty - 1)|map(i => ['']) %}

    Quantity
    <select sprig name="purchasables[{{ loop.index }}][qty]">
        {% for i in range(1, 5) %}
            <option value="{{ i }}" s-val:qty="{{ i }}" {{ qty == i ? 'selected' }}>{{ i }}</option>
        {% endfor %}
    </select>

    {% for guest in guests %}
    {# input name untested and likely incorrect #}
        <input type="text" name="purchasables[{{ purchasable.id }}][options][guests[' ~ loop.index0 ~ '][0]]'">
    {% endfor %}

Hopefully just missing something basic, and would appreciate any help 🙏🏻

It looks like you should be getting the quantity from the purchasables variable rather than a string.
{% set qty = purchasables[loop.index][qty] ?? 1 %}


[Bug] [1.20.1-7.0.5] Charm of flight causes player to stop flying before refreshing

Created a charm of flight (8:00) and forces me out of flight every time the timer reaches zero before refreshing the effect.

I also run into this with a different path.
If I try to extend the time I can fly by drinking another Potion of Flying it resets the timer but also cancels the flight.
While not that big of a deal I also realized that if you get the flying effect on you before or while you are in creative, when you exit it it doesn't just cancels the flight you cannot fly again until you drink another potion or go back to creative.

The issue lies in how potions do attribute changes; reapplying a potion actually causes all attribute changes to be removed and then re-added instead of just not removing them.

I just built and tested this PR but it didn't fix it for me.
But I see, that's unfortunate.

Yeah there's a twofold change that has to be made here.  The way attributes work with potions has to be adjusted to not remove the attribute on re-application, and flight also needs to go into the "extended duration" category so it can't potentially hit zero on the client before reapplication.

Yep, fix works fine for me once I also added the flying effect to the config.


Re designed UI

user story: As an app user I would like to operate Different features of the car
Acceptance criteria: The app will contain different buttons to control the car eg. Enable cruise control, enable self park etc.

UI is redesigned with new changes


Touch Gestures are not be Working

    コンピューター
┌──────────────────────────────────────────┐
   OS : Arch Linux x86_64
   Kernel : 6.8.4-arch1-1
   Packages : 1349 (pacman), 48 (flatpak)
   Resolution : 1920x1080
   DE : Hyprland
   Terminal : kitty
└──────────────────────────────────────────┘
                                              : goof@Trashcan
                                          ┌──────────────────────────────────────────┐
                                              CPU : Intel i7-8700 (12) @ 4.600GHz
                                              GPU : AMD ATI Radeon 540/540X/550/550X / RX 540X/550/550X
                                              GPU : AMD ATI Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT
                                              GPU Driver : amdgpu
                                             ﬙ Memory : 3734MiB / 31911MiB
                                          └──────────────────────────────────────────┘

Input device : Magic trackpad
I have made the following configs
hyprpm list
→ Repository hyprgrass:
│ Plugin hyprgrass
└─ enabled: true
~/.config/hypr/hyprland.conf
plugin:touch_gestures {
  # The default sensitivity is probably too low on tablet screens,
  # I recommend turning it up to 4.0
  sensitivity = 1.0

  # must be >= 3
  workspace_swipe_fingers = 3

  # switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers
  # and can be used at the same time
  # possible values: l, r, u, or d
  # to disable it set it to anything else
  workspace_swipe_edge = d

  # in milliseconds
  long_press_delay = 400

}

then

# swipe left from right edge
bind = , edge:r:l, workspace, +1

# swipe up from bottom edge
bind = , edge:d:u, exec, firefox

# swipe down from left edge
bind = , edge:l:d, exec, pactl set-sink-volume @DEFAULT_SINK@ -4%

# swipe down with 4 fingers
# NOTE: swipe events only trigger for finger count of >= 3
bind = , swipe:4:d, killactive

# swipe diagonally left and down with 3 fingers
# l (or r) must come before d and u
bind = , swipe:3:ld, exec, foot

# tap with 3 fingers
# NOTE: tap events only trigger for finger count of >= 3
bind = , tap:3, exec, foot

# longpress can trigger mouse binds:
bindm = , longpress:2, movewindow
bindm = , longpress:3, resizewindow

any help would be great the docs are well made but I'm still haveing trouble.

hyprgrass is a touch screen plugin

Bruh... who.. nvm thanks idk how I missed that, ig it was late.


[dvc][server] Support for clearing expired DIV state

The DIV state could grow unboudedly since it tracks some metadata for each producer, and never cleared them out. In extreme cases, this can lead to OOM errors.
This change mitigates the unbounded growth by introducing a max age, beyond which metadata can be evicted. This is controlled by a new config, which is disabled by default:
div.producer.state.max.age.ms (default: -1)
The clearing logic is inserted in the updateOffsetRecordForPartition function of KafkaDataIntegrityValidator, which is itself called prior to each sync (both as part of ingestion when a threshold is reached, and during graceful shutdown). The logic is lazy and will not kick in on every sync, based on how old the state was the last time the logic ran.
The age is determined by the Segments' lastRecordProducerTimestamp, which is the timestamp generated by the producer's local clock (not the user's logical timestamp). This time can be subject to drift but in practice it probably isn't going to drift enough to be a concern.
Miscellaneous changes:

Removed the RedundantExceptionFilter::getRedundantExceptionFilter with parameters, since that is broken by design... this and the non-parameterized functions both returned a singleton object, so the actual parameters of the singleton were driven by the timing of which code path got called first, which makes no sense.

Moved ProducerTracker and its unit test from venice-common to dvc, since it is only used in the latter.

StoreIngestionTaskTest::testDataValidationCheckPointing no longer has invocationCount = 3, as this is a pretty long test, and it doesn't seem useful.

Replaced the two maps in ProducerTracker by a single SparseConcurrentList, which eliminates 2 map lookups from the DIV hot path (called 1/msg in followers, and 2/msg in leaders). The element type of the list is ReentrantLockWithRef, a new utility class which extends ReentrantLock and also carries a ref to another object. Since we were always operating on the same key of both maps, we could instead group the elements into this shared container, hosted in a single collection.

How was this PR tested?
CI (including a new unit test)
Does this PR introduce any user-facing changes?

[ ] No. You can skip the rest of this section.
[x] Yes. Make sure to explain your proposed changes and call out the behavior change.

A new dvc/server config.

I just thought of something... there might be a problem with the approach taken here... while bootstrapping old data (e.g. during a rebalance), we may clear the DIV state during the bootstrapping, which doesn't seem right. The ingestion might still succeed, since it needs to be resilient to log compaction, which may result in similar symptoms, but it feels sketchy.
The last producer timestamp of a segment may not be a good enough heuristic... it may be necessary to consider lag as well, and only clear state for partitions which aren't lagging... this would complicate the implementation though.

I just thought of something... there might be a problem with the approach taken here... while bootstrapping old data (e.g. during a rebalance), we may clear the DIV state during the bootstrapping, which doesn't seem right. The ingestion might still succeed, since it needs to be resilient to log compaction, which may result in similar symptoms, but it feels sketchy.
The last producer timestamp of a segment may not be a good enough heuristic... it may be necessary to consider lag as well, and only clear state for partitions which aren't lagging... this would complicate the implementation though.

I let it stew overnight and I have another idea... instead of measuring the age as current time - last producer timestamp, we could measure it as most recent producer timestamp within the partition - last producer timestamp. I think this would make the algorithm work as desired during rebootstrap scenarios as well. It also seems more elegant since the algorithm becomes a state machine without any non-deterministic IO...
I will think about it some more and try implementing the change later...

I just thought of something... there might be a problem with the approach taken here... while bootstrapping old data (e.g. during a rebalance), we may clear the DIV state during the bootstrapping, which doesn't seem right. The ingestion might still succeed, since it needs to be resilient to log compaction, which may result in similar symptoms, but it feels sketchy.
The last producer timestamp of a segment may not be a good enough heuristic... it may be necessary to consider lag as well, and only clear state for partitions which aren't lagging... this would complicate the implementation though.

I let it stew overnight and I have another idea... instead of measuring the age as current time - last producer timestamp, we could measure it as most recent producer timestamp within the partition - last producer timestamp. I think this would make the algorithm work as desired during rebootstrap scenarios as well. It also seems more elegant since the algorithm becomes a state machine without any non-deterministic IO...
I will think about it some more and try implementing the change later...

I think you most recent idea sounds good since it aligns with the original expectation that the producer, which is not producing in the latest X time period, can be cleared.

I just thought of something... there might be a problem with the approach taken here... while bootstrapping old data (e.g. during a rebalance), we may clear the DIV state during the bootstrapping, which doesn't seem right. The ingestion might still succeed, since it needs to be resilient to log compaction, which may result in similar symptoms, but it feels sketchy.
The last producer timestamp of a segment may not be a good enough heuristic... it may be necessary to consider lag as well, and only clear state for partitions which aren't lagging... this would complicate the implementation though.

Hi Felix, why clear DIV state during bootstrap is not good?

Hi Felix, why clear DIV state during bootstrap is not good?

The problem I had in mind was that in my first iteration, I considered all partitions together. This means that if any partition had received a recent record, then any other partition that is lagging behind considerably (e.g. due to a rebootstrap) would have all of its state eligible for cleaning, since all of the messages it's consuming in the early messages of the partition are all older than the most recent timestamp - the maximum age.
With the new algorithm, the check is done within a single partition, rather than across partition, which seems cleaner to me, as partitions should be independent of each other, and not capable of contaminating each other.
LMK if that makes sense...


Yet another prop and event handler shorthand

What problem does this feature solve?
I commonly need to pass props down from one component to a child component. For example, I recently wanted to pass a disabled prop to a subcomponent called . I feel that writing
<Button :disabled="disabled" />

feels too cluttered. When people have suggested this elsewhere, some recommend using
<Button v-bind="{ disabled "} />

The problem with this approach is that an unnecessary v-bind is introduced which could be omitted.
What does the proposed API look like?
I understand that the shorthand syntax
<Button :disabled @click />

has been scrapped many, many, many, many, many, many, many (holy moly, the list just keeps going) times in the past, but I propose a new syntax similar to Svelte's prop shorthands.
<Button {disabled} {@click} />

The above syntaxes are similar to the existing object shorthand in JavaScript, so it would feel familiar to new developers. Furthermore, it would not be a breaking change (compared to #5835) since Vue props rarely use curly braces in their names.
If possible, I would also wish for a shorthand such as
<Button {disabled, @click} />

to be allowed, but I realize that the space in the attribute name prevents it from being valid HTML.

This should go in the vue/rfcs repo. Check there if there is an already open proposal.


Task :shared:forbiddenApisTest FAILED

CrateDB version:
lastest CrateDB, commit id: 4558b933bb140f6c1362249d7834b0784d856585
Environment description:
OS: MacOS
java -version

java version "11.0.4" 2019-07-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)

Problem description:
./gradlew build -xtest --parallel

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.0-20191006230018+0000/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :enterprise:licensing
No crate public key provided

> Task :shared:compileJava
注: /code/cratedb/shared/src/main/java/io/crate/common/collections/Sorted.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。

> Task :shared:forbiddenApisTest FAILED

> Task :es:es-x-content:compileJava
注: /code/cratedb/es/es-x-content/src/main/java/org/elasticsearch/common/xcontent/json/JsonXContentGenerator.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。

> Task :sql-parser:compileJava
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:forbiddenApisTest'.
> No API signatures found; use properties 'signatures', 'bundledSignatures', 'signaturesURLs', and/or 'signaturesFiles' to define those!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0-20191006230018+0000/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 26s
45 actionable tasks: 43 executed, 2 up-to-date

Steps to reproduce:
git reset --hard 4558b933bb140f6c1362249d7834b0784d856585
./gradlew clean
./gradlew build -xtest --parallel

Thank you for the report. Would you like to have a go at fixing this? Looks like there is some Gradle configuration issue.
You can meanwhile also use ./gradlew test --parallel see: https://github.com/crate/crate/blob/master/devs/docs/tests.rst

how to solve this problem?

Closing this for now. Running tests works as described here.
We would still take a contribution if somebody wants to fix this.


Swedish Buddy translations

Swedish translations based on the Danish version by @HThuren .
I have created the SE files by copying the text from the Danish json files and not by using the suggested 'yarn extract-locales' tool, simply because I'm not a programmer and don't understand how to set everything up. So it is untested...

I did the same way :-)

Sorry I messed with the translations after you approved them. Won't do it again :)

It’s fine, are you happy for me to merge now?

It’s fine, are you happy for me to merge now?

Yes, thanks!


Nuke: shortcuts for Pype menu

It would be nice to have them for Loader, Publish and Build Workfile.

Not sure what this means. We already have those in Pype menu @64qam or @mkolar


flask-jwt tokens from server side does not get decoded in angular-jwt on client side

I am using Flask as a back end (api) and angularjs as a front end. For JWTs I am using Flask-JWT in my api. And I was trying to configure angular-jwt in my front end
On login, I call /api/v1/auth (JWT_AUTH_URL_RULE) from angularjs app and I get the token. e.g.
 eyJhbGciOiJIUzI1NiIsImV4cCI6MTQzMjExNTAzMiwiaWF0IjoxNDMyMTE1MDAyfQ.eyJ1c2VyX2lkIjoxfQ.dmwvvgDinqWojmZ9ff1wHk_gDYM-dXNG-uTrabY9fFM

Then I store it in localStorage
// angularjs code
localStorage['id_token'] = data.token;

But when I try to decode it in another part of my app, I get null
// angularjs code
console.log('token expiration date', jwtHelper.getTokenExpirationDate(localStorage.getItem('id_token')));
console.log('token expired', jwtHelper.isTokenExpired(localStorage.getItem('id_token')));

Note that the algorithms that I have tried for SECURITY_PASSWORD_HASH are
bcrypt, sha512_crypt, or pbkdf2_sha512
// SECURITY_PASSWORD_HASH from https://pythonhosted.org/Flask-Security/configuration.html

Why doesn't it work?
In fact I see it getting decoded in http://jwt.io/

Hey, the JWT is base64 encoded, so you'd need to use a base64 decode to get the information stored in the first two parts of the JWT (the 3rd part is the secure sign).
So, for your example (https://www.base64decode.org/):
The first part of the JWT gives ('part' being the data up to the first period)
{"alg":"HS256","exp":1432115032,"iat":1432115002}
And the second part gives (between first period and second period)
{"user_id":1}
Here is a good discussion of JWT structure: https://developer.atlassian.com/static/connect/docs/latest/concepts/understanding-jwt.html
So, your JWT helper needs to do a base64 decode, and then parse JSON structures to give you what you want.
Please note that due to using itsdangerous under the hood, there are a few quirks where data is stored, see: https://github.com/mattupstate/flask-jwt/issues/40
Also, to make your life easier, consider using Satellizer (https://github.com/sahat/satellizer) - handles a lot of the grunt stuff behind the scenes.

@hussaintamboli was definitely having the same problem as issue #40. BTW, he isn't trying to decode the JWT himself; jwtHelper is from angular-jwt (an angularjs module). The issue is that jwtHelper looks for the exp field in the payload, not in the header where flask-jwt is putting it.

Care to upgrade and see how things go?

Sure. I'll do that and let you know.

Apologies :(
Haven't found time to check this yet.


[TASK] Fix source maps for firefox

Estimated story points:
Description

Acceptance criteria

Probably also an issue with our bundler. I think I tried parcel and it may work better

time: 13h


merge pull request

merge pull request

hey @SUSHANT12PRABHU - thanks for opening this PR. This repository is deprecated in favor of separate repos for each dataset. You can find these packages here


Get-CSOnlineUser missing filters for Phone and Enabled

Version 4.0 does no longer contain filters for Phone and Enabled. these used to be present but now throw an error.
Microsoft.Teams.ConfigAPI.Cmdlets.internal\Search-CsUser : Query not supported for property: Enabled query: Enabled
-EQ $true position: 1.

it seems the Enabled is replaced with AccountEnabled
is there a similair replacement for Phone?

Hi @Fimlore, thank you for your feedback.
The information is included in the article, please check the description of the parameter Filter:
https://docs.microsoft.com/powershell/module/skype/get-csonlineuser
Instead of phone, you should try LineURI or OnPremLineURI depending on the service you are using (Direct Routing, Operator Connect or Calling Plans).

@dariomws Thank you very much for the contribution and sharing this explanation. @Fimlore Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


twister: support test plans and test configuration

Add support test plans and the ability to assign a specific test to one
or more plans. Use command line options of twister it is then possible
to select a plan and just execute the tests included in this plan.
Additionally, a test configuration is now available to define plan
dependencies and additional inclusion of tests into a specific plan if
the test itself does not have this information already.
In the configuration file you can include complete components using
regular expressions and you can specific which test plan to import from
the same file, making management of plans easier.
To help with testing outside of upstream CI infrastructure, additional
options are available in the configuration file, which can be hosted
locally. As of now, those options are available:

Ability to ignore default platforms as defined in board definitions
(Those are mostly emulation platforms used to run tests in upstream
CI)
Option to specify your own list of default platforms overriding what
upstream defines.
Ability to override build_onl_all options used in some testscases.
This will treat tests or sample as any other just build for default
platforms you specify in the configuation file or on the command line.

commits:

twister: add support for plans and test configuration
tests: add smoke tests
tests: mem_map: remove scnearios used for coverage
tests: mem_protect: cleanup yaml and reenable qemu_arc

@PerMac @hakehuang

I am finalizing my review, please wait with merging.

DNM waiting for a review from @PerMac


Ship default relations

We should, similar to the abstract base entities, ship abstract base relations of relations that should be modeled in the same way in different projects.

person lives in place
person is part of group
various family relations: is parent of (or is child of?), is sibling of, is cousin of - or do we only need the parent one and calculate all the other ones?

Given that the entities shipped in APIS are mixins we can only provide mixins for the relations


Failed to register .NET SDK

Just opening the extension on a new project created by dotnet new console.
~/dev/csharp-app$ dotnet --list-sdks
8.0.401 [/home/joao/.dotnet/sdk]
~/dev/csharp-app$ dotnet --list-runtimes
Microsoft.AspNetCore.App 8.0.8 [/home/joao/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.8 [/home/joao/.dotnet/shared/Microsoft.NETCore.App]
~/dev/csharp-app$ echo $DOTNET_ROOT
/home/joao/.dotnet

Any ideas?

Hi @tritao ! This error doesn’t stop the extension. Can you continue to use the extension while ignoring this error? or is intellisense not working?

I think that you have installed dotnet via dotnet-install.sh script (dotnet inside .dotnet folder).
I have installed dotnet with apt-get install dotnet-sdk-8.0 on my Android tablet (dotrush also works with Neovim).

This extension uses the MSBuildLocator.RegisterDefaults() for Roslyn. Maybe if you install dotnet via apt, it does some additional thinks for dotnet?

I will add the following code in the next version:
var dotnetPath = Environment.GetEnvironmentVariable("DOTNET_ROOT");
if (!string.IsNullOrEmpty(dotnetPath))
    return MSBuildLocator.RegisterMSBuildPath(dotnetPath);

I hope this helps to remove this error.

I'm having the same error, although it seems like all functionality is working.
I'm using DotRush v24.12.340 on MacOS Sequoia 15.1.1, with .NET 9.0.101 installed via Homebrew.
I'm so glad this extension exists. I have spent all day banging my head up against C# Dev Kit, which inexplicably failed to work with no error messages.


How to improve accuracy of answers?

Looking for help in understanding how this works and what's going on.
I'm using the recommended Ollama configuration.
What did I do wrong that I'm getting these incorrect answers? Or what do I not understand about how PrivateGPT works and what it means about the 'provided context'?
Please see attached images.
Both Taco Bell and descriptions for the character Senna are on Page 2. As mentioned above, maybe I have the wrong idea of how this is supposed to work but these responses are not what I'm looking for.

This is from the source document.

I don't think this is the right approach but I looked in the database for what the data looks like and it's like this - using DB Browser for SQLite, exporting the .bin, using a converter.

Thank you.

Can you please point to the code for first three points?


[Improvement] Don't ask for ssh password on every action

When doing shipit production deploy, shipit will ask for ssh password on every action so you end up entering it over 10 times for a simple deploy.
Deployer asks once during the deploy and automatically reuses it when required.

You should use a key and not a password.

Or switch back and keep using deployer which looks a better idea.

While I understand that using a key is strongly recommended but I don't see a point of ShipIt not to support password authentication for ssh (unless unix has totally banned password-based authentication). I have this very same problem here, but I'm not in the decision of setting up to authenticate by key, and I was hopeful that this script is as flexible as Capistrano. I'm trying out ShipIt as the deployment tool for my NodeJS environment but it seems to have much more frictions than Capistrano if password is required for every remote call.

I am open to password authentication, feel free to submit a PR to make it possible!

The issue I'm having is my key is password protected, so every action it asks for the key. Other deployment solutions I've used leave the SSH connection open. Shipit seems to open and close it every action. Any tips?

Shipit relies on ssh binary, that's why I think it will open a new ssh session each time. Right now it is the way it works. A better implementation would be to use a SSH library instead but it would be a full rewrite of Shipit. I will not do it, if someone want to be involved in the project and become maintainer he is welcome.

One option is to configure your local ~/ssh/config with the option AddKeysToAgent yes
example

~/ssh/config

Host web
        HostName server_ip
        User user_name
        Port port_num
        IdentityFile key_location
        AddKeysToAgent yes

Connect one time and it will save the key passphrase
It worked form me on OSX but it should work on Linux too.


[45] Add SE-0145 in review

The under review-url now links to the commit, as there has not been a mail to announce the review.

email was only sent to swift-evolution (not swift-evolution-announce)

https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20161031/028579.html

made the changes 😄


update README with resend from instruction

HI,  great work with this project!
This is a PR with a note for the new users of the resend service to use a default FROM value,  in case you do not have a custom domain.
This is something that happened to me as first time using Resend with the app.

Hey @ernesto27 do you mind providing a link to the documentation where it states this? That would be very helpful in moving this along :) Thanks!

Hi!
I could not find a documention link or sentence about this thing specifically ( maybe i missing something )
I obtained the FROM email<EMAIL_ADDRESS> from this setup go example doc
https://resend.com/docs/send-with-go
if i do not use that email ,  i have this error.
]: The  mydomain.com domain is not verified. Please, add and verify your domain on https://resend.com/domains
Using that email,  woks perfectly without a custom domain setup.


OutOfMemoryException only in Visual Studio

I have some strange behavior which I can't figure out.
I'm using a WCF service to save files to a certain DB table. The WCF service has a single method which takes a JSON string as parameter. The JSON in this case is a serialized command which contains a List<FileData> amongst other properties. The WCF service deserializes the JSON and runs the CommandHandler for this specific command.
An end-user ran into a bug when he tried to upload a file with a size of 52 MB. The WCF service returned a 404 error. After changing the config file according to this article, the 404 disappeared.
But now a new exception appeared: While the command is successfully serialized client side, successfully processed by WCF, the deserialization throws an OutOfMemoryException. This is the top of the stacktrace:

at Newtonsoft.Json.JsonTextReader.ReadData(Boolean append, Int32 charsRequired)
at Newtonsoft.Json.JsonTextReader.ReadData(Boolean append)
at Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote)
at Newtonsoft.Json.JsonTextReader.ParseString(Char quote)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.ReadInternal()
at Newtonsoft.Json.JsonReader.ReadAsBytesInternal()
at Newtonsoft.Json.JsonTextReader.ReadAsBytes()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)

I wrote a unittest to prove the bug. But against all odds this test passes, in other words, no OutOfMemoryException is thrown.
The test for the sake of completeness:
        [TestMethod]
        public void LoadBigFile_SerializeDeserialize_DoesntThrowOutOfMemoryException()
        {
            // Arrange
            byte[] bytes = new byte[80000000];
            Random r = new Random(23);
            r.NextBytes(bytes);

            var command = new KoppelRapportCommand(Guid.Empty, new List<FileData>
            {
                new FileData(
                    fileFullName: @"D:\SomePdfFile.pdf",
                    modifyDate: DateTime.MaxValue,
                    data: bytes
                    )
            });

            var data = JsonConvert.SerializeObject(command);

            // Act
            var deserializedCommand =
                  JsonConvert.DeserializeObject<KoppelRapportCommand>(data);

            // Assert
            Assert.AreEqual(bytes.Length, deserializedCommand.Files.First().Data.Length);
        }

So, I took my chances and changed the config file in production and tried to upload the same file. And that just works!!! No OutOfMemoryException!
Now my question is, why does the 'OutOfMemoryException' only happen in Visual Studio, while a unittest in the same instance of VS doesn't? It feels a bit strange that I can't test uploading big files in Visual Studio, while it works in production. Notice that I also tried to switch from Debug to Release.
Some details:

Using Json.Net 7.0.1
Visual Studio 2015, update 2
Windows 10 latest build

I asked the same question on stackoverflow and got it answered: http://stackoverflow.com/a/37643269/3294832
It is not an issue with Json.Net. Apparatently IIS express does not follow the solution configuration when it comes to which CPU architecture is used. Didn't know that


What is the purpose of having Data folder at the top level of Material?

Presumably all data will ship with the individual sessions -- or are we attempting again to harmonize the data that is used? In that case should we provide a dataset?

Harmonization - yes!
The top-level material data folder was to have a data set that all data sets starts from. Think of it as the raw data. From there are intermediate data set that will be shipped with individual sessions should be generated from.
Yes, we should provide one. I was thinking of using the one from last year. I think there are improvements to do to that data set, but that's not for this year...
What do you think?


Xpath question

Any idea why the following statement returns an "invalid argument"?
The root XML-Node is "data" and the XPath expression "//data[1]" should return the root node.

get --filter-xpath //data[1]
ERROR
type:     application
tag:      operation-failed
severity: error
message:  np2srv_sr_get_items_iter failed (sysrepo: Invalid argument).

Thanks for your quick reply.
When I try the following statement, then there is no results:
get-config --source running --filter-xpath //ietf-netconf-server:listen[1] DATA
Could you please give us a XPath-example (with get or get-config)?
Thanks

Hi,
what is the output of unfiltered get-config --source running? That XPath is right, I think.
Regards,
Michal

<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<turing-machine xmlns="http://example.net/turing-machine">
  <transition-function>
    <delta>
      left summand
      <input>
        <state>0</state>
        <symbol>1</symbol>
      </input>
    </delta>
    <delta>
      separator
      <input>
        <state>0</state>
        <symbol>0</symbol>
      </input>
      <output>
        <state>1</state>
        <symbol>1</symbol>
      </output>
    </delta>
    <delta>
      right summand
      <input>
        <state>1</state>
        <symbol>1</symbol>
      </input>
    </delta>
    <delta>
      right end
      <input>
        <state>1</state>
        <symbol/>
      </input>
      <output>
        <state>2</state>
        left
      </output>
    </delta>
    <delta>
      write separator
      <input>
        <state>2</state>
        <symbol>1</symbol>
      </input>
      <output>
        <state>3</state>
        <symbol>0</symbol>
        left
      </output>
    </delta>
    <delta>
      go home
      <input>
        <state>3</state>
        <symbol>1</symbol>
      </input>
      <output>
        left
      </output>
    </delta>
    <delta>
      final step
      <input>
        <state>3</state>
        <symbol/>
      </input>
      <output>
        <state>4</state>
      </output>
    </delta>
  </transition-function>
</turing-machine>
<keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore">
  <private-keys>
    <private-key>
      <name>ssh_host_rsa_key</name>
    </private-key>
  </private-keys>
</keystore>
<netconf-server xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-server">
  <listen>
    <endpoint>
      <name>all-interfaces</name>
      <ssh>
        <address><IP_ADDRESS></address>
        <port>830</port>
        <host-keys>
          <host-key>
            <name>imported SSH key</name>
            <public-key>ssh_host_rsa_key</public-key>
          </host-key>
        </host-keys>
      </ssh>
    </endpoint>
  </listen>
</netconf-server>
</config>

Hi,
it should work with updated sysrepo, it could not handle XPaths starting with // before.
Regards,
Michal

Hello,
Thank you.
Do you know whether or when this bug fix will be applied to the following docker:
https://hub.docker.com/r/sysrepo/sysrepo-netopeer2/

Hi,
I will build a new image, the docker tag latest uses the master branch while the tag devel uses the devel branch.
Regards,
Mislav

Hi,
Unfortunately we get the following error in devel docker:
`WARNING: Previous warning generated by XPath subexpression[3] "map-type = 'ietf-x509-cert-to-name:specified'".
ncERROR: Module "ietf-netconf-acm@2018-02-14" is supposed to be imported, but no other module imports it.
cmd_connect: Connecting to the localhost:830 as user "netconf" failed.`

Hi,
I'll take a look.

Hi,
I made a quick fix and updated the docker image but the underlying issue with the YANG model remains:
> connect
Interactive SSH Authentication
Type your password:
Password:
ly WARNING: Previous warning generated by XPath subexpression[3] "map-type = 'ietf-x509-cert-to-name:specified'".
ly ERROR: Module "ietf-netconf-acm" parsing failed.
ly ERROR: Module "ietf-netconf-acm@2018-02-14" in another revision "2012-02-22" already implemented.
>

For the fix in the dockerfile I added:
RUN \
      sysrepoctl -i -g<EMAIL_ADDRESS>

@michalvasko do you know why the YANG model was not properly installed by the cmake file?

Hi,
I have encountered it too, the model was being loaded from server test files where an older revision was used. If you update netopeer2, it should be fixed. Also, the model is being installed only when NACM is enabled or did you mean something else?
Regards,
Michal

Hi,
I used the latest devel-server and master branch and still get the same issue.

I am not sure how are you testing it, but if using netopeer2-cli, try removing the model cache (~/.netopeer2-cli/models/).
Regards,
Michal

Hello,
Here you can see the content of the .netopeer2-cli folder. There is no models directory (we are using the devel docker environment for testing):
root@91749f5f5b49:~# ls .netopeer2-cli/
config.xml  history

And here are the warning & error messages, that appear after the connect command:
ly WARNING: Previous warning generated by XPath subexpression[3] "map-type = 'ietf-x509-cert-to-name:specified'".
ly ERROR: Module "ietf-netconf-acm" parsing failed.
ly ERROR: Module "ietf-netconf-acm@2018-02-14" in another revision "2012-02-22" already implemented.

But it seems that the connection is made (at least the status command works fine). Now if we try the following command:
get-config --source running --filter-xpath //ietf-netconf-server:listen[1]
we get the following error on the client:
ERROR
	type:     application
	tag:      operation-failed
	severity: error
	message:  np2srv_sr_get_items_iter failed (sysrepo: Sysrepo-internal error).

and the following logs are visible on the server side:
2018-07-02 06:26:48,017 DEBG 'sysrepod' stdout output:
[ERR] (ac_check_module_node_permissions:273) Cannot insert new entry into binary tree for module access control info.
[ERR] (rp_dt_prepare_data:1200) Access control check failed for xpath '//ietf-netconf-server:listen[1]//.'
[ERR] (rp_dt_get_values_wrapper_with_opts:1358) rp_dt_prepare_data failed
[ERR] (rp_get_items_req_process:830) Get items failed for '//ietf-netconf-server:listen[1]//.', session id=1053904025.

2018-07-02 06:26:48,018 DEBG 'netopeer2-server' stdout output:
ERROR: np2srv_sr_get_items_iter failed (sysrepo: Sysrepo-internal error).

Could you please help us?
Thanks.

Hi,
this was exactly the state before I made those patches so I am almost positive the image you are using does not have the most recent versions of neither netopeer2 nor sysrepo. So, unless you, generally, use the updated applications, I cannot help you.
Regards,
Michal


removing first file error

step 1) goto http://ternjs.net/doc/demo/index.html#requirejs
step 2) select "remove this file" from drop causes an error, console error:
"Uncaught TypeError: Cannot read property 'name' of null"
Possible solution:
step 1) Open http://ternjs.net/doc/demo/demo.js
step 2) delete 'this.curDoc = null' from line 6
step 3) add 'this.curDoc = firstDoc' after line 28

Thanks for debugging that! Attached patch implements your fix.


Dashboard auto logoff feature request

Issue/Feature Description:
Dashboard remains ideal even after session timeout. This leads to failure for all http requests
Why this issue to fixed / feature is needed(give scenarios or use cases):
User need to be aware of session time out.
How to reproduce, in case of a bug:
Keep soda dashboard ideal for 15 min.
Other Notes /  Environment Information: (Please give the env information, log link or any useful information for this issue)

@anvithks PTAL