Limit open windows?

Hi
Is it possible to limit how many winboxes can be open ?
Is there a way to count them so I can only allow X open at a time ?
Thanks

I've sorted this using jquery when adding a new window.
		if ( $('div[id^=winbox]').length  == 3 ) {
			console.log ( 'max open windows reached' )
			return false
		}

You can use the winbox callback functions for this purpose.


perf(connector): use Vec instead of Bytes and &[u8]

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
See #8712

https://g-2927a1b4d9.grafana-workspace.us-east-1.amazonaws.com/d/EpkBw5W4k/risingwave-bench-dashboard?orgId=1&var-namespace=nexmark-bs-0-no-to-vec&from=1679553815503&to=1679554775882

Checklist For Contributors
~- [ ] I have written necessary rustdoc comments~
~- [ ] I have added necessary unit tests and integration tests~
~- [ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).~
~- [ ] I have demonstrated that backward compatibility is not broken by breaking changes and created issues to track deprecated features to be removed in the future. (Please refer to the issue)~

[x] All checks passed in ./risedev check (or alias, ./risedev c)

Checklist For Reviewers

[ ] I have requested macro/micro-benchmarks as this PR can affect performance substantially, and the results are shown.

Documentation

[x] My PR DOES NOT contain user-facing changes.

Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.

Installation and deployment
Connector (sources & sinks)
SQL commands, functions, and operators
RisingWave cluster configuration changes
Other (please specify in the release note below)

Release note

Not sure if this way of refactor is the best though 🤔


Implement new Hub Protocol

Fixes #373
Note that this does not include the stuff about streaming, observables, etc. we've talked about. This is just a simple implementation of the new protocol using the existing code and Hub model.
I also removed the "InvocationAdapter" and the "InvocationAdapterRegistry", since we aren't sure we want to expose it publicly any more. Custom Hub Protocols are not a feature we're intending to support (note that we will be allowing apps to control serialization of Hub arguments, just not our outer protocol). There's a bunch of deleted code in the sample now, since the "Protobuf" and "Line" adapters were cleaned up, but we'll have it in history for when we start implementing Protobuf.
There are definitely some things we'll still need to review, for example we'll need to start looking at how to generate Invocation IDs for requests from the server to the client. Right now I use Guids everywhere, but we may not want to do that. The Client uses a monotonically increasing long, which is fine for it since it's sending to one destination, but servers often want to send the same message to multiple destinations.
JavaScript client is not yet updated. We don't test it automatically so I'm not quite sure what the best thing to do here is. The changes are fairly minimal, and could happen in a separate PR, but our samples would be broken in between this merging and the JavaScript client being updated. I lean towards doing that since it'll be a brief period of time that we'll have broken samples, and none of our CI builds will be broken.
I do plan to add some tests to JsonHubProtocol, which I will do early tomorrow.

Is there or could there be a general discussion on InvocationAdapters? It's pretty convenient to be able to use one. I can give an example:
We have the traditional server/client model where communication happens between the clients and the servers. The disparity comes from having two disjoint client groups each of which the server needs to provide backwards compatibility for communication. Meaning, as we change data models being transmitted between client groups we need to be able to translate these versioned client models from older versions to the current version back again to older versions.
This seemed trivial with the InvocationAdapter and being able to map old models to the current model, etc. What would a proposed solution be lacking the construct?

@berdon I don't really understand what you're asking for.

@davidfowl
I'll try to clarify my use case - which I don't think is atypical.
I have interfaces that I'll use as arguments for Hub methods:

IModelOne
IModelTwo
IModelThree

I have implementations of these interfaces

ModelOneV1
ModelOneV2
ModelTwoV1
...

I want to be able to have Hub clients call the Hub method taking in the interface types but passing in their implementations. So far, this works as is.
However, the complication comes in when needing backwards compatibility - where older models no longer contractually agree with the interface types. Ie. We have an old version one client calling a Hub method accepting IModelOne but the new version IModelOne has a breaking change for ModelOneV1.
Currently, we were expecting to write a translator that lived inside a custom InvocationAdapter that could handle translating between older model objects and the current model object.
I don't think the InvocationAdapter necessarily needs to exist especially depending on what your guys' thoughts are on argument serialization.

The Invocation Adapter was only intended as a way to serialize/deserialize the hub messages, hence the changes in this PR. However, having a component that allows you to intercept and rewrite those messages does seem like it might be useful and worth discussing, for exactly those scenarios.
Can I suggest moving this discussion to a new Issue? This seems like something we'll want to discuss in depth to figure out the best way to do it, but I don't want to overload this discussion thread with it.

Absolutely.
Full disclosure, my team is completely leveraging aspnet/SignalR right now and have been for some time. We've been riding the wave so to speak on the changes but this one presented a pretty breaking change for us which is why I had to pipe up.
I'm hoping we can contribute when able - for instance, I plan on implementing the [Authorize] stuff next week and was planning on submitting a PR.

FYI, this PR is not in a reviewable state right now, I'm going to close it and reopen it when it is. I'm making changes based on #372 feedback

https://github.com/aspnet/SignalR/pull/390


Fixed ErrorException xdebug trace

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Closing since use case was not clarified.

@arzzen you've approved it. Probably you know something about it?

Use xdebug
Try to handle php error
In exception trace array you wish to see place with error as you see it without xdebug

    public function appLogic()
    {
        0 / 0;
    }

    public function actionIndex()
    {
        try {
            $this->appLogic();
        } catch (Exception $e) {
            return $e->getTraceAsString();
        }
        return 'page';
    }

The fix is correct.
Initially we were handing fatals directly without first converting them to exceptions: https://github.com/yiisoft/yii2/commit/2d5db951. Because of that trace was different and we had to cut some items.

Merged. Thank you!


Support prices in data grid

Right now, there is no way to display prices of entities in data grid.
The idea is to display only a count of fetched entities in grid cell and in detail display entire pretty printed list of entities.

Final solution displays count of prices with price for sale in a cell. The detail of cell then provide detail of price for sale object as well as list of all price objects with filtering.

After some discussion in team, we want to AD-HOC compute priceForSale for current price listing filter on server.


Add test coverage for setup_requires

See: https://github.com/astral-sh/uv/pull/1590.

This has been deprecated for years, by the way.


Symbolic Derivatives

would be nice to have symbolic derivatives to provide analytic Jacobian of reaction terms for Newton solver in DUNE
investigate https://github.com/symengine/symengine

C++ library which implements a subset of SymPy

check status of this within COPASI

another option may be automatic differentiation (AD)

check if this would fit well into DUNE
get machine precision numerical values of Jacobian along with evaluation of reaction terms at minimal extra cost
e.g. https://github.com/rjhogan/Adept

resolved by #38 which uses SymEngine to analytically differentiate the reactions to generate the Jacobian terms


Develop JSON Schema for Event Profiles related to Food Safety Modernization Act (FSMA) Section 204

Hello @RalphTro @sboeckelmann
This document contains several event profiles that can be used to exchange lot-level traceability data for the Food Safety Modernization Act (Section 204) in the United States. It is aligned with GS1 US guidelines for the use of EPCIS in FSMA, described in this document. By implementing these rules, the EPCIS Event Sentry can be used straight away in a real production scenario, adding immediate value beyond the theoretical.
Event Profile: FSMA Harvesting Event
Set of Rules

The type field is present and populated with the value "ObjectEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The action field is present and populated with the value "ADD".
The bizStep field is present and populated with the value “commissioning” or "creating_class_instance"
The disposition field is optional. If it is present, it is populated with the value "active".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")
The bizTransactionList field is present and contains an array with at least one object
The quantityList field is present and contains an array with at least one object. Each object in the quantityList array has an epcClass field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). Each object in the quantityList array has a quantity field that is populated. Each object in the quantityList array has an optional uom (unit of measurement) field, if populated, it is a valid code from the UN code list allowed by the CBV (see list of codes here)

Event Profile: FSMA Cooling Event
FSMA requires you to record at what time you sent a batch for initial cooling after harvest (you don’t have to tell the FDA how long you cooled it for). The GS1 US EPCIS guidance suggests “arriving” and “departing” ObjectEvents showing the LGTINs going in and out of the cooling facility. I do not think this is a good approach as you cannot distinguish clearly that such events are definitely due to “cooling” rather than other supply chain movements. But the CBV does not include a bizStep of “cooling” so this is probably why they did it this way, so for now we include a profile for this.
Set of Rules

The type field is present and populated with the value "ObjectEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The action field is present and populated with the value "OBSERVE".
The bizStep field is present and populated with the value "arriving" or “departing”.
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The quantityList field is present and contains an array with at least one object. Each object in the quantityList array has an epcClass field that is populated. Each object in the quantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.

Event Profile: FSMA Initial Packing
Set of Rules

The type field is present and populated with the value "TransformationEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The bizStep field is present and populated with the value “commissioning” or "creating_class_instance"
The disposition field is optional. If it is present, it is populated with the value "active".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The inputQuantityList field is present and contains an array with at least one object. Each object in the inputQuantityList array has an epcClass field that is populated. Each object in the inputQuantityList array has a quantity field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.
The outputQuantityList field is present and contains an array with at least one object. Each object in the outputQuantityList array has an epcClass field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). Each object in the outputQuantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.

Event Profile: FSMA Transformation Event
Set of Rules

The type field is present and populated with the value "TransformationEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The bizStep field is present and populated with the value “commissioning” or "creating_class_instance"
The disposition field is optional. If it is present, it is populated with the value "active".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The inputQuantityList field is present and contains an array with at least one object. Each object in the inputQuantityList array has an epcClass field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). Each object in the inputQuantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.
The outputQuantityList field is present and contains an array with at least one object. Each object in the outputQuantityList array has an epcClass field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). Each object in the outputQuantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.

Event Profile: FSMA Generic Aggregation Event
This is a generic event that shows LGTINs being packed into an SSCC.
Set of Rules

