Angular can send XSRF token different from cookie for multiple parallel requests

In our app (with Angular v1.2.29) some requests cleary sends different xsrf token that is in cookie. We exanimed request headers deeply from console. This results in xsrf attack detection in backend.
From doc about xsrf protection:
"When performing XHR requests, the $http service reads a token from a cookie (by default, XSRF-TOKEN) and sets it as an HTTP header (X-XSRF-TOKEN). "
If Angular allows to happen any asynchronous code between header is set for the XHR request and sending the request, cookie might changed in the meantime, which will result in behavior that we are observing in our application (values are different for cookie and header).
Correct implementation would be set the header just before the request is send.

This is strange because that is exactly what happens: The cookie is read after calling $httpBackend() and from that point onwards, all code is synchronous until the request is sent.
Are you sure the cookie is not updated right after the request is being sent (e.g. by some other request's response) ?

Thank you for fast response, I will do deeper investigation.

@bennadel has a blog post with similar race condition evidence.
http://www.bennadel.com/blog/2991-cross-site-request-forgery-csrf-xsrf-race-condition-in-angularjs.htm

Basically, that post doesn't demonstrate a race condition inside Angular (rather a race condition between server-browser). As @bennadel mentions in the comments (and as already mentioned above), the code between reading the cookie and sending the request is synchronous.
--
One can't really do anything for a request being sent before the response with the new cookie arrives.
The only thing that I can think of, is making the server accept both tokens (old and new) for a very short period of time, to account for requests that left the browser before the response with the new cookie arrived.
It wouldn't be too difficult to implement, but it's a quite rare race condition, so I don't know it's worth it.
It's an interesting experiment though to implement as a POC :smile:
--
Closing as this doesn't seem to be an issue in Angular. Will be happy to re-open, if there is info indicating otherwise.

In our app (with Angular v1.2.29) some requests cleary sends different xsrf token that is in cookie. We exanimed request headers deeply from console. This results in xsrf attack detection in backend.
From doc about xsrf protection:
"When performing XHR requests, the $http service reads a token from a cookie (by default, XSRF-TOKEN) and sets it as an HTTP header (X-XSRF-TOKEN). "
If Angular allows to happen any asynchronous code between header is set for the XHR request and sending the request, cookie might changed in the meantime, which will result in behavior that we are observing in our application (values are different for cookie and header).
Correct implementation would be set the header just before the request is send.

Did u find any solution ?


Feature/156 add status to submission

Adds the workflow and current status onto the application. Doesn't include the machinery to update it.
I've freed up the workflow attribute to return an instantiated workflow object which felt more natural. I may have overthought the workflow classes initially and how they contain forms. When we come to the progression of stages i will need to look into if this is even needed.

There are migration conflicts with #95

👍


Detail schema missing properties, error handling and retry mechanism for post request

Added missing columns for detail schema and fixed one wrong column  (TMM (%) should be TPP)
Reordered detail schema by response order for better compare experience
Matched Tefas table Turkish column names with schema properties for better compare experience
Couldn't catch the reason (could be too frequent request but not 100% sure) but sometimes server responds something similar like captcha check in HTML instead of JSON response. So added an error handling and retry mechanism if post request fails for some reason.

36 of 49 detail field value is checked with TEFAS Historical Data table to see if mapping is correct for timeframe between 01.02.2024 and 10.02.2024.
Unchecked fields: BB, DB, DÖT, EUT, FKB, GAS, HB, KH, KKS, T, VM, YBA, YMK

Thanks :) 👍


[Feature Request] Give the user better feedback about the usage of the bottom navigation panes in the character sheet

Nick is working on a cool visual clue to let people know what the nav buttons do:   https://youtu.be/MELPakXKHRs


Renaming Serverless Operator

Description
Renaming from controller / controller-manager to operator in order to clear up the confusion about serverless operator functionalities and serverless function controller functionalities
Related issue(s)
https://github.com/kyma-project/serverless-manager/issues/116

/retest


Javadoc issues with Java 8

Javadoc validations have gotten stricter with Java 8 resulting builds failing when compiling with Java 8.

Cleaned up javadoc validation errors (commit e92932a). Will push the changes out with the next release.


Adding swap feature

This updates the swap feature as discussed in Issue #1274 that @RubaXa and I worked on to work with v1.8.1.
@owen-m1 I noticed you've been hard at work updating SortableJS lately (THANKS!), so I figured I'd reach out and see if you can get this merged in! It solves the feature requests in issues #1211, #1082, #1072, #891, #869, and #469. RubaXa took my original hackish approach and actually made it work nicely, and then I fixed a few bugs I found. You can see the original work over here if you're interested...
https://github.com/gazugafan/Sortable/tree/swap
I just took what was done and updated it to work with v1.8.1 as best as I can. Seems to be working!
The basic concept here is that, by setting the "swap" option to true, dragged elements will be swapped with the element you drop onto instead of inserted next to it. The "swapClass" option specifies the CSS class to add to the element you're hovering over and potentially swapping with.
When swapping, the "end" event will have a new "swapItem" property that holds the item being swapped with. The argument list in the _dispatchEvent method was getting a little crazy, so I just added one more to be able to tack on miscellaneous extra event properties.
Here's a quick example if you'd like to see it in action...
https://jsbin.com/cojosodati/1/edit?html,js,console,output

How's this? I put the code needed to check if an element is filtered in it's own method. From there, we can call that in a couple extra places... before showing the swap class, and before allowing the swap to actually take place.

Now it is in the next version. If there is anything that you see needs changing, please make a new PR. : )

@owen-m1 any news on when the new version will be released? Eager to have the swap functionality :)

