0.35 shows Hue light groups as light entities

Home Assistant release (hass --version):
0.35.2
Python release (python3 --version):
Python 3.5.2
Component/platform:
light/hue
Description of problem:
Since 0.35 "bridge-based" light groups  (i.e. the ones specified through the Hue app) show up as lights in HA.
I have 11 Hue lights in 4 groups (= rooms) and I now see 15 light entities in the HA UI.
Expected:
Groups should not be visible as lights. While it may make some sense to expose the light groups at the UI (e.g. switching groups on/off) it is rather confusing when the are visually indistinguisable from single lights.

You can hide those bridge groups if you don't want to use them.

The question is, if it is supposed to be like this or if it's a bug?

It is supposed to be like this. Groups added as light entities was a change to allow immediate control of groups of lights without the delay of having to change each lights state in sequence. Basically providing a uniform on/off experience for all lights instead of them sometimes looking like they were all coming on or off one by one.

Thanks! I like the idea of having the bridge-based light groups available in HA - exactly for the reason that all lights in a group can be turned on/off simultaneously.
I just didn't expect that these groups would show up as lights in HA without a way to distinguish them from normal lights.
At a closer look, this sure does make more sense than putting the light groups in HA's group.* hierarchy, because they behave like lights (brightness, color etc.).
Maybe it wouldn't have been the worst idea if the light groups were prefixed with "group" or something like this, e.g. for a group "livingroom" to be called light.group_livingroom in HA.
Anyway, now that we know it's a feature, I'd have no objections to closing this issue.
Sebastian


implementing adjacency effects

This is worth discussing because it will involve some cross-dependencies that we do not normally handle - specifically spatial dependencies across pixels.  I can imagine two ways we might do this.

Sequential.  Write out atmospheric coefficients to a file after a first pass atmospheric correction, and then apply adjacency effects as a postprocessing step.  Fast & simple.
Simultaneous.  The holy grail.  Treat the whole image as an uber-state vector, and each location's conditional likelihood score is defined using the reflectance in nearby pixels.  Solve the whole thing with a couple of passes through the image (essentially a cyclic coordinate descent optimization on the uber-state).  We could also enforce a spatial GP prior on atmospheric terms for smoothness.

I think that number 2 might actually  require less additional code than would appear at first glance - mostly just a new inversion method to apply the spatial averaging kernels and feed in appropriate local atmospheric priors during the update steps.  But is this an upgrade we should be pursuing right now?

Actually I think number 2 could be done by calling ISOFIT multiple times on the same image, each time reading in a spatially blurred state vector image produced by the previous iteration.  The blurred reflectance becomes the background spectrum for the adjacency effect calculation (maybe passed in as a member of the "geom" parameter to avoid interface changes?).  The blurred atmospheric state becomes the GP mean predicted atmospheric state.  I'm pretty sure the math would work out and all the cross-pixel dependencies could be handled outside ISOFIT proper.

I'm a strong proponent of number 2 - I'm not sure what number one actually is going to give us, but I think I can imagine a parasitic case where iterative optimizations push you in a systematic direction (perhaps towards the priors?) that is not guaranteed to be towards the simultaneous optimum.    Depending on the strength of the interaction, using 'o' as the prior adjacency for the target might be quite misleading.  But I could be wrong, I'd have to work out an actual example.
One option that I've been mulling to make number 2 tractable is to add in throw-away states to the state vector and cost function.  You could imagine taking some 'blurred' radiance (as the 'adjacent effect radiance') and some target radiance, and solving for the reflectance of each (with each term regularized with a separate prior-fitting penalty), making the assumption that the 'blurred' influences the target but not vice-versa.  Then just discard the adjacent portion of the state.  This has the advantage of using input radiance cleanly, but of course doesn't guarantee that the adjacent effect reflectances are consistent for different target pixels.  But it only involves doubling the statevector, with a corresponding term in the loss function....so it feels like a feasible first-order solution.
re: interface changes....updating the io to do some aggregate radiance/ob/loc grab doesn't actually feel that bad to me, relatively speaking (it's basically a slight IO modification to handle a window, and then just extra terms).  But holding onto a grid of radiance/obs/locs would require some substantial changes.

I'm convinced - makes sense to start here no matter where we go afterward, and will be nice to have as a reference case to beat if it turns out complexity is needed (and ideally it just isn't).  Good test scenarios will of course be key!
I'm interested if @NimrodCarmon or others have thoughts.

Option 2 sounds great, although I also like option 1 which gives some additional flexibility for more physical formulations that might be relevant to adjacency (shadows\terrain\etc). Maybe a first run with a fast retrieval approach just to get those env parameters and a first guess to inform the uber state vector?


Make a Product JSON file

In this task you should make a JSON file which will contain all the information about the product including photo URL of that product.
The moto to create this JSON file is to act like a backend response like JSON format.

!assign

I have to make a product JSON too because I have been assigned to make a product card.
so can you assign me this issue too?


Added custom EventNames inheritor specific to FSP, Addresses #423

Small implementation specific to FSP

Fixes #423


How do I know the scripts are ready?

I use Helmet to load scripts like firebase library. Is there an event handler that tells me when the scripts are loaded and ready? Now I can't access my library since I use it inside componentDidMount but the library is downloaded asynchronously after render Helmet

if you're server side rendering helmet then the scripts loaded in  are guaranteed to be loaded before react renders (async or not).
It sounds like you aren't server-side rendering helmet, so it might make more sense to use a script-loader in your case - but we'll look into adding an onload callback.

script onload is sometimes unreliable.
We ended up just checking global (window.firebase or something) with setInterval until it became available and then pass it down a Promise to use.
Even if you use server-side rendering it may be useful since sometimes you only want to load script after some user action on client (for example - loading Facebook SDK only if it specifically requested). Save you precious kb's on initial load.

I am in need of an onLoad callback too =)
@romanonthego the native DOM scriptNode.addEventListener('load', func) was unreliable? Interesting.
What does your setInterval implementation look like?
Thanks

Is there any plans to add a onload option when specifying our scripts then? Think this would be really helpful.

@DavidWells I didn't change the way the script tags are handled, only add support for application/ld+json with innerHTML content.
we are handling this case with interval (basically waiting for global from script to appear as window key) - we found this to be mo simply and reliable.

FYI we went with the following solution to hack in the onload functionality /cc @romanonthego :
handleAdFuelInject({ scriptTags }) {
    if (scriptTags) {
        const scriptTag = scriptTags[0];
        scriptTag.onload = this.handleOnLoad;
    }
}

// ...

<Helmet
    script={[{ src: '//cdn.example.com/script.js' }]}
    // Helmet doesn't support `onload` in script objects so we have to hack in our own
    onChangeClientState={(newState, addedTags) => handleScriptInject(addedTags)}
/>

@navgarcha Thanks, definitely much better approach than timers :) Works like a charm although I have rather used scriptTag.addEventListener('load') as it feels bit cleaner.

Good call - save myself from the 'no-param-reassign' eslint warning too ;)

@navgarcha In the end I've just used scriptjs module instead. It's rather cumbersome to use helmet for this especially if there is more scripts being loaded. It's then necessary to iterate through script tags and find the one you are actually interested in ... and do that in every component. The scriptjs is definitely much easier and can be used as dependency manager too.
scriptjs('https://cdn.shopify.com/s/assets/external/app.js', () => {
	this.setState({ loaded: true })
})

I am running into this issue as well. Has anyone taken a stab at another solution?
I like the power of react-helmet for SSR, but would love it even more if we can wait for helmet to finish making updates to the DOM before rendering/executing/doing work.
Scenario is to async download and evaluate lodash library and use it in the component before mounting or updating.
Potentially have Helmet used with a higher order component to delay mounting until Helmet scripts are on the DOM.

Somehow I was sure this functionality was already there. If it allows us to add script tags dynamically, sure thing it should assume we're going to use them, so we'd need some sort of callback or any way to know that our scripts were loaded and are ready. Was surprised to find out that I was wrong. All the hacks suggested are sweet and so on, by I'd be happy to see this feature provided out of the box. Many others, I'm sure, would like it as well. Thanks anyway.

Strangely, I could not get this to work—and it seems unnecessarily difficult to work around.
class Shell extends BaseComponent {
    // …

    handleScriptInject({ resourcesByType }) {
        // each's might be slightly different (I don't remember the exact code)
        // the take-away is it looped over each resource-type group (styles, scripts, etc)
        // and then into each resource to check for an `onload` and call it if defined
        _.each(resourcesByType, (resourceType) => _.each(resourceType, ({ onload }) => {
            if (typeof onload === 'function') {
                debugger; // pauses
                onload(); // is indeed defined (shows bound function) &
                          // step-into jumps to the end of the callback,
                          // skipping debugger
            }
        }));
    }

    // …

    render() {
        // …
    }
}

class SomeComponentWithUniqueDep extends BaseComponent {
    handleDepLoaded() {
        debugger; // never hit
        // do stuff
    }

    render() {
        return (<React.Fragment>
            <Helmet>
                <script
                    async
                    onLoad={() => this.handleDepLoaded()}
                    src="…"
                />
            </Helmet>
            // …
        </React.Fragment>);
    }
}

I also tried handleDepLoaded as a (non class method) function, and passing it to onLoad directly (both ways). No dice.
Note that "BaseComponent":

extends React.Component
dynamically binds this to all non-react-lifecycle methods

https://github.com/nfl/react-helmet/pull/299 This PR seems to address this issue, but has not been merged yet :(

I ran into a similar need today and implemented something like this:
https://stackoverflow.com/questions/44877904/how-do-you-import-a-javascript-package-from-a-cdn-script-tag-in-react/53792272#53792272
Basically, make the external library reference a property of the state for the component. Make whatever component depends on that external library wait until this.state.libraryProperty is not null before attempting to use the external library. This avoids race conditions and null reference/undefined exceptions, although by my own admission there are probably ways to improve it - I don't like the fact that window is referenced for starters.