The type field is present and populated with the value "AggregationEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The parentID field is present and populated with a valid SSCC identifier, in either Digital Link or URN format.
The action field is present and populated with the value "ADD".
The bizStep field is present and populated with the value "packing".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The childQuantityList field is present and contains an array with at least one object. Each object in the childQuantityList array has an epcClass field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). Each object in the childQuantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20

Event Profile: FSMA SSCC Shipping Event
This event would be used when shipping an SSCC, where the AggregationEvent describing the contents have been recorded separately. It is not specified in the GS1 US guidance, but is the conventional way to approach this.
Set of Rules

The type field is present and populated with the value "ObjectEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The parentID field is present and populated with a valid SSCC identifier, in either Digital Link or URN format.
The action field is present and populated with the value "OBSERVE".
The bizStep field is present and populated with the value "shipping".
The disposition field is optional. If present it is populated with the value "in_transit".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The epcList field is present and contains an array of string identifiers with at least one entry. Each entry in the array should be an SSCC expressed as an EPC URI or as a Digital Link
The sourceList field is optional. If present it contains an array with at least one object with a type “location” and a source field that contains either a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")
The destinationList field is present and contains an array with at least one object, with a type "location" and a destination field that is populated and expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")

Event Profile: FSMA SSCC Receiving Event
This event would be used when receiving an SSCC, where the AggregationEvent describing the contents have been recorded separately. It is not specified in the GS1 US guidance, but is the conventional way to approach this.
Set of Rules

The type field is present and populated with the value "ObjectEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The parentID field is present and populated with a valid SSCC identifier, in either Digital Link or URN format.
The action field is present and populated with the value "OBSERVE".
The bizStep field is present and populated with the value "receiving".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The epcList field is present and contains an array of string identifiers with at least one entry. Each entry in the array should be an SSCC expressed as an EPC URI or as a Digital Link
The sourceList field is optional. If present it contains an array with at least one object with a type “location” and a source field that contains either a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")

Event Profile: FSMA Composite Shipping Event
This event combines aggregation and shipping together, avoiding the need for two events. It is specified in the GS1 US guidance, so is included here.
Set of Rules