@garygreen As you said in your comment (https://github.com/SortableJS/Sortable/issues/1456#issuecomment-484919347), it would be best if the swap and multiDrag features could be imported as separate files. Unfortunately I am at a loss as to how to go about doing this, as if you compare the code between the branches you can see that multi-dragging adds code in so many places that it would be very cumbersome to simply use plugin events. Any ideas would be appreciated.

@owen-m1 thanks for your comment. I think the best place to start would be to consider moving from Gulp and decide what bundler Sortablejs should use - I would recommend either Webpack or Rollup. It seems Rollup is the most common choice for libraries and Webpack for apps. I've had good experience with using Rollup for most of my libraries.
Using a more modern bundler will allow Sortablejs to easily split the code into separate modules and import them. Also will allow creating bundles for the browser and allow importing directly as es modules, allowing tree shaking.
In terms of code design for splitting the modules up - this is really however you want to do it, but usually  (as you mentioned) you would just hook into events and use the main class as the "controller" as it were, Vuex-esque. Hooking into events Sortable exposes and expect exported-modules to be treeshakeable (side effects free).
So for example (not tested, but hopefully it gives an idea of how you could tie optional modules together).
sortable.js
import MultiDrag from './multi-drag';

function Sortable()
{
  // ... Main sortable js code here
  // ....
}

Sortable.prototype.mount = function(plugins) {
  for (var name in plugins) {
     sortable.plugins[name] = new plugins[name](this);
  }
}

export {
   MultiDrag // Export it and allow it to be tree-shakeable
}
export default Sortable;

multi-drag.js
function MultiDrag(sortable) {
   this.sortable = sortable;
   this.bindEvents();
}

MultiDrag.prototype.bindEvents = function() {
   this.sortable.on('drag', function() {
       // Do any special logic here.
  });

export default MultiDrag;

Usage
import { Sortable, MultiDrag } from 'sortablejs';

var sortable = new Sortable(document.querySelector('#list'));
sortable.mount({ MultiDrag });

A good example of this is kind of technique https://glidejs.com/docs/setup/#using-es-modules (though they do it slightly diff). You can either have the modules importable (and side effects free or make users import the modules they need manually. I'm not sure which is best, and if Rollup supports side effects free.
import Sortable from 'sortablejs';
import MultiDrag from 'sortablejs/src/multi-drag';

var sortable = new Sortable(document.querySelector('#list'));
sortable.mount({ MultiDrag });

I would recommend just to incrementally split out code rather than do a massive refactor because that would be very daunting and time consuming. Better to make incremental updates and ship early than a major update that never lands. 😄


Selective file type scan

I wonder if it was possible to have selective file type scan (by one or more file extensions would be perfect) in configuration, maybe in the .env file. Thanks!

I think this is an edge case. 99% of the time you want all music files in a music folder to be scannable by a music application, don't I?

Now that I better think about it, my specific scenario is that I have duplicates of some songs in the same folder, with .flac and .mp3 files. I'd like to exclude those dups and only have the mp3s (less network traffic required). So the feature I requested is somewhat larger, like "exclude all flac files from scanning", which I actually don't want.
So I'd like to implement this other feature myself, would you accept a PR? A brief description would be: "eliminate dups within a folder with same name but different extension and prefer the copy with (put extension here) extension"

I don't think so. Again, this is an edge case and most likely Koel won't
support it.
On Thu, Jun 1, 2017 at 12:28 PM, Daniele Ricci<EMAIL_ADDRESS>wrote:

Now that I better think about it, my specific scenario is that I have
duplicates of some songs in the same folder, with .flac and .mp3 files. I'd
like to exclude those dups and only have the mp3s (less network traffic
required). So the feature I requested is somewhat larger, like "exclude all
flac files from scanning", which I actually don't want.
So I'd like to implement this other feature myself, would you accept a PR?
A brief description would be: "eliminate dups within a folder with same
name but different extension and prefer the copy with (put extension here)
extension"
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/phanan/koel/issues/606#issuecomment-305466501, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHrt0rhM-Q0RZrqbErkV0APPIPOcGnS6ks5r_qBogaJpZM4Nr26v
.

Ok, thanks. I'll see what else I can do about it.


Pipeline for INotification, e.g. for filtering

I have a particularly generic INotification that will ultimately have multiple INotificationHandlers. However, each of those handlers is really only interested in processing the notification depending on the value of a property on the notification object.
It would be good if there is a way to implement a filter around notification handlers such that the filter could compare, say, an attribute on the notification handler and see if a property value of the attribute matches the value on the notification; if so pass it through to the notification handler, otherwise continue with the next notification handler.

In my oponion this request is very handler specific. And whatever might get built, nothing would be simpler on the NotificationHandler just doing a simple:
if (request.Property = true)
{
    return;
}

Yeah, I'd go for @joaomatossilva 's solution.


About train datasets

Great work, I'm very interested in it. But I have a small question, I want to know what is the training dataset used for the wild-daclip_ViT-L-14.pt model, and do all the training datasets contain the four mixed degradations (blur, noise, resize, jpeg)? Is the wild degradation "blur, noise, resize, jpeg"? We look forward to your reply and thank you.

Thank you! We use the LSDIR dataset to train the model. For both daclip_ViT-L-14 and Wild-IR, all training LQ images are generated using the random_degradation function.

Thank you very much for your patient reply. After reading the code file you gave, I found that your deg_list does not have resize (it is replaced by blur), so it is convenient to know why? Thank you.

Great! I prefer 'blur' since most 'resize' operations use bicubic/bilinear/nearest interpolation.

插值会影响什么呢？这个操作不是之前的图像复原模型中造超分数据集时都会用的吗？期待您的解答

插值也可以看作是一种blur操作，在超分中一般假定是先blur再下采样，但这里我们跳过了下采样这一步（因为这个模型不支持超分任务）。

感谢回答，那你们不用resize操作而用blur是因为resize本身的插值带来了一些问题吗？

我也不确定= =，不过有时候resize应该也是可以的，一般看任务而定。


Addressing these bugs:

4933727 IoTCoreDefaultApp: OnboardingService reports incorrect auth type for open wifi network
4933787 IoTCoreDefaultApp: OnboardingService crashed when trying to connect to a wifi network

Hi @jplafonta, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Hi @jplafonta, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;


Need  a Webpage (Project.html)

Need a webpage to complete the Website Called "Project.html"

Hey @AFEEF12345 I would like to work on it.
Just clarify me what things do you need on the web page

@AFEEFALISHAN has already Done this!!


Simple labels that don't allocate (much)

Objective

Resolve #5569.

I wanted a label type that:

Is type-erased.
Is small and lightweight (i.e. implements Copy).
Produces a unique ID for each value (i.e. Enum::VariantA and Enum::VariantB should not collide).
With no user effort, prints the same Debug string as the original MyLabelTrait-implementing type.

The strategy of using Box<dyn MyLabelTrait> (that we have half-brought back to get states working for 0.10) allocates too much. The second iteration of labels (#4957) accomplished half/most of these but lost 3.
There's also #5715, which I haven't reviewed in depth, but I've taken a simpler, "one-size-fits-all" approach here.
Solution

Intern (allocate and leak) the Debug string of every label once (on first use).
Use a (TypeId, u64) tuple for the numerical ID instead of TypeId so that different values don't collide (uses DynHash).
Bundle the (TypeId, u64) and a &'static str to the leaked Debug string together. That's a MyLabelTraitId.
Implement Debug for MyLabelTraitId.

Hi, I have taken some ideas of this PR and #5715 and put them together and expanded them in #7762. With that, almost no allocations are required in the common use cases.  One possible issue i see with this approach here is that if two different sets produce the same hash value for whatever reason, we cannot differentiate between them without also taking the string into account. And that string could in theory also be made equal for different sets, in which case this would also not be sufficient.

If reviewing this, please also look at #7762. It's very similar technique but also does more to avoid allocations in the common case where the label is a unit struct or fieldless enum.

Closing in favor of #7762


Spriggymon doesnt work in new editor [sprig v2]

https://sprig-beta.hackclub.dev/gallery/spriggymon
This is the only game i've found that has issues
TypeError: "use strict" is not a function
at eval (eval at $0 (editor.799a3782.js:34:100), :8:1)
at $0 (editor.799a3782.js:34:133)
at Object.u [as onClick] (editor.799a3782.js:229:2057)
at Object.onClick [as clickfalse] (sprig-icon.02e5e07c.js:7:108)
at HTMLButtonElement.B (preact.module.3821bb68.js:1:4195)
u @ editor.799a3782.js:229
onClick @ sprig-icon.02e5e07c.js:7
B @ preact.module.3821bb68.js:1

REALLY good catch, thank you! I accidentally removed the semicolon after the "use strict" we insert before games, and Spriggymon starts with an IIFE (so JS tries to call the string as a function)


Everything for a CI job

Uses the github repo scanner to auto-create a job and auto-build the branch when committed to. Hopefully works with PRs too...

Can one of the admins verify this patch?


Add a conda installer selector widget

Description
We would like to have a widget on the website for people to use to figure out which conda installer is right for them. Here are just a few ways to install conda:

Anaconda installer
Miniconda installer
Miniforge installer
Mambaforge installer
Micromamba installer
More?

Prerequisites

Knowledge of HTML/CSS
Knowledge of React JS

Tasks

[ ] Conduct a complete survey of all the ways that you install conda/mamba (most should be listed above already; let's make sure we haven't forgotten anything)
[ ] Propose a list of conda/mamba installers to include in the selection widget (post that list here and get approval from the conda dot org maintainers; come find us in our Matrix chat)
[ ] Create the widget; this will involve coding something React JS
[ ] Create a pull request and get approval

Good to know ☝
There will most likely be a little back-and-forth on the design. It's okay to begin prototyping something before we know all the installers we want to include.

I would like to contribute

@bupd,
Are you still interested in contributing this feature? If so, I can assign this issue to you. I just updated the description of the issue to be a little more clear.
Let me know if you are still interested or have any questions.

All,
I have marked this as a https://github.com/conda-incubator/conda-dot-org/labels/good first issue in case anyone else would like to work on it. @bupd  will have priority because he asked first. If he does not want to work on this issue, I will assign it to the second person who comments.

@travishathaway if @bupd is not available, I can work on this issue. Please assign it to me in that case. Thanks.

@Shreyas-SAS @travishathaway Any progress on this?
I see that this issue isn't assigned yet. Do let me know, If someone gets assigned to this.
Maybe we can collaborate on it!

@Shreyas-SAS,
You've already been assigned to another issue. To more fairly distribute our good first issues, I will be assigning this to @bhavukkalra instead.
@bupd, I'm going assume you're no longer interested given it's been a couple of days since I messaged you.

@travishathaway yeah, it's fine. I will also start my work on the other issue in an hour or so. Thanks.

Survey currently under review by the community [No additions have been made, other than the installer options already listed in the original issue]. These are the installations  -
Anaconda - https://docs.anaconda.com/free/anaconda/install/index.html
MiniConda - https://docs.conda.io/en/latest/miniconda.html
MiniForge - https://github.com/conda-forge/miniforge
mambaforge - https://github.com/conda-forge/miniforge#mambaforge
micromamba - https://mamba.readthedocs.io/en/latest/installation.html#micromamba

Just wanted to update on the status of this issue.

Working on summarizing the inputs gathered from the matrix chat
Replicating the UI experience of https://pytorch.org/get-started/locally/, with custom fields (Will share a sample here).

Summary -
These are the different installation ways that are being considered for addition
Anaconda
MiniConda
MiniForge
mambaforge
micromamba
condacolab (Only for Google Colab)
ensureconda
brew
nuget (Couldn't find the website for this)
scoop (Can install mamba forge using scoop)
Below is a sample widget
Inspiration from - https://pytorch.org/get-started/locally/
TODO

Rendering the sample output command based on the widgets selected above is left, but should be done soon

Additon to be made - "the Python versions for which the different installers are available (Anaconda and Miniconda offer several, but Miniforge and Mambaforge only one; and this info doesn't really apply to micromamba), and the operating systems / architectures."
I believe we can address this by just listing out Python version available alongside the version selected from the widget.
Or should we make a separate selection just for this?
Example -

Sample Prototype
Few Questions -

Does the below the implementation looks good? Do let me know if there are any new tabs that could be added
Do we have a standardized color palette for the website? So that I could make the [Tabs] look in sync with the website

Here is the Final first draft widget Interaction
Code - https://github.com/bhavukkalra/react-samples

Hi @bhavukkalra,
This looks like a good first attempt. Are you able to link to a live preview anywhere?

Sure, Here it is - https://bhavukkalra.github.io/react-samples/
I created a separate route for this.

@bhavukkalra,
One thing that should be addressed is that on hover the cursor needs to turn into a pointer just  like it does when you hover over links in your browser.
I also think that the colors on the left column should be muted like they are on the PyTorch selection matrix.  I don't like the stark contrast between the green and the red. The red should be a green and the green should go away.
Speaking of colors, you should also consider choosing colors that fit the theme for the website. You can find those colors here: https://conda.org/style-guide#color-palette

I think we still need the Python implementation (CPython, PyPy) and version(3.8-3.11?) selector (for some combinations only), and the architecture(s) (linux-64, linux-aarch64, linux-ppc64le, osx-64, osx-arm64, win-64...).

One more reference, the rapids.ai page:

https://docs.rapids.ai/install#selector
Source: https://github.com/pytorch/pytorch.github.io/blob/site/assets/quick-start-module.js

One more reference, the rapids.ai page:

https://docs.rapids.ai/install#selector
Source: https://github.com/pytorch/pytorch.github.io/blob/site/assets/quick-start-module.js

This is actually quiet helpful. Implementing this straight in code could be quiet a task with all the slider logic that needs to be made.
@jaimergp What do you suggest? Should we make a final design first, like in figma or something, as that could give us a guiding direction.
As once that is finalized, I believe It won't take long to convert that into code. (As we can use the above as a template)

If it's easier for you to do it in Figma, go ahead!

Can I contribute to this?

Hi @Avik-creator, I think this effort stalled.  If you would be interested in working on it, then I encourage you to take it on.

@Avik-creator, I added you as co-assignee. Let us know if you need clarification or help.

Sure sorry for the very late reply

@Avik-creator,
The issue is still available to work on.

Ok thanks

@travishathaway can we make it like this?

@Avik-creator,
No. The selection of a conda installer depends on at least two variables:

Operating system
Installer type (e.g. Miniforge, Miniconda or Anaconda)

So, it needs to reflect those.

Ok, so the layout is not the problem right? I will add those then

Deployed URL of the Prototype: https://guileless-salmiakki-3e2ec6.netlify.app
Github URL: https://github.com/Avik-creator/conda-forge
@travishathaway please check it once, if possible if you wanted it like this or not, then will do the integration in the main site

Thanks @Avik-creator,
This is looking good so far, but I am still not sure exactly where on the website we are going to put this.
@jaimergp, do you have any thoughts or opinions on this?

I guess what we can do is to have a install button in the home page and then create a modal that will pop up containing this?

I guess what we can do is to have a install button in the home page and then create a pop up modal containing this?
@travishathaway

Yes, that is one possibility. If it's not too difficult to implement, it would be really nice to see a pull request with this implemented. Each pull request generates a hosted preview of the website we can examine.
If you need more certainty before working on a such a thing, hold off for now and let me talk with some of the other project maintainers to make sure this is really something we would like to have on the website.

Sure then will make a pr with this being implemented. You can check it there once.

We'll also need the architecture of the operating system:

Linux x64, aarch64, ppc64le
macOS x64, ARM64
Windows x64, (and soon ARM64)

And it would be nice to have the selector inform about the default channel (mostly defaults or conda-forge).
Then we need a way to include micromamba and pixi in the matrix because they are self-contained tools in a way.

I am still not sure exactly where on the website we are going to put this.

It should be in a page where we discuss the different ways of getting started with the conda packaging ecosystem. "Choose your conda package manager" would be the section where this widget allows an easy way to choose what they user might want.

@jaimergp @travishathaway  Something like this? The URL's might be broken for some I should say, for the installation modal.
https://guileless-salmiakki-3e2ec6.netlify.app

That's a super solid start! Love it! Do you think you can make it work with our Docusaurus site? It should be more or less straight forward with React (but I haven't seen the code behind your widget, so ymmv). Once there's a PR opened in this repo we can provide more specific feedback (e.g. wording or dropdown order).

I think we could do it. I was using tailwind css but let me just do it using plain css and make it good enough. Could you please share the picture of the place where we should place it in the website so that I could start working on it. @travishathaway @jaimergp
Thank you in advance. Should I place it here?

You can create a new page under Learn: learn/installers.mdx or something. Docusaurus uses its own framework "Infima" so there are some components you can reuse (but it's not as full featured as others). Check https://docusaurus.io/docs/styling-layout#global-styles.

@travishathaway @jaimergp Created the PR. Please check it once and do let me know If I need to change somethings.


WAL-152, WAL-148:  ITN prep

Thanks @wahidrahim

:tada: This PR is included in version 1.0.0-semantic-release.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Write integration test for cstor pool for sparse-mirrored-auto(dynamic) spc with maxpool count 0

The SPC configuration is following for the test case:( Application of this spc is to be tested)
https://github.com/openebs/maya/blob/master/hack/cstor-pool-test/mirrored-sparse_spc_test_cases/case2/sparse-claim-auto.yaml
Following is the existing IT cases:
https://github.com/openebs/maya/blob/master/integration-tests/cstor-pool/cstor_integration_test.go
Following is the bash script where test case has already been written:
https://github.com/openebs/maya/tree/master/hack/cstor-pool-test
Please go through following doc for more information.
https://docs.google.com/document/d/1pRLOGX6yvX_Fs7OPyajPQu8ivCcn1idvqHy7eaA1auo/edit

I would like to work on this.

Sure!


Change buttons from hide/show actions to tabs. Updates #3

Updates #3

Updated menu component to use tabs.

Minor style update for home and clusterInfo components to accommodate tabs.

As discussed I have added the details(clusterInfo) to the tabs menu instead of using an accordion as it might be a bit overkill. There is still a lot of space left for the details that might be handy later on. If that is not the case and the details will always be wat they are now, we can simply add it to a footer in a more subtle way.

Thanks @Le-Roi777 for your contribution. :-)

Thanks @Le-Roi777 for your contribution. :-)

You're welcome :-)
I think the UI for all the data components can also be improved a lot so if ever you need any more help please feel free to get in touch.

Thanks again. Feel free to improve the UI. :sweat_smile: I'm open for PR's even without issues from my site. :-D

Thanks again. Feel free to improve the UI. 😅 I'm open for PR's even without issues from my site. :-D

Sounds good 👍 I'll stay in touch :-)


Increase limit on number of faces registered per user

There seems to be a hard limit of how many face images I can register per user. This limit appears to be 25. Can this be limit be removed? or is there a way to make the limit higher (say 300)?

This was apparently related to the deepstack manager. I'm closing this issue


[FEATURE] Improve error surfacing

Is your feature request related to a problem?
Currently error toasts show for just about every operation/navigation, successful or not.
What solution would you like?
Need to alert user only when necessary.
What alternatives have you considered?
This is a necessity, as it interferes with user's actions as well as development
Do you have any additional context?
Add any other context or screenshots about the feature request here.

Two separate issues are created to fix be fixed: #205 and #206
This ticket can be closed.


doc: release notes: add Zephyr CMake package to release notes

This commit fills the Build and Infrastructure section with the Zephyr
CMake package enhancement.
Signed-off-by: Torsten Rasmussen<EMAIL_ADDRESS>

@ioannisg mind taking another look please?

@ioannisg mind taking another look please?

done


Add CLI support to logsviewer

Add CLI support for:

Spinning multiple logsviewers and Import Must Gather on the same cluster
Delete logs viewers periodically (based on the instance age?)

I propose to create an operator to handle this work.

Added in https://github.com/vladikr/logsviewer/pull/22 and https://github.com/vladikr/logsviewer/pull/28


Improve events calendar

Reverse the flow so that the closest events are at the top, while past events are either manually sorted into a separate category or automatically disabled via javascript.

This is increasingly sounding like a job for a website with proper back-end, but an alternative would be to embed a visually inferior but more practical Google Calendar.


[Bug]Be crash when executing connector standard query(tpcds 1G)

Steps to reproduce the behavior (Required)

CREATE EXTERNAL CATALOG catalog_2 PROPERTIES("type"="hive", "hive.metastore.uris"="thrift://<IP_ADDRESS>:9083");
Build SR cluster
mysql> show backends;
+-----------+-----------------+---------------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+-------------------+--------------------------------------------------------+-------------------+-------------+----------+
| BackendId | Cluster         | IP            | HeartbeatPort | BePort | HttpPort | BrpcPort | LastStartTime       | LastHeartbeat       | Alive | SystemDecommissioned | ClusterDecommissioned | TabletNum | DataUsedCapacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | ErrMsg | Version           | Status                                                 | DataTotalCapacity | DataUsedPct | CpuCores |
+-----------+-----------------+---------------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+-------------------+--------------------------------------------------------+-------------------+-------------+----------+
| 10003     | default_cluster | <IP_ADDRESS> | 22229         | 22227  | 22228    | 22230    | 2022-06-17 10:10:21 | 2022-06-17 10:21:52 | true  | false                | false                 | 3         | .000             | 564.274 GB    | 1.968 TB      | 72.01 % | 72.01 %        |        | UNKNOWN-d8d14a8f1 | {"lastSuccessReportTabletsTime":"2022-06-17 10:21:22"} | 564.274 GB        | 0.00 %      | 104      |
| 10044     | default_cluster | <IP_ADDRESS> | 23229         | 23227  | 23228    | 23230    | 2022-06-17 10:10:31 | 2022-06-17 10:21:52 | true  | false                | false                 | 0         | .000             | 564.273 GB    | 1.968 TB      | 72.01 % | 72.01 %        |        | UNKNOWN-d8d14a8f1 | {"lastSuccessReportTabletsTime":"2022-06-17 10:21:32"} | 564.273 GB        | 0.00 %      | 104      |
| 10045     | default_cluster | <IP_ADDRESS> | 24229         | 24227  | 24228    | 24230    | 2022-06-17 10:21:52 | 2022-06-17 10:21:52 | true  | false                | false                 | 3         | .000             | 564.273 GB    | 1.968 TB      | 72.01 % | 72.01 %        |        | UNKNOWN-d8d14a8f1 | {"lastSuccessReportTabletsTime":"2022-06-17 10:21:52"} | 564.273 GB        | 0.00 %      | 104      |
+-----------+-----------------+---------------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+-------------------+--------------------------------------------------------+-------------------+-------------+----------+
select  substr(r_reason_desc,1,20) ,avg(ws_quantity) ,avg(wr_refunded_cash) ,avg(wr_fee) from web_sales, web_returns, web_page, hive_catalog.tpcds_1g_csv.customer_demographics cd1, hive_catalog.tpcds_1g_csv.customer_demographics cd2, hive_catalog.tpcds_1g_csv.customer_address, hive_catalog.tpcds_1g_csv.date_dim, hive_catalog.tpcds_1g_csv.reason where ws_web_page_sk = wp_web_page_sk and ws_item_sk = wr_item_sk and ws_order_number = wr_order_number and ws_sold_date_sk = d_date_sk and d_year = 2000 and cd1.cd_demo_sk = wr_refunded_cdemo_sk and cd2.cd_demo_sk = wr_returning_cdemo_sk and ca_address_sk = wr_refunded_addr_sk and r_reason_sk = wr_reason_sk and ( ( cd1.cd_marital_status = 'M' and cd1.cd_marital_status = cd2.cd_marital_status and cd1.cd_education_status = 'Advanced Degree' and cd1.cd_education_status = cd2.cd_education_status and ws_sales_price between 100.00 and 150.00 ) or ( cd1.cd_marital_status = 'S' and cd1.cd_marital_status = cd2.cd_marital_status and cd1.cd_education_status = 'College' and cd1.cd_education_status = cd2.cd_education_status and ws_sales_price between 50.00 and 100.00 ) or ( cd1.cd_marital_status = 'W' and cd1.cd_marital_status = cd2.cd_marital_status and cd1.cd_education_status = '2 yr Degree' and cd1.cd_education_status = cd2.cd_education_status and ws_sales_price between 150.00 and 200.00 ) ) and ( ( ca_country = 'United States' and ca_state in ('IN', 'OH', 'NJ') and ws_net_profit between 100 and 200 ) or ( ca_country = 'United States' and ca_state in ('WI', 'CT', 'KY') and ws_net_profit between 150 and 300 ) or ( ca_country = 'United States' and ca_state in ('LA', 'IA', 'AR') and ws_net_profit between 50 and 250 ) ) group by r_reason_desc order by substr(r_reason_desc,1,20) ,avg(ws_quantity) ,avg(wr_refunded_cash) ,avg(wr_fee) limit 100;
ERROR 1064 (HY000): rpc failed, host: <IP_ADDRESS>

Expected behavior (Required)
Query execution successfully
Real behavior (Required)
ERROR 1064 (HY000): rpc failed, host: <IP_ADDRESS>
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()
mysql> select current_version();
+-------------------+
| current_version() |
+-------------------+
| UNKNOWN d8d14a8f1 |
+-------------------+
1 row in set (0.01 sec)
branch-2.3

be.out
start time: Fri Jun 17 09:08:42 CST 2022
log4j:WARN No appenders could be found for logger (org.apache.hadoop.fs.FileSystem).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.


Setup TeamCity as CI / Build Server

This is a task list for setting up TeamCity.
Docs and scripts are added to the following branch (WIP): https://github.com/keo/bitcoin/tree/setup-buildserver

[x] Install Ubuntu Trusty
[ ] Install Postgresql
[ ] Setup postgresql
[ ] Install TeamCity
[ ] Install apt-cacher-ng Mirrors look like fast enough
[ ] Configure TeamCity memory usage
[ ] Setup sharing of artifacts & caching
[ ] Build Config for PRs (no gitian, build with cached dependencies, run tests)
[ ] Build Config for Gitian base VM
[ ] Build Config for nightlies (gitian full build from scratch, run tests, pgp sign artifacts)
[ ] Report build results to GitHub
[ ] Slack notification?
[ ] Match TeamCity username with GitHub usernames
[ ] Run multiple agents in LXC containers
[ ] Server security checkup / lockdown
[ ] TeamCity security checkup / lockdown
[ ] Setup domain and SSL
[ ] Docs: finish missing parts in contrib/ci-scripts/README.md so anyone can setup their own server and agents
[ ] Setup regular backup of TeamCity config so we can kickstart a new server in less than a day in case of a disaster
[ ] Dashboard (outside of TeamCity) with recent build logs
[ ] Setup personal builds for devs?

Setup regular backup of TeamCity config so we can kickstart a new server in less than a day in case of a disaster

How much of the setup and config can be stored in git immediately?

I think 95% could bea easily added to the repo. Maybe more.

Closing this issue due to lack of progress and I ended up setting up a teamcity myself.


Integration Test - Release - 2019/02/21 22:34:02

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#backlog'

#pri2


How to achieve exact same appearance in the screenshot

The screenshots are really great! What are the plugins and the configurations used in the screenshots?

I think that's just a mockup and the "compact" window border integration is not part of this theme, but would be great to know how this could be done!

And how do you remove de "EXPLORER" title on the sidebar as shown on the screenshots?

@alanzchen It is indeed the Titlebar-Less extension mentioned by @tomislav!
@TakaKeiji I cheated and just made the explorer thin enough to hide the text, though you can use an extension to override the CSS for it.


0 Query hits and matches, but matches in Kibana

rules_folder:
/etc/elastalert/example_rules
writeback_index:
elastalert_status
run_every:
seconds: 30
buffer_time:
minutes: 15
es_host: localhost
es_port: 9200
name: Test Rule
type: frequency
num_events: 1
timeframe:
minutes: 3
index: logstash-*
filter:

term:
type: "syslog"

alert:

"email"

email:

<EMAIL_ADDRESS>
When I run this, I get 0 hits, but if I run a type: syslog query in Kibana, I get results. Is there something wrong in my config.yaml? I have my client set to upload logs from /var/log and I'm using logger to send test syslog messages.

You definitely have documents that have a @timestamp that matches when the query was run? You can run elastalert-test-rule to test for the number of documents for the last 24 hours. Also, do you mean to use _type instead of type?

@Qmando I'm fairly certain I have documents matching that timestamp. I run the alert then go to my client VM and use logger just to send some dummy data. I meant to have _type in there. I had some formatting differences when pasting into the Github text box.

Can you post the output of elastalert-test-rule whatever.yaml and a document (include _type, _index, and @timestamp) that you think should match?

Hi @Qmando, sorry for the late response. I made a few changes to my rule and verified that I could use curl to get the info that my elast alert rule isn't.
Here's my new rule that I'm testing:
config.txt
Here's the curl command that produces what I want:
curl 'http://localhost:9200/_search?q=syslog_message:asdf&pretty=tree'
Here's the output of the above curl:
curlEx.txt

In your rule you have an incorrect filter.
filter:
- syslog_message: "asdf"

You need to use something like query string or term
filter:
- query:
    query_string:
      query: "syslog_message: asdf"

@Qmando when I switch to query...query: syslog_message: asdf, I still don't get any matches
config.txt

@Qmando I think the problem may be with my start time and end time? The start time and end time are the exact same and I'm not quite sure how to change those? Here's the output from testing my rule
testruleoutput.txt

elastalert-test-rule queries on the last 24 hours by default. Try adding --days 30 --count-only.

@Qmando I would pass those as the terminal options, correct? The output of elastalert-test-rule --days 30 --count-only config.yaml is "Successfully loaded Example rule INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost

I ran it with just the --days 30 and I'm still getting 0 hits. Anything else look wrong in my config? If i curl for the data, I get it.

In your rule you have index: logstash-* but from your curl output I see   "_index" : "filebeat-2016.03.21",

@Qmando Thank you! I noticed that as well when I was troubleshooting, but when I changed it to filebeat-*, it threw some errors at me. It worked now though. I got 121 hits and 121 matches.

It will be much faster if you use
index: firebeat-%Y.%m.%d
use_strftime_index: true

for email, would I just have alert: email then -"[recipient email] from_addr: "[sender email]"? Do i need to specify the port and host?

Solved the email issue


Screen Layout

As we move towards having the capability to replicate the absolute layout of CS-Studio/EDM screens, we need to consider how we will actually do this and what it will look like. This will require some new components.
Points which I can think of:

Match CS-Studio Synoptic/Embed/Detail layout
How can we provide a mechanism to dictate which part of the screen displays should appear in from an action? (See CS-Studio's "Open OPI" action)
What will this look like on mobile/flexible type layout? Could we have an "active" pane with options to activate a different pane? Should this inform what it looks like on desktop? Thinking of Malcolm here with its sliding panes for children/parent information
Scientists often like having many panes open at the same time, how will we handle this?

I will add other points here as I think of them, anyone else feel free to add as well, but I think we can start moving towards this.
Sky's work in #88 is a good step in this direction! I think if this behaviour should be wrapped into an action and performed from the context menu for a shape, graphic or other widget and then merged as a good example.

This was superseded by #128.


feat(clustering): backup config sync for CP outage

Fix FT-3155

We still need to fix a few bugs for lua-resty-aws before we could test.


Increment version for network releases

Increment package version after release of Azure.ResourceManager.Network

@SsomsakTH:  We talked about this.   Due to ongoing SPAM activity, I'm blocking this account until GH takes action from the previous report.


New Extension: Lucide Icons

Description
An extension that allows searching through the Lucide icon set, as well as copying the names, SVG content, and
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi @gBasil When I install and open this extension, I get this error

Hey @koinzhang, thank you so much for the quick response!
I see. The files in that directory are populated over during the build step, specifically the prebuild command in the prebuild.js file, which is a bit deceptive given that it needs to be run even before developing. Is that bad practice, and should I have committed the generated output (~177 svg files) to the GitHub repository?
I'm thinking I could move prebuild to something akin to init, and have prebuild and predev run init.
Thank you for your time!

Putting the Lucide->icons folder directly inside the assets folder might be a way to go.
But I don't know if this meets the extended review criteria

Gotcha, I'll leave it like it is for now and wait to see what the maintainers have to say about it. Thank you!

Thanks for your first extension @gBasil and thanks help @koinzhang 🙂
I will have a look at the PR once the new changes are done.

is there isn't a way to fetch the icons programmatically, for example through an API request.
Not to my knowledge, but you could look around on the Lucide website if you like.

Sorry @gBasil I was not super clear, my comment was more of a statement not a question. Meaning if you can't indeed fetch the images programmatically you should have them inside the assets folder.

Oops, was trying to update the branch, but evidently discarding changes on a fork closes the PR. @danielsequeira I'll create a new PR, sorry if that complicates things.


Socket errors on macOS

Attempting to load the socket library on macOS fails with a number of undeclared identifier errors:
$ bin/natalie -e "require 'socket'"
/var/folders/wc/ng7w8yms69j6vpvqck4x2shh0000gn/T/natalie.cpp20221003-18022-x9mqwj:1181:81: error: use of undeclared identifier 'AF_AX25'
    auto const_set75 =  self->const_set(symbols[19]/*:AF_AX25*/, Value::integer(AF_AX25));
/var/folders/wc/ng7w8yms69j6vpvqck4x2shh0000gn/T/natalie.cpp20221003-18022-x9mqwj:1188:83: error: use of undeclared identifier 'AF_PACKET'
    auto const_set82 =  self->const_set(symbols[26]/*:AF_PACKET*/, Value::integer(AF_PACKET));
...
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Reading around I think we might need to #define __APPLE_USE_RFC_3542 before including including <netinet/in.h>[^1] but I can't find the correct place to put that where it'll fix the errors.
Where should that line go where it will be picked up by require 'socket.cpp' correctly?
[^1]: See comment in https://opensource.apple.com/source/xnu/xnu-1699.32.7/bsd/netinet6/in6.h

Resolved by #702


Use two digits for the month

The current implementation raises a ParamError:

The Foursquare API no longer supports requests that pass in a version v <= 20120609. For more details see https://developer.foursquare.com/overview/versioning

Foursquare is expecting v=YYYYMMDD.

Gah. Will bump a release.

K, https://pypi.org/project/foursquare/1!2019.2.16/ should be fixed.
The 0 is included in the call to Foursquare, but is stripped from the PyPi version to keep it semantic.


Documentation is not accurate regarding the tagsInputConfig service

On the side navigation it states that tagsInputConfig is a service but the title states tagsInputConfig (directive in module ngTagsInput) when it should be tagsInputConfig (service in module ngTagsInput).
The setDefaults method is not present on the service and it must be called as a provider using tagsInputConfigProvider.
Both statements are misleading.

This issue was selected to be spring-cleaned by a script. More information can be found here.
If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file.


chore(doc): envars override

Includes playbook examples for overriding terminal environment variables after https://github.com/newrelic/ansible-install/pull/15

@amolero-nr sorry for the trouble, but I think we either have to update this PR or close it and move the compatibility docs to another branch now that https://github.com/newrelic/ansible-install/pull/17 is merged

I'll create a new one.


Killing an (integrated) terminal doesn't terminate the processes started therein (OSX)

Environment data

VS Code version: 1.25.1
Extension version (available under the Extensions sidebar): 2018.7.0
OS and version: OSX 10.13.6
Python version (& distribution if applicable, e.g. Anaconda): 3.7.0
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: N/A

Actual behavior
Killing a terminal from the VSCODE ui lets scripts executed therein running in the background
Expected  behavior
Processes created within the (terminated) integrated terminal should be terminated.
Steps to reproduce

write a python script with an infinite loop
execute the script with "Run Python File in Terminal"
In the vscode UI, press "Kill Terminal" to close the terminal window
the python script keeps running in the background
(laptop fan starts spinning mercilessly)
(access OSX activity monitor to terminate python process manually)

This would be an issue with VS Code itself and not the extension.

@brettcannon
Reopening, as the debugger needs to handle the necessary signal and kill the process. That's what when you're not debugging. I believe the signal is SIGHUP.
@ataiya

Please could you provide the contents of your .vscode/launch.json file
Please could you try using the experimental debugger. Open the .vscode/launch.json file and change the setting "type":"python" to "type":"pythonExperimental"

Note I am not talking about the debugger.
I am talking about the standard "run in terminal" (might apply to debugger too though)
Will check your 2nd point in a jiffy
projectfolder/.vscode/launch.json (do not have one in ~/.vscode)
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        },
        {
            "name": "Python: Attach",
            "type": "python",
            "request": "attach",
            "localRoot": "${workspaceFolder}",
            "remoteRoot": "${workspaceFolder}",
            "port": 3000,
            "secret": "my_secret",
            "host": "localhost"
        },
        {
            "name": "Python: Terminal (integrated)",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "",
            "console": "integratedTerminal",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": []
        },
        {
            "name": "Python: Terminal (external)",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "",
            "console": "externalTerminal",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": []
        },
        {
            "name": "Python: Django",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${workspaceFolder}/manage.py",
            "cwd": "${workspaceFolder}",
            "args": [
                "runserver",
                "--noreload",
                "--nothreading"
            ],
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput",
                "DjangoDebugging"
            ]
        },
        {
            "name": "Python: Flask (0.11.x or later)",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "${config:python.pythonPath}",
            "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter",
            "cwd": "${workspaceFolder}",
            "env": {
                "FLASK_APP": "${workspaceFolder}/quickstart/app.py"
            },
            "args": [
                "run",
                "--no-debugger",
                "--no-reload"
            ],
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        },
        {
            "name": "Python: Flask (0.10.x or earlier)",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${workspaceFolder}/run.py",
            "cwd": "${workspaceFolder}",
            "args": [],
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        },
        {
            "name": "Python: PySpark",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "osx": {
                "pythonPath": "${env:SPARK_HOME}/bin/spark-submit"
            },
            "windows": {
                "pythonPath": "${env:SPARK_HOME}/bin/spark-submit.cmd"
            },
            "linux": {
                "pythonPath": "${env:SPARK_HOME}/bin/spark-submit"
            },
            "program": "${file}",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        },
        {
            "name": "Python: Module",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "module": "module.name",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        },
        {
            "name": "Python: Pyramid",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "args": [
                "${workspaceFolder}/development.ini"
            ],
            "debugOptions": [
                "RedirectOutput",
                "Pyramid"
            ]
        },
        {
            "name": "Python: Watson",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${workspaceFolder}/console.py",
            "cwd": "${workspaceFolder}",
            "args": [
                "dev",
                "runserver",
                "--noreload=True"
            ],
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        }
    ]
}

