[Bug]: Autocomplete size ist not correct sometimes

Before submitting...

[X] I have searched for duplicate or closed issues.
[X] I have read the CONTRIBUTING document and my issue is following the guidelines.
[X] I have read the template completely before filling it in.

Context
Unfortunately I don't have a test case for this, but I sometimes have the problem that the autocomplete field doesn't have the correct width (see screenshot). Can someone confirm that they've noticed this too?

Current Behavior
No response
Expected behavior
No response
Possible Solutions or Causes
No response
Steps to reproduce
No response
Your Environment

Version used: 2.03 beta
Browser Name and version: Chrome Version 119.0.6045.200
Operating System and version (desktop or mobile): Windows 10 desktop
Additional information you want to tell us:

I think you can fix this with the dropdown options. And there you can set constrainWidth to true.
The default is true normally. If this occours sporadic, then I dont know what is the cause.
Thanks for pointing it out... Maybe we will find the answer.

This works as expected in current v2.1.1


Add observability

What is currently missing?
Observability into the performance and operation of Karapace.
How could this be improved?
It would be very useful to add some observability, like number of requests, number of messages produced/consumed, schemas etc.
For my particular use case, it would be great to have a prometheus endpoint with these metrics.
Is this a feature you would work on yourself?
Probably not at this time, but if my backlog clears up and nobody has done anything here, I might take a look at it.
Would welcome some design guidance beforehand.

Thanks for suggesting this and giving the specific examples of the data that we could start with, it would be excellent to have this for Karapace!

Lack of telemetry with Karapace is definitely a bit disappointing and would be a welcome addition! For some perspective, the other two mature projects in this space, RedHat's Apicurio and Confluent Schema-Registry both provide telemetry (Apicurio as prometheus metrics and SR via JMX MBeans).

Hey, I am just wondering do we have metrics now? Something like the Confluent Schema-Registry's JMX MBeans metrics.
I saw there is a StatsClient. What is this StatsClient used for? By looking at the code, is that only used for reporting the unexpected exceptions?

@YuWang24 , StatsClient is a class that can publish metrics using the statsd format and send tracebacks to sentry. But as you noticed there are not that many metrics being published as of now.

@hackaugusto Thank you for answering.

Hey @lornajane, i noticed that some work on this has been recently done as part of https://github.com/aiven/karapace/pull/453. Would you be able to share any design or roadmap for further work on implementing support for additional metrics? We (Instaclustr) would be happy to help contribute towards it.

This is great! We're working on a roadmap to share for this project, should be something in the next few weeks and it would be good to get your input when we do.

Nice, thanks! We were in the early stages of planning work on this and having some insight into your roadmap/design will help.

@lornajane Any progress on the roadmap? Is there something we can do to help expedite it?

I'm going to loop in @filip-yonov-aiven here to get us something we can look at. I think it would be great to collaborate on our plans!

Thank you @lornajane! @varunghai-instaclustr, I will come back to this thread when we are ready with the draft.

Thanks @lornajane, @filip-yonov-aiven . Looking forward to it.

Hey @filip-yonov-aiven. We’ve got resources freeing up shortly from work on supporting schema references and were thinking of having them assist in this effort of supporting metrics implementation. So, if there’s something we can do to help expedite this, possibly even help come with a joint roadmap, please let me know? If not, we’ll look for other items to pick up.

@varunghai-instaclustr thanks again! We have scheduled a meeting for next week to go over the next steps in the collaboration.

Hi @varunghai-instaclustr, as we discussed, please find a link to our high-level roadmap here, also please note we have started using milestones to which we will link our issues. Looking forward to meeting tomorrow and going over the changes.

Thanks @filip-yonov-aiven. We've started looking at the backlog and will chat further with you on our call later today.


:PlugUpdate stopped working in OSX/Yosemite 10.10.5 - ruby 2.3.0preview1

This is likely not a vim-plug bug, but maybe someone here can point me in the right direction to fixing my ruby-vim setup? In OSX/Yosemite 10.10.5, :PlugUpdate no longer works for me (:PlugUpgrade works.) I assume it's something related to rvm, but I have no other ruby issues except in VIM: ruby + rvm/gems work fine outside of vim.
➜ git --version
git version 2.6.4

➜ gem --version
2.5.0

➜ rvm list
rvm rubies
   ruby-1.9.3-p194 [ x86_64 ]
   ruby-2.0.0-p451 [ x86_64 ]
   ruby-2.0.0-p576 [ x86_64 ]
   ruby-2.1.2 [ x86_64 ]
   ruby-2.1.3 [ x86_64 ]
   ruby-2.1.5 [ x86_64 ]
   ruby-2.2.3 [ x86_64 ]
=* ruby-2.3.0-preview1 [ x86_64 ]

➜ ruby --version
ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-darwin14]

