Add --did-you-mean=false option

Motivation

Sometimes a change to make something go from untyped -> typed introduces new
errors. Many of these errors show up as "Method does not exist" errors. But then
a case like this can happen:

The new type is actually too broad. The type went from T.untyped to
Parent. Sorbet reports an error like "No method foo on Parent"

But in this particular case, the method foo does actually exist at runtime,
because at runtime the type is always Child.

There is a similar method on the parent, called foot, and Sorbet thinks that
the call to foo is a typo for foot, so it inserts a "did you mean"
autocorrect.

These situations are problematic for large codemods. In those cases, it's
preferred to simply ignore the did you mean suggestions.
Test plan

See included automated tests.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_O2xkgUakAEseLy
→ https://go/builds/bui_O2xk2IFIh9GRtG
→ https://go/builds/bui_O2xkhAqoJbaK3W


Fixed Change last exclamation point to dot and link issue for browsers

#10609

I've accessed it with that url(http://<IP_ADDRESS>:10123/main/ApiGateway@SPRING_BOOT/5m?inbound=1&outbound=4&wasOnly=false&bidirectional=false), but I can't WebSite.
The link to Live Demo (http://<IP_ADDRESS>:10123/) could not be reached on the https://pinpoint-apm.github.io/pinpoint/ WebSite either.

Hello, I'm so curious about why I can't access the site. Can you teach me, please.

Duplicate issue: https://github.com/pinpoint-apm/pinpoint/issues/10520
Currently demo web is not available.

@ga-ram

ga-ram
I see there is the same issue. Thank you so much for your reply.


remove doc paragraph about manual artifacts upload

With the 0.5.4 release, artifacts are uploaded at on-run-end hooks. Thus, it is no longer required to trigger it manually, so this specific paragraph became obsolete.

Thank you @kopackiw , congrats on your first contribution!!


Delete old branches

@priseborough Would you be able to do a pass and delete all old branches which are not relevant anymore or have been merged to master in some form? We have too many stale ones.
Some of the branches have useful features which could be picked up and developed further by others, or are useful for debugging, and it would be good to know what is still useful.

Done


[EG] GA the  publishing the Cloud Event to partner topic

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-messaging-eventgrid


Change update_attributes to update_columns

There are two problems using update_attributes:

It is deprecated and was removed in Rails 6.1
It validates the record. If a user updates their OTP code on their device, but the record fails to save, the two will be out of sync. Other devise extensions skip validations for this reason, so we should too.

This change is a simple replacement of update_attributes with update_columns.

Wrong repo :/


Frequent data gaps with MS600 (GEN3) inverter

With an MS600 (GEN3) inverter with DSP version 5.1.09, I regularly see gaps in the data transmission. An initial analysis has shown that the TCP connection is stable and TCP keep-alive packets are also being answered.
We may be able to get the inverter out of this state by reestablishing the connection. I am not aware of a way to restart the DSP using a magic packet.
I will try to recognize the situation by time monitoring and then close the TCP connection from the proxy side (sending a FIN packet) in the hope that the inverter will then send data again immediately.

I see the same gaps with my MS600 (using dev-0.8.0, 10 sec interval. I switched off cloud. The gap is very regularly: every ~13 min, 56-58 request (or similar). Looks like your gaps have the same frequency - interval 1 min, gap each hour.
Interesting point: the gaps are shorter too -> same amount of request before connection reset?
Maybe the MS600 accepts only a max number of requests per connection. Reset connection by default after 50 requests?

That is interesting. Today I also saw very long gaps (up to 15 minutes). So not only the Modbus responses are missing, the inverter itself is not sending any packets either.
During the analysis, I noticed that I had forgotten to call the close() function to delete internal structures during a graceful disconnect. Half-open TCP connections could be the result. Fix is checked in the 0.8.0 branch.
Today I also implemented a monitoring function that resets the connection after 2.5 minutes without receiving any packets. This will hopefully keep the dropouts to a minimum.
However, the actual cause is not yet clear to me.
Which DSP firmware do you have? I have V5.1.09 on it after an update to 800VA.

I have an idea.
Before the Modbus payload, there are four bytes (offset 0x17 directly after the message ID), which could be a packet counter or a reset timestamp. I have set this byte to a fixed value of b'\x00\x01\xa3\x28'.
But in my traces, I saw that this value changes with every request from the TSUN cloud. I have five examples:
2024-04-30 10:32:37   00 01 a3 06
2024-04-30 10:37:41   00 01 a3 08
2024-04-30 10:52:54   00 01 a3 0e
2024-04-30 11:33:28   00 01 a3 14
2024-04-30 15:20:23   00 01 a3 28

And you are wright, the resets are very regular. We can see it in the Power On Timegraph:

Now I check, what will happen with al four bytes set to 0x00.

Today I saw a gap from 13:15 until 18:00. My timeout handler worked as expected and close the TCP connection properly (server loop stoped). But the inverter didn't establish a new connection.
Maybe I have a network problem. It is possible, that the inverter roamed to another Accesspoint in that moment. (I have three APs here) But wenn the inverter don't make a reconnection, then I see no chance to mitigate the problem from the proxy side.
I will invest some more time to analyse it.

I also had gaps larger than usual (AVM AP) this afternoon, so likely no local issue on your side.
I attach my report from TSUN website.
device-report-2024051319514161.xlsx

Today a German TSUN handler wrote on his web page, that beginning with the 20th of May customer can switch to the Smart App even for GEN3 inverters. Maybe this will include a new firmware which supports the SolarmanV5 protcol.
The article is only in German available: https://priwatt.de/blog/tsun-wechselrichter-update-800-watt/

With the proxy version 0.10 the connection is really stable here. But I have to deactivate the polling mode. It seems to me, that the inverter has a problem with the frequent MODBUS request every minute.


Add BetaGeoBetaBinom Distribution Block

This PR resurrects https://github.com/pymc-labs/pymc-marketing/pull/188  to partially address https://github.com/pymc-labs/pymc-marketing/issues/176.
The Beta-Geometic/Beta Binomial model is a CLV model for discrete, non-contractual use cases - a good example would be sporting events. This PR adds a distribution block to be used for posterior predictive checks and the logp in the full model which will be added in a separate PR.
For now this is a draft PR because I can't get the logp to return the correct values; for reference please see (5) on p4 of the research paper:
https://www.brucehardie.com/papers/020/fader_et_al_mksc_10.pdf
I could use some help with the pytensor functions this requires.

:books: Documentation preview :books:: https://pymc-marketing--431.org.readthedocs.build/en/431/

I'll try to check this week @ColtAllen

I pushed a version of the logp that works with Scan. I think we can make it work without a Scan, by evaluating on the maximum T-tx range. I just don't know if this results in much wasted computation in general use cases (for instance if there's one datapoint with a very large range, but most other datapoints have smaller ranges)

I added the likelihood expression to the docstrings, along with a dev notebook. Not sure if the LaTeX rendered properly in the docstrings though, because the docs build is failing due to a pytensor issue:
ImportError: cannot import name 'vectorize' from 'pytensor.graph'
(/home/docs/checkouts/readthedocs.org/user_builds/pymc-marketing/envs/431/lib/python3.10/site-packages/pytensor/graph/__init__.py)

I pushed a version of the logp that works with Scan. I think we can make it work without a Scan, by evaluating on the maximum T-tx range. I just don't know if this results in much wasted computation in general use cases (for instance if there's one datapoint with a very large range, but most other datapoints have smaller ranges)

In general I don't see very large values of T being a common use case with this model. Is Scan the most performant approach? If so I'm fine leaving it as-is.

I added the likelihood expression to the docstrings, along with a dev notebook. Not sure if the LaTeX rendered properly in the docstrings though, because the docs build is failing due to a pytensor issue:
ImportError: cannot import name 'vectorize' from 'pytensor.graph'
(/home/docs/checkouts/readthedocs.org/user_builds/pymc-marketing/envs/431/lib/python3.10/site-packages/pytensor/graph/__init__.py)

It's now called vectorize_graph

Is Scan the most performant approach? If so I'm fine leaving it as-is.

Scan is the simplest approach

Updated my dev environment to use vectorize_graph. Do the package dependencies also need to be updated?

Tests are still failing with vectorize_graph. Do the library dependencies require updating?

Yes you need to bump the oldest supported pymc version to the most recent

In here and in the ci wofkflow file: https://github.com/pymc-labs/pymc-marketing/blob/main/pyproject.toml#L20

I had to increase rtol because we're comparing against the data simulation function in lifetimes, and it lacks a random seed.  If the sim_data function looks good and I'm indexing properly in this test, this should be good to go.
If https://github.com/pymc-labs/pymc-marketing/issues/352 gets resolved in the future, adding logp and sim_data directly to the model class may be more performant than a separate distribution.

@ColtAllen this looks good! I wanna merge this one and iterate (I can help with that). I have just two requests :D :

Remove commented code
Fix pre-commit (I think Ruff is complaining)

Otherwise LGTM.

First point is done, but Ruff is complaining about a LaTeX expression in the docstring that is too long. I'm not sure if there's any way to shorten it that doesn't prevent the docstring from rendering properly.

First point is done, but Ruff is complaining about a LaTeX expression in the docstring that is too long. I'm not sure if there's any way to shorten it that doesn't prevent the docstring from rendering properly.

Doesn't seem to be possible at the moment based on this ruff issue. Maybe you can define the string outside of the class then use f-string. Could reduce 8 something characters on a line

I think we can simply do it as in https://github.com/pymc-labs/pymc-marketing/blob/main/pymc_marketing/clv/distributions.py#L407

Thanks @ColtAllen ! Let's now work on the model 🎉 !


Use the backend

Now that the backend is up and can provide info, the frontend should be hooked up with it.

Shall I do this

Hi ! Thank you for your interest in our little project.
However we are using this as our personal project to teach ourselves how to use Vue and Nuxt. For the moment we prefer to it ourselves.


Getting ads instead of audio vidéo