The type field is present and populated with the value "AggregationEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The parentID field is present and populated with a valid SSCC identifier, in either Digital Link or URN format.
The action field is present and populated with the value "OBSERVE".
The bizStep field is present and populated with the value "shipping".
The disposition field is optional. If present it is populated with the value "in_transit".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The childQuantityList field is present and contains an array with at least one object. Each object in the childQuantityList array has an epcClass field that is populated with an LGTIN, expressed as an EPC Class URI (e.g. "urn:epc:class:lgtin:4012345.099914.LOT1") or as a Digital Link (e.g. https://brand.com/01/04012345999143/10/LOT1). Each object in the childQuantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.
The sourceList field is optional. If present it contains an array with at least one object with a type “location” and a source field that contains either a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")
The destinationList field is present and contains an array with at least one object, with a type "location" and a destination field that is populated and expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")

Event Profile: FSMA Composite Receiving Event
This event combines aggregation and receiving together, avoiding the need for two events. It is specified in the GS1 US guidance, so is included here.
Set of Rules

The type field is present and populated with the value "AggregationEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The parentID field is present and populated with a valid SSCC identifier, in either Digital Link or URN format.
The action field is present and populated with the value "OBSERVE".
The bizStep field is present and populated with the value "receiving".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The childQuantityList field is present and contains an array with at least one object. Each object in the childQuantityList array has an epcClass field that is populated. Each object in the childQuantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.
The sourceList field is optional. If present it contains an array with at least one object with a “type” field populated with “location” and a “source” field that is populated and expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0")

Event Profile: FSMA First Land-Based Receiver Event
Please note, the original GS1 US guidance for some reason has gs1:harvestDateStart and gs1:harvestDateEnd specified using a custom vocab, I think this is a mistake as the CBV has similar attributes built in. I propose we validate for the cbvmda attribute names.
Set of Rules

The type field is present and populated with the value "ObjectEvent".
The eventTime field is present and populated.
The eventTimeZoneOffset field is present and populated.
The action field is present and populated with the value "ADD".
The bizStep field is present and populated with the value “commissioning” or "creating_class_instance"
The disposition field is optional. If it is present, it is populated with the value "active".
The readPoint object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizLocation object is present and contains an id field expressed either as a Digital Link (either GLN only or GLN and GLN Extension), or as an SGLN EPC URI (e.g. "urn:epc:id:sgln:4012345.00001.0").
The bizTransactionList field is present and contains an array with at least one object.
The quantityList field is present and contains an array with at least one object. Each object in the quantityList array has an epcClass field that is populated. Each object in the quantityList array has a quantity field that is populated. The uom field is optional, and if populated, contains a valid unit of measure code from UN/CEFACT Rec 20.
The ilmd (Instance/Lot Master Data) field is present
The ilmd (Instance/Lot Master Data) field contains an attribute “cbvmda:harvestStartDate" which contains a date in the format “YYYY-MM-DD”
The ilmd (Instance/Lot Master Data) field contains an attribute “cbvmda:harvestEndDate" which contains a date in the format “YYYY-MM-DD” and is greater than the value for “gs1:harvestDateStart"
The ilmd (Instance/Lot Master Data) field contains an attribute "cbvmda:vesselCatchInformationList" which contains another attribute "cbvmda:vesselCatchInformation", which contains an attribute "cbvmda:catchArea" which is a string, in the format “integer.optional integer.optional integer”, for example “37”, or “37.1”, or “37.1.1” are all valid

1st set of rule was added
https://github.com/openepcis/openepcis-event-sentry/pull/15


[MM-18108] remove teams, edit roles

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

New commit detected. SpinWick upgrade will occur after the build is successful.

Test server creation failed. See the logs for more information.

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit c678ec7bdb6235f02c927d822b14c18b05b361b6.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit 6e44d5b7132a329950aa70fed84da28706dfb51d.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit aeefa3414b53fa58c02614c4d31d58edf8385bac.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit ba3d05411f8923c8385b41ee37270b67d73d4efa.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit f6d9a4cadcebe3cb8a3108bb6ed8a3fc8b45d528.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit db636c761049816bbbb5c3c1684d41610ffb9ccc.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit cbefcec290e3ad4f66b3d8662eb9d22e39e30aaa.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit f91acd5cb2989a9438800e3d18f313d59f1744aa.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit ce13774e683356bfce5a1f4c80e09c079be13bbc.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

Draft PR looks good @bradjcoughlin

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit d3aab45878d7ab74cf4303a81f0d66e29f7379c4.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit 4c707907e36732b839129178be31aa055f2b7cba.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit 286d33e4d0cb17b764cc61d316d03b8b1972e9fb.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

New commit detected. SpinWick will upgrade if the updated docker image is available.

Test server creation failed. See the logs for more information.

Mattermost test server updated with git commit e58c154a55a4da40d6be11fbacd5bd69ada9a28c.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

New commit detected. SpinWick will upgrade if the updated docker image is available.

Mattermost test server updated with git commit 72a75cb14b57ed30c0e6309be04c753b2f4f632c.
Access here: https://mattermost-webapp-pr-3766.test.mattermost.cloud

Chatted with Brad and this is okay for QA to test post-merge. Verified there are updated/new unit tests included.

Test server destroyed


Request: send tv shows and movies to different output dirs

for torrent organization it would be nice to have different output directories for each type of file. This would allow users whos downloads are in separate directories to better inform their clients where to put each new cross-seed
for example, i keep my tv shows in /downloads/_tv and movies in /downloads/_movies
I direct all new torrents in my cross-seed client to /downloads/_tv since there are more of those files, and then I have to manually move the unmatched movies to /downloads/_movies

We're using regex to match these media types, and while its mostly consistent, there are quite a few poorly named movies and tv (specifically anime and scene) that could result in no matching/identification.
Not sure how that would handled.
Ideas?

You're already prepending [episode] and [movie] to the torrent files, that
can be used to sort into dirA or dirB. bad matches may happen but I think
this would be a perfectly acceptable solution. This could be further
expanded to tracker-based sorting.
On Thu, Sep 28, 2023 at 12:56 PM zakary @.***> wrote:

We're using regex to match these media types, and while its mostly
consistent, there are quite a few poorly named movies and tv (specifically
anime and scene) that could result in no matching/identification.
Not sure how that would handled.
Ideas?
—
Reply to this email directly, view it on GitHub
https://github.com/cross-seed/cross-seed/issues/500#issuecomment-1739697066,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALRFKMFHNN7QHDWLPSCPSSDX4WT5PANCNFSM6AAAAAA5LHOOMI
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have the same issue.
At least for deluge, the torrent statefile contains the directory each torrent is in ("save_path"). Why not just use that and add a configurable path mapping?

Deluge injection would likely solve your use case


The ad duration is displayed as video/movie duration after skipping ad

Sometimes when i skip an ad, the player shows the total length of the video to be played as the length of the ad I just skipped.
For eg- if an ad is 15 seconds long and the video is 1 hour long, the player keeps showing 15 seconds as the total duration of the video. On crossing the 15 sec mark, the video keeps playing.
It does not cause an issue functionally, but sometimes a viewer may think they have opened the wrong video because of the short duration showed.

Update: there is an issue functionally that the user cannot go forward or back using the scrub bar / seek bar

@vintikzzz help me out here

Hi can you provide screenshots?
Also specify browser and OS, so I will be able to reproduce!

@vintikzzz This is happening in chrome on Android. I haven't tested it on other platforms.
I have attached a Screenshot of a movie I was trying to watch where the ad was 3 minutes long and the player kept showing the duration of the movie as 3 minutes. Screenshot is attached below

Webtor transcodes movie on the fly and it shows duration of transcoded part in the player. You have just to wait a little bit. It might be confusing at first time.

But this will make many people think that they have opened the wrong movie file

This will be good feauture with implementing showing total movie time, and separate progressbar for loaded segments of HLS, but with disabled scrolling to not loaded pieces.

Yes, It's really good thing, unfortunately there is no option in my current video player (Mediaelement.js) to set custom video length. If you can point me some solution to impement it will be really appreciated!

@vintikzzz  have you tried powder web?

@odmivolsi I have tried to install it today, but no luck... a lot of errors occured. What can I learn from this project?

@vintikzzz VideoJS with HLS module have good api for exactly that operations. You can get all loaded segment, walk through loaded pieces, start from any position.

@wlasser the main problem that I don't know exact number of HLS-fragments to pregenerate VOD HLS playlist. It is only possible with real transcoding (not just "copy stream"), but it makes low quality video-stream on fast ffmpeg presets. There is some trade off. You can read about it at release notes for revision 1.6.0. By the way, I have used Video JS with HLS module at first version, but there was no ability to correctly process HLS live-streams.

@vintikzzz i am currently use VideoJS with webtor, but without modification in this way (just playback) i'll check something when be free.

@vintikzzz please try to fix this

@odmivolsi  I can try to show full duration but there will be no option to fast forward, is it ok?

@vintikzzz we will be able to go ahead or back using the scrubber right? Im assuming by fast forward you mean double tap to skip 10 seconds

@odmivolsi no, there will be no option to change postition to non-transcoded part. For example if we have 2 hours movie and there was already 30 minutes transcoded from the beginning. In this case we will be aple to see full timeline, but we will be able only to change poistion only in the part of the movie that was already transcoded, first 30 minutes. Transcoding goes from the very beginning to the end continuosly.

@vintikzzz this might cause some issues but its worth a try. I think this should work for the most part

@odmivolsi I have done as we discussed before, but it shouldn't work the same in fullscreen on Android/iOS devices. They use native players for HLS, so I can't override their behaviour.

@vintikzzz the movie duration bug seems to be fixed. But im able to forward it and use the scrubber still which you said wont work. What exactly has changed?

@odmivolsi  this fix only affects on-the-fly transcoded content (mkv), now you can see full timeline (full duration) for this format of content

@vintikzzz Great! What about mp4 and other formats though?

@odmivolsi
.avi .mkv .flac - now show full duration, but without seeking forward
mp4 .mp3 .wav .ogg .webm - don't require trenscoding (they are supported by browser out of the box), so they also have full duration and you can skip to any position


”Gârceni”, ”Dumbrăveni”, ”Racova” are listed in the drop-down menu

Description:
When user writes ”Gârceni”, ”Dumbrăveni”, ”Racova” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Gârceni"

Expected results
The location appears in the drop-down menu as "Sat Gârceni, VASLUI (Gârceni)".

Step 3
Write in the search bar "Dumbrăveni"

Expected results
The location appears in the drop-down menu as "Sat Dumbrăveni, VASLUI (Gârceni)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.


[Feature] List open tabs/documents in the "Explorer" panel

At the moment open tabs/documents are a little hidden and when using VSCode without any folder selected, the "Explorer" tab becomes less useful.
It would be good if one of the expandable panels was the list of open windows so you could quickly find the document you are after.

There is the open editors view
If you have it hidden you can right click the explorer and show it


Discussion: Would the addition of a KeyMap create value for users?

Something like this (I've already got it to work locally):
Its using 'static lifetime elision, so that we don't need to store anything in the heap.
Changes to lib.rs:
pub struct KeyMap {
    pub forward: &'static[KeyCode],
    pub backward: &'static[KeyCode],
    pub left: &'static[KeyCode],
    pub right: &'static[KeyCode],
    pub up: &'static[KeyCode],
    pub down: &'static[KeyCode],
}

impl Default for KeyMap {
    fn default() -> Self {
        Self {
            forward: &[KeyCode::W],
            backward: &[KeyCode::S],
            left: &[KeyCode::A],
            right: &[KeyCode::D],
            up: &[KeyCode::Space],
            down: &[KeyCode::LShift],
        }
    }
}

/// Mouse sensitivity and movement speed
pub struct MovementSettings {
    pub sensitivity: f32,
    pub speed: f32,
    pub map: KeyMap,
}

impl Default for MovementSettings {
    fn default() -> Self {
        Self {
            sensitivity: 0.00012,
            speed: 12.,
            map: KeyMap::default()
        }
    }
}

fn validate_key(codes:&'static[KeyCode], key: &KeyCode) -> bool {
    codes.iter().any(|m| m == key)
}

fn player_move(
    keys: Res<Input<KeyCode>>,
    time: Res<Time>,
    windows: Res<Windows>,
    settings: Res<MovementSettings>,
    mut query: Query<(&FlyCam, &mut Transform)>,
) {
    let window = windows.get_primary().unwrap();
    for (_camera, mut transform) in query.iter_mut() {
        let mut velocity = Vec3::ZERO;
        let local_z = transform.local_z();
        let forward = -Vec3::new(local_z.x, 0., local_z.z);
        let right = Vec3::new(local_z.z, 0., -local_z.x);

        for key in keys.get_pressed() {
            if window.cursor_locked() {
				//----- Changes here ------\\
                if validate_key(settings.map.forward,  key) {velocity += forward }
                if validate_key(settings.map.backward, key) {velocity -= forward }
                if validate_key(settings.map.left,     key) {velocity -= right   }
                if validate_key(settings.map.right,    key) {velocity += right   }
                if validate_key(settings.map.up,       key) {velocity += unit_y()}
                if validate_key(settings.map.down,     key) {velocity -= unit_y()}
            }
        }

        velocity = velocity.normalize();

        if !velocity.is_nan() {
            transform.translation += velocity * time.delta_seconds() * settings.speed
        }
    }
}

Usage (or using default)
.insert_resource(MovementSettings {
    sensitivity: 0.00015, // default: 0.00012
    speed: 12.0, // default: 12.0
    map: KeyMap {
        forward: &[KeyCode::Up, KeyCode::W],
        ..Default::default()
    }
})

The question is: Does it add unnecessary complexity that takes away the simplicity of the library for the benefit of the user? On one hand, it's an opt-in feature and not a breaking feature if you are only using defaults. On the other hand, you still have breaking changes for any have something custom using the lib.

I don't think the added complexity is worth it.
Bevy_flycam is distributed as a crate but also as a snippet, so really if anyone wants these sorts of changes they can just edit it themselves.


Question about the code

                anticipation_queries = self.pos_encoding(
                    self.final_query.weight[:self.cfg.MODEL.LSTR.ANTICIPATION_LENGTH
                                            :self.cfg.MODEL.LSTR.ANTICIPATION_SAMPLE_RATE, ...].unsqueeze(1).repeat(1,work_memories.shape[1], 1),
                    padding=self.work_memory_num_samples)
                work_memories = torch.cat((work_memories, anticipation_queries), dim=0)

Hello @Echo0125 , I have a another question about your code of MAT. In the code above, an anticipation_queries is concatenated with the work_memories. Could you please tell me what is the function of anticipation_queries, and why it is necessary to combine the work_memories and the anticipation_queries? Thanks so much!

MAT can perform oad and aa at the same time, cat the anticipation_queries and work_memories together, and in the end can directly extract the corresponding token based on the timestamp for prediction.


2.6.0 does not compile for #defined ARDUINO_ESP32S3_DEV

[{
"resource": "bb_spi_lcd/src/bb_parallel.cpp",
"owner": "cpp",
"severity": 8,
"message": "'struct esp_lcd_rgb_panel_config_t' has no member named 'num_fbs'",
"startLineNumber": 370,
"startColumn": 17,
"endLineNumber": 370,
"endColumn": 17
},{
"resource": "bb_spi_lcd/src/bb_parallel.cpp",
"owner": "cpp",
"severity": 8,
"message": "'struct esp_lcd_rgb_panel_config_t' has no member named 'bits_per_pixel'",
"startLineNumber": 374,
"startColumn": 17,
"endLineNumber": 374,
"endColumn": 17
},{
"resource": "bb_spi_lcd/src/bb_parallel.cpp",
"owner": "cpp",
"severity": 8,
"message": "'esp_lcd_rgb_panel_get_frame_buffer' was not declared in this scope",
"startLineNumber": 413,
"startColumn": 4,
"endLineNumber": 413,
"endColumn": 4
}]

The latest bb_spi_lcd has functions which require the latest (3.0.x) Arduino ESP32 support (IDF V5.x). Are you using the latest?

No. My App is on Arduino 2.0.4, and i can't migrate to 3.0.x.due to IRAM shortage.
What is the latest release of this lib working with pre Arduino 3.0.x? I will nail my app on that release, then.

I checked my current versions:

Arduino v2.0.11 (release notes)
ESP-IDF v5.1.1 (release notes)
With these frameworks in run into the compiler error with bb_spi_lcd lib.

Probably release 2.4.1 is the one that will work for you.


Feat: Structure change for CloudEvents

Hi,
the CloudEvents processing feature for messages is still a WIP, but this PR changes also some structures, which should be integrated in the main branch to prevent merge failures:

message-gateway is now message-adapter-cloudevents
the old examples/gateway/gateway-c7 module is now starters/spring-web/spring-web-c7

Cheers,
Julian

Codecov Report
Patch and project coverage have no change.

Comparison is base (2baa7c6) 19.87% compared to head (5ea780b) 19.87%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #74   +/-   ##
=========================================
  Coverage     19.87%   19.87%
  Complexity       34       34
=========================================
  Files            79       79
  Lines           493      493
  Branches         10       10
=========================================
  Hits             98       98
  Misses          392      392
  Partials          3        3

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

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

Hey @Hafflgav could you check again?

@hauptmedia there have been two open questions from out last weekly:

Adapter CloudEvents / Message: Where does it belong? Message or CloudEvents domain?
Miranum Commands / CloudEvents Commands. Shouldn't we generate CloudEvents out of the miranum-commands?

I would recommend to get this merged and discuss these two bullet points in a new issue. What do you think about it?
@dominikhorn93 - what is your gut feeling on this?

Quickly checking in on this PR. Any news to share? Could this possibly be merged?
What are the current road blocks?


Reseq failed

--Hi,
it failed with:
reseq illuminaPE -j 16 -r chr20.fa -b my_mappings.bam -1 chr20_1.fastq -2 chr20_2.fastq
!!! bool reseq::AdapterStats::PredictAdapters() [/opt/conda/conda-bld/reseq_1616891573911/work/reseq/AdapterStats.cpp:601]: error: Only non-extendible sequences were found as adapter for read 2
i have first generated chr20_1.fastq and chr20_2.fastq from chr20.fa with art_illumina tool in paired-end mode, then mapped them with bowtie2 as suggested:
bowtie2-build chr20.fa my_reference
bowtie2 -p 16 -X 2000 -x my_reference -1 chr20_1.fastq -2 chr20_2.fastq | samtools sort -m 20G -@ 4 -T _tmp -o my_mappings.bam
seems to be an adapter problem, how to avoid this error ?
thank you --

This was discussed in length in #2. If this does not answer your question, please reopen and explain in more detail.


[stdlib] Add @discardableResult to Set.insert’s AnyHashable overload

Unlike the core Set.insert, this utility declaration wasn’t declared @discardableOverload.
rdar://114008680

Cc @stephentyrone This is technically a public API change; however, it is merely resolving an undesirable/unintentional inconsistency, so it's probably fine to do this without a Swift Evolution process.
I can't think of a way this change could possibly have an adverse effect in client code. (Beyond making code that relies on @discardableResult fail to build on earlier stdlibs.)

@swift-ci test

The Windows CI run has experienced an unrelated timeout.
Build timed out (after 60 minutes). Marking the build as aborted.

Make it so.

@swift-ci test windows


Add more Jupyter notebook configuration file paths.

Added more Jupyter configuration file paths using the below source.
https://docs.jupyter.org/en/latest/use/jupyter-directories.html#configuration-files

@joachimmetz could you do a review whenever time permits?

Thanks for the cleanup. I see one codecov test failing, don't know if relevant....

Thanks for the cleanup. I see one codecov test failing, don't know if relevant....

That's fine, it just indicates that the patch reduced the overall test coverage stats


MODCLUSTER-784 Require JDK 17 as a minimum for the build

Resurgence  of https://github.com/modcluster/mod_cluster/pull/691
Resolves
https://issues.redhat.com/browse/MODCLUSTER-784
Oped as a preview as this will be incorporated via
https://issues.redhat.com/browse/MODCLUSTER-777

Merged via https://github.com/modcluster/mod_cluster/pull/816.


Ensure all realm changes have RealmAuditLog entries

Perform an audit of all properties of a realm, and ensure that all of them trigger a RealmAuditLog entry.
One specific case which is known to be missing is changes to RealmDomain lists.

@zulipbot claim


Integrating Airflow with Travis-CI

@bolkedebruin, I'm bringing this over as a branch to the main repo to collaborate on it. It's clearly overdue to get better CI for Airflow.

@artwr
https://travis-ci.org/airbnb/airflow

@mistercrunch excellent!
Note, it isn't working yet and I am experiencing timeout issues on travis. My (own) focus is also getting a mini-kdc in to ensure security integration testing, I am getting close but not there yet. Most of what I have done is some porting of snakebite's testing, however some stuff is still missing (minicluster for example). I'll be on off working on this when I can find the time.

I was having the same issues with https://github.com/artwr/airflow/tree/travis-ci-setup-test
Travis tends to timeout, especially when nothing is output to stdout for a while...

If the issue is only stdout, we could use a hack to run commands as subprocesses and periodically issue sometime to stdout. Preferably line by line ascii art :)

Looks like there's a standard solution here:
http://docs.travis-ci.com/user/build-timeouts/#Build-times-out-because-no-output-was-received

I am actually using that, but the dependencies take really a lot of time to get installed and it does it several times, eg. for each hadoop type and eventually each python type. We could look at a way to cache this (http://docs.travis-ci.com/user/caching/) or something like this: https://gist.github.com/jsuereth/56bd6f63138f5877f9b8

But first get it running successfully I would say. Without tox this is quite easy, except of course that a lot of the tests fail and tox adds the benefit of being able to run multiple types of testings (ie. cdh/hdp, etc)

Even if we do not run the integration testing with hadoop for now, we could use tox to test py2/3 compatibility with requirements and mysql. It would be a huge win.

@mistercrunch could you please add a Python 3.4 (or 3.5 :) ) build? That would be extremely helpful for maintaining compatibility.

@jlowin : totally. 3.4 or 3.5? Initially I don't want to put too much stress on travis, so let's just pick one.

I'd vote for starting out cutting edge with 3.5, especially since us Py3-ers seem few and far between :).

So to cut it up it would look something like:

MySQL + Postgres
Hadoop
2a. Hadoop Minicluster
2b. Hive Mini
Secured Hadoop

Make sense?

What I am doing (my own branch) to speedup the testing is to use the caching of directories by travis and to use wheels of the packages. I am struggling a little bit with the tox integration as "python setup.py test" does not pick up the wheels. Might need to invoke "tox" directly.

@mistercrunch @artwr I have a reasonable test environment running now (my own branch).
I have used caching for dependencies by using wheels and by storing them in travis cache. Missing dependencies get added automatically, upgrades of packages not. This speeds up testing from +30mins to around 2mins. Further caching can be done on the hadoop components if required.
Todo:

Invalidate cache in case of requirements that need to be upgraded
The file matching does not entirely work, don't know how to improve currently. Better matching means faster tests
Selective testing for things that can be tested in travis
Have an initial mysql / postgres db

Please have a look. The commits are messy at the moment due to a lot of trial and error (geez!)

This is awesome! I'll pull your branch in again and see what I can do.

Ok this PR is now based off of your current branch, I'm keeping an eye on travis. I'm hoping to find time and take on the selective test part and setting up an initial db.
It looked like deleting the cache can be done manually in the Travis-UI, I think this may be sufficient.

You might have pulled my branch just at the minute it is not working :-). If you did, I'll fix it tomorrow. I have probably a better way of using the wheels anyway.
Sent from my iPhone

