Unix implementation does not use PSModule env variable

I have read the known issues, faq and searched for open issues matching this, and I found nothing, so hoping this is new to you. I tried splitting up a script into modules, and found that I need to add the current path to PSModulePath in order to do so. Whatever I did, Powershell never found the module. After doing the same in Windows, I discovered it perfectly there immediately. I can see no issues regarding casing here, so that tip does not seem to apply here.

Steps to reproduce
First, download latest version 6 alpha build (12 as of now) for Mac. Then clone and run the test case:
git clone https://github.com/fatso83/powershell-module-test
cd powershell-module-test
powershell -File bar-test.ps1

Expected behavior
This should be output (which is the case on Windows, using Powershell 3):
Oh, hello there. You are now loading the Bar module

Bar says hello

Actual behavior
Import-Module : The specified module 'Bar' was not loaded because no valid module file was found in any module directory.
At /Users/carl-erik.kopseng/powershell-module-test/bar-test.ps1:9 char:1
+ Import-Module Bar
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (Bar:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

BarHello : The term 'BarHello' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At /Users/carl-erik.kopseng/powershell-module-test/bar-test.ps1:12 char:8
+ $res = BarHello
+        ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (BarHello:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   <IP_ADDRESS>
GitCommitId                    v6.0.0-alpha.12
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Perhaps this is related to # 2679.

@iSazonov, I don't think this is related to #2679, as I am not running Docker. This a standard OS X install, and I have a root mount point:
$ df
Filesystem                              512-blocks      Used        Available Capacity iused      ifree %iused  Mounted on
/dev/disk1                               974700800 424139040        550049760    44% 3226299<PHONE_NUMBER>    0%   /
devfs                                          483       483                0   100%     837          0  100%   /dev
map -hosts                                       0         0                0   100%       0          0  100%   /net
map auto_home                                    0         0                0   100%       0          0  100%   /home
map -fstab                                       0         0                0   100%       0          0  100%   /Network/Servers
localhost:/93MKoOWlwe2pb4mzjBi4qH        974700800 974700800                0   100%       0          0  100%   /Volumes/MobileBackups
/dev/disk2s2<PHONE_NUMBER> 883099880<PHONE_NUMBER>    46% 6903225<PHONE_NUMBER>    0%   /Volumes/Carl-Eriks backup
kbfs@kbfuse0<PHONE_NUMBER>370488         0<PHONE_NUMBER>370488     0%       0          0  100%   /keybase

PSMODULEPATH is case sensitive on non-Windows systems. Could you set $env:PSMODULEPATH (cased as provided) to your desired path and try again?

@JamesWTruher, that was it!
$ powershell -File bar-test.ps1
Oh, hello there. You are now loading the Bar module

Bar says hello

carl-erik.kopseng at MWNOOSLMACLT280 in ~/dev-priv/powershell-module-test (master)
$ git diff
diff --git a/bar-test.ps1 b/bar-test.ps1
index 60498ad..0dd8281 100644
--- a/bar-test.ps1
+++ b/bar-test.ps1
@@ -1,6 +1,6 @@
 # set the path as the path for loading modules
 # (I don't concatenate the existing path here to avoid x-platform differences complications)
-$env:PSModulePath = $PSScriptRoot
+$env:PSMODULEPATH = $PSScriptRoot

 Import-Module Bar

I did get the casing from official microsoft articles so it's too bad that those paths differ in casing, but glad to see that it works now! Thanks!


Grant package:write permission for UT image build

This is required to have new image pushed to GHR.

Apparently your change triggered the linter on main.yaml:
Spell Check..............................................................Failed
- hook id: codespell
- exit code: 65

.github/workflows/main.yaml:200: neccessary ==> necessary

done


Autocrafting Rework

As discussed, the rework split into parts.
For now, I've planned 6 parts/commits and 3 additional minor PR's.
I've not found a way to submit the PR's before this one is merged, do tell me if there is a way to do that.
Part 1:
This one doesn't actually change much. Only cleans up the code for the update methods.
I've moved everything that does item/fluid extraction/insertion into their own methods.
This forces a couple of changes to where errors are detected but should overall clear up what is happening a bit.

Part 2: More prepwork
This combines the common parts of Crafting and Processing into a superclass. While they currently only have a few things in common, that is going to change in further commits.
Some things like counter and toRemove are a bit clunky in this version but I just added them to check if I broke anything.

Part 3: Calculation
Now we get to the parts that actually make a difference. Fundamentally what changes is that instead of calculating everything for every step of the crafting, it now calculates things for every pattern once and adds multipliers to get match up how many times everything is needed.
This changes quite a few things:

it's necessary to calculate how many times a pattern needs to be crafted every step, for this, I've repurposed the getQuantityPerCraft method
loops around calculateInternal have become completely unnecessary
it's possible to get Item's in part from fromSelf, fromNetwork and from crafting so that needed to be adjusted
PatternChains no longer work at all. The ability for multiple crafters to do the same thing is coming back later

Part 4: More speed up for calculation
Now that the calculation supports multiple items there is another optimization that can be done. Since we only really need the actual recipe (I renamed took to recipe) for figuring out the output of the crafting, we can sum up all the ingredients that are needed to reduce the number of times we have to go through calculation.
This makes any recipes that have a lot of the same ingredients much faster. Best case would be things like octuple compressed cobblestone going from 9^8 calculation calls to just 9.

Part 5: fixing Crafting/Processing
Crafts now only get updated once every update and contain all the items so It needs to be adjusted to work with that.
For Crafting that means the counter is gone and instead it loops once for each successful crafting update. Then it's just counting down the quantity.
Processing is a bit more complex. Here we need to keep track of :

how many times items still need to get inserted (quantity)
how many times items have been inserted (total - quantity)
how many complete sets have finished processing (finished)

Finished is calculated by figuring out the number of patterns that have already received the items necessary to complete. This forces changing how tracked items are accounted for.
Everything else is just multiplying item counts in the right places.
The items that are used aren't properly calculated yet so that breaks still.

Part 6: Oredict/Tag System
This is the tricky part. All calculated items need to be added as potential items that may get used. However, the system needs to know how many of which type of item it needs to insert every iteration too.
The cleanest solution I have found stores all items that may be used for one ingredient inside a stacklist. Then when extracting it grabs the items for each ingredient from the associated stacklist.
Fluids are easier they work almost the same way as before. I just had to add them in a bit earlier.
I've also moved where crafts are created to the beginning of calculation. This way it's more obvious which parts of the code are for calculation and which for after. It also sorts the crafts in a logical order which will be used later by the crafting monitor.

Part 7: Multiple Container and Hashmaps
Looping over each container that contains the pattern reintroduces the speedup when multiple containers have the same pattern. For this, it maintains a list for each pattern that has all containers listed. As a consequence autocrafting now also responds to adding/removing patterns while a task is running.
There is a rather minor issue that necessitates the introduction of the Linkedhashmap for crafts. When the same craft is requested multiple times in different parts of the task then the crafting speed would multiply. Solved by only adding quantity and ingredients when the same pattern is found.
(For the PatternChain you deliberately introduced a new class Key to avoid overwriting equals and hashCode for CraftingPattern. I'm not seeing the reason for that but it could be reintroduced rather easily.)
There are still a couple of minor fixes left to do. And some cleanup after that.

Part 8: Small fixes

Fix totalsteps.
change ItemsToUse to a Map to avoid ArrayList nonsense
add ProcessingState support for multiple containers. The state now only changes if none of the container were able to run
fix Crafting Monitor updates happening too early for tracked items.
Crafting Monitor now shows the needed items instead of multiplied outputs. It makes it more clear what the processing is waiting for.

And with that everything is up and running. Gonna do more extensive testing so there may be more but for now, this is everything.
There are still parts missing that are going into separate PR's:

Sorting of the Crafting Monitor
Sorting of the Crafting Preview
keep pattern order for processings
improve speed of tracked insertions

OK! Will check this out ASAP. Please wait with the next PRs until this one is merged.


Example of handlers for liveness and preStop

Codecov Report

Merging #43 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   91.91%   91.91%
=======================================
  Files          62       62
  Lines        1126     1126
=======================================
  Hits         1035     1035
  Misses         91       91

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 b92396b...8510d74. Read the comment docs.


I want to use Shopware plugins in Shopware-PWA

TO REFINE

@patzick
Closing that one because of #369


[Feature suggestion, smaller] Would it be possible for a short feedback as to whether "wsl --set-default-version 2" was a success?

Hey there to the WSL team,
I hope this includes WSL1 and WSL2. :)
I have been using WSL1 for ... perhaps 3 years by now, or something like that, on my laptop.
Anyway; WSL1 was really nice. There were a few minor things but these were minor so I
did not care much. I also could use "linux" GUIs e. g. both QT and GTK, vix xming/mingx or
whatever the name was for that xorg-server (I forgot).
Lately I read that WSL2 actually did a TON of GUI-related improvements. I already write a
lot of ruby-gtk3 code in particular but I also use other GUIs, so switching to WSL2 would
make sense. I initially wanted to delay this but today I decided to give it a try.
So far it's ok, but I noticed a minor thing.
I was using this here:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
And I was using this command:
"wsl --set-default-version 2"
I got this line:
"For information on key differences with MSL 2 please visit https://ak.ms/wsl2"
That message is ok, but would it be possible to also inform us that the --set-default-version
was a success or not? I assume it was a success but I don't know yet. So I don't know
whether I may be using wsl1 or wsl2. I assume wsl2 but it would be helpful if some
message could be used when we use --set-default-version.
Something like:
"Success."
Or if you want more text, perhaps:
"WSL2 is now the default and will be used when starting ... "
Not sure how WSL2 works, so the above message has to be tweaked a bit. But that
is only a suggestion for many other possibilities.
Reasoning: I actually would like some confirmation that what I was doing so far was
successful. Right now I don't seem to get much indication, other than the "please
visit xyz", but I already work through a tutorial on docs-microsoft, so it is unlikely I
want to visit yet another random website. My mind set is to work through the whole
thing right now! :P So a bit of feedback would be useful. Thanks for reading, please
close as you see fit at any moment in time. The good thing is that it's a minor change
so only just an additional sentence perhaps.

wsl.exe -l -v

That will show the distribution's WSL version (1 or 2). To get the default use wsl.exe --status on recent-ish WSL, I think circa 20246 (but don't quote me). For what it is worth, --set-default-version doesn't have much in the way of failure modes (if any at all). It just makes note of the default version. No news is good news (success is the absence of an error) is pretty standard behavior. [Contrast failure without an error, which is a bug.]

This was added to Insiders in build 20237.  The text now reads:
c:\directory>wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.


[GitHubOrgEntityProvider] - Make it configurable to only import groups or users.

This is related to #11406. We have a similar use case.
Feature Suggestion
We have a different "user provider" and have no use for the github users but we do need the github groups in backstage.
Possible Implementation
Add two boolean arguments to the provider.
export interface GitHubOrgEntityProviderOptions {
  emitGroups?: boolean; // defaults to true
  emitUsers?: boolean;  // defaults to true
}

Only emit the entities of the wanted kind.
    assignGroupsToUsers(users, groupMemberUsers);
    buildOrgHierarchy(groups);

    const { markCommitComplete } = markReadComplete({ users, groups });

    const entitiesToEmit = [...emitUsers ? users : [], ...emitGroups ? groups : [] ]

    await this.connection.applyMutation({
      type: 'full',
      entities: entitiesToEmit.map(entity => ({
        locationKey: `github-org-provider:${this.options.id}`,
        entity: withLocations(
          `https://${this.options.gitHubConfig.host}`,
          org,
          entity,
        ),
      })),
    });

    markCommitComplete();

I can prepare a PR is this is the way forward.

Sure! Seems like a sensible configuration, please do prep a PR! 👍
I'm curious how you want to end up linking together the groups and users, will the GitHub teams actually end up referencing users as members? That raises a separate question, which is whether we child/member relations should be optional as well. That is, if you only emit groups, should those groups still include membership information?

So... We have done some experiments with this.
Our goal is to have the GitHub group members reference the "external samlIdentity" id (azure) instead of the GitHub id. What works for us is to fetch the mapping between GitHub id -> azure id from githubs graphql api. Use the query in the GitHubOrgEntityProvider to get group memberships per GitHub id. Then using a simple catalog processor we can add all GitHub related data for an azure user entity (like GitHub login id and the GitHub group memberships). The only changes needed to the GitHubOrgEntityProvider is to stop emitting the users and adding a namespace to the groups.


Please help me with this on mac mojave. cant launch flutter from console in bin folder. Screen shot in the comments


Support null

Js.Json.null, Js.null, ...

Any progress on this?

Any progress on this?

Didn't seize much time for this yet. I'll definitely take this down soon.

No rush. I implemented a workaround for now. I'd do it myself, but ocaml is foreign to me

Resolved by #80


Morphs dupplicating at every re-join

Whenever a player rejoins our multiplayer server thier morphs duplicate, leading to the server strait up crashing at some point because of 1 player having 200.000 entitys in his list. Deleting the morph section out of the player data is a good enough temporary workaround, but it would be nice if you could fix this issue as soon as possible.
The Modpack for recreation

same! me and a buddy [2 people] - both died a few times, and now whenever we try to join our server, it keeps on crashing.
Also, opening up the in-game morph menu is super laggy, as the list of mobs is duplicated.

Bug persistent in 3.0.1


There is no message telling user to reload the page after upgrade

After upgrade from 2.3.4 to 2.4.1, the Migration menu item can't be seen until the page is reloaded, but there is no popped up message telling user to reload the page.
Besides, after upgrade from 2.4.0 to 2.4.1, the newly added kebab option "Select migration network" can't be seen until the page is reloaded, but there is no popped up message telling user to reload the page after upgrade.

@vojtechszocs hi,
do you know if this a know issue with current console plugin ?
can we do something in the plugin to solve this behavior ?
cc:// @batzionb @sjd78 @sgratch @rszwajko

The console does track the version of the known (at the time of loading the page) dynamic plugins and will pop a reload message if the plugin's manifest version changes.
For plugins add/remove, there does appear to be some detection capabilities:
bridge side:
https://github.com/openshift/console/blob/8e1b8d539b26a7f437f414348a788665af3ad1b2/pkg/server/server.go#L594-L609
frontend side:
https://github.com/openshift/console/blob/8e1b8d539b26a7f437f414348a788665af3ad1b2/frontend/public/components/app.jsx#L358-L373
So maybe it is supposed to work?

And our plugin never update it's version ...
https://github.com/kubev2v/forklift-console-plugin/blob/main/packages/forklift-console-plugin/plugin-metadata.ts#L11

@sjd78 can you make a PR to bump the 2.4.1 branch version to 2.4.1 ?
p.s.
it also be nice if we will also need some automation to sync the plugin version with the git branch version, (for branches that have the format /release-\d+\.\d+\.\d+/ )
# script suggestion
get all matching branches
    test plugin version match
        if not create a PR that fixes the version

https://github.com/kubev2v/forklift-console-plugin/pull/447 - bump plugin version in release-v2.4.1 branch

@sjd78 hi, assigned to you, if #447 fixes this issue, it means updating the version is the fix.
if this is the fix, can you make automation to make sure each release-x.y.z branch has the correct version in the plugin metadata ?

@mnecas hi,
I talked to @ahadas and he suggests using an env variable to set the plugin version, do you set an env variable we can use to set the plugin version ?
cc:// @ahadas

After upgrade from 2.3.4 to 2.4.1, the Migration menu item can't be seen until the page is reloaded, but there is no popped up message telling user to reload the page.

can you re-check the 2.3 -> 2.4 flow, I can't reproduce this on my dev environment ?

After upgrade from 2.3.4 to 2.4.1, the Migration menu item can't be seen until the page is reloaded, but there is no popped up message telling user to reload the page.

can you re-check the 2.3 -> 2.4 flow, I can't reproduce this on my dev environment ?

I rechecked on my environment, and figured out what was the problem when upgrading from 2.3 to 2.4.
My environment was installed with 2.4 first, in order to test upgrade, I uninstalled 2.4 using the CLI commands in the product doc, then installed 2.3, upgraded to 2.4.
When 2.4 was uninstalled, the forklift-console-plugin was still present in the cluster Console plugins, after 2.3 was installed, forklift-console-plugin was there. So when upgrading from 2.3 to 2.4, there was no reloading page message.
If there is no forklift-console-plugin in the cluster Console plugins when 2.3 is installed, there is the reloading message after upgrading to 2.4.

PRs for fixing where merged upstream
closing because 2.4 was released and the fixes will not be tested by QE on 2.4.1


Internally published OCP cluster

So I'm building and internally published cluster so no public loadbalancer in AWS.  When I install the ODF, I get and error message saying
Error syncing load balancer: failed to ensure load balancer: could not find any suitable subnets for creating the ELB
when I find the service, for s3 and sts it does say external load balancer.
I also was just going to add the annotation like this:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
to it to see if it that would fix it .. but it warned me that it was managed by noobaa and might be overwritten.
Where can I change it so it uses the internal load balancer (I have endpoint services setup for that stuff so it's all reachable)

ok I verified by adding the annotation to the service fixes the problem .. is the best way to do it?
Also I don't need blob .. so is there a way to disable this?

Ok .. after RTFM ... lol... I see an "internal" mode for deployment, but I'm unsure how to do that in AWS. I don't know how to do it on an OCP cluster in AWS.  Also, would this help with my LB issue?  It sounds like the sts lb gets created so people can auth with the sts token to use the S3 blob (am I wrong with my assumption?).  So I'd still like to know if there is a way to eliminate the external access.  I'm only using block so I'm not sure what the s3/sts LBs are for.

Anyone?  internally only published?  or disable s3/sts because not needed?


add script to overlay video and refactor saving video into a new thread

After running some tests with kids, saw some performance issues, as described in #9.
Forgot I was in a different branch and included that code in this branch.

handles #10

I didn't take Operating Systems in college, so here we are:
Process (CPUs) run on multiple cores, which can be quick! However, I can't access state variables across multiple Processes because they exist on a separate CPU.
Threads exist on processes and can also run in parallel. You can continue accessing state variables saved on that thread, i.e. VideoCapture objects, images, etc.
I was able to move ScreenCapture onto another thread, which improved the performance #9 by a lot, but I am not able to move VideoCapture saving onto another thread, since OpenCV keeps the VideoCapture object on the original Process.
Is there some other way to optimize saving?


Feature request: distance between each pair of the two collections of inputs. Analog of scipy.spatial.distance.cdist

is it possible to add a function to calculate a distance between each pair of the two collections of inputs. Scipy has it implemented in distance.sdist and supports many distance metrics.
Is it possible to have this function in TF? I have made an implementation for Eucledian distance but have no idea how to implement it for other metrics.

This seems a bit baroque for inclusion in TensorFlow.  Implementing the other metrics seems pretty easy, but I don't see the motivation for the whole list in core.

It is needed in the neural style transfer when calculating style loss.
Is there any new updates on this?

We would use this in molecular dynamics @girving ... possible to reopen?
A naive implementation with linear algebra works but often maxes out GPU memory. It would be ideal to have an implementation of this which breaks big problems into chunks

ref: https://github.com/tensorflow/tensorflow/issues/30659


Image caching for planet pngs

Hi @Roaa94
I watched your presentation on this project and under the performance part you mentioned something about caching the planet images.
Could you kindly explain what it is for and where in the code you did that?
Thank you for this great project.

Hi Aytunc
I'm very happy that you watched the presentation and glad that you like the project.
Regarding caching images, this is done with a “precacheImage” function built-in in flutter. All you have to do is call this method, I’m calling it in the didChangeDependencies of my App widget, and give it the value of the ImageProvider.
bool _isInit = true;

@override
void didChangeDependencies() {
  if (_isInit) {
    for (BackgroundLayerType layerType in BackgroundLayers.types) {
      precacheImage(
        Image.asset('assets/images/background/${layerType.name}.png').image,
        context,
      );
    }

    for (int size in Puzzle.supportedPuzzleSizes) {
      precacheImage(
        Image.asset('assets/images/puzzle-solved/solved-${size}x$size.png').image,
        context,
      );
    }
  }
  _isInit = false;
  super.didChangeDependencies();
}

You can read more details about this in this article I just published where you can also read about the other performance optimization I mentioned in the presentation: warming up SKSL shaders.
https://dashtronaut.app/tutorials/performance
Feel free to let me know if you have any questions 🙌🏼


Pass in AUDCLNT_STREAMOPTIONS_RAW when possible when initializing an AudioClient

This is night and day in terms of quality on the XPS15 that I'm using, and I'm using the default setup, with the WAVES MaxxAudio app (required on this machine, otherwise, for example, plugging in a pair of analog headphones won't switch the audio output to those headphones). This app can be manually disabled, but otherwise inserts an APO that does noise reduction and echo cancellation, etc., but more importantly doubles ou triples the roundtrip latency.
Additionally, stacking echo cancellers and noise reduction is kind of wasteful.
I suppose we could make this a flag, to then make it controllable externally.

Also I'm bumping the required SDK version. Requiring an SDK that is about 7 years old sound OK. I'll also make this a pref.

Thanks, this will be great.

I'll also make this a pref.

Cheers, I can imagine situations where the APO processing may be necessary or desired.


Crash in viewDidAppear

My app crashes on setting labelText in viewDidAppear. Is it a bug or I'm doing something wrong?

(iOS SDK 8.0)

Could this be a Swift bug?

I also face this question.

I alse face this problem.

Is this relevant?
http://stackoverflow.com/questions/24643522/fatal-error-unexpectedly-found-nil-while-unwrapping-an-optional-values

This API has now been updated a bit. I hope that accessing label directly works better.


chore: align packages from react17 to react18

After a recent dependabot update we got a mismatch in react versions, this pr aligns all packages to use react 18, from some using 17.

add global types for specs (wasn't checked before in ts?)
slider: fluent slots doesn't seem to work well with react 17+, though you can add a workaround for children props for input slot
thumb.types.ts
fix react 18 render for examples/src/main.tsx

hmmm verkar vara nått iissue liknande: https://github.com/microsoft/fluentui/issues/26289

await to merge until after next release to make it more isolated, rel 18.19.0+


waifu2x-ncnn-vulkan linux failing with zero return code

I am using waifu2x-ncnn-vulkan linux on a system running Ubuntu Mate.  Occasionally, waifu2x-ncnn-vulkan will fail with something like this:
fopen waifu2x-ncnn-vulkan-20200818-linux/waifu2x-ncnn-vulkan/models-upconv_7_photo/noise1_scale2.0x_model.param failed
fopen waifu2x-ncnn-vulkan-20200818-linux/waifu2x-ncnn-vulkan/models-upconv_7_photo/noise1_scale2.0x_model.bin failed
find_blob_index_by_name Input1 failed
find_blob_index_by_name Eltwise4 failed

But when it does so, it still returns a zero return code. I need it to return with a non-zero status so that I can catch those fails and re-process those images separately.

https://github.com/nihui/waifu2x-ncnn-vulkan/issues/109

https://github.com/nihui/waifu2x-ncnn-vulkan/issues/109


AudioRecorder.onProgress not being called on iOS simulator

Version
Tell us which versions you are using ( you can see the versions in your package.json ):
react-native-audio :  "^4.3.0"
react-native : "0.62.0-rc.1"
react :  "16.11.0"
using react-native-sound ? Yes
Expected behaviour :
Setting up a callback with AudioRecorder.onProgress should trigger the callback after AudioRecorder.startRecording() is called
Actual behaviour
While this does appear to work on my android physical device, it does NOT appear to work on my iOS simulator
Steps to reproduce
I'll just paste the code:
    promptSpeaking () {
            AudioRecorder.prepareRecordingAtPath(this.filePath, { MeteringEnabled: true })

            AudioRecorder.onProgress = (data) => {
                console.log("progress")
            }

            this.animateWithSound({
                callback: ( ) => {
                    this.finishAnimateWithSound()
                    AudioRecorder.startRecording()
                    setTimeout(this.stopRecording, 5000)
                }
            })
        },

I can confirm stopRecording gets called after 5 seconds, which means AudioRecorder.startRecording must have been called too. However I don't see any "progress" logs in the console.
Link to a git repo that reproduces bug
https://github.com/bmbmjmdm/wesley-app

I found the problem! The file could not be created/written to because I was not explicitly setting the proper AudioEncoding
  AudioEncoding: "aac"
});```


Release v1.0.0: Docker volumes (breaking changes)

Docker volumes
READFIRST
This branch is constantly being rebased from master until final merge, therefore requires git force pushing. Keep this in mind when checking it out via git.
Feedback
To move on faster and pain-free, please try out this branch and provide your Feedback. I will update the description correspondingly.

[x] Tested on Linux
[x] Tested on Windows (native)
[x] Tested on MacOS (native)
[x] Tested on Windows (Docker Toolbox)
[ ] Tested on MacOS (Docker Toolbox)

Also ensure the following has been done:

[ ] Ensure that named volumes have their own configuration for mount options (similar to MOUNT_OPTIONS)

Notes on this PR
This PR will be merged into release/v1.0.0
DESCRIPTION
This PR will move all data directories (MySQL, PostgreSQL, MongoDB and others) to Docker volumes for best-practice and compatibility reasons on different operating systems.
This is mainly a huge step for Windows user as they seem to have issues with current Docker mounts over and over again. However it should also generally increase performance for all other systems.
IMPORTANT
When using this branch, you will loose all you current data for MySQL, PostgreSQL and MongoDB, so ensure to make a backup first.

Backup Mysql
Backup PostgreSQL
Backup MongoDB

Once you have backed up everything, start the Devilbox from this branch and import your data.
Fixes

Refs: https://github.com/cytopia/devilbox/issues/175
Refs: https://github.com/cytopia/devilbox/issues/382

Usage
Stop the Devilbox
docker-compose stop
docker-compose rm

Update Git and change to the new branch
git fetch --all --prune
git checkout docker-volumes
git pull origin docker-volumes

Compare env-example with .env for changes
Start the Devilbox
docker-compose up

Work on Docker Volumes will be prioritized and to ensure backwards compatibility with current users tagged separately on the Release branch, hence v0.x and v1.x will co-exist simultaneously until everything has been furnished.

Use the following branch (which wil also receive tagging): https://github.com/cytopia/devilbox/pull/416


Forgive non-color values their tiny errors.

I was having problems making mesh gradients, with ratiox and ratioy values turning in -6.1343 e-8 (A tiny negative value)
The error message was unhelpful because the problem wasn't colors, it was ratios, but it looks like that code got reused and the same error message was used.
This MR adds a clamp, this helps fix everything.

Needs clang-formatting.
Also I wonder if a cleaner solution would be to have the clamp where the ratios are computed. Typically it is better to fix erroneous data as early as possible.


code: Integrate cosign in tests

Is your feature request related to a problem? Please describe.
Integrate cosing in tests to smoke out api changes

flags to use for attest testing

--allow-insecure-registry
--insecure-skip-verify
--no-tlog-upload

This repo will be archived so closing this issue.


smplayer: 17.9.0 -> 18.2.0

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
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 nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Failure on aarch64-linux (full log)
Partial log (click to expand)
sh: -d: not found
sh: -d: not found
make[1]: Entering directory '/build/smplayer-18.2.0/src'
inputdvddirectory.ui -o .ui/ui_inputdvddirectory.h
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: inputdvddirectory.ui: command not found
make[1]: *** [Makefile:1810: .ui/ui_inputdvddirectory.h] Error 127
make[1]: Leaving directory '/build/smplayer-18.2.0/src'
make: *** [Makefile:28: src/smplayer] Error 2
builder for '/nix/store/bcqi1p036psi9p9nbbnzqr2knzdwiw4p-smplayer-18.2.0.drv' failed with exit code 2
error: build of '/nix/store/bcqi1p036psi9p9nbbnzqr2knzdwiw4p-smplayer-18.2.0.drv' failed

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking /nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0/bin/simple_web_server
shrinking /nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0/bin/smplayer
gzipping man pages under /nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0/share/man/
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0/bin
patching script interpreter paths in /nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0
checking for references to /tmp/nix-build-smplayer-18.2.0.drv-0 in /nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/caq5wvlrvgnqzinq4i666jnyd7d3wzq2-smplayer-18.2.0

Failure on x86_64-linux (full log)
Partial log (click to expand)

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Warning: Transient problem: HTTP error Will retry in 4 seconds. 1 retries
Warning: left.

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   311    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 500 Internal Server Error
error: cannot download smplayer-18.2.2.tar.bz2 from any mirror
builder for ‘/nix/store/1fqrqw9kyzpqd7f2jxhy0y5alzyj4cc6-smplayer-18.2.2.tar.bz2.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/dwyiq80xlbq9kmylv5yqhf4inq2wlymx-smplayer-18.2.2.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/dwyiq80xlbq9kmylv5yqhf4inq2wlymx-smplayer-18.2.2.drv’ failed

Failure on aarch64-linux (full log)
Partial log (click to expand)
checking for references to /build in /nix/store/7g6hi2ja767x8nhx0v32yjxqzg5rzm0h-qtscript-5.10.0-dev...
postPatchMkspecs
fixQtModulePaths: Fixing module paths in `/nix/store/7g6hi2ja767x8nhx0v32yjxqzg5rzm0h-qtscript-5.10.0-dev/mkspecs/modules/qt_lib_scripttools_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/7g6hi2ja767x8nhx0v32yjxqzg5rzm0h-qtscript-5.10.0-dev/mkspecs/modules/qt_lib_scripttools.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/7g6hi2ja767x8nhx0v32yjxqzg5rzm0h-qtscript-5.10.0-dev/mkspecs/modules/qt_lib_script_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/7g6hi2ja767x8nhx0v32yjxqzg5rzm0h-qtscript-5.10.0-dev/mkspecs/modules/qt_lib_script.pri'...
postPatchMkspecs
postPatchMkspecs
cannot build derivation '/nix/store/pzw5104j7fs2bjg9xrrywddj17sd5isf-smplayer-18.2.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/pzw5104j7fs2bjg9xrrywddj17sd5isf-smplayer-18.2.2.drv' failed

@grahamcofborg build smplayer

Success on aarch64-linux (full log)
Partial log (click to expand)
shrinking /nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2/bin/simple_web_server
shrinking /nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2/bin/smplayer
gzipping man pages under /nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2/share/man/
strip is /nix/store/ggjc1mfsicyq31xlg5d51hl9lc21wxnv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2/bin
patching script interpreter paths in /nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2
checking for references to /build in /nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2...
postPatchMkspecs
postPatchMkspecs
/nix/store/m6jjq45w9b0ccssmz1pfq89fcxlhb1qv-smplayer-18.2.2

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking /nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2/bin/simple_web_server
shrinking /nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2/bin/smplayer
gzipping man pages under /nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2/share/man/
strip is /nix/store/97ahf6sg6mwnl98bksrjvbp4zb4yq44n-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2/bin
patching script interpreter paths in /nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2
checking for references to /tmp/nix-build-smplayer-18.2.2.drv-0 in /nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2...
postPatchMkspecs
postPatchMkspecs
/nix/store/sz65fp3dbk8zdmdrhil3ia1963ns5s55-smplayer-18.2.2


Channel count seems confusing / misleading

The output starts with You opened XX channels, closed XY channels, ....
I think this is a bit misleading. As far as I understand, XX and YY mean the below:

XX: number of LIVE channels that are self-initiated (vs. opened by peers)
YY: number of CLOSED channels that were originally opened by ourselves

Thus, shouldn't the output say instead:
You opened XX+YY channels, out of which YY are now closed, ....
?
PR here: https://github.com/Czino/lnstats/pull/3

Indeed, I see that flaw in my previous assumption. Well spotted 👍


fixsubquery unnesting get wrong result if correlated conjuncts is not slot_a = slot_b

pick from https://github.com/apache/doris/pull/37644
Proposed changes
Issue Number: close #xxx

run buildall

run buildall


Auth completely unusable after upgrade to 0.103

Home Assistant release with the issue:
0.103
Last working Home Assistant release (if known):
0.102
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Integration:
Auth
Description of problem:
Since the upgrade to 0.103, auth is completely broken for me. A previously logged in browser shows "Error connecting to Homeassistant", a new browser shows just an "Internal error" below the HA logo.
I tried to remove all auth related files under .storage and even completely removing the .storage folder. As a result, i get the form for creating an initial user account, however after filling and submitting, absolutely nothing happens. The auth-Files aren't even touched. They should be readable by HA since the whole .storage folder was recreated by HA.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
homeassistant:
  customize: !include customize.yaml
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 51.499922
  longitude: 7.552430
  # Impacts weather/sunrise data
  elevation: 114
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Berlin

#------------------- Web frontend configuration ----------------

# Enable the API
api:

# Enables auth
#auth:

Traceback (if applicable):

Additional information:

You have commented out the auth integration in your config…

It says so in the documentation: https://www.home-assistant.io/docs/authentication/ last section.

hmm, well it does get automatically loaded by the frontend integration (Which I don't see in your config either)

I guess op has frontend somewhere, otherwise he will not get account creation page.
Is there any log files you can share with us?


Management Policies Support incomplete?

What happened?

I have enabled the  --enable-management-policies using a DeploymentRuntimeConfig for the ArgoCD provider.
The logs show that is enabled during startup
2024-08-14T20:25:16Z    INFO    provider-argocd Alpha feature enabled   {"flag": "EnableAlphaManagementPolicies"}

Proof flag is enabled on the pod
spec:
  containers:
  - args:
    - --enable-management-policies
    - -d
    env:

However, Project and Repository resources complain that the managementPolicies I pass in are not recognized
2024-08-15T14:16:31Z    INFO    provider-argocd Alpha feature enabled   {"flag": "EnableAlphaManagementPolicies"}
2024-08-15T14:16:31Z    DEBUG   provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Observe Update Delete Create LateInitialize]   {"controller": "managed/repository", "request": {"name":"xyz-dev-9fgb8-argocd-repo-helm"}, "uid": "15f9b21c-f228-42f6-9835-6b99bf8121ab", "version": "38365739", "external-name": "https://***********/api/v4/projects/160/packages/helm/stable"}
2024-08-15T14:16:31Z    DEBUG   events  `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Observe Update Delete Create LateInitialize]   {"type": "Warning", "object": {"kind":"Repository","name":"xyz-dev-9fgb8-argocd-repo-helm","uid":"15f9b21c-f228-42f6-9835-6b99bf8121ab","apiVersion":"repositories.argocd.crossplane.io/v1alpha1","resourceVersion":"38365739"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z    DEBUG   provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Delete Create LateInitialize Observe Update]   {"controller": "managed/project", "request": {"name":"xyz-argocd-prj-dev"}, "uid": "4ce50669-9c11-4b31-816a-394b56a43e49", "version": "38365709", "external-name": "xyz-argocd-prj-dev"}
2024-08-15T14:16:31Z    DEBUG   events  `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Delete Create LateInitialize Observe Update]   {"type": "Warning", "object": {"kind":"Project","name":"xyz-argocd-prj-dev","uid":"4ce50669-9c11-4b31-816a-394b56a43e49","apiVersion":"projects.argocd.crossplane.io/v1alpha1","resourceVersion":"38365709"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z    DEBUG   provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete]   {"controller": "managed/repository", "request": {"name":"xyz-dev-9fgb8-argocd-repo-git"}, "uid": "0b5e76f9-b0b9-4bed-b4a3-047c9ba58482", "version": "38365724", "external-name": "https://***********/amdocs/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.git"}
2024-08-15T14:16:31Z    DEBUG   events  `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete]   {"type": "Warning", "object": {"kind":"Repository","name":"xyz-dev-9fgb8-argocd-repo-git","uid":"0b5e76f9-b0b9-4bed-b4a3-047c9ba58482","apiVersion":"repositories.argocd.crossplane.io/v1alpha1","resourceVersion":"38365724"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z    DEBUG   provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create]   {"controller": "managed/project", "request": {"name":"xyz-argocd-prj-dev"}, "uid": "4ce50669-9c11-4b31-816a-394b56a43e49", "version": "38369021", "external-name": "xyz-argocd-prj-dev"}
2024-08-15T14:16:31Z    DEBUG   events  `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create]   {"type": "Warning", "object": {"kind":"Project","name":"xyz-argocd-prj-dev","uid":"4ce50669-9c11-4b31-816a-394b56a43e49","apiVersion":"projects.argocd.crossplane.io/v1alpha1","resourceVersion":"38369021"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z    DEBUG   provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete]   {"controller": "managed/repository", "request": {"name":"xyz-dev-9fgb8-argocd-repo-git"}, "uid": "0b5e76f9-b0b9-4bed-b4a3-047c9ba58482", "version": "38369023", "external-name": "https://***********/amdocs/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.git"}
2024-08-15T14:16:31Z    DEBUG   events  `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete]   {"type": "Warning", "object": {"kind":"Repository","name":"xyz-dev-9fgb8-argocd-repo-git","uid":"0b5e76f9-b0b9-4bed-b4a3-047c9ba58482","apiVersion":"repositories.argocd.crossplane.io/v1alpha1","resourceVersion":"38369023"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z    DEBUG   provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create]   {"controller": "managed/project", "request": {"name":"xyz-argocd-prj-dev"}, "uid": "4ce50669-9c11-4b31-816a-394b56a43e49", "version": "38369026", "external-name": "xyz-argocd-prj-dev"}
2024-08-15T14:16:31Z    DEBUG   events  `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create]   {"type": "Warning", "object": {"kind":"Project","name":"xyz-argocd-prj-dev","uid":"4ce50669-9c11-4b31-816a-394b56a43e49","apiVersion":"projects.argocd.crossplane.io/v1alpha1","resourceVersion":"38369026"}, "reason": "CannotUseInvalidManagementPolicy"}

Looking at the trace:
NAME                                                                                RESOURCE                                                                     SYNCED   READY   STATUS
XIsvContinuousDeployment/xyz-dev-9fgb8                                                                                True     True    Available
<omitted>
├─ Project/xyz-argocd-prj-dev                                                                        xyz-argocd-prj-dev                                                           False    True    ReconcileError: `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe]
├─ Project/xyz-dev-9fgb8-xyz-dev-gitlab-prj                                                          xyz-dev-9fgb8-xyz-dev-gitlab-prj                                             True     True    Available
├─ Repository/xyz-dev-9fgb8-argocd-repo-git                                                          xyz-dev-9fgb8-argocd-repo-git                                                False    True    ReconcileError: `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe]
└─ Repository/xyz-dev-9fgb8-argocd-repo-helm                                                         xyz-dev-9fgb8-argocd-repo-helm                                               False    True    ReconcileError: `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe]

How can we reproduce it?
apiVersion: repositories.argocd.crossplane.io/v1alpha1
kind: Repository
metadata:
  annotations:
    crossplane.io/composition-resource-name: xyz-dev-9fgb8-argocd-repo-git
    crossplane.io/external-create-pending: "2024-08-08T22:47:14Z"
    crossplane.io/external-create-succeeded: "2024-08-08T22:47:14Z"
    crossplane.io/external-name: https://xxxxxxxxxxxxxxxxxxxxxx/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.git
  creationTimestamp: "2024-08-08T22:47:14Z"
  finalizers:
  - finalizer.managedresource.crossplane.io
  generateName: xyz-dev-9fgb8-
  generation: 5
  labels:
    crossplane.io/claim-name: xyz-dev
    crossplane.io/claim-namespace: isv-onboarding-continuous-deployment
    crossplane.io/composite: xyz-dev-9fgb8
  name: xyz-dev-9fgb8-argocd-repo-git
  ownerReferences:
  - apiVersion: onboarding.gitops.k8s.dish.io/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: XIsvContinuousDeployment
    name: xyz-dev-9fgb8
    uid: 0b6192f0-236a-4699-9faf-9cd731ea1934
  resourceVersion: "38369023"
  uid: 0b5e76f9-b0b9-4bed-b4a3-047c9ba58482
spec:
  deletionPolicy: Orphan
  forProvider:
    enableLfs: false
    enableOCI: false
    inheritedCreds: true
    insecure: true
    name: xyz-argocd-prj-dev-git-repo
    project: xyz-argocd-prj-dev
    repo: https://xxxxxxxxxx/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.git
    type: git
    username: argo-read-repo
  managementPolicies:
  - Create
  - LateInitialize
  - Observe
  - Update
  - Delete
  providerConfigRef:
    name: argocd-provider-config
status:
  atProvider:
    connectionState:
      attemptedAt: "2024-08-13T17:35:05Z"
      status: Successful
  conditions:
  - lastTransitionTime: "2024-08-08T22:47:14Z"
    reason: Available
    status: "True"
    type: Ready
  - lastTransitionTime: "2024-08-15T14:16:31Z"
    message: '`spec.managementPolicies` is set to a non-default value but the feature
      is not enabled: [Create LateInitialize Observe Update Delete]'
    reason: ReconcileError
    status: "False"
    type: Synced

What environment did it happen in?
Crossplane version: 1.16
Crossplane Provider argocd version: v0.8.0
Cloud provider or hardware configuration: AWS EKS
Kubernetes version (use kubectl version): 1.29

@MisterMX do you have a rough timeline for the next release?

There is no roadmap for releases. We ususally schedule them once there are changes to be released.

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-argocd
spec:
  package: xpkg.upbound.io/crossplane-contrib/provider-argocd:v0.9.1

How do you pass the flag here to enable this feature?

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-argocd
spec:
  package: xpkg.upbound.io/crossplane-contrib/provider-argocd:v0.9.1

How do you pass the flag here to enable this feature?

This should give you what you need:
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-argocd
  annotations:
    argocd.argoproj.io/sync-wave: "-17"
spec:
  package: "{{ .Values.image.repository }}/crossplane-contrib/provider-argocd:{{ .Values.argocdProvider.image.tag }}"
  runtimeConfigRef:
    name: argocd-runtime-config

---
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
  name: argocd-runtime-config
  annotations:
    argocd.argoproj.io/sync-wave: "-20"
spec:
  deploymentTemplate:
    spec:
      selector: {}
      template:
        spec:
          containers:
            - name: package-runtime
              args:
                - --enable-management-policies
                {{ if .Values.argocdProvider.debug }}
                - -d
                {{ end }}


Python SDK catching but not sending errors

I just put sentry on my backend flask server, and it was working, but now it seems an error has been thrown:
2019-11-01 13:55:17  [sentry] DEBUG: Sending event, type:null level:error event_id:redacted project:redacted host:sentry.io
2019-11-01 13:55:17 2019-11-01 13:55:17,524 : ERROR : Exception on /redactedRoute [GET]#012Traceback (most recent call last):#012  File "site-packages/flask/app.py", line 2446, in wsgi_app#012    response = self.full_dispatch_request()#012  File "/site-packages/flask/app.py", line 1951, in full_dispatch_request#012    rv = self.handle_user_exception(e)#012  File "/site-packages/flask/app.py", line 1820, in handle_user_exception#012    reraise(exc_type, exc_value, tb)#012  File "/site-packages/flask/_compat.py", line 39, in reraise#012    raise value#012  File "/site-packages/flask/app.py", line 1949, in full_dispatch_request#012    rv = self.dispatch_request()#012  File "/site-packages/flask/app.py", line
2019-11-01 13:55:17
2019-11-01 13:55:17  [sentry] INFO: event processor (<function DedupeIntegration.setup_once.<locals>.processor at 0x7f78f50cc598>) dropped event ({'level': 'error', 'exception': {'values': [{'module': None, 'type': 'TypeError', 'value': "func_obfuscated_7812789() missing 1 required positional argument: 'field_obfuscated_824998234'", 'mechanism': {'type': 'logging', 'handled': True}, 'stacktrace': {'frames': [{'filename': 'flask/app.py', 'abs_path': '/site-packages/flask/app.py', 'function': 'wsgi_app', 'module': 'flask.app', 'lineno': 2446, 'pre_context': ['        ctx = self.request_context(environ)', '        error = None', '        try:', '            try:', '                ctx.push()'], 'context_line': '                response = self.full_dispatch_request()', 'post_context': ['            except Exception as e:', '                error = e', '                response = self.handle_exception(e)', '            except:  # noqa: B001', '
2019-11-01 13:55:17

Yet my dashboard displays the yay no errors animation.
Please help!
And yes, I did redact some sensitive info

Oh, my bad, not sure why I put this in this repository.  Can somebody please transfer it 🤕


feat: add the optional argument cache to the constructor

Hi
The pull request related to #41.
Best regards

Apologies for the delay @tmorin :pray: happy to merge this, thank you!
closes #41

@shamb0t no problems.


⚠ Bofrost.at has degraded performance

In 5172eb9, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1460 ms

Resolved: Bofrost.at performance has improved in 9c8748c after 42 minutes.


installation

Please, I would appreciate if you could explain with a bit more details how to "install" the plugin into a base Freeboard panel.
Thanks in advance.

Are you running Freeboard locally, or using the site at https://freeboard.io

I'm running Freeboard locally. I followed this instructions:
<< Include the widget.ragIndicator.js in your main web page for freeboard >>
OK
<<after the base 'freeboard.widgets.js' file >>
There's no such file, isn't it?
<>
Like which ones?
<< This plugin uses the http://jquerykeyframes.github.io/jQuery.Keyframes/ plugin to create keyframes for the flashing lights. Copy the jquery.keyframes/jquery.keyframes.min.js file to the plugins/thirdparty folder of your Freeboard installation. >>
OK

As long as you're referencing the widget.ragIndicator.js file in your index.html file after all the freeboard javascript files, you should be ok.  Is it loading the file ok? You should see 'RAG Indicator' in the 'Type' dropdown list when adding a widget to a pane.  Are you seeing this?

I've added it in the index.html file:
head.js("widget.ragIndicator.js", ......)
But not after << all the freeboard javascript files >>; what do you mean?
Only doing this, I can see the widget listed in the dropdown menu, but when I select it and input the boxes, after pressing OK, I can't see anything in the panel.

Sorry for the late reply. It might be having an issue loading the js file for the flashing light. Are there any errors in the console?

Hi daleroy,
Adding to this question, how would one load the plugin into freeboard.io? I'm assuming you work through the developer console window?


KeyError after upgrading to 0.3.1

Describe the bug
Issue upgrading to 0.3.1.
Getting the following error after upgrading from 0.3.0 to 0.3.1
** (EXIT from #PID<0.67704.0>) an exception was raised:
         ** (Ash.Error.Unknown)
     Bread Crumbs:
       > Exception raised in bulk update: Level.Resources.User.update
       > Exception raised in: Level.Resources.User.update
       > Exception raised in: Level.Resources.GroupMember.create

     Unknown Error

     * ** (KeyError) key :changed? not found in: %{
       private: %{actor: nil, authorize?: true, pre_flight_authorization?: false},
       data_layer: %{use_atomic_update_data?: true}
     }
       (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:76: anonymous fn/1 in AshPaperTrail.Resource.Changes.CreateNewVersion.bulk_build_notifications/1
       (elixir 1.18.0) lib/enum.ex:4386: Enum.filter_list/2
       (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:73: AshPaperTrail.Resource.Changes.CreateNewVersion.bulk_build_notifications/1
       (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:39: AshPaperTrail.Resource.Changes.CreateNewVersion.after_batch/3
       (ash 3.4.48) lib/ash/actions/update/bulk.ex:930: anonymous fn/6 in Ash.Actions.Update.Bulk.run_atomic_after_batch_hooks/5
       (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
       (ash 3.4.48) lib/ash/actions/update/bulk.ex:923: anonymous fn/5 in Ash.Actions.Update.Bulk.run_atomic_after_batch_hooks/5
       (stdlib 6.2) maps.erl:860: :maps.fold_1/4
       (ash 3.4.48) lib/ash/actions/update/bulk.ex:902: Ash.Actions.Update.Bulk.run_atomic_after_batch_hooks/5
       (ash 3.4.48) lib/ash/actions/update/bulk.ex:604: Ash.Actions.Update.Bulk.do_atomic_update/5
       (ash 3.4.48) lib/ash/data_layer/data_layer.ex:432: Ash.DataLayer.transaction/4
       (ash 3.4.48) lib/ash/actions/update/bulk.ex:255: Ash.Actions.Update.Bulk.run/6
       (ash 3.4.48) lib/ash/actions/update/update.ex:158: Ash.Actions.Update.run/4
       (ash 3.4.48) lib/ash.ex:2641: Ash.update/3
       (level 0.1.0) lib/level/resources/group_member/changes/set_active_member.ex:30: anonymous fn/2 in Level.Resources.GroupMember.Changes.SetActiveMember.change/3
       (ash 3.4.48) lib/ash/changeset/changeset.ex:4017: anonymous fn/2 in Ash.Changeset.run_after_actions/3
       (elixir 1.18.0) lib/enum.ex:4964: Enumerable.List.reduce/3
       (elixir 1.18.0) lib/enum.ex:2600: Enum.reduce_while/3
       (ash 3.4.48) lib/ash/changeset/changeset.ex:3492: anonymous fn/3 in Ash.Changeset.with_hooks/3
       (ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1400: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
             (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:76: anonymous fn/1 in AshPaperTrail.Resource.Changes.CreateNewVersion.bulk_build_notifications/1
             (elixir 1.18.0) lib/enum.ex:4386: Enum.filter_list/2
             (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:73: AshPaperTrail.Resource.Changes.CreateNewVersion.bulk_build_notifications/1
             (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:39: AshPaperTrail.Resource.Changes.CreateNewVersion.after_batch/3
             (ash 3.4.48) lib/ash/actions/update/bulk.ex:930: anonymous fn/6 in Ash.Actions.Update.Bulk.run_atomic_after_batch_hooks/5
             (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
             (ash 3.4.48) lib/ash/actions/update/bulk.ex:923: anonymous fn/5 in Ash.Actions.Update.Bulk.run_atomic_after_batch_hooks/5
             (stdlib 6.2) maps.erl:860: :maps.fold_1/4
             (ash 3.4.48) lib/ash/actions/update/bulk.ex:902: Ash.Actions.Update.Bulk.run_atomic_after_batch_hooks/5
             (ash 3.4.48) lib/ash/actions/update/bulk.ex:604: Ash.Actions.Update.Bulk.do_atomic_update/5
             (ash 3.4.48) lib/ash/data_layer/data_layer.ex:432: Ash.DataLayer.transaction/4
             (ash 3.4.48) lib/ash/actions/update/bulk.ex:255: Ash.Actions.Update.Bulk.run/6
             (ash 3.4.48) lib/ash/actions/update/update.ex:158: Ash.Actions.Update.run/4
             (ash 3.4.48) lib/ash.ex:2641: Ash.update/3
             (level 0.1.0) lib/level/resources/group_member/changes/set_active_member.ex:30: anonymous fn/2 in Level.Resources.GroupMember.Changes.SetActiveMember.change/3
             (ash 3.4.48) lib/ash/changeset/changeset.ex:4017: anonymous fn/2 in Ash.Changeset.run_after_actions/3
             (elixir 1.18.0) lib/enum.ex:4964: Enumerable.List.reduce/3
             (elixir 1.18.0) lib/enum.ex:2600: Enum.reduce_while/3
             (ash 3.4.48) lib/ash/changeset/changeset.ex:3492: anonymous fn/3 in Ash.Changeset.with_hooks/3
             (ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1400: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4

To Reproduce
We have AshPaperTrail set up to track our User resource. We're attempting to update an instance of the User resource inside an after_action callback in a custom Ash.Resource.Change.
Expected behavior
Don't do that?
Runtime

Elixir version: 1.17.2
Erlang version: 27.0.1
OS: MacOS
Ash version: 3.4.48
any related extension versions

For context here's the change function we're running:
  @impl Change
  def change(changeset, _opts, _context) do
    Ash.Changeset.after_action(
      changeset,
      fn %{
           attributes: %{
             user_id: user_id
           }
         },
         %GroupMember{id: id} = result ->
        {:ok, user} = Ash.get(User, user_id)

        case user do
          %User{active_member_id: nil} ->
            Logger.info("Setting active member id for user #{user.id}")

            User.update(user, %{active_member_id: id})

          %User{active_member_id: _} ->
            Logger.info("Active member already set for user #{user.id}, skipping")
        end

        {:ok, result}
      end
    )
  end

Probably related issue here:
     ** (Ash.Error.Unknown)
     Bread Crumbs:
       > Exception raised in: Heimdall.Members.Member.create

     Unknown Error

     * ** (Protocol.UndefinedError) protocol Enumerable not implemented for ~D[1996-04-18] of type Date (a struct). This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Iter, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Rewrite, Stream, StreamData, Timex.Interval
       (elixir 1.17.3) lib/enum.ex:1: Enumerable.impl_for!/1
       (elixir 1.17.3) lib/enum.ex:166: Enumerable.reduce/3
       (elixir 1.17.3) lib/enum.ex:4423: Enum.map/2
       (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:243: AshPaperTrail.Resource.Changes.CreateNewVersion.extract_casted_params_values/2
       (ash_paper_trail 0.3.1) lib/resource/changes/create_new_version.ex:184: anonymous fn/3 in AshPaperTrail.Resource.Changes.CreateNewVersion.build_notifications/3

...running just a plain create.
I bisected it down to https://github.com/ash-project/ash_paper_trail/commit/03ee06f08d574183f3085ecf4e5e135f67298914.

We got this error with 0.3.1.
** (Ash.Error.Unknown)
Bread Crumbs:
  > Exception raised in bulk create: Azir.Resources.Setting.create

Unknown Error

* ** (FunctionClauseError) no function clause matching in AshPaperTrail.Resource.Changes.CreateNewVersion.after_batch/3
  (ash_paper_trail 0.3.1) AshPaperTrail.Resource.Changes.CreateNewVersion.after_batch([], [], %Ash.Resource.Change.Context{actor: nil, tenant: nil, authorize?: true, tracer: [AshAppsignal], bulk?: true})
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:1553: anonymous fn/8 in Ash.Actions.Create.Bulk.run_bulk_after_changes/8
  (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:1443: Ash.Actions.Create.Bulk.process_results/11
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:625: Ash.Actions.Create.Bulk.do_handle_batch/13
  (ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1400: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
  (db_connection 2.7.0) lib/db_connection.ex:1756: DBConnection.run_transaction/4
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:509: Ash.Actions.Create.Bulk.handle_batch/10
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:180: anonymous fn/13 in Ash.Actions.Create.Bulk.do_run/5
  (elixir 1.17.3) lib/stream.ex:613: anonymous fn/4 in Stream.map/2
  (elixir 1.17.3) lib/stream.ex:1879: anonymous fn/3 in Enumerable.Stream.reduce/3
  (elixir 1.17.3) lib/stream.ex:289: Stream.after_chunk_while/2
  (elixir 1.17.3) lib/stream.ex:1908: Enumerable.Stream.do_done/2
  (elixir 1.17.3) lib/stream.ex:1891: Enumerable.Stream.do_each/4
  (elixir 1.17.3) lib/stream.ex:690: Stream.run/1
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:207: Ash.Actions.Create.Bulk.do_run/5
  (ash 3.4.48) lib/ash/actions/create/bulk.ex:83: Ash.Actions.Create.Bulk.run/5
  (ash 3.4.48) lib/ash.ex:2222: Ash.bulk_create!/4

Can you please try main of ash and ash_paper_trail? Thanks

Success. My tests passed.
      {:ash, git: "https://github.com/ash-project/ash.git", override: true},
      {:ash_paper_trail, github: "ash-project/ash_paper_trail", override: true},

  "ash": {:git, "https://github.com/ash-project/ash.git", "f847a4b653571352a15e6802df880c95faaf49c5", []},
  "ash_paper_trail": {:git, "https://github.com/ash-project/ash_paper_trail.git", "865aa2eac6551edf8e3d39458e2cb56140913ee4", []},

🥳 They will be released this week or next week then


Complete(?) list of irregular protocol actions not subject to the GSM

We should make sure this is a complete list. Potentially worth pulling this out into a separate document as well. It's more general information that is useful outside of the details of how the GSM works.

In terms of action,

We should make sure this is a complete list.

I agree, but I think it's more important to get this initial list merged. We can always update it later.

Potentially worth pulling this out into a separate document as well.

Sure, happy to do this if there is consensus. Can you suggest where it should go?

Thanks Josh, closing this as it's now being covered by https://github.com/makerdao/governance-manual/pull/233


Signup issue

If there is a signup issue, and the backend returns "invalid token"; then we should probably clear the signup state so the user can either retry signing up, or put in their email address again (in which they get a token to continue signing up).


Star detail

A detailed page for a star. Reached by going to localhost:5000/starname. For example localhost:5000/HD 202206 (spaces are allowed). This has been requested in issue #29.

[x] Make the routing to the page work
[x] Write the stellar information
[ ] Merge with exoplanetEU (easy)
[ ] Loop through the exoplanets and write that to the page (intermediate)
[ ] Available by clicking the stellar name in the table (easy)

So you want to direct them to our "details" page rather than SIMBAD. (last point)?

I am not sure about the last point. Maybe being able to direct to Simbad from the detailed page?

Sounds good. Could then add both the Simbad link and the exoplanet EU link.

Good idea. I added the checkboxes on that.

Not sure what to do about the stars that does not exists (I write about this in #29). Basically the ExoplanetEU star name and SC star name does not match up.

Just looking at the hz1, hz2 values and I took from the code that...

hz1 (the inner boundary) is given by hz with model=2, which corresponds to "# Runaway greenhouse parameters"

hz2 (the outer boundary) is given by hz with model=4, which corresponds to "# Maximum greenhouse parameters"

There is no user choice to select the hz model (e.g. Mars, Venus) (Not suggesting that there should be)

Is this what it is supposed to do?

I think for now, that is fine. We can consider doing something more sophisticated. This is also just a prrof of concept of what can be done.
 This will probably be the last commit for this PR.

If you can have a look at some point and open a few of the stars. Some won't show planetary details anymore, because the merge failed. What do you think?

I don't know if it is supposed to do this but when the browser width is reduced the planet parameters drop underneath the stellar parameters.
I do see that some don't show planetary parameters (python2). On python3 these cause an attribute error. AttributeError: 'str' object has no attribute 'decode'
in this line d['plName'] = list(map(lambda s: s.decode(), d['plName'])) but I can fix this later.
Have you considered list comprehensions rather than list map and lambda?
e.g. here d['plName'] = [s.decode() for s in d['plName']]
This won't solve the decode issue here but is more "pythonic" and I find easier to read.
I like how the star and planet names link to the simbad and exoplanetEU

Other informations  -> Other information  or Other info

For the decode part: this is done because it's loaded as bytes I think. And using decode will change it to str. I guess we can just check the type of plName before trying to use decode.

Didn't have any plans for how it should look like when the browser width is reduced

Fixed the s.decode part. added a conditional   s.decode if isinstance(s, bytes) esle s
In python2

isistance(s, str) = isinstance(s, bytes) = True,

but in python3

isinstance(s,bytes)=False

Is everything ready to merge?

Yes I think so.


Fybr and parking prediction vaidation

AC:

[ ] nightly check after the parking prediction model is retrained
[ ] validates that there isn't more than a .05% change from the model the day before
[ ] validates that Fybr data doesn't have more than a XX% change
[ ] notifies in Prod Alerts if there is too big of a change

TN:
Amigos:
@JarredOlson , @carriebrinkley

Fybr Data is likely to be very different from our model predictions at first. Not sure if we can tie success of the nightly train to how close they are.


Feature request: saving/loading latents after sampling

Using the inbuilt save/load latent with vae tiling enabled results in the error:
Could not run 'aten::slow_conv3d_forward' with arguments from the 'CUDA' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee
And with vae tiling off:
Sizes of tensors must match except in dimension 2. Expected size 60 but got size 12 for tensor number 1 in the list.
Would be super useful to have a smaller GPU sampling videos while 30/4090 does the decoding and interpolation stuff, assuming this isn't a comfy limitation. Or even just saving a couple minutes of sampling because OOM in the final stretch

after the first generation i get with vae tiling on - Sizes of tensors must match except in dimension 1. Expected size 60 but got size 65 for tensor number 4 in the list.
if you restart comfyui fully so it unloads out of your ram, and go back in, that seems to fix the issue for that generation "if both issues are related". im guessing something is being partially passed into the latent value, possibly from keeping some of the previouly used data from the 1st generation or just that specific latent var that isnt resetting correctly.
unloading the model alone doesnt seem to work, only a full restart of comfyui.

These issues should be resolved by now, also it is possible to use the built in Save/Load latent node with this.


Benchmark runner (WIP)

Broke ground on a barebones benchmark runner based on the benchmarks that currently exist.
I was thinking about having benchmarks that capture average ops/second over a set time span (10s?) and use various log sizes (1, 100, 1000, 10000, 50000) for reads and certain static methods.
Let me know if you have a better approach to fromEntryHash,fromJSON, etc where ops/second are not as meaningful for larger log sizes.
Then we can cache the results (via committing a file to the repo? or maybe on circle somehow) so that circle CI can run and compare PRs to master.
Let me know what you think about the overall approach — then I can round out this PR to separate the benchmarks.js file, add all the benchmark tests for the public & static methods, and setup fancy logging.
Todo

[x] logging
[x] parse args for test name
[ ] cache baseline results (circleci)
[ ] compare/delta baseline results to cache (circleci)
[x] clean report
[x] organize benchmarks folder
[x] add npm scripts

Benchmarks

[x] values
[x] heads
[x] tails
[x] tailHashes
[x] get
[x] has
[x] traverse
[x] append
[x] join
[x] toString
[x] toMultihash
[x] fromMultihash
[x] fromEntryHash
[x] fromEntry
[x] findHeads
[ ] findTails (duplicate of tails?)
[ ] findTailHashes (duplicate of tailHashes?)

Ref: orbitdb/ipfs-log#140

@mistakia fantastic! 👍❤ I really like the approach you've taken to create a benchmark runner. It'll be much easier to add more benchmarks in the future as well as have coherent api/code for all the benchmarks.
It would be great if we can specify how long each benchmark in run, both as in "how many cycles to run" as well as "how many second". The latter is hugely important to be able to let the benchmark run for a long period of time to observe behaviour (algorithmic complexity, memory usage, stress testing) over a long period of time while the first is great in getting a "stable" benchmark baseline that can be compared, for example in CI, against previous versions. What do you think?

Agreed.
As the PR currently stands that would be accomplished by two different tests like so:
{
  name: 'append-baseline',
  ...
  while: (stats, startTime) => {
    return stats.count < 1000 // 1000 iterations
  },
  ...
}

{
  name: 'append-stress',
  ...
  while: (stats, startTime) => {
    return process.hrtime(startTime)[0] < 900 // 15 mins
  },
  ...
}

I can create two groups of tests: baseline and stress.  Then create separate commands to run each suite: npm run benchmark:baseline and npm run benchmark:stress.
Let me know if thats acceptable and I can update the PR accordingly.

Hi @mistakia how are you? I'm the new guy on the Haja networks team and I'm reaching out to see if I can help with this PR in any way?

@aphelionz nice to meet ya! Just getting back into this and catching up on all the changes in ipfs/orbit-db/ipfs-log. Once I have this rebased to master, I'll have a better idea of what help/questions I may need/have to get this to the finish line.

@mistakia Great! I'm here to help. Let's get this over the finish line :)

seeing some issues related to ipfs/js-ipfs-repo/issues/188

Rebased & fixed memory measurement issue. I think this is ready for review. Having to run with node v11 to avoid https://github.com/alanshaw/pull-stream-to-async-iterator/issues/1
Let me how to proceed.

can now run stress benchmarks for any time limit by passing in a limit (in seconds or Infinity)
node --expose-gc benchmarks/runner/index.js -r --grep append-stress --stress-limit Infinity

This looks great @mistakia !
I'd love a quick primer on how to use this, either in a README or another MD file, and then I'd love to see it merged. What I really want to see in the end is this incorporated into CI so developers can see the impact their work has on performance with each PR.
What say you, @haadcode and @shamb0t ?

Cool! Playing with it now and having a lot of fun. THANK YOU so much for doing this.
Here's stuff I'd love to see:

The ability to pass in a baseline-limit as well as a stress-limit
The ability to pass in a "count" in some way. I see you have then at 1, 100, 1000, and 10000. Maybe something like max-count that accepts that set of values and only runs the benchmarks that are <= max-count
Finally, can we optimize by sharing the same log instantiation of 1, 100, 1000, and 10000 for baseline and stress, instead of creating it separately for each benchmark.

All that being said, this is fine to merge as is and we can move the above list to an issue to tackle asynchronously from this. I actually really want to use this ASAP to sink my teeth into the append-performance branch, and then start using this as a paradigm for the various *-stores, orbit-db-storage-adapter, and orbit-db itself.

Sorry, not "Finally" :)

It should clean up its ipfs-log-benchmarks folder

I should have some time in the next few days to tackle those issues. Most of it should be quick and straightforward. Only thing that requires some thinking is incorporating it into CI.
If that’s not quick enough, feel free to merge because I can’t really think of a great reason to wait.
As for the CI integration, my thinking was adding a flag to the command that will write the results to a json file that can be committed into the repo. If such a file exists, the benchmark reporter will use it to generate a comparison. Then we can just add the benchmark runner/reporter to CI. Let me know if you have a better approach.

I've updated the PR with the following changes:

added a baselineLimit
added a logLimit (synonymous with max-count)
added a help output documenting all the options + a couple example commands
cleaning up the files/folder on completion

I'm working on integrating with CircleCI but am struggling a bit to plot a path forward. My previous suggestion doesn't quite make sense as the saved benchmark file that is committed to the repo is run on a different machine and thus is not a good comparison when used in CircleCI. I'm not very familiar with CircleCI yet but it appears I can save test metadata but I'm not sure how I would access it. The a build/test of a pr branch will have to access the metadata generated from the last master build/test.

@mistakia Looks great. I'm thinking we can merge this and I can work with CI since I'm already in there doing a bunch of other stuff.
Final words, @shamb0t or @haadcode ?

Sounds good. Let me know how I can help.
Also, I should note that this PR adds yargs as a dev dep.

This is fantastic, thank you @mistakia! :heart:

Awesome work @mistakia and @aphelionz 👏 This is a really great addition to the dev tooling, LGTM 👍

Congrats @mistakia :)


My proposed changes

@nleiva these are the changes I was talking about

Thanks! I added a couple of things to address a few other scenarios and cleaned up a few files. Merging and tagging a new container image for building the environment. I'll update the documentation shortly.


Add test-integration-devfile tests for s390x

For the test-integration-devfile, have verified supported on s390x.
What type of PR is this?

/kind bug

What does does this PR do / why we need it:
make odo supported on s390x, and including more cases in ci
Which issue(s) this PR fixes:
Fixes #4290
Area
system-PZ
PR acceptance criteria:

[ ] Integration test

How to test changes / Special notes to the reviewer:
just run the test script

Hi, We have verified on s390x, the test-integration-devfile cases can be PASS, the results show that it can work :
+ make test-integration-devfile
ginkgo  -randomizeAllSpecs -slowSpecThreshold=120 -timeout 7200s -nodes=2 tests/integration/devfile/
Running Suite: Project Suite
============================
Random Seed:<PHONE_NUMBER> - Will randomize all specs
Will run 200 specs
Running in parallel across 2 nodes
------------------------------
Pod woncbv-96db49b6-jnhw5 did not satisfy condition: Phase is not running
------------------------------
S [SKIPPING] in Spec Setup (BeforeEach) [0.001 seconds]
odo devfile describe command tests
/home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:12
  When executing odo describe [BeforeEach]
  /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:29
    should describe the component when it is not pushed
    /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:30
    Plain Kubernetes scenario only, skipping
    /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:18
------------------------------
------------------------------
S [SKIPPING] in Spec Setup (BeforeEach) [0.001 seconds]
odo devfile describe command tests
/home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:12
  When executing odo describe [BeforeEach]
  /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:29
    should describe the component when it is pushed
    /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:57
    Plain Kubernetes scenario only, skipping
    /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_describe_test.go:18
------------------------------
------------------------------
S [SKIPPING] in Spec Setup (JustBeforeEach) [1.812 seconds]
odo devfile push command tests
/home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_push_test.go:20
  Testing Push for Kubernetes specific scenarios
  /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_push_test.go:1108
    should push successfully project value is default [JustBeforeEach]
    /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_push_test.go:1115
    This is a Kubernetes specific scenario, skipping
    /home/odo/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_push_test.go:1111
------------------------------
dbus-run-session: ignoring unknown child process 50705
Ran 197 of 200 Specs in 1632.943 seconds
SUCCESS! -- 197 Passed | 0 Failed | 0 Pending | 3 Skipped
dbus-run-session: ignoring unknown child process 53992
dbus-run-session: ignoring unknown child process 52298
dbus-run-session: ignoring unknown child process 42435
dbus-run-session: ignoring unknown child process 41849
dbus-run-session: ignoring unknown child process 42062
dbus-run-session: ignoring unknown child process 50387
Ginkgo ran 1 suite in 27m29.026908559s
Test Suite Passed

Do you have some comments or advice? If have I will to do it soon.
From my side, I think it's ok to merge.
Thank you very much.😊

/lgtm

/retest

Hi @prietyc123 , there are 2 failed case. Could you please help check it? Thanks.

/ok-to-test

Hi @prietyc123 , there are 2 failed case. Could you please help check it? Thanks.

psi jobs are optional. It should not make any difference in merging prs.

/retest

/retest

/area system-PZ


Clarifying the licensing of all art assets

Here comes the usual boring issue, but it's really necessary to have a sane basis to work on, while the repo is "untouched".
Code license
TL;DR: It's good.
The repo was pushed currently with the MIT license in a LICENSE.md file. Typically the MIT is used for code (for a Godot game I think we can extend the concept of "code" not only to the scripts, but also the scene files and any text-based resources - the rest would be "asssets").
The license file mentions that the copyright goes to Juan Linietsky (@reduz) and Ariel Manzur (@punto-), and you've told me privately that you own the full rights to open source Jetpaca, so I guess that means this part is covered.
The only thing that could be improved here is to put a short version of the MIT header in each script file so that it's clear that the license applies to those files. I'll make a PR that adds just that. Edit: Done.
Assets license
TL;DR: We need an asset-specific license (typically Creative Commons), and a list of names of all artists who worked on those assets for attribution.
As specified above, the assets would be anything that is not code: textures, sound effects, music, fonts, etc. I don't know a priori of any incompatibility to use the MIT license to cover the assets, but as it's written as a code-specific license, I believe it would be better to use a Creative Commons license (e.g. CC BY 4.0 or CC BY-SA 4.0).
The tricky part is that those licenses (as well as the MIT actually) require proper attribution of the assets to the artists. So that's the part where we would need some feedback to be able to put names in e.g. a CREDITS.md file so that this part is covered.
I take the assumption that @reduz and @punto- have the full right to set the license for those assets, as that's what @reduz told me and noone has any way to verify it anyway (and I don't have any reason to distrust it either).
Nevertheless, I think we might still be required to give the names of the actual artists who designed the assets - I might be wrong, but at least if we do it we probably have it covered. I think it would be a huge work to take all files separately and give the name of their author, so I would propose to do give attribution "globally" to all assets of the current repo.
To do that, I'd propose that @reduz and @punto- just list the names of every artist that worked on the files in the art/, music/ and sound/ directories. I would then make a PR with a CREDITS.md file that lists all those files by name, and gives for all of them globally the chosen license and attribution to all the names that were given. WDYT? I think it would be a good enough basis to go on and consider that everything can be assumed fully open source and complying with the chosen license.

Ping @reduz and @punto-, see my TL;DR about the art assets:

We need an asset-specific license (typically Creative Commons), and a list of names of all artists who worked on those assets for attribution.

cc-by should be fine IMO
Sole artist is Fernando Calabro, though he was being paid so we own the assets

Thanks, can you add this information to the README.md?
Something like (I'm not a lawyer so I might be wrong in the copyright stuff, but that's how I understand it from what you said):
# Licensing

## Code

All scripts and scene files are distributed under the [MIT license](LICENSE.md).
Copyright held by Juan Linietsky and Ariel Manzur.

## Assets

All art assets (files in ``art/``, ``music/`` and ``sound/``) are distributed under the [Creative Commons Attribution 4.0 International](http://creativecommons.org/licenses/by/4.0/) license.
Artist: Fernando Calabro
Copyright held by Juan Linietsky and Ariel Manzur.

Then I'll merge this commit in Kobuge's repo and consider that all licensing stuff has been settled.


[BUG] Has-A relationship getting converted to Belongs-To relationship in db

`model User {
id       String  @default(cuid()) @id
email    String  @unique
password String
name     String
gender   Gender  @default(value: null)
address  Address?
}
model Address {
id           String   @default(cuid()) @id
addressLine1 String
addressLine2 String?
createdAt    DateTime @default(now())
updatedAt    DateTime @updatedAt
}`
I intend to add a HAS-A relationship here. User has Address.
In postgres db, this generates User and Address tables with User's id as foreign key in Address table, whereas i expect id of Address as foreign key in User table.

Solved it with following:
`
model User {
id String @default(cuid()) @id
email String @unique
password String
name String
gender Gender
address Address? @relation(references: [id])
}
model Address {
id String @default(cuid()) @id
addressLine1 String
addressLine2 String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
`


print statements that end with a comma followed by a semicolon are flagged as errors

  if adv < options!.size() then print 'fl', "9", chr(adv), fill(adv, $0a$),; rem  Move down CDS037 grid

print 'fl', "9", chr(adv), fill(adv, $0a$),; rem  Move down CDS037 grid

merged


Separate project namespace

Follow-up to #700, separate project namespace (used as the library identifier when communicating with runtimes) from project ID. Allows editing the project namespace, as well as multiple checkouts of same project inside same Flowhub instance.

@bergie will existing projects have the same library prefix after this change? Are there any (other) possible compatibility problems with existing projects and/or runtimes?

@jonnor since we fall back to project.id if namespace is not provided, it should remain the same


⚠ Fortnite has degraded performance

In b5905e4, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1530 ms

Resolved: Fortnite performance has improved in 5c892cd.


ISSUE: Missing script.keymaster_front_door_manual_notify

Describe the bug
Tried to run the keymaster_front_door Reset automation.
Received the following error.
keymaster_front_door Reset uses an unknown service
The automation "keymaster_front_door Reset" (automation.keymaster_front_door_reset) has an action that calls an unknown service: script.keymaster_front_door_manual_notify.

This error prevents the automation from running correctly. Maybe this service is no longer available, or perhaps a typo caused it.

To fix this error, [edit the automation](/config/automation/edit/keymaster_front_door Reset) and remove the action that calls this service.

Click on SUBMIT below to confirm you have fixed this automation.

Environment (please complete the following information):

OS: homeassistant/home-assistant:2022.9
Type of system that HA is running on: Kubernetes
Home Assistant version: 2022.9
Hassio/Docker/Core? Docker
Component version: v0.0.82
Z-Wave integration name: zwave_js
Lock make and model: BE469

Additional context
Looking under packages directory I do not see the script defined anywhere.

Dupe #295


can't use in OS X with qt5py3

after completing make qt5py3 without any warning, do python3 labeling.py,get below:
2017-03-13 13:44:24.522 Python[31249:2190288] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.81.100/AppKit.subproj/NSBitmapImageRep.m:1296
2017-03-13 13:44:24.525 Python[31249:2190288] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgImage != NULL'

how can I fix it?

+1
I have the same problem!

@xichangzun @vitamin
you can see #71

it seems to be a qt5 bug, solution is here


Nicer readme

We can provide a nicer README about the potential usage of this library.

what's the purpose of this library
how to use it
how to incorporate into typical backend

to grow the adoption of this library :)

It's definitely on our roadmap - but we want to wait for this library to be more stable so we don't have to change this README that often :) Stay tuned, it'll be added soon :)


Support for custom values in the header

https://tools.ietf.org/html/rfc7519#section-5.3

5.3.  Replicating Claims as Header Parameters
In some applications using encrypted JWTs, it is useful to have an
unencrypted representation of some claims.  This might be used, for
instance, in application processing rules to determine whether and
how to process the JWT before it is decrypted.
This specification allows claims present in the JWT Claims Set to be
replicated as Header Parameters in a JWT that is a JWE, as needed by
the application.  If such replicated claims are present, the
application receiving them SHOULD verify that their values are
identical, unless the application defines other specific processing
rules for these claims.  It is the responsibility of the application
to ensure that only claims that are safe to be transmitted in an
unencrypted manner are replicated as Header Parameter values in the
JWT.

Can support be added for this?

Hi @mattalexx. Version 3 of the lib support this, check it out https://github.com/auth0/java-jwt/blob/master/lib/src/main/java/com/auth0/jwt/JWTCreator.java#L71
Cheers.


transpile raises UserWarning with custom basis_gates

What is the expected enhancement?
Information:

Qiskit Terra version: latest
Python version: 3.8.11
Operating system: macOS 11.4

When I executed the following code, the warning message asks me to report it.
The transpilation result looks correct. I don't think it has to raise a warning.
from qiskit import QuantumCircuit, transpile

qc = QuantumCircuit(1)
qc.h(0)
qc2 = transpile(qc, basis_gates=['rx', 'rz', 'h'])
print(qc2)

output
/Users/ima/tasks/1_2021/qiskit/terra/qiskit/transpiler/runningpassmanager.py:166: UserWarning: Resynthesized [<qiskit.dagcircuit.dagnode.DAGNode object at 0x12f78cd00>] and got global phase: π/2
      ┌─────────┐┌─────────┐┌─────────┐
qr_0: ┤ Rx(π/2) ├┤ Rz(π/2) ├┤ Rx(π/2) ├
      └─────────┘└─────────┘└─────────┘, but the original was native and the new value is longer.  This indicates an efficiency bug in synthesis.  Please report it by opening an issue here: https://github.com/Qiskit/qiskit-terra/issues/new/choose
  new_dag = pass_.run(dag)
     ┌───┐
q_0: ┤ H ├
     └───┘

Closing as duplicate of #6848 .