vk has no attribute plot_projection?

...
Thank you for developing such a nice tool for unified cell fate inference. I try to follow your tutorial as shown here: https://cellrank.readthedocs.io/en/latest/notebooks/tutorials/kernels/200_rna_velocity.html
when I hit the line: vk.plot_projection(adata), an error occurred telling me that vk has no attribute plot_projection.
I just wonder if I did something wrong?

and by the way, I used cell rank 2.0.0

even if I reinstall the old version of cellrank==1.5.1, vk still can not find the plot_projection() attribute, but I can find compute_projection() attribute in vk, which, if run, will work normally and output the same verbosity message as what is shown in the tutorial: https://cellrank.readthedocs.io/en/latest/notebooks/tutorials/kernels/200_rna_velocity.html
aka, the following line:
Projecting transition matrix onto umap
Adding adata.obsm['T_fwd_umap']
Finish (0:00:01)

... Thank you for developing such a nice tool for unified cell fate inference. I try to follow your tutorial as shown here: https://cellrank.readthedocs.io/en/latest/notebooks/tutorials/kernels/200_rna_velocity.html
when I hit the line: vk.plot_projection(adata), an error occurred telling me that vk has no attribute plot_projection.
I just wonder if I did something wrong?

Hi @ziyangliu93, try not passing an AnnData object (i.e. just vk.plot_projection()), as in the tutorial, and explained in the API here: https://cellrank.readthedocs.io/en/latest/api/_autosummary/kernels/cellrank.kernels.VelocityKernel.html#cellrank.kernels.VelocityKernel.plot_projection

... Thank you for developing such a nice tool for unified cell fate inference. I try to follow your tutorial as shown here: https://cellrank.readthedocs.io/en/latest/notebooks/tutorials/kernels/200_rna_velocity.html
when I hit the line: vk.plot_projection(adata), an error occurred telling me that vk has no attribute plot_projection.
I just wonder if I did something wrong?

Hi @ziyangliu93, try not passing an AnnData object (i.e. just vk.plot_projection()), as in the tutorial, and explained in the API here: https://cellrank.readthedocs.io/en/latest/api/_autosummary/kernels/cellrank.kernels.VelocityKernel.html#cellrank.kernels.VelocityKernel.plot_projection

Hello
Thank you for answering the questions! I met the same problem while processing the data. I met the same problem when processing it on my data. When I tried on the cr.datasets.bone_marrow() data, it showed "'VelocityKernel' object has no attribute 'plot_projection'." Attached are outputs I get when I run the tutorial codes. Thank you!
adata = cr.datasets.pancreas()
scv.pl.proportions(adata)
adata

AnnData object with n_obs × n_vars = 2531 × 27998
obs: 'day', 'proliferation', 'G2M_score', 'S_score', 'phase', 'clusters_coarse', 'clusters', 'clusters_fine', 'louvain_Alpha', 'louvain_Beta', 'palantir_pseudotime'
var: 'highly_variable_genes'
uns: 'clusters_colors', 'clusters_fine_colors', 'day_colors', 'louvain_Alpha_colors', 'louvain_Beta_colors', 'neighbors', 'pca'
obsm: 'X_pca', 'X_umap'
layers: 'spliced', 'unspliced'
obsp: 'connectivities', 'distances'
scv.pp.filter_and_normalize(
    adata, min_shared_counts=20, n_top_genes=2000, subset_highly_variable=False
)

sc.tl.pca(adata)
sc.pp.neighbors(adata, n_pcs=30, n_neighbors=30, random_state=0)
scv.pp.moments(adata, n_pcs=None, n_neighbors=None)

Filtered out 22024 genes that are detected 20 counts (shared).
Normalized count data: X, spliced, unspliced.
Extracted 2000 highly variable genes.
Logarithmized X.
computing moments based on connectivities
finished (0:00:01) --> added
'Ms' and 'Mu', moments of un/spliced abundances (adata.layers)
scv.tl.recover_dynamics(adata, n_jobs=8)

recovering dynamics (using 8/40 cores)
0%|          | 0/1078 [00:00<?, ?gene/s]
finished (0:00:45) --> added
'fit_pars', fitted parameters for splicing dynamics (adata.var)
scv.tl.velocity(adata, mode="dynamical")

computing velocities
finished (0:00:01) --> added
'velocity', velocity vectors for each individual cell (adata.layers)
vk = cr.kernels.VelocityKernel(adata)
vk.compute_transition_matrix()

Computing transition matrix based on logits using 'deterministic' mode
Estimating softmax_scale using 'deterministic' mode
0%|          | 0/2531 [00:00<?, ?cell/s]
Setting softmax_scale=3.7951
0%|          | 0/2531 [00:00<?, ?cell/s]
Finish (0:00:05)

ck = cr.kernels.ConnectivityKernel(adata)
ck.compute_transition_matrix()

combined_kernel = 0.8 * vk + 0.2 * ck

Computing transition matrix based on adata.obsp['connectivities']
Finish (0:00:00)
print(combined_kernel)

((0.8 * <VelocityKernel[softmax_scale=3.8, mode=deterministic, seed=44219, scheme=]>) + (0.2 * <ConnectivityKernel[dnorm=True, key=connectivities]>))
vk.plot_projection()

AttributeError                            Traceback (most recent call last)
/tmp/job.323351.hpc/ipykernel_904333/2045451377.py in
----> 1 vk.plot_projection()
AttributeError: 'VelocityKernel' object has no attribute 'plot_projection'

Hi, @Marius1311 thank you for your quick reply, sorry to bother you. Just as you mentioned above, I did exactly as what is shown in the tutorial by direct invoking of vk.plot_projection() without passing any argument, but the same error occurred like this:

AttributeError                            Traceback (most recent call last)
Cell In [504], line 1
----> 1 vk.plot_projection()
AttributeError: 'VelocityKernel' object has no attribute 'plot_projection'

Hi, @Marius1311 thank you for your quick reply, sorry to bother you. Just as you mentioned above, I did exactly as what is shown in the tutorial by direct invoking of vk.plot_projection() without passing any argument, but the same error occurred like this:
AttributeError Traceback (most recent call last) Cell In [504], line 1 ----> 1 vk.plot_projection()
AttributeError: 'VelocityKernel' object has no attribute 'plot_projection'

Hi
I met the same problem couple days ago. After I upgrade cellrank, the problem is gone. You can have a try.
best wishes

Hi, @Marius1311 @peterzhao1998 , I solved this issue by reinstall cellrank==2.0.0, thank you for your help.


[DEVOPS-239] Run build-dll on all supported platforms

Looks good, let's wait for the build and see if it fixed the problem 👍

@fersel will you test or someone else? It's ready for testing.

@domenkozar i will check it out

@domenkozar that didn't work … i will try another approach where you don't need to change anything about the build process.


Reflection?

Question
Just wondering, do you have any plans to broad the scope of this library to more general-purpose reflection features?
Such as, iterating over the properties of a (possibly abstract) type, checking the compatibility of a specified type against a specified argument, and so on? (features that would enable us to create a dependency injection container, a router that automatically injects dependencies for the function, and so forth.)
(or perhaps a separate library?)
You clearly understand this stuff really well, and there is not much happening in that space. 😊
(apologies if this has already been asked - I didn't find the answer in issues, or in the docs.)

No plan to support the Reflection, because typia is planned to support interface type.
As you know, interface type never can utilize the Reflection.

As you know, interface type never can utilize the Reflection.

Well, not without a runtime - but the same is true for other features in typia, and there are other projects attempting to do that.
Most languages that do support reflection, such as PHP and C#, do allow reflection of interface types.
Of course, this is only relevant if you want to actually support reflection. :-)

If possible to support reflection on interface type, I'll do it. Do you know how to do it?

If you mean how to implement it? No.
If you mean, how should the feature work? Probably something like getType<T>(), which would return some sort of reflection model - you could look at the C# or PHP models for reference.
Anyhow, this is probably a big feature. 😅

Yeah, something like that. :-)

From my knowledge Reflection is really only applicable on TypeScript classes, and not so much on interfaces/types.

Classes and interfaces, but also functions and constructors - so we could build things like IOC containers and routers.

@mindplay-dk If Reflection is inspecting/manipulating objects and data-structures in runtime, then, no, you can't really use "reflection" on an interface, as the interface is removed after TS compiles to JS - and that was just my point. That means, the technique that allows for "reflection", is AOT - but the result has nothing to do with an interface, but rather, an object. So you're using reflection at compile time, which ... is not reflection at all (?), but AOT. If @samchon took your comment on using "Reflection" literal, then I understand the confusion.
Anyways, I just wanted to share that there's https://github.com/nullcc/ts-interface-keys-transformer. It is however not maintained. Issue #12 fixes an issue with a type and supports comment arguments. So we can be inspired by that in regards to this issue.
For now I'm hoping @samchon doesn't mind adding this utility-transformer to our wishlist🤞

As typia (and nestia) is targetting to interface type, and reflect cannot be used for such interface type, I reject this suggestion.
Instead, I'll accept those things, and you may satisfy them.

https://github.com/samchon/typia/issues/630#issuecomment-1547530286
https://github.com/samchon/typia/issues/683

It may come into typia in v5.1 version, after protobuf and gql supporting.
Thanks for suggestion, and sorry for rejection.

@samchone That's quite alright! I was only wondering if reflection was in the "neighborhood" of what you were doing already - it sounds like it's not, so that feature probably doesn't belong here. It's a big, complex feature in itself, anyhow. 🙂
@Refzlund not really following anything you're saying here? reflection has nothing to do with a language being AOT or JIT or interpreted - for example, C# is AOT, PHP is JIT/interpreted, and both support reflection of interfaces. I understand that TS is different from PHP and C#, in that it performs type erasure - maybe that's what you meant? But that doesn't preclude reflection. You can still generate a reflection of the source code model, at compile-time, which you can then consume at run-time. I am currently testing this library, which is attempting to implement exactly that approach. 🙂

What about https://github.com/samchon/typia/issues/878#issuecomment-1896149792


opt out

stop this right now

Feel free to post your fediverse handle here or DM it to<EMAIL_ADDRESS>I'll happily opt you out.
I'm also working on a new opt in idea, https://github.com/snarfed/bridgy-fed/issues/835#issuecomment-1942046208, hopefully it can replace the original pure opt out. Apologies for not figuring it out sooner.

no u


Issue Referencing component created with 'createAnimatedComponent'

I have wrapped a scrollview in the animated component, and whenever I try to reference scrollview to, let's say, scroll to the top, it is not defined.  This works when the component is not wrapped.
For reference, here's my code
<AnimatedScrollView

          onLayout={() => this.scrollView.scrollTo({y: 20, animated: false})}
          ref={(ref) => this.scrollView = ref}
          style={{flex: 1,}}
          keyboardDismissMode='on-drag'
          directionalLockEnabled={true}