from within vim:
:ruby puts RUBY_VERSION
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
from <internal:gem_prelude>:1:in `<compiled>'

(:PlugUpdate reports the same error.)
do i need to recompile vim each time I rvm install new rubies? :cry:

Building Vim against the system default Ruby will do:
rvm use system
brew reinstall vim

that worked perfectly. i saw this in #422 but i didn't realize that it was the same problem. sorry / thanks!
also thanks for making releasing so many great vim. plugins. I love Plug and Limelight and Easy-Align,  all super useful to me.

Thanks. I think I'm going to update the wiki page or even consider putting it on the README page.


Can you provide the code for generating pkl-file?

Thank you very much for providing the source code of this project, I want to use this project to experiment on the Something-Something V1, but the annotation file of the Something-Something V1 is in csv format, I am having difficulty with how to generate the pkl-file. Can you provide the code to generate the pkl-file or the pkl-file about the Something-Something V1. Thanks.

Thank you very much for providing the source code of this project, I want to use this project to experiment on the Something-Something V1, but the annotation file of the Something-Something V1 is in csv format, I am having difficulty with how to generate the pkl-file. Can you provide the code to generate the pkl-file or the pkl-file about the Something-Something V1. Thanks.
Have you solved the problem？Can you contact me if you 've already solved it? My QQ email is<EMAIL_ADDRESS>


implement zero blob changes from 3093

cc: @kevaundray

Already being done in https://github.com/protolambda/go-kzg/pull/32


Getting started instructions are missing auth provider setup

Currently, getting started instructions are missing the steps to configure the auth provider. We're referencing our live documentation, which unfortunately isn't working, because it's incompatible with this SDK. To help developers try this SDK, we should include a fully working sample, for example:
import { ClientSecretCredential } from '@azure/identity';
import { AzureIdentityAuthenticationProvider } from '@microsoft/kiota-authentication-azure';
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import { createGraphServiceClient } from "@microsoft/msgraph-sdk";
import "@microsoft/msgraph-sdk-users";
import 'dotenv/config';

(async () => {
  const credential = new ClientSecretCredential(
    process.env.TENANT_ID,
    process.env.CLIENT_ID,
    process.env.CLIENT_SECRET
  );
  const authProvider = new AzureIdentityAuthenticationProvider(credential, ['https://graph.microsoft.com/.default']);
  const requestAdapter = new FetchRequestAdapter(authProvider);
  const graphServiceClient = createGraphServiceClient(requestAdapter);

  try {
    const users = await graphServiceClient.users.get();
    console.log(JSON.stringify(users));
  }
  catch (error) {
    console.error(error);
  }
})();

@drloloto can you report which versions of the kiota dependencies are installed in your project please? It looks like you might be using older versions.

i tried using this example but got an error in runtime :
/Users/eyal/.nvm/versions/node/v20.13.1/bin/node ./dist/apps/integrator/src/entra-index.js
Uncaught SyntaxError /Users/eyal/Projects/integrations-new/integrations/node_modules/@microsoft/kiota-authentication-azure/dist/es/src/index.js:7
export * from "./azureIdentityAuthenticationProvider";
^^^^^^
SyntaxError: Unexpected token 'export'
at wrapSafe (internal/modules/cjs/loader:1281:20)
at Module._compile (internal/modules/cjs/loader:1321:27)
at Module._extensions..js (internal/modules/cjs/loader:1416:10)
at Module.load (internal/modules/cjs/loader:1208:32)
at Module._load (internal/modules/cjs/loader:1024:12)
at Module.require (internal/modules/cjs/loader:1233:19)
at require (internal/modules/helpers:179:18)
at  (/Users/eyal/Projects/integrations-new/integrations/apps/integrator/src/entra/getClient.ts:6:1)
at Module._compile (internal/modules/cjs/loader:1358:14)
at Module._extensions..js (internal/modules/cjs/loader:1416:10)
at Module.load (internal/modules/cjs/loader:1208:32)
at Module._load (internal/modules/cjs/loader:1024:12)
at Module.require (internal/modules/cjs/loader:1233:19)
at require (internal/modules/helpers:179:18)
at  (/Users/eyal/Projects/integrations-new/integrations/apps/integrator/src/entra/getUsers.ts:3:1)
at Module._compile (internal/modules/cjs/loader:1358:14)
at Module._extensions..js (internal/modules/cjs/loader:1416:10)
at Module.load (internal/modules/cjs/loader:1208:32)
at Module._load (internal/modules/cjs/loader:1024:12)
at Module.require (internal/modules/cjs/loader:1233:19)
at require (internal/modules/helpers:179:18)
at  (/Users/eyal/Projects/integrations-new/integrations/apps/integrator/src/entra/index.ts:1:1)
at Module._compile (internal/modules/cjs/loader:1358:14)
at Module._extensions..js (internal/modules/cjs/loader:1416:10)
at Module.load (internal/modules/cjs/loader:1208:32)
at Module._load (internal/modules/cjs/loader:1024:12)
at Module.require (internal/modules/cjs/loader:1233:19)
at require (internal/modules/helpers:179:18)
at  (/Users/eyal/Projects/integrations-new/integrations/apps/integrator/src/entra-index.ts:1:1)
at Module._compile (internal/modules/cjs/loader:1358:14)
at Module._extensions..js (internal/modules/cjs/loader:1416:10)
at Module.load (internal/modules/cjs/loader:1208:32)
at Module._load (internal/modules/cjs/loader:1024:12)
at executeUserEntryPoint (internal/modules/run_main:174:12)
at  (internal/main/run_main_module:28:49)
No debugger available, can not send 'variables'
Process exited with code 1
any idea why ?
i am using :
"@microsoft/kiota-authentication-azure": "^1.0.0-preview.48" (from package.json)

@eyal-ringwald-orchid this is getting addressed with that PR https://github.com/microsoft/kiota-typescript/pull/1225
Can you try to upgrade your kiota dependencies to the latest version (today) and see if you still run into the issue? (we might need to roll out new version of graph core and this library here)

now the new api has changed so there is no such thing as graphServiceClient.user , so i am leaving this try aside.

@eyal-ringwald-orchid did you install and import the @microsoft/msgraph-sdk-users package?
Also it should be users (plural)


Fix electron production build for linux and mac

[x] All speced functionally is implemented and is working
[x] Unit tests for all functions and modules
[x] Integration tests for all use cases
[ ] Comment documentation for all modules, functions and types
[x] Ready for code review

Good stuff!

Please remove guide.md
Please remove /ios and /android dirs from the repo as they are generated by the tools
yarn ios will not work without the script that generated the /ios dir - is it react-native upgrade? maybe yarn ios can run react-native upgrade to generate the /ios dir and source files?


Face_Recognition Constructor

Face_Recognition can be constructed differently than FaceRecognition.Create ("data"); ? I wanted to use it in a docker container and avoid having to create directories, how could I build it?
fr = FaceRecognition.Create("data");
        public static IEnumerable<FaceEncoding> BitmapToEncoding(Bitmap bitmap, FaceRecognition fr)
        {
            Image image = FaceRecognition.LoadImage(bitmap);
            IEnumerable<Location> locations = fr.FaceLocations(image);
            return fr.FaceEncodings(image, locations);
        }

@danijerez
FaceRecognition.Create does not create directory. This argument is source directory contains model files.

I managed to load the path in the following way
fr = FaceRecognition.Create($"{env.ContentRootPath}/Resources/Data");
but when deploying the docker container and using the function, the following happens to me
System.TypeInitializationException: The type initializer for 'DlibDotNet.NativeMethods' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'DlibDotNetNativeDnn' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libDlibDotNetNativeDnn: cannot open shared object file: No such file or directory

@danijerez
It means that DlibDotNetNativeDnn can not resolve dependencies.
Could try ldd libDlibDotNetNativeDnn?
You may see not found.
I'm not sure you use exact version of FRDN.
Do you install requirements library?
https://github.com/takuya-takeuchi/FaceRecognitionDotNet/wiki/Quickstart

install the nuget dependency and locally if it works, the problem is in the container, I show you the repository where I am doing the tests
https://gitlab.com/danijerez/face-recognition-api

I have tried to put all

FaceRecognitionDotNet
FaceRecognitionDotNet.MKL
FaceRecognitionDotNet.CUDA92
FaceRecognitionDotNet.CUDA100
FaceRecognitionDotNet.CUDA101

but it keeps giving me the same error, you have tried a docker container and you get it to work?
do I need to put something else to the code?

@danijerez
OK. I checked your Dockerfile.
I can see install libopenblas and others.
Container base images are minimum.
So we have to install dependencies.
I provide dockerfile to run dlibdotnet.
It may help you.
base
https://github.com/takuya-takeuchi/DlibDotNet/blob/master/docker/base/ubuntu/16/cuda/10.2/Dockerfile
runtime (derive from base)
https://github.com/takuya-takeuchi/DlibDotNet/blob/master/docker/runtime/ubuntu/16/Dockerfile

I got it to work by adding this to the dockerfile, thank you very much!
RUN apt-get update && apt-get install -y
libgdiplus
libopenblas-dev
liblapack-dev
libx11-6
&& apt-get clean && rm -rf /var/lib/apt/lists/*


nem2-cli converter

nem2-cli converter
SUBCOMMANDS
hextoaddress - Converts a hexadecimal address to an address
hextouint - Converts a hexadecimal id to a uint64 object
uinttohex- Converts a hexadecimal mosaic to a uint64 object

Pull Request Test Coverage Report for Build 64

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.732%

Totals

Change from base Build 60:
0.0%

Covered Lines:
51

Relevant Lines:
59

💛  - Coveralls

Closed in favour of #58


Ordinal date suffix.

Related mbostock/d3#495. TODO:

[ ] Decide on localizable implementation. (Locale-defined function.)
[x] Decide on directive. (%o)
[ ] Implement formatting.
[ ] Implement padding.
[ ] Implement parsing.
[ ] Test.

This implementation works in English:
var suffixes = ["th", "st", "nd", "rd"];

function suffix(number) {
  var tail = number % 100;
  return suffixes[(tail < 11 || tail > 13) && (tail % 10)] || suffixes[0];
}

However, it’s not clear how we should localize this behavior. Perhaps the locale definition can include a JavaScript function?

Also, we need to decide the appropriate directive. I think %o might be a good choice: “o” for “ordinal”, and lowercase like %d and %e.
I believe we only need an ordinal suffix for day-of-month, so the %o directive should include %d (i.e., you don’t need both, %d%o, to display a suffixed date). This way the locale definition has more flexibility about how the ordinal date is formatted, rather than requiring it to be a suffix. For example, you could have an English locale that writes out the long form of the date, such as “The Second of May”. That said, it should still support padding if appropriate, so %0o is the zero-padded ordinal date, such as "02nd".

For German locales it's just an added ".".

From my tests the implementation above doesn't work for the values 1, 2, 3. This does:
const ordinalSuffixes = ['th', 'st', 'nd', 'rd'];

function ordinalSuffix(number) {
  const value = number % 100;

  return ordinalSuffixes[(value - 20) % 10] || ordinalSuffixes[value] || ordinalSuffixes[0];
}

I was missing some parens. Added.

Ah nice. 👍

In Bulgarian the suffix changes with each day: 1 2ри 3ти 4ти 5ти 6ти 7ми 8ми 9ти 10ти 11ти 12ти 13ти 14ти 15ти 16ти 17ти 18ти 19ти 20ти 21ви 22ри 23ти 24ти 25ти 26ти 27ми 28ми 29ти 30ти 31ви (pronounced "pi", "mi", "ti", "bi"…)
See also https://blazingbulgaria.wordpress.com/2012/06/15/ordinal-numbers-in-bulgarian/

Ref https://github.com/d3/d3-time-format/pull/12


please update spring-cloud-gcp-dependencies for 1.0.0.RC1

Hello, please explain where do you publish dependencies.
latest version of spring-cloud-gcp-dependencies is 1.0.0.M1: https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-gcp-dependencies/
https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-gcp-starter-pubsub - latest version is 1.0.0.M3
spring-cloud-gcp-starter-config (https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-gcp-starter-config) is 1.0.0.M3 as well

That’s wrong: we don’t publish Milestone versions to Maven Central. You need to add to your project a Spring Milestone repository:
<repository>
					<id>spring-milestones</id>
					<name>Spring Milestones</name>
					<url>https://repo.spring.io/libs-milestone-local</url>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>

@artembilan https://cloud.spring.io/spring-cloud-gcp/ page states that https://repo.spring.io/libs-milestone should be used for 1.0.0.RC1:

Does that mean that there is an error @ https://cloud.spring.io/spring-cloud-gcp/ page ?

In other words, is it safe to assume that 1.0.0.RC1 version

org.springframework.cloud:spring-cloud-gcp-starter-pubsub
org.springframework.cloud:spring-cloud-gcp-starter-config
org.springframework.cloud:spring-cloud-gcp-dependencies

can be found at https://repo.spring.io/libs-milestone-local ?

Yeah, sorry, that’s definitely must be https://repo.spring.io/libs-milestone. The local one is available as well, but we more use it for our internal purpose.
Right, config is not available because it is not GA-ready feature. You need to use M4 version to poll it for your purpose. We are going to release GA soon and we can’t include BETA services to GA.

Config and Spanner support are currently latest in 1.0.0.M4. They were removed for RC1, which is a bit confusing from the versioning perspective, but all of that should clear up soon when we publish 1.1.0.M1 with Config and Spanner.

@artembilan
so since 1.0.0 is released

and there is spring-cloud-gcp-starter-pubsub 1.0.0

Are there any plans to update spring-cloud-gcp-starter-config?

@n0mer Config did not make it into the 1.0.0.RELEASE because the service itself is not GA yet. However, the latest version of it is available in the Milestones repository: 1.1.0.M1:

Your screenshot is showing the wrong respository. I'm not sure why it's also in the Spring Plugins repo.

@meltsufin is right: the Google Cloud Runtime Config is not GA yet: https://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/.
According our policies can't release GA for Spring components when they are based on target BETA service.


Rounding precision in DK/OIOUBL

In the PriceAmount element the rounding precision should adhere to the Unit-Amount rounding precision and not the Amount rounding precision (which is the default).
E.g. we an Invoice in DKK - amount is rounded to 2 decimals, and unit price is rounded to 4 decimals. The invoice line is
Quantity 360.00; Unit Price 3.515; Line Amount 1,265.40.
However, when the Invoice is created, the Unit Price in the PriceAmount is rounded to 2 decimals. Thus the XML generated becomes
Quantity 360.00; Unit Price 3.52; Line Amount 1,265.40
The validation of the OIOUBL document fails because 360 * 3.52 <> 1,265.40
The XML generated:
    <cbc:ID>30000</cbc:ID>
    <cbc:InvoicedQuantity unitCode="MTR">360.00</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="DKK">1265.40</cbc:LineExtensionAmount>
    <cbc:AccountingCost></cbc:AccountingCost>
    <cac:OrderLineReference>
      <cbc:LineID>30000</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>AW</cbc:ID>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:AllowanceCharge>
      <cbc:ID>1</cbc:ID>
      <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReason>Rabat</cbc:AllowanceChargeReason>
      <cbc:MultiplierFactorNumeric>1.000</cbc:MultiplierFactorNumeric>
      <cbc:SequenceNumeric>1</cbc:SequenceNumeric>
      <cbc:Amount currencyID="DKK">2154.60</cbc:Amount>
      <cbc:BaseAmount currencyID="DKK">2154.60</cbc:BaseAmount>
      <cac:TaxCategory>
        <cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.1" schemeAgencyID="320">ReverseCharge</cbc:ID>
        <cbc:Percent>63.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
          <cbc:Name>Moms</cbc:Name>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:AllowanceCharge>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="DKK">316.35</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="DKK">1265.40</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="DKK">316.35</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.1" schemeAgencyID="320">StandardRated</cbc:ID>
          <cbc:Percent>25.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
            <cbc:Name>Moms</cbc:Name>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>****************</cbc:Description>
      <cbc:Name>*****************</cbc:Name>
      <cac:SellersItemIdentification>
        <cbc:ID schemeID="n/a">NNNNNNNNNN</cbc:ID>
      </cac:SellersItemIdentification>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="DKK">3.52</cbc:PriceAmount>
      <cbc:BaseQuantity unitCode="MTR">1</cbc:BaseQuantity>
    </cac:Price>
  </cac:InvoiceLine>

The expected XML :
    <cbc:ID>30000</cbc:ID>
    <cbc:InvoicedQuantity unitCode="MTR">360.00</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="DKK">1265.40</cbc:LineExtensionAmount>
    <cbc:AccountingCost></cbc:AccountingCost>
    <cac:OrderLineReference>
      <cbc:LineID>30000</cbc:LineID>
      <cac:OrderReference>
        <cbc:ID>AW</cbc:ID>
      </cac:OrderReference>
    </cac:OrderLineReference>
    <cac:AllowanceCharge>
      <cbc:ID>1</cbc:ID>
      <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
      <cbc:AllowanceChargeReason>Rabat</cbc:AllowanceChargeReason>
      <cbc:MultiplierFactorNumeric>1.000</cbc:MultiplierFactorNumeric>
      <cbc:SequenceNumeric>1</cbc:SequenceNumeric>
      <cbc:Amount currencyID="DKK">2154.60</cbc:Amount>
      <cbc:BaseAmount currencyID="DKK">2154.60</cbc:BaseAmount>
      <cac:TaxCategory>
        <cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.1" schemeAgencyID="320">ReverseCharge</cbc:ID>
        <cbc:Percent>63.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
          <cbc:Name>Moms</cbc:Name>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:AllowanceCharge>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="DKK">316.35</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="DKK">1265.40</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="DKK">316.35</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.1" schemeAgencyID="320">StandardRated</cbc:ID>
          <cbc:Percent>25.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
            <cbc:Name>Moms</cbc:Name>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>****************</cbc:Description>
      <cbc:Name>*****************</cbc:Name>
      <cac:SellersItemIdentification>
        <cbc:ID schemeID="n/a">NNNNNNNNNN</cbc:ID>
      </cac:SellersItemIdentification>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="DKK">3.515</cbc:PriceAmount>
      <cbc:BaseQuantity unitCode="MTR">1</cbc:BaseQuantity>
    </cac:Price>
  </cac:InvoiceLine>

Is this is request for hotfix?

So far there has only been one or two documents. Customer is on SaaS, so a fix there on next build I fine.
I have prepared the code change, but could not find the article on how to share the code in a pull request.

@AlexanderYakunin I have added a PR which should fix the problem. Any chance Microsoft can look at it?

We're processing the PR. Closing issue.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

That automated message was posted, because the related internal work item was closed. Just to clarify: the fix will ship once the PR has been processed :-)


CSS for dmc.CodeHighlight component is missing.

CSS for CodeHighlight needs to be passed in external_stylesheets.

Hi @snehilvj
Thanks for the tip!  Yes, I forgot the CodeHighlight stylesheet, but when I tried adding it,  I preferred it as-is.  It's only one line of code and I like the bright left-aligned copy button for this app :-)


seLinuxOptions is not a global/only used by ztunnel

This ~sort of worked because of globals munging, but this is not a global and it's misleading to include it as one in the profile - only ztunnel chart uses seLinuxOptions anyway.
This does not change the UX as setting as a global explicitly with e.g. set would not have worked previously, you just would have thought it would if you looked at the profile.

@bleggett: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
b1247a824254957e88f17246583ef875d7d23cc3
link
true
/test release-notes

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

/test release-notes


Include url in turbo:before-fetch-request event

Hello all and thank you for Turbo.
Although the turbo:before-fetch-request event includes the request's fetchOptions (method, headers, etc), it doesn't include the URL itself. With this patch applied you can access it with event.detail.url.
If it gets accepted I can send a PR to add a reference to the events documentation in https://github.com/hotwired/turbo-site/.

@ctrochalakis could you please resolve merge conflicts? The FetchRequest class has been recently updated.

I looked into the test failure yesterday, it was a race between the page reload and the events tracking setup. I've opened #310 with a fix.
I rebased the PR on top of the main branch (the #310 fix is also included here).

@ctrochalakis nice catch with visits tests race condition! 👍


e2e: serial: create workload with TAS followed by default scheduler

Create a workload using TAS scheduler that is scheduled followed by
another similar workload using the default scheduler that stays pending.
Signed-off-by: Swati Sehgal<EMAIL_ADDRESS>

CI failures look legit
# github.com/openshift-kni/numaresources-operator/test/e2e/serial/tests
Error: test/e2e/serial/tests/workload_placement.go:845:28: baseload.CPU undefined (type baseload.Load has no field or method CPU)
Error: test/e2e/serial/tests/workload_placement.go:848:25: baseload.CPU undefined (type baseload.Load has no field or method CPU)
Error: test/e2e/serial/tests/workload_placement.go:851:28: baseload.Memory undefined (type baseload.Load has no field or method Memory)
Error: test/e2e/serial/tests/workload_placement.go:854:25: baseload.Memory undefined (type baseload.Load has no field or method Memory)
make: *** [Makefile:114: vet] Error 2
Error: Process completed with exit code 2.

I'd be in favour of adding CPU() and  Memory helpers to baseload.Load if this helps

Updates:

Implemented this test case with a pod instead of a deployment.
Determined resources available per NUMA node and used them as a request for the two containers instead of the implementation eliminating the need for leastAvailableResourceQtyInAllZone and FindResourceAllocatableByname. That inturn meant that there was no need to expose baseload CPU and memory. These changes would be needed and implemented in https://github.com/openshift-kni/numaresources-operator/pull/327.
This PR was tested locally and is passing.

/retest


missing parameters in prod.yaml file

What version of Butler SOS are you using?
docker-compose up
What version of Node.js are you using? Not applicable if you use the standalone version of Butler SOS.
No response
What command did you use to start Butler SOS?
docker-compose up
What operating system are you using?
Docker
What CPU architecture are you using?
x86_64
What Qlik Sense versions are you using?
2023-feb sr2
Describe the Bug
file https://github.com/ptarmiganlabs/butler-sos/blob/master/src/config/production_template.yaml
have missing params to run 9.6.1 version in newRelic section:
  newRelic:
    metric:
      dynamic:
        apps:
          activeDocs:
            enable: true
          loadedDocs:
            enable: true
          inMemoryDocs:
            enable: true

without this params i have errors like this:
butler-sos  | 2023-08-22T10:05:57.992Z error: /nodeapp/config/production_influxdb.yaml is not following the correct structure, missing:,Butler-SOS.newRelic.metric.dynamic.apps.activeDocs.enable
butler-sos  | 2023-08-22T10:05:59.942Z error: /nodeapp/config/production_influxdb.yaml is not following the correct structure, missing:,Butler-SOS.newRelic.metric.dynamic.apps.loadedDocs.enable
butler-sos  | 2023-08-22T10:06:15.192Z error: /nodeapp/config/production_influxdb.yaml is not following the correct structure, missing:,Butler-SOS.newRelic.metric.dynamic.apps.inMemoryDocs.enable

Expected Behavior
No response
To Reproduce
No response

Acknowledged.
The template file has a few missing parameters.
Should be fixed in version 9.6.2 which was released a few minutes ago.
Docker image is building right now, done in a few minutes.

9.6.2 Docker image is now on Docker Hub.


Migrate Photostream to 1.0 SDK

Patch attached to migrate Photostream to 1.0 SDK.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 24 Sep 2008 at 4:50
Attachments:

photostream.txt

Original comment by<EMAIL_ADDRESS>on 30 Sep 2008 at 6:32

Changed state: Fixed

Original comment by<EMAIL_ADDRESS>on 30 Sep 2008 at 7:28


Develop

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (0850550) 100.00% compared to head (dcbc1df) 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          268       272    +4
  Branches        60        60
=========================================
+ Hits           268       272    +4

Impacted Files
Coverage Δ

...docstring_inheritance/docstring_inheritors/base.py
100.00% <100.00%> (ø)

...cstring_inheritance/docstring_inheritors/google.py
100.00% <100.00%> (ø)

...ocstring_inheritance/docstring_inheritors/numpy.py
100.00% <100.00%> (ø)

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


Post Agent stuck running and holding up queue.

Greetings!
I have several Twitter search agents pushing to webhooks for Discord. It checks every 5 minutes. I have noticed that if a Twitter account posts a tweet but deletes it shortly after, the search agent picks it up and pushes it to the post agent but then hangs because the tweet doesn't actually exist anymore. Sometimes this is only fixed by restarting Huginn.
Is there a way to prevent posting deleted tweets? Is it something as simple as increasing the check interval or perhaps a setting that I am missing. Would it also be possible to have more than one agent running at a time so the queue would not get backed up?
I am running Huginn on Ubuntu 16.04 in Azure from source.
Thank you for your time.

Here is the error:
Exception during receive. execution expired (Delayed::Worker.max_run_time is only 120 seconds): /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/lib/ffi/pointer.rb:51:in read_string' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/ethon-0.7.1/lib/ethon/easy/callbacks.rb:57:in block in header_write_callback'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/ethon-0.7.1/lib/ethon/easy/operations.rb:23:in easy_perform' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/ethon-0.7.1/lib/ethon/easy/operations.rb:23:in perform'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/request/operations.rb:16:in run' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/request/cacheable.rb:18:in run'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/request/block_connection.rb:31:in run' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/request/stubbable.rb:23:in run'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/request/before.rb:26:in run' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/adapters/faraday.rb:68:in perform_request'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/typhoeus-0.6.9/lib/typhoeus/adapters/faraday.rb:58:in call' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/faraday_middleware-59088da02940/lib/faraday_middleware/gzip.rb:24:in call'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/faraday-0.12.1/lib/faraday/request/url_encoded.rb:15:in call' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/faraday-0.12.1/lib/faraday/request/multipart.rb:15:in call'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/faraday_middleware-59088da02940/lib/faraday_middleware/response/follow_redirects.rb:78:in perform_with_redirection' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/faraday_middleware-59088da02940/lib/faraday_middleware/response/follow_redirects.rb:66:in call'
/home/huginn/huginn/app/concerns/web_request_concern.rb:26:in call' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/faraday-0.12.1/lib/faraday/rack_builder.rb:139:in build_response'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/faraday-0.12.1/lib/faraday/connection.rb:386:in run_request' /home/huginn/huginn/app/models/agents/post_agent.rb:218:in handle'
/home/huginn/huginn/app/models/agents/post_agent.rb:147:in block (2 levels) in receive' /home/huginn/huginn/app/concerns/liquid_interpolatable.rb:62:in interpolate_with'
/home/huginn/huginn/app/models/agents/post_agent.rb:144:in block in receive' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.1/lib/active_record/relation/delegation.rb:41:in each'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.1/lib/active_record/relation/delegation.rb:41:in each' /home/huginn/huginn/app/models/agents/post_agent.rb:143:in receive'
/home/huginn/huginn/app/jobs/agent_receive_job.rb:8:in perform' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/execution.rb:37:in block in perform_now'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:108:in block in run_callbacks' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/i18n-0.8.1/lib/i18n.rb:257:in with_locale'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/translation.rb:7:in block (2 levels) in <module:Translation>' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:117:in instance_exec'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:117:in block in run_callbacks' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/logging.rb:24:in block (4 levels) in module:Logging'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/notifications.rb:166:in block in instrument' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/notifications/instrumenter.rb:21:in instrument'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/notifications.rb:166:in instrument' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/logging.rb:23:in block (3 levels) in module:Logging'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/logging.rb:44:in block in tag_logger' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/tagged_logging.rb:69:in block in tagged'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/tagged_logging.rb:26:in tagged' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/tagged_logging.rb:69:in tagged'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/logging.rb:44:in tag_logger' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/logging.rb:20:in block (2 levels) in module:Logging'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:117:in instance_exec' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:117:in block in run_callbacks'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:135:in run_callbacks' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/execution.rb:33:in perform_now'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/execution.rb:22:in block in execute' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:108:in block in run_callbacks'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/railtie.rb:26:in block (4 levels) in <class:Railtie>' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/execution_wrapper.rb:85:in wrap'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/reloader.rb:68:in block in wrap' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/execution_wrapper.rb:85:in wrap'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/reloader.rb:67:in wrap' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/railtie.rb:25:in block (3 levels) in class:Railtie'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:117:in instance_exec' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:117:in block in run_callbacks'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:135:in run_callbacks' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/execution.rb:20:in execute'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/activejob-5.1.1/lib/active_job/queue_adapters/delayed_job_adapter.rb:36:in perform' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/backend/base.rb:81:in block in invoke_job'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/lifecycle.rb:61:in block in initialize' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/lifecycle.rb:66:in execute'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/lifecycle.rb:40:in run_callbacks' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/backend/base.rb:78:in invoke_job'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:230:in block (2 levels) in run' /usr/local/lib/ruby/2.4.0/timeout.rb:93:in block in timeout'
/usr/local/lib/ruby/2.4.0/timeout.rb:103:in timeout' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:230:in block in run'
/usr/local/lib/ruby/2.4.0/benchmark.rb:308:in realtime' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:229:in run'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:312:in block in reserve_and_run_one_job' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/lifecycle.rb:61:in block in initialize'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/lifecycle.rb:66:in execute' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/lifecycle.rb:40:in run_callbacks'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:312:in reserve_and_run_one_job' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:213:in block in work_off'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:212:in times' /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:212:in work_off'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:175:in block (4 levels) in start' /usr/local/lib/ruby/2.4.0/benchmark.rb:308:in realtime'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec16c569ff0a/lib/delayed/worker.rb:174:in `block (3 levels) in start'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bundler/gems/delayed_job-ec