I had no idea that google was also using their "playback" query to provide their ads (i was using ProtonVPN + Netshield).
I'll find out how to block them
#2 suspended until this issue is not closed

Waiting for solving #5


Can't move orders in ToS after Schwab migration cause of stopType not set!

Is your feature request related to a problem? Please describe.
After migration I noticed order templates were missing stopType which ToS would immedicatly reject if you try to move the order with mouse in a chart! and it wasn't like that with TDA..I noticed error messages in ToS complaining and looked at my old TDA order templates..and I was using stopType=Standard  and we are missing that across all orders in schwab migration!
After I added it to few of my buy order limit temperates and others sell orders and etc..I recognized that was the issue..and now I also need it across all order types in schwab-py like equity_sell_short_limit and equity_sell_short_market
Describe the solution you'd like
add "stopType": "STANDARD" to all templates in schwab py
Describe alternatives you've considered
None, u can't move the orders in ToS chart,  if stopType is not order templates!
Additional context
Ping me back when u put it into build and I can test it right away and let u know if I can drag the order around in the chart or I get a Reject error no stoptype defined!

I could use some more information before I can dig into this: can you share code that illustrates the orders that exhibited this issue, plus code in which this issue is not present?
Also, I'm not familiar enough with TOS to fully understand the issue. Any chance you can share a screen recording of what's happening on the TOS side before/after?

So here is my working sell limit order template that I use:
# working limit order
    order_template = {
    "session": "SEAMLESS",
    "duration": "DAY",
    "orderType": "LIMIT",
    "stopType": "STANDARD",
    "price": mark ,
    "orderLegCollection": [
        {
            "instruction": "BUY",
            "instrument": {
                "assetType": "EQUITY",
                "symbol": symbol
            },
            "quantity": qty
        }
    ],
    "orderStrategyType": "SINGLE"
    }

If I remove stopType or if any template order missing stopType , then I can't move in ToS . When I attemp to drag the sell limit order up and down the chart, then I get a Reject can't move when stopType is not defined!

Fixed on TOS's side


No Plausible dashboard when WordPress is installed in subdirectory

When WP is running in a subdirectory, like with roots.io Bedrock (mydomain.com/wp/wp-admin/), Plausible WP plugin doesn't seem to be able to connect to plausible for displaying the embedded analytics.
The site code used in plausible is mydomain.com%2Fwp, but from the WordPress side this probably gets interpreted as mydomain.com/wp, which results in an 404 on plausible.

The same thing happens when you have the wordpress installation in a subdirectory in my case /site/ but the domain points to that subdirectory without /site/ in your url.

@Dan0sz  We're having the "same" problem, adding Plausible to subsites on a WordPress multisite with  /subsite.
Our issue here is that the %2f is stripped away when I save the shared link.
Btw, we're developing a multisite add-on for plausible, making it easy to activate/deactivate plausible pr site (we have 120+ sites). I'll make the multisite plugin public available when it's done.
Btw2, our get_domain looks like this:
// Use domain mapping domain if exists, else get from standard WP settings.
if ( \function_exists( '\domain_mapping_siteurl' ) && 'NA' !== \domain_mapping_siteurl( 'NA' ) ) {
	$default_settings['domain_name'] = \domain_mapping_siteurl( false );
} elseif ( \function_exists( '\get_site' ) ) {
	// Multi site, get from blogs table.
	$site = \get_site();
	if ( $site instanceof \WP_Site ) {
		$default_settings['domain_name'] = \untrailingslashit( $site->domain . $site->path );
	}
} else {
	// single site, get from options table.
	$url                             = \get_option( 'home' );
	$default_settings['domain_name'] = \preg_replace( '/^http(s?)\:\/\/(www\.)?/i', '', $url );
}

$plausible_analytics_settings = \array_merge( $plausible_analytics_settings, $default_settings );
\update_option( 'plausible_analytics_settings', $plausible_analytics_settings ); // update with new options.

@metmarkosaric Being impatient, have to deploy to prod soon, here's a quick fix:  https://gist.github.com/soderlind/6d6735baeab379b4d7e1e5497cd8581b

@Dan0sz May I suggest that you replace Helpers::clean with the following:
public static function clean( $var ) {
	// If the variable is an array, recursively apply the function to each element of the array
	if ( is_array( $var ) ) {
		return array_map( [ __CLASS__, __METHOD__ ], $var );
	}

	// If the variable is a scalar value (string, integer, float, boolean).
	if ( is_scalar( $var ) ) {
		// Parse the variable using the wp_parse_url function.
		$parsed = wp_parse_url( $var );
		// If the variable has a scheme (e.g. http:// or https://), sanitize the variable using the esc_url_raw function.
		if ( isset( $parsed['scheme'] ) ) {
			return esc_url_raw( wp_unslash( $var ), [ $parsed['scheme'] ] );
		}
		// If the variable does not have a scheme, sanitize the variable using the sanitize_text_field function
		return sanitize_text_field( wp_unslash( $var ) );
	}

	// If the variable is not an array or a scalar value, return the variable unchanged.
	return $var;
}