This does the trick for me:
const myScriptUrl = 'https:/blablabla/'

const MyComp = () => {
    const [scriptLoaded, setScriptLoaded] = useState(typeof window !== 'undefined' && typeof myScript !== 'undefined')
    const handleChangeClientState = (newState, addedTags) => {
        if (addedTags && addedTags.scriptTags) {
            const foundScript = addedTags.scriptTags.find(({ src }) => src === myScriptUrl)
            if (foundScript) {
                foundScript.addEventListener('load', () => setScriptLoaded(true), { once: true })
            }
        }
    }
    return <>
        <Helmet onChangeClientState={handleChangeClientState}>
            {typeof window !== 'undefined' && typeof myScript === 'undefined'
                && <script async defer src={stripeUrl} />}
        </Helmet>
        {scriptLoaded && ...}
    </>
}

This works pretty well with scripts like google analytics, stripe & co as they create an accessor in the global scope.

I used the useScript hook on https://usehooks.com/useScript/ and worked pretty good.

My solution is like this:
const onLoadFunction = () => { console.log('helmet loaded'); }

window.onHelmetLoad = onLoadFunction;

useEffect(() => {
  return () => {
    window.onHelmetLoad = null;
  }
}, []);

<Helmet>
        <title>Some Title</title>
        <meta property="og:image" content={ogImage} />
        <meta property="og:title" content={ogTitle} />
        <script>window.onHelmetLoad()</script>
</Helmet>

Notes:

window.onHelmetLoad is placed as string and not a function in the Helmet childrens
I use useEffect to cleanup the window.onHelmetLoad when the component is unmounted, as a good practice, and not to have collision with some other place I am going to use the same approach.

Seems Helmet has transform the onLoad function to inline script.
So we can pass a static function like this:
function scriptOnload(el: HTMLScriptElement){
	const {id, foo} = el.dataset;
	// script initialize with data id & foo
}

<script
	src={url}
	async
	data-id={id}
	data-foo={foo}
	// @ts-ignore - Helmet will transform the onload function to inline script
	onLoad={`(${scriptOnload.toString()})(this)`}
/>

An approach that seems to work well client side is:
const HelmetScript = ({ src, onLoad }: { src: string; onLoad: () => void }) => {
  const uid = useUuid();

  const onChangeClientState = useCallback(() => {
    const scriptElem = document.getElementById(uid);
    if (scriptElem !== null) {
      scriptElem.onload = onLoad;
    }
  }, [onLoad, uid]);

  return (
    <Helmet onChangeClientState={onChangeClientState}>
      <script id={uid} src={src} async={true} />
    </Helmet>
  );
};


fix(windows): Navigation to ms-appdata and ms-appx-web local file request on Windows

Fixes issue https://github.com/react-native-webview/react-native-webview/issues/2097

thanks @tero-paananen !


Create coverage pipeline

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@979cdb6). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage        ?   85.71%
  Complexity      ?       33
=======================================
  Files           ?        9
  Lines           ?       70
  Branches        ?        2
=======================================
  Hits            ?       60
  Misses          ?       10
  Partials        ?        0

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/79674

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/89803

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/90061

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/106930

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/113191

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/116445

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/118954


chore(release): v1.3.9 🎉

:robot: I have created a release beep boop
1.3.9 (2024-08-04)
Bug Fixes

deps: bump with-simple-caching version (#15) (866c57d)
practs: bump practs to latest best (34c7515)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ehmpathy/with-remote-state-caching/releases/tag/v1.3.9 :sunflower:


make sure writes to the store are done in the right order

Writing to multiple graphs could have cased an error, cause the read function is entered before the last read finished and the last variable is messed up. This PR makes sure read is called in order by adding mutex. The tests have also been fixed. Before a loop over the sent content was done, so missing expected graph data was not detected. Now the loop is done over the expected data.

Codecov Report

Merging #13 into master will increase coverage by 0.05%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   97.84%   97.90%   +0.05%
==========================================
  Files           7        7
  Lines         186      191       +5
==========================================
+ Hits          182      187       +5
  Misses          4        4

Impacted Files
Coverage Δ

StreamStore.js
97.01% <87.50%> (+0.24%)
:arrow_up:

Continue to review full report at Codecov.

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

With the fixes in the unit test which are part of the PR, it was possible to reliable reproduce the problem.


Material box on card image does not open window in 1.0 Alpha 3

Expected Behavior

Applying the materialboxed class to a card image should show a spy glass when hovering over the image and then the image is clicked an overlay showing a larger version of the image.
Current Behavior

When hovering over the image a spy glass is displayed. However, when the image is clicked, no overlay is displayed.
Possible Solution

Steps to Reproduce (for bugs)
A demonstration of the effect is available here http://sps4d.andycarpenter.me.uk/materialbox-1.0a3.html
An second version of the file that differs only by importing Materialize 0.100.2 files is available here http://sps4d.andycarpenter.me.uk/materialbox-0.100.html. This functions as expected.
Context

Your Environment
The code is deployed on an Apache server and is executing using php 7.1
Tested using clients Chrome on Android and Windows and IE on Windows

I have the same problem and I dont seem to find a solution. Any luck?

For me the basic functionality works, but the styling for the overlay seem a little odd...
See here (page of a customer of mine):

http://czihal-gk.de/wordpress/fertigungsverfahren/

The overlay actually opens up, but the image is cropped somehow...
Sorry for asking, but are you sure, you have initialized the component properly (JavaScript)?

Materialbox is no longer automatically initialized. You have to initialize the plugin like any other plugin.

@acburst Sorry for bothering you, but what about the styling issue i mentioned? Should i open a new issue?

Should i open a new issue?

Yes please do this.


XML Documentation Fix - Batch 1

Description: This PR is the first of several that aim to fix #2013. As per discussion on that issue, this PR removes Markdown style remarks comments and converts them to the tags included in:

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/recommended-tags
https://ewsoftware.github.io/XMLCommentsGuide/html/f8464c0f-f62a-4faf-b11a-9a41173307e8.htm

I basically ran all the XML files through a converter I wrote that looks for markdown and converts what it can. I then go through an touch up the files by hand, using some heuristic rules and some intuition of what looks good. Thus, some files have minor changes, and some files have major restructuring of markdown files.
Please note, the original XML files almost always combined remarks and examples into the remarks tag and gave them different headers. This is resolved by splitting them into  and  tags. In some cases, this resulted in removal of .
Before:

After:

If this PR gets the go ahead, I'll submit the next one shortly after.

@benrr101 thanks,I worked on this a long time ago, and from what I remember:

There are some issues in the documentation, particularly in the CDATA sections, which have not been detected until now.

You can also run DocFX to generate the documentation locally—it's quite straightforward.

The most challenging parts are related to SqlConnection, SqlCommand, SqlBulkCopy, and a couple more XML files. The rest are smaller files or haven't undergone any changes.

For notes involving the > symbol, you'll need to use the HTML tag >.

All xref tags need to be converted to cref with additional changes:

T:Namespace.ClassName refers to a class or struct.

M:Namespace.ClassName.MethodName refers to a method.

P:Namespace.ClassName.PropertyName refers to a property.

F:Namespace.ClassName.FieldName refers to a field.

E:Namespace.ClassName.EventName refers to an event.

Thanks for doing this.

@edwardneal I believe we should create a separate PR to address the documentation content. This PR is primarily focused on the structural changes related to issue #2013.
Including those changes here would make this PR significantly larger than it already is, and updating the documentation is a substantial task on its own.

@JRahnama That makes sense. I've got no objections to the formatting, so once all of the structural PRs are merged I'm happy to roll the review comments up into a separate PR.

@benrr101 check this comment, please.


[Image Resizer] Add option to remove metadata (#1928)

Summary of the Pull Request
What is this about:

What is include in the PR:
Adds option to remove metadata that doesn't affect rendering
How does someone test / validate:
Before <-> After

Quality Checklist

[x] Linked issue: #1928
[x] Communication: I've discussed this with core contributors in the issue.
[x] Tests: Added/updated and all pass
[ ] Installer: Added/updated and all pass
[x] Localization: All end user facing strings can be localized
[ ] Docs: Added/ updated
[x] Binaries: Any new files are added to WXS / YML

[x] No new binaries
[ ] YML for signing for new binaries
[ ] WXS for installer for new binaries

Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.

Thank you for your PR. Please be aware that you should have discussed this first with core team members, before you started working on it.
Cc: @jaimecbernardo @crutkas

Thanks for pointing our @Aaron-Junker . The discussion has taken place in #1928 where @crutkas added the "Help Wanted" label. I was not part of that discussion, just saw the "Help Wanted" label and thought this would be a cool feature to implement!

Why not improve the order of checkboxes to this:

[ ] Make pictures...
[ ] Ignore orientation...
[ ] Resize the original...
[ ] Remove metadata...

(The first two are resize options and the other two are file options.)

What about the device data like model, producer, and photography settings. (Can be optional with a warning).

@htcfreek: I thought about this as well but decided to with a minimal set of metadata. When publishing images on a website you usually don't want any metadata in there.
Orientation is important because:

I also considered this comment from one of the maintainers:
https://github.com/microsoft/PowerToys/blob/e62df46c6181551e80b7ce2cf85f03beccbfadf2/src/modules/imageresizer/ui/Models/ResizeOperation.cs#L85-L90
Does anyone else have an opinion on this?

Thanks for pointing our @Aaron-Junker . The discussion has taken place in #1928 where @crutkas added the "Help Wanted" label. I was not part of that discussion, just saw the "Help Wanted" label and thought this would be a cool feature to implement!

I was talking about telling us that you start working on this, so we can add the "in progress" label and add it to the corresponding projects. This also prevents that someone else is starting to work on it, while you're already working on that.
It's not a big problem now, but I would be happy if you could tell us next time, when you start working on something. Thank you.

I was talking about telling us that you start working on this, so we can add the "in progress" label and add it to the corresponding projects. This also prevents that someone else is starting to work on it, while you're already working on that.

You are right, should have done this. Thank you for adding the "in progress" label to issue 1928!

@htcfreek: I thought about this as well but decided to go with a minimal set of metadata. When publishing images on a website you usually don't want any metadata in there.
Orientation is important because:

I also considered this comment from one of the maintainers:
https://github.com/microsoft/PowerToys/blob/e62df46c6181551e80b7ce2cf85f03beccbfadf2/src/modules/imageresizer/ui/Models/ResizeOperation.cs#L85-L90
Does anyone else have an opinion on this?

I misunderstood your screenshot in the description first. Now I saw that everything is removed. (Thought that only the black striked entries are removed.) 🤦

Generally LGTM. Some logging for exceptions will be great if someone reports an issue. :)

There is currently no logger within the Image Resizer project. Other modules like FancyZone do have a logger implementation. I am wondering if adding a Logger would be beyond the scope of this PR.

Generally LGTM. Some logging for exceptions will be great if someone reports an issue. :)