Regarding your second point, I changed project/.vscode/launch.json as follows, but without any effect.
        {
            "name": "Python: Terminal (integrated)",
            "type": "pythonExperimental",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "",
            "console": "integratedTerminal",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": []
        },

However, I have also noticed that the following program does not create a problem:
while(True):
   pass

While with some text I/O my (4 core) CPU is saturated ~90% (after closing the integrated terminal, clearly)
while(True):
   print('buggy bug')

While with some text I/O my (4 core) CPU is saturated ~90% (after closing the integrated terminal, clearly)

Not the best test, your CPU would be saturated irrespective.
Can you test with a simple sleep and file I/O as the following:
import time
import os

i = 1
with open ('log.log') as fs:
    I += 1
    fs.write('line {} in process {}'.format(i, os.getpid()))
    fs.flush()
    time.sleep(0.5)

Please use this code to confirm the process is still running in the background by either checking whether the file is still being written to or checking the existence of the proc.
Please test using the Experimental debugger.
It should work. Works at my end using a Mac on Python 3.7.

Hi @DonJayamanne a few notes:

Not the best test, your CPU would be saturated irrespective.
yes, it's just with "pass" nothing was showing up in my top CPU cloggers

Please use this code to confirm the process is still running ...

not exactly sure why this is relevant? I cannot close the terminal window before this process terminates. Do you instead mean something like this? In any case, killing the integrated terminal on this one DOES indeed kill the process (checked file).

