TMT under certain circumstances executes test twice instead executing the next test

I've executed following test plan using TMT: https://github.com/pholica/tmt_testrepo/blob/6087865da91737f8bf9c9ff2d2f19da1311f6cac/plans/example.fmf
from repo: https://github.com/pholica/tmt_testrepo/tree/6087865da91737f8bf9c9ff2d2f19da1311f6cac
During the execution, I hit a situation when the 01_log_plan_data was actually executed twice, second time as if it was 02_log_test_data. See the result of 03_list_root and output from 02_log_test_data.
I'm not hitting this behavior consistently, but rather randomly but quite frequently.
$ tmt run -a provision --how connect --guest <IP_ADDRESS>
/var/tmp/tmt/run-033

/plans/example/broken_reboot
    discover
        how: fmf
        directory: /home/pholica/git/pholica/tmt_testrepo
        summary: 3 tests selected
    provision
        queued provision.provision task #1: default-0

        provision.provision task #1: default-0
        how: connect
        primary address: <IP_ADDRESS>
        topology address: <IP_ADDRESS>
        multihost name: default-0
        arch: x86_64
        distro: Red Hat Enterprise Linux 9.4 (Plow)

        summary: 1 guest provisioned
    prepare
        queued push task #1: push to default-0

        push task #1: push to default-0

        queued prepare task #1: requires on default-0

        prepare task #1: requires on default-0
        how: install
        summary: Install required packages
        name: requires
        where: default-0
        package: /usr/bin/flock

        queued pull task #1: pull from default-0

        pull task #1: pull from default-0

        summary: 1 preparation applied
    execute
        queued execute task #1: default-0 on default-0

        execute task #1: default-0 on default-0
        how: tmt
        progress:

        summary: 3 tests executed
    report
        how: display
        summary: 2 tests passed and 1 test failed
    finish

        summary: 0 tasks completed

total: 2 tests passed and 1 test failed

$ cat /var/tmp/tmt/run-033/plans/example/broken_reboot/execute/data/guest/default-0/plans/example/tests/02_log_test_data-2/output.txt
TMT_PLAN_DATA='/var/tmp/tmt/run-033/plans/example/broken_reboot/data'
plan_data_foobar

$ tmt --version
tmt version: 1.33.0
$ rpm -q tmt
tmt-1.33.0-1.fc39.noarch

Attaching tmt debug output and archive of the run:
duplicate_test_execution.zip
tmt_debug_output.txt

Note: "provision -h connect" is much more likely to hit the issue.

Sounds like an important one, let's try to squeeze this into 1.34.

Just a hunch, but could it be that the content of tmt-test-wrapper.sh-default-0-default-0 was not flushed on host yet and tmt pushed old code? All three tests are defined in the plan so tmt creates a script for them on the fly.

Hmm, I'm unable to reproduce this behavior :(
BTW run -e TMT_DEBUG=1 should provide more info about what's happening in those wrappers (adds set -x).

Just a hunch, but could it be that the content of tmt-test-wrapper.sh-default-0-default-0 was not flushed on host yet and tmt pushed old code? All three tests are defined in the plan so tmt creates a script for them on the fly.

Could be, also rsync might fail silently and not upload the modified version to guest. I see no other option. From the log it's clear the code running was not the one from the second test, so it's clearly somewhere there.

I've added cat tmt-test-wrapper.sh-default-0-default-0 to the test code and it is indeed same content.
[0 lzachar@ r_094054_1Oq ]$ cat /var/tmp/tmt/run-244/example/broken_reboot/execute/data/guest/default-0/example/tests/01_log_plan_data-1/output.txt
TMT_PLAN_DATA='/var/tmp/tmt/run-244/example/broken_reboot/data'
plan_data_foobar
example.fmf
tmt-test-wrapper.sh-default-0-default-0
set -eo pipefail; echo "TMT_PLAN_DATA='${TMT_PLAN_DATA}'"
echo plan_data_foobar | tee ${TMT_PLAN_DATA}/plan_log.txt
touch /root/01_log_plan_data
ls
cat tmt-test-wrapper.sh-default-0-default-0
[0 lzachar@ r_094054_1Oq ]$ cat /var/tmp/tmt/run-244/example/broken_reboot/execute/data/guest/default-0/example/tests/02_log_test_data-2/output.txt
TMT_PLAN_DATA='/var/tmp/tmt/run-244/example/broken_reboot/data'
plan_data_foobar
example.fmf
tmt-test-wrapper.sh-default-0-default-0
set -eo pipefail; echo "TMT_PLAN_DATA='${TMT_PLAN_DATA}'"
echo plan_data_foobar | tee ${TMT_PLAN_DATA}/plan_log.txt
touch /root/01_log_plan_data
ls
cat tmt-test-wrapper.sh-default-0-default-0

So to be on safer side we should have unique names for  tmt-test-wrapper.sh-default-0-default-0, right?

Yeah, I can do that, I'm just curious why it's happening. I can't reproduce it, you obviously can, easily, so where's the problem :) Some mount option, some fsync setting?

So here's my proposal, https://github.com/teemtee/tmt/pull/2998
Still, I can't reproduce the issue, so I have no idea how to trigger the error and test the fix. The filename is now unique, let me know whether it would help - or trigger rsync error as it cannot find the local file...

This looks like the file was not modified on the guest, right?
11:22:00         test wrapper: /var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0
11:22:00         Test script: set -eo pipefail; touch /root/02_log_test_data

11:22:00         Write file '/var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0'.
11:22:00         Copy '/var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0' to '/var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0' on the guest.
11:22:00         Run command: rsync -vvv -s -p --chmod=755 -e 'ssh -oForwardX11=no -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oConnectionAttempts=5 -oConnectTimeout=60 -oServerAliveInterval=5 -oServerAliveCountMax=60 -oIdentitiesOnly=yes -i /usr/share/qa-tools/1minutetip/1minutetip -oPasswordAuthentication=no -S/run/user/17062/tmt/tmpszkwx4yq' /var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0 root@<IP_ADDRESS>:/var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0
11:22:00         environment
11:22:00         out: opening connection using: ssh -oForwardX11=no -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oConnectionAttempts=5 -oConnectTimeout=60 -oServerAliveInterval=5 -oServerAliveCountMax=60 -oIdentitiesOnly=yes -i /usr/share/qa-tools/1minutetip/1minutetip -oPasswordAuthentication=no -S/run/user/17062/tmt/tmpszkwx4yq -l root <IP_ADDRESS> rsync --server -svvvpe.LsfxCIvu  (19 args)
11:22:00         out: protected args: . /var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0  (2 args)
11:22:00         out: [sender] make_file(tmt-test-wrapper.sh-default-0-default-0,*,0)
11:22:00         out: send_file_list done
11:22:00         out: send_files starting
11:22:00         out: server_recv(2) starting pid=20996
11:22:00         out: recv_file_name(tmt-test-wrapper.sh-default-0-default-0)
11:22:00         out: received 1 names
11:22:00         out: recv_file_list done
11:22:00         out: get_local_name count=1 /var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0
11:22:00         out: generator starting pid=20996
11:22:00         out: delta-transmission enabled
11:22:00         out: recv_generator(tmt-test-wrapper.sh-default-0-default-0,0)
11:22:00         out: tmt-test-wrapper.sh-default-0-default-0 is uptodate
11:22:00         out: send_files(0, /var/tmp/tmt/BUG/plan/broken_reboot/discover/default-0/tests/tmt-test-wrapper.sh-default-0-default-0)
11:22:00         out: generate_files phase=1
11:22:00         out: send_files phase=1
11:22:00         out: recv_files(1) starting
11:22:00         out: recv_files(tmt-test-wrapper.sh-default-0-default-0)
11:22:00         out: recv_files phase=1
11:22:00         out: generate_files phase=2
11:22:00         out: send_files phase=2
11:22:00         out: send files finished
11:22:00         out: total: matches=0  hash_hits=0  false_alarms=0 data=0
11:22:00         out: recv_files phase=2
11:22:00         out: recv_files finished
11:22:00         out: generate_files phase=3
11:22:00         out: generate_files finished
11:22:01         out:
11:22:01         out: sent 78 bytes  received 632 bytes  1,420.00 bytes/sec
11:22:01         out: total size is 47  speedup is 0.07
11:22:01         out: [sender] _exit_cleanup(code=0, file=main.c, line=1338): about to call exit(0)

Ah, rsync has 'checksum' as "optional" decision factor to update files...

WIth -c added to rsync options I'm no longer able to reproduce...

:)

Anyway, we want both, right? More unique wrapper filenames and rsync considering the content of files it's syncing? Any risk in added -c? Things may take longer, because of computing checksums?

I'm not sure how often -c will be the deciding factor. It should hit only for similar cases as above and even then only if pushing file names. SO it shouldn't hurt us do both (hopefully rsync will first try time/attrs..)

Hm, manpage hints it is XOR        --checksum, -c           skip based on checksum, not mod-time & size..

So, should we include both? The #2998 fixes the problem.
Based on manpage we can have rsync do either 'quick check' or 'checksum', I originally thought it checksum will be just 'make sure quick check was correct' but it replaces the check completely.

With the patch, we shouldn't hit the problem when a filename changes its content, therefore the need for checksum would diminish.
Maybe we could add an envvar for additional rsync options, expose it in TF and see whether it increases testing times by hours or not, and decide WRT checksum after that.

Maybe we could add an envvar for additional rsync options, expose it in TF and see whether it increases testing times by hours or not, and decide WRT checksum after that.

I think this would be probably the safest way. I'm afraid that we can expect some significant slow down when the --checksum option is enabled, especially for larger files.


Make serial build without CUDA support

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

This is the same as https://github.com/conda-forge/conda-forge.github.io/issues/2329

Just a few (random) comments:

This seems to be AmberTools23 (at least as far as I see in the build logs).  One potential "minus" to this choice is in getting Amber developers involved -- there already is a conda-forge build of AmberTools23 (serial).  The "plus" is that, since version 23 has compiled on OSX before, it might be easier to figure out what has changed.

The logs indicate that the compiler for osx_64 is clang++ version 15.  I also use this, and have no problems building nlopt on my Mac-intel laptop.  This just means that the conda-forge build is doing something different that what I see when I build "by hand".