Hi @soderlind!
Thanks for the suggestion. Can you make a PR? Saves a lot of time. Please also explain the improvements compared to the previous approach (my predecessor wrote that code, so I haven't studied it yet)

btw, using esc_raw_url will preserve %2f, my code above was correct.


Reload frontend upon changing configuration

Currently the frontend is build and served with the values in app-config.yaml. Upon changing the configuration the back end gets refreshed but not the frontend.
Feature Suggestion
Refresh the frontend to reflect the configuration changed or added, for instance:

If a new plugin is added and configured in the app-config.yaml, that plugin should show up in the frontend when the configuration is read. For instance, if I add a sonar plugin to my config, I don't want to rebuild the frontend, but I want it to show up in the UI once the config is reloaded.
If an existing plugin config changes, that should be reflected in the frontend configuration is read. For example, if I change the sonarqube url in my config, it should be reflected in the frontend

Context
We are building an admin page to change the configuration without rebuild backstage with every new plugin we add.

Hi! This is a neat idea. It'll take some work and requires some form of event bus between the backend and frontend. That's an idea that we've had in the back of our minds before, but no solid plans to work on it in the near term.

Hey @freben Would you be able to provide us with idea about what needs to be done. And we can get one of our JS dev to try their hands at it? May be we can arrange a virtual meet?

I think in this instance, I'd recommend holding off a bit. Since we want to get some backing design for this settled first, and we might be looking at that some time in the near-to-mid-term, and the only end user impact is that you have to reload the browser on config changes ... probably best to not do anything for this specific thing right now.

Realized there's a bit of context lacking here, would this be for local development or production apps? As freben mentions we're not really comfortable with the complexity that this would add to a production deployment, but for local development we could totally get this going.

Implementing the reload without significant user impact is pretty tricky and adds a lot new complexity into the mix. Local development is simpler because it's just a matter of releasing the page, can't really do that in production tho.
That's unless we're missing something, do you have a high level idea of how it could be implemented with little user impact and not much additional complexity?

@Rugvip how can refreshing the configuration impact user experience? please bear in mind that I'm not talking about auto refreshing browser. I'm just request when the config changes and the user refreshes the page manually they get new version of the frontend without the need to rebuild/restart backstage.

Hey @Rugvip, is this something you guys can put on your roadmap?

@muhamadto sorry, it's not something we have space to prioritize, but happy to guide and/or review contributions!


Wrong URL for files in "../folder"

Operating System: Windows 10 x64
Node Version: 10.0.0
NPM Version: 6.0.0
webpack Version: 4.6.0
file-loader Version: 1.1.11

This issue is for a:

[x] bug
[ ] feature request
[ ] modification request

Code
@font-face {
    src: url("../fonts/myfont.woff")
}

webpack.config.js
            {
                test: /\.(ttf|woff)$/,
                use: [{
                    loader: "file-loader",
                    options: {
                        name: "[name].[ext]"
                    }
                }]
            }

Expected Behavior
Without additional flags (such as useRelativePath), all generated files are put in same folder, like this:
dist
  +--- entry.js
  +--- styles.css
  +--- myfont.woff

In styles.css, the URL to the font should be url("myfont.woff"). Thus, whether the website is deployed to root path (e.g. http://host/), or a sub path (e.g. http://host/mysite), the URL will work. Because from http://host/mysite/styles.css, the proper absolute URL of the font will be calculated: http://host/mysite/myfont.woff.

Actual Behavior
In styles.css, the URL to the font is url("/myfont.woff") (an extra / at the beginning). This will only work when the website is deployed to root path, because it incorrectly assume the font is located at root.

How Do We Reproduce?
Import a CSS file which uses a font in ../folder.

Sorry, seems to be caused by wrong config.


fix: 5102 - fixed the path of the database to backup

What

Just trying to fix #5102, but I'm not sure of anything.
The error seems to be Subdirectories are not allowed for domain database
Not sure if it means that we should not put subdirectories or if the subdirectory we put is not allowed.
Having a look at https://developer.android.com/guide/topics/data/autobackup?utm_campaign=autobackup-729&utm_source=dac&utm_medium=blog#IncludingFiles, we see that the domain parameter specifies the (allowed? impliciit?) directories

domain Specifies the location of resource. Valid values for this attribute include the following:

database: directories returned by getDatabasePath(). Databases created with SQLiteOpenHelper are stored here.

For the record (1) the database folder created by our app is databases/ (as returned getDatabasesPath()).
Does that mean that we should put databases/smoothie.db, or just smoothie.db? Let's try, it's either with or without explicitly mentioning databases/.
For the record (2) the amount of backed-up data is limited to 25 Mb. Which means that we would probably be better off NOT including the sqflite database (which is meant to grow far beyond 25 Mb), so that the rest of the data can be backed up. Then comes the question: how to make sense of lists of barcodes if we don't have locally the matching products?
Fixes bug(s)

Fixes: #5102

cc @linsui

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 9.53%. Comparing base (4d9c7fc) to head (38ae095).
Report is 43 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5103      +/-   ##
==========================================
- Coverage     9.54%   9.53%   -0.01%
==========================================
  Files          325     327       +2
  Lines        16411   16520     +109
==========================================
+ Hits          1567    1576       +9
- Misses       14844   14944     +100

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

https://gitlab.com/linsui/fdroiddata/-/jobs/6305195522 It works, thanks!

https://gitlab.com/linsui/fdroiddata/-/jobs/6305195522 It works, thanks!

@linsui Cool!
cc @teolemon @g123k for PR approval if relevant.

Thank you @teolemon @linsui for your review and tests!


image upload http error

image upload gives a http error on shared hosting but that's work fine at localhost. What could be missing at hosting?

Hi, I also got HTTP error,
It worked !!! when I chmod -R 777 uploads dir and install php-gd.


Enable probot-stale for this repo

Any objection to / thoughts on enabling the probot-stale integration for this repo to help clean up stale issues?
/cc @bkeepers

I don't mind stale issues. Honestly, I like them. When a legitimate decade old bug finally gets resolved in an open source project, I'm tickled. Here, all of the ones open I intend to resolve eventually. But if it's bad form to keep issues open with no timeline for resolution/I have terrible taste, feel free to enable bot or otherwise mass close.


[AMBARI-25008] Set unique version tag for config created by Add Service

What changes were proposed in this pull request?
Make version tag for configuration created by Add Service request unique by appending timestamp.  The goal is to allow add-delete-add-... cycle of the same service.  Currently these steps lead to exception when creating config with tag ADD_SERVICE.
How was this patch tested?
Manually tested.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4705/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4707/
Test PASSed.


question about models

i was caught today by models
in yii\db\ActiveRecord you should declare attributes in phpdoc with '@property', if declared in class as public you lose access to data from database for  column with same name, as object will always return data from declared attribute. so, you MUST NOT  declare attributes in class
in yii\base\Model you MUST declare attributes in class instead, because otherwise you will get unknown property error on access.
yii\db\ActiveRecord extends yii\base\Model but behave differently.
should it throw an error that it is not allowed or something? because this thing just silently break code if database attribute equals to declared one in class.

i used php5.6 x64 on windows
example of code below. php ignores getter if public attribute was declared
class A
{
	public $a = 'a';
	private $b = 'b';

	function __get($n)
	{
		return 'd';
	}

	function __set($n,$v)
	{
		$this->$n = $v;
	}
}

$aa = new A();
$aa->c = 'c';

var_dump($aa, $aa->a, $aa->b, $aa->c);

object(A)[1]
  public 'a' => string 'a' (length=1)
  private 'b' => string 'b' (length=1)
  public 'c' => string 'c' (length=1)
string 'a' (length=1)
string 'd' (length=1)
string 'c' (length=1)

to extend with code like (not sure about impact on perfomance though)
class A
{
	public $a = 'a';

	function __construct()
	{
		if(property_exists(get_called_class(),'a')) {
			throw new Exception('[a] declaration is not allowed');
		}
	}

This is normal PHP behavior so I don't think there should be any warnings.


Issue with testing-library/react and jest

`import React from "react";
import { render } from "@testing-library/react";
import App from "./App";
test("Material text should be inside app", () => {
const { getByText } = render();
const linkElement = getByText("Material");
expect(linkElement).toBeInTheDocument();
});`
While running the most basic test I receive an error
` \node_modules@mui-treasury\layout\index.js:1
({"Object.":function(module,exports,require,__dirname,__filename,global,jest){export * from './components';
^^^^^^
SyntaxError: Unexpected token export

  17 | import Container from "@material-ui/core/Container";
  18 |
> 19 | import {
     | ^
  20 |   Root,
  21 |   Header,
  22 |   Sidebar,

  at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
  at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
  at Object.<anonymous> (src/containers/Layout.js:19:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        7.771s
Ran all test suites related to changed files.
FAIL src/App.test.js
`

#472
Because @mui-treasury/layout is not transpiled as cjs and contain es6 code. You need to add babel-jest to transpile it. I add example how to config jest in create-react-app.
// in package.json
"jest": {
    "transform": {
      "\\.(js|ts|tsx)?$": "babel-jest"
    },
    "transformIgnorePatterns": [
      "/^((?!node_modules/@mui-treasury/layout$).)*$/"
    ]
  },


Automated cherry pick of #6014: scheduler: fix network predicate get wrong free port

Cherry pick of #6014 on release/3.1.
#6014: scheduler: fix network predicate get wrong free port

/lgtm

/approve


task/install: should pass node as config to get_upgrade_version()

Signed-off-by: Kefu Chai<EMAIL_ADDRESS>

this addresses the failure of http://qa-proxy.ceph.com/teuthology/kchai-2017-06-28_07:28:49-rados-wip-kefu-testing-distro-basic-smithi/1337486/teuthology.log
2017-06-28T12:03:02.617 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 89, in run_tasks
    manager.__enter__()
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/__init__.py", line 433, in upgrade
    upgrade_common(ctx, config, upgrade_old_style)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/__init__.py", line 365, in upgrade_common
    upgrade_version = get_upgrade_version(ctx, remote, node)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/__init__.py", line 24, in get_upgrade_version
    builder = _get_builder_project(ctx, remote, config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/util.py", line 14, in _get_builder_project
    config.get('project', 'ceph'),
AttributeError: 'Remote' object has no attribute 'get'
2017-06-28T12:03:02.651 ERROR:teuthology.run_tasks: Sentry event: http://sentry.ceph.com/sepia/teuthology/?q=2c222d6fbd4f4803ab0ca1e527286b7a
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 89, in run_tasks
    manager.__enter__()
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/__init__.py", line 433, in upgrade
    upgrade_common(ctx, config, upgrade_old_style)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/__init__.py", line 365, in upgrade_common
    upgrade_version = get_upgrade_version(ctx, remote, node)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/__init__.py", line 24, in get_upgrade_version
    builder = _get_builder_project(ctx, remote, config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/install/util.py", line 14, in _get_builder_project
    config.get('project', 'ceph'),
AttributeError: 'Remote' object has no attribute 'get'


Update cov_filter.yml

pin python to 3.10 to fix pyd4 issue

Hi Tim,
I'm trying to install snpArcher and I'm running into the pyd4 issue. I tried a few things, including installing it with python 3.10 instead of 3.11, but nothing has worked. Did you find another solution since this last post?

Thank you, that worked!
On Thu, Apr 4, 2024 at 6:01 PM Cade Mirchandani @.***>
wrote:

@atigano https://github.com/atigano, yea there is something weird with
the d4 htslib build script. Unfortunately the maintainer hasn't responded
to issues regarding this. Even more frustrating, I have been able to build
the cov_filter env on some servers, but I can't track down what is special
about those servers. For now, you can set cov_filter: False in the
config.yaml to run the workflow w/o the pyd4 dependency. We are
discussing dropping pyd4 in #170
https://github.com/harvardinformatics/snpArcher/pull/170.
—
Reply to this email directly, view it on GitHub
https://github.com/harvardinformatics/snpArcher/pull/131#issuecomment-2038560954,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADJ6ZI7LVCAXGNKUO5DBHQTY3XZU7AVCNFSM6AAAAAA5WD2OCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYGU3DAOJVGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


[tests-only][full-ci] Adding API tests to check file versions of a file inside a apace

Description

Related Issue

Part of : https://github.com/owncloud/ocis/issues/7824

Motivation and Context

How Has This Been Tested?

test environment:
test case 1:
test case 2:
...

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

Please, add some description. Mentioning the test scenarios added would be helpful


How can we help?
I would like someone else to build the manifest.
Please read and ensure the following

[X] The installer meets the above requirements

Please provide the following information
Download Page Url: https://www.geeks3d.com/furmark/downloads/
Publisher: Geeks3D
Package Name: Geeks3d.FurMark
Description: FurMark is a lightweight but very intensive graphics card / GPU stress test on Windows platform.
Package Version: <IP_ADDRESS>
Installer URL: https://geeks3d.com/downloads/2023p/FurMark_<IP_ADDRESS>_Setup.exe

duplicate of 137134

duplicate of #137134


Metadata API: Add Key attributes types validation

Fixes #1438
Description of the changes being introduced by the pull request:
In our discussion with @jku , we come to the conclusion that we want
to verify that all Key attributes contain values in the expected types,
but at the same time, we don't want to focus on validating the semantics
behind them.
The reason is that having a Key instance with invalid attributes is
possible and supported by the spec.
That's why we have a "threshold" for the roles meaning we can have up to
a certain number of invalid Keys until we satisfy
the required threshold.
Also, for deeper semantic validation it's better to be done in
securesystemslib which does the actual work with keys.
Signed-off-by: Martin Vrachev<EMAIL_ADDRESS>Please verify and check that the pull request fulfills the following
requirements:

[x] The code follows the Code Style Guidelines
[ ] Tests have been added for the bug fix or new feature
[ ] Docs have been added for the bug fix or new feature

Should I assume from this PR that we want to implement the validation checks of the various metadata classes in the constructor and not in the deserialization methods (from_dict())?

Should I assume from this PR that we want to implement the validation checks of the various metadata classes in the constructor and not in the deserialization methods (from_dict())?

From my understanding, yes. The reason is that this way no matter how we are creating the Key objects -  directly through __init__ like Key() or calling Key.from_dict() which after that will call Key.__init__ we have validation.

I experimented with a shorter variation.
In this case, we will receive KeyError when accessing the public key value val = keyval.get("public") and the exception will not point to a long if a line with checks and of course the code is shorter and at least to me looks readable :D.


Bump Scalaz to 7.2.25

A bump until decision is made on #67

Hey @szareiangm, sorry, but this is also wontfix for almost same reasons as #90. Minor versions of Scalaz are incompatible with each other, which means we'll have to bump Scalaz simultaneously in all our applications and libraries using Iglu Client. On the bright side, we're all agree on #67 that we'll migrate to cats in all our codebases (migration should be much safer).


fix(requirements): fix for security

remove py35 requirements and upgrade cryptography version

Codecov Report

Merging #157 (25e66d2) into main (184eb81) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #157   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           33        33
  Lines         3842      3842
=========================================
  Hits          3842      3842

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


next launch is 07-02, not 07-04

Where'd you get 07-04 from?

Fixed. Thanks.

Turns out it was 07-05 after all. :)


For rest-framework-integration, note that Dockerfile might need to be updated for djangorestframework temporary dependencies!

Looks like it's actually fine!


News mobile

add space between cards

i can't replicate the issue

i can't replicate the issue

@jonarivado this is also still not working.


Can i adapt your code for Multi-objective NSGA - 2

Hi, Your code is really good but Can i adapt your code for Multi-objective NSGA - 2 for solving feature selection problem, if it does how do i go about it

NSGA-2, by nature, is a multi-objective optimization algorithm. So, yes, this library can be used for as a MOEA for feature selection.
Unless you require to change the internal working of NSGA-II for your purpose, I suggest you use this library as an external dependency to your project. This library is available on Maven Central.
For usage, please go through Getting Started, Introduction and Documentation section of the wiki. Let me know if you are unable to understand any section.

Thanks


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: c1ded46ae8d5f00dc4d5475d4fdc7efa9cfaf695
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: b8f4cad92b87aaed5e91eb8703a609381b9c7dc0
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 8af15aa12faad9bf83854a6dddddd42f717b7574
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: fb728cdfa9b88fa0491acc6d37d355b2d349a836
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 0b1c1550e4d45e3bf59b4247898ce953a1abb936
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 752a8402463f130962ab9fcafa43a20a1ddbd77e
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 23c34553d449fa65768c3dae7eb84c8c5d390bda
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 293001922acd6154493802987811f114db339a96
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


New maintainer

@brianbianco I saw your comment that you are looking for new maintainers
If you are still looking, i can help out
If you are looking to transfer the cookbook as a whole, the Sous Chefs can take it

Sure i think it would be great if you helped maintain the cookbook.  You'll also need supermarket access so you can cut releases.

Sounds good!  You can add me here then or transfer the repo to me... which ever you prefer

Hop on the redisio gitter if you get a chance so we can have a quick chat.


ARROW-12956: [C++] Fix crash on Parquet file (OSS-Fuzz)

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34521

To answer your question (sorry for the delay), I believe they are, otherwise fuzzing would have caught them long ago. However, I don't remember exactly where those are handled.


Repository rights

@dmonad could you give rights to the following people on this repo?
@afshin
@SylvainCorlay
@jtpio
@fcollonval

Sure. I made you and Sylvain admins for the repo so you can add teammates yourself.

Thanks!


chore(internal): fix circular dependencies

chore(internal): fix circular dependencies
This PR:

fixes circular dependencies introduced in https://github.com/dendronhq/dendron/commit/724c6f29b4a11f4ce0fa01fb7e50ee522a6798d3

Madge output
>pwd                                                                                (chore/fix-circ-dependencies|⚑1✔)
/Users/hikchoi/dev/dendronhq/dendron/packages/plugin-core
>madge --circular --extensions ts .                                                  (chore/fix-circ-dependencies|⚑1✔)
Processed 375 files (1.5s) (18 warnings)

✔ No circular dependency found!

>

Hmm - did something go wrong with the husky hook?  I've been seeing some strange behavior with it recently.

Hmm - did something go wrong with the husky hook? I've been seeing some strange behavior with it recently.

I think so. I didn't get the warning from husky when I commited.
@Harshita-mindfire pointed me to this so I'm taking a look: [[husky skipping commit hooks issue|dendron://private/user.joshi.cheatsheet#husky-skipping-commit-hooks-issue]]


 Delete the others, including these Instructions.
{{cask_file}} represents the cask file you’re submitting/editing (if applicable).
If there’s a checkbox you can’t complete for any reason, that’s OK. Just explain in detail why you weren’t able to do so.

Changes to a cask
Editing an existing cask

[*] Commit message includes cask’s name (and new version, if applicable).
[ ] brew cask audit --download {{cask_file}} is error-free.
[ ] brew cask style --fix {{cask_file}} left no offenses.

Updated $version string from <IP_ADDRESS>84 to <IP_ADDRESS>53

You need to update the sha256sum and checkpoint values.

Updating the :checkpoint value in appcast is required. You can find it with curl --silent --compressed "{{appcast_url}}" | sed 's|<pubDate>[^<]*</pubDate>||g' | shasum --algorithm 256 | awk '{ print $1 }'.
Alternatively, you may wish to use cask-repair. It can at once update the cask’s version (according to what you give it) taking care of updating both the cask’s sha256 and the appcast’s :checkpoint, while still giving you the chance to perform other manual fixes.
You can easily install it with brew install vitorgalvao/tiny-scripts/cask-repair. cask-repair --help will show you some options, but as a whole the script will guide you through the update process.
You also need to fill the template. Please try again in another PR.

https://github.com/caskroom/homebrew-cask/pull/21239


BPPC dependency in ITI-71

Section Number <IP_ADDRESS>.2.2
You say, "In an environment which uses the IHE BPPC profile for documenting the consent, the Authorization Server and Resource Server SHALL support the following extension parameter:...."
This is a "SHALL" statement associated with another profile.  That is allowed, but then you need add a requirement in Vol 1 Actor Groupings that the Auth Server and Resource Server shall be grouped with a BPPC Content Consumer

I copied this statement from the previous working version. I understand this as a conditional requirement: If you group with BPPC Content Consumer, the actors "SHALL support the following extension parameter", but I'm open to change the statement.

Don't know how to handle it.
I compared that with XUA which has a similar requirement:
When the Authz-Consent Option is supported and a policy identifier needs to be sent, the X-Service User shall include the document unique ID of the Patient Privacy Policy Acknowledgement Document or include the Patient Privacy Policy Identifier for a policy that has been previously published encoded as SAML attributes.
but no requirement on grouping with the BPPC Content Consumer:

Won't fix.


Godot 4 Skeleton3D BoneAttachments don't inherit bone positions properly when SkeletonIK is on

Godot version
4.0 dev
System information
Win10, GLES3, RTX 2070 mobile
Issue description
Skeleton3D BoneAttachment node position does not match the skeleton bone that it's assigned to. There is a significant offset that doesn't seem to be following a pattern. Additionally, when SkeletonIK is on and modifies selected bone chain, the offset changes.
Steps to reproduce

Import a skeleton with animations (eg. mixamo)
Set a skeletonIK with a target, set start and end bones
Create a bone attachment node as a child of the Skeleton3D, assign it to a bone (the positioning will look correct in the editor)
Attach a child (eg. a meshinstance3d) to the bone attachment node
Create a simple controller for the character, including SkeletonIK (eg, mouselook)
Run the game and watch the child of the bone attachment become offset from its parent

Minimal reproduction project
No response

cc @TokageItLab

I can't reproduce this, the problem may occur if the PoseOverride option in BoneAttachment is turned on, but otherwise it looks working correctly. If you still have problems, please send us your Minimal reproduction project.

I can't reproduce this, the problem may occur if the PoseOverride option in BoneAttachment is turned on, but otherwise it looks working correctly. If you still have problems, please send us your Minimal reproduction project.

Sorry mate, my bad. The cause of the problem was that my attachment was a rigid body weapon. In 3.4 it was enough to keep those sleeping and only wake them up when you wanted to drop the weapon - I would then toplevel it, unsleep it and apply a force to it.
It looks like in Godot 4 there is a 'freeze' property for rigid bodies and when it toggled that on, the issue got fixed.
I suspect the offset was happening because even though the rigid body weapon was sleeping, the movement of its parent BoneAttachment was still affecting it to a degree. I will just freeze/unfreeze from now on, which actually makes better sense, logically speaking...
Thanks for looking into it.


Log in system - Track usage

Set one log in system in this web app so that user can track their progress.
Things to follow:

Experience
Day streak
Questions
Daily FAQ
And many more

Step-by-Step commit related Authentication

https://github.com/shashank-sharma/mythical-learning/commit/7daddfd415922bf84bba255d01d9a34dfdedbc00 - SignUp form added

Log in system done
Local testing - PASSING
Onsite testing - PASSING

New account can be made
Login can be done
If forget then it can be retrieved

Closing this issue


sync details on ipod touch

'Block headers fetched' is being superimposed by '1888000 of 436650'

resolved in master


Discovery of SBOMs on the Rekor transparency log

Motivation
It is not always possible to look inside executables and report accurate information on their contents and dependencies. This information is accessible at the build time of executables, but there has been no general way to propagate this data to a later stage in the software supply chain.
With the development of the Sigstore supply chain security infrastructure, it is now possible to access information from the build time of artifacts.  This issue and related PRs propose a way to incorporate this information into Syft.
This PR is part of the broader picture to allow Syft to handle finding SBOMs (https://github.com/anchore/syft/issues/737) and to enable the use of external sources (https://github.com/anchore/syft/issues/1115).
The rekor-cataloger
https://github.com/anchore/syft/pull/1157 contributes a package which can search the Rekor transparency log for information about SBOMs of executables, and the rekor-cataloger, the integration point between the package and Syft.
Demo
To demo the rekor-cataloger, run Syft on an image containing binaries that have SBOMs on Rekor. One such image is here https://hub.docker.com/r/mdeicas/sample-golang-prov.
syft packages sample-golang-prov.tar -o spdx-json --file spdx.json --catalogers all

This is the diff between an execution of syft with and without this PR:
+[0000] DEBUG cataloging with "rekor-cataloger"
+[0000] DEBUG rekor is being queried for
+               Location: /sample-golang-prov
+               SHA256: f2e59e0e82c6a1b2c18ceea1dcb739f680f50ad588759217fc564b6aa5234791
+[0000] DEBUG rekor entry 2790629 was retrieved
+[0000] DEBUG verification of rekor entry 2790629 complete
+[0000] DEBUG SBOM (798688 bytes) retrieved
+[0001] DEBUG rekor entry 2790625 was retrieved
+[0001] DEBUG verification of rekor entry 2790625 complete
+[0001] DEBUG error parsing or validating attestation associated with rekor entry 2790625:
+               the attestation predicate type (https://slsa.dev/provenance/v0.2) is not the accepted type (google.com/sbom)
+[0001] DEBUG relationship created for SBOM found on rekor
+[0001]  WARN
+                       [EXPERIMENTAL FEATURE: Rekor-cataloger]
+
+                       This SBOM contains a relationship that references an external document. This
+                       document is not present in the cataloged image or directory; rather it has
+                       been found by searching the Rekor transparency log (https://www.sigstore.dev/).
+
+                       Trusting this external document relationship requires trusting several entities:
+                               - the user or CI/CD action that uploaded an entry to Rekor
+                               - Rekor transparency log
+                               - Fulcio CA
+
+                       The Rekor entry(s) that were used to create the external document relationship(s)
+                       are listed below by UUID. See https://github.com/sigstore/rekor for
+                       information on how to query Rekor.
+                               [362f8ecba72f432677c5a08384c08e85445632ae4078b94fff43651770e12eb1d3ca43e45fae3a15]
+
+[0001] DEBUG discovered 0 packages

How the rekor-cataloger works
Upon finding an executable, Rekor is searched by hash. The log entries and associated SBOMs are retrieved and verified, and relationships are created. The SBOM information is obtained from an in-toto attestation (https://github.com/in-toto/attestation) associated with the Rekor entry. Here is an example:
{
  "_type": "https://in-toto.io/Statement/v0.1",
  "predicateType": "google.com/sbom",
  "subject": [
    {
      "name": "binary-linux-amd64",
      "digest": {
        "sha256": "f2e59e0e82c6a1b2c18ceea1dcb739f680f50ad588759217fc564b6aa5234791"
      }
    }
  ],
  "predicate": {
    "sboms": [
      {
        "format": "SPDX",
        "digest": {
          "sha256": "02948ad50464ee57fe237b09054c45b1bff6c7d18729eea1eb740d89d9563209"
        },
        "uri": "https://github.com/user/repo/releases/download/v1.3/binary.spdx"
      }
    ]
  }
}

The SBOM that is output by Syft uses external reference relationships to refer to the SBOMs discoverd by the rekor-cataloger. Merging the SBOMs was considered to be an optional follow-up feature, and is still under investigation (https://github.com/anchore/syft/issues/617).
The rekor package exports an ExternalRef type that represents information about an external sbom. It is an identifiable, and is placed into a Syft relationship to upstream the information. When mapping the Syft SBOM format to other formats, relationships with ExternalRefs are handled in accordance with each format’s specification. In SPDX, they appear in the external reference documents section in addition to being referenced in a relationship. Here is an example (edited):
...
"externalDocumentRefs": [
  {
   "externalDocumentId": "DocumentRef-24a791393ed162b5",
   "checksum": {
    "algorithm": "SHA1",
    "checksumValue": "eb141a8a026322e2ff6a1ec851af5268dfe59b20"
   },
   "spdxDocument": "http://www.example.com/binary.spdx"
  }
 ]
...
 "files": [
  {
   "SPDXID": "SPDXRef-9dc5bd9a21b3b63c",
   "comment": "layerID: sha256:be555362a16f0f6b27f194ed8fc0fd5b640a300f809eafe5799676a53bbcfc7b",
   "licenseConcluded": "NOASSERTION",
   "fileName": "/sample-golang-prov"
  }
 ]
...
 "relationships": [
  {
   "spdxElementId":"SPDXRef-9dc5bd9a21b3b63c",
   "relationshipType": "DESCRIBED_BY",
   "relatedSpdxElement": "DocumentRef-24a791393ed162b5"
  }
]
...

The rekor package can only read log entries that are associated with in-toto attestations. The content of the SBOM that is referenced in the attestation must successfully be retrieved to continue execution, and only SPDX SBOMs can be read.
Managing external sources
The use of external sources is new to Syft, and they should be managed carefully (i.e. configurability, clear to users what has been used and how). Accordingly, https://github.com/anchore/syft/pull/1158 introduces a new external sources configuration, an additional function that catalogers must implement, and a cli flag to shut off the use of external sources. This approach assumes that external sources will only come into Syft through catalogers.
Separate from that PR, rekor-cataloger logs a warning indicating what was used to create the output SBOM (see the log output above).
Verification of data
The use of external sources requires verification of data that is found. Absent inconsistencies that are outlined below, the rekor-cataloger currently accepts all Rekor entries that have certificates issued by Fulcio. In the future, the rekor-cataloger can be extended to limit accepted entries to ones that match specific identities.
To explain the verification actions that are taken, simplified depictions of the Rekor log entry and in-toto attestation data formats are shown here:
Attestation:
    subject:
        hash (this is the hash of the binary)
    predicate:
        sbom-hash
        sbom-uri

Rekor log entry:
    timestamp
    attestation-hash
    certificate

The rekor package retrieves the Rekor log entry, the associated in-toto attestation, and the SBOM. It performs verification to ensure that the retrieved data has not been tampered with. It verifies that:

the log entry has been signed by Rekor’s public key
the certificate chains back to a Fulcio root certificate
the log entry timestamp lies in the period of validity of the certificate
the attestation-hash equals the hash of the attestation that is obtained
the attestation.subject hash equals the hash of the binary that is being searched for
the attestation.predicate sbom-hash equals the hash of the sbom bytes retrieved from sbom-uri

These steps ensure that the retrieved information, and the upstream external document reference that is produced, can be trusted if Rekor, Fulcio, and the certificate subject are trusted.
A current limitation of Rekor entries for in-toto attestations does not allow the verification of the certificate subject’s signature over the attestation (https://github.com/sigstore/rekor/issues/582). Once this is possible, Rekor will not need to be trusted.
When a builder, such as the slsa-github-generator (https://github.com/slsa-framework/slsa-github-generator), generates the SBOM and uploads it to Rekor, a path from source code to SBOM is created. In this case, the only trust predicates are the builder and Fulcio.
Surfacing packages versus surfacing binaries
Edit: I realized that Syft can create files, not just packages. Binaries can be represented using files, and the below doesn't apply anymore :smiley:.

External document references that the rekor-cataloger produces must be related to SBOM entries for executables as opposed to entries for the packages they contain (in-toto attestation subjects are executables, not packages). Currently, Syft only surfaces packages. Binaries that are found, but that cannot be looked inside of, do not appear in the SBOMs output by Syft.

This PR includes a temporary solution to allow the use of the rekor-cataloger for golang binaries. It involves a change (see commit titled “surface external relationships”) to the golang-binary-cataloger to create SBOM entries not only for the packages that executables contain, but also for the executables themselves. This allows the rekor-cataloger to create external reference relationships using the entries for golang executables.

Since no entries are created for binaries that are not golang-compiled, the results from the rekor-cataloger for them will not appear in output SBOMs. Another implication is that the rekor-cataloger cannot be run without the golang-binary cataloger, as rekor-cataloger does not itself create packages.

This also raises the larger question of whether Syft should only surface an executable when it can provide meaningful information for it. The current design prevents the rekor-cataloger’s ability to report information in the output SBOM, but also should raise wider questions about how the completeness of SBOMs output by Syft is perceived. This topic is out of the scope of this issue.

Follow up work

Map relationships with ExternalRefs to Cyclone, SPDX TV formats, and Syft JSON (only SPDX JSON was implemented)
Verification of the signature over the attestation (blocked by https://github.com/sigstore/rekor/issues/582)
Better linking between SBOMs:

Currently, the Syft output SBOM asserts that a binary is DESCRIBED-BY an external SBOM
Ideally, we want to link, using some equivalency relation, the entries in the two SBOMs for the same binary.

Ability to specify which MIME types the rekor cataloger runs on
Support decoding of any SBOM format for SBOMs that are found, not just SPDX TV
Add an SHA256 field to the external document reference (only SHA1 now)

Closing as this is superseded by #1291 🙏


Add http failpoints on status_server [WIP]

Signed-off-by: Fuyang Liu<EMAIL_ADDRESS>
What have you changed? (mandatory)
Please explain IN DETAIL what the changes are in this PR and why they are needed:
We can build a release version with fail support, add HTTP handlers to help us trigger/list/delete fail points.
Refer https://github.com/etcd-io/gofail#http-endpoint
See https://github.com/tikv/tikv/issues/4388
What are the type of the changes? (mandatory)
The currently defined types are listed below, please pick one of the types for this PR by removing the others:

New feature (change which adds functionality)

How has this PR been tested? (mandatory)
Manual test...? (WIP)
Does this PR affect documentation (docs) update? (mandatory)
If there is document change, please file a PR in (docs) and add the PR number here.
Does this PR affect tidb-ansible update? (mandatory)
Not sure...
Refer to a related PR or issue link (optional)
See https://github.com/tikv/tikv/issues/4388

@siddontang I did some changes. Please take a look :)

Thanks @liufuyang
I think it is better to add a unit test for the HTTP fail, can you do it?

/test

/test

@siddontang I can give a try and will let you see whether I am going the correct direction :)

@siddontang I added some tests, basically:

do one add fail call, check results
do another add fail call, check results
do a list call, check response
do a delete call, check results

How do you like it?

Great work, thanks @liufuyang
PTAL @overvenus @breeswish

Note that I have added some #[cfg(not(feature = "no-fail"))] onto those added functions, so to remove those fail related endpoints when feature no-fail is on.

@breeswish or @BusyJay Perhaps you can also help review my PR to get it merged? :)

PTAL @breeswish @overvenus

Ping again @overvenus @BusyJay How do you think of the current way (in this PR) of handling URLs?

@BusyJay @breeswish
If we really want to migrate to actix-web, we can merge this at first, then introduce actix-web.


ThreeDScene crashes

This playground:
from helpers import *
from mobject import Mobject
from mobject.vectorized_mobject import *
from animation.animation import Animation
from animation.transform import *
from animation.simple_animations import *
from topics.geometry import *
from scene import Scene
from camera import Camera
from topics.three_dimensions import *

class SampleScene(ThreeDScene):

    def construct(self):

        mob = Circle()
        self.add(mob)

yields:
Bens-MacBook-Pro:manim Ben$ python extract_scene.py ben_playground.py SampleScene -s
Played a total of 0 animations

Traceback (most recent call last):
  File "extract_scene.py", line 242, in main
    handle_scene(SceneClass(**scene_kwargs), **config)
  File "extract_scene.py", line 125, in handle_scene
    scene.save_image(mode = config["saved_image_mode"])
  File "/Users/Ben/Developer/manim/scene/scene.py", line 520, in save_image
    self.update_frame()
  File "/Users/Ben/Developer/manim/scene/scene.py", line 150, in update_frame
    self.capture_mobjects_in_camera(mobjects, **kwargs)
  File "/Users/Ben/Developer/manim/scene/scene.py", line 131, in capture_mobjects_in_camera
    self.camera.capture_mobjects(mobjects, **kwargs)
  File "/Users/Ben/Developer/manim/camera/camera.py", line 202, in capture_mobjects
    self.display_multiple_vectorized_mobjects(vmobjects)
  File "/Users/Ben/Developer/manim/topics/three_dimensions.py", line 98, in display_multiple_vectorized_mobjects
    self, sorted(vmobjects, cmp = z_cmp)
  File "/Users/Ben/Developer/manim/camera/camera.py", line 226, in display_multiple_vectorized_mobjects
    self.display_multiple_non_background_colored_vmobjects(batch)
  File "/Users/Ben/Developer/manim/camera/camera.py", line 232, in display_multiple_non_background_colored_vmobjects
    self.display_vectorized(vmobject, canvas)
  File "/Users/Ben/Developer/manim/camera/camera.py", line 241, in display_vectorized
    pen, fill = self.get_pen_and_fill(vmobject)
  File "/Users/Ben/Developer/manim/camera/camera.py", line 251, in get_pen_and_fill
    stroke_rgb = self.get_stroke_rgb(vmobject)
  File "/Users/Ben/Developer/manim/topics/three_dimensions.py", line 50, in get_stroke_rgb
    return self.modified_rgb(vmobject, vmobject.get_stroke_rgb())
  File "/Users/Ben/Developer/manim/topics/three_dimensions.py", line 47, in modified_rgb
    return color
NameError: global name 'color' is not defined

Bens-MacBook-Pro:manim Ben$

This should be fixed now.


Improve installation documentation in Readme

Describe the bug
1)For Windows cmd users -
cp .sample.env .env should be changed to copy .sample.env .env
2)For Windows cmd users -
export FLASK_APP fbosbot ,export FLASK_RUN_HOST <IP_ADDRESS> ,export FLASK_ENV development
should be changed to
set FLASK_APP fbosbot
set FLASK_RUN_HOST <IP_ADDRESS>
set FLASK_ENV development
To Reproduce
Steps to reproduce the behavior:

Go to Readme >>Installation
See error

@aboullaite @caabernathy I faced this while setting up the repo.
Can I work on this?

For 1) i thing a better wording would be to advice to rename the file instead of using *unix commands!
For 2) i suggest to add a windows section.
Thanks for reporting this, feel free to submit a fix 🙏

@aboullaite Didn't get you for first one?Can you explain again please , I'm new here which file should be changed?

Your approach in the first one is valid! My suggestion is to replace the copy word by rename the file to .env


Use Character-Enum without CharacterIn?

Following expression: (?<First>(?:2[0-4]\d|25[0-5]|[01]?\d\d?))\.(?<Second>(?:2[0-4]\d|25[0-5]|[01]?\d\d?))\.(?<Third>(?:2[0-4]\d|25[0-5]|[01]?\d\d?))\.(?<Fourth>(?:2[0-4]\d|25[0-5]|[01]?\d\d?))
My result:
var ipAdress = new Magex().Alternative(
    Magex.New()
              .Character('2')
              .CharacterIn('0', '-', '4')
              .CharacterIn(Characters.Numeral),
    Magex.New()
              .String("25")
              .CharacterIn('0', '-', '5'),
    Magex.New()
              .CharacterIn('0', '1').Repeat.AtMostOnce()
              .CharacterIn(Characters.Numeral)
              .CharacterIn(Characters.Numeral).Repeat.AtMostOnce());

var expression = new Magex().CaptureAs("First", _ipAdress)
   .Character('.')
   .CaptureAs("Second", ipAdress)
   .Character('.')
   .CaptureAs("Third", ipAdress)
   .Character('.')
   .CaptureAs("Fourth", ipAdress);

Is there a way to use the enums of Characters directly without encapsulating them inside a CharacterIn call? Getting \d instead of [\d]?

You have to replace .CharacterIn(Characters.Numeral) by  .Character(Characters.Numeral)

That doesn't work for me. Error message:
Argument type 'MagicExpression.Characters' is not assignable to parameter type 'char'

The option to use enums in the Character() function was not yet coded. I just pushed a new commit to the repo that passes your test.
Please checkout the newest version of the repo to see the update.


Gyro Affecting Paths

Alright, so Pathfinder was working perfectly on our old bot, which had cims and an Analog Devices Gyro. Our new bot contains Neos and a Nav-X Micro. After adjusting all the values, the robot didn't even follow the path. However, once I took out the gyro code, The robot followed the path pretty well. So I isolated the problem to the Nav-X gyro. Should I use getAngle() (Continous degrees) or getYaw() (180 to -180)? And should I put a negative in the calculations to reverse the gyro addressed in the problem here? Thanks a lot, this is the first year our team is using your library.

Either GetAngle or GetYaw should work just fine. I can't provide any specific support for technical problems with hardware, check the gyro is exporting data correctly


This Fixes #409

Added two navbar templates to choose from
@Diptenusarkar

Give me some more time, I will add more templates and fix this issue. I have an exam on 29th, after that I will get it done in no time.


InvalidOperationException: sub claim is missing When using ASP.NET Core Identity

This error comes from
var result = await _signInManager.PasswordSignInAsync(model.Username, model.Password, model.RememberLogin, lockoutOnFailure: false);
We have a custom user store which is implemented as follows:
    public class ApplicationUserStore:IUserStore<ApplicationUser>,
        IUserPasswordStore<ApplicationUser>
    {...}

Core Identity Config
        public static IServiceCollection AddAppIdentityDB(this IServiceCollection services,IConfiguration configuration)
        {
            string connStr = configuration.GetConnectionString("IDTestDB");
            services.AddDbContext<IdentityContext>(options=> {
            options.UseMySql(connStr,ServerVersion.AutoDetect(connStr));
        });
            services.AddIdentity<ApplicationUser,ApplicationRole>()
                .AddEntityFrameworkStores<IdentityContext>()
                .AddUserManager<ApplicationUserManager>()
                .AddUserStore<ApplicationUserStore>()
                .AddDefaultTokenProviders();
            return services;
        }

And IdentityServer Config
            services.AddCustomIdentity(Configuration);

            var builder = services.AddIdentityServer()
                .AddConfigurationStore(options =>
                {
                    options.ConfigureDbContext = b => b.UseMySql(idServerDBConn,ServerVersion.AutoDetect(idServerDBConn));
                })
                .AddOperationalStore(options =>
                {
                    options.ConfigureDbContext = b => b.UseMySql(idServerDBConn, ServerVersion.AutoDetect(idServerDBConn));
                }).
                AddDeveloperSigningCredential()
                .AddProfileService<AppProfileService>();

This was received using the link on identity server default test page that redirects to accountcontroller.
Although the error is from identityserver and it sais there is a missing claim I am not sure where this claim should have been added and whether there is something missing in identity server that would add the claim as default.

Use AddAspNetIdentity instead for our ASP.NET Identity integration support:
https://docs.duendesoftware.com/identityserver/v5/aspnet_identity/

I am using idsrv4 and I just wish to clairify is duendesoftware the same company who makes this product.also added the package above but extension AddAspNetIdentity not found.

Yes, the people behind Duende Software created IdentityServer4, but IdentityServer4 is essentially in maintenance mode. That means we will not support it anymore, nor do we provide feature updates or bug fixes. We will only provide critical security updates (if feasible) - this will stop altogether in November 2022 (at the same time when .NET Core 3.1 goes out of support).
Duende IdentityServer v5 is the successor which offers a commercial license to guarantee sustainability, updates, support and a security notification service.


Short solution needed: "Get Redis keys by pattern" (php-redis)

Please help us write most modern and shortest code solution for this issue:
Get Redis keys by pattern (technology: php-redis)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

Get keys by pattern


[WIP] Added workflow for updating flyteidl version in all component

TL;DR

Added GitHub action cron for updating flyteidl version in all component

Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
Tracking Issue
https://github.com/lyft/flyte/issues/868
Follow-up issue
NA
OR
https://github.com/lyft/flyte/issues/

I added cron rather than release event because we create a release in each merge in master and frequent merge in master will create an overlap of PRs.  It would be great we can run it once/twice a day.


How do you do atomic update with this ?

Like the  reddit comment in this.

This seems like it could break data invariants since it pushes updates on every data field update.
Eg if you depend on a data model being in either state A or B, now it can be both or neither since you must account for intermediary steps

Currently, it doesn't support updating two or more fields atomically.

This is being discussed in #12

This has been released in v1.0.0-alpha03.


Cannot apply OVH

When trying to apply my OVH config, I get this :
~/p/kubicorn $ kubicorn apply ovh
2018-07-23T12:05:17+02:00 [ℹ]  Selected [fs] state store
2018-07-23T12:05:17+02:00 [ℹ]  Loaded cluster: ovh
2018-07-23T12:05:17+02:00 [ℹ]  Init Cluster
2018-07-23T12:05:17+02:00 [ℹ]  Query existing resources
2018-07-23T12:05:20+02:00 [ℹ]  Resolving expected resources
2018-07-23T12:05:20+02:00 [ℹ]  Reconciling
2018-07-23T12:05:20+02:00 [ℹ]  Using existing KeyPair [ovh]
2018-07-23T12:05:22+02:00 [✔]  Created Network [d0c048f9-ff02-4a51-b801-47407607d28c]
2018-07-23T12:05:23+02:00 [✔]  Created Subnet [bc409b5b-f73b-4793-955b-61ba257ad39f]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141e888]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Subnet).Apply(0xc4200b62d0, 0x2a12260, 0xc42041a460, 0x2a12260, 0xc42041a4b0, 0xc4201bc2c0, 0x0, 0x2a121a0, 0xc42040b220, 0x0, ...)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/subnet.go:117 +0x388
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Reconcile(0xc4201c0ee0, 0xc4201bc2c0, 0xc4201bc2c0, 0xc4201bc2c0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:119 +0x1ed
github.com/kubicorn/kubicorn/cmd.runApply(0xc42046a6c0, 0x5974f0, 0xc420533ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:145 +0x854
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc42024a000, 0xc42018ea10, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc42024a000, 0xc42018e9d0, 0x1, 0x1, 0xc42024a000, 0xc42018e9d0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a71360, 0xc420533f60, 0x16860de, 0x1be4b38)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a71360, 0x0, 0xc4202b7500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

I've tried various versions of kubicorn, and older ones fail for different reasons.
I don't think this is the same problem than those described in other open issues.
Anyone having the same issue ?

@licarth Hello, thank you so much for reporting the issue!
I can confirm the problem and I'm working on fixing it. It is going little bit slower as I don't have access to OVH, but I will try my best, and will update you once I have some news.
Thank you!

@licarth I've deployed a fix in #659 that could fix the problem. I don't have access to OVH, so I can't test it.
You need to update to the latest version of kubicorn using git or go, such as:
go get -u github.com/kubicorn/kubicorn/...

Before applying the cluster, you have to remove the cluster state and create a new one, as there are some changes in the file structure.
If you still have problems, please post the error or stack trace if there is any. If it works for you, let me know, so I can close the issue.
Thank you so much!

Hey @xmudrii ! Thank you so much for your quick reaction. I just tried, and I get the following error :
~/p/kubicorn $ kubicorn apply ovh
2018-07-30T15:24:24+02:00 [ℹ]  Selected [fs] state store
2018-07-30T15:24:24+02:00 [ℹ]  Loaded cluster: ovh
2018-07-30T15:24:24+02:00 [ℹ]  Init Cluster
2018-07-30T15:24:25+02:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141a937]

goroutine 1 [running]:
c.(*Router).Actual(0xc42052e060, 0xc42041c160, 0x2, 0xc4203bdb38, 0xc42052e3e0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:40 +0xb7
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc42052e000, 0xc42041c160, 0xc42041c160, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x10a
github.com/kubicorn/kubicorn/cmd.runApply(0xc42034c180, 0x5974f0, 0xc4205e9ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:134 +0x625
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc42024f8c0, 0xc4201c6070, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc42024f8c0, 0xc4201c6030, 0x1, 0x1, 0xc42024f8c0, 0xc4201c6030)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a72360, 0xc4205e9f60, 0x1686e0e, 0x1be5bf8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a72360, 0x0, 0xc420405500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

Seems to fail earlier now.

Seems to fail earlier now.

I guess this is still a progress. :sweat_smile:
I've merged #660 which may or may not fix the problem. To get the changes, update kubicorn like described above and recreate the state store file. Then, try to apply the cluster again.
If you get the panics or any other errors again, please post the output here.
Thanks a lot!

I guess this is still a progress.

Clearly it is ! Here is the new stacktrace :) :sweat_smile:
~/p/kubicorn $ kubicorn apply oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Selected [fs] state store
2018-07-30T15:57:24+02:00 [ℹ]  Loaded cluster: oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Init Cluster
2018-07-30T15:57:24+02:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141a9e5]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Router).Actual(0xc42015cce0, 0xc42013f4a0, 0x2, 0xc4205cb7f8, 0xc42015d120, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:40 +0x165
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc42015cc80, 0xc42013f4a0, 0xc42013f4a0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x10a
github.com/kubicorn/kubicorn/cmd.runApply(0xc420180180, 0x5974f0, 0xc4204f3ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:134 +0x625
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc420234fc0, 0xc4202009d0, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc420234fc0, 0xc420200990, 0x1, 0x1, 0xc420234fc0, 0xc420200990)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a72360, 0xc4204f3f60, 0x1686e3e, 0x1be5bf8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a72360, 0x0, 0xc42031d500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

@licarth Merged #661. If you can give it a try, let me know does it work for you. Also, if not, stack traces appreciated :wink:
Thank you so much!

When debugging I get InternetGW:<nil>.

In that case, the fix will probably not fix anything for now. I could try to apply another one, but this is getting really ugly. Let's do it anyways :D

:unicorn:

I guess this is still a progress.

Clearly it is ! Here is the new stacktrace :) 😅
~/p/kubicorn $ kubicorn apply oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Selected [fs] state store
2018-07-30T15:57:24+02:00 [ℹ]  Loaded cluster: oplaovh
2018-07-30T15:57:24+02:00 [ℹ]  Init Cluster
2018-07-30T15:57:24+02:00 [ℹ]  Query existing resources
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x120 pc=0x141a9e5]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources.(*Router).Actual(0xc42015cce0, 0xc42013f4a0, 0x2, 0xc4205cb7f8, 0xc42015d120, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/openstack/operator/generic/resources/router.go:40 +0x165
github.com/kubicorn/kubicorn/cloud.(*AtomicReconciler).Actual(0xc42015cc80, 0xc42013f4a0, 0xc42013f4a0, 0x0, 0x0)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cloud/atomic_reconciler.go:50 +0x10a
github.com/kubicorn/kubicorn/cmd.runApply(0xc420180180, 0x5974f0, 0xc4204f3ca8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:134 +0x625
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc420234fc0, 0xc4202009d0, 0x1, 0x1)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:60 +0x6d
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc420234fc0, 0xc420200990, 0x1, 0x1, 0xc420234fc0, 0xc420200990)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2c1
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2a72360, 0xc4204f3f60, 0x1686e3e, 0x1be5bf8)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x30e
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2a72360, 0x0, 0xc42031d500)
	/home/thomas/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x31