There is currently no logger within the Image Resizer project. Other modules like FancyZone do have a logger implementation. I am wondering if adding a Logger would be beyond the scope of this PR.

Oops! You're right. The is no logger for the image resizer. Please ignore this.

@htcfreek: I thought about this as well but decided to go with a minimal set of metadata. When publishing images on a website you usually don't want any metadata in there.
Orientation is important because:

I also considered this comment from one of the maintainers:
https://github.com/microsoft/PowerToys/blob/e62df46c6181551e80b7ce2cf85f03beccbfadf2/src/modules/imageresizer/ui/Models/ResizeOperation.cs#L85-L90
Does anyone else have an opinion on this?

I misunderstood your screenshot in the description first. Now I saw that everything is removed. (Thought that only the black striked entries are removed.) 🤦

I see why you overlooked it. I added a new screenshot to make things more clear


Chunks nit displaying when holding nautilus shell

When I use this in my world, when I hold the nautilus shell my friend can see the chunks but I cannot, and vice versa. If you could look at this when you get time that would be fantastic. Really appreciate your efforts on this pack

It only works in 3rd person
On Mon, May 27, 2024, 10:51 PM Stevie G @.***> wrote:

When I use this in my world, when I hold the nautilus shell my friend can
see the chunks but I cannot, and vice versa. If you could look at this when
you get time that would be fantastic. Really appreciate your efforts on
this pack
—
Reply to this email directly, view it on GitHub
https://github.com/RavinMaddHatter/Bedrock-Technical-Resource-Pack/issues/13,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBUC5HWP3SXNM52AQW2MF3ZEQLOHAVCNFSM6AAAAABIMGNIXKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDAMJXHEZTGMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

That makes sense, now i feel a little silly. I'll try that, thanks so much mate. I have given you a shout out on my streams and told people to checkout this pack. Super handy and really appreciate all your work on it!


Trade_with_Money

I have got server (Spigot 1 16 5)
This plugin works well, but option trase_with_money is impossible
What is it?

Did you already enable a suitable layout for your economy? Try /tradesystem layout for that.

Please check your console for any errors and attach them here.


Add new image rancher/mirrored-longhornio-openshift-origin-oauth-proxy

Issue:

https://github.com/rancher/rancher/issues/44861
https://github.com/rancher/rancher/issues/44862
Problem

Add new image rancher/mirrored-longhornio-openshift-origin-oauth-proxy
Solution

Add new image rancher/mirrored-longhornio-openshift-origin-oauth-proxy
Testing

Longhorn QA will perform the test to install/install/update the Rancher chart
Engineering Testing
Manual Testing

Longhorn QA will perform the test to install/install/update the Rancher chart
Automated Testing

Test types added/modified:

None

If "None" - Reason:  I think no need to have automation test case

Summary:
QA Testing Considerations

Regressions Considerations

None
Existing / newly added automated tests that provide evidence there are no regressions:

None

@HarrisonWAffel This PR is blocking our Longhorn Rancher chart release. Could you help to merge? I see that the CI is currently failing but not sure if it is related to this PR. Could you help?

@PhanLe1010 I've restarted the build and will monitor it to make sure it passes

Thank you @HarrisonWAffel

@PhanLe1010 Will this image only be used in 2.9, or will it also be used in other release lines? This change will need to be included in each release line that will utilize the new image - this PR can be back ported after its merged if that is the case

Thanks @HarrisonWAffel for the reminder. This image will also be used in Rancher 2.8 and 2.7.
Is there an automation bot that can do backport or we need to create backport PRs manually?

Unfortunately no, not at the moment. The easiest way I've found to do this is to cherry pick changes from 2.9 into 2.8, or 2.7. But if time is a limiting factor on your end manually raising now might be a better idea, I will approve them and make sure they pass CI

Unfortunately no, not at the moment. The easiest way I've found to do this is to cherry pick changes from 2.9 into 2.8, or 2.7. But if time is a limiting factor on your end manually raising now might be a better idea, I will approve them and make sure they pass CI

@HarrisonWAffel Backport PRs are created:

v2.7: https://github.com/rancher/rancher/pull/45125
v2.8: https://github.com/rancher/rancher/pull/45124

This PR still failed. Could you help? @HarrisonWAffel

@PhanLe1010 I've restarted it, seems to be a bit flakey today


New version: Wasmer.Wasmer version 3.1.1

Result: Installation Failed

Manifest
Add/Remove Programs

Name
Wasmer

Version
3.1.1

Publisher
Wasmer Engineering Team

ProductCode

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 5561
Microsoft Reviewers: Open in CodeFlow

/azp run


Sniff for nonce support

Because safari pukes when it sees a nonce. it still works (falls back to unsafe-inline) but it's unsightly.

/cc @maddox

:dancer:


allow setContentStateFromText to be immediate

We have a use-case for content-state to be updated immediately when switching to a full-screen behavior. This should allow that to be possible... there may still be places where the behavior is not matching our intent esp when the viewport is different between the captured state and the applied state, but setting this up as an initial case
https://github.com/digirati-co-uk/iiif-canvas-panel/assets/192686/a5a9b356-2f7e-400e-9ecf-9546ab8d3e9d

@stephenwf this should be read too


Move YOLOX into vqpy

Why this change?
YOLOX is heavily used in all examples, move into vqpy for conveience.
What does this PR include?
Move yolox detector into vqpy. Add install instructions to readme.
User API changes
None
How did I test the PR?
All existing examples yield expected results.
New dependencies included

yolox, see YOLOX for details

Add python 3.8

Added

LGTM


Forcing return type when initiating a select query

Hi, rather than using the generic overload on the Get method to return a strongly typed result, would it be possible to set the return type when initialising the query....so something like
var products = db.Query<Product>("Products")
This would allow me to embed initialising the query into a Repository class method with the database table name and typed result set automatically, something like...
class Product  {      public Query<Product> GetProducts()      {                 return db.Query<Product>("Products");      } }
Once the query is executed, it then returns the typed set automatically.....

This wont work for queries with custom selections, check #183

Thanks for coming back to me Ahmad – it certainly looks like what I need. However, building a .Net Core application, I’m currently using DI and your QueryFactory to generate new queries for me and I’m not sure how to get your factory to return me an instance of the GenericQuery instead of the standard SQLKata query…..any thoughts welcome! 😊
Dominic
From: Ahmad Moussawi @.>
Sent: 22 May 2021 15:27
To: sqlkata/querybuilder @.>
Cc: Dominic Porter @.>; Author @.>
Subject: Re: [sqlkata/querybuilder] Forcing return type when initiating a select query (#483)
CAUTION: This email originated from outside of the organization. Do not click the links or open attachments unless you recognize the sender and know the content is safe.
This wont work for queries with custom selections, check #183https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsqlkata%2Fquerybuilder%2Fpull%2F183&data=04|01|dominic.porter%40bhnetwork.com|d10bb04790ab4b6525f308d91d2d9c9f|09f55992c50c45628657b1bd6acc36c5|0|0|637572904014009593|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=YXjr6ODpyu8vfTR1Edn6DQc%2BgreXTaqNfJKL15CAWGo%3D&reserved=0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsqlkata%2Fquerybuilder%2Fissues%2F483%23issuecomment-846415695&data=04|01|dominic.porter%40bhnetwork.com|d10bb04790ab4b6525f308d91d2d9c9f|09f55992c50c45628657b1bd6acc36c5|0|0|637572904014009593|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=sBONPS5Sv%2B3dy3YwoIP%2FgKPdZHGiCNLhs99i6t0gqGk%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATU7B5HEQPVNKYS3BYMDJUDTO65J3ANCNFSM45HLXYZA&data=04|01|dominic.porter%40bhnetwork.com|d10bb04790ab4b6525f308d91d2d9c9f|09f55992c50c45628657b1bd6acc36c5|0|0|637572904014019548|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=pIvSd8sr7fmfGKtDKD0XF4S5K1AcwQWFyEGtoPqI%2BiA%3D&reserved=0.
This e-mail message inclusive any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete it including any attachments and notify the sender immediately.
Registered Name: Hawk Incentives Limited
Place of Incorporation: England & Wales
Registered Office: Westside, London Road, HEMEL HEMPSTEAD, HP3 9TD
Registered No: 4155659

@dom3551-git It seems that it's impossible to return strongly-typed Query. But its often needed for IQueryable<T> Repository. One possible solution would be to return IEnumerable<T> (or even T[] since in case of IEnumerable<T> connection may be leaked - lazy execution) and parametrise Repository with Specification pattern.  In Specification you can put all business-logic, give it meaningful name and pass to repository.


Add benchmark for large table

Preliminary work for addressing https://github.com/twosigma/beakerx_tabledisplay/issues/68

Small note: the new workflow won't be tested before being merged (as it needs to be on the default branch).

IIRC there is already end-to-end testing: See https://github.com/twosigma/beakerx_tabledisplay/blob/master/.github/workflows/python-package.yml#L135 and https://github.com/twosigma/beakerx_tests/blob/master/autotests/ci_tests.py
Would it be fine to replace those tests with Galata tests? @afshin
I guess we can also live with both beakerx_tests and galata for some time, too much testing is not so bad.

I think benchmark/performance tests are the main thing that would help. The existing e2e tests are about functionality primarily, I think.
cc: @ildipo @diegoalbertotorres

Would it be fine to replace those tests with Galata tests?

I don't think this is worth the required investment (the existing tool is using another browser driver - aka selenium; so transition may not be easy). As @afshin pointed out, the existing e2e tests are targeting functionality. This introduces measurement with no target on functional testing; so no redundancy.


Templates for the scheme

Hi,
It is nice also to have some scheme to sum up the pipeline used during the tutorial, like flowcharts
I thought to use yED to easily build scheme.
What do you think?
Bérénice

I will try to create one example for issue123

I tried two pipeline scheme (Grey is for subpart):
1

2

I prefer the first one :)