import time
import os
while True:
    i = 1
    with open('log.log','a+') as fs:
        i += 1
        fs.write('line {} in process {}\n'.format(i, os.getpid()))
        fs.flush()
        time.sleep(0.5)

Please test using the Experimental debugger
not sure how to enable it, or why it'd be relevant here?

@ataiya change your launch.json to have "type": "pythonExperimental" and it's relevant because @DonJayamanne is trying to solve the debugger case as that's technically the supported way to execute a program in VS Code, debugging or not.

Hi @brettcannon, ah! I see what you mean now (regarding default execute mode)
When I "start without debugging" even when I click the "kill terminal" the toolbar with the debugger actions remains alive (so I can kill the process from there, no problem). This is irrespective of whether "python" or "pythonExperimental" is selected -- so I am not sure what you want me to check. That considered, the "bug" seems indeed more relevant to basic vscode.
However, a couple of notes:

Once I close the terminal there is no way of re-opening it, even if the process is still running (which is a bit counter-intuitive? killing an iTerm would kill any process started therein)
Since the "Python: Run Python file in Terminal" is distributed by this vscode extension. If the default way of executing python is through the debugger, shouldn't this command be hardwired to do that? This feels a bit odd right now.

@ataiya
Please could you send a video of the problem you are experiencing.
Please ensure you start from the beginning, i.e. do not start the video half way through.
You could use something simple as LiceCap to capture the video (in gif format).