The error quoted above comes from a CMakeLists.txt file provided by the nlopt folks.  It seems(?) to be that the system cannot find __cplusplus.

Since resolution of this is probably beyond me, I'll post a request on amber-developers mailing list to see if OSX person can volunteer.

There is a conda-forge package for nlopt: https://anaconda.org/conda-forge/nlopt
Is it worth a try to add -DDISABLE_TOOLS="nlopt" to the AmberTools cmake invocation and (optionally) add nlopt to the yaml file?

Update: Tim Giese has prepared a patch that updates nlopt to version 2.8, and reworks the Cmake files to make use of an installed nlopt (e.g.from a package manager or from a conda install command) if one is found.  I am currently testing this out on Linux and OSX.
Limitation: this is an update to AmberTools24, not (yet?) to AmberTools23. If this update seems to work at my end, a next step might be to see if a serial conda-forge package could be built for AmberTools24.
I'll add a new update when I know more from my end.


Add time method for time types

Coverage remained the same at ?% when pulling 8d6e60c8c801402fb4754c67d02f424f61d59339 on add-time-method-for-time-types into 59ca74129c61dfadad1e69e5165c68a5570f2a20 on master.

travis-ci/pr failed because of trouble with travis-ci.
travis-ci/pr and travis-ci/push test same code.


Python 3.10 compatibility

get_event_loop raises a deprecation in python3.10 which bookworm uses as default and in the future versions will just be used as an alias for get_running_loop.
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop

Thanks!


Fixed compatibility with React Native 0.40.0

See https://github.com/facebook/react-native/releases/tag/v0.40.0
“breaking changes”
Update iOS RN header paths

@umhan35 can you merge this?

fixed in #105


Make compatible with Foundry V13

An error occurs when trying to process @Embed' since config.inline is not defined.

Fixed in https://github.com/farling42/fvtt-extra-embed/releases/tag/0.3.0


Don't leak compressed stream (#630)

Don't leak compressed stream

Transparent compression works by adapting the binary stream with the
GzipFile or BZ2File class. These, however, by design don't close the
adapted stream. Add a matching
CompressionFormatTest.test_closes_compressed_stream test.

Fixes #630

Thank you for taking care of this! Merged.


Question about simple matrix operations using cpp api

Inspired by the example in python:
    A = mx.symbol.Variable('A')
    B = mx.symbol.Variable('B')
    C = A * B
    a = mx.nd.ones(3) * 4
    b = mx.nd.ones(3) * 2
    c_exec = C.bind(ctx=mx.cpu(), args={'A' : a, 'B': b})
    c_exec.forward()
    c_exec.outputs[0].asnumpy()
    [ 8.  8.  8.]

I'm trying to write a simple matrix plus in cpp like this:
    Context ctx = Context::cpu();
    Symbol a = Symbol::Variable("a");
    Symbol b = Symbol::Variable("b");
    auto c = _Plus(a,b);
    std::map<string, NDArray> args;
    std::vector<mx_float> ac(2);
    ac[0] = 1.0;
    ac[1] = 2.0;
    std::vector<mx_float> bc(2);
    bc[0] = 1.0;
    bc[1] = 2.0;
    args["a"] = NDArray(ac,Shape(2), ctx);
    args["b"] = NDArray(bc,Shape(2), ctx);
    NDArray::WaitAll();
    auto *exec = c.SimpleBind(ctx, args);
    exec->Forward(false);
    auto x = exec->outputs[0].Reshape(Shape(2)).GetData()[0];
    NDArray::WaitAll();
    delete exec;
    MXNotifyShutdown();
    cout<<x<<endl;