yep, definitely the first one. with less harsher colors ;) (Galaxy green? blue?)

I will take all advice for color and disposal yep :)

Blue sounds good :)

With the yellow, grey and dark-blue of the Galaxy logo:

Whaou !

very nice, I like the alternating colors a lot
Is there a way to change the font? (although this looks a lot like Galaxy's font)

Nice!
What about using boxes instead of bubbles?

With "NotoSans" Font (found on the css for the slides)

I will try @bebatut

Most compact version (with box)

+1

As the corresponding PR #129 was merged, can we close this issue?

Thanks all!


titleStyle only sets backgroundcolor for small area

Version
Tell us which versions you are using:

react-native-router-flux 4.0.0-beta.16
react-native 0.46.1

Expected behaviour
I want to color the background of the header. Right now its white, I want to set a costum color.
Actual behaviour
There is the titleStyle from the API, but it only colors a small part.
See the images:
Without text:
http://imgur.com/w0PZUeB
With text:
http://imgur.com/gUzrO3G
With text and textStyle
http://imgur.com/Ls2vXmz
export default class TestComp extends Component {
  render() {
    const { navigate } = this.props.navigation;
    return (
      <Router>
        <Scene key = "root">
          <Scene
            key = "index"
            component = {NumberOne}
            title = "Headline"
            titleStyle = {styles.header}
            initial
            />
          <Scene
            key = "Test2"
            component = {NumberTwo}
            />
      </Router>
    )
  }
};

const styles = StyleSheet.create({
  header: {
    backgroundColor: "#108EE9",
  }
})

Interesting enough, when I replace the Component like so:
export default class TestComp extends Component {
  render() {
    const { navigate } = this.props.navigation;
    return (
        <Text>No Header here?</Text>
    )
  }
};

See the image what happens then:
http://imgur.com/s6Ahg1k
So, I assume that the white header comes from react-native-router-flux. Where can I change its color?

It is not a bug. Title style is for title style (!!!), not for whole navbar. Use navigationBarStyle for navbar styling.

@aksonov sorry. i did not find that in the docs... Maybe add it? Further, how do I set the backgroundColor of the whole thing? When you look at this image http://imgur.com/s6Ahg1k it defaults to white. Here its grey http://imgur.com/Ls2vXmz.

use sceneStyle for Router. Thanks for the feedback, it is added to docs now:
https://github.com/aksonov/react-native-router-flux/blob/master/docs/API.md

@aksonov That
<Router sceneStyle = {styles.container}> ... </Router>
with
const styles = StyleSheet.create({
  container: {
    backgroundColor: "#FFF"
  },
  header: {
    backgroundColor: "#108EE9",
  },
});

is not getting applied. Does it need a different style object? Further, is the textcolor of the header modifiable as well?

Check Example project for white background colour.  titleStyle must be used for textcolor of the header, as I said before.

navigationBarStyle is style of nav bar (as I said already)

@aksonov yes :) But I want to set the backgroundColor for the whole router - not the header.
Here its all white  http://imgur.com/s6Ahg1k while its grey here http://imgur.com/Ls2vXmz.
I dont want the backgroundColor of the header white, but everything else (where the text is and everything below it). And that
<Router sceneStyle = {styles.container}> ... </Router>
with
const styles = StyleSheet.create({
  container: {
    backgroundColor: "#FFF"
  },
  header: {
    backgroundColor: "#108EE9",
  },
});

Does not do the trick.

Do you see white for Example? If so, probably you are using outdated RNRF version (Example uses latest)

No, I can exchange
...container: {     backgroundColor: "#FFF"   },...
with backgroundColor: "red" and it does not change. I am using react-native-router-flux 4.0.0-beta.16 which is the most recent I assume?


Rulereader fix

Simple fix to a big bug.
It turns out I wasn't passing the taxonomy to the rules (gasp!) 2ith the changes introduced through the odin-graph PR.  I guess I didn't notice, because none of our tests covered that previously.  Now we have a couple of simple tests for the taxonomy's effect on a Mention's .labels attribute.  I ran the tests for simple events in reach and they now pass, @hickst.

Yes, I pulled that branch and ran the tests on the Reach proc6.0.6 branch. All tests passed for me, too.

Tom,
Do you want to release then?

On Jul 21, 2017, at 10:07 AM, Tom Hicks<EMAIL_ADDRESS>wrote:
Yes, I pulled that branch and ran the tests on the Reach proc6.0.6 branch. All tests passed for me, too.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/clulab/processors/pull/161#issuecomment-316922745, or mute the thread https://github.com/notifications/unsubscribe-auth/ABH-zokUnpe33nf4k2FLCY4q-Ql-SI3Gks5sQE5JgaJpZM4OfBDL.


⚠ Bofrost.es has degraded performance

In f29e665, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1453 ms

Resolved: Bofrost.es performance has improved in 87723dc after 7 minutes.


Publish v0.2.0 on npmjs

Could you publish v0.2.0 on npmjs? It is fully backward compatible, but has new features

@kykint, thanks for your contribution. I just published v0.2.0


Raspberry Pi 3B Error - Kernel version "4.19.97-v7+" could not be found.

UA-NETINST Works fine on the Raspberry Pi4, but I want to create an image which will work on both the RPI3 and RPI4. However, no matter what I try, I keep getting this error on the Raspberry Pi 3 (B). Even when I scrub all the Raspberry Pi4 config and just focus on trying to get this to work on the Raspberry Pi 3B, I keep arriving at this error. The killer is, I have to go through the 20 minute process every time just to see this error again and again. What's the solution please ?
Kernel modules for the kernel version "4.19.97-v7+" could not be found. Searching for alternatives...
Using modules of kernel version "4.19.58-v7+".
modprobe: can't load module rfkill (kernel/net/rfkill/rfkill.ko): invalid module format
Waiting for wlan0... 1.. 2.. 3.. 4.. 5.. 6.. 7.. 8.. 9.. 10.. 11.. 12.. 13.. 14.. 15.. 16.. 17.. 18.. 19.. 20.. 21.. 22.. 23.. 24.. 25.. 26.. 27.. 28>
Error: The installation could not be completed!

Please use the current release with the updated kernels and report.

The one just posted an hour ago. Will do. Thanks


Trying to use SAM to segment engineering rock samples, but I need to solve two issues

Hello, I am trying to use  SAM to segment engineering rock samples as follows:

Here's a photo that contains a box of rock samples, and what I need to do is segment all the rocks and then choose the ones that is longer than a specific length(as we know the length of the box, we can easily calculate the length of each rock based on its pixel size).
By using SAM SamAutomaticMaskGenerator, I can get the segmented elements of this photo as follows:

However, there're two issues which I think should be solved first so that my final target can be reached:
The first one is the overlapping elements. As SAM may have overlapping segment elements, I may count repeated rocks. Is it possible to make SAM generate all non-overlapping elements?
The  second one is how to separate the rocks from backgrounds. SAM segments everything including photo background, and is it possible so that I can only segment rocks?
I appreciate if anyone could help solve this issue. Thank you !

I think non-maximum overlapping suppression (NMS) can solve your overlapping problem an you can use a classifier to to distinguish which one is background or a rock. I am not sure of that works but you can also use a pretrained network to extract embeddings and calculate a similarity between all these objects. Since you have a lot of rock probably what you would like to segment will create a cluster.

I think non-maximum overlapping suppression (NMS) can solve your overlapping problem an you can use a classifier to to distinguish which one is background or a rock. I am not sure of that works but you can also use a pretrained network to extract embeddings and calculate a similarity between all these objects. Since you have a lot of rock probably what you would like to segment will create a cluster.

Thanks. As for non-maximum overlapping, I think segment-anything has already implemented it, but it still has possibility to generate overlapping masks. Just use the above images as an example, I have generated two images as follows:

the first one lists all masks while the second one lists top 15 large masks. as you can see, mask 9 contains mask 58, mask 17, as well as mask 39. I think that is due to the semantic segmentation similar as the example shown by official:


Warning when accessing PropTypes via main package

Hey guys, first of all, thank you for this awesome library.
I'm opening this issue because we noticed a common problem when using this library with React v15.5.0.
Currently, react-metrics is displaying the following warning on console:
Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

As of React v15.5.0, PropTypes has its own package, and now it shows a deprecation warning when using PropTypes directly from React package.
Related: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#new-deprecation-warnings
Just as a quick reference, this code now shows a warning:
import { PropTypes } from 'react';

Now, the "correct" way of using PropTypes is via prop-types package.
import PropTypes from 'prop-types';