scrollTo is a method of ScrollView, not the Animated wrapper component. You can probably get at the wrapped component via wrapperComponent.refs.node but I'll warn you that the node ref is an implementation detail and could change in a future release so if you go this route be extra sure to keep an eye on changes to createAnimatedComponent.

@facebook-github-bot label Icebox

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/issue-referencing-component-created-with-createanimatedcomponent
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook-github-bot close

For people searching for solution: #9944


Delayed scroll top possible?

Hey guys!
Is it possible to delay the scroll top after a route change?
The reason is this:
I have a page transition (300ms fade out / in) and I want trigger the scroll top after the current page faded out, so after 300ms.

You can implement your own scroll behaviour like this: https://nuxtjs.org/api/configuration-router/#scrollbehavior. Maybe you could import waitFor from Nuxt's lib/common/utils.js and wait for 300ms before returning?
async function waitFor (ms) {
  return new Promise(function (resolve) {
    setTimeout(resolve, (ms || 0))
  })
}

await waitFor(300)

As scroll behaviour is directly passed to vue-router, also have a look at their documentation: https://router.vuejs.org/en/advanced/scroll-behavior.html

Hi, this is a known issue of vue-router, see https://github.com/vuejs/vue-router/issues/1263


Remove includes suggested by CLion - 'Detect not directly used'

Detect not directly used (default): this strategy follows the Include What You Use principle (the principle that if you use a symbol or type from a header, you should include that header) and detects the #includes directives with the declarations not used in the current file directly.
https://www.jetbrains.com/help/clion/unused-include-directive.html

Looks like CLion removes headers that are actually used in source files.


Fixed checking if templates are installed on linux and macos.

Hi!
When we check if MG templates is installed on linux, we always get error findstr: not found, so templates is reinstalled every time vscode is started.
I've added a check to use the appropriate command.

Thanks for the contribution! The changes will be included in the next update.


DOCS-5036 policy asset type

questions:

Definition of policies: "Configuration modules for managing APIs."?
"Create an Asset" discusses ways to create each asset type. How do users create a new policy asset? Do they create the asset directly using the Exchange "New asset" menu?
"Create an Asset" shows an illustration of how each asset type appears in Exchange. How do policies fit into that picture?
"Download an Asset" explains downloading. For "As Mule policy" what does the jar file contain? For "As Policy definition" YAML is a possible result; is JSON also possible? What are the differences between the YAML file and the JAR file? Was the YAML file the original source in all cases?

OK, I believe this PR is complete and correct, and I have no further questions. @Igua95 please approve if it looks good to you.


Add support for dividers

Hey there!
Since the original author doesn't update their module anymore and you seem to be updating it, I've come here in hope to use it for my application PreMiD. It seems to do the trick for my use cases BUT I'd love to see the possibility to use the dividers as the go module seems to support them but this one "lacks?" them.
~ Florian

The separator support is just added (not published yet). Will you try npm i felixhao28/node-systray and add an "SysTray.separator" in the menu array and see if it works for you?

👌 Works fine but couldn't install it the proper way, it just had empty folders but locally compiling the files and testing, it works.

Also the go library seems to support sub-menus? If so that would be useful to have support for as well

Yeah installing from GitHub won't actually work because I don't commit the compiled js file to the repository.

Sub-menus support has been added to the master branch. You can pull and try again. I only tested on Windows.


Current Known Issues

client only search doesn't render at page load (works fine after that)
router search needs a new key on every render to work, but that shouldn't be needed. (that trick also makes the client search work if applied)
overrides application in ClientSearch component needs to be factored out from the useEffect and run synchronously when props.schemas is present (otherwise waiting for the overrides is incompatible with server rendering the search layout)

fixed by https://github.com/doug-patterson/FMR-SearchKit-React/commit/cae846b9644235f6679cb162d07770acd8e5cb78


ffpass command not found

What am I doing wrong here? PS be gentle, I'm a total noob at linux script
WARNING: The script ffpass is installed in '/home/crutchlowje/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed ffpass-0.5.0 pyasn1-0.4.8 pycryptodome-3.17
crutchlowje@penguin:~$ ffpass import --file passwords.csv
-bash: ffpass: command not found
crutchlowje@penguin:~$ export PATH=/home/crutchlowje/local.bin:$PATH
crutchlowje@penguin:~$ ffpass import --file passwords.csv
-bash: ffpass: command not found

The first step is to read the warning. You just have to add /home/crutchlowje/.local/bin to PATH. Here is a useful tutorial: https://www.baeldung.com/linux/path-variable
Good luck learning Linux!

Btw, your prompt indicates that you are using Bash.


Implement download progress indicator for individual media

On PlaylistDownloadScreen, implement the download circular progress indicator for individual media items:

The UI model DownloadMediaUiModel already contains the progress information in field Downloading.progress, and the screen is already displaying the progress label ("68% of 13MB" or "Waiting...").
If Downloading.progress is Waiting then it should display an indeterminate circular progress indicator:

If Downloading.progress is InProgress then it should display a determinate circular progress indicator, using the InProgress.progress field as value:

InProgress.progress is currently defined as String, it would be nice to change it to Float and adapt the code accordingly.

Adding missing specs:

@luizgrp I was wondering if it would be possible to list out what is left after #567 for this issue to be considered done? :) I remember there was some refactoring that we left out. Furthermore, would it be possible to get a design for the large icon type as well? As I think the one above is only one of the permutations :)

@oas004 this issue is considered done! the comments left there are minor refactoring suggestions, no need to worry about. But if you are up for it, think about how to remove duplication of code in StandardChip and StandardChipIconWithProgress.
Regarding the design for large icon, we will only have them once they become part of the requirements, which they are not at the moment. But I will let you know if that changes.
Thanks for bringing it to my attention, closing it now!

Removed duplicated code in https://github.com/google/horologist/pull/601

Sweet! Thanks for looking into this @luizgrp 😄


mysql-innodb-cluster source configuration need to be distro after yoga.

The newest version of mysql-innodb-cluster charm is built against the stable/yoga version of charm-helpers. The reason is because we don't tend to carry mysql package in the cloud archive, so in practice using distro or cloud:jammy-antelope will result in exactly the same mysql payload version.

It's working fine for me
juju deploy mysql-innodb-cluster -n 3 --channel 8.0/stable
juju config mysql-innodb-cluster source=cloud:jammy-zed
juju config mysql-innodb-cluster source=cloud:jammy-antelope

What is your mysql version and charm-helper version?

revision 153

I can't reproduce this one. So closed.


upgrade to latest Cassandra java driver, namely Version 3.0.0

@MarcoPriebe Thanks for your contribution!

@comeara Welcome back! Thx!


Support for IAM conditions in Storage when fetching bucket policies

The implementation can't be completed yet as the request field doesn't exist in the REST representation, but the TODO shows where it would be.
Sample usage:
var policy = client.GetBucketIamPolicy(bucket, new GetBucketIamPolicyOptions { SupportedIamPolicyVersion = 3 });

Currently I don't propose adding a client-wide user-settable default; we can do that later as an extra feature if it's requested.

@jkwlui @frankyn @broady I've now updated this with the complete implementation.
Unfortunately we can't clone the policy, so in this case if the user specifies a version in a Set request, we'll modify the object they pass in. I've documented this so it's clear, but it's still a little unfortunate.

Did you remove the version checks on the existing helpers?

Did you remove the version checks on the existing helpers?

That's in a different PR. This PR is just around Storage, which wraps the REST library.

@jkwlui @frankyn @broady This is now just for GetBucketIamPolicy, with a renamed property as discussed.
I believe that this is now production-ready, barring any timing concerns around when we want to make it available. PTAL.

This LGTM, thanks Jon. I want to get checkoff from IAM Team on the C# design document then we can merge it away.

IAM Team checked off high-level expectations for this design.
Thanks Jon, @jkwlui is on point for IAM Conditions releases moving forward.

@frankyn @jkwlui @broady: Does that mean this is okay to merge? Note that we'll want to do another release reasonably soon... if we're confident in the client library API surface, I think it's okay if this turns out not to be customer-useful for a little while.

@amanda-tarafa: We're now okay to merge this, so please review when you're back. Let me know if you need more context.


Remove 404 link.

Unfortunately, Harry's PixInsight tutorials link is no longer available. The website seem to be under construction.

 Do you think we could link to their archived version instead?

Thank you for your contribution.


Add test for tab character

There is an issue regarding tab character in Tomlyn library.
After reading the specs , I found this:

Any Unicode character may be used except those that must be escaped: backslash and the control characters other than tab, line feed, and carriage return (U+0000 to U+0008, U+000B, U+000C, U+000E to U+001F, U+007F).

Control characters other than tab are not permitted in a literal string

So I think we should add a valid testcase for tab character in multi-line basic string, single-line literal string and multi-line literal string.

https://github.com/BurntSushi/toml-test/blob/master/tests/valid/string/multiline.toml has tab characters, maybe some other too.
It's not clear to me what case exactly is missing for you?

But feel free to send a PR with a new test, or more tests.


nitter: unstable-2023-07-10 -> unstable-2023-07-21

Description of changes

update to unstable-2023-07-21
add updateScript

Manual functionality test passes on NixOS x86_64-linux.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

LGTM. I agree on using the unstableGitUpdater due to Nitter nature of needing to constantly follow API changes.

cc @SuperSandro2000


Cannot create iam role at the same time as creating iam policy

I'm creating an aws_iam_policy to pass into the ec2-iam-role in the policy_arn list. However if the policy is created in the same apply run as the ec2-iam-role, then I get an error. If I remove the ec2-iam-role and apply the aws_iam_policy, then apply the ec2-iam-role it works fine.
Here's the steps to reproduce:
# main.tf
data "aws_iam_policy_document" "ec2_deploy_policy" {
  statement {
    actions = ["s3:GetObject"]

    resources = ["arn:aws:s3:::data/builds/*"]
  }
}

resource "aws_iam_policy" "ec2_deploy_policy" {
  name        = "ec2-deploy-policy"
  path        = "/service-role/"
  description = "Policy used by EC2 instaces to pull builds from S3"
  policy      = "${data.aws_iam_policy_document.ec2_deploy_policy.json}"
}

module "ec2-iam-role" {
  source     = "Smartbrood/ec2-iam-role/aws"
  version    = "0.3.0"

  name       = "deploy-role"
  policy_arn = ["${aws_iam_policy.ec2_deploy_policy.arn}"]
}

$ terraform apply
Error: Error refreshing state: 1 error(s) occurred:

* module.common.module.ec2-iam-role.aws_iam_role_policy_attachment.this: aws_iam_role_policy_attachment.this: value of 'count' cannot be computed

I've tried adding depends_on = ["${aws_iam_policy.ec2_deploy_policy}"] to the module but then I get this error:
Error: module "ec2-iam-role": "depends_on" is not a valid argument