On 17 okt. 2015, at 20:45, Maxime Beauchemin<EMAIL_ADDRESS>wrote:
Ok this PR is now based off of your current branch, I'm keeping an eye on travis. I'm hoping to find time and take on the selective test part and setting up an initial db.
It looked like deleting the cache can be done manually in the Travis-UI, I think this may be sufficient.
—
Reply to this email directly or view it on GitHub.

Ok, I'll hold off. It looks like you've done tons of great work though. This is going a game changer!
BTW I'm sure you've figured out that not all the tests work out of the box... Once you're ready I'll jump in and add the missing pieces.

@mistercrunch branch is done. It now fully caches python dependencies after first build. First build can take around 30min, but subsequent builds only around 3min. Further optimization can be done by adding the hadoop downloads to the cache or, only for now, commenting them out as they are not used yet.
I have also included python 3.5 to the build matrix as I saw that was a request somewhere. It fails on the wheel now at the moment as librrabitmq is in the requirements and that is not python 3 compatible yet. Maybe differ between different python versions for the requirements? Anyways its means that 4 builds are now triggered.
It would be nice if airflow pre-fills its connections for testing. In travis you can use mysql (username root password blank or username travis password blank) and postgres (user: postgres). Both have been pre-configured with a "airflow" database that is empty.
See http://docs.travis-ci.com/user/database-setup/ for more details.

@mistercrunch I have update my branch again and fixed a couple of things:

Copying the airflow_travis.cfg also in my environment :-)
Instead of using pymysql I am suggesting to use mysqlclient which is the updated MySQL-Python, but with python3 support and actively maintained. It's a drop in replacement

Now integration tests with mysql pass and no errors on sqlalchemy anymore.

Btw I also suggest going down to python 3.4 as a target. Many libs are not at 3.5 making us tracking down a lot of those issues (ie. mysqlclient goes up to 3.4)

@bolkedebruin probably right about 3.4. Got over eager...

@bolkedebruin , looks like we're getting close! I just merged your commits here and I'll try to fix the remaining failing tests today.

@mistercrunch awesome! Full python 3 might be a bit off though (sasl not being updated really which is a dependency of pyhs2). I am working on a MiniHiveCluster I might have on ready for testing at the end of the week.

Historical moment:

Ok, I did disable all the Hive/Presto/Data transfer tests, but it's still a great achievement. Props to  @bolkedebruin who did all the hard work !

A'ight I rebased, I think this is good to go.

Nice! It certainly looks that way. Maybe you want to include: http://docs.travis-ci.com/user/status-images/ ?


Possible enhancement when using "Install and delete CIA"

When using the option "Install and delete CIA", could it be possible to install, AND delete the CIA at the same time, so, it would not require double the space on the SD card? Also, you won't be able to abort this one, without destroying the CIA.
It'll be useful for persons running low on SD card space

No, it isn't.

Why exactly? I mean, what are the limitations? You can't read a sector, then free it, and write at that same place in a stream fashion? (Because you can install CIAs using the network, so, that means you can install one in a streaming fashion, no? (Except if you download it entirely, and then install it, but it's not efficient then))

I can't delete a file without deleting the whole thing.


⚠ Bofrost.fr has degraded performance

In e86c2c9, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1285 ms

Resolved: Bofrost.fr performance has improved in 17c4e97 after 6 minutes.


sscanf() is broken (hangs / stores unexpected values)

This code (taken from Neverball) leads to faulty behaviour:
#ifdef NXDK
#include <hal/video.h>
#include <hal/debug.h>
#else
#define debugPrint(...) printf(__VA_ARGS__)
#endif
#include <stdio.h>

int main() {

#ifdef NXDK
  XVideoSetMode(640, 480, 32, REFRESH_DEFAULT);
#endif

  const char* line = "fullscreen                0";

  int ks, ke, vs;

  ks = -1;
  ke = -1;
  vs = -1;

  debugPrint("Starting scan\n");

  int ret = sscanf(line, " %n%*s%n %n", &ks, &ke, &vs);

  debugPrint("Result %d = %d %d %d\n", ret, ks, ke, vs);

#ifdef NXDK
  while(1);
#else
  return 0;
#endif
}