main.main()
	/home/thomas/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

I can confirm this. Got same issue today

Exactly the problem here, What is the updates ?

Geting the same issue here. :(

just got the same issue, any updates on this?

OVH wasn't supporting the OpenStack Router API that kubicorn needed.
It looks like they are currently trying it, it might already work in some regions. See https://labs.ovh.com/public-cloud-l3-services


can't see the params for j.core.identity.new

because it's using *args, **kwags, please let's have it more explicit

fixed by merging https://github.com/threefoldtech/js-ng/pull/265

Verified

@siddiquagig How it's verified? what's meant by params here is the docstring related params in the lower pane, as the previous comment of @waleedhammam.

@abom  you are right , the lower panel for documentation for this function is still not visible

@siddiquagig Please try again now after merging the new loader.

@abom , its ok now:


Inconsistent Szego options use

Szego kernel uses options structure inconsistently. See properties newtTol and beNoisy, which just copy stuff from szset. Better to just store the options structure? (Hint: yes.)

I also wonder why the class name szmap is used rather than szegomap.

I used szmap because I was on a brevity kick. We can rename it if you so vote. It makes sense to me to use the longer name as it's more descriptive. I'm also inertially resistant at times, which is why I just left it like that.


libtasn1 vulnerable to CVE-2015-2806

Release announcement for version 4.4 (which fixes it); Redhat bug.
master and release-14.12 are at 3.6. I don't know if updating the release branch to 4.4 would break things.

4.4 is also in staging.
On Apr 11, 2015 11:03 PM, "James Cook"<EMAIL_ADDRESS>wrote:

Release announcement
http://lists.gnu.org/archive/html/help-libtasn1/2015-03/msg00002.html
for version 4.4 (which fixes it); Redhat bug
https://bugzilla.redhat.com/show_bug.cgi?id=1207192.
master and release-14.12 are at 3.6. I don't know if updating the release
branch to 4.4 would break things.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/7333.

Thanks for pointing that out. Am I correct in thinking we don't have an easy way to apply this to everything affected without a mass rebuild right now (even with replaceDependency magic) so I might as well close this?
(I asked a more detailed (rambling) question about this on nix-dev just now.)

Note: CVE-2015-3622 also fixed in staging (libtasn1 version 4.5). Thanks @wkennington.

Staging merge should happen soon for master at least.

Up to date in master and 14.12 now.


fix(Actions): RelWithDebInfo

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


ERROR: Failed building wheel for mmcv-full

Hello,
I have installed all the requirement but i am getting this error while installing mmvc-full .
i have installed torch = 2.1.0+cu121 & cuda = 12.1

thanks.

@ajaxdform I am getting the same error.

Update: It worked for me using an older version of Pytorch and CUDA.
torch==1.12.0+cu116

How did you roll back to that version of torch? I can't seem to find/install it successfully.

@bmossm I created a new conda environment with python=3.10
I then ran the following command to install the older torch version (Windows or Linux):
pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116
You can find a list of the older torch versions here: https://pytorch.org/get-started/previous-versions/
I hope this helps!

我把mmcv卸载然后重新装了一遍。


CAPA: Release v29.1.0

Acceptance criteria:

[x] Wait for https://github.com/giantswarm/giantswarm/issues/31529 to be finished as that's the main driver of this release
[x] Include all changes included by teams in the request file
[x] Ensure we can create and upgrade Giant Swarm clusters

PR: https://github.com/giantswarm/releases/pull/1348 (currently still missing latest node-exporter)

29.1.0 is merged, this can be closed/completed.


[hack] Code action suggesting replacement for array item updates

Arrays in Q# are immutable, meaning array items cannot be updated once defined.  See Local Variables for more details.
As a result, the following code results in a compilation error:
set arr[i] = 1;

Instead, a Copy-and-Update Expression should be used to create a new array with the modified value:
set arr w/= i <- 1;

Since array item updates are a common thing for users to want to do, it'd be nice to have a code action suggesting the copy-and-update expression corresponding to the array item update specified.  This can obviously get fairly complicated, but handling the common/easy cases would go a long way.

This looks like a great code action, maybe you could also support it for arr[i] = 1 in addition to set arr[i] = 1. It could be quite common ( this is my subjective opinion) for people who are just learning Q# to just want to write arr[i] = 1 for array assignment if they are already familiar with C#, Java, C or other similar languages.
If there were a code action expanding arr[i][j] = 1 into
set arr w/= i <- ( set arr[j] w/= j <- 1 ); that also could be very helpful.

The corresponding PR is https://github.com/microsoft/qsharp-compiler/pull/91.

The code action as filed above is merged into master with PR #130.
I'll close this issue for now. @sw23 , @vadym-kl  let me know if you are interested in picking up implementing additional support for the cases that Vadym mentioned.

The code action as filed above is merged into master with PR #130.
I'll close this issue for now. @sw23 , @vadym-kl let me know if you are interested in picking up implementing additional support for the cases that Vadym mentioned.

@bettinaheim - Cool! Yeah I can update the code action to support the additional cases that @vadym-kl mentioned now that the initial one has been reviewed and almost pulled in.  Should I open a follow-on issue?

@sw23 Awesome!
Yes, opening a new issue would be good - I'd rather close issues as the planned things get done, and open new issues for addtional capabilities. I am looking forward to those! :) Let me know if you need/want help!


the lib cannot detect simple japanese

I have tried some simple Japanese text such as: "私は学生です。" or ”そうですね”. This can not be any other language but franc returns 'und' which means undefined.

See the usage section.


Got : AttributeError: 'module' object has no attribute '_base'

Got this error after installing play_scraper and try to import it
please help,
thanks
[root@CT114 ~]# python
Python 2.7.5 (default, Aug  4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import play_scraper
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/play_scraper/__init__.py", line 13, in <module>
    from play_scraper.api import (
  File "/usr/lib/python2.7/site-packages/play_scraper/api.py", line 11, in <module>
    from play_scraper import scraper
  File "/usr/lib/python2.7/site-packages/play_scraper/scraper.py", line 15, in <module>
    from bs4 import BeautifulSoup, SoupStrainer
  File "/usr/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib/python2.7/site-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/usr/lib/python2.7/site-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

Hello, after a view poke around I found the solution... basically its because of incompatible library updates
when I run
pip install --upgrade beautifulsoup4
pip install --upgrade html5lib
pip install --upgrade requests==2.1.0

everything work as expected


android app example with whisper_base_cpu_int8.onnx gives out of memory error

I am using an aarch64 android mobile device using android 12 with 2GB RAM, 16GB ROM
when i use the android app example with the whisper_tiny_cpu_int8_model.onnx as provided, it works without issues. the model size if around 74MB.
When i replace this model with whisper_base_cpu_int8_model.onnx, which has a size of 140MB, it fails with out of memory error as it tries to access java heap memory instead of native memory.
All i did was change the model, i did not change the code anywhere. while running the app, i still have 500MB of free RAM available and still i get out of memory error.
the error log is below:

02-13 20:54:39.039  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:39.039  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:39.063  1973  2038 I le.whisperLoca: Alloc young concurrent copying GC freed 2084(104KB) AllocSpace objects, 2(1488KB) LOS objects, 3% free, 138MB/143MB, paused 137us,47us total 23.358ms
02-13 20:54:39.063  1973  2038 I le.whisperLoca: Forcing collection of SoftReferences for 133MB allocation
02-13 20:54:39.064  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:39.140  1973  2038 I le.whisperLoca: Alloc concurrent copying GC freed 399(27KB) AllocSpace objects, 2(134MB) LOS objects, 49% free, 3879KB/7758KB, paused 128us,39us total 75.682ms
02-13 20:54:41.492  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:41.492  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:41.507  1973  2038 I le.whisperLoca: Alloc young concurrent copying GC freed 49(47KB) AllocSpace objects, 0(0B) LOS objects, 4% free, 137MB/143MB, paused 148us,35us total 15.306ms
02-13 20:54:41.508  1973  2038 I le.whisperLoca: Forcing collection of SoftReferences for 133MB allocation
02-13 20:54:41.508  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:41.534  1973  2038 I le.whisperLoca: Alloc concurrent copying GC freed 738(47KB) AllocSpace objects, 0(0B) LOS objects, 4% free, 137MB/143MB, paused 298us,37us total 26.083ms
02-13 20:54:41.535  1973  2038 W le.whisperLoca: Throwing OutOfMemoryError "Failed to allocate a 140086368 byte allocation with 6291456 free bytes and 118MB until OOM, target footprint 150295640, growth limit 268435456" (VmSize 14958388 kB)
02-13 20:54:41.535  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:41.535  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:41.549  1973  2038 I le.whisperLoca: Alloc young concurrent copying GC freed 4(31KB) AllocSpace objects, 0(0B) LOS objects, 4% free, 137MB/143MB, paused 128us,40us total 13.928ms
02-13 20:54:41.550  1973  2038 I le.whisperLoca: Forcing collection of SoftReferences for 133MB allocation
02-13 20:54:41.550  1973  2038 I le.whisperLoca: Starting a blocking GC Alloc
02-13 20:54:41.575  1973  2038 I le.whisperLoca: Alloc concurrent copying GC freed 34(16KB) AllocSpace objects, 0(0B) LOS objects, 4% free, 137MB/143MB, paused 128us,40us total 25.049ms
02-13 20:54:41.576  1973  2038 W le.whisperLoca: Throwing OutOfMemoryError "Failed to allocate a 140086368 byte allocation with 6291456 free bytes and 118MB until OOM, target footprint 150294824, growth limit 268435456" (VmSize 14958388 kB)

how can I execute this? i should not be getting any memory error here. i generated the model using --no_audio_decoder option.
model is here: https://drive.google.com/file/d/1mrtEbq4PGcfppTVfGK2wMqRfniBivtB5/view?usp=sharing

https://github.com/microsoft/onnxruntime/issues/19514


Loose parts kit code

If there is loose parts kit, then prefer kit, otherwise specified loose parts amount.
Kit code needs to be added to loose parts table.

Added loose parts kit material codes.


Unified Interpreter naming

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (101b60b) 81.19% compared to head (7f82628) 81.19%.
Report is 21 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #901   +/-   ##
=======================================
  Coverage   81.19%   81.19%
=======================================
  Files         226      226
  Lines       12478    12478
=======================================
  Hits        10132    10132
  Misses       2346     2346

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Version of IgH ethercat code

Nice work! Which version of the IgH Ethercat master code are you using for this wrapper?

I was working with the default branch of the hg repository.  Now I checked again and saw that apparently the IgH people are working exclusively on the stable-1.5 branch...
But I think it shouldn't matter too much; it looks the ioctl interface we use between userspace and kernelspace hasn't changed except for a shift in the ioctl numbers. You just need to generate the Rust bindings with the version you're also building the kernel module from.

Unfortunately there are differences... even between v1.5.2-sncn-7 and v1.5.2-sncn-11 (look at master/ioctl.h).
See #17  (PR to update to v1.5.2-sncn-11).

Ah damn, we aren't pulling the ioctl numbers from the header file... should we?

In fact, it should be quite straightforward to autogenerate the ioctl! definitions from the #defines in ioctl.h.

In any case, we should definitely point to the "canonical" branch we test with in the README.

Done with #22

... and 9f24c1b6bd44c2c8ee2a3c942876351febfb80f2


GH-12: Add possibility to run daemon in background and control it

This is a draft implementation using a new control service to control the shutdown of the daemon.
The actual shutdown of the daemon (os.Exit()) can (and will) be further improved if the approach in general is agreed upon.

Analysis update:

It seems that the daemon is not stopped, even if os.Exit(0) is called directly in the daemon. The process is still shown in the list of running processes.

PR is closed because it does not seem to be possible to detach a process, and have it cleaned up by the init process in docker containers, especially if the init process does not check the exit status of their child processes (as is the case, e.g. for github container runners, which use tail -f as the entry point (init process)).
Crypta will draw its system boundary at the actual startup of the daemon & the CLI itself. The user of crypta can use onboard tools specific for their environment to handle the usecase of running the daemon in the background.


fix: fix _UniIndexedListOnClickEvent types

Description 描述

Linked Issues 关联的 Issues
Additional context 额外上下文

Summary by CodeRabbit

New Features

Enhanced list selection functionality with a new interface for selected items, providing additional details like item index and checked status.

Refactor

Updated event interface to use the new selected item interface, improving clarity and functionality.

Tests

Expanded testing suite to include the new selected item interface, ensuring robustness and reliability.

Thank you!

Thank you!


Fix an issue where non-matching preflight requests were not terminated.

Came across an issue where a preflight request that did not match an allowed-origin was not ended when the endPreflightRequests flag was true.
If an OPTIONS request is not matched with endPrefilghtRequests set to true, it is unlikely that the lib user wants to handle it his/herself and it would be difficult to take any meaningful action.
Tests added,
Cheers!

Good catch, thanks!


Unable to handle prompt message box (Watir)

See events_test.feature; scenario "Dealing with prompt message boxes".
When this scenario is run, the following error is returned:
unknown error (Selenium::WebDriver::Error::JavascriptError)
  ./lib/lucid/platform_watir/platform_object.rb:116:in `will_prompt'
  ./lib/lucid/enclosers.rb:113:in `will_prompt'
  ./specs/steps/events_steps.rb:29:in `/^the prompt message box appears$/'
  specs\tests\events_test.feature:22:in `When the prompt message box appears'

This issue has been fixed. The return value from execute_script was specified as #{response} rather than #{!!response}.


Add gfx_window_* doctests

Added doctests to gfx_window_sdl and gfx_window_glfw

@homu r+

:pushpin: Commit 1abc719 has been approved by kvark

:hourglass: Testing commit 1abc719 with merge 896644f...

:sunny: Test successful - status