Do you guys mind if I open a pull request to use this new prop-types package instead of "main" PropTypes?
Thank you!

Related: #38

@wmartins that would be great. We haven't upgraded to React v15.5.0 yet but I'll gladly review a PR for including the prop-types package 👍

Thank you @jamsea, I'll provide a PR for that soon.

Hey @jamsea, will you guys publish a new npm version for that?
Thank you!

@wmartins published 👍

@jamsea Thank yoU!


Add eq benchmark for StringArray/StringViewArray

Which issue does this PR close?

Closes #5903.
Rationale for this change
Now we have a rough idea of the performance between StringViewArray and StringArray.
tldr: for this workload, the StringViewArray is 3x faster than StringArray
Eq/StringArray          time:   [17.044 ms 17.077 ms 17.115 ms]
                        change: [-3.1537% -2.8287% -2.4900%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
  3 (3.00%) high mild
  2 (2.00%) high severe

Eq/StringViewArray      time:   [6.6760 ms 6.7019 ms 6.7263 ms]
                        change: [-2.4557% -1.9821% -1.5484%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 17 outliers among 100 measurements (17.00%)
  4 (4.00%) low severe
  13 (13.00%) low mild

Neq/StringArray         time:   [16.842 ms 16.865 ms 16.895 ms]
                        change: [-3.1768% -2.7754% -2.3814%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
  2 (2.00%) high mild
  3 (3.00%) high severe

Neq/StringViewArray     time:   [6.8212 ms 6.8465 ms 6.8770 ms]
                        change: [-2.0508% -1.5512% -1.0159%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) high mild
  3 (3.00%) high severe

======
I do notice the mileage varies a lot with different workloads, and I spent quite some time to understand why.
Maybe it's worthwhile to present a more comprehensive evaluation/understanding of when/where to use StringViewArray. But I guess that is after we finish the DataFusion integration.

What changes are included in this PR?

Are there any user-facing changes?

Maybe it would be a good time to add like/ilike benchmarks for StringView too

like/ilike will be supported after #5931, I'll add them once it is merged.

Thanks @XiangpengHao !

Maybe it would be a good time to add like/ilike benchmarks for StringView too

like/ilike will be supported after #5931 is merged, I'll add them once it is merged.

FYI PR to add thm in https://github.com/apache/arrow-rs/pull/5936


bugfix: comment submission response format is bizarre

Closes #516

If adding a test, can we just remove the comment body from the response?  There doesn't seem much benefit to echoing the data that the user just sent to the server.

I agree that there's not a ton of benefit. I think that's what we do with POST responses in general though, so it seems nice to be consistent.

by REST conventions you should totally reply with the data as newly represented no? as opposed to RPC etc

@matthew-white test added :+1:

Ah looks like CircleCI is failing on the master branch with some small linting issues.

Those are now resolved as of #550 — thanks, @sadiqkhoja!


feat: :technologist: add husky pre-commit hooks

Description

Checks any ES files and JSON with Biome before commit
Test JS and TS files
Checks .svg icons before commit
Lint Markdown files with markdownlint before commit
Lint commit message with commitlint

Contribution Guidelines

[x] By creating this pull request, I acknowledge that I have read the Contribution Guidelines for this project
[x] I have read the Code Of Conduct and promise to abide by these rules

@PKief merge please


Reduce size of encoded array slab and bump version

Updates #292
Changes:

bump Atree format version to 1 (was 0)
remove redundant version and flag data from root slabs (2 bytes per root slab)
remove redundant slab address from children headers in metadata slab since all child slabs have the same address (8 bytes per child header per metadata slab)
reduce encoded child slab size in children headers in metadata slab from 4 bytes to 2 bytes (2 bytes per child header per metadata slab)
decode version 0 and 1
encode only version 1
add tests to decode array slabs data in version 0

⚠ This change requires data migration and data format version was bumped from 0 to 1.

[x] Targeted PR against main branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Codecov Report

Merging #330 (1ea371a) into main (24f8172) will increase coverage by 0.21%.
The diff coverage is 69.09%.

@@            Coverage Diff             @@
##             main     #330      +/-   ##
==========================================
+ Coverage   64.87%   65.08%   +0.21%
==========================================
  Files          14       14
  Lines        8443     8623     +180
==========================================
+ Hits         5477     5612     +135
- Misses       2267     2300      +33
- Partials      699      711      +12

Impacted Files
Coverage Δ

array.go
70.54% <68.97%> (+0.14%)
:arrow_up:

array_debug.go
52.28% <100.00%> (ø)

... and 2 files with indirect coverage changes


frint-store: Test Store with combined reducers, and passing no initialState during instantiation

Likely a bug, or I am mistaken. But needs to be confirmed.
To reproduce

Create a Store with:

Combined reducers
Where one reducer has default state at function level

const INITIAL_STATE = {
  foo: 'bar'
};

function myReducer(state = INITIAL_STATE, action) {
  // ...
}

Then try instantiating the Store with no initialState key, with data that one of the reducer expects:

const Store = createStore({
  reducer: combinedReducer
});

const store = new Store();

For e.g., try this test without the initialState key: https://github.com/Travix-International/frint/blob/master/packages/frint-store/src/createStore.spec.js#L347


ERROR: [Instagram] CdbWgSjAPdT: Unable to extract video url (using authentication)

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
Error while trying to download any instagram video while using cookies.
While try to download public videos without cookies works fine, but even this public videos cause error while try to download with cookies (my default option - alfred workflow)
cookies generated by getcookies chrome extension
edit
Im tested right now using .netrc file and -u and -p parameters and got the same error (unable to extract url)
Verbose log
arthur@blackpower ~ % yt-dlp https://www.instagram.com/p/CdbWgSjAPdT/ --cookies ~/instagram.com_cookies.txt --verbose
[debug] Command-line config: ['https://www.instagram.com/p/CdbWgSjAPdT/', '--cookies', '/Users/arthur/instagram.com_cookies.txt', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d52355]
[debug] Python version 3.10.4 (CPython 64bit) - macOS-11.3-x86_64-i386-64bit
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg 5.0.1 (setts), ffprobe 5.0.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] [Instagram] Extracting URL: https://www.instagram.com/p/CdbWgSjAPdT/
[Instagram] CdbWgSjAPdT: Downloading webpage
WARNING: [Instagram] unable to extract username; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
ERROR: [Instagram] CdbWgSjAPdT: Unable to extract video url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/local/Cellar/yt-dlp/2022.5.18/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 642, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/Cellar/yt-dlp/2022.5.18/libexec/lib/python3.10/site-packages/yt_dlp/extractor/instagram.py", line 415, in _real_extract
    video_url = self._og_search_video_url(webpage, secure=False)
  File "/usr/local/Cellar/yt-dlp/2022.5.18/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1340, in _og_search_video_url
    return self._html_search_regex(regexes, html, name, **kargs)
  File "/usr/local/Cellar/yt-dlp/2022.5.18/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1235, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/usr/local/Cellar/yt-dlp/2022.5.18/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1226, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

I closed the other issue, since it wasn't solved and the description here brings more detailed info about authentication error, im not spamming, I just commented twice, with a difference of MONTHS between comments

Don't spam! Duplicate of #3077

I closed the other issue, since it wasn't solved and the description here brings more detailed info about authentication error, im not spamming, I just commented twice, with a difference of MONTHS between comments

I closed the other issue, since it wasn't solved and the description here brings more detailed info about authentication error,

That is not a reason to open duplicate issues!


Add support for OpenVPN

Currently, openvpn servers ignore the set proxy

I'm not very used to using openvpn from CLI. I mostly get VPN configs (from vpngate) and import that in GNOME network settings. The GUI has an option to provide proxy settings.
I cannot figure out an elegant way to do this.
One way could be modifying vpn.data, and vpn.secrets attribute using nmcli con modify for every VPN connection.
Or doing the same for VPN settings in /etc/NetworkManager/system-connections/.
However, I don't find them good solutions as they need to run after every new connection is created, and sounds ugly.
Thoughts?

When fix?

?

Sorry @tatarins!
I don't have much bandwidth these days to work on more features.
Also, IMHO VPN is not a very sought after functionality on Linux.
If someone would volunteer for a PR, I'll be happy to review and merge it.
Thanks :)


Flex: invalid_prior_notice_day_range

Describe the problem
See below
Describe the new validation rule
invalid_prior_notice_day_range as defined in the table here
Sample GTFS datasets
No response
Severity
Error
Additional context
No response

Tasks:

[ ] implement the logics
[ ] add unit test
[ ] review documentation
[ ] review the acceptance tests


Linear regression actor

The code is cleaned

Please remove code that is commented and the print statement. The definition json has changed to comply with JSON API, please merge the latest changes from master and adapt the definition. See the wiki page for the linearregression actor on what the change is (this page has already been adapted).


BUG: Set success attribute in OptimizeResult. See #9801

closes gh-9801

Thanks @sgubianpm. Could you also add a regression test for this?

LGTM now, merged. Thanks @sgubianpm


wsl start slowly

wal start slowly with Windows terminal

Two questions:

Does Windows Terminal launch automatically after boot?
After restarting your PC, does wsl.exe from the start menu start slowly?

terminal launch fast,but wsl launch slowly with terminal. i didn't test it with start menu

I suspect you'll see that it also starts slowly if you start WSL from the start menu without Windows Terminal.
WSL is slow to start on the first launch after a while (or after a reboot) because WSL runs in a virtual machine which first needs to boot in the background. I suspect that you should notice that WSL launches a lot faster after you open it a second time.

I suspect you'll see that it also starts slowly if you start WSL from the start menu without Windows Terminal.
WSL is slow to start on the first launch after a while (or after a reboot) because WSL runs in a virtual machine which first needs to boot in the background. I suspect that you should notice that WSL launches a lot faster after you open it a second time.

i test it.  WSL start slowly from the start menu, but WSL is also slow to start on the first launch after a while. what's more , when wsl is open, i start another wsl is slow too

WSL start slowly from the start menu, but WSL is also slow to start on the first launch after a while. what's more , when wsl is open, i start another wsl is slow too

Huh. That sounds like a WSL problem, not a Terminal one. You should probably report this over at https://github.com/microsoft/WSL/issues, thanks!

WSL start slowly from the start menu, but WSL is also slow to start on the first launch after a while. what's more , when wsl is open, i start another wsl is slow too

Huh. That sounds like a WSL problem, not a Terminal one. You should probably report this over at https://github.com/microsoft/WSL/issues, thanks!

thank you


Watch product review recording and slides

References

Recording
Slides

Closing this ticket because I watched the recording back today.


Questions about using openai libraries and network proxies together

Describe the bug
I have successfully installed the openai-python library. When I copy the following code from README.md, I get an error when trying to run the program.
Code content：
import openai
with open('.\config\config.json', 'r', encoding='utf-8') as f:
    config = json.load(f)
openai.api_key = config['api-key']
chat_completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
print(chat_completion)

Note: Due to relevant confidentiality requirements, I save my api-key in my local json file, and after testing, my code can normally read the api-key stored in the json file
Error content：
ERROR: APIConnectionError
Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))

