nixos/auto-cpufreq: init module

Motivation for this change
auto-cpufreq was added in #106985, this module provides a systemd service for the daemon.
Things done
add a basic module, fix the attribute name for auto-cpufreq, and include systemd service in the package.

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I just realized that the attribute name is wrong (autocpu-freq instead of auto-cpufreq). I'm just going to have to include that in this PR.

I just realized that the attribute name is wrong (autocpu-freq instead of auto-cpufreq). I'm just going to have to include that in this PR.

@Technical27 does the program itself takes care of log rotation, or does it depend on the distribution to do this?

@Technical27 does the program itself takes care of log rotation, or does it depend on the distribution to do this?

I just did some tests and the log file doesn't seem to clear on reboot or service stop. We could add some timer/service to do echo > /var/log/auto-cpufreq.log. The file needs to exist, but the echo would clear the file.

I just did some tests and the log file doesn't seem to clear on reboot or service stop. We could add some timer/service to do echo > /var/log/auto-cpufreq.log. The file needs to exist, but the echo would clear the file.

Strange... upstream doesn't handle this or provide a recommendation. It looks like arch doesn't explicitly handle this either :thinking:
Can you please create an issue upstream asking what distributions are supposed to do?

Strange... upstream doesn't handle this or provide a recommendation. It looks like arch doesn't explicitly handle this either :thinking:
Can you please create an issue upstream asking what distributions are supposed to do?

Since AdnanHodzic/auto-cpufreq#146 got merged, I need to update the package to 1.5.3. The log file clears itself now and the size doesn't go above 1KB.

Since AdnanHodzic/auto-cpufreq#146 got merged, I need to update the package to 1.5.3. The log file clears itself now and the size doesn't go above 1KB.

Exceptional work @Technical27! You really went above and beyond there. Thanks for fixing this upstream so every distro benefits now. Full bonus points awarded!

Exceptional work @Technical27! You really went above and beyond there. Thanks for fixing this upstream so every distro benefits now. Full bonus points awarded!

Alright, I rebased to master and updated the module.

Alright, I rebased to master and updated the module.

 Why not log to stdout and let journald take care of the rotation/deleting old entries?

 Why not log to stdout and let journald take care of the rotation/deleting old entries?

The problem was that auto-cpufreq prints a giant amount of info like current distro, kernel, cpu state and more. The file grows about 1-2KB every 5 seconds, and it got to 126MB on my laptop. letting journald take care of the log rotation would have clogged the logs with not very critical info. With my changes to upstream, the file clears itself after every refresh so the size remains at around 1-2KB max.

The problem was that auto-cpufreq prints a giant amount of info like current distro, kernel, cpu state and more. The file grows about 1-2KB every 5 seconds, and it got to 126MB on my laptop. letting journald take care of the log rotation would have clogged the logs with not very critical info. With my changes to upstream, the file clears itself after every refresh so the size remains at around 1-2KB max.

Gotcha. Thanks

Gotcha. Thanks

/marvin opt-in
/status needs_reviewer

/marvin opt-in
/status needs_reviewer

/status needs_reviewer

I'll give this a try.

/status needs_merger


If the session expires, it‘s not possible to recover the data

Consider data recovery options, such as logging to local storage.

Exactly 😭 hello I spent about 10 bucks in tokens and had it running for hours, with great feedback and output just to lose all the info by mistakingly refreshing the page

Wow! I'll prioritize and work on improvements 🫡

I ran the same prompt and got the same result and copy and paste it in notes… actually got better results but I would say this is the best auto GPT out there 💯

Enhancing the Project with Suggestions from Godmode-GPT

Hi @miurla,
First of all, I would like to commend your efforts on adding internet access and scraping capabilities to the project. Your hard work has been exceptional, and I'd like to offer some suggestions to further enhance your work.
I have based my observations on the advantages provided by the Godmode-GPT project (AutoGPT+BabyAGI combo):

Editable Initial Task List: Consider making the initial task list generated by GPT-4 editable or reprioritizable by humans, which will help BabyAGI narrow down to the actual problem more efficiently.

Global Context Maintenance: In the current implementation, once iterations or tasks are finished, the next human input is treated as a new task. If you could integrate the human input into the current context and continue within that context, more effective solutions may be discovered.

Local File Storage: To avoid experiences like @sacredgrove23's, consider storing intermediate results in text files within local storage. This would require a file explorer in the UI and compartmentalization of files among chats, which may be a complex task, but it would enhance the overall user experience.

Once again, fantastic work on the project, and I hope you find these suggestions helpful!

Hi @kvk-code,
Thank you for the very interesting and more specific suggestion! I appreciate your support for this project. I will incorporate it into the project roadmap.
Also, I have opened a separate issue, so please feel free to ask questions or share your opinions there if needed.
https://github.com/miurla/babyagi-ui/issues/14

@sacredgrove23
Thank you for your patience.
I have tried to save the file, so please give it a try.


Create Google Sheet for maintaining reservations

For visualization purposes and to avoid workflows involving GitHub actions, we could maintain the reservation of the pounds in a Google Sheet instead of a csv file.
Example:

locationID
isReserved
isReservedBy

A
FALSE

B
TRUE
AP

C
FALSE

D
TRUE
DO

This Google Sheet must be published online (as a csv) so that the JavaScript code which generates the leaflet can retrieve it every time somebody visits the page "Locations".

I recommend the D3 library to read the file. One of many blog posts: https://codedamn.com/news/javascript/how-to-read-csv-with-javascript

Note for myself: test using https://docs.google.com/spreadsheets/d/e/2PACX-1vQ0oBcuDB5uC9PaTOJU8MDKHR43nhY_X8Kwt9D3yVPB1ug6p9ioc0Ss4HUzx7cevkRV4ZEscqfAHiKi/pubhtml

@margotvermeylen: once you know who will be in charge of creating such Google Sheet, please set him/her/them as assignees.
The most important aspect of this sheet is that there will be a column where the pounds are uniquely identified. Such identifier should be the same used in the geojson file with the polygons, see #3.

We close this issue: reservations are maintained together with all the locations. See #210


kube-aws with Calico uses public ASN for Private use

It's using 64511, where the private range begins at 64512[1].
Value as seen in Etcd:
ip-10-139-4-50 ~ # etcdctl get /calico/bgp/v1/global/as_num
64511

From the RFC:
IANA has reserved, for Private Use, a contiguous block of 1023
Autonomous System numbers from the "16-bit Autonomous System Numbers"
registry, namely 64512 - 65534 inclusive.

1: https://tools.ietf.org/html/rfc6996

/cc @tomdee

Oh, you know: it looks like this is a calico default. I'll file a ticket with them.

https://github.com/projectcalico/libcalico/blob/d9fe4aa49dd193c313b481c2e5a138601e3b8b6e/calico_containers/pycalico/datastore.py#L95