@ataiya
I believe this has been resolved at our end. Please test this in the latest development version of the extension. Instructions can be found here https://github.com/Microsoft/vscode-python/blob/master/CONTRIBUTING.md#development-build
Please feel free to re-open the issue if the problem persists.

Thanks Don, sorry if I didn't follow up.. I had mistakenly archived the notification from GitHub :(
I'll surely follow up if I re-run into it again.


[BUG] crc VM does not start because of

General information

OS: Linux
Hypervisor: KVM
Did you run crc setup before starting it (Yes)?
Running CRC on: Laptop

CRC version
CRC version: 2.29.0+da5f55
OpenShift version: 4.14.1
Podman version: 4.4.4

CRC status
$ crc status --log-level debug
DEBU CRC version: 2.29.0+da5f55
DEBU OpenShift version: 4.14.1
DEBU Podman version: 4.4.4
DEBU Running 'crc status'
CRC VM:          Running
OpenShift:       Unreachable (v4.14.0-0.okd-2023-10-28-073550)
RAM Usage:       262MB of 16.36GB
Disk Usage:      19.32GB of 32.68GB (Inside the CRC VM)
Cache Usage:     25.01GB
Cache Directory: /home/vgerris/.crc/cache

CRC config
- consent-telemetry                     : no
- memory                                : 16000
- preset                                : okd

Host Operating System
NAME="Fedora Linux"
VERSION="38 (Workstation Edition)"
ID=fedora
VERSION_ID=38
VERSION_CODENAME=""
PLATFORM_ID="platform:f38"
PRETTY_NAME="Fedora Linux 38 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:38"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f38/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=38
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=38
SUPPORT_END=2024-05-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Steps to reproduce

clean everything, download latest crc
$ crc delete -f
$ crc cleanup
$ rm -r ~/.crc
$ crc setup
$ crc start --log-level debug
Snippet of log  included further on, basically :