I think it might be linked to this terraform issue although, a few of the comments mention that a module is allowed to depend on a resource, just not another module.
Have you come across this issue before?

@ndench Yes, I also stuck in the issue. I think only workaround for now - put aws_iam_policy and aws_iam_role into the same module.

@andreynpetrov the aws_iam_role is created within the ec2-iam-role module. I'm not able to add to that module. Unless I do a PR but I don't think it's really the purpose of this module to do that.
How are you creating your aws_iam_policy and aws_iam_role?

@ndench Currently I am using iam role module only with predefined policies. I think, I can add to this module ability to create policy from json data provided through variable.

Ah yeah, that would be an awesome change!

@ndench Could you provide me example of your policy? I will try to add it later.

@andreynpetrov my policy is in the original post, and I'm passing ${module.ec2_iam_role.profile_name}" into an aws_instance as the iam_instance_profile. Is that enough to go on?

@ndench  I would prefer to get your policy in raw JSON format.

@andreynpetrov ah yep fair enough, no worries:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Action": [
                "s3:GetObjectVersion",
                "s3:GetObject"
            ],
            "Resource": "arn:aws:s3:::data/builds/*"
        }
    ]
}

I've changed it since originally posting this issue, just added the GetObjectVersion permission.

Added "devend_on" variable. Rewrite module to terraform version >0.12.


Latest version of BN - invalid type handling

Working with linux kernel object, simple smoke-test:
!img

I don't understand the issue. Is there a function prototype for _copy_from_user that you expect to be backward propagated that isn't?
What does y show when you press it while _copy_from_user is selected?
Can you be more explicit about what you expect to see that you don't?

ping Without more clarification we're going to close this issue as it's not clear enough what the specific issue or requested fix is.

Closing this issue as it seems abandoned


[BUG] Command "composer install" exit with error for development container

Describe the bug
The development container can't be build or run:

1.894 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
1.897 Do not run Composer as root/super user! See https://getcomposer.org/root for details
1.915 Composer could not find a composer.json file in /var/www/html
1.915 To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
failed to solve: process "/bin/sh -c composer install --no-dev --optimize-autoloader" did not complete successfully: exit code: 1

To Reproduce
Steps to reproduce the behavior:

Enter in the .devcontainer folder
Run the command docker compose up -d --build --force-recreate
The error will be displayed and the build fail

Expected behavior
The command composer install need to run after the volume is attached, after the build process.
Need to have a check in the entrypoint.sh file for the env variable.
Screenshots

I'll will work on this bug in the next week, hoping to have free time soon


possible improvements: 1. common comments 2. python enums inherit  int

There are two improvements that would be very beneficial:

Support for common comments. Currently, every file has an autogenerated comment "# autogenerated by reconstant - do not edit!". I have to modify each file to add common comments, which is time-consuming.
Enable Python enums to inherit int. By doing so, the enums generated by reconstant can work seamlessly with pydantic, as described in the pydantic docs here.

I would love to hear your thoughts on these improvements.

Hey, both of those sound useful. I'm working on https://github.com/robusta-dev/robusta full-time these days and don't have much capacity for reconstant, but if you open a PR I'd be happy to merge both improvements.

OK. I’ll see what I can do
Natan Yellin @.***>于2023年3月1日 周三16:22写道：

Hey, both of those sound useful. I'm working on
https://github.com/robusta-dev/robusta full-time these days and don't
have much capacity for reconstant, but if you open a PR I'd be happy to
merge both improvements.
—
Reply to this email directly, view it on GitHub
https://github.com/aantn/reconstant/issues/5#issuecomment-1449542736,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANIROSRM6Q77YNYUO7WJW3DWZ4BLJANCNFSM6AAAAAAVFGDBLQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

OK. I’ll see what I can do

@aantn hey natan, I've implemented these features. Would you review my PR? If necessary, I can submit another PR to update readme after this one is merged

@TonyYanOnFire thanks, a few comments below:

For the common comment, the PR adds something by default that most people will want to remove. Can we set the commen  by default to autogenerated by reconstant - do not edit! and you'll be able to customize that with your own string?

For the enum, please inherit from IntEnum instead of int and enum.

@aantn sounds great


feat(zone): added presets for goodstore data

Adding zone presets to the good store data. Based on the presets used for the sample fashion data.
Data to be mirrored:
https://github.com/frontastic-developers/customer-thegoodstore/blob/master/getting-started/data/zones.json

@lidiyacommercetools A PM WHO CODES? We're the luckiest team on planet earth 🎊

Looks like you just need a couple newlines at the ends of files and to update the inline snapshots in your tests, but this is straight 🏆 #winning.


[BUG] Can not login with network mode user

General information
OS Windows
CRC version
1.27.0

CRC status
CRC VM:          Running
OpenShift:       Running (v4.7.11)
Disk Usage:      11.49GB of 32.74GB (Inside the CRC VM)
Cache Usage:     12.3GB

CRC config
- consent-telemetry                     : no
- enable-experimental-features          : true
- network-mode                          : user

Steps to reproduce

Install CRC from installer
Change network mode to user
crc setup
crc start

Expected
Cluster started properly and user can login into the cluster.
Actual
hosts file is not written at all during startup so no resolution for cluster domain name. (checking hosts file is empty)
You can see
WARN Failed to query DNS from host: lookup api.crc.testing: no such host
And
ERRO Cannot update kubeconfig: Head "https://oauth-openshift.apps-crc.testing": dial tcp: lookup oauth-openshift.apps-crc.testing: no such host
on the startup log.
After the cluster is running, trying to connect:
PS C:\Users\crcqe> oc login -u developer https://api.crc.testing:6443
error: dial tcp: lookup api.crc.testing: no such host - verify you have provided the correct host and port and that the server is currently running

Logs
crc setup
PS C:\Users\crcqe> crc setup --log-level debug
DEBU CodeReady Containers version: 1.27.0+3d6bc39d
DEBU OpenShift version: 4.7.11 (not embedded in executable)
DEBU Running 'crc setup'
INFO Checking if admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
DEBU Total memory of system is<PHONE_NUMBER>0 bytes
INFO Checking if running in a shell with administrator rights
INFO Checking Windows 10 release
INFO Checking Windows edition
DEBU Running on Windows Professional edition
INFO Checking if Hyper-V is installed and operational
INFO Checking if user is a member of the Hyper-V Administrators group
INFO Checking if Hyper-V service is enabled
INFO Checking if the Hyper-V virtual switch exist
INFO Found Virtual Switch to use: Default Switch
INFO Checking if vsock is correctly configured
INFO Checking if CodeReady Containers daemon is installed
INFO Checking if tray executable is present
DEBU Got tray version: <IP_ADDRESS>
INFO Checking if tray is installed
DEBU Got tray version: <IP_ADDRESS>
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if C:\Program Files\CodeReady Containers\crc_hyperv_4.7.11.crcbundle exists
DEBU C:\Program Files\CodeReady Containers\crc_hyperv_4.7.11.crcbundle exists
Your system is correctly setup for using CodeReady Containers, you can now run 'crc start' to start the OpenShift cluster

crc start
PS C:\Users\crcqe> crc start --log-level debug
DEBU CodeReady Containers version: 1.27.0+3d6bc39d
DEBU OpenShift version: 4.7.11 (not embedded in executable)
DEBU Running 'crc start'
DEBU Total memory of system is<PHONE_NUMBER>0 bytes
DEBU Unable to find out if a new version is available: Get "https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/release-info.json": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
INFO Checking if admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
DEBU Total memory of system is<PHONE_NUMBER>0 bytes
INFO Checking if running in a shell with administrator rights
INFO Checking Windows 10 release
INFO Checking Windows edition
DEBU Running on Windows Professional edition
INFO Checking if Hyper-V is installed and operational
INFO Checking if user is a member of the Hyper-V Administrators group
INFO Checking if Hyper-V service is enabled
INFO Checking if the Hyper-V virtual switch exist
INFO Found Virtual Switch to use: Default Switch
INFO Checking if vsock is correctly configured
DEBU Checking file: C:\Users\crcqe\.crc\machines\crc\.crc-exist
DEBU Using secret from configuration
DEBU Copying 'C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\oc.exe' to 'C:\Users\crcqe\.crc\bin\oc\oc.exe'
DEBU Copying 'C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\podman.exe' to 'C:\Users\crcqe\.crc\bin\oc\podman.exe'
INFO Loading bundle: crc_hyperv_4.7.11.crcbundle...
INFO Creating CodeReady Containers VM for OpenShift 4.7.11...
DEBU Running pre-create checks...
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique
                   ] : Hyper-V                                                                                DEBU [stderr =====>] :                                                                                DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(([System.Security.Principal.SecurityIdentifier]::new("S-1-5-32-578")))                                                                                True
DEBU [stderr =====>] :
DEBU Creating machine...
DEBU Creating VM...
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\New-VM crc -Path 'C:\Users\crcqe\.crc\machines\crc' -MemoryStartupBytes 9216MB
DEBU [stdout =====>] :
Name State CPUUsage(%) MemoryAssigned(M) Uptime   Status             Version
---- ----- ----------- ----------------- ------   ------             -------
crc  Off   0           0                 00:00:00 Operating normally 9.0

DEBU [stderr =====>] :
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Remove-VMNetworkAdapter -VMName crc
DEBU [stdout =====>] :
DEBU [stderr =====>] :
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Set-VMMemory -VMName crc -DynamicMemoryEnabled $false
DEBU [stdout =====>] :
DEBU [stderr =====>] :
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Set-VMProcessor crc -Count 4
DEBU [stdout =====>] :
DEBU [stderr =====>] :
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Add-VMHardDiskDrive -VMName crc -Path 'C:\Users\crcqe\.crc\machines\crc\crc.vhdx'
DEBU [stdout =====>] :
DEBU [stderr =====>] :
DEBU Created C:\Users\crcqe\.crc\machines\crc\.crc-exist
DEBU Machine successfully created
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
                       Off
DEBU [stderr =====>] :
DEBU Copying 'C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\oc.exe' to 'C:\Users\crcqe\.crc\bin\oc\oc.exe'
DEBU Copying 'C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\podman.exe' to 'C:\Users\crcqe\.crc\bin\oc\podman.exe'
INFO Starting CodeReady Containers VM for OpenShift 4.7.11...
DEBU Updating CRC VM configuration
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM crc
DEBU [stdout =====>] :
DEBU [stderr =====>] :
DEBU Waiting for machine to be running, this may take a few minutes...
DEBU retry loop: attempt 0
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
                   ] : Running
DEBU [stderr =====>] :
DEBU Machine is up and running!
DEBU [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
                   ] : Running