Fix multiple starts immediately after add func into cron (#106)

Sorry for the long silence -- this has since been fixed.


Update os-lib_2.13 to 0.8.0

Updates com.lihaoyi:os-lib_2.13 from 0.6.3 to 0.8.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.lihaoyi", artifactId = "os-lib_2.13" } ]

labels: library-update, early-semver-major, semver-spec-minor, commit-count:1

Superseded by #36.


fix: bring build-icons into the epic stack

Test Plan
I've created a ./build-icons.ts file that generates the svg spritesheet
I have deleted the icon component template and updated the gitignore to commit the real Icon.tsx. In this PR it shows that as a rename, which would be easy to overlook.
We don't need to gitignore it anymore because the Icon.tsx is no longer being codegen'd. Instead, we generate a JSON file with the names of the icons, and import it as a type to get all the icon names as a string union. This new JSON file is gitignored.

Things to note

This replaces the implementation of npm run build:icons script, but everyone can continue calling that script normally
Sly doesn't require any reconfiguration to keep working this way either
This removes the rmx-cli dev dependency
This adds a node-html-parser dev dependency. I prefer this approach for robustness and flexibility, but it would be possible to replace it with a bunch of regex matchers to transform the SVG as a string (into symbols for the spritesheet), if you prefer.
The JSON file looks like this. I used an object for the iconNames because I think that's the only way to get types off the keys. An array would work if we could mark it as const, but that's not possible when importing a JSON file.

{
	"_comment": "This file is generated by npm run build:icons",
	"iconNames": {
		"update": true,
		"trash": true,
		"sun": true,
		"reset": true,
		"plus": true,
		"pencil-2": true,
		"pencil-1": true,
		"moon": true,
		"magnifying-glass": true,
		"lock-open-1": true,
		"lock-closed": true,
		"laptop": true,
		"file-text": true,
		"exit": true,
		"cross-1": true,
		"clock": true,
		"check": true,
		"camera": true,
		"avatar": true,
		"arrow-right": true,
		"arrow-left": true
	}
}

Checklist

[ ] Tests updated
[ ] Docs updated

Screenshots

No offense but if you wanted to inline this code you could have asked me. This is now the second time that a feature I wrote (first being time zone client-hint) was added by someone else.

I'm sorry @kiliman, I didn't mean to step on any toes. I started looking into this so I could have a general solution for rendering icons with Sly for my own projects, but I didn't want to codegen the react bits. The epic stack was just a testbed for following my own instructions and making sure they work, and it did so I proposed the PR.
I'm sorry if it felt I was undermining your contributions here, and I should have reached out before making the PR.

This is now the second time that a feature I wrote (first being time zone client-hint) was added by someone else.

@kiliman this comes across as if you're bitter. I'm sorry if that's the case. I understand if this makes you less likely to want to contribute the the Epic Stack in the future.
I will always go the direction that I think is better, even with my own stuff. In this case, I'm going to proceed with Jacob's approach.

@kiliman my apologies. Didn't mean to step on your toes with the timezone client hints feature.

Hey everyone, I'm sorry if I made you all feel bad. I shouldn't have posted what I did. It was a flash of annoyance, and I should have just moved on.
Anyway, I hope we're all good. The ultimate goal is to make this the MOST epic stack, so how the code gets there should not be a concern.
Again, my apologies. Thanks for your understanding.

I'm glad you're here @kiliman. Thanks for the good work you do!

I opened a new PR based on this one (because I can't push to @jacobparis's main branch). I figured out how to make the type fallback work with paths. It's pretty slick. So TypeScript won't cry about the Icons not being generated right from the get-go, but we generate them as part of the build.
We still probably better check whether the icons have been generated (and generate them if they haven't) as a pre-dev script. But I'm happier with this.


Add missing oslc and oslinfo to exported targets in config

@lkerley

Lee reports that this works correctly now. Merging.


Support loading configuration from toml files

TOML is a very popular format now, and is taking hold in the Python
ecosystem via pyproject.toml (among others). This adds toml as an
extra dependency usuable if installed with the toml extra.
I've recently added similar code in Quart and I've been using toml configs with Flask and Quart for some time now. In my view TOML has crossed a threshold of usage to warrant direct support in Flask.

I'm not super happy that from_json got in in the first place. The intention of Flask's built-in config always appeared to be that it should be Python. JSON is less expressive and more verbose, and while TOML is more expressive it still doesn't cover the types of config that are common now, such as loading values from the environment.
On the other hand, config.from_* does offer some functionality over loading a file yourself. Maybe we need a compromise instead, such as from_file(name, load_func)? That way anyone can use whatever loader they want, rather than having to write another function for each format.

In a weird coincidence, here's a tweet from @jakevdp saying the same thing: https://twitter.com/jakevdp/status/1183241890289741825

I see this as a question of convenience and that there is a tipping point when something is so commonly used as warrant direct inclusion. Whilst it isn't clear, I think from_json reached this point in the community and adding it saved users writing very similar repeated code. My view is that TOML has also reached this point.
I think that from_mapping could work as the generic loader, in that you can do something like,
data = toml.load(something)
app.config.from_mapping(data)

although it doesn't include the useful error handling I presume from_file would.

Just wanted to add I really like using json files to configure flask.  I prefer config files to not be executed code.  Allowing any format the developer wants sounds like a cool idea.

See #3398 as the potentially better solution.

Thanks, closing in favor of #3398.


naabu: 2.0.5 -> 2.0.6

Description of changes
https://github.com/projectdiscovery/naabu/releases/tag/v2.0.6

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)
[ ] 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/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

1 package built:

naabu


Add a list of flutter PRs, and badges about their statuses

https://github.com/badges/shields/discussions/5843


Support passing tuples as structs

On attempting to pass a tuple to an external function taking a struct as an argument, the following error occurs:
transact to TestContract.addTestStruct errored: Error encoding arguments: Error: Unsupported or invalid type: tuple

Simply support passing these tuples to be interpreted as structs.

deployed to remix-alpha.ethereum.org . soon to remix.ethereum.org

array and double quote,
single quote will not work.

@BigMurry  @yann300  I am getting error when we have nested tuples. anything different I need to do ?
I am doing ==> ["a", "b", ["c, "d"]]

@NEO2756 Do you missing a double quote around c?

@NEO2756 Do you missing a double quote around c?

nopes, typo here. Fixed it now!!

@NEO2756
pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;

contract Test {
    struct Inner {
        bytes32 bValue;
        address addValue;
    }
    struct Outer {
        uint256 intvalue;
        Inner nestValue;
    }

    Outer private data;

    constructor (Outer memory _data) public {
        data = _data;
    }
}

And I pass [100, ["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000", "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c"]] in the constructor will be fine.

PS. If the nested structure contains string or bytes, it will throw strange exception.
VM error: revert.
revert	The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.	Debug the transaction to get more information.

@NEO2756
pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;

contract Test {
    struct Inner {
        bytes32 bValue;
        address addValue;
    }
    struct Outer {
        uint256 intvalue;
        Inner nestValue;
    }

    Outer private data;

    constructor (Outer memory _data) public {
        data = _data;
    }
}

And I pass [100, ["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000", "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c"]] in the constructor will be fine.
PS. If the nested structure contains string or bytes, it will throw strange exception.
VM error: revert.
revert	The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.	Debug the transaction to get more information.

Hi,
I just got a similar error on having a string in a nested struct. So is this is issue going to be resolved anytime soon? If not, is there a workaround?
Thanks.

I just tried with this contract
pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;

contract Test {
    struct Inner {
        bytes32 bValue;
        address addValue;
        string p;
    }
    struct Outer {
        uint256 intvalue;
        Inner nestValue;
    }

    Outer private data;

    constructor (Outer memory _data) public {
        data = _data;
    }
}

it worked with the following input param [123,["0x8599A4724B15F0c455FCd7eED32c3AD200b95b3a000000000000000000000000", "0x8599A4724B15F0c455FCd7eED32c3AD200b95b3a" , "test"] ]
can you share an example where you get the issue?

I'm sorry I think I was just giving the input parameters in the wrong format. It's working perfectly now.
Thanks!


Setting Vite BASE_URL creates paths containing "//" i.e. "/base-url//page1"

Here is a reproduction of the bug:
https://stackblitz.com/edit/vitejs-vite-has2vu?file=src/root.tsx
When setting a base_url, which is quite necessary for i.e. the static adapter, paths containing "domain/base-url//route" appear.
ViteJS guidelines on setting the BASE_URL for github pages, says to include a slash both before and after the repo name: "/repo/"
I see this both on a deployed github pages site, and in the dev environment like the reproduction.
It's not possible to simply leave out the final "/" on the base_url, because then solid-start file route will cut the last cipher off the routes:
base: '/solid-start-base'  -> /solid-start-bas/page/

For anyone else in a similar situation, this is my workaround so far:
import solid from 'solid-start/vite';
import {defineConfig, loadEnv} from 'vite';
import staticAdapter from 'solid-start-static';

const config = ({mode}:{mode:string}) => {
    process.env = {...process.env, ...loadEnv(mode, process.cwd())};

    console.log(process.env);

    return defineConfig({
        base: process.env.NODE_ENV === 'production' ? '/github-repo-name/' : '',
        plugins: [solid({adapter: staticAdapter()})],
    });
};

export default config;

I wonder if this got fixed recently. I believe I saw leaving off trailing slash was working fine, but I'm not certain.

In setting up for SolidStarts next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed by mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience.

See https://github.com/solidjs/solid-start/pull/1139 for more details.


Create Hypha product website

Objective
Create a website (domain name TBD) for the Hypha product.
Who is the audience of this website?
This website is targeted at:

funding organisations (potential Hypha users)
possible Hypha contributors (developers, UX designers, others)
others?

What does this website need to communicate?

what hypha is (what it is not?)
what Hypha can help users with
examples of user journeys/use cases
current Hypha users
data ownership
open source
something else

@danblah @saoun @frjo @fourthletter - if you have any things that "must be in here" let me know.
@bumbleblue if you've done somethings on this, please add here! 👍


Make go test ./... work again

Description
Replace unit test script with go code and add e2e build tag to end-to-end test files
In init.go add functions that set up environmental variables. Thanks to
this the command "go test -v ./pkg/... works.
The build tag makes "go test ./..." work again. e2e build tag tags the
files to be by default excluded from default tests.
Also, add e2e.go file with package docs to avoid an error of excluding
all go files from e2e package (https://stackoverflow.com/a/47538114).

Initially fixes #126 (I'm going to further research if we could get rid of "operator-sdk test" in favor of "go test")
Type of change

Bug fix (non-breaking change which fixes an issue)

Checklist

[x] Unit tests and e2e tests updated
[ ] Documentation updated (no documentation update necessary for this change)

Thanks for the copyright headers, and for making the code so much simpler after the review!
I think after the post-review changes, the commit message fragment: "add functions that set up environmental variables" no longer really makes much sense? Other than that, LGTM!

@sbar95 looks good to me. Please adjust the commit message as mentioned by @akavel. After that I will merge this pull request. Thanks!


Didn't receive a slack status notification when 2 of the nodes went into drain on 7/10 (587, 618)

For some reason did not receive a notification for two of the nodes in drain. Need to investigate.

Also seems that during the last few episodes of nodes going down it only sent notifications for one of the nodes. Is already setup to send all nodes and did so during the maintenance window. Continue monitoring and try to see why

The problem is because strigger only triggers on a drain state not on draining. So if a node gets stuck while draining we are never notified. No functionality for this is provided with strigger, so can only achieve it with cron.

@rumiahkessel
I think we can close this issue. We get notified when a node has drained. We don't need to worry about a node draining as we shouldn't do anything to it until it has fully drained.


Caculate the tangle vec of trace

Is it a mistake that s0 is used rather than s?
Can you explain it simply, thank you ~ @fangedward ~
// normal spline vector
double x0 = csp->calc_x(s0);
double y0 = csp->calc_y(s0);
double x1 = csp->calc_x(s0 + 2);
double y1 = csp->calc_y(s0 + 2);

No, s0 is the current longitudinal position of the ego vehicle along the spline. Here we are calculating the normal vector at the current longitudinal position.


Implement outSyncTimer functionality in Synchronizer

fixes #766

For simplifying review of this PR, task #947 will be tackled separately @julesdesmit @autholykos


Skip create AI when set  to false

Plugin name and version
azure-functions-gradle-plugin 1.3.0-SNAPSHOT
Plugin configuration in build.gradle
azurefunctions {
    resourceGroup = 'plfunc6302'
    appName = 'plfunc6309'
    pricingTier = 'S1'
    region = 'westus'
    disableAppInsights = 'false'
    runtime {
      os = 'windows'
    }
    localDebug = "transport=dt_socket,server=y,suspend=n,address=5005"
}

Actual behavior

Set <disableAppInsights> to string will be default true, set it to boolean works.


Unit and integration testing jobs on each PR or main branch push

@0xFable this is part of the refactoring project, feel free to reopen then :)


Trivy SPDX SBOM ingestion fails

I am trying to ingest a SBOM from AquaSec Trivy into Guacone:
trivy image --format spdx-json --output $INFRASTRUCTURE_PATH/spdx-docs/adapter.json myadapter:v0.6.3

But it errors out with
{"level":"error","ts":1676215093.0934958,"caller":"spdx/parse_spdx.go:181","msg":"error generating spdx edge node type mismatch during contains edge creation","stacktrace":"github.com/guacsec/guac/pkg/ingestor/parser/spdx.(*spdxParser).CreateEdges\n\t/home/ekarlso/go/src/github.com/guacsec/guac/pkg/ingestor/parser/spdx/parse_spdx.go:181\ngithub.com/guacsec/guac/pkg/ingestor/parser/common.(*GraphBuilder).CreateAssemblerInput\n\t/home/ekarlso/go/src/github.com/guacsec/guac/pkg/ingestor/parser/common/graph_builder.go:42\ngithub.com/guacsec/guac/pkg/ingestor/parser.ParseDocumentTree\n\t/home/ekarlso/go/src/github.com/guacsec/guac/pkg/ingestor/parser/parser.go:124\ngithub.com/guacsec/guac/cmd/guacone/cmd.getIngestor.func1\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/files.go:215\ngithub.com/guacsec/guac/cmd/guacone/cmd.glob..func5.1\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/files.go:143\ngithub.com/guacsec/guac/pkg/handler/collector.Collect\n\t/home/ekarlso/go/src/github.com/guacsec/guac/pkg/handler/collector/collector.go:87\ngithub.com/guacsec/guac/cmd/guacone/cmd.glob..func5\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/files.go:169\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/guacsec/guac/cmd/guacone/cmd.Execute\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/root.go:104\nmain.main\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/main.go:23\nruntime.main\n\t/home/linuxbrew/.linuxbrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:250"}

If the SBOM isn't confidential could you attach it to the issue?

as @pxp928 pointed out, probably related to #431, in that case it was because we only handled <PACKAGE> CONTAINS <FILE> type edges, this can be probably fixed by providing the flexibility for CONTAINS edge to allow <PACKAGE> CONTAINS <PACKAGE> as well, like what we do for the DEPENDS_ON relationship.
Also tagging @itaysk for visibility.

Generate test data with the following:
trivy image --format spdx-json --output $INFRASTRUCTURE_PATH/spdx-docs/latest.json alpine:latest

Issue related to:
{
  "relatedSpdxElement": "SPDXRef-ContainerImage-56c2d78c4593fea3",
  "relationshipType": "DESCRIBES",
  "spdxElementId": "SPDXRef-DOCUMENT"
},
{
  "relatedSpdxElement": "SPDXRef-OperatingSystem-c209b67c54a61cd7",
  "relationshipType": "CONTAINS",
  "spdxElementId": "SPDXRef-ContainerImage-56c2d78c4593fea3"
},

OperatingSystem get imported as a package. Resulting in a package-to-package contains edge.
DESCRIBES contains the container image purl that is also not currently imported.

pkg/assembler/nodes.go needs to be updated to include a package-to-package contains edge:
// Contains is an edge that represents the fact that an
// `PackageNode` contains a `ArtifactNode`
type ContainsEdge struct {
	PackageNode       PackageNode
	ContainedArtifact ArtifactNode
	ContainedPackage  PackageNode
}

func (e ContainsEdge) Type() string {
	return "Contains"
}

func (e ContainsEdge) Nodes() (v, u GuacNode) {
	uA, uP := isDefined(e.ContainedArtifact), isDefined(e.ContainedPackage)
	if uA == uP {
		panic("only one of package and artifact dependency node defined for DependsOn relationship")
	}

	if uA {
		u = e.ContainedArtifact
	} else {
		u = e.ContainedPackage
	}
	return e.PackageNode, u
}

func (e ContainsEdge) Properties() map[string]interface{} {
	return map[string]interface{}{}
}

func (e ContainsEdge) PropertyNames() []string {
	return []string{}
}

func (e ContainsEdge) IdentifiablePropertyNames() []string {
	return []string{}
}

And the SPDX parser update to handle now being able to have a package to package edge:
func getContainsEdge(foundNode assembler.GuacNode, relatedNode assembler.GuacNode) (assembler.GuacEdge, error) {
	e := assembler.ContainsEdge{}
	if foundNode.Type() == "Package" {
		e.PackageNode = foundNode.(assembler.PackageNode)
	} else {
		return nil, errors.New("node type mismatch during contains edge creation")
	}
	if relatedNode.Type() == "Artifact" {
		e.ContainedArtifact = relatedNode.(assembler.ArtifactNode)
	} else if relatedNode.Type() == "Package" {
		e.ContainedPackage = relatedNode.(assembler.PackageNode)
	} else {
		return nil, errors.New("node type mismatch during contains edge creation")
	}
	return e, nil
}

@pxp928 applied the mentioned ^ code to my and and
{"level":"info","ts":1676490761.4306157,"caller":"cmd/root.go:94","msg":"Using config file: /home/ekarlso/go/src/github.com/guacsec/guac/guac.yaml"}
{"level":"error","ts":1676490761.4771938,"caller":"collector/collector.go:88","msg":"emit error: unable to assemble graphs: Node {alpine [] 3.17.2  [] [] {file:////home/ekarlso/projects/evry/dds/infrastructure/spdx-docs/latest.json FileCollector}} has no value for property purl","stacktrace":"github.com/guacsec/guac/pkg/handler/collector.Collect\n\t/home/ekarlso/go/src/github.com/guacsec/guac/pkg/handler/collector/collector.go:88\ngithub.com/guacsec/guac/cmd/guacone/cmd.glob..func5\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/files.go:169\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/guacsec/guac/cmd/guacone/cmd.Execute\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/root.go:104\nmain.main\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/main.go:23\nruntime.main\n\t/home/linuxbrew/.linuxbrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:250"}
{"level":"info","ts":1676490761.4772499,"caller":"cmd/files.go:163","msg":"collector ended gracefully"}
{"level":"fatal","ts":1676490761.4772573,"caller":"cmd/files.go:174","msg":"completed ingestion with errors","stacktrace":"github.com/guacsec/guac/cmd/guacone/cmd.glob..func5\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/files.go:174\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/ekarlso/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/guacsec/guac/cmd/guacone/cmd.Execute\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/cmd/root.go:104\nmain.main\n\t/home/ekarlso/go/src/github.com/guacsec/guac/cmd/guacone/main.go:23\nruntime.main\n\t/home/linuxbrew/.linuxbrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:250"}```o

@ekarlso that's where issue #441 will be need to fix the no purl error.

This is an old issue that is not relevant to the new SPDX parser and the integration of graphQL.


Add CI distribution

Could be interesting add a continuous distribution system such
https://stackoverflow.com/questions/48681816/upload-to-pypi-from-gitlab-pipelines
this will also fix #232
@devbisme ?

FWIW I know Travis (free for OSS projects) can deploy artifacts to Github. I am not aware of the details though. https://docs.travis-ci.com/user/deployment/releases/

I will give a look after the new API. Could be interesting some help of a more experiment user.

Almost fix. I am closing this for now.


Random search

Implements a simple random search baseline as described in #206
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #208   +/-   ##
=======================================
  Coverage   89.37%   89.37%
=======================================
  Files         106      106
  Lines        2881     2881
  Branches      294      294
=======================================
  Hits         2575     2575
  Misses        252      252
  Partials       54       54

Continue to review full report at Codecov.

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

I like the idea of merging it into the core library, since I could also see some other cases where these functionalities might be useful


Stable, public API

We branch off a 0.10 maintenance branch, starting from 0.10.6. We will maintain this branch for some time with security and bug fixes, but no new features.
On the main branch, we now make more radical cleanups.
All vars  follow PEP8 naming conventions (all lower case, use of _ as part separator) and all vars which are not part of the public API begin with a leading _ ("private vars").
This will likely break things in at least:

Crossbar.io
AutobahnTestsuite

In AutobahnTestsuite, it's fine to require the 0.10 branch releases. In Crossbar.io we will track the new master.
The public API is described using type classes and meta classes in two new files:

autobahn/wamp/api.py
autobahn/websocket/api.py

Core interfaces are

IWebSocketProtocol and  IWebSocketMessage
IWampTransport, IWampTransportHandler and IWampMessage
IWampSession and IWampConnection

All other types and interfaces are built around above.

An IWampConnection creates a IWampTransport and IWampTransportHandler. When the WAMP transport is established a IWampSession is created and attached to the transport. The WAMP session then begins it's WAMP opening handshake by sending a WAMP HELLO IWampMessage.

subseded/fixed in https://github.com/crossbario/autobahn-python/issues/964


Add Progressbar95 icon

The xml file looks like a svg code. Are you sure it works on android?

Yeah, I don't see any valid Android vector drawable format in the file, you may need to use https://shapeshifter.design/ to convert it to a valid Android vector drawable

Hold a sec...

The size for vector is 24. not 6. Here is the fixed svg and android vector xml.
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="@dimen/theme_icon_size"
    android:height="@dimen/theme_icon_size"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:fillColor="@android:color/white"
        android:pathData="M16.998 4h2v1.999h-2zm0 4.002h2V10h-2zm-4-2.003h2v2.003h-2zm0 4h2v2h-2zM8.996 8.002h2V10h-2zm-4 1.999h2v1.999h-2zm0-4.001h2v2.003h-2zm4-1.999h2v1.999h-2zM3 13.994V20h18v-6.006zm9.997 2h6.002V18h-6.002z" />
</vector>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   height="24"
   width="24"
   version="1.1"
   id="svg4"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <defs
     id="defs8" />
  <path
     d="M16.998 4h2v1.999h-2zm0 4.002h2V10h-2zm-4-2.003h2v2.003h-2zm0 4h2v2h-2zM8.996 8.002h2V10h-2zm-4 1.999h2v1.999h-2zm0-4.001h2v2.003h-2zm4-1.999h2v1.999h-2zM3 13.994V20h18v-6.006zm9.997 2h6.002V18h-6.002z"
     fill=""
     id="path2" />
</svg>

Everything is fine now, I think...

Hmm.... Now what?

Looks good to me.  Let's wait for project maintainer's review.

Thank you, @SamCool939, @arun54321, and @leapofazzam123!

No problem. 😁


Create cars details panel

See - https://app.asana.com/0/1202525679663009/1202804889720781/f
Complectation

Model

Some screenshots would be appreciated

@brovarenko
Please fix the linter

Okay, the changes make sense, but the options pills need to be reworked to not bloat the card. I'll bring it up on the daily call


Make the MotionFilter internal.

Also moves it from mapping_3d to mapping since it is used
in both 2D and 3D SLAM.
RFC=0003

@wally-the-cartographer merge

Merge requested by authorized user wohe. Merge queue now has a length of 1.


Kadanes algorithm python

Thanks for contributing to NeoAlgo!
Please remove this before submitting your PR.
Don't forget to visit our website!
All Submissions:
Before starting:
PLEASE PLEASE PLEASE READ AND CHECK THE BOXES BELOW

[ yes] Have you followed the guidelines in our Contributing document?
[ yes] Have you checked the issues to see if your request isn't assigned to someone else?
[ yes] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[ yes] If your submission is to improve an existing code, have you created an issue to specify that?
[ yes] Don't tag anyone unless specifically requested to do so
[ yes] Don't create any subfolders unless specifically requested to do so.

New Code Submissions:

[ yes] Does your code work locally?
[ yes] Have you cleaned your code for better readability? (no extra unnecessary lines, etc.)
[ yes] Have you updated the README.md file to add the link to your code?

@all-contributors please add @GSNCodes for code


Correction for raw affiliation Haihe Laboratory of Sustainable Chemical Transformations, Tianjin 300192, People's Republic of China

Correction needed for raw affiliation Haihe Laboratory of Sustainable Chemical Transformations, Tianjin 300192, People's Republic of China
raw_affiliation_name: Haihe Laboratory of Sustainable Chemical Transformations, Tianjin 300192, People's Republic of China
new_rors:
previous_rors: 03q99v794
works_examples: W4394989715;W4400148223;W4396573316;W4400981720;W4394580711;W4398173919;W4403393183
contact: 1cda300db8b783b8644ff6ee2f9c9a48:cd8403ea85a0893f12174f94e709 @ univ-lille.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


Complete assignment 3

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Update to Jupiter notebook
What did you learn from the changes you have made?
How to bootstrapping
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Manual calculation
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
The alpha function was not clear. I overcame using google search.
How were these changes tested?
manually
A reference to a related issue in your repository (if applicable)
N/A
Checklist

[x] I can confirm that my changes are working as intended

@amanda-ng518


NumPy/SciPy not supported by IronPython

Here is the instruction of how to setup NumPy/SciPy for IronPython:
Install NumPy/SciPy libraries for IronPython
NumPy library is used by some NLTK functions such as nltk.ne_chunk() (Named Entity Recognition).
So, follow this steps to install NumPy library for IronPython:

Download ironpkg-1.0.0.py from https://raw.githubusercontent.com/ptmono/anipang_b/master/ironpkg-1.0.0.py to IronPython folder
Run console and cd to IronPython folder there. So you will be able to run ipy ironpkg-1.0.0.py --install
After ironpkg and ironegg was installed, run ironpkg scipy to install NumPy and SciPy libraries.
In case you've got errors on installation, then download numpy and scipy egg files from here http://code.enthought.com/.iron/eggs/index.html
Then run ironegg scipy-1.0.0-2.egg and ironegg numpy-2.0.0-1.egg (versions may be changed)
Make sure you've got folders <IronPython Path>\Libs\site-packages\scipy and <IronPython Path>\Libs\site-packages\numpy

Follow this StackOverflow question for actual information.
Issue
After installation you'll get expception related to NumPy library on call nltk.ne_chunk() from IronPython. This is not NltkNet issue itself. This means NumPy library is not supported by IronPython. I assume because NumPy has native C-calls inside it.
Please let me know, if you got success or workarround by running NumPy with IronPython.

I was on IronPython 2.7.9,
After doing above steps, Now,
"Nltk.Init(new List
{
@"C:\IronPython279\Lib",                 // Path to IronPython standard libraries
@"C:\IronPython279\Lib\site-packages",   // Path to IronPython third-party libraries
@"C:\IronPython279\DLLs",
});
"
throws error "Could not load file or assembly 'IronPython, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
System.IO.FileLoadException: Could not load file or assembly 'IronPython, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

@saifu-rahman
As I see you have IronPython version 2.7.0 which may be installed to another path than C:\IronPython279. Check that path and/or update IronPython nuget packages.
This exception doesn't relate to the issue directly though.

But I restored my original "IronPython279" backup folder in C drive, and then, it came back to my original numpy exception:
"No module named numpy.core.multiarray
IronPython.Runtime.Exceptions.ImportException: No module named numpy.core.multiarray"
So my conclusion here is, after running below commands, I got folders : 'IronPython279\Libs\site-packages\scipy' and 'IronPython279\Libs\site-packages\numpy', but seems like numpy import (which is a dependent for NLTK) in my C# program is expecting a different version of IronPython??

ipy ironpkg-1.0.0.py --install
ironpkg scipy
ironegg scipy-1.0.0-2.egg
ironegg numpy-2.0.0-1.egg

Perhaps relevant


Debugging- Pass endpoint authorization value through env variables

I'm looking for a way to pass the endpoint authorization information to a task through environment variable for debugging purposes.
 var myCustomEndpoint = tl.getInput('MyCustomEndPoint', true);
 var myEndpointAuth = tl.getEndpointAuthorization(myCustomEndpoint , false);

for the simple endpoint parameters I'm able to use
$ export MyCustomEndPoint="CustomEndpointName"
Now when getting authorization information, it's always null. how can i pass/mock this value?
 var myEndpointAuth = tl.getEndpointAuthorization(myCustomEndpoint , false);

When you run the build in debug mode system.debug=true, then the values required by the endpoint are listed in the section where the build initializes. You need a whole number of environment variables. E.g., my VSTS variables tasks lists these parameters when initlializing:
loading ENDPOINT_AUTH_e3b134d7-1b55-4d0d-b014-72eb5dc64f94
loading ENDPOINT_AUTH_PARAMETER_e3b134d7-1b55-4d0d-b014-72eb5dc64f94_PASSWORD
loading ENDPOINT_AUTH_SCHEME_e3b134d7-1b55-4d0d-b014-72eb5dc64f94

Setting the values for these environment variables prior to running the build should do the trick.
Unfortunately there is no method in the SDK to set these values while testing.

Thanks @jessehouwing. Passing the value directly this way will not work you should pass a JSON string represent the endpoint value like below
$ export ENDPOINT_AUTH_EP1 = '{ "Parameters": { "UserName": "Some user", "Password": "Some password" }, "Scheme": "Some scheme" }'
This instruction is well document for the PowerShell task here https://github.com/Microsoft/vsts-task-lib/blob/master/powershell/Docs/TestingAndDebugging.md


Bug fix: Connecting to the wrong COM port for USB serial devices

See https://trello.com/c/NM8FBoH1 for details.
Pinging @darinkrauss for review as Jana is OoO today. I'm going to merge this into the Animas branch so long so that Nick can test today, but please do bring up any issues identified during review.

Aaargh.. trying to do it too fast. There are some Mac changes too, will create a new PR.

See additional changes in #310

LGTM :shipit:


feat: aadpod_identity

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign chrismellard
You can assign the PR to them by writing /assign @chrismellard in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

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

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
72adbd89f43cb975090960a3e99bd0d4041f2b6b
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
1854650f5db0c95baab6ec7b28e718504c855760
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
ea747baef790311264e3d1cbfbf6343825833cb4
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
49b2341b50079e42cd10d16d4497439c51ddbfce
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
e0f724a61767bf63ff84249f89f6017fb215fb25
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
f19f00d97b66c4475365339cfd9dffecee60f8be
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
c05b196d3e529a393ddee64c4470b1adbca07abb
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
ac6a3afa82ef59af2dc08ef6b9b6f4d33490e377
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
be073f97ed21750c4496886d122c481412f14885
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
e31e603fda88d719bb50c453ca3f314d5b290a30
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
820f2f6dbe49b19d987be195ba3128ea3c7bc2f1
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test this

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
820f2f6dbe49b19d987be195ba3128ea3c7bc2f1
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
ba1ea1cd16eb040069d233c05a48442deecf6d65
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard Just saw you were working on this and I just got this working last week. Here's the module I got working... maybe it will be helpful.
variable "environment" {
  type        = string
  description = "runtime environment: prod, dev"
}

variable "cluster_name" {
  type        = string
  description = "aks cluster name"
}

variable "cluster_location" {
  type        = string
  description = "aks cluster location"
}

variable "cluster_resource_group" {
  type        = string
  description = "aks cluster resource group"
}

variable "cluster_nodes_resource_group" {
  type        = string
  description = "aks cluster nodes resource group"
}

data "azurerm_resource_group" "nodes_rg" {
  name = var.cluster_nodes_resource_group
}

data "azurerm_kubernetes_cluster" "cluster" {
  name                = var.cluster_name
  resource_group_name = var.cluster_resource_group
}

### Built based off this
## https://github.com/Azure/aad-pod-identity/blob/master/hack/role-assignment.sh

# These role assignments are fot the AAD service
resource "azurerm_role_assignment" "mio" {
  scope                = data.azurerm_resource_group.nodes_rg.id
  role_definition_name = "Managed Identity Operator"
  principal_id         = data.azurerm_kubernetes_cluster.cluster.kubelet_identity[0].object_id
}

resource "azurerm_role_assignment" "vmc_nodes" {
  scope                = data.azurerm_resource_group.nodes_rg.id
  role_definition_name = "Virtual Machine Contributor"
  principal_id         = data.azurerm_kubernetes_cluster.cluster.kubelet_identity[0].object_id
}

############## Database ##############

resource "azurerm_user_assigned_identity" "mi" {
  name                = "mi-app-k8s-db-${var.environment}-${var.cluster_location}"
  resource_group_name = var.cluster_nodes_resource_group
  location            = var.cluster_location
}
resource "azurerm_role_assignment" "mi_reader" {
  scope                = data.azurerm_resource_group.nodes_rg.id
  role_definition_name = "Reader"
  principal_id         = azurerm_user_assigned_identity.mi.principal_id
}

######################################

############# Key Vault ##############

resource "azurerm_user_assigned_identity" "kv" {
  name                = "mi-app-k8s-kv-${var.environment}-${var.cluster_location}"
  resource_group_name = var.cluster_nodes_resource_group
  location            = var.cluster_location
}
resource "azurerm_role_assignment" "kv" {
  scope                = data.azurerm_resource_group.nodes_rg.id
  role_definition_name = "Reader"
  principal_id         = azurerm_user_assigned_identity.kv.principal_id
}

######################################

# https://github.com/Azure/aad-pod-identity/tree/master/charts/aad-pod-identity
resource "helm_release" "identity" {
  name       = "aad-pod-identity"
  chart      = "https://github.com/Azure/aad-pod-identity/raw/master/charts/aad-pod-identity-2.0.2.tgz"
  version    = "2.0.2"
  values = [
    <<EOF
azureIdentities:
##### Database #####
- name: "${azurerm_user_assigned_identity.mi.name}"
  type: 0
  resourceID: "${azurerm_user_assigned_identity.mi.id}"
  clientID: "${azurerm_user_assigned_identity.mi.client_id}"
  binding:
    name: "${azurerm_user_assigned_identity.mi.name}-binding"
    selector: "${azurerm_user_assigned_identity.mi.name}"
##### Key Vault #####
- name: "${azurerm_user_assigned_identity.kv.name}"
  type: 0
  resourceID: "${azurerm_user_assigned_identity.kv.id}"
  clientID: "${azurerm_user_assigned_identity.kv.client_id}"
  binding:
    name: "${azurerm_user_assigned_identity.kv.name}-binding"
    selector: "${azurerm_user_assigned_identity.kv.name}"
EOF
  ]
}

output "key_vault_mi_id" {
  value = azurerm_user_assigned_identity.kv.id
}

output "key_vault_mi_principal_id" {
  value = azurerm_user_assigned_identity.kv.principal_id
}

Thanks @gregberns - only issue I'm battling is a flaky Kubernetes-alpha provider as I want to use this  to put the CRDs in to a variety of namespaces. Is that possible  when you specify them inline in the chart values?

@chrismellard sorry, not sure I can help with that (I'm still only on month 1 or 2 of k8s). I did have some issues working across namespaces - but I think that was an initial config issue. And I haven't used the k8s terraform provider yet.
I think the only thing I played with in the values of this helm chart are supplying the multiple managed identities, which my DBA wants so different pods can use different identities. Not sure if thats something commonly desired or if there's a better way to go about it.

I think multiple identities is the way to go to ensure principal of least privilege for identities. Putting these identities in the chart values will solve my issues. Just feels like this breaks module encapsulation having to tell a chart about all the identities I ever care about forever more. Think I know where the issue is in the Kubernetes-alpha  provider so I might open a PR and fix up there.

Or not. Someone else already working on it - https://github.com/hashicorp/terraform-provider-kubernetes-alpha/pull/41. I'll use chart values for now I guess to make progress and revisit pending this PR.

100% agree. Thanks for passing that on, that’ll be a big help. And thanks
for all you work on this project, it’s been critical in getting my cluster
stood up.
On Tue, Sep 29, 2020 at 12:13 AM Chris Mellard<EMAIL_ADDRESS>wrote:

Or not. Someone else already working on it -
hashicorp/terraform-provider-kubernetes-alpha#41
https://github.com/hashicorp/terraform-provider-kubernetes-alpha/pull/41.
I'll use chart values for now I guess to make progress and revisit pending
this PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jenkins-x/terraform-azurerm-jx/pull/34#issuecomment-700499078,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANPQIXV5TAMNCECT5D4JVTSIGCJXANCNFSM4R2YJAUQ
.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
84461c3da3b437112e07855f9a36a487212b2ba3
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
dbe9ab330b2a837e962673e0dcd7b50d713299e2
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
5f498ba7daa44af6d8a228c333131f33e7aac1c0
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
c49fa18776c42a8015679a60be92d5c2ed49a08e
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test this

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
c49fa18776c42a8015679a60be92d5c2ed49a08e
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
f17ceb5bf3ff35b3b480e515c852612309d19782
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test this

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
f17ceb5bf3ff35b3b480e515c852612309d19782
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/retest

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
f17ceb5bf3ff35b3b480e515c852612309d19782
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test this

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
f17ceb5bf3ff35b3b480e515c852612309d19782
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@chrismellard: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr-build
f9470d2f2791aab4381593d8376d382b1a81a7d2
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

Resolves #4

/lgtm

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

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

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


Call codeql.exe rather than codeql.cmd wrapper on Windows

Ever since CodeQL 2.0.2 (~6 months ago IIRC), codeql.cmd has been a trivial wrapper around codeql.exe on Windows - it just forwards all arguments.
Since we may want to remove it in the future, I think it makes sense for the action to stop using the wrapper. I assume we are using a relatively recent version of the CodeQL tools on Actions, that includes codeql.exe.
Sorry, I'm not sure how to test this, and I may not have made the change correctly - I just edited the two files where I found the .cmd extension being added. One of them appears to be generated from the other, but I edited it manually.
Merge / deployment checklist

Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in other repos!

[ ] CodeQL using init/analyze actions
[ ] 3rd party tool using upload action

[ ] Confirm this change is backwards compatible with existing workflows.
[ ] Confirm the readme has been updated if necessary.

Thanks for this. I'd heard codeql was switching to exe but was confused because the current call still works, but that explains it now if it's a trivial wrapper.
You're right the error is due to generated files. Run npm run build to generate them and check in the result.

Sorry I think this now conflicts because we've normalised all the indentation. You'll have to merge in main again. Once that's done and the CI passes then you can just merge.

Thanks, I've merged main and fixed the trivial conflict.

@robertbrignull thanks for your help. Can you please merge? I don't have write access to this repository.


Restrict Context Access by Branch Name

This is the "Branch Based Secrets" we all want and love.
Included in playground as example. This ticket is to make the branch name an argument, and move to config package.
@davidmdm  - hope your ok if I track the things we're interested in collabing on here?

Of course !

completed with new context helpers


http-server caching issue

I had a serious caching issue with Chrome 55 (latest) -- had to hard refresh every time.  This turns off the cache for dev purposes.

Seems reasonable. Thanks @ryanmtaylor!


Feature resizeable images

@rgerstenberger @kenwheeler please review,
Image resize now works with resize nodes, added top and bottom nodes to the existing ones. Resizes will snap to grid as well as force aspect ratio when holding shift key.

LGTM! @kenwheeler Can you take a look and verify this will work with slide scaling?


push.js Not added to application template file(URGENT!!! My app has been removed!)

Creating a push.js file in the plugin file when I create an application template in devextreme
Devextreme also creates the splashscreen plugin file when I create the application template, but the push.js file is not added

I'm writing plugin names in the config.xml file. I'm using the Create an application template command. creates a template file. There is splashscreen.js inside the template file but push.js does not come up. Unfortunately, my application does not work when I upload it to the phone.
Cordova version 8.0.0 / push plugin version 2.2.3 / targetSdkVersion 26
code written to plugin in config.xml file;

My Config.xml file;

MY AppTemplate folder;

I have the same problem. I'm bored now.
Turkish translation: DevExtreme’in taaaaaa

plugin version 1.9.0 and phonegap version cli.6.5.0 when I publish my project is working properly. But the only shortage does not work in background notifications on Android 8.0.0 versions.
This is a big problem for me.
To eliminate this, I upgraded the phonegap version to 7.1.0 and the plugin version to 2.1.0. However, this way when I install the phonegap builder a google-service.json file can not be found says. The google_service.json file is found in the main directory of the project. But is not publish.

Hi, my problem is solved. The application was a distress caused by the directory structure I sent during the installation of the phonegap builder.


Enriched Math Tex Error

When entering a formula including something similar to:
( x + 1 ) ^2 =
The exponent is applied to the last term within the brackets, rather than the brackets as a hole.
(I've attached a screenshot to demonstrate)

Thanks so much for reporting this here.

Fixed in SRE.


Autocompletions kick in when in snippet mode

VSCode Version: 1.21.0
OS Version: macOS Sierra 10.12.6

I'm trying to create relatively complex snippets for emmet code, but pressing tab after changing an element or class name completes an emmet autocomplete prematurely before the snippet is done.
Steps to Reproduce:

Create a snippet for a complex emmet statement
Have certain tab completion highlights be html/emmet autocompletes (div, div.class, etc.)
Use the snippet and change an element or class then press tab

Example: "${1:div}.grid-container>div.grid-x.grid-margin-x>(div.${2:large-12}.cell*${3:2})$4",
If ${1:div} is changed to another tag like section, pressing tab will complete a section tag which breaks the rest of the snippet.
Technically I can get around this by using undo after the premature emmet completion, but that's a workaround.
I think all tab based autocompletion should be disabled while inside a snippet, it's a conflict of input.

Does this issue occur when all extensions are disabled?: Yes

This is not a duplicate issue.

I think all tab based autocompletion should be disabled while inside a snippet, it's a conflict of input.

cc @jrieken for thoughts on the above

Was about to submit this myself. There should be a config to disable autocomplete in snippets

I think all tab based autocompletion should be disabled while inside a snippet, it's a conflict of input.

Not sure if you mean tab-completion ("editor.tabCompletion": true) which expands snippets without the IntelliSense/Autocomplete widget showing or if you mean tab accepting the selected item in the IntelliSense/Autocomplete widget?

@jrieken Not sure if you read my issue thoroughly or attempted to reproduce the issue, but I'm not talking about the intellisense/autocomplete widget showing.
My issue is that while in the scope of using a snippet with a custom tab order, other autocomplete rules can trigger which defeats the purpose of controlling tab completion of a snippet in the first place.
Here's a gif to show what I mean:

As I mentioned in the original post, if I change div to section and press tab naturally, it creates a section tag instead of moving to the next tab stop defined in the snippet (large-12).
Also I tried changing the "editor.tabCompletion" setting just in case and it didn't seem to do anything.

Yeah, this effectively breaks snippets. Only way to prevent the completion is escaping out of the snippet, which means the snippet isn't usable. Quite annoying!

Not sure if you read my issue thoroughly or attempted to reproduce the issue, but I'm not talking about the intellisense/autocomplete widget showing.

In your gif, when typing section a widget shows. We call that IntelliSense and pressing tab inserts the selected item. You seem to refer to that as "tab based autocompletion" which can mean that but it can also mean snippet-expansion via tab (first paragraph here).
Agreed, the lingo we use is very special and I am not expecting you now the subtle differences but please answer questions when we ask them. Thanks.

@jrieken
What is being asked here is to disable the quick suggestions feature (auto triggering of suggestions) when in snippet mode.
In snippet mode, the user expects the tab key to let them traverse through the tabstops and placeholders in the snippet. In snippet mode, when changing the value of a placeholder, quick suggestions feature kicks in. The user has to press escape to get out of the suggest widget and then press to tab to resume traversing through the snippet. This is the problem.
If the suggestions do not get automatically triggered in snippet mode, the user is free to type in the placeholder value and press tab to go to the next tabstop.

This happens in most contexts when you press tab. Same thing happens for snippets that generates a function body. When typing the name, it sometimes end up completing another snippet if it's part of the function name.

This has been fixed a couple of releases ago.

@ramya-rao-a is there an option to disable them? If so, what is it? Thanks!

@danawoodman Use the setting editor.suggest.snippetsPreventQuickSuggestions


Pg/ck/diurnal

@cfranken let me know before merging so that I can rebase (and squash all of these commits)


Can't execute multiline commands

With GitHub actions, one can execute multiple commands with this multiline syntax:
run: |
  command1 --option1
  command2 --option2

Such behavior, however, doesn't seem to be respected by Cypress GH action. For instance, if I have this setup:
- uses: cypress-io/github-action@v2
  with:
    build: |
      command1 --option1
      command2 --option2

The actual command executed will be a combined, invalid, command1 --option1 command2 --option2.

I ran into a similar problem with the build parameter.
It's caused by the execCommand() function here. I don't understand why but the Cypress action doesn't just pass the string as-is to the shell, it parses the build string using argument-vector (which basically just splits it on whitespace), checks that the first segment of the string (in your example command) resolves to a known binary on the $PATH using which and then glues the string components back together (which is why your command ends up as one long string).
In my case my build failed using build: ./bin/build because which ./bin/build fails 🙄

I ran into a similar problem with the build parameter.
It's caused by the execCommand() function here. I don't understand why but the Cypress action doesn't just pass the string as-is to the shell, it parses the build string using argument-vector (which basically just splits it on whitespace), checks that the first segment of the string (in your example command) resolves to a known binary on the $PATH using which and then glues the string components back together (which is why your command ends up as one long string).
In my case my build failed using build: ./bin/build because which ./bin/build fails 🙄

I would be open to a pull request implementing this


dartanalyzer forces things like indents and spaces when reformatting afile. Should it use a preferences file for it?

This issue was originally filed by<EMAIL_ADDRESS>
What steps will clearly show the issue / need for enhancement?

Use dart-tools package for atom
On package settings change space tab to something different of 2
Type some code
save the file (Ctrl + S)

What is the current output?
When formatting, dartanalyzer forces things like tab length to 2 and removes spaces on parenthesis and curly braces.
What would you like to see instead?
Since Dart Editor is going to dissapear, It'd be nice if dartanalyzer respect user preferences, maybe as flags or config files (maybe a analyzer.json?), when formatting code.
What version of the product are you using? On what operating system?
I'm using dart-sdk 1.10.0 on Windows 7.
Please provide any additional information below.
I opened a bug on dart-tools project which brings dart tools to atom users as an option to Java IDEs (https://github.com/radicaled/dart-tools/issues/29).
Thanks in advance

This issue has been moved to dart-lang/dart_style#261.


vignetted flats

Various folks looking at ComCamSim simulations associated with ops-rehearsal-3 have requested flats with vignetting applied.  See the slack thead.

What does this have to do with skyCatalogs?

sorry!  It quite obviously has nothing to do with Sky catalogs.   I mean to open this in imSim.


[SWARM-2018] Fix documentation on maven plugin

[x] Have you followed the guidelines in our Contributing document?
[x] Have you created a JIRA and used it in the commit message?
[x] Have you checked to ensure there aren't other open Pull Requests for the same issue?
[x] Have you built the project locally prior to submission with mvn clean install?

Or you can have <configuration> directly under <plugin>, but both work fine.

No, this is fine IMO.
I wonder why CI didn't kick in...?
test this please

I'm guessing CI didn't kick in because the changes were isolated to documentation (not sure what rules CI on this project is using).
My understanding based on the contribution guide was that testing was not required for documentation-only changes. In any case, I'll start the tests running now.

Update: All tests pass locally on the latest version of this branch.

Thanks @kg6zvp, I think it's actually because the CI server is down :-) Though I agree this change doesn't strictly need it.

test this please

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test


[Python] Cannot install via pip M1 Mac on Python 3.7

After running

pip install --upgrade pip setuptools wheel

getting error

ERROR: Command errored out with exit status 1:
   command: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-standalone-pip-o26otdgs/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i<EMAIL_ADDRESS>-- 'cython >= 0.29' 'numpy==1.16.6; python_version<'"'"'3.8'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.4; python_version=='"'"'3.9'"'"'' 'numpy==1.21.3; python_version>'"'"'3.9'"'"'' 'setuptools < 58.5' setuptools_scm wheel
       cwd: None
  Complete output (2423 lines):
  Looking in indexes<EMAIL_ADDRESS>  Ignoring numpy: markers 'python_version == "3.8"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.9"' don't match your environment
  Ignoring numpy: markers 'python_version > "3.9"' don't match your environment
  Collecting cython>=0.29
    Downloading https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/15/29/2abb8975ded365d55b9e14129cabdfb977255911c80d8709028eca5829cd/Cython-0.29.26-py2.py3-none-any.whl (983 kB)
  Collecting numpy==1.16.6
    Downloading https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/b7/6f/24647f014eef9b67a24adfcbcd4f4928349b4a0f8393b3d7fe648d4d2de3/numpy-1.16.6.zip (5.1 MB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'done'
  Collecting setuptools<58.5
    Downloading https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/a8/50/76fb9cfe521b531feecd932ab920cd6e32f6838527af7b34ef78d5f39a18/setuptools-58.4.0-py3-none-any.whl (946 kB)
  Collecting setuptools_scm
    Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/e3/e5/c28b544051340e63e0d507eb893c9513d3a300e5e9183e2990518acbfe36/setuptools_scm-6.4.2-py3-none-any.whl (37 kB)
  Collecting wheel
    Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting tomli>=1.0.0
    Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/e2/9f/5e1557a57a7282f066351086e78f87289a3446c47b2cb5b8b2f614d8fe99/tomli-2.0.0-py3-none-any.whl (12 kB)
  Collecting packaging>=20.0
    Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
  Collecting pyparsing!=3.0.5,>=2.0.2
    Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/a0/34/895006117f6fce0b4de045c87e154ee4a20c68ec0a4c9a36d900888fb6bc/pyparsing-3.0.6-py3-none-any.whl (97 kB)
  Building wheels for collected packages: numpy
    Building wheel for numpy (setup.py): started
    Building wheel for numpy (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"'; __file__='"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-wheel-71hon_fn
         cwd: /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/
    Complete output (2293 lines):
    Running from numpy source directory.
    /bin/sh: svnversion: command not found
    non-existing path in 'numpy/distutils': 'site.cfg'
    /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/lib/python3.7/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running bdist_wheel
    running build
    running config_cc
    running config_fc
    running build_src
    creating build
    creating build/src.macosx-12.0-arm64-3.7
    creating build/src.macosx-12.0-arm64-3.7/numpy
    creating build/src.macosx-12.0-arm64-3.7/numpy/distutils
    Could not locate executable gfortran
    Could not locate executable f95
    Could not locate executable f90
    Could not locate executable f77
    Could not locate executable xlf90
    Could not locate executable xlf
    Could not locate executable ifort
    Could not locate executable ifc
    Could not locate executable g77
    Could not locate executable g95
    Could not locate executable pgfortran
    don't know how to compile Fortran code on platform 'posix'
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    _configtest.c:1:5: warning: incompatible redeclaration of library function 'exp' [-Wincompatible-library-redeclaration]
    int exp (void);
        ^
    _configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
    1 warning generated.
    creating build/src.macosx-12.0-arm64-3.7/numpy/core
    creating build/src.macosx-12.0-arm64-3.7/numpy/core/src
    creating build/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath
    creating build/src.macosx-12.0-arm64-3.7/numpy/core/src/common
    creating build/src.macosx-12.0-arm64-3.7/numpy/core/src/npysort
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    _configtest.c:1:10: fatal error: 'endian.h' file not found
    #include <endian.h>
             ^~~~~~~~~~
    1 error generated.
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
    _configtest.c:1:10: fatal error: 'sys/endian.h' file not found
    #include <sys/endian.h>
             ^~~~~~~~~~~~~~
...
...
...
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
      error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -maltivec<EMAIL_ADDRESS>-I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/bzip2/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libmemcached/include -I/opt/homebrew/opt/snappy/include -maltivec -DXMLSEC_NO_XKMS=1<EMAIL_ADDRESS>-I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/bzip2/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libmemcached/include -I/opt/homebrew/opt/snappy/include -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/umath -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/include -I/Users/martin.kerr/.pyenv/versions/3.7.12/include/python3.7m -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/common -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/common -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath -c numpy/core/src/multiarray/array_assign_scalar.c -o build/temp.macosx-12.0-arm64-3.7/numpy/core/src/multiarray/array_assign_scalar.o -MMD -MF build/temp.macosx-12.0-arm64-3.7/numpy/core/src/multiarray/array_assign_scalar.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"'; __file__='"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-record-ap1n91pl/install-record.txt --single-version-externally-managed --prefix /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay --compile --install-headers /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay/include/site/python3.7/numpy Check the logs for full command output.
  ----------------------------------------
WARNING: Discarding https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/38/c6/97a4133eea642155e7a73cb946d889cadc461a1e6b93f5627af9fdd7b3f3/pyarrow-6.0.1.tar.gz#sha256=423990d56cd8f12283b67367d48e142739b789085185018eb03d05087c3c8d43 (from https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/simple/pyarrow/) (requires-python:>=3.6). Command errored out with exit status 1: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-standalone-pip-o26otdgs/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i<EMAIL_ADDRESS>-- 'cython >= 0.29' 'numpy==1.16.6; python_version<'"'"'3.8'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.4; python_version=='"'"'3.9'"'"'' 'numpy==1.21.3; python_version>'"'"'3.9'"'"'' 'setuptools < 58.5' setuptools_scm wheel Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyarrow==6.0.1 (from versions: 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 1.0.0, 1.0.1, 2.0.0, 3.0.0, 4.0.0, 4.0.1, 5.0.0, 6.0.0, 6.0.1)
ERROR: No matching distribution found for pyarrow==6.0.1

Environment: M1 Mac, Python 3.7.12 environment
Reporter: Rohit Pathak
PRs and other links:

GitHub Pull Request #12195

Note: This issue was originally created as ARROW-15384. Please see the migration documentation for further details.

Apologies for the lack of response. In the meantime, there are wheels for M1 (or higher), so closing this issue.


:memo: Docs: Update memoryClient jsdoc

Description
Concise description of proposed changes
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

#1234  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @roninjin10 and the rest of your teammates on  Graphite


[Bug] ValidateToken does not embed the inner exception

Which version of Microsoft.IdentityModel are you using?
The dev branch.
Where is the issue?

[X] M.IM.JsonWebTokens
[ ] M.IM.KeyVaultExtensions
[ ] M.IM.Logging
[ ] M.IM.ManagedKeyVaultSecurityKey
[ ] M.IM.Protocols
[ ] M.IM.Protocols.OpenIdConnect
[ ] M.IM.Protocols.SignedHttpRequest
[ ] M.IM.Protocols.WsFederation
[ ] M.IM.TestExtensions
[ ] M.IM.Tokens
[ ] M.IM.Tokens.Saml
[ ] M.IM.Validators
[ ] M.IM.Xml
[ ] S.IM.Tokens.Jwt
Other (please describe)

Is this a new or an existing app?

b. The app is in production and I haven't upgraded Microsoft.IdentityModel.*, but started seeing this issue by rereading my previous PR.
Repro
string token = "abdc.efgh";
var parameter = new TokenValidationParameters
                        {
                            IssuerSigningKey = KeyingMaterial.JsonWebKeyRsa256SigningCredentials.Key,
                            ValidAudience = Default.Audience,
                            ValidIssuer = Default.Issuer,
                        };
var result = new JsonWebTokenHandler().ValidateToken(token, parameter);

Expected behavior
I should expect result.Exception.InnerException to not be null.
Actual behavior
The innerException is null.
Possible solution
This is very awkward... I made this bug, I intended to fix #1965 . But after rereading my pr #1969 a month later... I realized I passed the inner exception to the FormatInvariant helper function and not as the second argument of new ArgumentException.
I'm writing a PR that does the job properly and add Unit tests verifying that the inner Exception is indeed passed on to the caller instead of being silently dropped.

@Esurnir thanks, PR committed.


Feature: Option to use standard lambda instead of lambda@edge for router

Hey James,
Thanks for creating this library!
It's my first time using the serverless framework, but your example has helped me to get started and deploy my app via serverless 😎.
One thing I want to try to avoid is to deploy my stack to us-east-1 due to data compliance. However, it doesn't currently seem possible as the router has direct reference to CloudFront, and also enforces the use of custom headers. As you're aware, lambda@edge is only deployable to us-east-1 and as such I'd like to decouple from it, if possible.
I'm thinking of having an option in the adapter, which allows us to toggle the use of the router using lambda@edge, or standard lambda:
// svelte.config.js
import serverless from "@yarbsemaj/adapter-lambda";

/** @type {import('@sveltejs/kit').Config} */
const config = {
    kit: {
        adapter: serverless({
            edgeRouter: false // default true to avoid a breaking change
        })
    }
};

export default config;

I'm happy to start looking into this and attempting to provide a PR if you think it's achievable.

Hi @alex-way
Thank You for your interest in my project!
White you are correct that lambda@edge functions are deployable to us-east-1 (unfortunately) in reality they run all over the world in the location of the cache node that services the users request (hence the edge in the name).
However, it should not be necessary to deploy whole stack to us-east-1, I just wrote the serverless file this way for simplicity to get people up and running. What you would have to do is have two stacks (one with the ssr function and the bucket, and one with the cloudfront and the edge function). The one with the SSR function can be deployed first to the region of your choice, then using cloudformation outputs you can reference the bucket url and function url from the first stack in the second. You will just have to remember to deploy both stacks.
I would do this by having two yml files with diffrent names and using the CLI to specify which one you want to deploy.
I hope this helps you with your project.
A note of caution tho, I would hold off building anything complex you want to able to maintain until SvelteKit hits v1 as the team are often making breaking changes to the framework as its developed.


Merge 2.4.x into 2.5.x

@IonBazan will you resolve conflicts here or shall I?

@malarzm it seems that I can't really do that as it would require a direct push to 2.4.x or 2.5.x but that's not possible due to branch protection rules. Are you able to assist with this?

Sure, will do later :+1: Or if you'd beat me to it you can perform merge on your branch based on 2.5.x, resolve conflicts there and send a normal PR :) IIRC that's what automatic merge-up on release is doing


backport to 1.20.4 possibly?

as it is in the title

As other mods like Cubes Without Borders exist, I think Concentration isn't necessary for lower version though that mod doesn't work on my pc. Another reason is the version naming is already mess up

Okay, actually I can backport for NeoForge platforms in the future, as Cubes Without Borders updated, I won't update Fabric version anymore.
I'll put a list here to list all the versions I will backport:

[ ] NeoForge 1.20.6 (Updated with the latest code in 1,21)
[ ] NeoForge 1.20.5
[ ] NeoForge 1.20.4
[ ] NeoForge 1.20.3
[ ] NeoForge 1.20.2
[ ] Forge&NeoForge 1.20.1
[ ] Forge1.20

Plz close this issue after I published all the backports

1.20.6 backport finished, but not publish to modrinth yet

1.20.6 & 1.20.1 finished and published to modrinth

porting list moved to #36


Wrong flag country

Moldova: https://www.google.com/search?q=moldova+flag&source=lnms&tbm=isch&sa=X&ved=0ahUKEwih77Om-ejhAhUdAGMBHbhXAQUQ_AUIDigB&biw=1642&bih=1255
MD

What is wrong?
MD:

this is not md flag

you get it from here: https://www.flaticon.com/search?word=moldova


Changed to use add_field; Removed assert.

This is a tiny pull request with just a couple things.

Replaced assert statement with a regular if statement. assert should really only be used for debugging.
Changed to use add_field and set the copy keyword to False so that the passed array itself will be used, not a copy.

If you intended the assert to be really just for debugging purposes, then leave it in.
If you want a copy of the channel__mask array to be used, remove the copy keyword.

Is the second of these necessary? All the docs say that the default behaviour of copy in add_field is to be set to False...?

Oops. I had a quick look and it appeared the default was True. My mistake. You are corerct, if you want to use a reference to the array, the copy keyword is not necessary.
However, @cmshobe, if you decide you do want a copy of the array to be used you'll need to set it to True.


Don't unnecessarily suffix with periods

For #8392

Codecov Report

Merging #8395 (7584452) into main (9903ace) will decrease coverage by 0%.
The diff coverage is 25%.

@@          Coverage Diff          @@
##            main   #8395   +/-   ##
=====================================
- Coverage     71%     71%   -1%
=====================================
  Files        375     375
  Lines      23791   23793    +2
  Branches    3663    3665    +2
=====================================
  Hits       17116   17116
- Misses      5189    5195    +6
+ Partials    1486    1482    -4

Impacted Files
Coverage Δ

...client/datascience/errors/pythonKernelDiedError.ts
50% <0%> (-6%)
:arrow_down:

src/client/datascience/errors/errorHandler.ts
57% <100%> (ø)

...ent/datascience/jupyter/pythonVariableRequester.ts
68% <0%> (-6%)
:arrow_down:

src/client/datascience/jupyter/kernels/kernel.ts
77% <0%> (-1%)
:arrow_down:

src/client/debugger/jupyter/kernelDebugAdapter.ts
77% <0%> (+<1%)
:arrow_up:

src/client/datascience/jupyter/kernelVariables.ts
58% <0%> (+1%)
:arrow_up:

.../datascience/editor-integration/codeLensFactory.ts
89% <0%> (+1%)
:arrow_up:

...ence/editor-integration/cellHashProviderFactory.ts
100% <0%> (+2%)
:arrow_up:

...ook/intellisense/pythonKernelCompletionProvider.ts
76% <0%> (+3%)
:arrow_up:


IPSA not processing MGFs

Hi there,
IPSA does not seem to be processing MGF files. Once the MGF is loaded, nothing happens and IPSA does not prompt me for the modification files.
Is there something going on with the tool?
Thanks,
Pedro

Hey Pedro,
Would you be willing to email me an example MGF that you're having trouble with? It'll help me troubleshoot whatever is breaking faster. My email is<EMAIL_ADDRESS>Dain

Hey Pedro,
Would you be willing to email me an example MGF that you're having trouble with? It'll help me troubleshoot whatever is breaking faster. My email is<EMAIL_ADDRESS>Dain

Thanks, Dain. I have sent you an email with the MGF and identification files.

Hi, I'm having the exact same problem with my mgfs. Here's how the beginning of my mgf file looks:
BEGIN IONS
TITLE=controllerType=0_controllerNumber=1_scan=14334
SCANS=14334
RTINSECONDS=4601.4971
PEPMASS=374.724273681641<PHONE_NUMBER>78899993
CHARGE=2+
97.10087585 2.0911588669
110.1502533 10.2337141037
111.1322021 9.5202598572
112.1283417 48.1481895447
.
.
.
END IONS

I'd be grateful for some guidance on this.
Thanks and best regards,
Hassan