Now I've noticed it does it randomly, not just on a deleted twitter post. The job hangs for 20 minutes then fails. After a retry, it works fine.

Hi @TheChrisK,
I assume you are running the threaded background processes? If that is the case I think you are hitting a long standing issue (see the references in #1892). Unfortunately the only way to work around the problem is to run delayed_job in a separate process like it is done here.
To be a little bit more memory efficent you could also try this:
web: bundle exec unicorn -c config/unicorn.rb
agent_runner: bundle exec rails runner bin/agent_runner.rb
dj: bundle exec script/delayed_job run

Keep in mind you need to re-export the configuration with sudo bundle exec rake production:export after changing the Procfile.

I am running threaded. I will give this a try. I currently have two servers running Huginn, one in Azure and one on-prem. I will apply to both and see how things go. Thank you!

After making the changes, the issue persists. It is not just affecting Twitter feeds but also my RSS feed agents.

Help me understand the issue a little better. Sometimes the PostAgent takes a long time to run and fails with execution expired, but after that the Agents continue to run?
If you are getting the same timeout locally and on Azure the problem is probably the slowness of the server you are POSTing to. You can reduce the maximum runtime of Agents to one minute in .env with DELAYED_JOB_MAX_RUNTIME=1.
If the slow PostAgents hold up your other Agents from being processed you can add additional delayed_job processes to your Procfile.

Yeah it's usually 15 minutes of running then it clears with the error, the other agents process in the queue and the failed agent is then successful on the first retry. DELAYED_JOB_MAX_RUNTIME has been set to 1 and the issue continues to occur.
I have just recently added 3 more delayed_job processes to the Procfile as RAM is not a concern. I will monitor this change and see what comes of it. I'm fine if one webhook takes a few minutes longer as long as other agents are processing behind it.
It is quite possible that Discord webhooks are the culprit. We switched from IFTTT to Huginn after our webhooks would seemingly get skipped or just fail with little or no information to troubleshoot.
Thank you for all your support on Huginn. I'm using this for the Waze map editing community. This is a great tool that helps us monitor road closures via Twitter for announcing in Discord. We are able to get so much more information piped into our feeds in almost real-time.
I'll post my findings regarding the delayed_job process change.

Yeah it's usually 15 minutes of running then it clears with the error, the other agents process in the queue and the failed agent is then successful on the first retry. DELAYED_JOB_MAX_RUNTIME has been set to 1 and the issue continues to occur.

That is odd, delayed_job should kill those jobs much sooner. We normally get bug reports about DJ 'killing' jobs which then results in the threaded background process being stuck, that's why I suggested to switch to separate processes.
You could try this change and see if that fixes the issue of jobs running too long.

I will try that. Things seems to be running smoother now but still having delayed jobs pop up which is now causing duplicate POSTs to webhooks when the delay does happen. I'll keep you posted on the change to faraday.

@dsander After several days of testing, it seems my issue is resolved. Feeds are still getting hung up but with the recent change, they come out of the queue in 30 seconds and usually completed after the 2nd or 3rd retry without posting any duplicates. Even with that, the feeds appear on the front end smoothly and timely. Thank you kindly for your help on this.

Nice! I am glad it is working well now.


Question: Can any CNI main plugins work with any CNI IPAM plugins?

I'd like to know if there is any restriction about which main plugin can work with which IPAM plugin? E.g., Can bridge and ptp plugin work with dhcp plugin? Or they have to work with host-local plugin? Can macvlan plugin work with host-local plugin? Or it has to work with dhcp plugin?

I'll go into some of your examples in a bit, upfront there are certain restrictions which stem from the nature of the interface types and how they are used in these plugins.

ptp: we use veth devices to create point-to-point connections between two network namespaces. DHCP won't work out of the box with this, as it needs layer 2 connectivity to the a network the DHCP server listening on. Technically you could combine PTP and DHCP plugins but it doesn't make much sense as it wasn't design like that in CNI.
bridge: bridge is more likely to work with DHCP, but you still have to go through the extra effort and either run a DHCP server on the interface directly, or attach an interface to the bridge that has layer 2 connectivity to a DHCP server.
macvlan: this can work out of the box with DHCP if you provide a master interface that again has layer 2 connectivity to a DHCP server, but it will also work with host-local if you configure the range to be one of the master interface's network addresses that doesn't conflict with an existing DHCP range

I suggest that you take a look at the CNI docs, the code and also the kernel's documentation on the specific drivers. If there's any chance I would like to encourage you to extend CNI's documentation anywhere in the repository with information that is useful for all people getting started with CNI. Simply put, pleas write up what you learned and create a pull request to include it in our docs :-)

@qianzhangxa is the issue resolved for you or do you have any other questions?

@qianzhangxa If your question has been answered, could you please close the issue? Otherwise further discussions/comments/questions are really welcome.


Added the recipe app in the project

Added the recipe app to the project. Here the user can search the name of any food they will get the different recipes that can be cooked with the seached food along with their ingredients.

update readme for local setup

I have updated the readme file please check

Thanks for your valuable contribution.
Don't forget to star the repo.


Support for charliecloud containers

Hi,
seeing that snakemake already supports docker/singularity, I was wondering whether charliecloud (https://github.com/hpc/charliecloud) could also be supported? This would be a nice additional option of creating fully reproducible workflows which can easily be distributed. In addition, not all HPC environments support/run a docker daemon (as is the case for me) and charliecloud is a very nice and light-weight alternative which doesn't need a background service running.
I realize there are pros/cons to using e.g. docker vs charliecloud, but I believe charliecloud-support would be a worthwhile feature.
Intro
A typical charliecloud usage involves:

buliding an image-tarball from a docker image
extracting these images to the system you want to run your job on
run your job from within the container

For 2.) and 3.) these are simple command-line calls: ch-tar2dir [...] and ch-run [...] for which it might be relatively easy to include them in snakemake. For 1.) a user would have to take care of it him/herself.
Implementation
There could be two possible strategies for an implementation in snakemake:

Specify the image-tarball when calling snakemake/within the rule definitions (similar to the conda envs). Whenever rules are invoked which should run within a charliecloud env, the image gets extracted (ch-tar2dir [...]) and the call to e.g. Rscript etc. wrapped within a ch-run [...] call
Specify the flatted/extracted root-directory of the charliecloud image. In that case it would suffice for snakemake to wrap rules using charliecloud to wrap the command in a ch-run call.

Additional notes
There are some options to ch-run which might be relevant for users when using charliecloud, such as 'bind-mounting' certain directories (-b option) such that they are available from within the container and other options (compare e.g. this command reference for ch-run).

While I'm no expert on snakemake internals, I'd be happy to provide more information on charliecloud and serve as a tester of this functionality.
What do you think?
Best and thanks!
Johann

What do you think the benefit of supporting charlie cloud is over supporting singularity, shifter, udocker, or others? https://slurm.schedmd.com/containers.html

I'm not sure about all the container options out there, but from what I understand so far, two advantages of charliecloud are

that it is very lightweight (no background-daemon or similar required for executing images)
it does not need any special permissions setup (any user could run it)

(in addition to the usual advantages containerization provides).
A third one could be that it is fairly easy to install and maintain (e.g. for system administrators).
Only requirement as far as I know is that user namespaces need to be enabled/available on the host system (which, I think, is true for most modern distributions?).
What do you think?
Thanks!