During handling of the above exception, another exception occurred:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))

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

  File "C:\Users\xupei\Desktop\ChatBot(GPT3.5turbo)\main.py", line 32, in <module>
    chat_completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))

After repeated attempts, I found that it was because I was using a network proxy. So I tried shutting down the network agent and rerun the code. But after a long waiting period, the error was still reported.
Error content：
Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002ABD10FB130>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。'))
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。

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

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000002ABD10FB130>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。

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

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002ABD10FB130>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。'))

During handling of the above exception, another exception occurred:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002ABD10FB130>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。'))

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

  File "C:\Users\xupei\Desktop\ChatBot(GPT3.5turbo)\main.py", line 32, in <module>
    chat_completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002ABD10FB130>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。'))

The connection to the host timed out or failed to connect. This is due to the fact that my country and region cannot connect to
openai's server without network proxy.
I really hope this problem can be solved and I am looking forward to your reply.
To Reproduce
1.edit code
code content:
import openai
with open('.\config\config.json', 'r', encoding='utf-8') as f:
    config = json.load(f)
openai.api_key = config['api-key']
chat_completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
print(chat_completion)

Note: Due to relevant confidentiality requirements, I save my api-key in my local json file, and after testing, my code can normally read the api-key stored in the json file
2.run
3.see error
Code snippets
No response
OS
Windows11
Python version
Python 3.9.10
Library version
openai-python v0.27.6

1、
import os
os.environ["http_proxy"] = "http://<IP_ADDRESS>:7890"
os.environ["https_proxy"] = "http://<IP_ADDRESS>:7890"

AND
pip3 uninstall urllib3
pip install urllib3==1.25.11

2、
Also check whether vpn is blocked by open ai

I believe the cause of this issue is that you're in a country that is not supported by OpenAI. Unfortunately there isn't much we can do about this.
Here's a list of the countries currently supported: https://platform.openai.com/docs/supported-countries.
Please feel free to ask any more questions in the community forum! https://community.openai.com/


fix: attempt to fix activity screen flaky tests

This PR resolves []
Description
This PR is an attempt to fix the flaky tests on the Activity Screen

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a [feature flag], or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an [app state migration], or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[X] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

#nochangelog

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against c06200c98c797c47a074778a1a40882859bbab45


Pass portia-entrypoint to SHUB namespace

We have to pass portia-entrypoint via env variable in both ways while migration process.
Review, please.

This change is

We agreed to replace _print_flush with logging in another PR


Update getCardReference method

based on results, Authorize and Authorize Capture response parameter key TokenizedPAN is returned instead of Token not sure about CreateCardResponse

see FACPG2 v2.6.9

Tanks for making this backwards compatible


constant buffering when playing 128bit mp3 stream

Tried playing a 128bit MP3 stream and constant buffering.  Unlistenable.

sorry for the inconvenience but this program is only a user interface for the fantastic audio library                  https://github.com/schreibfaul1/ESP32-audioI2S
I don't know witch ESP32 you are using, from the ESP32 audiokit modules are different versions available, if you have one fitted with a ESP32WROOM without PSRAM then that could be the problem.
greetings,
thieu


How to pass extra vars to setkeybinding func?

Hi,
I'd like to pass extra variables into my function which is used in SetKeybinding()
something like this
if err := g.SetKeybinding("viewname", gocui.KeyEnter, gocui.ModNone, myfunction(myvar1, myvar2)); err != nil {
	// handle error
}

Is there any way to do this or I have to use global vars that visible from any funcs?

Answer is found.

Hi. Do you mind showing how you solved it? Wondering the same.

@antonlindgren
Hi, I built shortcuts management in such way:

all shortcuts are defined in an array of structs
iterate over the array and use SetKeybinding() for each shortcut handler
handler's function can accept paramters

type key struct {
	viewname string
	key      interface{}
	handler  func(g *gocui.Gui, v *gocui.View) error
}

func keybindings(g *gocui.Gui) error {
	var keys = []key{
		{"", gocui.KeyCtrlC, quit},
		{"", 'd', funcExample("user_data")},
		{"", gocui.KeyEsc, closeHelp},
	}

	g.InputEsc = true

	for _, k := range keys {
		if err := g.SetKeybinding(k.viewname, k.key, gocui.ModNone, k.handler); err != nil {
			return fmt.Errorf("ERROR: failed to setup keybindings: %s", err)
		}
	}
	return nil
}

func funcExample(c string) func(g *gocui.Gui, v *gocui.View) error {
	return func(g *gocui.Gui, v *gocui.View) error {
	switch c {
        // your application logic here
        }
	return nil
	}
}

Hope it helps )))


Add COMP module

Added a HAL module for the COMP analog comparator peripheral.
The comparator compares an input voltage (Vin) against a second input voltage (Vref).
Vin can be derived from an analog input pin (AIN0-AIN7).
Vref can be derived from multiple sources depending on the operation mode of the comparator.
Tested on NRF52840-DK
Demo (nRF52840):
https://github.com/kalkyl/nrf-hal/blob/comp/examples/comp-demo/src/main.rs

Merging manually due to false CI failures


Fix various annotations issues

Fix #470. Nested annotations work correctly.
IOSObjectArrays use type information when available instead of defaulting to NSObject.
Primitive array annotation members generate the proper IOSArray.
Refactored annotation array generation to be consistent.
Added more unit tests to actually test annotations comprehensively.

The first commit was for #469, but the second commit relies on it and has the meaty part of the PR.

Thanks for the fix, Harry. Because Keith has been optimizing Class.getClass() quite a bit, I had to modify the patch to where it's hard to recognize. It's there, though!


Error 504 when call getFile method

I am trying to call getFile method with my test bot but it always return 504 error
https://api.telegram.org/bot<botToken>/test/getFile?file_id=<big file id from 'photo' bot event>

The method works fine, if i try to call it with wrong id i get an error
{
	"ok": false,
	"error_code": 400,
	"description": "Bad Request: invalid file_id"
}

But if photo id is valid i get timeout error(504)
{
	"ok": false,
	"error_code": 504,
	"description": "Gateway Timeout"
}

Test DC isn't expected to be reliable. It seems to have issues with file downloading now.

is there another way to get a link to a file by another method?

No. The file can't be downloaded in Test DC now.


Inversed Eye for password displaying

Hi,
Great work, i just suggest you to change the eye toggling for password it is inversed ^^
Good luck,

@mmby85 For sure, thanks you liked it...

@mmby85 For sure, thanks you liked it...

@mmby85 For sure.


(feat) executor: Added support for taking multiple secrets and configmaps from chaos-experiment

What this PR does / why we need it:

This PR will help in taking configmaps and secrets from user.
Configmaps and secrets can be defined in the  chaos-experiment.
More then one configMaps and secrets can also be defined into the chaos-experiment.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Checklist

[ ] Does this PR have a corresponding GitHub issue?
[ ] Have you included relevant README for the chaoslib/experiment with details?
[ ] Have you added debug messages where necessary?
[ ] Have you added task comments where necessary?
[ ] Have you tested the changes for possible failure conditions?
[ ] Have you provided the positive & negative test logs for the litmusbook execution?
[ ] Does the litmusbook ensure idempotency of cluster state?, i.e., is cluster restored to original state?
[ ] Have you used non-shell/command modules for Kubernetes tasks?
[ ] Have you (jinja) templatized custom scripts that is run by the litmusbook, if any?
[ ] Have you (jinja) templatized Kubernetes deployment manifests used by the litmusbook, if any?
[ ] Have you reused/created util functions instead of repeating tasks in the litmusbook?
[ ] Do the artifacts follow the appropriate directory structure?
[ ] Have you isolated storage (eg: OpenEBS) specific implementations, checks?
[ ] Have you isolated platform (eg: baremetal kubeadm/openshift/aws/gcloud) specific implementations, checks?
[ ] Are the ansible facts well defined? Is the scope explicitly set for playbook & included utils?
[ ] Have you ensured minimum/careful usage of shell utilities (awk, grep, sed, cut, xargs etc.,)?
[ ] Can the limtusbook be executed both from within & outside a container (configurable paths, no hardcode)?
[ ] Can you suggest the minimal resource requirements for the litmusbook execution?
[ ] Does the litmusbook job artifact carry comments/default options/range for the ENV tunables?
[ ] Has the litmusbooks been linted?

Special notes for your reviewer:

Pod-Delete experiment yaml (3 configMaps 1 secret)
apiVersion: litmuschaos.io/v1alpha1
description:
  message: |
    Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
  name: pod-delete
  version: 0.1.0