On my desktop with clang I get:
Starting scan
Result 0 = 0 10 26

On nxdk (in XQEMU) I only get:
Starting scan

(it seems to hang before the second debugPrint is reached)
On nxdk (in XQEMU) I got this with an older revision of the code which didn't retrieve / print int ret:
Starting scan
Result<PHONE_NUMBER><PHONE_NUMBER> 10

Probably a bug in pdclib? CC @DevSolar

This was fixed upstream in https://github.com/DevSolar/pdclib/issues/8.
I'm not sure if nxdk-pdclib has the fix yet.


Add list of swags

Add Hacktoberfest Swag List - list of all goodies given away by companies

Thanks for contributing @koppor !


Added a secureConnection parameter

This resolves #2.
I'm open for requested changes.
Haven't written a README entry yet in case something changes.

Huh,. wasn't aware of that, lastfm api docs strikes again, I guess.
Looks good as is, thanks! I'll get the readme stuff handled now.
Once I get some other changes done I'll prolly flip that default to true for 1.0.0 release.
At least assuming I don't stumble onto something weird.


etags, path and its content hash should be removed in deleteFile?

Hi,
I've got an error 412 Precondition Failed when I get a file, delete that file, and put a new file with the same path as the deleted file.
I understand it happened because in getFileContents, getting a file, etags is updated with the file's path and its hash content. But when that file is deleted, etags isn't updated. So when a new file with the same path is created in putFile, the path found in etags and old hash content is used.
I'm not sure it's by design that path should not be reused after deletion? Should I design my app to always generate a new key for a new file or have a random string in the file name?
Thank you.

This looks like a bug. The in-memory etag map should be updated after a deleteFile.
@reedrosenbluth can you think of any decent work around for this for now? Otherwise, looks like a quick patch?

Will work on a quick patch for this! @witwitchayakarn thanks for reporting this bug!


Feature: New Check "Permissive License"

Is your feature request related to a problem? Please describe.
Usage of non-permissive licensed open-source software comes with some legal risk, especially when used by companies.
It would be good to have an indicator if software is permissively licensed or if further considerations have to be taken.
Describe the solution you'd like
An extended version of the license check, that checks whether a known-permissive license is used for the analyzed repo.
Describe alternatives you've considered
Checking for copyleft licenses. But that way around it might fool you into a "safe" license situation because of a non-comprehensive license list in the check. Therefore it is more safe to check for a known-list of "safe" licenses and rather "fail" for everything else.
Additional context
Added a possible implementation here https://github.com/ossf/scorecard/pull/3838

An extended version of the license check, that checks whether a known-permissive license is used for the analyzed repo.

Hmm, I would consider this similar enough to License check that it could be an optional probe under the License check. We're still thinking about what to do with these not-enabled-by-default probes.
You can see an example of this with the Binary-Artifacts check, where there are two probes:

freeOfUnverifiedBinaryArtifacts
freeOfAnyBinaryArtifacts

But only one is enabled by default:
https://github.com/ossf/scorecard/blob/a762812285f9bc69dcb51e5f7f0ff79f32d60407/probes/entries.go#L144-L146

Maybe I did miss something in the documentation, but is there a way to enable optional probes via the CLI?
Or do we have to change the code and rebuild the binary if we want to enable an optional probe?

Yeah, that's what I was talking about with "We're still thinking about what to do with these not-enabled-by-default probes.".
The structured result/probe work is my highest priority currently. So I can take a stab at this.

Sorry for the delay. I'll try to finish #3876 this Friday, but I left a review on the probe portion of #3838.

I see the value in this for some people / organizations, and am happy to have accessible in some form via Scorecard.
Advocating for a project to declare a license is something projects/people should support regardless of their viewpoints on specific licenses. However, I don't think we should award for permissive and penalize copyleft licenses in the default Scorecard results.
#3876 was merged, so you can run custom probes currently and get results
SCORECARD_EXPERIMENTAL=1 go run  main.go --repo ossf/scorecard --probes freeOfAnyBinaryArtifacts --format probe | jq

{
  "date": "2024-04-02",
  "repo": {
    "name": "github.com/ossf/scorecard",
    "commit": "d58bfb03aab496807d8489e09da9883928465f59"
  },
  "scorecard": {
    "version": "",
    "commit": "unknown"
  },
  "findings": [
    {
      "probe": "freeOfAnyBinaryArtifacts",
      "message": "Repository does not have any binary artifacts.",
      "outcome": 12
    }
  ]
}