Singularity isn't "compatible" with our system admin, but udocker looks like a viable option, given that admin privileges aren't needed. So, it would be great for us (and anyone else with very restrictive system admins) if udocker was supported.

Just wanted to bump this enhancement. Are there any plans on integrating charliecloud with snakemake?
Another reason to add charliecloud support would be that some computing centers (e.g. www.lrz.de) do only support charliecloud containers due to strict security policies. As a goal of snakemake is to make workflows portable, I believe it would make sense to integrate this functionality?
At the moment, I implemented a very quick hack where I adjust the actual call to e.g. Rscript to be prefixed with a ch-run statement using a hardcoded container path. This is of course not ideal and not portable.

Hi again!
I Just wanted to bump this enhancement once more. Are there any current plans on integrating additional (e.g. charliecloud) containerization solutions with snakemake (@johanneskoester)?
many thanks in advance!
j

Hi folks! This issue is a bit old - does anyone have any examples of using snakemake with udocker? I know how to use with Singularity but I can't find docs for "udocker."


Failing on no bin setting set?

Seeing this recently:
Error executing Lua callback: Vim:E1174: String required for argument 1
stack traceback:
        [C]: in function 'executable'
        ...te/pack/paqs/start/gotests-nvim/lua/gotests/autoload.lua:19: in function 'tests'
        ...e/nvim/site/pack/paqs/start/gotests-nvim/lua/gotests.lua:27: in function <...e/nvim/site/pack/paqs/start/gotests-nvim/lua/gotests.lua:26>