DEBU [stderr =====>] :
INFO CodeReady Containers instance is running with IP <IP_ADDRESS>
DEBU Waiting until ssh is available
DEBU retry loop: attempt 0
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp <IP_ADDRESS>:50319-><IP_ADDRESS>:2222: wsarecv: An existing connection was forcibly closed by the remote host., output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp <IP_ADDRESS>:50319-><IP_ADDRESS>:2222: wsarecv: An existing connection was forcibly closed by the remote host.\n - sleeping 1s
DEBU retry loop: attempt 1
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp <IP_ADDRESS>:50322-><IP_ADDRESS>:2222: wsarecv: An existing connection was forcibly closed by the remote host., output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp <IP_ADDRESS>:50322-><IP_ADDRESS>:2222: wsarecv: An existing connection was forcibly closed by the remote host.\n - sleeping 1s
DEBU retry loop: attempt 2
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\id_ecdsa_crc]
DEBU SSH command results: err: <nil>, output:
INFO CodeReady Containers VM is running
INFO Generating new SSH Key pair...
DEBU Running SSH command: cat /home/core/.ssh/authorized_keys
DEBU SSH command results: err: <nil>, output: ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAEDaFLPkEkLUWnTkAKJhm93ozN2Hhq9MjTBnj8ZifUpnxR/GIM0IHH+ENaY+pSXsVQ5GnRnMtQz3uThaCG6gpCD+QCgVC5icw3ZtPjxB4kZ+aEIKXHH6S9/4sJNnhoG6n4Dx/gEVxg1xDdscD+3FmtOQ/gcYJ+KN9nrIyT1kL78RUU08w== core
INFO Updating authorized keys...
DEBU Running SSH command: echo 'ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAAJjGCLBybRZb7G012+oboNaOakG99y80W20yb6etXME4znuPVVx5HWSBNyAqxvyQ39wpqPKv+DnvbNbdCFWH8enwAJPz5SwxL1cceAx39XN1VJl9Yg1nZb79LxH6WRT2SPRv1HzBLhngue6xetecyI6aJcAdKOKT1U4//X6RiYVG2LvQ==
' > /home/core/.ssh/authorized_keys; chmod 644 /home/core/.ssh/authorized_keys
DEBU SSH command results: err: <nil>, output:
INFO Copying kubeconfig file to instance dir...
DEBU Copying 'C:\Users\crcqe\.crc\cache\crc_hyperv_4.7.11\kubeconfig' to 'C:\Users\crcqe\.crc\machines\crc\kubeconfig'
DEBU Running SSH command: realpath /dev/disk/by-label/root
DEBU SSH command results: err: <nil>, output: /dev/sda4
DEBU Running SSH command: sudo /usr/bin/growpart /dev/sda 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/sda4, nothing to do
INFO Starting network time synchronization in CodeReady Containers VM
DEBU Running SSH command: sudo timedatectl set-ntp on
DEBU SSH command results: err: <nil>, output:
INFO Will run as admin: modifying hosts file
INFO Will run as admin: modifying hosts file
DEBU Creating /etc/resolv.conf with permissions 0644 in the CRC VM
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU retry loop: attempt 0
DEBU Running SSH command: host -R 3 foo.apps-crc.testing
DEBU SSH command results: err: <nil>, output: foo.apps-crc.testing has address <IP_ADDRESS>
INFO Check internal and public DNS query...
DEBU Running SSH command: host -R 3 quay.io
DEBU SSH command results: err: <nil>, output: quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
INFO Check DNS query from host...
WARN Failed to query DNS from host: lookup api.crc.testing: no such host
DEBU Running SSH command: test -e /var/lib/kubelet/config.json
DEBU SSH command results: err: Process exited with status 1, output:
INFO Adding user's pull secret to instance disk...
DEBU Creating /var/lib/kubelet/config.json with permissions 0600 in the CRC VM
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
INFO Verifying validity of the kubelet certificates...
DEBU Running SSH command: date --date="$(sudo openssl x509 -in /var/lib/kubelet/pki/kubelet-client-current.pem -noout -enddate | cut -d= -f 2)" --iso-8601=seconds
DEBU SSH command results: err: <nil>, output: 2021-06-20T05:14:22+00:00
DEBU Running SSH command: date --date="$(sudo openssl x509 -in /var/lib/kubelet/pki/kubelet-server-current.pem -noout -enddate | cut -d= -f 2)" --iso-8601=seconds
DEBU SSH command results: err: <nil>, output: 2021-06-20T05:15:11+00:00
DEBU Running SSH command: date --date="$(sudo openssl x509 -in /etc/kubernetes/static-pod-resources/kube-apiserver-certs/configmaps/aggregator-client-ca/ca-bundle.crt -noout -enddate | cut -d= -f 2)" --iso-8601=seconds
DEBU SSH command results: err: <nil>, output: 2021-06-20T05:15:51+00:00
INFO Starting OpenShift kubelet service
DEBU Running SSH command: sudo systemctl daemon-reload
DEBU SSH command results: err: <nil>, output:
DEBU Running SSH command: sudo systemctl start kubelet
DEBU SSH command results: err: <nil>, output:
INFO Waiting for kube-apiserver availability... [takes around 2min]
DEBU retry loop: attempt 0
DEBU Running SSH command: timeout 5s oc get nodes --context admin --cluster crc --kubeconfig /opt/kubeconfig
err     : Process exited with status 1\n - sleeping 1s
DEBU retry loop: attempt 1
DEBU Running SSH command: timeout 5s oc get nodes --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: Process exited with status 1, output:
DEBU The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?

DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
INFO Generating new password for the kubeadmin user
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU Waiting for availability of resource type 'clusterversion'
DEBU retry loop: attempt 0
DEBU Running SSH command: timeout 5s oc get clusterversion --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: <nil>, output: NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.11    True        False         5d6h    Cluster version is 4.7.11
DEBU NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.11    True        False         5d6h    Cluster version is 4.7.11
DEBU Running SSH command: timeout 30s oc get clusterversion version -o jsonpath="{['spec']['clusterID']}" --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: <nil>, output:
INFO Updating cluster ID...
DEBU Running SSH command: timeout 30s oc patch clusterversion version -p '{"spec":{"clusterID":"51cb2670-b92e-4970-8374-5572ad486053"}}' --type merge --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: <nil>, output: clusterversion.config.openshift.io/version patched
DEBU Creating /tmp/routes-controller.json with permissions 0444 in the CRC VM
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU Running SSH command: timeout 30s oc apply -f /tmp/routes-controller.json --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: <nil>, output: pod/routes-controller created
INFO Starting OpenShift cluster... [waiting for the cluster to stabilize]
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU authentication operator is still progressing, Reason: OAuthVersionDeployment_ReplicasNotAvailable::OAuthVersionRoute_WaitingForRoute
DEBU authentication operator not available, Reason: APIServerDeployment_NoPod::APIServices_PreconditionNotReady::OAuthRouteCheckEndpointAccessibleController_EndpointUnavailable::OAuthServerDeployment_NoReplicas::OAuthServiceCheckEndpointAccessibleController_EndpointUnavailable::OAuthVersionRoute_RequestFailed
DEBU dns operator not available, Reason: DNSUnavailable
DEBU dns operator is still progressing, Reason: Reconciling
DEBU dns operator is degraded, Reason: DNSDegraded
DEBU image-registry operator not available, Reason: NoReplicasAvailable
DEBU image-registry operator is still progressing, Reason: DeploymentNotCompleted
DEBU image-registry operator is degraded, Reason: Unavailable
DEBU network operator is still progressing, Reason: Deploying
DEBU node-tuning operator not available, Reason: TunedUnavailable
DEBU openshift-apiserver operator not available, Reason: APIServerDeployment_NoPod::APIServices_PreconditionNotReady
DEBU openshift-controller-manager operator is still progressing, Reason:
DEBU openshift-controller-manager operator not available, Reason:
DEBU operator-lifecycle-manager-packageserver operator not available, Reason:
DEBU operator-lifecycle-manager-packageserver operator is still progressing, Reason:
DEBU service-ca operator is still progressing, Reason: _ManagedDeploymentsAvailable
INFO 7 operators are progressing: authentication, dns, image-registry, network, openshift-controller-manager, ...
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU authentication operator is still progressing, Reason: OAuthVersionDeployment_ReplicasNotAvailable::OAuthVersionRoute_WaitingForRoute
DEBU authentication operator not available, Reason: APIServerDeployment_NoPod::APIServices_PreconditionNotReady::OAuthRouteCheckEndpointAccessibleController_EndpointUnavailable::OAuthServerDeployment_NoReplicas::OAuthServiceCheckEndpointAccessibleController_EndpointUnavailable::OAuthVersionRoute_RequestFailed
DEBU image-registry operator not available, Reason: NoReplicasAvailable
DEBU image-registry operator is still progressing, Reason: DeploymentNotCompleted
DEBU image-registry operator is degraded, Reason: Unavailable
DEBU network operator is degraded, Reason: RolloutHung
DEBU network operator is still progressing, Reason: Deploying
DEBU openshift-apiserver operator not available, Reason: APIServerDeployment_NoPod::APIServices_PreconditionNotReady
DEBU openshift-controller-manager operator is still progressing, Reason:
DEBU openshift-controller-manager operator not available, Reason:
DEBU service-ca operator is still progressing, Reason: _ManagedDeploymentsAvailable
INFO 5 operators are progressing: authentication, image-registry, network, openshift-controller-manager, service-ca
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU authentication operator is still progressing, Reason: OAuthVersionDeployment_ReplicasNotAvailable::OAuthVersionRoute_WaitingForRoute
DEBU authentication operator not available, Reason: APIServerDeployment_NoPod::APIServices_PreconditionNotReady::OAuthRouteCheckEndpointAccessibleController_EndpointUnavailable::OAuthServerDeployment_NoReplicas::OAuthServiceCheckEndpointAccessibleController_EndpointUnavailable::OAuthVersionRoute_RequestFailed
DEBU image-registry operator not available, Reason: NoReplicasAvailable
DEBU image-registry operator is still progressing, Reason: DeploymentNotCompleted
DEBU image-registry operator is degraded, Reason: Unavailable
DEBU openshift-apiserver operator not available, Reason: APIServerDeployment_NoPod::APIServices_PreconditionNotReady
DEBU openshift-controller-manager operator is still progressing, Reason:
DEBU openshift-controller-manager operator not available, Reason:
DEBU service-ca operator is still progressing, Reason: _ManagedDeploymentsAvailable
INFO 4 operators are progressing: authentication, image-registry, openshift-controller-manager, service-ca
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
DEBU authentication operator is still progressing, Reason: OAuthServerDeployment_ReplicasNotReady::OAuthVersionDeployment_ReplicasNotReady
INFO Operator authentication is progressing
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
INFO All operators are available. Ensuring stability...
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
INFO Operators are stable (2/3)...
DEBU Running SSH command: <hidden>
DEBU SSH command succeeded
INFO Operators are stable (3/3)...
DEBU Cluster took 3m2.0910812s to stabilize
INFO Adding crc-admin and crc-developer contexts to kubeconfig...
ERRO Cannot update kubeconfig: Head "https://oauth-openshift.apps-crc.testing": dial tcp: lookup oauth-openshift.apps-crc.testing: no such host
Started the OpenShift cluster.