(note: outcome 12 is currently OutcomePositive we are working on readability so people don't need to look up numbers)
This doesn't have a score attached though, so if you wanted a scorecard binary with a permissive license check with a score, #3095 would be one possibility.


More currency-related info will be appreciated

Letting the user select the currency has some impacts not only on the currency name/symbol to show.
There are some currencies that show the symbol before the amount while others after. There're also some currencies that are a space between the symbol and the amount, and not all currencies show the same decimal digits.
I think that gives this information when the user selects a currency will be really helpful.
I've found a JSON file from another library that has this information, so it will not be too hard to add it:
https://github.com/smirzaei/currency-formatter/blob/master/currencies.json

@Daniel-Ioannou are you planning to add the extra formatting info from the JSON file @EsteveAguilera provided?

I can work on a PR to add the currency symbol location if you're interested

I was going to offer if Daniel wasn't planning to, but if you have the time to do it, that would make my life easier :-) I'm on a tight deadline for another project.
Could you also add the other info: "thousandsSeparator", "decimalSeparator", "symbolOnLeft" and    "spaceBetweenAmountAndSymbol"? That way the info can be used to do custom formatting for currencies not supported by intl (which is what I need).

@voivoed @EsteveAguilera I already add some fields. I'm working on it now 🙂

I will post the changes tomorrow, it is past midnight here now.


Last slide never gets active

When I use slidesPerView: 1.3 and  loop: false as params, the last slide never gets the class "swiper-class-active" and the realindex gets never the index of the last slide.
You can reproduce here codesandbox
Would it be possible to make the last slide move to the same position as the other active slides?
Thanks

i guess it's a bug. i solve it by adding extra div element or what ever element you using after the last slide

It's a bug in swiper, not related to this package here: https://github.com/nolimits4web/swiper/issues/3108


neodigmUtils.countTo | Is not functioning properly

Seems to stop before it reaches its target. Also, may be related but will not go to zero.

Creating tests.

This issue is resolved in v2.5. No doc or wiki changes needed. For an example, click on any KPI on the landing page.


[Controller] Xbox Elite Series 2 rumble/vibration

I noticed that my Xbox Elite Series 2 controller - which is paired via Bluetooth - does not "rumble" in games. It does vibrate upon connection (there is a pairing confirmation rumble), but within Steam games, it isn't rumbling. For what it is worth, I DO NOT have the Steam input for Xbox controller option checked.
Any advice?

Last time i checked this year, the rumble on the Xbox Elite Series 2 would at random freeze the firmware and make it stuck in permanent rumble (and whatever direction you have the stick) until you power cycle the controller.
The only way around it was to disable the rumble, not sure if this is the case still.

@HikariKnight that actually sounds a lot like what I am experiencing. Basically, no matter the game, very early on the controller will lock up and stop responding, and I have to turn it off and on again.
I only yesterday realized that the rumble DOES WORK in that tiny amount of time before it "locks up"... after which, the rumble no longer works 😢
Any chance you know if this is a older firmware issue? I have never updated the firmware because I don't have a windows computer... not sure if there is a way to do it on Linux or Mac.

@HikariKnight that actually sounds a lot like what I am experiencing. Basically, no matter the game, very early on the controller will lock up and stop responding, and I have to turn it off and on again.
I only yesterday realized that the rumble DOES WORK in that tiny amount of time before it "locks up"... after which, the rumble no longer works 😢
Any chance you know if this is a older firmware issue? I have never updated the firmware because I don't have a windows computer... not sure if there is a way to do it on Linux or Mac.

back when i was looking into it, it was a problem with all firmwares up to the newest firmware (early 2023)

I run earlier firmware on my controller (primarily to maintain support with Mission Control over on the Switch), and I have not encountered this. Rumble seems to be fine. If you can, I'd recommend trying a firmware downgrade

me an @EyeCantCU checked our firmware versions and they were both on the same old firmware 4.8.1908.0 so it is weird that they dont get the issue but we do :thinking:

I am still trying to get access to a Windows PC that I can do the firmware update on. Once I do, I will record both the current Firmware version - and whatever the new version is that I install. Then, I will see if the issue persists and report back :pray: haha but by the sounds of it, I shouldn't get my hopes up.

Just an update:
I was able to update to the latest firmware... but I can no longer get the controller to pair, so I haven't been able to determine if the firmware solved the problem or not.
I provide some more details in this recent issue: https://github.com/ublue-os/bazzite/issues/575#issuecomment-1823106644

Just an update:
I was able to update to the latest firmware... but I can no longer get the controller to pair, so I haven't been able to determine if the firmware solved the problem or not.
I provide some more details in this recent issue: #575 (comment)

make sure youre on :39 or :latest
currently :38 has some bluetooth pairing issues (upstream issue with bluez i think it was)

Yea I had updated to latest hoping it would solve the issue after I read this: https://github.com/ublue-os/bazzite/issues/456
Sadly, it did not 😢
I am going to try and pick up a DualSense Edge controller around XMas time and see if that pairs 🤞

I am FINALLY able to report back and say that the issue appears to be fixed!
I've updated my controller to the latest firmware AND I can finally pair it again in Bazzite with the most recent updates. I've played games - rumble is working and not crashing :smile:


darwin.diskdev_cmds: fix build on m1 by bumping xnu version

Motivation for this change
diskdev_cmds failed to build, causing issues with nix-darwin configurations.
Things done
Bumped xnu version and copied over arm/ headers for diskdev_cmds.
xnu still fails to build, and I'm not sure how to fix it. This might be relevant to m1 only as the error is
clang-11: error: cannot use 'cpp-output' output with multiple -arch options`.
mig: fatal: "<no name yet>", line -1: no SubSystem declaration

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This should fix #145168

This breaks x86_64-darwin stdenv that relies on xnu to build.
Also see a prior PR #110840

@veprbl can you check if its fixed for x86_64-darwin? It still fails on aarch64-darwin with the error message
clang-11: error: invalid arch name '-arch arm64e'
mig: fatal: "<no name yet>", line -1: no SubSystem declaration

The arch was merged on Dec 3, 2020, while clang 11.1 was released on Feb 25, 2021.

@veprbl I ended up just pulling the latest xnu tarball for the headers, so this shouldn't cause any issues for x86_64-darwin. xnu still doesn't build on M1 but that seems out of the scope of this PR.

@veprbl can you check if its fixed for x86_64-darwin? It still fails on aarch64-darwin with the error message
clang-11: error: invalid arch name '-arch arm64e'
mig: fatal: "<no name yet>", line -1: no SubSystem declaration

The arch was merged on Dec 3, 2020, while clang 11.1 was released on Feb 25, 2021.

In our experience from #153441, it takes llvmPackages_13 to get arm64e support, plus our cc-wrapper may not handle well the -arch option.

@veprbl I ended up just pulling the latest xnu tarball for the headers, so this shouldn't cause any issues for x86_64-darwin. xnu still doesn't build on M1 but that seems out of the scope of this PR.

That's fine. Judging from reduced number of rebuilds, this should just work.
@GrahamcOfBorg build darwin.diskdev_cmds

Result of nixpkgs-review pr 155077 run on x86_64-darwin 1

360 packages marked as broken and skipped:

OVMF
OVMFFull
ajour
almanah
alpine-make-vm-image
arcan.arcan
arcan.xarcan
ares
atom
atom-beta
bareos
bespokesynth
biboumi
bitcoin-unlimited
bitcoind-unlimited
bluetooth_battery
bootiso
brickd
brltty
btrbk
bucklespring-libinput
cardboard
cloud-init
cloud-utils
clutter
collectd
collectd-data
connman_dmenu
cozy
dasher
datadog-agent
datadog-process-agent
debugedit
dfilemanager
dockle
entangle
exaile
falkon
fast-cli
fgallery
filebeat7
firefox-esr-91-unwrapped
firefox-esr-unwrapped
firefox-unwrapped
firefoxPackages.firefox
firefoxPackages.firefox-esr-91
flent
flex-ndax
gcr
germinal
gmic-qt-krita
gnome-recipes
gnome-text-editor
gnome.eog
gnome.gedit
gnome.nautilus-python
google-cloud-sdk-gce
gscan2pdf
gtkd
gtkmm4
gusb
i3
i3-balance-workspace
idasen
interlock
jellyfin-mpv-shim
journalbeat
journalbeat6
jpsxdec
kaffeine
kappanhang
kodiPackages.inputstream-adaptive
kodiPackages.inputstream-ffmpegdirect
kodiPackages.inputstream-rtmp
kodiPackages.joystick
kodiPackages.libretro
kodiPackages.libretro-genplus
kodiPackages.libretro-mgba
kodiPackages.libretro-snes9x
kodiPackages.pvr-hdhomerun
kodiPackages.pvr-hts
kodiPackages.pvr-iptvsimple
kodiPackages.steam-controller
kodiPackages.vfs-libarchive
kodiPackages.vfs-sftp
krunner-pass
labwc
latte-dock
libdazzle
liberio
libinput
liblogging
libmanette
libretro.dolphin
libsForQt5.alkimia
libsForQt5.packagekit-qt
libsForQt512.alkimia
libsForQt512.packagekit-qt
libsForQt514.alkimia
libsForQt514.packagekit-qt
libsForQt515.alkimia
libsForQt515.packagekit-qt
litecoin
litecoind
maia-icon-theme
mailspring
malcontent
malcontent-ui
mate.marco
mate.mate-control-center
mate.mate-polkit
mate.mate-power-manager
mate.mate-screensaver
mate.mate-session-manager
mate.mate-settings-daemon
mate.mate-system-monitor
mate.mate-terminal
mate.mate-utils
metadata-cleaner
mirakurun
mousai
multibootusb
musikcube
neard
networkmanager_dmenu
nixui
nvimpager
nwg-wrapper
odpdown
onboard
ori
packagekit
pandoc-drawio-filter
passExtensions.pass-tomb
patray
pcsx2
perl532Packages.Gtk3ImageView
perl532Packages.ImageSane
perl532Packages.LogJournald
perl534Packages.Gtk3ImageView
perl534Packages.ImageSane
perl534Packages.LogJournald
persepolis
picard
piglit
plasma-pass
plasma5Packages.alkimia
plasma5Packages.packagekit-qt
polkit
prometheus-postfix-exporter
pulseaudio
pulseaudio-hsphfpd
pulseaudioFull
puppeteer-cli
pykms
python310Packages.boxx
python310Packages.bpycv
python310Packages.bt-proximity
python310Packages.dogtail
python310Packages.ds4drv
python310Packages.einops
python310Packages.elegy
python310Packages.fjaraskupan
python310Packages.guestfs
python310Packages.halohome
python310Packages.homeassistant-pyozw
python310Packages.i3ipc
python310Packages.idasen
python310Packages.ignite
python310Packages.journalwatch
python310Packages.loo-py
python310Packages.paperwork-backend
python310Packages.paperwork-shell
python310Packages.protonvpn-nm-lib
python310Packages.pulsectl
python310Packages.py3status
python310Packages.pyautogui
python310Packages.pybluez
python310Packages.pycec
python310Packages.pyfuse3
python310Packages.pykulersky
python310Packages.pyro-ppl
python310Packages.pyscreeze
python310Packages.pystemd
python310Packages.python-gammu
python310Packages.python-uinput
python310Packages.python-vlc
python310Packages.pytorch
python310Packages.pytorch-lightning
python310Packages.pytorch-metric-learning
python310Packages.pytorchWithoutCuda
python310Packages.pyudev
python310Packages.pywebview
python310Packages.pywick
python310Packages.pywlroots
python310Packages.rising
python310Packages.rtslib
python310Packages.sane
python310Packages.skorch
python310Packages.slicer
python310Packages.spacy-transformers
python310Packages.stanza
python310Packages.supervise_api
python310Packages.systemd
python310Packages.tensorboardx
python310Packages.test-tube
python310Packages.torchgpipe
python310Packages.torchinfo
python310Packages.torchvision
python310Packages.treex
python310Packages.zcs
python39Packages.boxx
python39Packages.bpycv
python39Packages.bt-proximity
python39Packages.dogtail
python39Packages.ds4drv
python39Packages.einops
python39Packages.elegy
python39Packages.fjaraskupan
python39Packages.guestfs
python39Packages.halohome
python39Packages.homeassistant-pyozw
python39Packages.i3ipc
python39Packages.idasen
python39Packages.ignite
python39Packages.journalwatch
python39Packages.loo-py
python39Packages.paperwork-backend
python39Packages.paperwork-shell
python39Packages.protonvpn-nm-lib
python39Packages.pulsectl
python39Packages.py3status
python39Packages.pyautogui
python39Packages.pybluez
python39Packages.pycec
python39Packages.pyfuse3
python39Packages.pykulersky
python39Packages.pyro-ppl
python39Packages.pyscreeze
python39Packages.pystemd
python39Packages.python-gammu
python39Packages.python-uinput
python39Packages.python-vlc
python39Packages.pytorch
python39Packages.pytorch-lightning
python39Packages.pytorch-metric-learning
python39Packages.pytorchWithoutCuda
python39Packages.pyudev
python39Packages.pywebview
python39Packages.pywick
python39Packages.pywlroots
python39Packages.qiskit
python39Packages.qiskit-machine-learning
python39Packages.rising
python39Packages.rtslib
python39Packages.sane
python39Packages.shap
python39Packages.skorch
python39Packages.slicer
python39Packages.spacy-transformers
python39Packages.stanza
python39Packages.supervise_api
python39Packages.systemd
python39Packages.tensorboardx
python39Packages.test-tube
python39Packages.torchgpipe
python39Packages.torchinfo
python39Packages.torchvision
python39Packages.treex
python39Packages.zcs
qemu_full
qemu_xen
qemu_xen-light
qemu_xen_4_10
qemu_xen_4_10-light
qlcplus
qtile
quassel
quasselClient
quodlibet
quodlibet-full
quodlibet-without-gst-plugins
quodlibet-xine
quodlibet-xine-full
recapp
retroarchFull
rmfuse
rocketchat-desktop
rpcbind
rpi-imager
rshell
rubyPackages.ruby-lxc
rubyPackages_2_7.ruby-lxc
rubyPackages_3_0.ruby-lxc
rubyPackages_3_1.ruby-lxc
run-scaled
sanoid
secretscanner
sharedown
shutter
ssm-agent
strongswanNM
stubby
sublime-music
subsurface
surf
sway-contrib.grimshot
symbolic-preview
sysprof
telepresence
termite
termite-unwrapped
tetrd
tts
tvheadend
udiskie
uhub
unbound-full
unbound-with-systemd
update-resolv-conf
update-systemd-resolved
utox
vimix-gtk-themes
virt-manager-qt
vte
waffle
waybar
wayfire
wayfireApplications-unwrapped.wayfire
wayfireApplications-unwrapped.wayfirePlugins.wayfire
wayfireApplications-unwrapped.wayfirePlugins.wf-shell
wayfireApplications-unwrapped.wcm
wayfirePlugins.wayfire
wayfirePlugins.wf-shell
wcm
whitesur-gtk-theme
wimlib
wine64
wine64Packages.base
wine64Packages.full
wine64Packages.stable
wine64Packages.stableFull
wine64Packages.staging
wine64Packages.stagingFull
wine64Packages.unstable
wine64Packages.unstableFull
wshowkeys
x11basic
xfce.xfce4-weather-plugin
xfce.xfce4_weather_plugin
xorg.xf86inputevdev
xorg.xf86inputlibinput
xorg.xf86videoamdgpu
xorg.xf86videoati
xorg.xf86videonouveau
xorg.xf86videoopenchrome
xorg.xf86videoqxl
xulrunner
yambar
zoneminder

5 packages failed to build:

dashpay
elasticsearch (elasticsearch6)
pivx
pivxd
python310Packages.git-annex-adapter

25 packages built:

atinout
calc
darwin.diskdev_cmds
elasticsearch-oss (elasticsearch6-oss)
elasticsearch7
elasticsearchPlugins.analysis-icu
elasticsearchPlugins.analysis-lemmagen
elasticsearchPlugins.analysis-phonetic
elasticsearchPlugins.discovery-ec2
elasticsearchPlugins.ingest-attachment
elasticsearchPlugins.repository-gcs
elasticsearchPlugins.repository-s3
elasticsearchPlugins.search-guard
facter
git-quick-stats
git-recent
imag
ntfs3g (ntfsprogs)
openvpn_learnaddress
python39Packages.git-annex-adapter
rmlint
solanum
transcrypt
unnethack
vifm

cc: @NixOS/darwin-maintainers for review and merge

Result of nixpkgs-review pr 155077 run on aarch64-darwin 1

50 packages marked as broken and skipped:

alpine-make-vm-image
bitcoin-unlimited
bitcoind-unlimited
litecoin
litecoind
ocamlPackages.torch
ori
pivx
python310Packages.einops
python310Packages.elegy
python310Packages.ignite
python310Packages.pyro-ppl
python310Packages.pytorch
python310Packages.pytorch-lightning
python310Packages.pytorch-metric-learning
python310Packages.pytorchWithoutCuda
python310Packages.pywick
python310Packages.rising
python310Packages.skorch
python310Packages.slicer
python310Packages.stanza
python310Packages.tensorboardx
python310Packages.test-tube
python310Packages.torchgpipe
python310Packages.torchinfo
python310Packages.torchvision
python310Packages.treex
python39Packages.einops
python39Packages.elegy
python39Packages.ignite
python39Packages.pyro-ppl
python39Packages.pytorch
python39Packages.pytorch-lightning
python39Packages.pytorch-metric-learning
python39Packages.pytorchWithoutCuda
python39Packages.pywick
python39Packages.qiskit
python39Packages.qiskit-machine-learning
python39Packages.rising
python39Packages.shap
python39Packages.skorch
python39Packages.slicer
python39Packages.stanza
python39Packages.tensorboardx
python39Packages.test-tube
python39Packages.torchgpipe
python39Packages.torchinfo
python39Packages.torchvision
python39Packages.treex
rpi-imager

8 packages failed to build:

dashpay
eject
elasticsearch
halfempty
logger
pivxd
unixtools.wall
unnethack

29 packages built:

atinout
calc
elasticsearch-oss
elasticsearchPlugins.analysis-icu
elasticsearchPlugins.analysis-lemmagen
elasticsearchPlugins.analysis-phonetic
elasticsearchPlugins.discovery-ec2
elasticsearchPlugins.ingest-attachment
elasticsearchPlugins.repository-gcs
elasticsearchPlugins.repository-s3
elasticsearchPlugins.search-guard
fishPlugins.fzf-fish
git-quick-stats
git-recent
imag
mount
ntfs3g
openvpn_learnaddress
python310Packages.git-annex-adapter
python39Packages.git-annex-adapter
quota
rmlint
solanum
transcrypt
umount
unixtools.fdisk
unixtools.fsck
unixtools.util-linux
vifm

That file seems to be auto-generated from the generate-sdl-packages.sh script so I don't think I should touch that file. I am able to build the package on aarch_64-darwin so it is working now. The diskdev_cmds/default.nix doesn't even pull the necessary arm/disklabel.h file so I don't think that I'm able to fix this without editing it.

I just forced pushed a commit which added a small TODO noting why pulling a separate xnu tarball is necessary.

What I mean is that we need to take into account the repercussions for x86_64-darwin. Unless the latest sources happen to build completely fine on macOS 10.12 and the interaction with system libraries is compatible the least we'll have to do is branch on the architecture to apply/not these changes.

So I've done a bit of digging, and xnu from apple-source-releases/macos-11.0.1.nix is overwritten by apple-source-releases/default.nix. Even in a nix repl, darwin.xnu.src returns 3789.70.16, and there's no way to access it through the darwin attrset. My ugly solution is to pass in macosPackages_11_0_1 and use it directly from there if its running on Aarch64. There's definitely some soundness issues when we're overriding macosPackages_11_0_1 with older versions even on M1, but that's outside the scope of this PR.

Not entirely sure if this is helpful, but I was curious anyways:
Result of nixpkgs-review pr 155077 run on x86_64-darwin 1

364 packages marked as broken and skipped:

OVMF
OVMFFull
ajour
almanah
alpine-make-vm-image
arcan.arcan
arcan.xarcan
ares
atom
atom-beta
bareos
bedup
bespokesynth
biboumi
bitcoin-unlimited
bitcoind-unlimited
bluetooth_battery
bootiso
brickd
brltty
btrbk
bucklespring-libinput
cardboard
cloud-init
cloud-utils
clutter
collectd
collectd-data
connman_dmenu
cozy
dasher
datadog-agent
datadog-process-agent
debugedit
dfilemanager
dockle
entangle
exaile
falkon
fast-cli
fgallery
filebeat7
firefox-esr-91-unwrapped
firefox-esr-unwrapped
firefox-unwrapped
firefoxPackages.firefox
firefoxPackages.firefox-esr-91
flent
flex-ndax
gcr
germinal
gmic-qt-krita
gnome-recipes
gnome-text-editor
gnome.eog
gnome.gedit
gnome.nautilus-python
google-cloud-sdk-gce
gscan2pdf
gtkd
gtkmm4
gusb
i3
i3-balance-workspace
idasen
interlock
jellyfin-mpv-shim
journalbeat
journalbeat6
jpsxdec
kaffeine
kappanhang
kodiPackages.inputstream-adaptive
kodiPackages.inputstream-ffmpegdirect
kodiPackages.inputstream-rtmp
kodiPackages.joystick
kodiPackages.libretro
kodiPackages.libretro-genplus
kodiPackages.libretro-mgba
kodiPackages.libretro-snes9x
kodiPackages.pvr-hdhomerun
kodiPackages.pvr-hts
kodiPackages.pvr-iptvsimple
kodiPackages.steam-controller
kodiPackages.vfs-libarchive
kodiPackages.vfs-sftp
krunner-pass
labwc
latte-dock
libdazzle
liberio
libinput
liblogging
libmanette
libretro.dolphin
libsForQt5.alkimia
libsForQt5.packagekit-qt
libsForQt512.alkimia
libsForQt512.packagekit-qt
libsForQt514.alkimia
libsForQt514.packagekit-qt
libsForQt515.alkimia
libsForQt515.packagekit-qt
lightly-qt
litecoin
litecoind
maia-icon-theme
mailspring
malcontent
malcontent-ui
mate.marco
mate.mate-control-center
mate.mate-polkit
mate.mate-power-manager
mate.mate-screensaver
mate.mate-session-manager
mate.mate-settings-daemon
mate.mate-system-monitor
mate.mate-terminal
mate.mate-utils
metadata-cleaner
mirakurun
mousai
multibootusb
musikcube
neard
networkmanager_dmenu
nixui
nvimpager
nwg-wrapper
odpdown
onboard
ori
packagekit
pandoc-drawio-filter
passExtensions.pass-tomb
patray
pcsx2
perl532Packages.Gtk3ImageView
perl532Packages.ImageSane
perl532Packages.LogJournald
perl534Packages.Gtk3ImageView
perl534Packages.ImageSane
perl534Packages.LogJournald
persepolis
picard
piglit
plasma-pass
plasma5Packages.alkimia
plasma5Packages.packagekit-qt
polkit
prometheus-postfix-exporter
pulseaudio
pulseaudio-hsphfpd
pulseaudioFull
puppeteer-cli
pykms
python310Packages.bedup
python310Packages.boxx
python310Packages.bpycv
python310Packages.bt-proximity
python310Packages.dogtail
python310Packages.ds4drv
python310Packages.einops
python310Packages.elegy
python310Packages.fjaraskupan
python310Packages.guestfs
python310Packages.halohome
python310Packages.homeassistant-pyozw
python310Packages.i3ipc
python310Packages.idasen
python310Packages.ignite
python310Packages.journalwatch
python310Packages.loo-py
python310Packages.paperwork-backend
python310Packages.paperwork-shell
python310Packages.protonvpn-nm-lib
python310Packages.pulsectl
python310Packages.py3status
python310Packages.pyautogui
python310Packages.pybluez
python310Packages.pycec
python310Packages.pyfuse3
python310Packages.pykulersky
python310Packages.pyro-ppl
python310Packages.pyscreeze
python310Packages.pystemd
python310Packages.python-gammu
python310Packages.python-uinput
python310Packages.python-vlc
python310Packages.pytorch
python310Packages.pytorch-lightning
python310Packages.pytorch-metric-learning
python310Packages.pytorchWithoutCuda
python310Packages.pyudev
python310Packages.pywebview
python310Packages.pywick
python310Packages.pywlroots
python310Packages.rising
python310Packages.rtslib
python310Packages.sane
python310Packages.skorch
python310Packages.slicer
python310Packages.spacy-transformers
python310Packages.stanza
python310Packages.supervise_api
python310Packages.systemd
python310Packages.tensorboardx
python310Packages.test-tube
python310Packages.torchgpipe
python310Packages.torchinfo
python310Packages.torchvision
python310Packages.treex
python310Packages.zcs
python39Packages.bedup
python39Packages.boxx
python39Packages.bpycv
python39Packages.bt-proximity
python39Packages.dogtail
python39Packages.ds4drv
python39Packages.einops
python39Packages.elegy
python39Packages.fjaraskupan
python39Packages.guestfs
python39Packages.halohome
python39Packages.homeassistant-pyozw
python39Packages.i3ipc
python39Packages.idasen
python39Packages.ignite
python39Packages.journalwatch
python39Packages.loo-py
python39Packages.paperwork-backend
python39Packages.paperwork-shell
python39Packages.protonvpn-nm-lib
python39Packages.pulsectl
python39Packages.py3status
python39Packages.pyautogui
python39Packages.pybluez
python39Packages.pycec
python39Packages.pyfuse3
python39Packages.pykulersky
python39Packages.pyro-ppl
python39Packages.pyscreeze
python39Packages.pystemd
python39Packages.python-gammu
python39Packages.python-uinput
python39Packages.python-vlc
python39Packages.pytorch
python39Packages.pytorch-lightning
python39Packages.pytorch-metric-learning
python39Packages.pytorchWithoutCuda
python39Packages.pyudev
python39Packages.pywebview
python39Packages.pywick
python39Packages.pywlroots
python39Packages.qiskit
python39Packages.qiskit-machine-learning
python39Packages.rising
python39Packages.rtslib
python39Packages.sane
python39Packages.shap
python39Packages.skorch
python39Packages.slicer
python39Packages.spacy-transformers
python39Packages.stanza
python39Packages.supervise_api
python39Packages.systemd
python39Packages.tensorboardx
python39Packages.test-tube
python39Packages.torchgpipe
python39Packages.torchinfo
python39Packages.torchvision
python39Packages.treex
python39Packages.zcs
qemu_full
qemu_xen
qemu_xen-light
qemu_xen_4_10
qemu_xen_4_10-light
qlcplus
qtile
quassel
quasselClient
quodlibet
quodlibet-full
quodlibet-without-gst-plugins
quodlibet-xine
quodlibet-xine-full
recapp
retroarchFull
rmfuse
rocketchat-desktop
rpcbind
rpi-imager
rshell
rubyPackages.ruby-lxc
rubyPackages_2_7.ruby-lxc
rubyPackages_3_0.ruby-lxc
rubyPackages_3_1.ruby-lxc
run-scaled
sanoid
secretscanner
sharedown
shutter
ssm-agent
strongswanNM
stubby
sublime-music
subsurface
surf
sway-contrib.grimshot
symbolic-preview
sysprof
telepresence
termite
termite-unwrapped
tetrd
tts
tvheadend
udiskie
uhub
unbound-full
unbound-with-systemd
update-resolv-conf
update-systemd-resolved
utox
vimix-gtk-themes
virt-manager-qt
vte
waffle
waybar
wayfire
wayfireApplications-unwrapped.wayfire
wayfireApplications-unwrapped.wayfirePlugins.wayfire
wayfireApplications-unwrapped.wayfirePlugins.wf-shell
wayfireApplications-unwrapped.wcm
wayfirePlugins.wayfire
wayfirePlugins.wf-shell
wcm
whitesur-gtk-theme
wimlib
wine64
wine64Packages.base
wine64Packages.full
wine64Packages.stable
wine64Packages.stableFull
wine64Packages.staging
wine64Packages.stagingFull
wine64Packages.unstable
wine64Packages.unstableFull
wshowkeys
x11basic
xfce.xfce4-weather-plugin
xfce.xfce4_weather_plugin
xorg.xf86inputevdev
xorg.xf86inputlibinput
xorg.xf86videoamdgpu
xorg.xf86videoati
xorg.xf86videonouveau
xorg.xf86videoopenchrome
xorg.xf86videoqxl
xulrunner
yambar
zoneminder

30 packages failed to build:

atinout
calc
darwin.diskdev_cmds
dashpay
elasticsearch (elasticsearch6)
elasticsearch-oss (elasticsearch6-oss)
elasticsearch7
elasticsearchPlugins.analysis-icu
elasticsearchPlugins.analysis-lemmagen
elasticsearchPlugins.analysis-phonetic
elasticsearchPlugins.discovery-ec2
elasticsearchPlugins.ingest-attachment
elasticsearchPlugins.repository-gcs
elasticsearchPlugins.repository-s3
elasticsearchPlugins.search-guard
facter
git-quick-stats
git-recent
imag
ntfs3g (ntfsprogs)
openvpn_learnaddress
pivx
pivxd
python310Packages.git-annex-adapter
python39Packages.git-annex-adapter
rmlint
solanum
transcrypt
unnethack
vifm

@abathur I think I fixed the issue, please try again

I started this late, since I figured I would want to walk away while it ran, but I went ahead and stopped it since diskdev_cmds failed pretty quickly:
$ nix log /nix/store/zr4fpg61f6xz39bv71058ibksh256vi4-diskdev_cmds-593.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/wysbq6qqajpr64vnkdnjjrr35qdrvpsw-diskdev_cmds-593.tar.gz
source root is diskdev_cmds-593
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file diskdev_cmds-593/vsdbutil.tproj/vsdbutil_main.c
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
unpacking source archive /nix/store/n9wjh331dsm1x04q5wxh0lk9zk8clacl-Libc-1158.50.2.tar.gz
unpacking source archive /nix/store/58mgs7ibfmbfsn5qc1ljv2s7bvi8rncw-xnu-3789.70.16.tar.gz
cp: missing destination file operand after 'arm'

I'll try to check back in before bed just in case there's another... :)

@abathur my bad, I forgot to remove the nonexistent arm directory for x86_64 😅. Now it should work.

I get Nothing to be built. on this one. I suppose that may be right, if the goal is a no-op on x86? :)

Yes, that's ideal.
cc: @toonn thoughts on these updates? Obviously it's not the best solution, but I'm unsure of how to access any of the macos_11_0 packages from anywhere. They're overwritten by apple_source_releases default.nix

Result of nixpkgs-review pr 155077 run on aarch64-darwin 1

50 packages marked as broken and skipped:

alpine-make-vm-image
bitcoin-unlimited
bitcoind-unlimited
litecoin
litecoind
ocamlPackages.torch
ori
pivx
python310Packages.einops
python310Packages.elegy
python310Packages.ignite
python310Packages.pyro-ppl
python310Packages.pytorch
python310Packages.pytorch-lightning
python310Packages.pytorch-metric-learning
python310Packages.pytorchWithoutCuda
python310Packages.pywick
python310Packages.rising
python310Packages.skorch
python310Packages.slicer
python310Packages.stanza
python310Packages.tensorboardx
python310Packages.test-tube
python310Packages.torchgpipe
python310Packages.torchinfo
python310Packages.torchvision
python310Packages.treex
python39Packages.einops
python39Packages.elegy
python39Packages.ignite
python39Packages.pyro-ppl
python39Packages.pytorch
python39Packages.pytorch-lightning
python39Packages.pytorch-metric-learning
python39Packages.pytorchWithoutCuda
python39Packages.pywick
python39Packages.qiskit
python39Packages.qiskit-machine-learning
python39Packages.rising
python39Packages.shap
python39Packages.skorch
python39Packages.slicer
python39Packages.stanza
python39Packages.tensorboardx
python39Packages.test-tube
python39Packages.torchgpipe
python39Packages.torchinfo
python39Packages.torchvision
python39Packages.treex
rpi-imager

7 packages failed to build:

dashpay
eject
elasticsearch
halfempty
logger
pivxd
unixtools.wall

30 packages built:

atinout
calc
elasticsearch-oss
elasticsearchPlugins.analysis-icu
elasticsearchPlugins.analysis-lemmagen
elasticsearchPlugins.analysis-phonetic
elasticsearchPlugins.discovery-ec2
elasticsearchPlugins.ingest-attachment
elasticsearchPlugins.repository-gcs
elasticsearchPlugins.repository-s3
elasticsearchPlugins.search-guard
fishPlugins.fzf-fish
git-quick-stats
git-recent
imag
mount
ntfs3g
openvpn_learnaddress
python310Packages.git-annex-adapter
python39Packages.git-annex-adapter
quota
rmlint
solanum
transcrypt
umount
unixtools.fdisk
unixtools.fsck
unixtools.util-linux
unnethack
vifm

Would you say this is eligible to be backported to 21.11?


Toni/uniswap oracles

Initial version of 'simple' Uniswap Oracle for all supported pairs. It can be partially reused for Sliding window oracle.

Deprecating PR for #75


Fixing cli checking file extensions

Proposed fix for #385 by just removing the any and using or for the booleans instead.

Thanks! I wonder why the any wouldn't work, I would think that is functionally the same. Just adding @burkematthew since he wrote this to see if this seems like the best fix.

@mrooney @atkaiser
I'll take a look at this tomorrow and see if I can figure out what's going on.

They're not the same because the or allows the following tests to not be evaluated if filename is none. They code fails as is because when filename is none, it doesn't have the endswith attribute.

@jaron-l thanks for the review and merge, @atkaiser thanks for the PR!


OCPBUGS-8040: Switch NTO metrics auth to certs generated by HCP controller

What this PR does / why we need it:

Switch NTO metrics auth to certs generated by HCP controller

Correct tlsConfig field of NTO ServiceMonitor to use metrics-client
Mount metrics-client in NTO Pod to get the CA cert.

NTO was using service-ca operator generated certs previously, which we are trying to avoid in HyperShift since each control-plane should have it's own certs and CA. NTO's ServiceMonitor tlsConfig field was also misconfigured with the wrong client cert. Fixing this is needed to address NTO OCPBUGS-4647 for NTO running in hosted control planes.
Which issue(s) this PR fixes:
OCPBUGS-8040
OCPBUGS-6057
OCPBUGS-4647
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
N/A This change includes docs.
N/A This change includes unit tests.

/retest

@csrwng

/retest

/hold

/unhold
I think this is ready for further review

/retest

/retest

{Failed  === RUN   TestCreateClusterProxy/EnsureNoCrashingPods     util.go:397: Container cluster-node-tuning-operator in pod cluster-node-tuning-operator-567454569f-q7nqk has a restartCount > 0 (3)     --- FAIL: TestCreateClusterProxy/EnsureNoCrashingPods (0.02s) }

/retest

/retest

/approve
/assign @enxebre

/lgtm

/cherry-pick 4.12

/cherry-pick release-4.12

/cherry-pick release-4.13