I don't have any settings explicitly set, and taking a look at the code, maybe that is causing an issue?

I'm having this same issue as well recently.

@nyonson @zach-wahrer
Sorry I noticed too late.
Thank you.
It's been a while since I did Go development, and I'm the same.
Investigate. please wait a little bit.

@nyonson @zach-wahrer
fixed
It was caused by not being able to call the gotests binary well.
We found some improvements and will continue to fix them.

vim.g.gotests_bin was nil for some reason.
It was probably the case with everyone.
And it was exists(nil) == true...
I haven't studied enough 😭

Thanks for fixing this!


Make it possible to unsubscribe from package pushed notifications

Amends https://github.com/NuGet/NuGetGallery/pull/2961
By popular request, making it possible to unsubscribe from package
pushed notifications separately.
CONTAINS A DATABASE MIGRATION TO BE RUN ON DEPLOYMENT
@skofman1 @xavierdecoster

:rocket: :shipit:


I want to use the mod on a server,

But the world generates an normal, how to fix this?

You should set level-type to flat-minecraft\:paper_world. The names are weird since Minecraft doesn't allow numbers in the tags, and I couldn't think of a better name :P
For the moment the servers don't work (You will get a client moved too quickly error) I'll fix it when I'm free

Or you can install a mod like gottagofast to disable the serverside speed limit

I'll close it :+1:


Looking for service principal authentication support

Note
Feature - Service Principal authentication support
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Feature
Type: Future to support Service Principal authentication
Enter Task Name: Add Service Principal logic
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment

Server - Azure Pipelines

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name:

If using private agent, provide the OS of the machine running the agent and the agent version:

Hey @ygizhitsa this repo is mostly for issues/support around existing tasks. To request a new task, please file an issue here - https://developercommunity.visualstudio.com/spaces/21/index.html


fix(apps/gcp/prow/release): bump tide image to v20230706-5546ede

Ref https://github.com/ti-community-infra/test-infra/pull/35
Signed-off-by: wuhuizuo<EMAIL_ADDRESS>

/approve


Embedded forms

Summary
Add embedded forms to posts
Ticket Link
None
Related Pull Requests
Redux: https://github.com/mattermost/mattermost-redux/pull/1262
Apps: https://github.com/mattermost/mattermost-plugin-apps/pull/22
Screenshots
None

@mickmister I will merge this, and deal with the design decision regarding the submit buttons in a different PR.


chore: release main

:robot: I have created a release beep boop
nots-worker: 0.1.3
0.1.3 (2023-11-09)
Bug Fixes

dockerfiles (df37de9)

notsd: 0.1.7
0.1.7 (2023-11-09)
Bug Fixes

dockerfiles (df37de9)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/explodingcamera/nots/releases/tag/notsd-v0.1.7 :sunflower:

:robot: Release is at https://github.com/explodingcamera/nots/releases/tag/nots-worker-v0.1.3 :sunflower:


How to use float BatchNorm in ZeRO optimizer?

I'm trying to use mixed precision in ZeRO, mainly because I need float BatchNorm layers, so is there an example or documentation for this?

@Yanring ZeRO currently only supports fp16 parameters, and we are thinking about extending it to support a mixture of both fp16 and fp32 parameters. But we do not have an ETA yet.
However, you can still do float BatchNorm  without requiring mixed precision in ZeRO. BatchNorm consists of two parts: i) the actual normalization part (shown in blue in the figure below) and ii) the affine part which requires parameters (shown in red below). The first part needs to be done in float, since there is a reduction operation involved, but the second part can be done in fp16, without any impact to accuracy or stability. So you can do your batch norm in fp32, then convert the activation to fp16 before doing the affine part. This way you can still use ZeRO while using float BatchNorm computation.
Please let us know if you have more questions on this.

@yanring ZeRO currently only supports fp16 parameters, and we are thinking about extending it to support a mixture of both fp16 and fp32 parameters. But we do not have an ETA yet.
However, you can still do float BatchNorm without requiring mixed precision in ZeRO. BatchNorm consists of two parts: i) the actual normalization part (shown in blue in the figure below) and ii) the affine part which requires parameters (shown in red below). The first part needs to be done in float, since there is a reduction operation involved, but the second part can be done in fp16, without any impact to accuracy or stability. So you can do your batch norm in fp32, then convert the activation to fp16 before doing the affine part. This way you can still use ZeRO while using float BatchNorm computation.
Please let us know if you have more questions on this.

Thanks!


xDebug PhpStorm Working Via CLI - Not Working Via Web Page/Apache

Hello I am having an issue getting php-fpm to trigger debugging when hitting web pages. I have setup everything correctly as far as I know, here are my configs:
docker-composer.yml:

php-fpm/xdebug.ini:

The debugging works great when calling php from the CLI (inside the fpm container):

However when I load a web page it refuses to try and connect to phpstorm, there is no output inside php storm at all. Also the web pages still load at full speed (in my experience if xdebug is properly trying to look for a remote connection the page load times double).
Here is phpinfo output for xdebug, so its definitley being loaded properly:

I also have the xdebug chrome extension setting the cookie for the ide key to PHPSTORM.
I am totally stumped, any advice would be appreciated.
*Edit - I am using apache.
Cheers!

Check out a Pull Request I submitted: phpstorm-guide. That may give you some ideas. This branch actually has various settings switched on. In other words, this branch actually is fully configured to successfully debug in PHPStorm. Hope this helps.

@LarryEitel - Thanks for getting back to me! I actually used your guide to get setup (the guide is awesome). My files/settings match that branch exactly, however I still cant get it to work through the web. It works when I call files directly from the CLI, makes me think everything is setup correctly. I think I've pin pointed the issue to php-fpm simple not triggering a remote debug session when being called via apache, which seems strange to me since apache shouldn't have much impact on a fpm setup.

Your dockerhost IP appears to be your local network IP. You would need to make sure that port 9000 is open or PHPStorm app is open in firewall.
Do you get some kind of error like "Failed to connect to xdebug"?

Can you find your docker host IP? Mine is <IP_ADDRESS> Here is one way on Windows:

@LarryEitel - I had no idea docker ran another adapter! Yes my host IP is <IP_ADDRESS>. I changed my dockerhost to that in the compose file and rebuilt. Still have the exact same issue. I do get that error when trying to run xdebug in a test. I have the remote interpreter setup as per your guide, and I can run phpunit tests through docker inside php storm successfully. However when I try and run the test with debugging I get:

Almost positive that your firewall is blocking port 9000. I actually installed telnet in php-fpm to conveniently verify I was able to connect to PHPStorm.
Also, you DO have PHP remote debug running right?

Did you change to <IP_ADDRESS>? Otherwise you will not be able to reach your local IP unless you configure your router to route traffic from public to your local IP.

@LarryEitel - Yes I did change the dockerhost lines to <IP_ADDRESS>. I have verified the php-fpm container can access my hosts ip on port 9000:

I am not sure what you mean by having 'php remote debug' running. I have the php-fpm apache2 containers running. Also yes I can successfully debug inside phpstorm when calling php directly from the cli (see first post picture). Its only over localhost when viewing the actual web pages where it wont trigger.

https://raw.githubusercontent.com/LarryEitel/laradock/phpstorm-debug/_guides/photos/PHPStorm/DebugRemoteOn.png
Is this running in your PHPStorm?

Yes:

Unselect the 'phone' icon. :)

That seemed to have no effect. I dont think php-fpm is even attempting to connect to phpstorm.

When you run ./xdebugPhpFpm status from laradock folder does it say the xdebug is enabled?

I just realized that you said that you cannot connect xdebug when running unit tests. You don't need to have remote debugging on for that.

Yes xdebug is enabled, I can see that it is enabled and set correctly via the phpinfo page.

Curious, are you running on a MAC?
Also, how about we focus on unit test debugging first. Turn of Remote debugging. Right-click on ExampleTest and select debug.

I get the same error:

Clicking 'validate installation' has no effect.
I am done for today, thanks so much for your help thus far I really appreciate it.