The server is accessible via web console at:
  https://console-openshift-console.apps-crc.testing

Log in as administrator:
  Username: kubeadmin
  Password: 6zhBa-MKaY5-xNMjw-qDCM8

Log in as user:
  Username: developer
  Password: developer

Use the 'oc' command line interface:
  PS> & crc oc-env | Invoke-Expression
  PS> oc login -u developer https://api.crc.testing:6443

Does the Hyper-V virtual switch pref-lights make sense when using network mode user?

Does the Hyper-V virtual switch pref-lights make sense when using network mode user?

No it is not required.
What do you have in the hosts file ? (C:\Windows\System32\drivers\etc\hosts)

empty

In the log I can see:
INFO Will run as admin: modifying hosts file
INFO Will run as admin: modifying hosts file

Did you see a UAC prompt and said no ? or maybe because it is CI you don't see the prompt and it assumes no.

I ran that manually not from CI, machine has disabled UAC

@adrianriobo Can you verify that this is only happening when using crc installed using the msi? i hit this issue only when using the msi without using the a build from git or CI works without any issue

There was a leaking file descriptor for the hosts file. I think it prevented the file to be reloaded by the system.
I opened https://github.com/goodhosts/hostsfile/pull/19 and it works fine for me now.

Still having the issue :( i built crc-admin-helper-windows.exe from this PR https://github.com/code-ready/admin-helper/pull/20 and replaced it in Program Files\CodeReady Containers folder before starting but the hosts file was not modified

With MSI, the admin-helper binary PATH contains space: C:\Program Files\CodeReady Containers\admin-helper.exe
The Powershell command needs to be changed to:
& 'C:\Program Files\CodeReady Containers\admin-helper.exe'

I also found a serious bug in powershell.ExecuteAsAdmin. The exit code was not checked so the preflight could say OK but fail in the background...
https://github.com/code-ready/crc/pull/2008/commits/fba30e7c141f1709f671ba501eff74bc5e234d3c
Please give a try to this PR :)

The Powershell command needs to be changed to:
& 'C:\Program Files\CodeReady Containers\admin-helper.exe'

& 'C:\Program Files\CodeReady Containers\crc-admin-helper.exe'

PR tested now it adds the record on the hosts file, notice logout required after setup groups otherwise get an error during the start:
INFO Checking if admin-helper daemon is installed
DEBU Get "http://unix/version": open \\.\pipe\crc-admin-helper: Access is denied.
WARN Preflight checks failed during `crc start`, please try to run `crc setup` first in case you haven't done so yet
Get "http://unix/version": open \\.\pipe\crc-admin-helper: Access is denied.

logout/login message has been added. Closing this issue. @anjannath has a PR for moving this to the installer directly.


Cancel 'build_filesystem' task if build has been canceled

Coverage increased (+0.02%) to 89.528% when pulling 9252a5bf3c0a01b0bafe9300d94170dc1928d1e1 on vrutkovs:cancel-add-filesystem into d698c026c7426112ecbffb2c4145ef4ff5a691e0 on projectatomic:master.

Coverage increased (+0.02%) to 89.528% when pulling 9a6399a0811f99d87bc69934dbf920769adecc2f on vrutkovs:cancel-add-filesystem into d698c026c7426112ecbffb2c4145ef4ff5a691e0 on projectatomic:master.

Coverage increased (+0.02%) to 89.776% when pulling c84f409b8c8c89e0f96e528c35a7dff5a7ac8fca on vrutkovs:cancel-add-filesystem into c69e89fbf415a73b49fc0c028404dbe5e80697cf on projectatomic:master.

Coverage increased (+0.02%) to 89.776% when pulling c84f409b8c8c89e0f96e528c35a7dff5a7ac8fca on vrutkovs:cancel-add-filesystem into c69e89fbf415a73b49fc0c028404dbe5e80697cf on projectatomic:master.


Can't use activity outputs in mappings

I'm trying to use the new model and I'm not able to use a task output as an input of another task. I get an error failed to resolve activity attr: 'message', not found in flow.
What I'm doing is:

Using the app provided below create a new flogo project: flogo create -flv github.com/TIBCOSoftware/flogo-contrib/activity/log@master,github.com/TIBCOSoftware/flogo-lib/app/resource@master -f "map-test.json" map-test
Inside created map-test directory I run flogo build
Insided map-test/bin run  `FLOGO_LOG_LEVEL=DEBUG  ./map-test``
GET request to localhost:8585/test

This is the app I'm using:
{
  "name": "map-test-2",
  "type": "flogo:app",
  "version": "0.0.1",
  "appModel": "1.0.0",
  "triggers": [
    {
      "id": "receive_http_message",
      "ref": "github.com/TIBCOSoftware/flogo-contrib/trigger/rest",
      "name": "Receive HTTP Message",
      "description": "Simple REST Trigger",
      "settings": {
        "port": "8585"
      },
      "handlers": [
        {
          "action": {
            "ref": "github.com/TIBCOSoftware/flogo-contrib/action/flow",
            "data": {
              "flowURI": "res://flow:simple_map"
            }
          },
          "settings": {
            "method": "GET",
            "path": "/test"
          }
        }
      ]
    }
  ],
  "resources": [
    {
      "id": "flow:simple_map",
      "data": {
        "name": "Simple map",
        "tasks": [
          {
            "id": "log_2",
            "activity": {
              "ref": "github.com/TIBCOSoftware/flogo-contrib/activity/log",
              "input": {
                "message": "From log 2",
                "flowInfo": "false",
                "addToFlow": "true"
              }
            }
          },
          {
            "id": "log_3",
            "activity": {
              "ref": "github.com/TIBCOSoftware/flogo-contrib/activity/log",
              "input": {
                "message": "",
                "flowInfo": "true",
                "addToFlow": "false"
              },
              "mappings": {
                "input": [
                  {
                    "type": "assign",
                    "value": "$activity[log_2].message",
                    "mapTo": "message"
                  }
                ]
              }
            }
          }
        ],
        "links": [
          {
            "from": "log_2",
            "to": "log_3"
          }
        ]
      }
    }
  ]
}

These are the logs:
2018-03-05 18:39:21.295 DEBUG  [engine] - Registering activity: 'github.com/TIBCOSoftware/flogo-contrib/activity/log'
2018-03-05 18:39:21.295 INFO   [engine] - Engine: Starting...
2018-03-05 18:39:21.296 WARN   [engine] - Unsupported link type '%!s(MISSING)', using default link
2018-03-05 18:39:21.296 DEBUG  [trigger-tibco-rest] - Registering handler [GET: /test]
2018-03-05 18:39:21.296 DEBUG  [trigger-tibco-rest] - Configured on port 8585
2018-03-05 18:39:21.296 DEBUG  [engine] - ActionRunner Service: Starting...
2018-03-05 18:39:21.296 DEBUG  [engine] - Starting worker with id '1'
2018-03-05 18:39:21.296 DEBUG  [engine] - Starting worker with id '2'
2018-03-05 18:39:21.296 DEBUG  [engine] - Starting worker with id '3'
2018-03-05 18:39:21.296 DEBUG  [engine] - Starting worker with id '4'
2018-03-05 18:39:21.296 DEBUG  [engine] - Starting worker with id '5'
2018-03-05 18:39:21.296 DEBUG  [engine] - ActionRunner Service: Started
2018-03-05 18:39:21.296 INFO   [engine] - Engine: Starting Services...
2018-03-05 18:39:21.296 INFO   [engine] - Engine: Started Services
2018-03-05 18:39:21.296 INFO   [engine] - Engine: Starting Triggers...
2018-03-05 18:39:21.296 DEBUG  [engine] - Trigger [ receive_http_message ]: Starting...
2018-03-05 18:39:21.297 DEBUG  [engine] - Trigger [ receive_http_message ]: Started
2018-03-05 18:39:21.297 INFO   [engine] - Trigger [ receive_http_message ]: Started
2018-03-05 18:39:21.297 INFO   [engine] - Engine: Triggers Started
2018-03-05 18:39:21.297 INFO   [engine] - Engine: Started
2018-03-05 18:39:28.729 INFO   [trigger-tibco-rest] - Received request for id 'receive_http_message'
2018-03-05 18:39:28.729 DEBUG  [engine] - iomd (*data.IOMetadata)(nil)
2018-03-05 18:39:28.729 DEBUG  [engine] - No mapping specified, adding trigger outputs as inputs to action
2018-03-05 18:39:28.729 DEBUG  [engine] -  Attr: params, Type: params, Value: map[]
2018-03-05 18:39:28.729 DEBUG  [engine] -  Attr: pathParams, Type: params, Value: map[]
2018-03-05 18:39:28.729 DEBUG  [engine] -  Attr: queryParams, Type: params, Value: map[]
2018-03-05 18:39:28.729 DEBUG  [engine] -  Attr: header, Type: params, Value: map[Content-Type:application/json Cache-Control:no-cache Postman-Token:fbe0207e-4272-443f-aa20-54ba45355031 User-Agent:PostmanRuntime/7.1.1 Accept:*/* Accept-Encoding:gzip, deflate Connection:keep-alive]
2018-03-05 18:39:28.729 DEBUG  [engine] -  Attr: content, Type: object, Value: map[]
2018-03-05 18:39:28.729 DEBUG  [engine] - Action 'github.com/TIBCOSoftware/flogo-contrib/action/flow' queued
2018-03-05 18:39:28.729 DEBUG  [engine] - Received work request
2018-03-05 18:39:28.729 DEBUG  [engine] - Dispatching work request
2018-03-05 18:39:28.729 DEBUG  [engine] - Action-Worker-1: Received Request
2018-03-05 18:39:28.729 INFO   [engine] - Running FlowAction for URI: 'res://flow:simple_map'
2018-03-05 18:39:28.729 DEBUG  [engine] - Creating Flow Instance: ec82090a55f7069b6ba5f7a5ac1d6419
2018-03-05 18:39:28.729 DEBUG  [engine] - Executing Flow Instance: ec82090a55f7069b6ba5f7a5ac1d6419
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Enter Task 'log_2'
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_2' Ready
2018-03-05 18:39:28.729 DEBUG  [engine] - Scheduling task 'log_2'
2018-03-05 18:39:28.729 DEBUG  [engine] - Step: 1
2018-03-05 18:39:28.729 DEBUG  [engine] - Retrieved item from Flow Instance work queue
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Eval Task 'log_2'
2018-03-05 18:39:28.729 INFO   [activity-flogo-log] - From log 2
2018-03-05 18:39:28.729 DEBUG  [engine] - SET OUTPUT: message = From log 2

2018-03-05 18:39:28.729 DEBUG  [engine] - SetAttr: message = From log 2
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_2' is done
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_2' has 1 outgoing links
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_2': Following Link  to task 'log_3'
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Enter Task 'log_3'
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_3' has 1 incoming Links
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_3': Link from Task 'log_2' has status 'true'
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Task 'log_3' Ready
2018-03-05 18:39:28.729 DEBUG  [engine] - Scheduling task 'log_3'
2018-03-05 18:39:28.729 DEBUG  [engine] - Step: 2
2018-03-05 18:39:28.729 DEBUG  [engine] - Retrieved item from Flow Instance work queue
2018-03-05 18:39:28.729 DEBUG  [flowmodel-simple] - Eval Task 'log_3'
2018-03-05 18:39:28.729 DEBUG  [engine] - Applying InputMapper
2018-03-05 18:39:28.729 DEBUG  [engine] - Action-Worker-1: Received result: &runner.ActionResult{results:map[string]*data.Attribute{"id":(*data.Attribute)(0xc4201849c0)}, err:error(nil)}
2018-03-05 18:39:28.729 DEBUG  [basic-mapper] - Updated mapping def &{Type:1 Value:$activity[log_2].message MapTo:message}
2018-03-05 18:39:28.729 DEBUG  [engine] - Action 'github.com/TIBCOSoftware/flogo-contrib/action/flow' returned
2018-03-05 18:39:28.729 ERROR  [engine] - Execution failed for Activity[] in Flow[Simple map] - failed to resolve activity attr: 'message', not found in flow
2018-03-05 18:39:28.729 ERROR  [flowmodel-simple] - Error evaluating activity 'log_3'[github.com/TIBCOSoftware/flogo-contrib/activity/log] - failed to resolve activity attr: 'message', not found in flow
2018-03-05 18:39:28.729 DEBUG  [engine] - AddAttr - name: {Error.activity}, type: string, value:
2018-03-05 18:39:28.729 DEBUG  [engine] - AddAttr - name: {Error.message}, type: string, value:failed to resolve activity attr: 'message', not found in flow
2018-03-05 18:39:28.729 DEBUG  [engine] - AddAttr - name: {Error.type}, type: string, value:mapper
2018-03-05 18:39:28.729 DEBUG  [engine] - Done Executing flow instance [ec82090a55f7069b6ba5f7a5ac1d6419] - Status: 700
2018-03-05 18:39:28.729 INFO   [engine] - Flow instance [ec82090a55f7069b6ba5f7a5ac1d6419] Failed
2018-03-05 18:39:28.729 DEBUG  [engine] - Action-Worker-1: Completed Request

It works with the legacy model:
{
  "name": "map-test-legacy-7",
  "type": "flogo:app",
  "version": "0.0.1",
  "description": "",
  "triggers": [
    {
      "name": "Receive HTTP Message",
      "ref": "github.com/TIBCOSoftware/flogo-contrib/trigger/rest",
      "description": "Simple REST Trigger",
      "settings": {
        "port": "8585"
      },
      "id": "receive_http_message",
      "handlers": [
        {
          "settings": {
            "method": "GET",
            "path": "/test"
          },
          "actionId": "simple_map",
          "actionMappings": {
            "input": [],
            "output": []
          }
        }
      ]
    }
  ],
  "actions": [
    {
      "id": "simple_map",
      "metadata": {
        "input": [],
        "output": []
      },
      "description": "",
      "data": {
        "flow": {
          "name": "Simple map",
          "type": 1,
          "attributes": [],
          "rootTask": {
            "id": "root",
            "type": 1,
            "tasks": [
              {
                "id": "log_2",
                "name": "Log 2",
                "description": "Simple Log Activity",
                "type": 1,
                "activityType": "github-com-tibco-software-flogo-contrib-activity-log",
                "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log",
                "attributes": [
                  {
                    "name": "message",
                    "value": "From log 2",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "name": "flowInfo",
                    "value": "false",
                    "required": false,
                    "type": "boolean"
                  },
                  {
                    "name": "addToFlow",
                    "value": "true",
                    "required": false,
                    "type": "boolean"
                  }
                ]
              },
              {
                "id": "log_3",
                "name": "Log 3",
                "description": "Simple Log Activity",
                "type": 1,
                "activityType": "github-com-tibco-software-flogo-contrib-activity-log",
                "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log",
                "attributes": [
                  {
                    "name": "message",
                    "value": "",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "name": "flowInfo",
                    "value": "true",
                    "required": false,
                    "type": "boolean"
                  },
                  {
                    "name": "addToFlow",
                    "value": "true",
                    "required": false,
                    "type": "boolean"
                  }
                ],
                "inputMappings": [
                  {
                    "type": 1,
                    "value": "$activity[log_2].message",
                    "mapTo": "message"
                  }
                ]
              }
            ],
            "links": [
              {
                "id": 1,
                "from": "log_2",
                "to": "log_3",
                "type": 0
              }
            ],
            "attributes": []
          }
        }
      }
    }
  ]
}

2018-03-05 18:52:29.341 DEBUG  [engine] - Registering activity: 'github.com/TIBCOSoftware/flogo-contrib/activity/log'
2018-03-05 18:52:29.342 INFO   [engine] - Engine: Starting...
2018-03-05 18:52:29.343 DEBUG  [trigger-tibco-rest] - Registering handler [GET: /test]
2018-03-05 18:52:29.343 DEBUG  [trigger-tibco-rest] - Configured on port 8585
2018-03-05 18:52:29.343 DEBUG  [engine] - ActionRunner Service: Starting...
2018-03-05 18:52:29.343 DEBUG  [engine] - Starting worker with id '1'
2018-03-05 18:52:29.343 DEBUG  [engine] - Starting worker with id '2'
2018-03-05 18:52:29.343 DEBUG  [engine] - Starting worker with id '3'
2018-03-05 18:52:29.343 DEBUG  [engine] - Starting worker with id '4'
2018-03-05 18:52:29.343 DEBUG  [engine] - Starting worker with id '5'
2018-03-05 18:52:29.343 DEBUG  [engine] - ActionRunner Service: Started
2018-03-05 18:52:29.343 INFO   [engine] - Engine: Starting Services...
2018-03-05 18:52:29.343 INFO   [engine] - Engine: Started Services
2018-03-05 18:52:29.343 INFO   [engine] - Engine: Starting Triggers...
2018-03-05 18:52:29.343 DEBUG  [engine] - Trigger [ receive_http_message ]: Starting...
2018-03-05 18:52:29.344 DEBUG  [engine] - Trigger [ receive_http_message ]: Started
2018-03-05 18:52:29.344 INFO   [engine] - Trigger [ receive_http_message ]: Started
2018-03-05 18:52:29.344 INFO   [engine] - Engine: Triggers Started
2018-03-05 18:52:29.344 INFO   [engine] - Engine: Started
2018-03-05 18:52:37.132 INFO   [trigger-tibco-rest] - Received request for id 'receive_http_message'
2018-03-05 18:52:37.132 DEBUG  [engine] - iomd &data.IOMetadata{Input:map[string]*data.Attribute{}, Output:map[string]*data.Attribute{}}
2018-03-05 18:52:37.132 DEBUG  [engine] - No mapping specified, adding trigger outputs as inputs to action
2018-03-05 18:52:37.132 DEBUG  [engine] -  Attr: queryParams, Type: params, Value: map[]
2018-03-05 18:52:37.133 DEBUG  [engine] -  Attr: header, Type: params, Value: map[Accept:*/* Accept-Encoding:gzip, deflate Connection:keep-alive Content-Type:application/json Cache-Control:no-cache Postman-Token:ffea84c3-89a9-4eaa-9f3d-5cdd138bbf22 User-Agent:PostmanRuntime/7.1.1]
2018-03-05 18:52:37.133 DEBUG  [engine] -  Attr: content, Type: object, Value: map[]
2018-03-05 18:52:37.133 DEBUG  [engine] -  Attr: params, Type: params, Value: map[]
2018-03-05 18:52:37.133 DEBUG  [engine] -  Attr: pathParams, Type: params, Value: map[]
2018-03-05 18:52:37.133 DEBUG  [engine] - Action 'github.com/TIBCOSoftware/flogo-contrib/action/flow' queued
2018-03-05 18:52:37.133 DEBUG  [engine] - Received work request
2018-03-05 18:52:37.133 DEBUG  [engine] - Dispatching work request
2018-03-05 18:52:37.133 DEBUG  [engine] - Action-Worker-1: Received Request
2018-03-05 18:52:37.133 INFO   [engine] - Running FlowAction for URI: 'res://flow:342811347'
2018-03-05 18:52:37.133 DEBUG  [engine] - Creating Flow Instance: e29f9d5b2e85429d5f66ef4bc1f1d5a7
2018-03-05 18:52:37.133 DEBUG  [engine] - Executing Flow Instance: e29f9d5b2e85429d5f66ef4bc1f1d5a7
2018-03-05 18:52:37.133 DEBUG  [flowmodel-simple] - Enter Task 'log_2'
2018-03-05 18:52:37.133 DEBUG  [flowmodel-simple] - Task 'log_2' Ready
2018-03-05 18:52:37.133 DEBUG  [engine] - Scheduling task 'log_2'
2018-03-05 18:52:37.133 DEBUG  [engine] - Step: 1
2018-03-05 18:52:37.133 DEBUG  [engine] - Retrieved item from Flow Instance work queue
2018-03-05 18:52:37.133 DEBUG  [flowmodel-simple] - Eval Task 'log_2'
2018-03-05 18:52:37.134 INFO   [activity-flogo-log] - From log 2
2018-03-05 18:52:37.134 DEBUG  [engine] - SET OUTPUT: message = From log 2

2018-03-05 18:52:37.134 DEBUG  [engine] - SetAttr: message = From log 2
2018-03-05 18:52:37.134 DEBUG  [engine] - Applying OutputMapper
2018-03-05 18:52:37.134 DEBUG  [engine] - Action-Worker-1: Received result: &runner.ActionResult{results:map[string]*data.Attribute{"id":(*data.Attribute)(0xc4202081e0)}, err:error(nil)}
2018-03-05 18:52:37.134 DEBUG  [engine] - Action 'github.com/TIBCOSoftware/flogo-contrib/action/flow' returned
2018-03-05 18:52:37.134 DEBUG  [engine] - AddAttr - name: _A.log_2.message, type: string, value:From log 2
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_2' is done
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_2' has 1 outgoing links
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_2': Following Link  to task 'log_3'
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Enter Task 'log_3'
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_3' has 1 incoming Links
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_3': Link from Task 'log_2' has status 'true'
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_3' Ready
2018-03-05 18:52:37.134 DEBUG  [engine] - Scheduling task 'log_3'
2018-03-05 18:52:37.134 DEBUG  [engine] - Step: 2
2018-03-05 18:52:37.134 DEBUG  [engine] - Retrieved item from Flow Instance work queue
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Eval Task 'log_3'
2018-03-05 18:52:37.134 DEBUG  [engine] - Applying InputMapper
2018-03-05 18:52:37.134 DEBUG  [basic-mapper] - Updated mapping def &{Type:1 Value:$activity[log_2].message MapTo:message}
2018-03-05 18:52:37.134 DEBUG  [engine] - SetAttr: message = From log 2
2018-03-05 18:52:37.134 INFO   [activity-flogo-log] - 'From log 2' - FlowInstanceID [e29f9d5b2e85429d5f66ef4bc1f1d5a7], Flow [Simple map], Task [Log 3]
2018-03-05 18:52:37.134 DEBUG  [engine] - SET OUTPUT: message = 'From log 2' - FlowInstanceID [e29f9d5b2e85429d5f66ef4bc1f1d5a7], Flow [Simple map], Task [Log 3]

2018-03-05 18:52:37.134 DEBUG  [engine] - SetAttr: message = 'From log 2' - FlowInstanceID [e29f9d5b2e85429d5f66ef4bc1f1d5a7], Flow [Simple map], Task [Log 3]
2018-03-05 18:52:37.134 DEBUG  [engine] - Applying OutputMapper
2018-03-05 18:52:37.134 DEBUG  [engine] - AddAttr - name: _A.log_3.message, type: string, value:'From log 2' - FlowInstanceID [e29f9d5b2e85429d5f66ef4bc1f1d5a7], Flow [Simple map], Task [Log 3]
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Task 'log_3' is done
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Notifying flow that end task 'log_3' is done
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Checking if all tasks done or skipped
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - All tasks done or skipped
2018-03-05 18:52:37.134 DEBUG  [flowmodel-simple] - Flow Done
2018-03-05 18:52:37.134 DEBUG  [engine] - Done Executing flow instance [e29f9d5b2e85429d5f66ef4bc1f1d5a7] - Status: 500
2018-03-05 18:52:37.134 INFO   [engine] - Flow instance [e29f9d5b2e85429d5f66ef4bc1f1d5a7] Completed Successfully
2018-03-05 18:52:37.134 DEBUG  [engine] - Action-Worker-1: Received result: &runner.ActionResult{results:map[string]*data.Attribute(nil), err:error(nil)}
2018-03-05 18:52:37.134 DEBUG  [engine] - Action-Worker-1: Completed Request

@fcastill is this still an issue since @lixingwang merged in TIBCOSoftware/flogo-contrib#218?

Not an issue anymore.


(WIP) Partial fix for getting feature names out

I think this is a partial fix for this opened issue:
https://github.com/scikit-learn-contrib/category_encoders/issues/395
It remains to check the behaviour of other estimators that are not ONE_TO_ONE.
Please, let me know if you like the work in progress and I will try to continue.

Perfect. Thanks!


added feature

Summary by CodeRabbit

New Features

Introduced automated workflows for assigning reviewers and issues, and for automating various GitHub actions.
Added navigation (Nav) and footer (Footer) components across multiple generator components for improved user interface.
Enhanced generator components with new functionalities such as email confirmation, advanced options, and improved layout and tooltips.
Implemented user authentication and sign-in/up pages using Clerk for enhanced security and user experience.
Updated contact page with a structured form and state management for user interactions.

Bug Fixes

Adjusted grid item sizes and tooltips across generator components for a more consistent and user-friendly layout.

Documentation

Added and updated documentation for new functionalities and components, ensuring users are well-informed of the changes.

Style

Introduced and updated styles across the application for a more cohesive and modern appearance.

Chores

Added package-lock.json to .gitignore to maintain repository cleanliness.

Refactor

Significant refactoring in the Footer component for improved maintainability and performance.


Reduce peak memory occupation during graph construction

Profiling the peak memory occupation, to lower the minimum system requirements.
e.g., one reports a graph can be run in 4/8 machines in Gluon, while failed on GraphScope with double nodes.

See also: https://github.com/alibaba/GraphScope/issues/2127
Already working in progress.


Updated summary

@TravisCragg-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

testing PR, closing


OOM when allocating tensor with shape[4,32,1024,1024] where is the 32 coming from?

So I have access to a V100 on which I successfully trained on a dataset of 512x512 images. However, when I moved up to 1024x1024 I had to reduce the batch size to 2 in order to avoid OOM errors. This resulted in monochromatic looking images. I'm wondering where the 32 in:
(0) Resource exhausted: OOM when allocating tensor with shape[4,32,1024,1024] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
is coming from and if it can be reduced to 16 so that the batch size can be 4 which will hopefully result in colorful images.
Thank you for your help!

32 is the number of channels, determined from "fmap-base" and "fmap-max". E.g., you can reduce --fmap-base from the default 16384 to 8192 so that the 32 would become 16.


Adding CMake support

@jasonsandlin,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


fixed incorrect translation

Bloque de combustible -> Combustible en calzos

fixed incorrect translation
Merge branch 'nabeelio:dev' into dev (Check if this is from nabeelio/dev ---> to arv187/dev)
Make TOC only redeable


[CLOSED] Feed hw random into /dev/random to fill entropy pool

 Issue by zaolin
Thursday May 24, 2018 at 22:13 GMT
Originally opened as https://github.com/insomniacslk/systemboot/pull/19

Can be merged.

zaolin included the following code: https://github.com/insomniacslk/systemboot/pull/19/commits

 Comment by stickler-ci
Tuesday May 29, 2018 at 12:52 GMT

Could not review pull request. It may be too large, or contain no reviewable changes.

 Comment by insomniacslk
Wednesday May 30, 2018 at 14:06 GMT

This is a partial review as I will be back later in front of a computer, I will review the rest later.
I also agree with @Natolumin 's request to document and explain why this approach is desirable (and when)

 Comment by insomniacslk
Wednesday May 30, 2018 at 16:16 GMT

As you made me notice elsewhere, the behaviour is already explained :) sorry!

 Comment by insomniacslk
Thursday May 31, 2018 at 09:42 GMT

Thanks for catching this, I didn't realize this was going to run in a goroutine...

 Comment by insomniacslk
Tuesday Jun 12, 2018 at 20:59 GMT

Looks good! I'm merging this but also cc @Natolumin for an additional pair of eyes - if something important slipped away in this review we can get it fixed later


Renaming / Moving should return both files

As per issue title, I believe it would be good to modify the events to return both the current file as well as the new one.

If you split the path in the MOVE event on -> you get the old and new path.

@Ewan-GrandSlam, sorry for the late reply!
@felixbuenemann is correct as both paths are returned :)


EFS FileSystem Support Of Lifecycle Policies - Transition to Archive

What problem are you facing?

The AWS EFS provider does not allow you to configure archive lifecycle policies for EFS file systems.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-lifecyclepolicy.html

How could Official AWS Provider help solve your problem?

Update the existing EFS FileSystem to support this feature so we can easily transition EFS to Archive storage.
https://marketplace.upbound.io/providers/upbound/provider-aws-efs/v1.2.1/resources/efs.aws.upbound.io/FileSystem/v1beta1

Hi @jacob-kuder,
Could you give more information about what kind of support you would like and which fields you would like to be added? Are these fields available in the underlying terraform provider?

Hey @turkenf,
So, Terraform itself offers the transition to Archive functionality, shown here in their docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_file_system#lifecycle_policy-block
We are requesting similar functionality in the EFS provider...maybe something like transitionToArchive or similar. We'd like to see this added to the AWS EFS provider instead of through the Terraform provider.

Thank you for your quick response, @jacob-kuder. This field was introduced in a newer version (5.32.0) than the version (5.31.0) we currently use.
When we upgrade the underlying provider, the field will be available.


Further Explanation

Hello, I am very new to programing. I am looking to create a wireless microphone system that works over a WIFI network for live sound reinforcement. I have everything downloaded, I am just not sure how to install everything and what parameters have to be modified to get it up and running. I was wondering if you could help walk me through how to get started. Ideally I would eventually like the received audio to come out of my server's speakers live.
Thanks in advance, I know those are a lot of questions.
-Caleb

Hi Caleb,
This might be helpful for you:
https://youtu.be/5q5a5pee4ZQ
-Rmond


publish new version to npm with vulnerability 'fix' PR #1084

Any chance? so I can then get other npms that use handlebars to bump their version?

:+1:

:+1:

It seems that GitHub doesn't see issue references in the issue headers: #1084

Released in 4.0.0

ace. thanks.


Lwjgl3 backend's OpenAL audio on a dedicated thread

Synchronized access for the music add/remove/update methods
Moved dispose method in the dedicated thread (The MockAudio won't use natives that require disposal anyway)
Testers welcome!

There is currently an issue with Music.setPosition(), looking into it, help appreviated :)

I'm pretty sure, that this is not properly synchronized. You would probably have to synchronize all methods.

Tested with AudioDeviceTest and MusicTest, seems to be working. Sadly I don't have a complex sound usage in my engine yet, would definitely like some feedback from someone that hits it hard :)

I'm worried that we ask for trouble in the long run by doing synchronization like this. It would be a lot cleaner to let the public API write into some postMessage() style queue, and let the audio update thread take care of the execution.

@code-disaster If the multi-threaded render loop happens I'll implement your suggestion on top of that, unless Mario tackles it while looking into it (actually rendering and audio updates could just share the same thread, making this useless).
Anyway, I agree completely, that's how I'm handling Gdx.graphics.setCursor() calls from the APIs in my multi-threaded renderer implementation right now, far cleaner.

+1 @code-disaster
I would advise against merging this. This looks like potential source of problems and adds complexity when it could be simple. If you need multi-threaded audio support you could fork the libgdx audio API and roll your own.

Silly question here, but when is multithreaded audio needed or desirable?

@sreich it's one approach to avoid blocking audio updates in case the main thread blocks, e.g. what happens when you try to resize or move the application window (see #4419), or for example during screen transitions when you may have some heavy I/O work to do.

I'm definitely going to close this, since in the end it was not even the correct approach (though I tested it heavily with a LRU cache backing the sound and music banks, and I had zero problems even when the audio backend was concurrently fed multiple playbacks from multiple threads.
Anyway, this was all born from the necessity of having the winproc thread not interfere with the rest of the threads during window drag operations (on windows, and possibly on OSx under some circumstances, the winproc thread is completely frozen during the window drag and until you release it).
I started with the audio backend, then moved to the renderer (in the process losing multi-window rendering btw, just couldn't make it work), I made this pull request thinking it was a good stand-alone feature, and in part because someone left the "FIX THIS: MOVE TO SEPARATE THREAD" comment in the audio loop - or something like that-.
In the end I haven't used this, because I moved both the audio AND the renderer together in their own thread, effectively decoupling everything else from the winproc thread, using what I found in #4419 as implementation hint.
The reason I haven't posted that PR is because I ended up further customizing my backend (I don't use gradle for my project) to be able to switch arbitrary versions of LWJGL and plug LWJGL modules as I see fit, while wrapping them in handy Gdx.app.whatevermodule method calls.
Closing this PR, if you ever feel like you need something like this, consider instead using @code-disaster suggestion and provide a thread safe queue to push requests, while having the audio update loop (in whatever thread it lives) peek&poll it.


Show chart type dropdown on the left side panel

Description
Create a left side panel, where user can easily change the chart type.
Look & Feel

How to test
Check out this show-sensor-chart-type branch and then load a sensor page. You will see a Select chart dropdown just below the date-picker dev.

I have converted the chart type drowndown to dropup because the dropdown list was listed below the Select date.

You mean it was hidden by the date selector?
That usually can be fixed with the z-index. I'll test your variant later!

You mean it was hidden by the date selector?
That usually can be fixed with the z-index. I'll test your variant later!

yes, by the date selector.


Error API Error 502: The web server reported a bad gateway or gateway timeout error.

Hey guys I'm having some problems using the bot (it's great BTW).
I'm guessing this is somehow related to the DDOS protection of the site , maybe I'm wrong .
anyway anyone facing the same problem? or have any idea for solution?
i get this errors when the bot trying to get so info from bitfinex...
Error API Error 502: The web server reported a bad gateway or gateway timeout error. Requesting https://api.bitfinex.com/v1/history
Error HTTPSConnectionPool(host='api.bitfinex.com', port=443): Read timed out. (read timeout=30) Requesting https://api.bitfinex.com/v1/balances

Related to the DDOS... timeout,  you can increase the timeout in your config up to 90sec but it might not solve the issue as it is on Bitfinex side.

Tried that still not helping , this caused me to lose two loans till now..
anyone got any idea ? help please.

Now i'm experiencing also and mostly  API Error 429: { "error": "ERR_RATE_LIMIT" }.
anyone knows why is that? anyone have the same errors?

If you turn off the AccountStats plugin it will help, but if you need / want the account stats, then just let the bot run and it will eventually fix itself.
We're looking at a fix for this issue now.

@btclending @k0ni 429 are errors from the exchange saying you are sending too many API calls. This is normal and happens to everyone. It is a temporary ban. The bot is designed to sleep for a certain period and wait for the ban to lift and then start again. Checkout #632 and see if that helps; it did for me.


remove local schema generation

/azp help

This is what we call a comment... Plz ignore.

I think we should wait on this until we decide on and implement the mechanism for generating the embedded schema from the endpoint.  This PR, as is, would just make things more difficult with no benefit

I can see that perspective. Today we have to manually get dt-tasks-json-response.json from an endpoint, then cook it into local-schema.json. With this PR, we'll skip the cooking step. Instead, we'll manually get local-schema.json directly from an endpoint.
We would lose the ability to notice a non-tasks schema bug and regen trivially. I'll work on a plan - and a CI setup - for automating things before attempting to complete this PR.

ext install ms-azure-devops.azure-pipelines

@joscol we're hurting pretty badly not having the latest schema. I'm going to land this, and we'll figure out how to automate getting new versions shortly.


level=ERROR source=sched.go:388 msg="error loading llama server" error="llama runner process no longer running: -1 "

What is the issue?
Macbook Air M1
Run with Docker:
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
docker exec -it ollama ollama run codestral:22b
Error:

level=ERROR source=sched.go:388 msg="error loading llama server" error="llama runner process no longer running: -1 "
docker.log

OS
Docker
GPU
Other
CPU
Apple
Ollama version
0.1.48

Logs say memory.available="[7.3 GiB]" and memory.required.full="13.1 GiB" so I would guess that your hardware can't load the model.

This is a dup of #4955 where we don't currently detect that the first model we try to load wont fit in available system memory when running in CPU mode.   Once that's fixed, we'll give a better error message than crashing when we fail to allocate enough memory.  @popav4 you can increase the memory size in Docker for the container VM and then you'll be able to load this model.


feat: make text editor selections setter async in preparation for neovim

Checklist

[ ] I have added tests
[ ] I have updated the docs and cheatsheet
[ ] I have not broken the cheatsheet

I am making this small pr to be reviewed now. This is to make it easier to merge the neovim branch later.
all tests pass except one. I am not sure why though.
  7081 passing (5m)
  1 failing
  1) scope visualizer
       update:

      AssertionError: {"decorationRenderOptions":[],"decorationRanges":[{"decorationId":0,"ranges":[{"start":{"line":0,"character":0},"end":{"line":0,"character":3}}]},{"decorationId":0,"ranges":[{"start":{"line":0,"character":0},"end":{"line":0,"character":3}},{"start":{"line":0,"character":4},"end":{"line":0,"character":7}}]}],"disposedDecorationIds":[]}: expected { decorationRenderOptions: [], …(2) } to deeply equal { decorationRenderOptions: [], …(2) }
      + expected - actual

                   "character": 0
                   "line": 0
                 }
               }
      -      ]
      -    }
      -    {
      -      "decorationId": 0
      -      "ranges": [
               {
                 "end": {
      -            "character": 3
      -            "line": 0
      -          }
      -          "start": {
      -            "character": 0
      -            "line": 0
      -          }
      -        }
      -        {
      -          "end": {
                   "character": 7
                   "line": 0
                 }
                 "start": {

  	at checkAndResetFakes (c:\cursorless\packages\test-harness\dist\cursorless-vscode-e2e\src\suite\scopeVisualizer\scopeVisualizer.vscode.test.cjs:26081:10)
  	at c:\cursorless\packages\test-harness\dist\cursorless-vscode-e2e\src\suite\scopeVisualizer\scopeVisualizer.vscode.test.cjs:26521:5
  	at Generator.next (<anonymous>)
  	at fulfilled (c:\cursorless\packages\test-harness\dist\cursorless-vscode-e2e\src\suite\scopeVisualizer\scopeVisualizer.vscode.test.cjs:31:24)

Error: 1 tests failed.
	at c:\cursorless\packages\test-harness\src\runAllTests.ts:63:13
	at done (c:\cursorless\node_modules\.pnpm\mocha@10.2.0\node_modules\mocha\lib\mocha.js:1012:7)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {stack: 'Error: 1 tests failed.
	at c:\work\tools\voic…ions (node:internal/process/task_queues:95:5)', message: '1 tests failed.'}
Error: 1 tests failed.
	at c:\cursorless\packages\test-harness\dist\extensionTests.cjs:22584:15
	at done (c:\cursorless\packages\test-harness\dist\extensionTests.cjs:13936:11)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
rejected promise not handled within 1 second: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
stack trace: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
	at TalonSpokenFormsJsonReader.getSpokenFormEntries (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:52950:15)
	at async CustomSpokenForms.updateSpokenFormMaps (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:36759:26)
rejected promise not handled within 1 second: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
stack trace: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
	at TalonSpokenFormsJsonReader.getSpokenFormEntries (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:52950:15)
	at async CustomSpokenForms.updateSpokenFormMaps (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:36759:26)
rejected promise not handled within 1 second: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
stack trace: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
	at TalonSpokenFormsJsonReader.getSpokenFormEntries (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:52950:15)
	at async CustomSpokenForms.updateSpokenFormMaps (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:36759:26)
rejected promise not handled within 1 second: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
stack trace: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
	at TalonSpokenFormsJsonReader.getSpokenFormEntries (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:52950:15)
	at async CustomSpokenForms.updateSpokenFormMaps (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:36759:26)
rejected promise not handled within 1 second: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
stack trace: NeedsInitialTalonUpdateError: Custom spoken forms file not found at C:\Users\User\AppData\Local\Temp\d487ff8d01e84bbd5778491f17ac6f49\state.json. Using default spoken forms.
	at TalonSpokenFormsJsonReader.getSpokenFormEntries (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:52950:15)
	at async CustomSpokenForms.updateSpokenFormMaps (c:\cursorless\packages\cursorless-vscode\dist\extension.cjs:36759:26)

I have reverted the selections property as requested.
All tests are passing now (7082 passing (5m)). (I think my previous failure was just due to a local change I hadn't committed.)
This is ready for review. @pokey

After minor changes. Still  7082 passing (5m) as expected. Ready for review @pokey


formula: add support for generating click shell completions

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

Add support for generating Python Click completions.
Ref: https://click.palletsprojects.com/en/8.1.x/shell-completion/#enabling-completion

Click will output it when called with _{PROG_NAME}_COMPLETE set to {shell}_source. {PROG_NAME} is the executable name in uppercase with dashes replaced by underscores. The built-in shells are bash, zsh, and fish.

Note that Click doesn't support macOS Bash (needs 4.4+) and will fail if generation is attempted there.

Particular formulae that could use this:

hatch
pipenv
ykman

sqlite-utils should also be able to use this and maybe some others.
I locally tried with sqlite-utils adding
generate_completions_from_executable(bin/"sqlite-utils", shells: [:fish, :zsh], shell_parameter_format: :click)

Snippets of generated files:
❯ cat /opt/homebrew/opt/sqlite-utils/share/fish/vendor_completions.d/sqlite-utils.fish | head -5
function _sqlite_utils_completion;
    set -l response;

    for value in (env _SQLITE_UTILS_COMPLETE=fish_complete COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) sqlite-utils);
        set response $response $value;

❯ cat /opt/homebrew/opt/sqlite-utils/share/zsh/site-functions/_sqlite-utils | head -5
#compdef sqlite-utils

_sqlite_utils_completion() {
    local -a completions
    local -a completions_with_descriptions

Review period will end on 2022-11-16 at 20:51:46 UTC.

Particular formulae that could use this:

Do we have any formulae already generating these completions and/or users requesting this?

Do we have any formulae already generating these completions and/or users requesting this?

The 3 I listed are the ones already generating the completions.

Review period ended.

Should be ready for final review and merge.

Thanks @cho-m!


Python built-in module

Also see #214 and https://discord.com/channels/710932856251351111/710936824121655396/878023177572347936
Add a built-in module monty_python_snake_wow or some other name to be decided later that allows N programs to interface with the Python runtime.
Its behaviour is implementation defined.
Maybe it only needs to export a single type (monty_python_snake_wow.value) and a single function:
import monty_python_snake_wow

assert type monty_python_snake_wow.eval : str -> cmd[result[monty_python_snake_wow.value, monty_python_snake_wow.value]]

eval can (but doesn't have to) evaluate the given string in Python and return either an ok with the resulting value or an err with the Exception if an error was raised.

I'll name the module python


Update index.html

Pledging to the OpenTofu manifesto

Added in https://github.com/opentofu/manifesto/pull/1137