Error running post start: exit status 1
Expected
succesful start
Actual
error 1, machine up but problem finishing setup
Logs
INFO Checking if systemd-networkd is running
DEBU Checking if systemd-networkd.service is running
DEBU Running 'systemctl status systemd-networkd.service'
DEBU Command failed: exit status 3
DEBU stdout: * systemd-networkd.service - Network Configuration
     Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             `-10-timeout-abort.conf
     Active: inactive (dead)
TriggeredBy: * systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
             man:org.freedesktop.network1(5)
DEBU stderr:
DEBU systemd-networkd.service is not running
INFO Checking if NetworkManager is installed
DEBU Checking if 'nmcli' is available
DEBU 'nmcli' was found in /usr/bin/nmcli
INFO Checking if NetworkManager service is running
DEBU Checking if NetworkManager.service is running
DEBU Running 'systemctl status NetworkManager.service'
DEBU NetworkManager.service is already running
INFO Checking if dnsmasq configurations file exist for NetworkManager
INFO Checking if the systemd-resolved service is running
DEBU Checking if systemd-resolved.service is running
DEBU Running 'systemctl status systemd-resolved.service'
DEBU systemd-resolved.service is already running
INFO Checking if /etc/NetworkManager/dispatcher.d/99-crc.sh exists
DEBU Checking NetworkManager dispatcher file for crc network
DEBU Dispatcher file has the expected content
INFO Checking if libvirt 'crc' network is available
DEBU Checking if libvirt 'crc' network exists
DEBU Running 'virsh --connect qemu:///system net-info crc'
DEBU Checking if libvirt 'crc' definition is up to date
DEBU Running 'virsh --connect qemu:///system net-dumpxml --inactive crc'
DEBU libvirt 'crc' network has the expected value
INFO Checking if libvirt 'crc' network is active
DEBU Checking if libvirt 'crc' network is active
DEBU Running 'virsh --connect qemu:///system net-info crc'
DEBU libvirt 'crc' network is already active
DEBU Checking file: /home/vgerris/.crc/machines/crc/.crc-exist
INFO Loading bundle: crc_okd_libvirt_4.14.0-0.okd-2023-10-28-073550_amd64...
DEBU Checking file: /home/vgerris/.crc/machines/crc/.crc-exist
DEBU Found binary path at /home/vgerris/.crc/bin/crc-driver-libvirt
DEBU Launching plugin server for driver libvirt
DEBU Plugin server listening at address <IP_ADDRESS>:42335
DEBU () Calling .GetVersion
DEBU Using API Version 1
DEBU () Calling .SetConfigRaw
DEBU () Calling .GetMachineName
DEBU (crc) Calling .GetBundleName
DEBU (crc) Calling .GetState
DEBU (crc) DBG | time="2023-11-13T15:17:18+01:00" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2023-11-13T15:17:18+01:00" level=debug msg="Fetching VM..."
INFO Starting CRC VM for okd 4.14.0-0.okd-2023-10-28-073550...
DEBU Updating CRC VM configuration
DEBU (crc) Calling .GetConfigRaw
DEBU (crc) Calling .Start
DEBU (crc) DBG | time="2023-11-13T15:17:18+01:00" level=debug msg="Starting VM crc"
DEBU (crc) DBG | time="2023-11-13T15:17:18+01:00" level=debug msg="Validating network"
DEBU (crc) DBG | time="2023-11-13T15:17:18+01:00" level=debug msg="Validating storage pool"
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="GetIP called for crc"
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="IP address: <IP_ADDRESS>"
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=info msg="Found IP for machine: <IP_ADDRESS>"
DEBU (crc) Calling .GetConfigRaw
DEBU Waiting for machine to be running, this may take a few minutes...
DEBU retry loop: attempt 0
DEBU (crc) Calling .GetState
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="Getting current state..."
DEBU Machine is up and running!
DEBU (crc) Calling .GetState
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="Getting current state..."
DEBU (crc) Calling .GetIP
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="GetIP called for crc"
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="IP address: <IP_ADDRESS>"
INFO CRC instance is running with IP <IP_ADDRESS>
DEBU (crc) Calling .GetIP
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="GetIP called for crc"
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2023-11-13T15:17:24+01:00" level=debug msg="IP address: <IP_ADDRESS>"
DEBU Waiting until ssh is available
DEBU retry loop: attempt 0
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [/home/vgerris/.crc/machines/crc/id_ecdsa /home/vgerris/.crc/cache/crc_okd_libvirt_4.14.0-0.okd-2023-10-28-073550_amd64/id_ecdsa_crc]
DEBU SSH command results: err: dial tcp <IP_ADDRESS>:22: connect: no route to host, output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : dial tcp <IP_ADDRESS>:22: connect: no route to host
 - sleeping 1s
DEBU retry loop: attempt 1
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [/home/vgerris/.crc/machines/crc/id_ecdsa /home/vgerris/.crc/cache/crc_okd_libvirt_4.14.0-0.okd-2023-10-28-073550_amd64/id_ecdsa_crc]
DEBU SSH command results: err: dial tcp <IP_ADDRESS>:22: connect: no route to host, output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : dial tcp <IP_ADDRESS>:22: connect: no route to host
 - sleeping 1s
DEBU retry loop: attempt 2
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [/home/vgerris/.crc/machines/crc/id_ecdsa /home/vgerris/.crc/cache/crc_okd_libvirt_4.14.0-0.okd-2023-10-28-073550_amd64/id_ecdsa_crc]
DEBU SSH command results: err: <nil>, output:
INFO CRC VM is running
DEBU Using root access: disable core user password
DEBU Running SSH command: sudo passwd --lock core
DEBU SSH command results: err: <nil>, output: Locking password for user core.
passwd: Success
DEBU Running SSH command: cat /home/core/.ssh/authorized_keys
DEBU SSH command results: err: <nil>, output: ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGLYmzr0/3qP8LRklbS/Q8WJIKp9NAg5wZGDQAFwS4v2RyKcJGa4mK2HqMaZPAEDnRh0KLVT8YZ2++0EWzmP9yTsAEiuk6JGO/VIrn6wycpCWfJuzefXiQ1yM1ANqogf/cJhTc6LPTVrxAtydmep3kiUWGkUM2FSVh++3FQxa5CdtTBoA==
DEBU Using root access: Get device id
DEBU Running SSH command: sudo /usr/sbin/blkid -t TYPE=xfs -o device
DEBU SSH command results: err: <nil>, output: /dev/vda4
DEBU Using root access: Growing /dev/vda4 partition
DEBU Running SSH command: sudo /usr/bin/growpart /dev/vda 4
DEBU SSH command results: err: Process exited with status 1, output: NOCHANGE: partition 4 is size 63961055. it cannot be grown
DEBU No free space after /dev/vda4, nothing to do
DEBU Configuring shared directories
DEBU (crc) Calling .GetSharedDirs
DEBU (crc) DBG | time="2023-11-13T15:17:36+01:00" level=debug msg="Found x86_64 hypervisor with 'hvm' capabilities"
DEBU (crc) DBG | time="2023-11-13T15:17:36+01:00" level=debug msg="Found q35 machine type"
INFO Configuring shared directories
DEBU Using root access: Creating /home/vgerris
DEBU Running SSH command: sudo mkdir -p /home/vgerris
DEBU SSH command results: err: <nil>, output:
DEBU Mounting tag dir0 at /home/vgerris
DEBU Using root access: Mounting /home/vgerris
DEBU Running SSH command: sudo mount -o context="system_u:object_r:container_file_t:s0" -t virtiofs dir0 /home/vgerris
DEBU SSH command results: err: <nil>, output:
DEBU Using root access: remove /etc/containers/containers.conf to disable machine_enabled
DEBU Running SSH command: sudo rm -fr /etc/containers/containers.conf
DEBU SSH command results: err: <nil>, output:
DEBU Using root access: remove /etc/containers/podman-machine marker file to disable machine_enabled
DEBU Running SSH command: sudo rm -fr /etc/containers/podman-machine
DEBU SSH command results: err: <nil>, output:
DEBU Using root access: make root Podman socket accessible
DEBU Running SSH command: sudo chmod 777 /run/podman/ /run/podman/podman.sock
DEBU SSH command results: err: <nil>, output:
DEBU Creating /var/srv/dnsmasq.conf with permissions 0644 in the CRC VM
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU Running SSH command: systemctl status crc-dnsmasq.service
DEBU SSH command results: err: <nil>, output: ● crc-dnsmasq.service - Podman container-04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173.service
     Loaded: loaded (/etc/systemd/system/crc-dnsmasq.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Mon 2023-11-13 14:17:36 UTC; 234ms ago
       Docs: man:podman-generate-systemd(1)
    Process: 1580 ExecStart=/usr/bin/podman start 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173 (code=exited, status=0/SUCCESS)
   Main PID: 1884 (conmon)
      Tasks: 1 (limit: 18611)
     Memory: 38.5M
        CPU: 201ms
     CGroup: /system.slice/crc-dnsmasq.service
             └─1884 /usr/bin/conmon --api-version 1 -c 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173 -u 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173 -r /usr/bin/crun -b /var/lib/containers/storage/overlay-containers/04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173/userdata -p /var/run/containers/storage/overlay-containers/04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173/userdata/pidfile -n crc-dnsmasq --exit-dir /run/libpod/exits --full-attach -s -l journald --log-level warning --syslog --runtime-arg --log-format=json --runtime-arg --log --runtime-arg=/var/run/containers/storage/overlay-containers/04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173/userdata/oci-log --conmon-pidfile /var/run/containers/storage/overlay-containers/04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /var/lib/containers/storage --exit-command-arg --runroot --exit-command-arg /var/run/containers/storage --exit-command-arg --log-level --exit-command-arg warning --exit-command-arg --cgroup-manager --exit-command-arg systemd --exit-command-arg --tmpdir --exit-command-arg /run/libpod --exit-command-arg --network-config-dir --exit-command-arg "" --exit-command-arg --network-backend --exit-command-arg netavark --exit-command-arg --volumepath --exit-command-arg /var/lib/containers/storage/volumes --exit-command-arg --db-backend --exit-command-arg boltdb --exit-command-arg --transient-store=false --exit-command-arg --runtime --exit-command-arg crun --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.skip_mount_home=true --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg container --exit-command-arg cleanup --exit-command-arg 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173

Nov 13 14:17:35 crc-d5q9b-master-0 systemd[1]: Starting crc-dnsmasq.service - Podman container-04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173.service...
Nov 13 14:17:35 crc-d5q9b-master-0 podman[1580]: 2023-11-13 14:17:35.99841121 +0000 UTC m=+0.340824438 system refresh
Nov 13 14:17:36 crc-d5q9b-master-0 podman[1580]: 2023-11-13 14:17:36.303146273 +0000 UTC m=+0.645559462 container init 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173 (image=quay.io/crcont/dnsmasq:latest, name=crc-dnsmasq, vendor=Red Hat, Inc., io.openshift.tags=crc, io.k8s.description=This image runs in the crc VM and is used to provide DNS resolution for *.crc.testing/*.apps-crc.testing, maintainer=Red Hat, Inc., io.openshift.build.commit.id=f08cee3389569256aa288c33bad701a2704ce9db, name=crc/dnsmasq, distribution-scope=public, io.openshift.build.source-location=https://github.com/openshift/images, version=1, architecture=x86_64, io.buildah.version=1.29.0, vcs-type=git, com.redhat.build-host=cpt-1001.osbs.prod.upshift.rdu2.redhat.com, release=31, description=This image runs in the crc VM and is used to provide DNS resolution for *.crc.testing/*.apps-crc.testing, url=https://access.redhat.com/containers/#/registry.access.redhat.com/crc/dnsmasq/images/1-31, com.redhat.license_terms=https://www.redhat.com/agreements, io.openshift.maintainer.component=Release, io.openshift.maintainer.project=OCPBUGS, io.openshift.build.commit.url=https://github.com/openshift/images/commit/f08cee3389569256aa288c33bad701a2704ce9db, io.openshift.expose-services=, io.k8s.display-name=crc' dnsmasq image, build-date=2023-10-16T10:13:09, License=GPLv2+, com.redhat.component=crc-dnsmasq-container, summary=crc dnsmasq image, vcs-ref=eee145f0410026deebd077785f1667303082cab3)
Nov 13 14:17:36 crc-d5q9b-master-0 podman[1580]: 2023-11-13 14:17:36.306066479 +0000 UTC m=+0.648479668 container start 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173 (image=quay.io/crcont/dnsmasq:latest, name=crc-dnsmasq, io.k8s.display-name=crc' dnsmasq image, License=GPLv2+, com.redhat.component=crc-dnsmasq-container, io.k8s.description=This image runs in the crc VM and is used to provide DNS resolution for *.crc.testing/*.apps-crc.testing, maintainer=Red Hat, Inc., io.openshift.maintainer.project=OCPBUGS, name=crc/dnsmasq, io.openshift.build.commit.id=f08cee3389569256aa288c33bad701a2704ce9db, io.openshift.tags=crc, io.openshift.build.source-location=https://github.com/openshift/images, io.buildah.version=1.29.0, vcs-type=git, io.openshift.build.commit.url=https://github.com/openshift/images/commit/f08cee3389569256aa288c33bad701a2704ce9db, version=1, architecture=x86_64, io.openshift.maintainer.component=Release, vcs-ref=eee145f0410026deebd077785f1667303082cab3, release=31, io.openshift.expose-services=, description=This image runs in the crc VM and is used to provide DNS resolution for *.crc.testing/*.apps-crc.testing, build-date=2023-10-16T10:13:09, distribution-scope=public, com.redhat.license_terms=https://www.redhat.com/agreements, com.redhat.build-host=cpt-1001.osbs.prod.upshift.rdu2.redhat.com, vendor=Red Hat, Inc., url=https://access.redhat.com/containers/#/registry.access.redhat.com/crc/dnsmasq/images/1-31, summary=crc dnsmasq image)
Nov 13 14:17:36 crc-d5q9b-master-0 podman[1580]: 04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173
Nov 13 14:17:36 crc-d5q9b-master-0 systemd[1]: Started crc-dnsmasq.service - Podman container-04f32c294cd02e2dfd0f9a78e9d592a7094486783bf99b6ac0debc6271199173.service.
DEBU Using root access: Executing systemctl daemon-reload command
DEBU Running SSH command: sudo systemctl daemon-reload
DEBU SSH command results: err: <nil>, output:
DEBU Using root access: Executing systemctl start crc-dnsmasq.service
DEBU Running SSH command: sudo systemctl start crc-dnsmasq.service
DEBU SSH command results: err: <nil>, output:
DEBU Running '/home/vgerris/.crc/bin/crc-admin-helper-linux rm api.crc.testing oauth-openshift.apps-crc.testing console-openshift-console.apps-crc.testing downloads-openshift-console.apps-crc.testing canary-openshift-ingress-canary.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Error: host file not writable, try running with elevated privileges
host file not writable, try running with elevated privileges
DEBU Making call to close driver server
DEBU (crc) Calling .Close
DEBU Successfully made call to close driver server
DEBU Making call to close connection to plugin binary
DEBU (crc) DBG | time="2023-11-13T15:17:36+01:00" level=debug msg="Closing plugin on server side"
Error running post start: exit status 1

Before gather the logs try following if that fix your issue
$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Please consider posting the output of crc start --log-level debug  on http://gist.github.com/ and post the link in the issue.

note : my homefolder is encrypted using ecrytfs, I had to apply a policy to overcome another issue that I reported here :
https://bugzilla.redhat.com/show_bug.cgi?id=2249481

DEBU stderr: Error: host file not writable, try running with elevated privileges

can the user add entries to the hosts file? or using sudo ?

hi, what do you mean? That log output applies to actions within the VM, correct ? Shouldn't that 'just work' ? Can you write what precise commands I could run to test anything? thank you

hi, what do you mean? That log output applies to actions within the VM, correct ? Shouldn't that 'just work' ? Can you write what precise commands I could run to test anything? thank you

Try to open this file and add some content and save it, does it able to save or have permission issue?
sudo vi /etc/hosts

Hi, I am perfectly cable of changing and saving my host file with sudo, no saving issues.

@VGerris can you try following?
$ ls -lZ  /home/vgerris/.crc/bin/crc-admin-helper-linux
$ /home/vgerris/.crc/bin/crc-admin-helper-linux rm api.crc.testing oauth-openshift.apps-crc.testing console-openshift-console.apps-crc.testing downloads-openshift-console.apps-crc.testing canary-openshift-ingress-canary.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing

Hi, sure here we go:
$ ls -lZ  /home/vgerris/.crc/bin/crc-admin-helper-linux
-r-s--x---. 1 root vgerris system_u:object_r:ecryptfs_t:s0 5212680 Nov 13 10:31 /home/vgerris/.crc/bin/crc-admin-helper-linux
$ /home/vgerris/.crc/bin/crc-admin-helper-linux rm api.crc.testing oauth-openshift.apps-crc.testing console-openshift-console.apps-crc.testing downloads-openshift-console.apps-crc.testing canary-openshift-ingress-canary.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing
Error: host file not writable, try running with elevated privileges
host file not writable, try running with elevated privileges
That seems to be an issue.
I tried restorecon on it but get :
$ restorecon -Rv /home/vgerris/.crc/bin/crc-admin-helper-linux
restorecon: Could not set context for /home/vgerris/.crc/bin/crc-admin-helper-linux:  Operation not supported

I tried setting 755 as here : https://github.com/crc-org/admin-helper/blob/master/crc-admin-helper.spec.in
but that didn't help.

@VGerris is it something because of system_u:object_r:ecryptfs_t context because I can see the permission is as expected but context is different than usual like in my case unconfined_u:object_r:user_home_t but may be you have some restriction for home directory. try with sudo also I am surprised that with root user and suid bit set it is not able to write the file. Also run the restorecon with sudo.

This is a very specific selinux + encrypted home folder setup. We can try to reproduce it, but this is not a scenario we see often.
The solution could be to move crc-admin-helper to /usr/local/sbin or similar.

Yes the problem is the nosuid mount.

I have reported this here too:
https://bugzilla.redhat.com/show_bug.cgi?id=2249481
Will the file be moved in a coming version?


Breaking changes in Falco 0.36.0

What to document
Document all breaking changes, features and flags removed or modified for Falco 0.36.0

The rules that are shipped with Falco by default are drastically different from version 0.35.x. They have been improved, split into several files, and the minimal set of rules has been changed.
The Falco HTTP output no longer logs to stdout by default for performance reasons. You can set stdout logging preferences and restore the previous behavior with the configuration option http_output.echo in falco.yaml : https://github.com/falcosecurity/falco/pull/2602
The falcosecurity/falco-driver-loader container image is now based on Debian 12 ("bookworm") stable. The set of compilers installed is also updated, improving its compatibility with newer kernels (5.x and above) but potentially affecting compilation on older kernels. The older image, meant for compatibility with older kernels (4.x and below), is currently retained as falcosecurity/falco-driver-loader-legacy. https://github.com/falcosecurity/falco/pull/2718
The --list-syscall-events command line option has been replaced by --list-events which prints all supported system events (syscall, tracepoints, metaevents, internal plugin events) in addition to extra information about flags. https://github.com/falcosecurity/falco/pull/2771
The -d daemonize option has been removed https://github.com/falcosecurity/falco/pull/2677
The -p flag behavior is now slightly changed: https://github.com/falcosecurity/falco/pull/2737

These have been documented in the release notes & blog posts!


Can't update specification document

Specification document is only available as pdf https://github.com/openwhisk/openwhisk-wskdeploy/blob/master/specification/openwhisk_v0.8.pdf
I was trying to update the spec to fix #216 but the original word document is not available in the repository.
Please add the word document in the repository to allow other folks be able to update the spec.

Could we have a Markdown copy to make it easy to raise issues and submit PRs against?

Would be ideal to have it markdown or at least a google doc if it requires more complex formatting than what markdown can support

Also helpful if the spec could come up with a catalog

The long term goal was to have the PDF be canonical (still true) and provide a non-canonical version as markdown (and use a converter like pandoc), but conversion is not perfect.  Will look into this again. @csantanapr  In general, conversion fails with tables... as each markdown impl. does this slightly differently, https://guides.github.com/features/mastering-markdown/

I do tables in excel having a "|" columns to separate, then I export to text giving me a compatible markdown github table.

@csantanapr @jthomas added markdown/HTML (non-normative) pages for most sections of the specification via PR https://github.com/apache/incubator-openwhisk-wskdeploy/pull/551
Both the spec. and evolving prog. guide are linked form the wskdeploy project README


how to use with mps (m2 chip)

I am closing this issue since no information has been provided about the request. If you still need assistance, please provide a detailed description of any issues you have run into running autodistill on an M2 Mac.

Unless I'm missing something, The docs do not show how accelerate training on MPS GPU


DenseNet

Paper
Implement DenseNet
TODOs

[x] develop the model in a scalable way (using *Block syntax and nn modules)
[x] draw the model on figma
[x] write doc
[x] test the model
[x] get (if possible) the pretrained weights

Missing one Densenet model (I think is 264)

Done!

Missing init
https://github.com/pytorch/vision/blob/10d5a55c332771164c13375f445331c52f8de6f1/torchvision/models/densenet.py#L182

Outputs with torchvision's model do not match


Add sharepoint library link

Hi,
I have Microsoft 365, and i often link my sharepoint library in the explorer.
It will be great if the app supported this functionnality

Merging with #1310


Fix null counts for output of row/column conversion:

Fixes #1169.
This commit fixes the null counts in row/column conversion, for all output columns.
The prior fix in #1155 only fixed the count for STRING outputs.
There are 2 additional/tangential fixes in this change:

cudf::detail::null_count() is used in place of cudf::null_count(), thus running on the current stream.
The Java RowConversion.convertFromRowsFixedWidthOptimized() now uses the convertFromRowsFixedWidthOptimized() native function instead of convertFromRows(). This should prove faster.

Build

Thank you for the quick fix.

All it took was 3 PRs (and counting).


X button displayed when placeholder key missing

In single-selection fields, the X button for clearing the choice, is displayed when no entry is actually selected.
As a workaround, I am explicitly placeholder: '' (blank) to my select2() calls.

The docs for allowClear are on the page of the documentation for placeholders. You need a placeholder in order to clear the value back to the placeholder.
https://select2.org/placeholders
If you enabled the debug; true option, you would have seen an error in your console about this.
https://github.com/select2/select2/blob/7c4131bc27009fbf8f8ad9406ff3de72e8a5c8d7/src/js/select2/selection/allowClear.js#L15-L18


Hack to reduce rate limit flakiness

I often run into the system crashing due to OpenAI rate limit.
With this change, the program halts for 30 seconds and then resumes - instead of hard crash.
Note: This is a hack based on my limited experience of the platform. I suggest the reviewer considers alternative solutions first.

It only helped temporarily :(
Closing PR as the problem remains


Update the documentation of foreign io link in example_generated.rs

Looks good to me! Are there any other typos in there that you noticed @debris or is this it?

I haven't noticed anything else

Thanks!


Write fcs function

Pytometry should include a function to export an anndata file to fcs using the Gating ML 2.0 version and FCS standard 3.*

In scyan, there is this write_fcs function, which uses fcswrite internally
But it seems this repository is not actively maintained, what do you think?

A couple points from the discussion in https://github.com/scverse/governance/issues/64:

There was some agreement that it makes sense to keep IO separate from the rest in readfcs. I'm sure they would be happy to include functions for writing FCS filese
Here it could make sense to either switch to @whitews's FlowIO package or use it as another backend in readfcs.

adata = readfcs.read("sample.fcs", backend="fcsparser")
adata = readfcs.read("sample.fcs", backend="flowio")
readfcs.write(adata, "sample.fcs", backend="flowio")

Or maybe to add support for AnnData directly in FlowIO?

pip install flowio[anndata]

adata = flowio.FlowData('sample.fcs').to_anndata()

Please let me know if someone wants write access to readfcs. I think that eventually renaming it to fcs-io would be even better then but one step after another.


#4623: lenet gs demo benchmarking [Pending CI]

This PR contains benchmarking of LeNet gs_demo for MNIST Handwritten Digit Classification test dataset.
model is tested with 1000 datapoints extracted from the dataset and the accuracy is listed below:
Metric: Accuracy
Accuracy: 92.1

This PR is merged into main


luci-proto-vxlan: add vxlan protol handler

Allow users to add vxlan interface in luci.
Depends on https://github.com/openwrt/openwrt/pull/3053

Great. Thanks for the commit. I was waiting for this :-)
I raise a ticket for generic vxlan support in uci - not critical:
https://bugs.openwrt.org/index.php?do=details&task_id=2743
2 topic about it:
https://forum.openwrt.org/t/wireguard-vxlan-and-multicast/39405/8
https://forum.openwrt.org/t/how-to-configure-vxlan-in-openwrt-can-i-use-luci/47725/3

Looks fine now! Can you squash both commits into one and remove the "depends on commit..." remark? Then its read to merge.

Done

Somehow you reintroduced the comma issue with your latest force push but I fixed that up manually now.
Merged via d79bbdd5b and fixed via 0de42b056.


Added test to check output of estimating counterfactual with AutoSoftConditioning

This tests considers the following model:
def model():
        z = pyro.sample("z", dist.Normal(0, 1), obs=torch.tensor(0.1))
        u_x = pyro.sample("u_x", dist.Normal(0, 1))
        x = pyro.deterministic("x", z + u_x, event_dim=0)
        u_y = pyro.sample("u_y", dist.Normal(0, 1))
        y = pyro.deterministic("y", x + z + u_y, event_dim=0)
        return dict(x=x, y=y, z=z)

It conditions on the values z=0.1, x=0, and y=1. Then,
$$ p(u_x \mid z=.1, x=0, y=1) = I(u_{x}=(x - z)) =  I(u_{x} = (0 - .1)) = I(u_{x} = -0.1) $$
and
$$p(u_y \mid z=.1, x=0, y=1) = I(u_{y}=(y - x - z)) =  I(u_{y} = (1 - 0 - .1)) = I(u_{y} = 0.9).$$
This test compares the output of SVI using AutoSoftConditioning to handle the deterministic sites resulting from reparameterizing the model to share noise variables in TwinWorldCounterfactual. Specifically, this test requires that the posterior mean is "close" to the ground truth values above, where "close" is determined by the scale used in AutoSoftConditioning.

@agrawalraj do you think this will have like a 3% failure rate or 0.1% failure rate or etc. etc.

Generally I'm nervous about adding full inference runs to test suites because:

It can take a long time and bog down CI builds, etc.
As @azane is alluding to, they can fail with moderately high probability

@agrawalraj , is there a way to test the functionality you want without running SVI?

@eb8680 , what is your general thinking about these kinds of integration tests including inference?

@SamWitty re: your first point

It can take a long time and bog down CI builds

This one only takes < 4 seconds on Raj's machine locally.

Generally I'm nervous about adding full inference runs to test suites because:

It can take a long time and bog down CI builds, etc.
As @azane is alluding to, they can fail with moderately high probability

@agrawalraj , is there a way to test the functionality you want without running SVI?

I would like to test the functionality of actually recovering the noise variables correctly. In the example, the noise distributions are just point masses. I think testing recovery would require some inference procedure...


Add message to readme.md that the project is no longer maintained

Spring social has been moved to the attic, to discourage poeple from using a dead project, it would be good to make a visible note in the readme.

Or just do a 2.0 release

I don't think that they will do a release for a dead project

Is there any replacement for Spring Social if it's been disbanded?

Looks like Spring Security 5 will gain Spring Social's OAuth client functionality. This EOL blog post should be linked to from the README:
https://spring.io/blog/2018/07/03/spring-social-end-of-life-announcement
Might save a few people going down a development dead end.


Add crypto_pwhash_scryptsalsa208sha256 functions

This pull request was adapted from https://github.com/Zah6ooheew/pynacl/tree/libsodium5.0.

@malthe Thanks for the contribution. Would you mind reopening this PR over on pyca/pynacl now?


Define a feature you would like to see implemented in our app

Add Chucher lib. Improve debugs and QA stages.


php snippets working perfectly inside short open tags  but not inside

Whenever I try to insert a user snippet (defined in php.json) inside of short open tags <? ... ?> in a .php file everything works fine. All snippets show up as suggestions immediately while typing without any delay.
<?
// ... inserting snippet here works fine
?>

Whenever I do the same inside of <?php ... ?> it takes around 3 seconds for any suggestions to show up and most snippets are missing from those completely.
<?php
// ... inserting snippet here doesn't work as expected
?>

VScode Version: 1.18.1
OS Version: MacOS Sierra 10.12.6

Do you have any php extensions installed?

most snippets are missing from those completely.

That's weird, are these your own custom snippets, or from an extension? Is it consistent which ones show up and which don't?

Ok, now I'm either crazy or I had a serious d'oh moment. I went ahead and disabled all extensions and the snippets started working again. So far so good. I started enabling my extensions again one by one with reloading VScode in between to see which extension might be the culprit. But none was. I was able to enable all of them again and my snippets seem to work fine again.
What remains though is the difference in performance. Suggestions show up immediately while typing inside short open tags, otherwise, it takes around 2 seconds. The delay disappeared when I disabled PHP IntelliSense (2.0.1).

We wait to show the suggest menu until all extensions have returned their suggestions. There may be some issues for improving perf in php-language-server already.


Expose req._startAt and req._startTime to be similar to morgan

https://github.com/expressjs/morgan/blob/master/index.js#L500-L508

Also https://github.com/pinojs/pino-http/blob/master/logger.js#L63 could probably be changed so that it also sets req[startTime].

The reason I need this is because I want record the time the request was received in a log, and this is the easiest approach, since this is a timer that starts and is also the same timer used for calculation of response time.

Since we're modifying req objects we wanted to be as least invasive as possible we use a symbol because it's  "more private".
The startTime symbol is exposed: https://github.com/pinojs/pino-http/blob/master/logger.js#L108 would that be enough to work with your end?

This would require me to require the package and install it in my log parser, which I really didn't want to do, since the log parser I'm writing is a library to be published in npm.

Prefixing with an underscore as morgan does is probably sufficient enough.

We could expose it using Symbol.for, and then you can use Symbol.for('pino-http.startTime')
That way you don't have to require the package, and we don't have add more noise to the req/res objects. I'd be happy to accept a PR for altering to Symbol.for

Closing in favor of #66 and #67


Unable to install Marketplace pre-release v2022.1.11231003: 'no release version'

Apologies if this a non-issue, as I can't find documentation about this anywhere. I am not able to try the new version v2022.1.11231003 indicated in this blog article https://devblogs.microsoft.com/python/python-in-visual-studio-code-may-2022-release
Can't install release version of 'ms-python.black-formatter' extension because it has no release version.

Is there something I have to flip somewhere to run pre-release extensions?
I have Python v2022.6.0 enabled.
VSCode:
Version: 1.67.0 (Universal)
Commit: 57fd6d0195bb9b9d1b49f6da5db789060795de47
Date: 2022-05-04T12:14:47.100Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.4.0

Found the drop-down. I had no idea pre-release extensions are a thing .


[feat] Menu event handler directly on MenuItemBuilder

Describe the problem
Building complex menu means complex on_menu_event, keeping track of event names, etc.
Describe the solution you'd like
Build the event handler directly when creating a menu item. Something like:
let view_menu = SubmenuBuilder::new(app_handle, "View")
    .item(
        &MenuItemBuilder::new("Jump to playing track")
            .id(MenuId::new("jump_to_playing_track"))
            .accelerator("CmdOrCtrl+T")
            .handler(|app_handler| { // HERE (triggered on click + accelearator)
                app_handler.get_webview_window("main").unwrap().emit("hey_yah")
            })
            .build(app_handle)
            .unwrap(),
    )
    .build()
    .unwrap();

Alternatives considered
none.
Additional context
No response

I realize there is an action property on the Menu builder on JS side, just having the same Rust side would be super cool.


⚠ GitLab Server has degraded performance

In 7530fec, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 10638 ms

Resolved: GitLab Server performance has improved in e48c0a2.


About escape processing of TTY on Windows.

For the neovim I have created a patch to handle CSI Ps SP Q Set Cursor Style in libuv escape sequence processing on Windows. At that time I found the following problems.

Up to the next final final byte after the normal sequence like CSI [ is not output.
An invalid sequence such as CSI ? ? parameter bytes final byte is processed as a normal sequence.
Number of arguments not strictly verified.
CSI 25 h operates as Show Cursor. CSI 25 l operates as Hide Cursor.
It works even though CSI ? PS J etc does not support Selective Erase.

I'd like to submit this patch upstream. How much should the above problem be corrected? I think that 1. is a pug and should be corrected. But I do not know if 2. to 5. should be fixed or not. I want an opinion on what to do.
Ref neovim/neovim#8462

Im guessing you want to add this: https://github.com/neovim/libuv/commit/d595ef307fc4d8b9232fdd0f9cc5005fd1b1badb? It generally LGTM, maybe some style nits. It would be great if you would fix the issues you found though.

I have created a PR(#1884). So I will close this.