@LarryEitel - I am running on windows. Here is the output when running a test inside phpstorm with debugging:
`sftp://root@localhost:2222/usr/bin/php -dzend_extension=/usr/lib/php/20151012/xdebug.so -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=<IP_ADDRESS> /root/.phpstorm_helpers/phpunit.php --configuration /var/www/laravel/phpunit.xml --filter "/::test_persist_many_update( .*)?$/" AccessLevelDataMapperTest /var/www/laravel/tests/integration/data-mappers/access/AccessLevelDataMapperTest.php
Testing started at 8:33 AM ...
PHPUnit 4.8.27 by Sebastian Bergmann and contributors.
Time: 644 ms, Memory: 16.00MB
OK (1 test, 20 assertions)
Process finished with exit code 0
`
With this small popup:

If I click validate I can also view the php info which reveals this:

It looks like it is trying to use remote debugging to connect to phpstorm, is that not correct?

-dxdebug.remote_host=<IP_ADDRESS>
where is that IP?
Are you available on Skype?

@LarryEitel - After our chat and getting everything working, I was able to reverse engineer some of the steps and how they work. Here is a breakdown of what solved my problem.
First off I was using localhost (mapped to <IP_ADDRESS>) to load my application in the browser, which does work (since port 80 is mapped), but causes issues with network access on ports other than 80, therefore not allowing xdebug to connect on 9000. Instead you want to use the dockers hyper-v VM adapter IP. It can be found by opening Hyper-V Manager, clicking your computer on the left, and clicking the Networking tab at the bottom.

Generally it will automatically be set to <IP_ADDRESS>. This is not to be confused with the docker daemon adapters IP, which is <IP_ADDRESS>. Your actual application and containers run on the VMs adapter, which is <IP_ADDRESS>.
So you need to be connecting to your application in the browser using the VMs ip. Ex. http://<IP_ADDRESS>/my-page (or the 'laravel' host alias as per the guide)
Also inside phpstorm you should be using <IP_ADDRESS> whenever referencing a connection to docker.
One other thing to note, you dont actually need a PHP -> Server setup in phpstorm to get debugging working. All you need is the sftp remote php interpreter setup properly using the correct IP (<IP_ADDRESS>) as per the guide, with the correct php executable/xdebug.so paths.
Hope thats helps with developing the guide, thanks again for your help Larry.
Cheers!

One other thing, inside your docker-compose.yml, the php-fpm and workspace 'extra_hosts' -dockerhost: NEED to be set to the main docker adapters IP:  '<IP_ADDRESS>'

I am very glad that you are up and running. I will further refine the guide per your observations.
I assume that you can now close this issue. :)

I faced with same problem on Mac. I can debugging works from the CLI, but not from web pages

@LoopKarma I'm not very familiar with how the networking is setup on macs but my guess is the container cant connect with PhpStorm over port 9000. This could be due to your docker host not being set correctly or the port is being blocked by something.

@calebfavor I roughly fixed this problem with adding fastcgi_param REMOTE_ADDR your.host.ip.address into http-server config file

Thanks @LoopKarma, that was the final thing I had to figure out as well.
Since we're using Docker on mac/windows, we're port forwarding into the VM used by Docker on whatever port we expose.
PHP-FPM therefore receives the wrong REMOTE_ADDR, so I also hard-coded it into my config (which is just the worst hack imaginable for sharing this amongst a team :D )
Wonder if there's a better solution for that.

Either an env variable used to build the nginx config on the fly when starting the container
Some way to geting correct REMOTE_ADDR into the docker container, perhaps from setting up a new local network interface (on the host) and using it with docker? (e.g. answer as described here)

Current work-around that's a bit more portable for Mac users:
docker-compose.dev.yml (extends a base compose file, but that's not important here):
version: '2'
services:
  app:
    extends:
      file: docker-compose.base.yml
      service: app
    ports:
     - "${APP_PORT}:80"
    environment:
      APP_ENV: ${APP_ENV}
      XDEBUG_PORT: ${XDEBUG_PORT}

develop bash script that runs docker-compose for me (passes arguments through), setting up env vars first
# Get local IP address on mac that container can ping
export XDEBUG_PORT=$(ipconfig getifaddr en1)
export APP_ENV=${APP_ENV:-local}
export APP_PORT=${APP_PORT:-80}

docker-compose -f docker-compose.dev.yml "$@"

run.sh script that starts php and nginx inside my container:
#!/usr/bin/env bash

# Find and replace configuration to support xdebug

# Config /etc/nginx/sites-available/default
sed -i "s/#FINDREPLACE/fastcgi_param REMOTE_ADDR $XDEBUG_PORT;/g" /etc/nginx/sites-available/default

# Config /etc/php/7.0/mods-available/xdebug.ini
sed -i "s/xdebug\.remote_host\=.*/xdebug\.remote_host\=$XDEBUG_PORT/g" /etc/php/7.0/mods-available/xdebug.ini

# start supervisord
/usr/bin/supervisord

Then I have to setup PHPStorm to listen on port 9000 (I just did all networks) and debugging works for both CLI (as it always did) and Web (thanks to REMOTE_ADDR hack).

Update: I still updated xdebug.ini using the start.sh script, but I can avoid the hacky nginx configuration change simply by setting xdebug.remote_connect_back=0, which attempts to use the REMOTE_ADDR to send xdebug info back for web requests, if that is set.
Docs on that: https://xdebug.org/docs/all_settings

@fideloper just fyi, you can workaround the xdebug.ini replacing by this:
xdebug.remote_host = developer.local

and then modify the php container in docker-compose.yml with:
extra_hosts:
      - developer.local:${HOST_IP}

and just export the HOST_IP variable in the bash script which runs docker-compose up ;)

@fideloper all you need is set xdebug.remote_connect_back = Off
Here is a quote from xdebug documentation

If enabled, the xdebug.remote_host setting is ignored and Xdebug will try to connect to the client that made the HTTP request. It checks the $_SERVER['HTTP_X_FORWARDED_FOR'] and $_SERVER['REMOTE_ADDR'] variables to find out which IP address to use.

So, if remote_connect_back is off, xdebug will just connect to xdebug.remote_host and that's all.

Sometimes you should disable "xdebug.remote_connect_back" to get it work

just adding my 2 cents since I was debugging this for hours
adding
xdebug.remote_host="host.docker.internal"

should do the trick ;)

@calebfavor I roughly fixed this problem with adding
fastcgi_param REMOTE_ADDR your.host.ip.address
into http-server config file

This did the trick for me, but instead of a fixed IP I set
fastcgi_param REMOTE_ADDR host.docker.internal


"for" and "if" after

if I write a if after for without {, then converter write wrong.
Easy example:
for (i in []) if (i) {
i++;
}
make:
for i of []
continue

The new version takes care of this: demo

and OP's case of for..in: demo

Thx very much
воскресенье, 25 января 2015 г. пользователь Rico Sta. Cruz написал:

and OP's case of for..in: demo
http://js2coffee.github.io/js2coffee-redux/#try:for (var i in []) if (i) {
i%2B%2B%3B
}
—
Reply to this email directly or view it on GitHub
https://github.com/js2coffee/js2coffee/issues/316#issuecomment-71348301.


Remove Color enums

The community of manim seems to lean towards simplicity and constants. Therefore the enums should be removed and the main usage of color should be constants.

Closed #6


Delete unnecessary workaround

In #1424 I first wrote this workaround, then decided it's meh, then wrote rest of the #1424 with a proper solution, and forgot to delete the workaround.

Lol, I actually wondered about that but was like "better safe than sorry" :laughing:


If with a constant

This is a simple problem, but there may be other lines in the code with the same issue. One line draw my attention on the file https://github.com/anyoptimization/pymoo/blob/master/pymoo/operators/mutation/inversion.py
seq = seq if not None else random_sequence(len(y))
well, None is a constant and it's boolean value is always False, so it is equivalent to:
seq = seq
I think it is supposed to be:
seq = seq if seq is not None else random_sequence(len(y))

It will be fixed in the next version. thank you for reporting this issue!


Develop

Refactor base EF-Core migration in building blocks

Remove logical IsDeleted and use global query instead
Refactor EF-Core base migration in building blocks


[Feature Request] Save value(s) from response to environment

I have several login requests defined. The response of every request contains a token. I would like to save the token to an environment settings for later use by other requests using the token in their authentication header as a bearer token.
It can be done for instance by defining a function that would be executed after a request is done. Its response would be passed to this function containing a simple code:
function (response) {
  Environment["localhost"].token = response.token;
}