spec:
  definition:
    image: "litmuschaos/ansible-runner:ci"
    args:
    - -c
    - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
    command:
    - /bin/bash
    env:
    - name: ANSIBLE_STDOUT_CALLBACK
      value: default
    - name: TOTAL_CHAOS_DURATION
      value: 15
    - name: CHAOS_INTERVAL
      value: 5
    - name: LIB
      value: ""
    labels:
      name: pod-delete
    configmaps:
    - name: amitbhatt
      mountPath: /mnt/
    - name: satya
      mountPath: /mmt
    - name: rahul
      mountPath: /xxx/
    secrets:
    - name: xyz
      mountPath: /cde/

cjob yaml-(3 configMaps 1 secret)
apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp: null
  labels:
    name: pod-delete
  name: pod-delete-47116b
spec:
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: pod-delete
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml
          -i /etc/ansible/hosts -vv; exit 0
        env:
        - name: APP_KIND
        - name: LIB
        - name: CHAOS_INTERVAL
          value: "5"
        - name: ANSIBLE_STDOUT_CALLBACK
          value: default
        - name: APP_LABEL
          value: app=nginx
        - name: APP_NAMESPACE
          value: default
        - name: TOTAL_CHAOS_DURATION
          value: "15"
        - name: CHAOSENGINE
          value: engine-nginx
        image: litmuschaos/ansible-runner:ci
        imagePullPolicy: Always
        name: pod-delete-47116b
        resources: {}
        volumeMounts:
# xyz-/cde/Filling VolumeMounts - secret
        - name: xyz
          mountPath: /cde/
# xyz-/cde/Filling VolumeMounts - secret
# rahul-/xxx/Filling VolumeMounts - configmap
        - name: rahul
          mountPath: /xxx/
# rahul-/xxx/Filling VolumeMounts - configmap
# satya-/mmtFilling VolumeMounts - configmap
        - name: satya
          mountPath: /mmt
# satya-/mmtFilling VolumeMounts - configmap
# amitbhatt-/mnt/Filling VolumeMounts - configmap
        - name: amitbhatt
          mountPath: /mnt/
# amitbhatt-/mnt/Filling VolumeMounts - configmap
      restartPolicy: OnFailure
      volumes:
# xyz Filling VolumeMounts - secret
      - name: xyz
        secret:
          secretName: xyz
# xyz Filling VolumeMounts - secret
# rahul Filling VolumeMounts - configmap
      - name: rahul
        configMap:
          name: rahul
# rahul Filling VolumeMounts - configmap
# satya Filling VolumeMounts - configmap
      - name: satya
        configMap:
          name: satya
# satya Filling VolumeMounts - configmap
# amitbhatt Filling VolumeMounts - configmap
      - name: amitbhatt
        configMap:
          name: amitbhatt
# amitbhatt Filling VolumeMounts - configmap
status: {}

---------------------------------------------------------------------------------------------------->>>
Pod-delete experiment yaml(1 configMaps 1 secret)
apiVersion: litmuschaos.io/v3alpha1
description:
  message: |
    Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
  name: pod-delete
  version: 0.1.0
spec:
  definition:
    image: "litmuschaos/ansible-runner:ci"
    args:
    - -c
    - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
    command:
    - /bin/bash
    env:
    - name: ANSIBLE_STDOUT_CALLBACK
      value: default
    - name: TOTAL_CHAOS_DURATION
      value: 15
    - name: CHAOS_INTERVAL
      value: 5
    - name: LIB
      value: ""
    labels:
      name: pod-delete
    configmaps:
    - name: amitbhatt
      mountPath: /mnt/
    secrets:
    - name: xyz
      mountPath: /cde/

cjob yaml-(1 configMaps 1 secret)
apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp: null
  labels:
    name: pod-delete
  name: pod-delete-5fcff0
spec:
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: pod-delete
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml
          -i /etc/ansible/hosts -vv; exit 0
        env:
        - name: APP_KIND
        - name: LIB
        - name: CHAOS_INTERVAL
          value: "5"
        - name: ANSIBLE_STDOUT_CALLBACK
          value: default
        - name: APP_LABEL
          value: app=nginx
        - name: APP_NAMESPACE
          value: default
        - name: TOTAL_CHAOS_DURATION
          value: "15"
        - name: CHAOSENGINE
          value: engine-nginx
        image: litmuschaos/ansible-runner:ci
        imagePullPolicy: Always
        name: pod-delete-5fcff0
        resources: {}
        volumeMounts:
# xyz-/cde/Filling VolumeMounts - secret
        - name: xyz
          mountPath: /cde/
# xyz-/cde/Filling VolumeMounts - secret
# amitbhatt-/mnt/Filling VolumeMounts - configmap
        - name: amitbhatt
          mountPath: /mnt/
# amitbhatt-/mnt/Filling VolumeMounts - configmap
      restartPolicy: OnFailure
      volumes:
# xyz Filling VolumeMounts - secret
      - name: xyz
        secret:
          secretName: xyz
# xyz Filling VolumeMounts - secret
# amitbhatt Filling VolumeMounts - configmap
      - name: amitbhatt
        configMap:
          name: amitbhatt
# amitbhatt Filling VolumeMounts - configmap

---------------------------------------------------------------------------------------------------->>>
Pod-delete experiment yaml(2 configMaps 2 secret)
apiVersion: litmuschaos.io/v1alpha1
description:
  message: |
    Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
  name: pod-delete
  version: 0.1.0
spec:
  definition:
    image: "litmuschaos/ansible-runner:ci"
    args:
    - -c
    - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
    command:
    - /bin/bash
    env:
    - name: ANSIBLE_STDOUT_CALLBACK
      value: default
    - name: TOTAL_CHAOS_DURATION
      value: 15
    - name: CHAOS_INTERVAL
      value: 5
    - name: LIB
      value: ""
    labels:
      name: pod-delete
    configmaps:
    - name: amitbhatt
      mountPath: /mnt/
    - name: litmus
      mountPath: /mmm/
    secrets:
    - name: xyz
      mountPath: /cde/
    - name: abc
      mountPath: /efg/

cjob yaml-(2 configMaps 2 secret)
apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp: null
  labels:
    name: pod-delete
  name: pod-delete-2765b4
spec:
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: pod-delete
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml
          -i /etc/ansible/hosts -vv; exit 0
        env:
        - name: APP_KIND
        - name: LIB
        - name: CHAOS_INTERVAL
          value: "5"
        - name: ANSIBLE_STDOUT_CALLBACK
          value: default
        - name: APP_LABEL
          value: app=nginx
        - name: APP_NAMESPACE
          value: default
        - name: TOTAL_CHAOS_DURATION
          value: "15"
        - name: CHAOSENGINE
          value: engine-nginx
        image: litmuschaos/ansible-runner:ci
        imagePullPolicy: Always
        name: pod-delete-2765b4
        resources: {}
        volumeMounts:
# abc-/efg/Filling VolumeMounts - secret
        - name: abc
          mountPath: /efg/
# abc-/efg/Filling VolumeMounts - secret
# xyz-/cde/Filling VolumeMounts - secret
        - name: xyz
          mountPath: /cde/
# xyz-/cde/Filling VolumeMounts - secret
# litmus-/mmm/Filling VolumeMounts - configmap
        - name: litmus
          mountPath: /mmm/
# litmus-/mmm/Filling VolumeMounts - configmap
# amitbhatt-/mnt/Filling VolumeMounts - configmap
        - name: amitbhatt
          mountPath: /mnt/
# amitbhatt-/mnt/Filling VolumeMounts - configmap
      restartPolicy: OnFailure
      volumes:
# abc Filling VolumeMounts - secret
      - name: abc
        secret:
          secretName: abc
# abc Filling VolumeMounts - secret
# xyz Filling VolumeMounts - secret
      - name: xyz
        secret:
          secretName: xyz
# xyz Filling VolumeMounts - secret
# litmus Filling VolumeMounts - configmap
      - name: litmus
        configMap:
          name: litmus
# litmus Filling VolumeMounts - configmap
# amitbhatt Filling VolumeMounts - configmap
      - name: amitbhatt
        configMap:
          name: amitbhatt
# amitbhatt Filling VolumeMounts - configmap
status: {}

---------------------------------------------------------------------------------------------------->>>
Pod-delete experiment yaml (1 configMaps 3 secret)
apiVersion: litmuschaos.io/v1alpha1
description:
  message: |
    Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
  name: pod-delete
  version: 0.1.0
spec:
  definition:
    image: "litmuschaos/ansible-runner:ci"
    args:
    - -c
    - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
    command:
    - /bin/bash
    env:
    - name: ANSIBLE_STDOUT_CALLBACK
      value: default
    - name: TOTAL_CHAOS_DURATION
      value: 15
    - name: CHAOS_INTERVAL
      value: 5
    - name: LIB
      value: ""
    labels:
      name: pod-delete
    configmaps:
    - name: amitbhatt
      mountPath: /mnt/
    secrets:
    - name: xyz
      mountPath: /cde/
    - name: abc
      mountPath: /efg/
    - name: gef
      mountPath: zzz

cjob yaml-(1 configMaps 3 secret)
apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp: null
  labels:
    name: pod-delete
  name: pod-delete-5a98bb
spec:
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: pod-delete
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml
          -i /etc/ansible/hosts -vv; exit 0
        env:
        - name: APP_KIND
        - name: LIB
        - name: CHAOS_INTERVAL
          value: "5"
        - name: ANSIBLE_STDOUT_CALLBACK
          value: default
        - name: APP_LABEL
          value: app=nginx
        - name: APP_NAMESPACE
          value: default
        - name: TOTAL_CHAOS_DURATION
          value: "15"
        - name: CHAOSENGINE
          value: engine-nginx
        image: litmuschaos/ansible-runner:ci
        imagePullPolicy: Always
        name: pod-delete-5a98bb
        resources: {}
        volumeMounts:
# gef-zzzFilling VolumeMounts - secret
        - name: gef
          mountPath: zzz
# gef-zzzFilling VolumeMounts - secret
# abc-/efg/Filling VolumeMounts - secret
        - name: abc
          mountPath: /efg/
# abc-/efg/Filling VolumeMounts - secret
# xyz-/cde/Filling VolumeMounts - secret
        - name: xyz
          mountPath: /cde/
# xyz-/cde/Filling VolumeMounts - secret
# amitbhatt-/mnt/Filling VolumeMounts - configmap
        - name: amitbhatt
          mountPath: /mnt/
# amitbhatt-/mnt/Filling VolumeMounts - configmap
      restartPolicy: OnFailure
      volumes:
# gef Filling VolumeMounts - secret
      - name: gef
        secret:
          secretName: gef
# gef Filling VolumeMounts - secret
# abc Filling VolumeMounts - secret
      - name: abc
        secret:
          secretName: abc
# abc Filling VolumeMounts - secret
# xyz Filling VolumeMounts - secret
      - name: xyz
        secret:
          secretName: xyz
# xyz Filling VolumeMounts - secret
# amitbhatt Filling VolumeMounts - configmap
      - name: amitbhatt
        configMap:
          name: amitbhatt
# amitbhatt Filling VolumeMounts - configmap
status: {}

---------------------------------------------------------------------------------------------------->>>
Pod-delete experiment yaml (1 configMaps 0 secret)
apiVersion: litmuschaos.io/v1alpha1
description:
  message: |
    Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
  name: pod-delete
  version: 0.1.0
spec:
  definition:
    image: "litmuschaos/ansible-runner:ci"
    args:
    - -c
    - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
    command:
    - /bin/bash
    env:
    - name: ANSIBLE_STDOUT_CALLBACK
      value: default
    - name: TOTAL_CHAOS_DURATION
      value: 15
    - name: CHAOS_INTERVAL
      value: 5
    - name: LIB
      value: ""
    labels:
      name: pod-delete
    configmaps:
    - name: amitbhatt
      mountPath: /mnt/

cjob yaml-(1 configMaps 0 secret)
apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp: null
  labels:
    name: pod-delete
  name: pod-delete-bdea27
spec:
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: pod-delete
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml
          -i /etc/ansible/hosts -vv; exit 0
        env:
        - name: APP_KIND
        - name: LIB
        - name: CHAOS_INTERVAL
          value: "5"
        - name: ANSIBLE_STDOUT_CALLBACK
          value: default
        - name: APP_LABEL
          value: app=nginx
        - name: APP_NAMESPACE
          value: default
        - name: TOTAL_CHAOS_DURATION
          value: "15"
        - name: CHAOSENGINE
          value: engine-nginx
        image: litmuschaos/ansible-runner:ci
        imagePullPolicy: Always
        name: pod-delete-bdea27
        resources: {}
        volumeMounts:
# amitbhatt-/mnt/Filling VolumeMounts - configmap
        - name: amitbhatt
          mountPath: /mnt/
# amitbhatt-/mnt/Filling VolumeMounts - configmap
      restartPolicy: OnFailure
      volumes:
# amitbhatt Filling VolumeMounts - configmap
      - name: amitbhatt
        configMap:
          name: amitbhatt
# amitbhatt Filling VolumeMounts - configmap
status: {}

---------------------------------------------------------------------------------------------------->>>
Pod-delete experiment yaml (0 configMaps 1 secret)
apiVersion: litmuschaos.io/v1alpha1
description:
 message: |
   Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
 name: pod-delete
 version: 0.1.0
spec:
 definition:
   image: "litmuschaos/ansible-runner:ci"
   args:
   - -c
   - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
   command:
   - /bin/bash
   env:
   - name: ANSIBLE_STDOUT_CALLBACK
     value: default
   - name: TOTAL_CHAOS_DURATION
     value: 15
   - name: CHAOS_INTERVAL
     value: 5
   - name: LIB
     value: ""
   labels:
     name: pod-delete
   secrets:
   - name: xyz
     mountPath: abc

cjob yaml-(0 configMaps 1 secret)
apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp: null
  labels:
    name: pod-delete
  name: pod-delete-0c43b6
spec:
  template:
    metadata:
      creationTimestamp: null
      labels:
        name: pod-delete
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml
          -i /etc/ansible/hosts -vv; exit 0
        env:
        - name: APP_KIND
        - name: LIB
        - name: CHAOS_INTERVAL
          value: "5"
        - name: ANSIBLE_STDOUT_CALLBACK
          value: default
        - name: APP_LABEL
          value: app=nginx
        - name: APP_NAMESPACE
          value: default
        - name: TOTAL_CHAOS_DURATION
          value: "15"
        - name: CHAOSENGINE
          value: engine-nginx
        image: litmuschaos/ansible-runner:ci
        imagePullPolicy: Always
        name: pod-delete-0c43b6
        resources: {}
        volumeMounts:
# xyz-abcFilling VolumeMounts - secret
        - name: xyz
          mountPath: abc
# xyz-abcFilling VolumeMounts - secret
      restartPolicy: OnFailure
      volumes:
# xyz Filling VolumeMounts - secret
      - name: xyz
        secret:
          secretName: xyz
# xyz Filling VolumeMounts - secret
status: {}


Catch AccessControlException to avoid test worker process hanging

Partially fix https://github.com/gradle/gradle/issues/3526
If a security manager is set in test, test worker process can no longer
react to message from main process because Gradle's message dispatch mechanism
depends on reflection and socket communication. This PR fix the issue which cause
worker process to hang and provide more readable error messages
Context
See #3526
Gradle Core Team Checklist

[x] Verify design and implementation
[x] Verify test coverage and CI build status
[x] Verify documentation
[x] Recognize contributor in release notes

@bigdaz could you take a look at this? I can assign someone else if you need.

I don't have any context to review this issue. It would be great if you could find someone more familiar. Perhaps @adammurdoch ?

@bmuschko Could you take a look at this one?

@ghale would you like to take a look at this?

Now that I've thought about this some more, I realize the issue at hand is that a SecurityManager is being set in the test that is going to disallow any sort of communication - even shipping the AccessControlException back to the controlling process.  I think what we should probably do here is build on what you've done and improve the documentation some to have a list of "reasons why a test process can unexpectedly fail".  One of those things can be because a SecurityManager has been set with some direction that the security manager should be restored after the test so that the gradle test worker process can continue to function.  The exception on an unexpected failure in the test process would then point directly to this section in the documentation.

I've slightly polished the documentation, could you please take a look again?

@ghale Were you planning to have another look? Seems like you already dove deep into the issue.


Deploy our portals in the Git-root

It would be great to deploy our portals in the git-root. By doing this we can skip the assemble step and we don't need the file watcher anymore.
What do we need to change first?
Compile the files into a dist folder inside the deploy location.
Compile scss and js into a dist folder.
js and scss are at the moment compiled in the deploy-location while maintaining the folder structure. When we deploy in the git repository it would mean that these files will be overwritten and thus committed into git. This is not desired. Better would be to compile them into a dist (or public or whatever accessible) folder. This can easily be changes in the sass and js step.
The first step is to compile them into a dist folder inside the deploy location.
Refactor CMS
Refactor our CMS to load the assets from this folder.
And next?
Deploy inside the git repo
change to: process.cwd()
https://github.com/studyportals/product-deploy/blob/0421aad928fb2658ee7b998290ea2a050651b245/lib/attachToGulp.js#L24
Remove:
https://github.com/studyportals/product-deploy/blob/0421aad928fb2658ee7b998290ea2a050651b245/lib/attachToGulp.js#L33
Remove:
https://github.com/studyportals/product-deploy/blob/0421aad928fb2658ee7b998290ea2a050651b245/lib/attachToGulp.js#L37-L39
Handle configuration
It overwrites already existing files, we might want to delete those from the main repo and ignore them so that they are only served by the Deploy\Config folder
Rewrite Apache configuration (or use Vagrant)

Meta-Config

@iliqportals I will start working on this feature tomorrow. I have just discussed with @thijsputman that you can start rolling out vagrant for our ServiceLayers.


Add server/client config viewer

Let's add a useful tool for the new Dev Tools menu.
Display server and client configuration in an easy to view format.

In the future I may make the config portion more specific to each major branch off the config. For now each branch is displayed in pretty print JSON. Server side is key=>value rows.

Released in Muledump v9.6.


Implement client-side stores for event history

Removes fetching of event in the load function (which was blocking) and moves the logic to a client-side store.
Still to do:

[ ] Implement loading states
[ ] Progressively fill in event table for large event payloads

I very much like this approach, it's going to make things like adding polling events much easier. Only issue I see right now are the url params being double encoded. Currently it fails to fetch any events and returns a 400 for any url with encoding.
Fetching events on main:
http://localhost:8080/api/v1/namespaces/canary/workflows/temporal.canary.cron-workflow.sanity-2022-05-02T09%253A21%253A06-05%253A00%252Fworkflow.standard-visibility/runs/57d24543-2fae-4ec2-a5e6-d90ad9e2501a/events
Fetching events on this branch:
http://localhost:8080/api/v1/namespaces/canary/workflows/temporal.canary.cron-workflow.sanity-2022-05-02T09%25253A21%25253A06-05%25253A00%25252Fworkflow.advanced-visibility.scan/runs/2e4edffe-dcb5-4db1-b8e7-85cd54333b5b/events

I very much like this approach, it's going to make things like adding polling events much easier. Only issue I see right now are the url params being double encoded. Currently it fails to fetch any events and returns a 400 for any url with encoding.

I found the root cause, it looks like $page.params values are encoded by default, which makes sense. So, now I decode them when reading them and it works.