when i run this piece of code, the output is a random number(nearly zero, like 2.19945e-38, 1.16171e-38...).
My question is .. how to write a symbol to perform simple matrix plus properly using mxnet c++ api?
 : (
Thanks in advance.

You should move NDArray::WaitAll() before x is evaluated, because after you call exec->Forward(), the value of its output will be cacluated asynchronously.

@lx75249 Thanks. I did what you advised, but i still get random number close to zero. :(
i'm wondering if the process is incomplete or wrong..

@cogons I forgot that you should also remove reshape... or waitall after reshape

@lx75249 still the same symptom..
BTW, is it a good way to monitor ndarray output like this?
exec->outputs[0].GetData()[0];

@cogons cannot reproduce. Could you paste complete code?

@lx75249

#include <iostream>
#include <fstream>
#include <map>
#include <string>
#include <vector>
#include "mxnet-cpp/MxNetCpp.h"
#include "../include/mxnet-cpp/op.h"

using namespace std;
using namespace mxnet::cpp;

int main(int argc, char const *argv[])
{
  mxnet::cpp::Context ctx = mxnet::cpp::Context::cpu();
  auto shape = Shape(2);
  Symbol a = Symbol::Variable("a");
  Symbol b = Symbol::Variable("b");
  auto c = a+b;
  std::map<string, NDArray> args;
  std::vector<mx_float> ac(2);
  ac[0] = 1.0;
  ac[1] = 2.0;
  std::vector<mx_float> bc(2);
  bc[0] = 1.0;
  bc[1] = 2.0;
  args["a"] = NDArray(ac,shape, ctx);
  args["b"] = NDArray(bc,shape, ctx);
  auto *exec = c.SimpleBind(ctx, args);
  exec->Forward(false);
  auto x = exec->outputs[0].GetData()[0];
  MXNotifyShutdown();
  delete exec;
  cout<<x<<endl;
  return 0;
}

I said you should use waitall before GetData(), like this
  exec->Forward(false);
  NDArray::WaitAll();
  auto x = exec->outputs[0].GetData()[0];

About monitor, it has been implemented but is under review. You can use this for now, but after monitor is merged, you are recommended to use the monitor provided in cpp-package. Outputing ndarray to std::ostream will also be supported by then.

@lx75249  It works. Much thanks!!


Azure VM Image List show architecture

Related command

az vm image list
Is your feature request related to a problem? Please describe.

Curently 'az vm image list' does not return property 'architecture', we hope this can be applied for filter.
Describe the solution you'd like

az vm image list [--all]
[--edge-zone]
[--location]
[--offer]
[--publisher]
[--sku]
[--architecture] {x64 | Arm64}
Describe alternatives you've considered

Additional context

Compute


Remove "release" under the various package's reference documentation

E.g. for dimod

but that version refers to the sdk version not the dimod version. In the dimod (et al) specific parts of the documentation it would be less confusing to simply remove it.

Still needed for

dimod
dwavebinarycsp
dwave-cloud-client
dwave-inspector
dwave-neal
dwave-networkx
dwave-tabu
penaltymodel

Not needed for

dwave-greedy
dwave-hybrid
dwave-system
minorminer


Module craches artisan if you use session driver redis

This module craches artisan if you use session driver redis.
If you change public function register() to public function boot() in CamelCaseJsonResponseServiceProvider.php, the bug is fixed.

I noticed, that the above doesn't fix the bug. Artisan is working again, but the Camelcase provider is not.
Instead you have to fix the class like the following:
`class CamelCaseJsonResponseServiceProvider extends ServiceProvider {
public function register() {
    $this->app->singleton(ResponseFactory::class, function() {
        $view = $this->app->make('view');
        $redirect = $this->app->make('redirect');
        return new CamelCaseJsonResponseFactory($view, $redirect);
    });
}

}`


[WIP] programmatic commits, take 2

Codecov Report

Merging #234 into master will increase coverage by 18.2%.
The diff coverage is 98.94%.

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
+ Coverage   12.32%   30.53%   +18.2%
==========================================
  Files           4        6       +2
  Lines         357      452      +95
==========================================
+ Hits           44      138      +94
- Misses        313      314       +1

Impacted Files
Coverage Δ

R/helpers.R
100% <100%> (ø)

R/prog_com.R
98.41% <98.41%> (ø)

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 fa23436...8cb3635. Read the comment docs.


Understanding machine learning algorithms and how to Implement them

Formatting and structure checks

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

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

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

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

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

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

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

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

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

Grammar & plagiarism checks

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

Technical checks

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

Topic suggestion this closes
This closes #5363

@section-engineering-education/content-moderator-team this author has expressed interest in potentially joing the peer reviewer team.
This pull request will be vetted for quality to guage if a test review is in order. 🚀

@hectorkambow

@carteblanchemunene #tag with complete message kindly.

plagiarism check done

@section-engineering-education/content-moderator-team
Can we please review & analyze this Pull request? To see if the author can move on to a "test review".
cc @Kayere @LinusMuema @ahmadmardeni1

Hello @louisefindlay23 I have updated the requested changes please check.
Thank you.
cc @jumamiller

@carteblanchemunene, great article. Very informative and easy to read.
One area I would advise you to improve on is your images. It would be good if you could rename them to be more descriptive (detailing what the image represents), instead of just image1, image2 and so forth.
This helps both image SEO (to help rank your article in search engines) and will help readers using screen reader technology if you update the alt text also.

great feedback 🚀

hello @louisefindlay23 am done with the requested changes please continue with the final review.


No balance_Data.py?

Currently, to use the latest version of this AI, you will need to run first "create_training_data.py," then balance this data with "balance_Data.py."

From what I understand, the finished product is what's in the root of the git folder.
I don't see a balance_Data.py file.
Am I supposed to use the one in the Part14-15 folder or is it already included in the train_model.py folder?

No need to balance the data after the last update

Why it is not neccesary any more?

@giordand Did you found out, why no ballance data needed, for me only ballanced data works, i use alexnet2

if you are using 0.03V than you can use "weighting_class_distributor.py" script to make the weight match you validation data, there bu no need for balancing before,
https://youtu.be/MGwEOxY2ygU his video of charles 2.0 explain


Release build of project crashes when the shader cache isn't manually deleted beforehand

Godot version
v4.0.stable.official [92bee43ad]
System information
Windows 10, AMD Ryzen 7 2700X, NVIDIA GeForce GTX 1050 Ti, Vulkan
Issue description
An incredibly specific crash that only happens on a release build of a project. Neither the crash nor any errors are reported when taking the same actions while running the project from the editor nor when exporting the project using a DEBUG build.
When running the project the first time, before the shader_cache folder has been populated in the AppData path, the crash does not seem to occur. Upon closing and running the executable again and taking the steps to reproduce, the crash will occur on my own and another computer, both running AMD processors but different GPUs. Deleting the shader_cache contents and running again will prevent a crash from occurring.
Turning on verbose logging sees both logs truncated at the line mentioning 'SdfgiIntegrateShaderRD', though on my machine it appears to cut the line halfway through printing its memory address (I assume?) while the second machine logs the entire address but nothing beyond. An example of a crashed log file and a normally exited log file are attached.
godot (Crashed log).log
godot (Normal exit log).log
For the moment this issue seems to be able to be worked around by setting rendering/shader_compiler/shader_cache/enabled to false in the advanced Project Settings.
Steps to reproduce
Because of the very specific nature of this crash the Minimal Reproduction Project may not be enough to recreate the crash. I can provide further files necessary, but figured a packaged executable version would be frowned upon.
Export the project to a Windows 10 build without DEBUG enabled. Run the project once to create the AppData files and populate the shader_cache folder therein.

The mostly reliable way to reproduce the crash from there for me is to replace the generated save_file_4.tres in the app_userdata folder with the save_file_4.tres provided in the ZIP file instead.
Finally, launch the application again, optionally with verbose logging enabled, click the "Display all Tasks" checkbox in the upper right corner, and then uncheck the "Example List" checkbox in the upper left. The program ought to hang for a moment and then crash.
Minimal reproduction project
Taskeeper Project.zip

Can you still reproduce this in 4.0.3 and 4.1-beta3 or later?

Closing due to lack of response. We can re-open if OP or someone else confirms that this is still an issue


Revert "feat: extract type by node + add schema fuzz test (#2138)"

This reverts commit 427502557ebaf4733f3a4d0cafcc54920949694b.

😢


[STYLE]: Remove Clicking Actions and Better Use Hovering Movable Effects in Hamburger Menu[Left]

What's the style idea?
GSSOC'23
Issue Description:

When Click on Hamburger menu On Left Side Of Header Bar, It's shows Respective Menu Details.
If you want to Close this Menu Sections List Again Using Clickable Cross Mark Icon.
So, If you want to Opens and Closes this Hamburger Menu Using Only Clickable Actions.

Suggest Style:

Instead of Using Clickable Actions on Menu Bar Sections List Using Cross Mark. Allow Hovering Movable Effects.

Example:

When Put Mouse on Hamburger Menu, It automatically Opens Whole Menu Sections List.
And again want to Close this Menu Sections List. Just Move Mouse Away on The Other Free Area in Website.

Add screenshots
Screenshot of My suggested Style

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I am interested to work on this issue please assign me this under GSSOC'23 @JasonDsouza212

@NarendraKoya999 , Do you want to work on this?

No @JasonDsouza212 . I do not work on this Issue. Please assign this Issue Others.

I am interested to work on this issue please assign me this under GSSOC'23 @JasonDsouza212

@NANDHINI45 you can start working on this

Sure sir

Hi @JasonDsouza212 . This Issue Raised 3 weeks Ago. No Update about PR. If any Problem to Assigned Person, I will take up this Issue

Hi @NarendraKoya999  I changed the mousedown event into mouseover event  in Navbar.jsx, but it doesn't work so I am still in searching the event . When iam placing the mouse on that hamburger menu it hover but it does'nt show the menu item ,that's the problem. what event could  I use to  resolve this issue?


Update CodeQl v2

Hi @BALAGA-GAYATRI, Could you review this pull request? I don't know if I did it rightly

to start with you  checked in node_modules , surprised its not gitignored

Close this PR since it's not valid. Feel free to open a new one based on the current release version.


Format Query removes the commented queries

Describe the bug
Format Query removes the commented queries
To Reproduce
Steps to reproduce the behavior:

Write a query
Comment it
Write another query
Press Format Query

Expected behavior
Format Query should not remove commented queries
Environment:
Surrealist: Version 2.0.2 (20240424.110210)

This is an unfortunate limitation of how the formatter works, as we parse the queries into surrealdb and use the built-in formatter as result.
I have changed the formatter so when a selection is active, only the highlighted text will be processed. This means you can format individual queries without losing all your comments


iOS,macOS: Add list of expected-unsigned binaries

This updates the codesigning test to account for iOS and macOS binaries in the artifact cache that are expected to not be codesigned.
In https://github.com/flutter/engine/pull/54414 we started bundling dSYM (debugging symbols) within Flutter.xcframework, a requirement for App Store verification using Xcode 16.
We did the same for macOS in https://github.com/flutter/engine/pull/54696.
Unlike the framework dylib, dSYM contents are not directly codesigned (though the xcframework containing them is).
Issue: https://github.com/flutter/flutter/issues/154571
Pre-launch Checklist

[X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[X] I read the Tree Hygiene wiki page, which explains my responsibilities.
[X] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[X] I signed the CLA.
[X] I listed at least one issue that this PR fixes in the description above.
[X] I updated/added relevant documentation (doc comments with ///).
[X] I added new tests to check the change I am making, or this PR is test-exempt.
[X] I followed the breaking change policy and added Data Driven Fixes where supported.
[X] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

As a followup to this, I think we should add an equivalent file on the engine side, so instead of entitlements.txt and without_entitlements.txt we would also have unsigned.txt.

Yep see my comment here: https://github.com/flutter/flutter/pull/154591#issuecomment-2327595031
For that approach, we still need this patch.

For that approach, we still need this patch.

Ah sorry, missed that comment.


put container images on Dockerhub instead of container registry

Soon free tier users will have a 500MB limitation for the container registry storage and that's not enough for this journey. Since private registry is not the focus for this journey, we will let users upload their images on DockerHub.

@Tomcli can we also create a namespace on docker hub - ibmcode-journeys - and then include prebuilt images there if folks want to use that


[Feature] Init application from existing helm charts

Consider this workflow:
$ vela app init --chart https://github.com/bitnami/charts/tree/master/bitnami/wordpress
... prompt to fill in value

$ vela app ls
NAME
wordpress

WORKLOAD
deployment    # because deployment.yaml

TRAITS
expose        # because svc.yaml
metrics       # because servicemonitoring.yaml
volume        # because pvc.yaml
gateway       # because  ingress.yaml

SECRETS
secrets       # gen from secrets.yaml
tls-secrets   # gen from tls-secrets.yaml

So the key point is velaneeds to do reasoning what traits the app needed and let user fill in allowed parameters in the prompt.

I think it's duplicate with #864, let's discuss more there.


Question about the DDIM pipeline

Thanks for your excellent work about the membership inference for diffusion models using the intermediate  results.
I wonder if there is an implementation for DDIMPipeline or this is just a choice since the DDIMPipeline could not output the intermediate results?


Fix Update Assignment

Update assignment doesn't update it creates a new assignment

I was only able to reproduce when the assignment was archive then modified

It happens every time but react will only render one object if two objects share the same key

Oh okay


List of resources

I went through the materials present in the Reproducible-Science-Curriculum repo and here is my impression:
Example:

Repo-name

main topic 1
main topic 2

workshop-planning (general guidelines for content)

Introduction / motivation
Directory and file organization
Literate programming
Version control
Automoation
Publication

rr-intro

motivation
Why R

organization-1

naming files
file-organization

rr-literate-programming

documenting data modification
Rstudio and Rmarkdown

rr-version-control

version control with git and github
git and github particulars / tutorial
Rstudio and git integration

rr-automation

Intro and motivation
functions
functions for data
functions for figures
testing

publishing

type of access
type of license

Spot on!


libvirt: add enableGlusterfs option

Motivation for this change
Necessary for native access to glusterfs volumes.
https://libvirt.org/storage.html#StorageBackendGluster
Things done

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

[X] 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 nixpkgs-review --run "nixpkgs-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)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

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


Scollector: Add support to configure polling interval at the collector level.

It's good to have support in some way to override the default/global frequency interval at the individual collector level. We have seen the cases, where we don't want to collect the metrics from all collectors at the same frequency interval.

Adding some notes from http://bosun.slack.com
We likely won't implement this feature anytime soon, but would be happy to discuss implementation strategy and review a pull request (here or in slack room)

@kylebrandt It seems, you did changes for this enhancement. Is this feature supported now?

I don't think https://github.com/bosun-monitor/bosun/pull/1736 was ever merged into master as it was still pending documentation

Any plan, by when this would be merged?

https://github.com/bosun-monitor/bosun/pull/1736#issuecomment-223645558 is still true if you want to test it out and see if actually works, I just wrote the code that I thought would do it, but haven't had time to test.

Thanks @kylebrandt, I will test it. Will FreqOverride be defined as Array of tables with CollectorName as key and Freq as Value in the configuration file?


updated CSS for landing page

I will need to readjust sizing & position to make sure it looks good on small screens, but the basic layout is done


[Question] How should tunnel-server be deployed

What happened:
tunnel-server is deployed as deployment and scheduled to the node which is not the same as apiServer.
What you expected to happen:
as far as I know, it should change iptables, to redirect apiServer traffic to self when targeting edge kublet.
if they are not on the same node, how to do this.
How to reproduce it (as minimally and precisely as possible):
check the template:
https://github.com/openyurtio/openyurt/blob/47a88eab0a1450c90901e8c42c3ec88099602aea/pkg/yurtctl/constants/yurt-tunnel-server-tmpl.go#L191
others
/kind question

@adamzhoul Welcome you to apply OpenYurt community member. you can add me as sponsor and apply example is here: https://github.com/openyurtio/community/issues/23

What happened:
tunnel-server is deployed as deployment and scheduled to the node which is not the same as apiServer.
What you expected to happen:
as far as I know, it should change iptables, to redirect apiServer traffic to self when targeting edge kublet.
if they are not on the same node, how to do this.
How to reproduce it (as minimally and precisely as possible):
check the template:
https://github.com/openyurtio/openyurt/blob/47a88eab0a1450c90901e8c42c3ec88099602aea/pkg/yurtctl/constants/yurt-tunnel-server-tmpl.go#L191
others
/kind question

@adamzhoul Yurt-tunnel-server support dns mode to forward traffic from kube-apiserver to edge kubelet.
@DrmagicE Would you can give more detail configuration of yurt-tunnel-server to support dns mode.

simplify my problem is :
if Yurt-tunnel-server is not deployed on the same node as the apiServer
Whatever iptables operation it does,  can't affect apiServer outbound traffic.
isn't that?

simplify my problem is :
if Yurt-tunnel-server is not deployed on the same node as the apiServer
Whatever iptables operation it does, can't affect apiServer outbound traffic.
isn't that?

@adamzhoul Thanks for your feedback.

Iptables mode is not suitable for this scenario.
we need to configure kube-apiserver(----kubelet-preferred-address-types) to use nodeName:Port to access edge nodes, so dns resolution will be triggered.
and yurt-tunnel-server support dns mode for resolve nodeName to the address of yurt-tunnel-server. so the kube-apiserver outbound traffic will be forwarded to yurt-tunnel-server.

hi @rambohe-ch
search k8s code found. here:

I assume you mean type:  Hostname
and, try to figure out the workflow.
apiServer part

configure kube-apiserver  --kubelet-preferred-address-types=Hostname

apiServer try to call kubelet, find kublete node ip by func : GetPreferredNodeAddress

get the name from node.status.address type=Hostname , get node hostname

DNS  resolve hostname to IP ( IP finally resolved to yurt-tunnel-server-part  svc IP)

yurt-tunnel-server part

run coreDNSRecordController, start nodeInformer
handle event addNode(obj interface{})
update node self svc ip map into configmap yurt-tunnel-nodes

Questions
so , I still have two questions:

How does the configmap effect coreDNS?
I see iptables dir in yurt-tunnel-server, what is it for?

hi @rambohe-ch
search k8s code found. here:

I assume you mean type: Hostname
and, try to figure out the workflow.
apiServer part

configure kube-apiserver  --kubelet-preferred-address-types=Hostname
apiServer try to call kubelet, find kublete node ip by func : GetPreferredNodeAddress

get the name from node.status.address type=Hostname , get node hostname
DNS  resolve hostname to IP ( IP finally resolved to yurt-tunnel-server-part  svc IP)

yurt-tunnel-server part

run coreDNSRecordController, start nodeInformer
handle event addNode(obj interface{})
update node self svc ip map into configmap yurt-tunnel-nodes

Questions
so , I still have two questions:

How does the configmap effect coreDNS?

--> I'm sorry we do not have tutorial at present, about coredns setting you can reference this pull request: https://github.com/openyurtio/openyurt/pull/270
By the way, i have raised an issue that look for help for a tutorial about yurt-tunnel-server dns mode: https://github.com/openyurtio/openyurt/issues/417, if you have interested in it, you can take over this issue.

I see iptables dir in yurt-tunnel-server, what is it for?

--> Both iptables mode and dns mode of yurt-tunnel-server can be supported at the same time.

@rambohe-ch  thanks for answering.
I can try to help with the DNS mod doc once figure out each part of the DNS mode.

@rambohe-ch thanks for answering.
I can try to help with the DNS mod doc once figure out each part of the DNS mode.

@adamzhoul Welcome you to apply OpenYurt community member,  here is an example: https://github.com/openyurtio/community/issues/23

@adamzhoul Hi, here is my experience on setting yurt-tunnel DNS mode, it may not be the best practice, but it works for me.

Use nodepool to separate cloud node and edge node. (This is for service topology)
Deploy Yurthub manually on the cloud-side and also configure the kubelet to connect to Yurthub.
Use daemonset  to deploy coredns.
Edit kube-proxy configmap, and re-deploy kube-proxy

# kubectl edit cm kube-proxy -n kube-system
apiVersion: v1
data:
  config.conf: |-
    apiVersion: kubeproxy.config.k8s.io/v1alpha1
    bindAddress: <IP_ADDRESS>
    featureGates: # ①
      EndpointSliceProxying: true
    clientConnection:
      acceptContentTypes: ""
      burst: 0
      contentType: ""
      # ② kubeconfig: /var/lib/kube-proxy/kubeconfig.conf
      qps: 0
      ...
# delete pods -l k8s-app=kube-proxy -n kube-system

①：Add EndpointSliceProxying featurGates.
②:  Remove kubeconfig so that the kube-proxy can use yurthub to forward traffic.
5. Edit coredns daemonset YAML: https://github.com/openyurtio/openyurt/pull/270
6. Add topology annotation to kube-dns service:
apiVersion: v1
kind: Service
metadata:
  annotations:
    openyurt.io/topologyKeys: openyurt.io/nodepool

Edit kube-apiserver manifest:

#  vi /etc/kubernetes/manifests/kube-apiserver.yaml
   - --kubelet-client-certificate=/etc/kubernetes/pki/apiserver-kubelet-client.crt
    - --kubelet-client-key=/etc/kubernetes/pki/apiserver-kubelet-client.key
    - --kubelet-preferred-address-types=Hostname,InternalIP,ExternalIP  # ①
    - --proxy-client-cert-file=/etc/kubernetes/pki/front-proxy-client.crt
    - --proxy-client-key-file=/etc/kubernetes/pki/front-proxy-client.key
...
dnsPolicy: ClusterFirstWithHostNet # ②

① Put "Hostname" in the first place.
② Configure dnsPolicy to ClusterFirstWithHostNet，which make apiserver to make use of coredns.
Hope it helps.

thanks  @DrmagicE it helps a lot.

The dns controller will generate a ConfigMap named yurt-tunnel-nodes in the kube-system namespace.
You need to manually config CoreDNS to use it according to the steps like the following:

check the pr. so we do have to manually config to volume config to coreDNS.
and, the final target is to make all this automatic, no manual config, right?

@rambohe-ch thanks for answering.
I can try to help with the DNS mod doc once figure out each part of the DNS mode.

@adamzhoul Welcome you to apply OpenYurt community member, here is an example: openyurtio/community#23

thanks. working on it.


[RFE] menu plugins for external site

The instruction in R1 doesn't work for current version of ManageIQ anymore.
I am hoping "External" plugin support can be part of ManagIQ default feature.
This will provide users a quick way to link existing internal websites and make ManageIQ as one central portal site.
R1: http://www.tigeriq.co/menu-plugins-for-external-sites-on-cfme-4-1/

@miq-bot assign @martinpovolny

Hi All, Thanks for working on this request.

Hi @martinpovolny, Did you get a chance to look at this RFE issue ?

Sorry I have not :-(
However the mechanism should work and on CFME appliances this mechanism is used to integrate Insights -- it is even visible on your screenshow.
I think your problem might be the file vmdb/config/permission.yml. It was added to limit the top level sections available on the appliance and if you are adding a top level section, you need to add to that file too.
I am currently working on a more complex and capable plugin mechanism here: https://github.com/martinpovolny/miq_plugin_example if you want to take a look.

Thanks @martinpovolny.  I will certainly check out miq_plugin_example.

This should hopefully satisfy the requirement: https://github.com/ManageIQ/manageiq-ui-classic/pull/5617


Minor Kerriganless rebalance

On all of the below maps, the following changes were made:

"Kerriganless Bonus" unit group is hidden by default so that the units don't briefly appear on map load.
On Kerriganless, Kerrigan gets an extra behavior that suppresses her ability to attack, as security against cases where she inadvertently becomes unpaused. The Kerriganless Bonus unit group also becomes unhidden.

Planetfall:

Added 1 Brood Queen to the Kerriganless Bonus unit group.

Domination:

Added 1 Roach to the Kerriganless Bonus unit group.

Rendezvous:

Added 1 Spine Crawler to the Kerriganless Bonus unit group.

Harvest of Screams:

Added 1 Spine Crawler to the Kerriganless Bonus unit group (initially owned by Player 2 in the rescuable base).

Planetfall:  Maybe add a second Brood Queen? Brood Queens don't have Ensnare by default (not that it would be particular helpful against Terran), and Spawn Broodling on a single Marauder or Hellbat isn't very impressive.  If they started with full energy, the player might have something to do at the start of the map (replacing the expected Primal Kerrigan rampage that would occur in vanilla).
Domination: Good, the roach makes it pretty straightforward to get the expansion, helps the pace.
Rendezvous: Good, feels much closer to vanilla now on Kerriganless rather than a frantic rush to get defenses up.  Handles the first two waves but not the third, which is a balanced buffer time.  I wonder if we should consider matching this sort of difficulty in Kerrigan Present by requiring Basic Kerrigan?  Not necessary for this PR, though.
Harvest of Screams: The ice effect isn't applied to the new Spine Crawler:

Apart from that, the new Spine Crawler itself is good. Kerriganless can now defend the first post-freeze attack wave without rushing military/cheesing (but takes losses for the greed), so this solves a problem.

Fixed the bug on the Spine Crawler on Harvest, and the Brood Queen on Planetfall should now start with full energy. Thanks again for testing!

Fixed the bug on the Spine Crawler on Harvest, and the Brood Queen on Planetfall should now start with full energy. Thanks again for testing!

Excellent!  Should be good to go, then.


Rewrite terminal core in Go

WFM!
Letting Ruby handle Emoji for now. This imparts an approximately 2x performance penalty on large sets .. but it's still miles ahead of the Ruby impl. Original acceptance tests have been ported from Ruby to Go, and I've added a couple of additional ones for correctness of multibyte handling.
Benches:
     npm.sh.raw ruby        0.8 (±0.0%) i/s -          4 in   5.183151s # original ruby
          npm.sh.raw        4.5 (±0.0%) i/s -         23 in   5.071450s # go via gem
    npm.sh.raw gocmd        9.0 (±0.0%) i/s -         46 in   5.092831s # go command run directly (no emoji)
     npm.sh.raw http       10.3 (±9.7%) i/s -         52 in   5.072454s # go via http (no emoji)

Ok, so Terminal 2.0.0 has been released, which no longer does the encoding or emoji munging. We're good to switch to using this super-powered Golang version. Now… do we just use this repo or start a fresh one for the golang version?

Can you tell me why you dropped the encoding stuff and/or how you dropped it? Worried that I'll need to change my impl.

I've just put the onus onto the invoker to ensure they're passing in UTF-8. If you have your locale set incorrectly, then it'll bork. I don't think you need to do anything on the go side.

For context, if you pass in a wrongly-encoded UTF-8 string to the Ruby gem it throws an error in the regex gear. Not something you need to do I presume.

New PR: https://github.com/buildkite/terminal/pull/14


Tidy up the clash between gdal3.7 and libxml updates

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender


Route aggregator for connecting to ApiBlueprint

This aggregator will typically work with methods from https://github.com/nmeri17/Tilwa/blob/master/nmeri/tilwa/src/Routing/RouteManager.php. Current consumers (ModuleInitializer) use RouteManager to compute patterns that best match incoming path. That's different from this case in the sense that no comparison is being made. We just want to follow and list all possible from a collection to any additional collections attached to it along with any behaviour bound to it (middleware, authentication, authorization, controller, action method, validator, doc blocks).
The design of route collections in itself is a ready-made map for exploring the route tree; which would make this endeavour unnecessary for the mere purpose of route listing. The bigger picture is gathering these details into a format that can be transferred to https://apiblueprint.org/. I'm proposing ApiBlueprint since it's said to be compatible with OpenApi in addition to having more functionality.
If you're interested in working on this, please let me know if you need anything

Another purpose this will serve when it exists is to move the Services\DecoratorHandlers\SecuresPostRequestHandlerDecorator to a dependency sanitizer. It can then easily determine request method (from attached routing map), and complain in the absence of recommended services

Whenever this is ready, look into helpers such as this https://boringrails.com/tips/rails-link-to-unless-current


Make mechanism behaviors properly update, fix eating and drinking

Also adds a hungry command.

So, again we've gone back to implementing ECS in body parts? Pretty based

No, otherwise I would have had to reimplement the prototype system, component system, sprite component, grammar component, icon component and damageable component for body parts.

It was a joke.

It was a joke.

Just like body system


[WIP] Est portfolio APY

Branched from/Depends on https://github.com/beefyfinance/beefy-v2/pull/809

Adds estimated APY for whole portfolio
Removes inactive/paused vaults from displayed yield
Compounds only vaultApr part of yield (previously totalApy was compounded)
Month is 30 days compounded (previously 30 days not compounded)

Link T-566

Closed for https://github.com/beefyfinance/beefy-v2/pull/835


nit: please remove dot imports #1119

This pull request was created to remove all dot imports found in cmd and internal files.

Codecov Report

Merging #1312 into master will decrease coverage by 5.55%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1312      +/-   ##
==========================================
- Coverage   52.14%   46.58%   -5.56%
==========================================
  Files         134      131       -3
  Lines       13043    13026      -17
==========================================
- Hits         6801     6068     -733
- Misses       5410     6182     +772
+ Partials      832      776      -56

Impacted Files
Coverage Δ

internal/backend/b2/b2.go
0% <0%> (-79.93%)
:arrow_down:

internal/backend/azure/azure.go
0% <0%> (-75.35%)
:arrow_down:

internal/backend/swift/swift.go
0% <0%> (-73.9%)
:arrow_down:

internal/backend/gs/gs.go
0% <0%> (-65.6%)
:arrow_down:

internal/backend/swift/config.go
34.37% <0%> (-56.25%)
:arrow_down:

internal/restic/node_darwin.go

cmd/restic/background.go

internal/restic/progress_unix_with_siginfo.go

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 3afd974...3473c3f. Read the comment docs.

I don't get why the difference with Codecov. I've actually haven't added or removed code.

And it looks like Travis failed because of timeouts.

+1 to removing dot imports. The uses here don't meet the circular dependency bar: https://github.com/golang/go/wiki/CodeReviewComments#import-dot
The code coverage complaint is normal. Travis skips integration tests that use keys to cloud storage providers in pull requests, which confuses CodeCov.

@hgfischer The backend tests cannot be run because for security reasons Travis doesn't expose the needed credentials, don't worry about that.


Camera needs to be flipped: new design for supporting it must be done

The plan post Churchill visit is to go ahead and redesign around the camera being in the more conventional position i.e. dome down.  This means re-engineering/shopping associated with the tripod and associated assemblies/parts, hopefully retaining as much design from how things were but being ready for a lot of changes.  This is a high priority and there's also need (perhaps this should be captured in another issue) to test the aiming when the camera is in this position but also angled up 10, 15, maybe 25 degrees as will be necessary to look up the hillside.

An option for a tripod style that would allow the camera to be mounted upside down without the view being obstructed by the legs: https://www.kentfaith.com/KF09.086_k-f-sa254t1-lightweight-compact-tripod-for-canon-nikon-camera-professional-dslr-photography-93inch-aluminium?srsltid=AfmBOooa4HecxVwPOih8EYBoqIR319HUgl13O4dxHDOVg1JykfL-SGKHyiM&gQT=1
At first glace, it seems like we could keep a similar (if not the same) mounting structure as well.

Update: The CAD design was completed on 12/18/2024 and is ready for 3D printing. However, as of 12/24/2024, the 3D printer keeps crashing during the printing process.


TCP handler should be able to reconnect on ._send fails

My suggestion is to catch any OSError and close current connection and open new one and do it in while True statement with some asyncio.sleep delays

Fixed by #8


SSH issues between Chef and Kitchen

Filing this over here because I think it was a Chef change that busted things.
The error looks like:
IOError: closed stream
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/buffered_io.rb:102:in `send'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/buffered_io.rb:102:in `send_pending'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:271:in `block in ev_do_handle_events'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:270:in `each'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:270:in `ev_do_handle_events'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/event_loop.rb:110:in `ev_select_and_postprocess'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/event_loop.rb:29:in `process'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:216:in `process'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:178:in `block in loop'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:178:in `loop'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-ssh-4.0.1/lib/net/ssh/connection/session.rb:178:in `loop'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-sftp-2.1.2/lib/net/sftp/session.rb:802:in `loop'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-sftp-2.1.2/lib/net/sftp/session.rb:730:in `close_channel'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/kitchen-sync-2.1.1/lib/kitchen/transport/sftp.rb:54:in `close'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/test-kitchen-2ce46e6e369e/lib/kitchen/transport/ssh.rb:98:in `cleanup!'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/test-kitchen-2ce46e6e369e/lib/kitchen/instance.rb:285:in `cleanup!'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/test-kitchen-2ce46e6e369e/lib/kitchen/command.rb:205:in `run_action_in_thread'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/test-kitchen-2ce46e6e369e/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
  /Users/coderanger/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'

Specifically the trigger seems to require testing multiple instances (it crashes when trying to connect to the second instance) via kitchen test, and requires either a lot of output or time so a no-op test case won't trigger it. Still trying to nail down specifics on the trigger but I do have a lot of repro cases. Only happening with Chef master currently, but I haven't tested the 12.18 pre-release, also happens with both release and master of kitchen.

This might be a result of the recent upgrade of net-ssh, which happened on both chef and test-kitchen.

Yeah, seems likely. Do you know if that change was in 12.18's release candidate?

@coderanger let me get back to you on that. I think we miscommunicated the version of chef we intend to release as 12.18.

Okay. So, a couple of things to clarify.

I said net-ssh was upgraded on master, I was incorrect. The PR to update net-ssh to 4.0.1 is #5735 (which has yet to be merged). The major version difference between chef and test-kitchen could be the source of your issue.
As the net-ssh stuff has yet to be merged, it will not be in our pre-release version. That being said, we miscommunicated our pre-release version in the announcement yesterday (which we are now correcting).

@tduffield Which version should I test for the pre-release?

@coderanger 12.18.31

Okay, no repro on 12.18.31 so not a blocker for the release, but still something WTF-y is happening :)
Going to try and narrow down when it happened.

this looks like a t-k / net-ssh 4.0.x bug, i don't think its a chef/chef issue.  kind of smells like it might be a net-ssh 4.x bug...

Yep, the specific commit that triggers the bug is https://github.com/chef/chef/commit/31b5aabd2c2ff37b0eba63033971087f1c6db000 so almost certainly a net-ssh major version compat issue.

what happens if you install the gems in the bundle to support ed25519 keys?
see comment here:
https://github.com/test-kitchen/test-kitchen/issues/1075#issuecomment-259272666
the problem may be that we bumped net-ssh to 4.x in t-k but didn't include:
  s.add_dependency "rbnacl-libsodium", "~> 1.0.0"
  s.add_dependency "rbnacl", "~> 4.0.0"
  s.add_dependency "bcrypt_pbkdf", "~> 1.0.0"

@lamont-granquist I'm running it all under bundler so it would get those gems from Chef regardless. I think the issue is that previously the chef gem was forcing net-ssh to 3.x so we didn't notice the 4.x compat issues. The fact that it only happens on the second connection makes me think its a global state issue somewhere.

fds are global state.    mismanagement of fds in net-ssh/net-sftp?

Going to move this over to the TK repo since I don't think Chef did anything wrong, just happened to be a chef commit that exposed the problem.


pyplot not working in ipython

I'm using NixOS 19.09, and I'm unable to use pyplot from within ipython. It works in a normal Python interpreter.
λ python3.7
Python 3.7.5 (default, Oct 14 2019, 23:08:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> quit()
λ

λ ipython3
Python 3.7.5 (default, Oct 14 2019, 23:08:55)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.6.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import matplotlib.pyplot as plt

In [2]: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

zsh: abort (core dumped)  ipython3
λ

How did you bring python and ipython in your environment?

Strangely enough, I'm getting the exact same problem in standard CPython interpreter, so it's probably not an issue in ipython.

How did you bring python and ipython in your environment?

let
    python' = python3.override {
      packageOverrides = self: super: {
        matplotlib = super.matplotlib.override { enableQt = true; };
      };
    };
in python'.withPackages (p: [ p.matplotlib ]);

Here I'm on nixos 20.03 (ceb90b08ef8430ab472e97746642961d3aad30be).

I'm linking the issue related to this: #25351 https://github.com/NixOS/nixpkgs/pull/53816.
I guess something recently changed because the Qt backend used to work: I'll try bisecting.

Just a small heads-up, us the matplotlib TK backend in the meantime, it is sleek and works.

I think matplotlib should propagate the wrap Qt hook when Qt is included in matplotlib. In Python's buildEnv we should then include qtWrapperArgs[@].

@FRidh: I like the idea. To be sure, do you mean the python.withPackages defined here? I could try to implement it: it doesn't seem to difficult.

It's still an open problem.

Is there a recommended workaround for QT support in matplotlib?

I had a working proposal that could have made it into 20.09, but it has been scrapped in favour of more complex solution (https://github.com/NixOS/nixpkgs/pull/102949), which seems stalled :(.
If you really need this to work, try creating a shell.nix in which you define the variables set by makeWrapper. We are lucky matplotlib backend doesn't require any qml/qt plugin except the base, so this should be enough:
let
  pkgs = import <nixpkgs> { };

  matplotlib = pkgs.python3Packages.matplotlib.override { enableQt = true; };

in
  pkgs.mkShell {
    buildInputs = [ matplotlib ];

    QT_PLUGIN_PATH = with pkgs.qt5; "${qtbase}/${qtbase.qtPluginPrefix}";

    shellHook = "python -i";
  }

Still an issue

See also https://github.com/NixOS/nixpkgs/pull/236770


Trying to access files directory with trailing_slash=false causes infinite redirect

This is a weird one, however, it brought down apache every time a security scan was run on my site.
Conditions to reproduce:

Pretty URLs must be enabled.
trailing_slash needs to be set to false. (this should be the default)
You need to have at least one file in the file manager so that you have some numeric directories inside /application/files/

Steps to reproduce:

With the previous conditions set, try to access one of the numerical directories inside /application/files/. It needs to be a directory that actually exists inside the files/ directory. For instance, http://mysite.local/application/files/12345

You will get an error from the browser that you were redirected too many times. When a scanner is running this on hundreds of directories it's a serious issue that will eventually bring down the site.
Temporary fix:
Enable trailing slashes. Since "trailing slash settings dont work" is still a valid bug, you will have to update the settings in two places.
In /application/config/concrete.php
return [
    'seo' => [
        'trailing_slash' => true,
    ],
];

in /application/config/site.php
return [
    'sites' => [
        'default' => [
            'seo' => [
                'trailing_slash' => true
            ]
        ]
    ]
];

After doing this you will get a 404 page trying to access the same files URL, rather than an infinite redirect.

+1

#6903 should fix this issue

Thank you @mlocati!! Glad to see it was a relatively easy fix.


Unable to update inverted index in schema -  Vector index config is missing from the class schema

I am attempting to update the stopwords in the inverted index of a collection.
I am using config update method and am receiving the following error.
Using     "weaviate-client": "^3.1.3" and image 1.25.7
Error:
Error: Vector index config is missing from the class schema.
    at Function.vectors (/node_modules/weaviate-client/dist/node/cjs/collections/config/classes.js:65:38)
    at Function.schema (node_modules/weaviate-client/dist/node/cjs/collections/config/classes.js:38:50)
    at node_modules/weaviate-client/dist/node/cjs/collections/config/index.js:106:51
    at Generator.next (<anonymous>)
    at fulfilled (node_modules/weaviate-client/dist/node/cjs/collections/config/index.js:15:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Code:
  const client = await connectToWeaviateClient()
  const collection = client.collections.get<Location>(CustomClassName.LOCATION)

  const updateBody: CollectionConfigUpdate = {
    description: CityLocationClass.description,
    invertedIndex: {
      stopwords: {
        preset: 'en',
        removals: ['as', 'at', 'be', 'by', 'in', 'is', 'it', 'no', 'to'],
      },
    },
    replication: CityLocationClass.replication,
    vectorizers: CityLocationClass.vectorizers,
  }
  await collection.config.update(updateBody)

This line is throwing the error. Essentially current.vectorConfig is undefined.
 current.vectorConfig = MergeWithExisting.vectors(current.vectorConfig, [updateVectorizers]);

 static vectors(current, update) {
    if (current === undefined) throw Error('Vector index config is missing from the class schema.');
    if (update === undefined) return current;

Value of current variable while debugging code. There is no vectorConfig defined in the object.
{
  class: "Location",
  description: "A class holding location information for matching unstructured location data",
  invertedIndexConfig: {
    bm25: {
      b: 0.75,
      k1: 1.2,
    },
    cleanupIntervalSeconds: 60,
    stopwords: {
      additions: null,
      preset: "en",
      removals: [
        "as",
        "at",
        "be",
        "by",
        "in",
        "is",
        "it",
        "no",
        "to",
      ],
    },
  },
  moduleConfig: {
    "text2vec-openai": {
      baseURL: "https://api.openai.com",
      dimensions: 1536,
      model: "text-embedding-3-small",
      tokenization: "word",
      type: "text",
      vectorizeClassName: false,
    },
  },
  multiTenancyConfig: {
    autoTenantActivation: false,
    autoTenantCreation: false,
    enabled: false,
  },
  properties: [
    {
      dataType: [
        "text",
      ],
      description: "The account id",
      indexFilterable: true,
      indexSearchable: true,
      moduleConfig: {
        "text2vec-openai": {
          skip: true,
          vectorizePropertyName: false,
        },
      },
      name: "world_city_id",
      tokenization: "word",
    },
    {
      dataType: [
        "text",
      ],
      description: "The city of the location",
      indexFilterable: true,
      indexSearchable: true,
      moduleConfig: {
        "text2vec-openai": {
          skip: false,
          vectorizePropertyName: false,
        },
      },
      name: "city",
      tokenization: "word",
    },
    {
      dataType: [
        "text",
      ],
      description: "The country of the location",
      indexFilterable: true,
      indexSearchable: true,
      moduleConfig: {
        "text2vec-openai": {
          skip: false,
          vectorizePropertyName: false,
        },
      },
      name: "country",
      tokenization: "word",
    },
    {
      dataType: [
        "text",
      ],
      description: "The name of the highest level administration region of the city town (e.g. a US state or Canadian province). Based on the GENC profile of the ISO 3166-2 standard. Possibly blank.",
      indexFilterable: true,
      indexSearchable: true,
      moduleConfig: {
        "text2vec-openai": {
          skip: false,
          vectorizePropertyName: false,
        },
      },
      name: "admin_name",
      tokenization: "word",
    },
    {
      dataType: [
        "text",
      ],
      description: "The ISO 2 country code of the location",
      indexFilterable: true,
      indexSearchable: true,
      moduleConfig: {
        "text2vec-openai": {
          skip: true,
          vectorizePropertyName: false,
        },
      },
      name: "iso2_country_code",
      tokenization: "word",
    },
    {
      dataType: [
        "text",
      ],
      description: "The ISO 3 country code of the location",
      indexFilterable: true,
      indexSearchable: true,
      moduleConfig: {
        "text2vec-openai": {
          skip: true,
          vectorizePropertyName: false,
        },
      },
      name: "iso3_country_code",
      tokenization: "word",
    },
    {
      dataType: [
        "number",
      ],
      description: "Population of the location",
      indexFilterable: true,
      indexSearchable: false,
      moduleConfig: {
        "text2vec-openai": {
          skip: false,
          vectorizePropertyName: false,
        },
      },
      name: "population",
    },
  ],
  replicationConfig: {
    factor: 1,
  },
  shardingConfig: {
    actualCount: 1,
    actualVirtualCount: 128,
    desiredCount: 1,
    desiredVirtualCount: 128,
    function: "murmur3",
    key: "_id",
    strategy: "hash",
    virtualPerPhysical: 128,
  },
  vectorIndexConfig: {
    bq: {
      enabled: false,
    },
    cleanupIntervalSeconds: 300,
    distance: "cosine",
    dynamicEfFactor: 8,
    dynamicEfMax: 500,
    dynamicEfMin: 100,
    ef: -1,
    efConstruction: 128,
    flatSearchCutoff: 40000,
    maxConnections: 64,
    pq: {
      bitCompression: false,
      centroids: 256,
      enabled: false,
      encoder: {
        distribution: "log-normal",
        type: "kmeans",
      },
      segments: 0,
      trainingLimit: 100000,
    },
    skip: false,
    vectorCacheMaxObjects:<PHONE_NUMBER>000,
  },
  vectorIndexType: "hnsw",
  vectorizer: "text2vec-openai",
}

Hi @michael-pont, thanks for raising this! I can see where the error is and will push a fix now and release a new patch later with all the other bug-fixes that you've reported. Cheers!


fix(husky): Adding husky for pre-commit linting

:tada: This PR is included in version 2.7.1 :tada:
Your semantic-release bot :package::rocket:


added scp identity file path.

Address issue #10. Just needs a quick test on the OT-2 before merging.

Tested. It works correctly.


feat: adds fedramp-transform command implementation

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.
[X] All commits are signed-off.

Summary
Adds fedramp-transform command to populate information in the SSP Appendix A template
Smaller diffs can be found:
#27
#29
#32
#34
Blocked by #46 This should not be merged to develop until 0.3.0 is released
Key links:

Sonar coverage

Merging this now that 0.3.0 has been released.


fix: allow pre-processor to be passed in, in order to allow 'lang=ts' in webpack

https://github.com/Mohamed-Kaizen/unplugin-svelte-components/issues


feat (service/state): If account doesn't exist at given height, fail gracefully

This PR implements a check to ensure that the value returned by the ABCI balance request is not empty. If the balance is empty, it will return 0 and log out an err.

actually..... wait. Why not return 0? And then keep the err message as a log

Codecov Report

Merging #996 (fdb29fe) into main (2cc8077) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #996      +/-   ##
==========================================
- Coverage   58.53%   58.43%   -0.11%
==========================================
  Files         132      132
  Lines        7947     7956       +9
==========================================
- Hits         4652     4649       -3
- Misses       2818     2829      +11
- Partials      477      478       +1

Impacted Files
Coverage Δ

service/state/core_access.go
17.14% <0.00%> (-1.18%)
:arrow_down:

header/core/listener.go
52.83% <0.00%> (-5.67%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Good point @distractedm1nd


Use travis_retry to mitigate random errors

The last build of the maser branch failed with this message:
  [Composer\Downloader\TransportException]
  Peer fingerprint did not match

Yeah.. You are correct. Thank you

Those retries never actually fix that btw.


500 Native SSL error

Dear Team,
We are facing an issue with the below API link.
https://api.dralshehri.com/hijri-converter
Request we sent:
JSON Payload:
{
"day": 15,
"month": 3,
"year": 2001,
"calendar": "gregorian"
}
Response we received:
Code: 500
Response payload:
html title: Application Server Error
html body content: 500 Native SSL error, Error is logged with Tag: {00348ca8}
Kindly let us know why we are receiving this kind of response/error in past few days.
Please feel free to reach out<EMAIL_ADDRESS>Best Regards,
Abimanyu G.

Sorry to disappoint you. That API is not open to the public. If you need such a service, please reopen this issue and let me know how I can help.


[Remix] Truffle Plugin

Truffle Plugin
(subject to change)

See https://github.com/ethberlin-hackathon/ETHBerlin-Teambuilding/blob/master/RemixHackathon.md for more info about the Remix hackathon. Please be sure to read it before starting.
Some infos about Remix: https://remix.readthedocs.io/en/latest/
Online version: http://remix.ethereum.org

We've been releasing an API (available in http://remix-alpha.ethereum.org) which allows developing plugin for Remix.
(See https://github.com/ethereum/remix/blob/master/docs/remix_plugin.md and https://github.com/ethereum/remix/blob/master/docs/remix_plugin_api.md)
Checkout https://remix-alpha.ethereum.org / settings tab / Oraclize for a live example.
This issue is specifically about developing a Truffle Plugin.
This is an open subject, we want to make Remix and Truffle working better together.
Some proposition might be added, but we are looking forward to your proposals.
Proposal for implementation
(You don't need to strictly follow this proposal, we would like to have your feedback)
Team
We are the team behind Remix IDE and related libraries, using this hackathon as a kickstart for the Remix API.
We've setup an extended team for helping you during this event

Remix team - @ninabreznik @serapath @ryestew @yann300 @iurimatias
Go team - @ligi @holiman
Solidity team - @leonardoalt @chriseth
C++, ewasm - @chfast @axic

Beside normal funding, we will at the end of the event select 4 teams that will receive sponsorship from the Ethereum Foundation.
Be sure to contact us at any time online or grab us directly at the event.
Skills wanted
JavaScript / Ethereum
Communication
We will be around giving advice and helping if needed.
And in any case just drop your thoughts there ;)
https://gitter.im/ethereum/remix-dev-plugin
How to get started:

Clone https://github.com/yann300/remix-plugin , go to src folder
Serve the folder through local web server
Go to remix-alpha.ethereum.org
Settings tab / Plugin section
Input Description:

{
“title”: “<name of plugin>”,
“url”: “http://<IP_ADDRESS>:<port>”
}

Load  and Start using it.

This issue has been moved there: https://github.com/ethberlin-hackathon/ETHBerlin-Bounties/issues/22

Sorry,
what this plugin is expected to be doing?


feat(codeql): configure sobelow

This PR will:

Configure Sobelow for Code Scanning

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from leylmordor. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: zacaaron
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [zacaaron]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 1d5efa97d7062b0598c5af820dd8e0e585343308


Delete command: inconsistent error message

Description
Inconsistent error message on deleting invalid names and deleting invalid index.
Screenshots

I am bit confused as to what is the bug? Like depending on the input it throws a specific error message right. Is there any particular improvement or change that is needed?

I am bit confused as to what is the bug? Like depending on the input it throws a specific error message right. Is there any particular improvement or change that is needed?

Just a minor issue: the grammar on both error message are inconsistent, i.e. person / person's ? maybe can follow the other error commands practice


undefined symbol: __cudaPopCallConfiguration

After running command of novel object captioning (Evaluation), I have found following errors.
  File "main.py", line 18, in <module>
    from misc import utils, eval_utils, AttModel
  File "/home/uchchwas/Downloads/Neural-Baby-Talk-python3-master/misc/AttModel.py", line 10, in <module>
    from misc.model import AttModel
  File "/home/uchchwas/Downloads/Neural-Baby-Talk-python3-master/misc/model.py", line 14, in <module>
    from pooling.roi_align.modules.roi_align import RoIAlignAvg
  File "/home/uchchwas/Downloads/Neural-Baby-Talk-python3-master/pooling/roi_align/modules/roi_align.py", line 3, in <module>
    from ..functions.roi_align import RoIAlignFunction
  File "/home/uchchwas/Downloads/Neural-Baby-Talk-python3-master/pooling/roi_align/functions/roi_align.py", line 3, in <module>
    from .._ext import roi_align
  File "/home/uchchwas/Downloads/Neural-Baby-Talk-python3-master/pooling/roi_align/_ext/roi_align/__init__.py", line 3, in <module>
    from ._roi_align import lib as _lib, ffi as _ffi
ImportError: /home/uchchwas/Downloads/Neural-Baby-Talk-python3-master/pooling/roi_align/_ext/roi_align/_roi_align.so: undefined symbol: __cudaPopCallConfiguration

Also, I have used your anaconda environment and checked both the cuda version of system and environment, they are same.

plz try using the same cuda version in this file


Added note about availability in 21vianet to Search-UnifiedAuditLog.md and Search-MailboxAuditLog.md

Closes https://github.com/MicrosoftDocs/office-docs-powershell/issues/6399.

Docs Build status updates of commit 7ea4cbf:
:clock10: Full build: the average full build time is 17 min(s) 39 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 7ea4cbf:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Search-MailboxAuditLog.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Search-UnifiedAuditLog.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit ba41a91:
:clock10: Pending: waiting for processors (25 builds ahead of you)
:warning: Docs Build is busy, currently there are 25 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 88d8f67:
:clock10: Pending: waiting for processors (25 builds ahead of you)
:warning: Docs Build is busy, currently there are 25 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit ba41a91:
:clock10: Full build: the average full build time is 17 min(s) 39 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit ba41a91:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Search-MailboxAuditLog.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Search-UnifiedAuditLog.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 88d8f67:
:clock10: Full build: the average full build time is 17 min(s) 39 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 88d8f67:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Search-MailboxAuditLog.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Search-UnifiedAuditLog.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


basedpyright: 1.13.3 -> 1.14.0

Description of changes
Changelog: https://github.com/DetachHead/basedpyright/releases/tag/v1.14.0
cc @kiike

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

1 package built:

basedpyright

Result of nixpkgs-review pr 327896 run on aarch64-darwin 1

1 package built:

basedpyright

Result of nixpkgs-review pr 327896 run on x86_64-darwin 1

1 package built:

basedpyright

Result of nixpkgs-review pr 327896 run on aarch64-linux 1

1 package built:

basedpyright

I didn't see the ping and updated the package in another PR, bringing in the fixes in the docstubs. I'll rebase them with this PR then.

I didn't see the ping and updated the package in another PR, bringing in the fixes in the docstubs. I'll rebase them with this PR then.

Sorry for the bad timing ^^
Feel free to ping me for review :)


coc-elixir does not work on Windows

On Windows platform the plugin generates output quoted below. As I see, the plugin is looking for language_server.sh instead of language_server.bat file.
## versions

vim version: NVIM v0.3.8
node version: v10.16.3
coc.nvim version: 0.0.74-c97d41aa1e
term: undefined
platform: win32

## Messages
[coc.nvim] Server elixir failed to start: Command "C:\Users\astavonin\AppData\Local\coc\extensions\node_modules\coc-elixir\els-release\language_server.sh" of elixir is not executable: Error: not found: C:\Users\astavonin\AppData\Local\coc\extensions\node_modules\coc-elixir\els-release\language_server.sh
## Output channel: elixir

[Error  - 8:42:09 AM] Starting client failed:
Error: Command "C:\Users\astavonin\AppData\Local\coc\extensions\node_modules\coc-elixir\els-release\language_server.sh" of elixir is not executable: Error: not found: C:\Users\astavonin\AppData\Local\coc\extensions\node_modules\coc-elixir\els-release\language_server.sh
    at LanguageClient.createMessageTransports (C:\Users\astavonin\AppData\Local\nvim\plugged\coc.nvim\build\index.js:76455:23)

## Output channel: languageserver.elixir

Started ElixirLS
Elixir version: "1.9.1 (compiled with Erlang/OTP 20)"
Erlang version: "22"

08:42:15.141 [warn]  Did not receive workspace/didChangeConfiguration notification after 5 seconds. Using default settings.
Compiling with Mix env test
[Info  - 8:42:15 AM] Compile took 78 milliseconds```

Can you send a PR?


Hystrix.reset() not refreshing state.

I am running hystrix as circuit breaker with the following properties.
properties.withExecutionTimeoutInMilliseconds(10000);		//10 seconds
properties.withCircuitBreakerSleepWindowInMilliseconds(600000); 	//10 mins
properties.withCircuitBreakerRequestVolumeThreshold(10);
properties.withCircuitBreakerErrorThresholdPercentage(80);			//80%
properties.withMetricsRollingStatisticalWindowInMilliseconds(300000);	//5 mins
properties.withMetricsRollingStatisticalWindowBuckets(10);
After circuit breaks for a particular command key, i call refresh.
On calling the same command key again, i'm still with an open circuit and have to wait the remaining of the 10 minutes for the circuit to close again.
Also, please give me a way to achieve the above if i have the wrong understanding of Hystrix.reset()

Seems it didnt work in a particular environment.

These values are significantly different from the defaults.  Is there a reason you've chosen to make them this high?
Also, it's not intended to call Hystrix.reset() anywhere outside of unit tests.  (I think that's what you meant when you typed refresh).  Ideally, you would configure Hystrix such that automatic recovery happens without manual intervention.  That's why the defaults being high is concerning.

For my usecase, the backend components are not hit with the same frequency. Some are hit less, like 3 calls per minute, some are very high upto 3k calls per minute. To take care of all these i chose the above values. Different values of MetricsRollingStatisticalWindowInMilliseconds and MetricsRollingStatisticalWindowBuckets for different components should have been better ?
Further i have given the option to change these properties (reading from database) dynamically. Once some property is changed, i would like hystrix to reflect these properties change. For that i intend to use Hystrix.refresh(), to clear any current command properties, so that new properties reflect, without the need to restart the application. Is such use of reset recommended? or is there another way i can use?

I don't recommend that you use Hystrix.reset() programatically anywhere but in unit tests.
For a service that is called at 3 requests per minute, that puts very little stress on the system.  I don't think that circuit-breaking helps at all at that volume.  Circuit-breaking is intended to relieve stress on a downstream system that's underwater.  At 3 requests/minute, that's not the case.  Hystrix has default configuration of a certain volume that must be met for circuit-breaking to apply, and I would leave that as-is.
For higher-volume circuits, it's better to rely on circuits transitioning from open back to closed automatically, rather than any sort of manual intervention.  Circuit-breaking works as follows:

If volume and error rate both meet the required thresholds, then the circuit-transitions from CLOSED->OPEN
For the duration of the sleep window, this command fails fast with a SHORT_CIRCUITED status, and no calls are made downstream.
After the sleep window, a single call is allowed through.  If it succeeds, then the circuit transitions from OPEN->CLOSED.  If it does not, it stays OPEN and sleeps for another round of the sleep window.  This repeats indefinitely.

So recovery should always be automatic and governed by configuration.

Ok, so there is no way of changing the properties associated with an already created instance of HystrixCommandKey during runtime?
I require this as i am giving the backend APIs the functionality to change their executionTimeout, and the change should be reflected without the need to restart the application.

Yes, please look at the Hystrix config wiki.  We use Archaius for the ability to dynamically change properties without restarting the application.


Speed problems

Hi, first of all, thanks for your work @softmoth. After updating documentable to use Mustache templates, I have noticed a huge increase in the execution time of documentable. In the previous versions (without templates), generate the documentation would take no more than 6-10 minutes. After using templates, this is the time it takes:
[=======================================================================]100.00%
Generate source files has taken<PHONE_NUMBER> seconds
Generating Kind::Syntax files 👇 ...
[=======================================================================]100.00%
Generating Kind::Routine files 👇 ...
[=======================================================================]100.00%
Generating per kind files has taken<PHONE_NUMBER> seconds
Generating indexes...
Generating index files has taken 35.87684523 seconds
Writing search file...
Generating entries
Writing all generated files 🙌 ...
[#######################################################################]100.00%
Writing generated files has taken 1.99796244 seconds
Whole process has taken 2067.5031522 seconds

Around 30 minutes. This problem was also found by @finanalyst when he tried to remake the Pod::To::HTML module.
I don't know if this is the usual time any other implementation of Mustache (in a different language) would take to do the same. Any ideas on how to solve this?

Thank you very much for opening this issue.
I've pushed some changes in version 1.2.0 which may help, caching parsed templates which were not being cached before. If you are re-using the same template files over and over (as I suspect you are), this should be much faster now. Just make sure that you keep a single Template::Mustache instance, as the cache is stored as a member and not shared between instances.
my $stache = Template::Mustache.new: from<path/to/templates>;

for @documentables -> $doc {
    # This will look up the 'document.mustache' template in the cache, and
    # any of the templates it references
    $stache.render: '{{< document }}', { 'title' => $doc.title, 'body' => $doc.body };
}

That being said, I am sure the Grammar for Template::Mustache is not efficient. It probably backtracks a lot more than it should. I have some ideas on fixing that, but haven't gotten to them. Hopefully the caching will be sufficient for your needs now. Please let me know how it goes!
Tim

Where could I see those changes? I don't see new commits in this repo. Thanks for the fast reply!

Yes, it is here on this repo (now renamed to raku-Template-Mustache on Github). They were committed a few days ago now: https://github.com/softmoth/raku-Template-Mustache/commit/4811aadd403403c182245674f1d8b044594f075a
The 1.2.0 release on CPAN has it (current version is 1.2.1, with some logging features refactored).

Oh here is why I have not seen the speed changes:
https://github.com/Raku/Pod-To-HTML/blob/00d1130391a38d5a0b1b13a15738bfa889726c54/lib/Pod/To/HTML.pm#L273-L280
I suppose literals are not being cached, or cannot be cached?

Mm, after taking a look at the code it looks like that literals are indeed cached.

After adding a couple of say statements to this if block: https://github.com/softmoth/raku-Template-Mustache/blob/f6618df145d26ba371768bd802491fbe1c88e560/lib/Template/Mustache.rakumod#L291-L295
I have discovered that the cache is not working.

Thank you, Antonio.
Yes, explicitly marked :literals were already being cached, after finanalyst added caching. Recent changes expanded caching to all templates, literals and non-literals alike. The :literal hack you pointed to is no longer needed (we can just point :from at the templates directory and let Template::Mustache find the partials); but having it in there won't slow things down noticeably, I guess.
I'm curious what the speed difference is with the updated to Pod-To-HTML. I honestly haven't put much effort into benchmarking and optimizing. I would like to do that eventually, but have other things that are a higher priority. If the speed with caching is still a major hurdle for you, I can change my priorities.

I think after these changes (https://github.com/Raku/Documentable/issues/117) it will be enough :-). As always, thanks for your help!


Adding agnoster-light Theme.

If you use the current agnoster in a light theme such as solarized or Tomorrow the colors are not ideal. This commit adds lighter colors that better much a lighter theme.
e.g. http://picpaste.com/pics/agnoster-light-GBXnDdTm.1442445127.png

Closing this since I just realized no more themes are accepted.


1_8.W001 standalone TEMPLATE_* settings deprecated

When starting a new Wagtail project, i get:
System check identified some issues:
WARNINGS:
?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.

But when i cloned the repo and did pip install ., created a new project and started it, i didn't get this message. Does this mean it's fixed, or did i not get the deprecation message because of some other reason?

This is definitely fixed, the newly created project has template_engine['OPTIONS']['debug'] = True

Was fixed in 5a4ad2059736bd11a5e2ff67aa8620f45c77d0eb


Generics with ObjectMapper

I'm trying to use ObjectMapper with Generics, I'm not sure is it supported the way I intended or this feature is not supported?
This is what I'm trying to do, and it is all working if primitive data is used (Int,String,..) and it is not working with complex data (struct, class):
import ObjectMapper

struct Message<T> : Mappable {

  init() {}

  init?(_ map: Map) {
    mapping(map)
  }

  var id: Int?
  var storeId: Int?
  var data: [T]?

  mutating func mapping(map: Map) {
    id <- map["ID"]
    storeId <- map["StoreID"]
    data <- map["DataCollection"]
  }
}

struct ResponseData : Mappable {
  init() {}
  init?(_ map: Map) {
    mapping(map)
  }

  var id: Int?
  var name: String?

  mutating func mapping(map: Map) {
    id <- map["ID"]
    name <- map["Name"]
  }
}

// Not working with complex data
let mapper = Mapper<Message<ResponseData>>()
var message  = Message<ResponseData>()
message.id = 123456
message.storeId = 54321
var responseData = ResponseData()
responseData.id = 33333
responseData.name = "Some name"
message.data = [responseData]
Mapper().toJSONString(message, prettyPrint: false)

// Result JSON: "{"ID":123456,"StoreID":54321}"

// Working with primitive data
let mapper2 = Mapper<Message<String>>()
var message2 = Message<String>()
message2.id = 22222
message2.storeId = 33333
message2.data = ["data", "more data"]
Mapper().toJSONString(message2, prettyPrint: false)

// Result JSON: "{"ID":22222,"StoreID":33333,"DataCollection":["data","more data"]}"

And the only way I could achieve this with complex data is like this:
import ObjectMapper

class Message : Mappable {
  init() {}
  required init?(_ map: Map) {
    mapping(map)
  }

  var id: Int?
  var storeId: Int?

  func mapping(map: Map) {
    id <- map["ID"]
    storeId <- map["StoreID"]
  }
}

struct ResponseData : Mappable {
  init() {}
  init?(_ map: Map) {
    mapping(map)
  }

  var id: Int?
  var name: String?

  mutating func mapping(map: Map) {
    id <- map["ID"]
    name <- map["Name"]
  }
}

final class ResponseMessage : Message, Mappable {
  override init() {
    super.init()
  }

  required init?(_ map: Map) {
    super.init(map)
  }

  var data: [ResponseData]?

  override func mapping(map: Map) {
    super.mapping(map)
    data <- map["DataCollection"]
  }
}

let mapper = Mapper<ResponseMessage>()
var message  = ResponseMessage()
message.id = 123456
message.storeId = 54321
var responseData = ResponseData()
responseData.id = 33333
responseData.name = "Some name"
message.data = [responseData]
Mapper().toJSONString(message, prettyPrint: false)

// Result JSON: "{"ID":123456,"StoreID":54321,
//                "DataCollection":[{"ID":33333,"Name":"Some name"}]}"

And same issue is in serialisation or deserialisation.
Can someone point what I'm doing wrong and is this possible with ObjectMapper or is this something that can be fixed in ObjectMapper, because I really like more first implementation with pure Generics and structs?

You should define the type as struct Message<T: Mappable> : Mappable.

Thank you @ikesyo , it breaks one with Message since it is not Mappable, but it works with all T that are Mappable. Too bad it can do for both, but I'm glad it works with T: Mappable.

@xajler did you solve this issue? Especially I mean that let "mapper2 = Mapper<Message>()".

@gkhnaydn It was a time ago, but at the end I've created three different Messages:
// For complex types, in my case  structs.
// Sturcts used as T must inherit Mappable.
struct DataMessage<T: Mappable> : Mappable { }

// For primitive types as String, Int,...
struct SimpleMessage<T> : Mappable { }

// For void or empty ones
sturct EmptyMessage : Mappable { }

DataMessage and SimpleMessage were having identical content inside of struct,  only difference was <T:Mappable> vs <T>.
It was a annoyance to have 3 of them nearly identical with content, but it worked for me, without any problems.
In most languages you could have this in one struct or class, not sure is this fixed in later releases and is this a drawback of ObjectMapper or swift.
Hope it helps...


Cluster Start Error during Tuning

If I try to start a new node when a tuning is already running on the master I have this message:
./mmt start -e test --master-pem /home/ubuntu/My.pem --master<EMAIL_ADDRESS>
tail -n 100 /home/ubuntu/mmt/runtime/test/slave/logs/process.log

org.zeromq.ZMQException: Errno 156384763 : Operation cannot be accomplished in current state
	at org.zeromq.ZMQ$Socket.mayRaise(ZMQ.java:1456)
	at org.zeromq.ZMQ$Socket.send(ZMQ.java:1306)
	at eu.modernmt.network.messaging.zeromq.ZMQMessagingClient$ClientLoop.request(ZMQMessagingClient.java:70)
	at eu.modernmt.network.messaging.zeromq.ZMQMessagingClient.request(ZMQMessagingClient.java:39)
	at eu.modernmt.network.cluster.Worker.internalSendRequest(Worker.java:80)
	at eu.modernmt.network.cluster.Worker.sendRequest(Worker.java:64)
	at eu.modernmt.engine.MMTWorker$Initializer.run(MMTWorker.java:157)
[Thread-1] INFO eu.modernmt.engine.MMTWorker - MMT Cluster Worker shutdown.

This has been solved by commit https://github.com/ModernMT/MMT/commit/08ce9b2e134fd1be33ce3cb18f33601dff99f65a.
I've tested this condition and now works as expected: the new node start translating and the results are correctly sent to master instance.