It would allow to run whatever defined login requests (e.g. with various users) and then test other requests.
I know there is a functionality to create a tag as a value of a property in the environment that would take the value from a specified request, but the point here is the request is not known when the tag is created.
By using a tag you can't have more login requests, send one of them and expect that the token value will be used later by other requests since you have to run just the one specified in the tag.

it's a huge missing feature. sad to see this being closed

@baskan is chaining request not what you're looking for or am I missing something?
https://support.insomnia.rest/article/43-chaining-requests

@baskan is chaining request not what you're looking for or am I missing something?
https://support.insomnia.rest/article/43-chaining-requests

Chaining request seems to do part of the job but not entierly.
If you have 2 different possible resources to authenticate, I didn't figure out how to put the last result of one of the request into the variable. It seems you just can put the result of only one request per variable. Am I mistaken ?


operator cilium-enterprise (1.15.11)

/pipeline restart operator-hosted-pipeline

/pipeline restart operator-hosted-pipeline

/pipeline restart operator-hosted-pipeline


Azure DevOps mono repo support implemented

Hey, I just made a Pull Request!
This PR will fix the below issues

#22082
#22121

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Hi @deepan10, I appreciate the contribution but https://github.com/backstage/backstage/pull/22153 is already in flight to resolve https://github.com/backstage/backstage/issues/22082. That feels like the right path forward.
I've been terribly busy and have not had time to follow up on the initial issue that started the conversation around mono-repo support. I'll admit I'm not too keen on adding new annotations but it may be the only way to do this. Can we discuss this further in the issue?


KScrash previously declared

Hello, guys. We would like to use the Bugsnag because some of the errors from Sentry are not very helpful and there are a lot of people using/recommending Bugsnag. When trying to build the project with Bugsnag already configured, we have the following error: KScrash previously declared and I thing it's because Sentry also uses KScrash. Is there any way we can use the both in the same project so we can decide which better fits our needs. Thank you!

Hi @zakster12 - the cause of this is that Sentry also uses KSCrash. This should be fixed in the next release of our library, which is due imminently, as we've forked KSCrash.
What package manager are you using out of curiosity? It's possible that this could be due to a configuration issue.

@fractalwrench Thank you for the fast response. I am using:
npm 5.3.0 as a package manager.

Should be fixed in latest release, please let us know if the issue isn't resolved.

Yes, v2.4.0 fixed the issue. Thank you!


torchvision.io.video.read_video pts units for video only

If the pts_unit='pts' for the function torchvision.io.video.read_video we get a warning:
The pts_unit 'pts' gives wrong results and will be removed in a follow-up version.
Please use pts_unit 'sec'.

Looking through an earlier issue regarding this, the usage of pts is only wrong if accurate AV sync is needed. So does that mean if I only care about the video content and not the audio (which is the case for many problems like video classification), then will it be fine to use pts? I ask because often we are concerned about only taking a certain number of frames, and using pts allows us to do that without loading in the whole video first.
If the usage of pts is only wrong if AV sync is desired, then should that be made clear in the documentation and in the warnings? Also, shouldn't the pts option still be available in future versions, while sec could be the new default?

@tmabraham yeah - all the models were trained using pts and in principle there is nothing wrong with it if you don't care about seeking into a particular parts of the video and accurate AV sync (and if you do, you're probably using read_video function which has pts_unit option).
We trained all benchmark models using the pts and the results are comparable to the benchmarks.
I believe @fmassa was planning to make sec the default at some point for 0.5 release but it got lost amongst other tasks.

@bjuncek Thanks for the clarification. To confirm, the 'pts' option will not be removed in a future release?

My understanding is that it will remain as is, the only thing to change will be the default option.

@bjuncek Sounds good. Thanks!


Update therubyracer to mini_racer

As therubyracer compiles lib-v8 but on newer systems it turns out that
this is becoming problematic. As therubyracer isn't updated for a
while. Currently the mini_racer is a better upated backend for execjs.

LGTM! Mergen en releasen!


Bad build APK target-platform=android-arm

Steps to Reproduce

I am using the following command to release APK
flutter build apk --obfuscate --split-debug-info=./build/info --target-platform=android-arm

I want to reduce the size of app, and as the flutter Cannot build release mode for x86 ABI. I only choose armeabi-v7a which is android-arm

Cannot build release mode for x86 ABI. For more information see https://flutter.dev/docs/deployment/android#what-are-the-supported-target-architectures .

But the output APK it not running on my Xiaomi Redmi 9, But when I use --split-per-abi flag and I can install both app-armeabi-v7a-release.apk and app-arm64-v8a-release.apk release
Expected results:
I think --target-platform=android-arm must be equal to  armeabi-v7a and must run on my device
Actual results:

Logs

[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.18363.1500], locale en-US)
    • Flutter version 2.0.5 at C:\flutter
    • Framework revision adc687823a (11 days ago), 2021-04-16 09:40:20 -0700
    • Engine revision b09f014e96
    • Dart version 2.12.3

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\PC\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 29.0.2
    • ANDROID_HOME = C:\Users\PC\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.85
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.77

• No issues found!

Output of --target-platform=android-arm is 26MB for me
app-armeabi-v7a-release.apk is 16.1MB and app-arm64-v8a-release.apk  is 16.9MB

Hi @sm2017

flutter build apk --obfuscate --split-debug-info=./build/info --target-platform=android-arm

This command only produces one apk, It works fine. The same result with flutters build apk  --target-platform=android-arm

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
    • Flutter version 2.0.5 at C:\Users\Taha\Code\flutter_stable
    • Framework revision adc687823a (11 days ago), 2021-04-16 09:40:20 -0700
    • Engine revision b09f014e96
    • Dart version 2.12.3

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31205.134
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.55.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[✓] Connected device (4 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 10 (API 29) (emulator)
    • Windows (desktop)                  • windows       • windows-x64    • Microsoft Windows [Version 10.0.19042.928]
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 90.0.818.46

! Doctor found issues in 1 category.

But the output APK it not running on my Xiaomi Redmi 9, But when I use --split-per-abi flag and I can install both app-armeabi-v7a-release.apk and app-arm64-v8a-release.apk release

Can you please elaborate what's the issue is exactly? Does APK fails to install or you see a blank screen? It works with --split-per-abi ? So which command failed the app? Steps to reproduce are not clear
Can you please complete reproducible steps
Thank you

Hi @sm2017
So flutter build apk --obfuscate --split-debug-info=./build/info --target-platform=android-arm build APK fails on your device Does the crash happen with a new project flutter create myapp (To be safe, the issue from your code)? Can you please try another device?

@TahaTesser the apk of flutter build apk --obfuscate --split-debug-info=./build/info --target-platform=android-arm for  a new project flutter create myapp works for my on multiple tested devices
but the apk  of flutter build apk --obfuscate --split-debug-info=./build/info --target-platform=android-arm for my application crashes (this time not immediatly, I seen 2-3 seconds white screen) after installed and opened, I install the APK in the emulator, it works well in emulator but crashes in all devices I tested
In logcat I see the following error
04-28 12:04:47.550 17888 17888 E AndroidRuntime: Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.app-d-vL866CfE7DlbA2Yt7vUQ==/base.a
pk"],nativeLibraryDirectories=[/data/app/com.app-d-vL866CfE7DlbA2Yt7vUQ==/lib/arm64, /data/app/com.app-d-vL866CfE7DlbA2Yt7vUQ==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]] couldn't find "libflutter.so"
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at io.flutter.embedding.engine.loader.FlutterLoader.ensureInitializationComplete(Unknown Source:368)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at io.flutter.embedding.engine.FlutterEngine.<init>(Unknown Source:174)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at io.flutter.embedding.engine.FlutterEngine.<init>(Unknown Source:16)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.setupFlutterEngine(Unknown Source:106)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(Unknown Source:7)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at io.flutter.embedding.android.FlutterActivity.onCreate(Unknown Source:13)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7893)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7880)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3313)
04-28 12:04:47.550 17888 17888 E AndroidRuntime:        ... 11 more

May be related I don't know I have multiDexEnabled true in my application

@sm2017
Can you please provide a minimal complete reproducible code sample that crashes the APK, I have a Xiaomi device, I can try
Thank you

@TahaTesser I will try to provide it, I'm not sure that I'll able to create, but I do my best, wait for a week, I'm too busy now

@TahaTesser just a question , is --target-platform=android-arm equal to armeabi-v7a or not?

@sm2017
armeabi-v7a is 32bit, android-arm probably producing 64 bit too, I am not expert in android architecture, I can verify if you can provide steps, somebody from tool team will help with this
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Setup: Create example app

Create an application (likely Sinatra) that we can use during development of the SDK and that can be released alongside it to provide a usage example.

We will continue to build out our example app as we develop the SDK.