Schema not set when configuring two Owned Types with table splitting

It's a while I am facing the following error while trying to configure owned types.
Apparently, when configuring Owned Types, they sometimes misses to add the annotation "Relational:Schema".
Exception:
System.InvalidOperationException: Cannot use table 'dbo.Test' for entity type 'Test.ReferenceComplexTypeProp#ReferenceComplexType' since it is being used for entity type 'Test.ComplexTypeProp#ComplexType' and there is no relationship between their primary keys..
The exception happens in the RelationalModelValidator, it happens during the context creation, therefore there is still no "user-code" involved.

Stack trace:
   at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.ValidateSharedTableCompatibility(IReadOnlyList`1 mappedTypes, String tableName)
   at Microsoft.EntityFrameworkCore.Internal.SqlServerModelValidator.ValidateSharedTableCompatibility(IReadOnlyList`1 mappedTypes, String tableName)
   at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.ValidateSharedTableCompatibility(IModel model)
   at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model)
   at Microsoft.EntityFrameworkCore.Internal.SqlServerModelValidator.Validate(IModel model)
   at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator)
   at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.<>c__DisplayClass5_0.<GetModel>b__1()

Configuration:
An entity type has two properties configured as Owned Types. The CLR type for the owned types is the same.

If I remove one of the two properties the test succeeds
If I annotate manually the ReferenceOwnershipBuilder, the test succeeds:

   .HasEntityTypeAnnotation("Relational:Schema", schema) // schema == "dbo"

I figured out the annotation trick by comparing one working model with another non-working. Both are configured using the same primitives.
Apparently I solved the problem with the annotation but unfortunately, this solves just the smaller repro but not the main project.
Questions:

Can someone explain me the error? When I totally lost any hope by ignoring the error message, I started navigating in the dark by comparing the DebugView and found this small difference which I could not image was the culcprit of the problem. This is not the first time I get from EF errors that are not meaningful for me.
Is there some sort of documentation about the way the model DebugView output is structured?
What else can be wrong in order to fix that problem that I still have on the main project?

Further technical details
EF Core version: 2.1.1-rtm-30846
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 15.6
Thanks

@AndriySvyryd The only issue I can find that looks like a possible duplicate is #10911, but that is marked as fixed in 2.1-preview2.

Hi @AndriySvyryd, the model is described with a very verbose code using reflection and expressions. This happens because the types are not known from the code building the model.
The schema is always specified in the ToTable methods. In the specific case the schema string is "dbo" but in ohter cases it may be different.
The schema problem looks like a bug that misses to inherit the schema settings specified in the owning entity (I verified with the debugger that the schema is always set using ToTable).
Even if the error message is the same, I isolated the current problem by comparing again the DebugView output strings.
The obfuscated relevant part of the working test is the following one:
  EntityType: FE_EFCoreTest Base: EWF
    Navigations:
      ComplexTypeProp1 (<ComplexTypeProp1>k__BackingField, ComplexType) ToDependent ComplexType 1 -1 2 -1 -1
      ReferenceComplexTypeProp (<ReferenceComplexTypeProp>k__BackingField, ReferenceComplexType) ToDependent ReferenceComplexType 2 -1 3 -1 -1
    Annotations:
      Relational:DiscriminatorValue: FE_EFCoreTest
      Relational:Schema: dbo
      Relational:TableName: vEWF_S_1949429316
      RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.Type]
  EntityType: ComplexType
    Properties:
      Id.Shadow (no field, Guid) Shadow Required PK FK AfterSave:Throw 0 0 0 0 0
      Prop1 (_Prop1, string) 1 1 -1 -1 -1
        Annotations:
          Relational:ColumnName: Prop1_ComplexTypePr_569187297
      Prop2 (_Prop2, Nullable<int>) 2 2 -1 -1 -1
        Annotations:
          Relational:ColumnName: Prop2_ComplexTypeP_1295699952
    Keys:
      Id.Shadow PK
    Foreign keys:
      ComplexType {'Id.Shadow'} -> FE_EFCoreTest {'Id'} Unique Ownership ToDependent: ComplexTypeProp1
    Annotations:
      Relational:Schema: dbo
      Relational:TableName: vEWF_S_1949429316
      RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.Type]
  EntityType: ReferenceComplexType
    Properties:
      Id.Shadow (no field, Guid) Shadow Required PK FK AfterSave:Throw 0 0 0 0 0
      A (_A, string) 1 1 -1 -1 -1
        Annotations:
          Relational:ColumnName: A_ReferenceComplex_1931649781
      Ref (_Ref, Nullable<Guid>) 2 2 -1 -1 -1
        Annotations:
          Relational:ColumnName: Ref_ReferenceCompl_1577351122
    Keys:
      Id.Shadow PK
    Foreign keys:
      ReferenceComplexType {'Id.Shadow'} -> FE_EFCoreTest {'Id'} Unique Ownership ToDependent: ReferenceComplexTypeProp
    Annotations:
      Relational:Schema: dbo
      Relational:TableName: vEWF_S_1949429316
      RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.Type]

The relevant differences of the DebugView output of the test failing are the following ones:
Please note that the differences are just a number. From the source code I understand that the number that is different is the "RelationshipIndex" which does not help me so much.
ComplexTypeProp1 (<ComplexTypeProp1>k__BackingField, ComplexType) ToDependent ComplexType 1 -1 3 -1 -1
ReferenceComplexTypeProp (<ReferenceComplexTypeProp>k__BackingField, ReferenceComplexType) ToDependent ReferenceComplexType 2 -1 4 -1 -1

Notes:

I cannot disclose the code or the original debugview publicly. The customer did not give me permission to do so, but I can send you privately the entire debugview files if you need it
The "obfuscation" I applied is just renaming the name of the entities for the above reason

Thanks for your help

@AndriySvyryd Here there are some more info I could extract from the code about the way the owned types are defined in the model.
The first step is calling ToTable:
builder.ToTable(physicalTableName, "dbo");

The second step is to call OwnsOne. In this specific case I had to create the OwnsOne2 extension method accepting a PropertyInfo instead of the property name.
The Relational:Schema entry was the 'missing one'.
var referenceOwnershipBuilder = builder
    .OwnsOne2(valueType, property)
    .HasEntityTypeAnnotation("Relational:Schema", Entity.PhysicalSchema);

For each property of the owned type I then call:
var propertyBuilder = referenceOwnershipBuilder.AddProperty2<TEntity>(
    valueType, propertyInfo);
propertyBuilder.HasColumnName(columnName);

I then had to add a shadow property with an arbitrary fixed name to avoid the case where a real property of the value type called "Id" (if any) collides with the one created from the conventions.
var propertyBuilder = referenceOwnershipBuilder
    .Property(typeof(Guid), $"Id.Shadow");
propertyBuilder.Metadata.IsPrimaryKey();
referenceOwnershipBuilder.HasForeignKey($"Id.Shadow");

As I said in a previous message, Relational:Schema is the one resolved partially the problem.
But I still have the same exception and the only difference between a working use-case and a non-working one is the RelationshipIndex number.
Thanks

@AndriySvyryd I spent the entire day in debugging EF Core internals.
The problem is caused by the owned type not being recognized as "inlined" from EFCore.
The solution was to call .ToTable manually on the owned type too.
From the docs, I understood that mapping to the same table as the owning entity was the default, but apparently the table name and the schema are not inherited and do require a manual mapping.
Since I now call ToTable taking both the table name and the schema, I could remove HasEntityTypeAnnotation entry.
Now I solved my problem but I leave to you the decision whether to use this issue to open a bug to fix the codebase, the docs or closing this issue and open another one.

@raffaeler Thanks, I'll investigate.

@AndriySvyryd Of course, this just fixes one of the problems, but there are more.
The context is the same of this thread. Just let me know if this thread is appropriate of I should one a new one.
Given a successful test, if I just add in the context constructor
this.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;

I get an exception on the model:
Unable to determine the relationship represented by navigation property 'Y.Parent' of type 'X'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'..

Beyond the way the model is built, I can't understand why the model does not validate anymore (with the above error) as soon as the tracking is disabled.
How can these two things be related?
As I said at the beginning, the hardest part is the difficulty in understanding the real problem from the exceptions.

@AndriySvyryd after many years, it sounds the closed source problem is inverted, LOL :D
Even if I could post the whole code (unfortunately the decision is not mine), it would be an extremely large codebase. I tried to reduce the scope in a small repro, but just reducing a bit the model does not show the problem anymore, it's really hard to understand.
In this latter case, I just comment out the this.ChangeTracker.QueryTrackingBehavior or anything else setting the ChangeTracker behavior, and the test passes.

I used following code to reproduce the issue
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;

namespace EFSampleApp
{
    public class Program
    {
        public static void Main(string[] args)
        {
            using (var db = new MyContext())
            {
                // Recreate database
                db.Database.EnsureDeleted();
                db.Database.EnsureCreated();

                // Seed database

                db.SaveChanges();
            }

            using (var db = new MyContext())
            {
                // Run queries
                var query = db.Blogs.ToList();
            }

            Console.WriteLine("Program finished.");
        }
    }

    public class MyContext : DbContext
    {
        private static ILoggerFactory LoggerFactory => new LoggerFactory().AddConsole(LogLevel.Trace);

        // Declare DBSets
        public DbSet<Blog> Blogs { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            // Select 1 provider
            optionsBuilder
                .UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=_ModelApp;Trusted_Connection=True;Connect Timeout=5;ConnectRetryCount=0")
                //.UseSqlite("filename=_modelApp.db")
                //.UseInMemoryDatabase(databaseName: "_modelApp")
                .EnableSensitiveDataLogging()
                .UseLoggerFactory(LoggerFactory);
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            // Configure model
            modelBuilder.Entity<Blog>().ToTable("Blogging", "Custom");
            modelBuilder.Entity<Blog>().OwnsOne(e => e.HomeAddress);
            modelBuilder.Entity<Blog>().OwnsOne(e => e.WorkAddress);
        }
    }

    public class Blog
    {
        public int Id { get; set; }
        public Address HomeAddress { get; set; }
        public Address WorkAddress { get; set; }
    }

    public class Address
    {
        public string City { get; set; }
    }
}

Based on whatever said in the comments above, I tried to recreate similar model but it is working for me successfully in version 2.2.0-preview2-35157 (lastest on NuGet). I also verified that we set schema appropriately (not just the table) when configuring shared table. Beyond that, I believe, it is not possible for us to investigate without actual repro code.
I am closing this issue. Feel free to re-open if you can provide us a self-contained repro code which demonstrate the issue you are seeing.

@smitpatel At the end the problem was a mix of two issues:

the message coming from the exception is not clear enough to understand the real origin of the problem
the docs are not suggesting to use ToTable (as I wrote here )

HTH

@raffaeler Calling ToTable on the owned types is a workaround for your issue, it shouldn't be needed, that's why it's not documented.

@AndriySvyryd ok. But without it I could not make it work. I am not sure whether @smitpatel test cover the case when PhysicalSchema was initially specified by hand to the entity (and thus not propagated to the Owned Type)

@raffaeler - If you look at the code I posted, I have configured the owner type to map to different schema using ToTable call and yet it is propagated properly to owned entities. The code in SharedTableConvention also does processing for table and schema both. Hence the assumption that schema is not getting propagated is incorret.
At this stage we will need repro to investigate further else there does not seem to be any issue in codebase or documentation.

@smitpatel I see but there is a huge difference between my code and yours.
I have to manually specify all the mappings because in my case I don't know the entities. Therefore I have to use reflection to map them.
Beyond the fact I created new extension methods to use reflection objects such as PropertyInfo, I manually add every single property without letting the conventions decide.
That said, I tried to add to your code the manual mappings, but I get an internal NullReferenceException:
var entityBuilder = modelBuilder.Entity<Blog>().ToTable("Blogging", "dbo");
var ownershipBuilder1 = modelBuilder.Entity<Blog>().OwnsOne(e => e.HomeAddress);
var ownershipBuilder2 = modelBuilder.Entity<Blog>().OwnsOne(e => e.WorkAddress);
var propertyBuilder = ownershipBuilder1.Property<Address>("City"); // explodes internally in EF

Let's start from this ... do  you see that?
Thanks

var propertyBuilder = ownershipBuilder1.Property<string>("City")
Don't forget that the type of Property should match up.
The cause of issue is more likely that you are specifying table manually but not the schema when configuring owned entities.

@smitpatel I am now using your example and I did not modify the entities you defined, so string is correct.
I also tried this statement:
var propertyBuilder = ownershipBuilder1.Property("City");

but I still get a NullReferenceException. At home I did not configure the source code stepping so I am not understanding why this exception get thrown. (In any case I don't expect EFCore throwing a NullReferenceException).

Moved to #13519

With regards to the NullReferenceException, I already documented the changes I made to @smitpatel sample.
In any case this is the complete listing.
I installed sqlite provider just because it's easier to setup.
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;

// https://github.com/aspnet/EntityFrameworkCore/issues/12954#issuecomment-427083836

namespace TestSchema
{
    public class Program
    {
        public static void Main(string[] args)
        {
            using (var db = new MyContext())
            {
                // Recreate database
                db.Database.EnsureDeleted();
                db.Database.EnsureCreated();

                // Seed database

                db.SaveChanges();
            }

            using (var db = new MyContext())
            {
                // Run queries
                var query = db.Blogs.ToList();
            }

            Console.WriteLine("Program finished.");
        }
    }

    public class MyContext : DbContext
    {
        private static ILoggerFactory LoggerFactory => new LoggerFactory().AddConsole(LogLevel.Trace);

        // Declare DBSets
        public DbSet<Blog> Blogs { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            // Select 1 provider
            optionsBuilder
                //.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=_ModelApp;Trusted_Connection=True;Connect Timeout=5;ConnectRetryCount=0")
                .UseSqlite("filename=_modelApp.db")
                //.UseInMemoryDatabase(databaseName: "_modelApp")
                .EnableSensitiveDataLogging()
                .UseLoggerFactory(LoggerFactory);
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            // Configure model
            var entityBuilder = modelBuilder.Entity<Blog>().ToTable("Blogging", "Custom");
            var ownershipBuilder1 = modelBuilder.Entity<Blog>().OwnsOne(e => e.HomeAddress);
            var ownershipBuilder2 = modelBuilder.Entity<Blog>().OwnsOne(e => e.WorkAddress);

            var propertyBuilder = ownershipBuilder1.Property<Address>("City");
            propertyBuilder.HasColumnName("City");

            //propertyBuilder = ownershipBuilder1.Property(typeof(Guid), $"Id.Shadow");
            propertyBuilder.Metadata.IsPrimaryKey();
            ownershipBuilder1.HasForeignKey($"Id.Shadow");

        }
    }

    public class Blog
    {
        public int Id { get; set; }
        public Address HomeAddress { get; set; }
        public Address WorkAddress { get; set; }
    }

    public class Address
    {
        public string City { get; set; }
    }
}

and this is the csproj:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.4" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.1.1" />
  </ItemGroup>

</Project>


Document SCRAM authentication upgrade/downgrade

Fixes DOC-6319
Summary of changes:

Update the 'Troubleshoot Common Problems' page with instructions for downgrading from SCRAM auth to bcrypt password hashing. While there, also:

Break out the SCRAM high CPU content into sections for easier scanning and linking

Add some links to the 'Connection Pooling' and 'Transactions' pages where those things are mentioned

Add the detail that if the connection pooling software is configured to close idle connections eagerly, this can also contribute to high CPU

Update the 'SASL/SCRAM-SHA-256 Secure Password-based Authentication' page with specific upgrade instructions showing the SQL statements to type in

can we add a note stating that: SCRAM does incur additional round trips during authentication which can add latency to the initial connection.

@dikshant I added some text about this


Create ci.yml

実行確認用プルリクエスト

Codecov Report

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

@@          Coverage Diff           @@
##           master      #1   +/-   ##
======================================
  Coverage    3.44%   3.44%
======================================
  Files           3       3
  Lines          58      58
  Branches       15      15
======================================
  Hits            2       2
  Misses         46      46
  Partials       10      10

Continue to review full report at Codecov.

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


New Feature for the Unofficial Persona TTRPG HTML

Submission Checklist
Required

[X] The pull request title clearly contains the name of the sheet I am editing.
[X] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[X] The pull request makes changes to files in only one sub-folder.
[X] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <  >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <  > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[X] This sheet has been made on behalf of, or by, the game's publisher.
[X] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <[   (https://crimsonparcel.tumblr.com/)]>
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

A new feature will be added to the game to improve the UIs readability. As a result some names of elements will be changed. We have prepared for this by warning people two weeks earlier (the 28th of April).
Also we have changed the wording on an element from "Temp." to "Bonus" because of confusion.

Character Sheet Info Roll20 Internal Use only.


only call get_subset_by_classes during training

Only filter data during training but not in testing. Because test data is not labeled.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @jonbakerfish ,
This PR duplicates #3695. Could you check whether #3695 meets your need?

Yes, it did fix the bug. Thanks.


parse throws an error when a chromosome is present in the chromsizes, but not in the bwa index (== sam header).

fixed!


Object interfaces as function and with helpers

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

60 of 62 (96.77%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 93.574%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/webhook/mutating_webhook.go
14
16
87.5%

Totals

Change from base Build<PHONE_NUMBER>:
0.4%

Covered Lines:
233

Relevant Lines:
249

💛  - Coveralls

Example:
func (w *Webhook) ValidateCreate(ctx context.Context, req admission.Request) admission.Response {
	admission.ValidateCreateObjectByFunc(ctx, req, func(ctx context.Context, req admission.Request, obj runtime.Object) error {
		_ = log.FromContext(ctx)

		pod := obj.(*corev1.Pod)
		// TODO add your programmatic validation logic here

		return nil
	}
}

Example:
func (w *Webhook) ValidateCreate(ctx context.Context, req admission.Request) admission.Response {
	return admission.ValidateCreateObjectByFunc(ctx, req, func(ctx context.Context, req admission.Request, obj runtime.Object) error {
		_ = log.FromContext(ctx)

		pod := obj.(*corev1.Pod)
		// TODO add your programmatic validation logic here

		return nil
	})
}

Can you add this to the Readme?


structure: doubly linked list

Even though it's been a while since I opened this pull request, I felt like it again and hopefully have now completed the data structure :)


About Paddle Mobile directory

All based on the paddle fluid version of development, the code is in the zygote directory.
Zygote directory does not commit code, when after the completion of development, external files will be deleted.

closed


Open Multiple Files at Once

Hey Rafael,
This pull request mostly solves issue #43 . Summary:

preview is set to false in the call to showTextDocument() so that multiple files can be opened simultaneously without disabling workbench.editor.enablePreview globally in VS Code.
Instances of RemoteFile and Command associated with the Session class are stored in arrays to allow multiple files to be sent in a single session.
Some array references that were added were subsequently replaced with local method variables for readability.

Unfortunately, number 2 only works most of the time. Occasionally only the first file is opened, so I highly suspect there's a race condition somewhere.
Cheers!

@ComfyDust Is it possible for me to try your fix and actually edit multiple files at once?

@github-jane-doe It's technically possible but it might be a bit of a pain since you would have to launch the extension in an extension developer workspace whenever using it.
Since creating this PR I've personally switched to using the official remote VS Code extension packs when working on code stored remotely or in the WSL.

@github-jane-doe It's technically possible but it might be a bit of a pain since you would have to launch the extension in an extension developer workspace whenever using it.
Since creating this PR I've personally switched to using the official remote VS Code extension packs when working on code stored remotely or in the WSL.

Unfortunately, as far as I know, the remote VS Code extension does not work on macOS

Hmmm, the SSH docs seem to suggest that, while you can't connect to macOS servers, you should be able to connect from a mac.

macOS SSH hosts are not yet supported. (macOS clients are supported.)

Afraid I don't have a mac myself so I can't poke about to confirm.


Using formControlName

Hello,
I got this error: Cannot read property 'search' of undefined
using this formControlName
<ng2-completer [(ngModel)]="equipment.eqName" formControlName="eqName" [dataService]="dataService" [minSearchLength]="0"></ng2-completer>

@finzaiko looks like dataService is not initialized

I forgot that one, Thanks @oferh


Switch from QImage to QGraphicsRectItem/QGraphicsEllipseItem

This will allow us to have a color picker in the GUI.

76dab4 switches drawing methods.   Still have the introduced sizing issue.


[fix](tablet clone) fix be load rebalancer choose  candidate tablets

Proposed changes
When be load reblancer choose candidate tablets, it will try moving tablets from high load backends to low backend backends.  If the higher  HIGH BE has no available slot num,  it should try next  HIGH BE.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Use topic_data.js for topic typeaheads.

This replaces some old code with calls to topic_data.js.
Now our topic typeahead uses the same data as our
sidebar, stream suggestions, and the "n" key, so any
future improvements to that data will benefit all
features the same.
This is an important piece of #9857.

Testing Plan:
GIFs or Screenshots:

This generally won't change behavior, but it will give better typeahead for cases where users have hit "more topics" on long-lived streams.

This looks great, merged, thanks @showell!  It's always great to get rid of a stale data structure.
I'll post some more thoughts on #9857.


Revert "Simplify null checks"

This reverts commit 71edead.
They removed the feature from C# 11 :(

Also this was a pain so wouldn't be surprised if something is wrong, hopefully the build and tests will show it up.


Add Sentry error reporting

Description
Adds error reporting to Sentry (we needed a little more info than was available in /extension-issues)
Opened in favor of https://github.com/raycast/extensions/pull/14823 (moved to its own branch to free up reclaim-ai:main)
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Seems like we have the same conflicts here in main @SandyGifford

@pernielsentikaer merge conflict cleared - ready to go!


Migrate all js code to TypeScript

This isn't exactly a feature request but I think that migrating all the JS code to typescript would be great for that section of the codebase, especially if it grows in the future.
I have a good deal of experience doing this sort of thing, and would be happy to, but wanted to confirm that the maintainers would be happy with a PR of this nature before doing the work.

Hi @b-zurg,
I would prefer the code was not migrated to typescript. Personally I am much more comfortable with plain JS and I don't feel the benefits of moving to TS would be worth the extra build step and abstraction.

I don't believe there would be another build step.  As the code is already being run through webpack then it would just involve adding the typescript loader.
As far as comfort, everything you're used to in JS is there in Typescript.  The only thing that's really added is typed annotations on functions.  I don't think getting used to TS from JS would take more than 10 minutes of scanning through the docs.
I could make a branch and just give it a go if you'd like to see what changes would be  involved.

I don't believe there would be another build step. As the code is already being run through webpack then it would just involve adding the typescript loader.

Sure, Not another step for a user to run but an extra step and transformation for the code to go through, and an extra delay when developing.

As far as comfort, everything you're used to in JS is there in Typescript. The only thing that's really added is typed annotations on functions. I don't think getting used to TS from JS would take more than 10 minutes of scanning through the docs.

I have played with TS before, and I really liked working with the language. I did come across some turbulence when using libraries but I'd imaging that's improved considerably over the last few years.
That said, I don't think it's worth it for this project.  The cost will be more than 10 minutes of docs browsing. From past experience, it will be a considerable hit as you become transfixed on ensuring things are done the proper typescript way. The bugs we have experienced have mainly been logical rather than type based so I don't think the safety benefit will be large. Where types do need to be considered, I've found jsdoc, in tandem with a competent ide, to work well. Keeping the code more accessible as plain JS is more important to me.

Since I've made my thinking known, and discussion has discontinued, I'll close this off.


[doc] [Transform-sql-Use UDAF] The demo on the official website has incorrect configuration parameters

…ncorrect configuration parameters

Purpose of this pull request

Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist
close #3355

@Hisoka-X @CalvinKirs Please help to review it,thanks


 There is an old one ANSI-X9.63: http://www.secg.org/sec1-v2.pdf (clause 3.6.1).
But there is also newer ISO 18033-2 document that defines new KDF: https://www.shoup.net/iso/std6.pdf (clause 6.2). (Drafts contain discussion why not just Hash (https://www.shoup.net/papers/iso-2_1.pdf))
And pay an attention: Both documents define generic KDF for every algorithm described in the documents.
I guess we should replace current KDF with ISO 18033-2 variant.

Drafts contain discussion why not just Hash (https://www.shoup.net/papers/iso-2_1.pdf)

TL;DR Victor Shoup proved that if public key (not only X part, but also Y) is not included into KDF parameters then ECIES is affected to adaptive chosen ciphertext attacks.
C++ Example: https://github.com/randombit/botan/blob/master/src/lib/pubkey/ecies/ecies.cpp#L142

@kigawas AFAIK OS2IP and I2OSP are just "octet string to integer procedure" and "integer to octet string procedure". I guess integer mean "big number" in our case.
There is more important clause with ECIES-KEM description:

As far as I get it, KDF1 is just HKDF which is already ported to many languages and has own RFC.
For example Google use it as KDF at their own ECIES implementation based at ISO 18033-2:
https://github.com/google/tink

And yes, Google Tink library feeds HKDF with shared ECDH secret and (!) public key. HKDF they use without salt which is ok in this case.
https://github.com/google/tink/blob/master/go/subtle/hybrid/ecies_hkdf_sender_kem.go#L29

https://pycryptodome.readthedocs.io/en/latest/src/protocol/kdf.html#Crypto.Protocol.KDF.PBKDF2

Looks like this HKDF:
https://pycryptodome.readthedocs.io/en/latest/src/protocol/kdf.html#Crypto.Protocol.KDF.HKDF

k1: bytes = sender_secret
k2_pub: bytes = receiver_public  # uncompressed format
shared: bytes = k1.multiply(k2_pub)
master  =  shared + k2_pub
key_len = 32 # for aes-256-gcm
salt = b'0'*64 # random 64-byte bytes array for sha512
hashmod = 'sha512'

```python
k1: bytes = sender_secret
k1_pub: bytes = sender_public  # uncompressed format
k2_pub: bytes = receiver_public  # uncompressed format
shared: bytes = k1.multiply(k2_pub)
master  =  shared + k1_pub
key_len = 32 # for aes-256-gcm
salt = b'0'*64 # random 64-byte bytes array for sha512
hashmod = 'sha512'

k1: bytes = sender_secret
k1_pub: bytes = sender_public  # uncompressed format
k2_pub: bytes = receiver_public  # uncompressed format
shared: bytes = k1.multiply(k2_pub)
master  =  shared + k1_pub
key_len = 32 # for aes-256-gcm
salt = b'0'*64 # random 64-byte bytes array for sha512
hashmod = 'sha512'

@kigawas sha512 is overkill, imo. And it's even less safer in few cases like time attack. sha256 is more than enough. Salt is also unnecessary, otherwise we will get different keys every time and decrypt-encrypt process will be fully broken.

Ok, then
k1: bytes = sender_secret
k1_pub: bytes = sender_public  # uncompressed format
k2_pub: bytes = receiver_public  # uncompressed format
shared: bytes = k1.multiply(k2_pub)
master  =  shared + k1_pub
key_len = 32 # for aes-256-gcm
salt = b'0'*32 # zero 32-byte bytes array for sha256
hashmod = 'sha256'

Yeah, that's ok I guess. Can you give me your test vectors later?

I'll update when ready


Fix nit of index check logic in DataSourceMeta

What changes were proposed in this pull request?
Find a nit in isSupportedByIndex logic, the AttributeReference may appear in both side of BinaryComparison. Example in TypeCoercion.scala
How was this patch tested?
Add tests in origin DataSourceMetaSuite.

LGTM


Friend codes that contain spaces are not accepted in full

Also applies to arguments intended to have spaces.

Should be patched


[DPP-84] Request credentials for Ebay production

Generate a key set for Dropp production.
Create a user to let Dropp connect to the Ebay shop.
Add user to shop.
Make sure the credentials are valid by collecting data for some items.

I assigned @Francesco-Giocondo to the task to make sure that the Dropp user can access the Ebay shop. When that is done please reassign to me


[MM-58693] Fix some issues with Windows notifications

Summary
Found a few issues with reporting notifications on Windows and a small bug that I wanted to fix:

Sometimes Windows will fire both the show and failed events when a notification fails to show due to permissions not being enabled for Mattermost in Windows. This was then always being reported as a success when it should be not_sent, so I had to add a timeout to have the show callback wait for the failed one to potentially run (not an elegant solution)
Windows would return failed when the notification fails the permission check. This should now be reported as not_sent as it is a user choice not to send the notification
Our DND check for priority was returning the opposite of what it should, so I've swapped the flag.

Ticket Link
https://mattermost.atlassian.net/browse/MM-58693
Fixed an issue with DND mode on Windows

Is this a recent regression or something that we tracked down with recent metrics and added logging? Can we create a ticket for tracking purposes on notification fixes?

I just found this while testing the notifications manually, but I can add a ticket for it.

Do we want to include this in the dot release as well?

cc @amyblais

Cherry pick is scheduled.


Could an example task.json be provided

For TaskIO, I was wondering what should the task.json file look like for the existing tasks. Thanks

The task.json is not something that Dynalab users have to define themselves. It is provided by the task owner and loaded by Dynalab automatically. For any dynabench task, you should be able to inspect the task IO by following this README: https://github.com/facebookresearch/dynalab/blob/37b61e54dcbf43f76a447b290c44c1d5244ca1a7/dynalab/tasks/README.md
If you want even more info about task IO, feel free to read this too:
https://github.com/facebookresearch/dynabench/blob/main/docs/owners.md#annotation-configs
Let me know if there are issues with these documents.


Bump typescript version to ^1.8.10

Only thing edited is package.json.

Just closing this old and very outdated pr


LSNBLDR-952; fix lessons subnav

various details were wrong in the subnav code:

didn't check for group access
didn't check prereq quite right
slightly wrong way of getting top level pages

You’re right. I was copying code. I’ll fix it.
On Mar 1, 2018, at 5:00:36 PM, Sam Ottenhoff <notifications<EMAIL_ADDRESS>wrote:
@ottenhoff commented on this pull request.

In lessonbuilder/components/src/java/org/sakaiproject/lessonbuildertool/model/SimplePageToolDaoImpl.javahttps://github.com/sakaiproject/sakai/pull/5362#discussion_r171707680:

@@ -1903,18 +1903,21 @@ public Object readSqlResultRecord(final ResultSet result) {
}

    public List<SimplePage> getTopLevelPages(final String siteId) {

          DetachedCriteria d = DetachedCriteria.forClass(SimplePage.class).add(Restrictions.eq("siteId", siteId))

                  .add(Restrictions.disjunction()

                          .add(Restrictions.isNull("owner"))

                          .add(Restrictions.eq("owned", true)))

                  .add(Restrictions.isNull("parent"));

      // set of all top level pages, actually the items pointing to them

      List<SimplePageItem> sitePages =  findItemsInSite(toolManager.getCurrentPlacement().getContext());

Why are you using toolManager.getCurrentPlacement().getContext() when siteId is passed to this function?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/sakaiproject/sakai/pull/5362#pullrequestreview-100609655, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB0aCOe6aRPtwNVmBt4ASqnfHG159U4qks5taG-DgaJpZM4SZDXi.

I’ve already rewritten it. I’m about to check it in. No, it’s not so bad, but it’s unnecessarily complex.
finditemsinsite (which is actually find all top-level items in site) does

find all site pages. I assume one query
find all lessons pages with toolid properties pointing to one of them. One query.
For each page find the item pointing to it. done with a single specialized query

What I did unnecessarily was call that code and then look up each item to find the page. That’s unnecessary lookups, but only the number of top level pages.
In fact that’s silly. I’ve copied the code of finditemsinsite and left off the last step.
On Mar 2, 2018, at 9:49 AM, Sam Ottenhoff <notifications<EMAIL_ADDRESS>wrote:
@ottenhoff commented on this pull request.

In lessonbuilder/components/src/java/org/sakaiproject/lessonbuildertool/model/SimplePageToolDaoImpl.javahttps://github.com/sakaiproject/sakai/pull/5362#discussion_r171865989:

@@ -1903,18 +1903,21 @@ public Object readSqlResultRecord(final ResultSet result) {
}

    public List<SimplePage> getTopLevelPages(final String siteId) {

          DetachedCriteria d = DetachedCriteria.forClass(SimplePage.class).add(Restrictions.eq("siteId", siteId))

                  .add(Restrictions.disjunction()

                          .add(Restrictions.isNull("owner"))

                          .add(Restrictions.eq("owned", true)))

                  .add(Restrictions.isNull("parent"));

      // set of all top level pages, actually the items pointing to them

      List<SimplePageItem> sitePages =  findItemsInSite(toolManager.getCurrentPlacement().getContext());

We should worry about this change! This is going to change this lookup from one query into possibly hundreds or thousands of queries (site => pages => items), right?!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/sakaiproject/sakai/pull/5362#discussion_r171865989, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB0aCF5qCbXuHZqhoepBrv4kvuSlpCmtks5taVvcgaJpZM4SZDXi.

We have looked into performance issues in findItemsInSite before. That history is here:
https://jira.sakaiproject.org/browse/LSNBLDR-877
Please leave future PRs open for community review. We usually leave our PRs open for 3-5 days to try to get comments from community.

Ugh. We have a rogue advisor. IsInsstructor is always set, because everyone shows as having site.upd.

A related JIRA of advisor cleanup: https://jira.sakaiproject.org/browse/LSNBLDR-869


Python: Add ability to specify a default timeout for the polling operation.

Motivation and Context
With OpenAI assistants there is currently no way to specify a polling timeout. For long running operations, or other ones that fail to complete this can be dangerous as the polling code could run infinitely, theoretically.

Description
This PR adds the ability to specify a run_polling_timeout attribute as part of the run_polling_options.

Adds the incomplete status to the list of error states.
Adds a unit test for the run polling timeout as well as the incomplete returned state.
Closes #9364

Contribution Checklist

[X] The code builds clean without any errors or warnings
[X] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[X] All unit tests pass, and I have added new tests where possible
[X] I didn't break anyone :smile:

Python Unit Test Overview

Tests
Skipped
Failures
Errors
Time

2661
4 :zzz:
0 :x:
0 :fire:
1m 8s :stopwatch:


EXIF rotation isn't supported

Hey- I really like this minimal set-up and am trying to get a super simple 'upload from iphone' workflow for a trip log going. I ran into a problem though; the rotation information that gets encoded in the jpegs doesn't seem to be respected? I'm seeing photos taken in landscape show up as portrait on the site eventually.
It's addressed easily enough with some shell scripting but it would definitely be more convenient to not have to do manually.

@fkxr-dev thanks for reporting this issue!
I just pushed a fix for this. Could you please try it?
It's also included in newest 1.0.6 version.
Note:
Current cache needed to be deleted so I also added a clear-cache command for this. Please take a backup for your data before trying :)

Confirming this has fixed my issue; the images (at least from Apple ProRaw and Canon CR3) seem to be coming in correctly rotated as per EXIF info. Thank you!

Actually- I still have some files showing up incorrectly, let me reopen this for now and I will sit down and verify I’ve got everything built correctly, and if so- I’ll get a sample image if anything is still not working. Will check back on this in a few days.

OK- sorry for the quick ping-pong, found some time to check. Confirming on:
foto v1.0.7+70e7ddd
the images appear correctly rotated.
I was apparently having issues building latest from source; so my previous test was running against an older binary and I didn't notice. Will troubleshoot the building issues separately (undefined values coming out of<EMAIL_ADDRESS>probably some version mismatch).

https://github.com/waynezhang/foto/issues/4#issuecomment-1873383038

Rotation in generated index.html is incorrect. Reopen.

@fkxr-dev should be fixed in the newest version.

Extremely late reply, but yes this is working well now, thank you!


postfix: header_checks for black / whitelisting

Is your feature request related to a problem? Please describe.
At the moment it is not possible to filter incoming mail (black / whitelisting), when mail is coming from a forwarder (SRS0=...).
Because the check_sender_access looks in MAIL FROM in envelope.
In a forwarded mail (SRS), the MAIL FROM is not the same as the "from" header.
So there will never be a match.
Describe the solution you'd like
a solution could be to use header checks.
Here it is possible to check the "from" header with regex.
And this is just a small use case, with header checks there are much more possibilitys of filtering.
http://www.postfix.org/header_checks.5.html

I'm quite busy within my work and NRPE plugin, can you give me 2-3 real life examples you would use so I have an idea how to fit your needs?

sure.
For security proposes, my mails are forwarded trough a mail relay.
In order that SPF checks can be passed, the forwarded mails are handled with server rewrite sheme function.
before SRS:
MAIL FROM (envelope<EMAIL_ADDRESS>after SRS:
MAIL FROM (envelope<EMAIL_ADDRESS>(Note: "=xxxx=xxxxx" are not static.)
Now, it is not possible anymore to use the "check_sender_access" (hash) because it checks the MAIL FROM in envelope.
With "header_checks" it is possible to define a regex, to check the from field in the header, so that black / white listing should work again.
Also the following filters are possible then:
/^Subject: Bad Bad Newsletter/ REJECT     # Filter on subject header
<EMAIL_ADDRESS>REJECT                            # Block mail from hole domains
The implementation should also not too complicated, it is one line in the main.cf:
header_checks = regexp:/usr/local/etc/postfix/header_checks
and the header_checks file itself.
The only problem, i think is the gui implementation.

And how to you achieve the rewrite example?

You mean the SRS rewrite ?
That is done by the mail relay, outside my network. (i dont have control over these)
I only said this for better understanding of the problem.

@fichtner what do you think about this?
Validating regexp is real pain.
Add a new grid with a one-liner text field without validation?

Hi,
I would like this feature too, but to do a different thing with it. I'm not sure whether I should open a separate feature request for this, so I'm writing this comment first.
I use my firewalls as mail relays for outgoing email traffic and I want to strip / rewrite some headers for privacy reasons. This can be done by simply adding the following line to the main.cf
# Header Stripping
smtp_header_checks = pcre:/etc/postfix/header_cleanup_outgoing

The contents of header_cleanup_outgoing could be
/^\s*(Received: from)[^\n]*(.*)/ REPLACE $1 <IP_ADDRESS> (localhost [<IP_ADDRESS>])$2
/^\s*User-Agent/ IGNORE
/^\s*X-Enigmail/ IGNORE
/^\s*X-Mailer/ IGNORE
/^\s*X-Originating-IP/ IGNORE
/^\s*Mime-Version/ IGNORE
/^\s*X-Confirm-Reading-To/ IGNORE
/^\s*Disposition-Notification-To/ IGNORE
/^\s*X-K9mail-Identity/ IGNORE
/^\s*Autocrypt/ IGNORE

Adding the option to the main.cf and a textarea to the "advanced mode" of the "General" page on the WUI would be sufficient to me.

@fichtner what do you think about this?
Validating regexp is real pain.
Add a new grid with a one-liner text field without validation?

@mimugmail This sounds great. I think not implementing a validation will nor break anything, except the users "wrong" rule not being applied.
You could append an additional dropdown menu to each line to configure whether the check should be applied "WHILE RECEIVING MAIL", "WHILE DELIVERING MAIL" or even both. There is another one for "AFTER RECEIVING MAIL", but I don't know the use case of this and whether this would be used by anybody.

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository,
please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.

Hi, please reopen this issue. I started working on it: https://github.com/Starkstromkonsument/opnsense_plugins/commit/da59ec822f67674b82c0713ff9fbc86140795595
Unfortunately I'm stuck. I can't get the UI to show the new page correctly. The new menu entry "Header Checks" shows up correctly in the menu:

and the URI /ui/postfix/headerchecks/index is opened. The Page returns 404 Page not found though.
I double checked the docs and my code and I don't find the error. Does anybody have a hint for me please?

Just open a PR against master starting with WIP: in subject and I'll have a look (no guarantee that it get's merged)


Prater SSZ download - Goerli

While testing on Goerli/Prater I ran into an issue with Prysm.
In the entrypoint, the genesis SSZ file does not download correctly, and the beacon-chain client cannot start.
The main issue is that curl is called without the -L flag, and it receives a 302 response. It saves the empty response to the file instead of following the redirect.
Another small issue is that the empty file also prevents re-download, so the volume must be deleted to recover from a broken SSZ file.

Thanks! Shall fix that.

Looks resolved in testing.


CLI-27: basic integration tests.

Description
Initial attempt at basic integration tests.
References
Testing

[ ] This change adds test coverage for new/changed/fixed functionality

Checklist

[ ] I have added documentation for new/changed functionality in this PR or in auth0.com/docs
[ ] All active GitHub checks for tests, formatting, and security are passing
[ ] The correct base branch is being used, if not master

There are no github action changes included in this PR. I'm working through understanding how we can set this up safely.


[Ballista] datafusion-cli  with ballista not support show tables and show columns

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
datafusion-cli  with ballista not support show tables and show columns
RUST_LOG=INFO cargo run  --bin datafusion-cli --features=ballista  -- --host localhost --port 50050

create external table table1 stored as PARQUET location "/Users/yangjiang/ebay/kylin-native/examples/test_case_data/xxxx";
0 rows in set. Query took 0.006 seconds.

❯ \d table1;  🤔 Invalid statement: sql parser error: Expected an SQL statement, found: \
^C
❯ show tables;
Plan("SHOW TABLES is not supported unless information_schema is enabled")
❯

Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Have you tried to enable the information_schema from the error message "Plan("SHOW TABLES is not supported unless information_schema is enabled")"
@Ted-Jiang

Maybe I can help you to check this issue if I'm free on the weekend.

In this pr: https://github.com/apache/arrow-datafusion/pull/1593 I added show tables and show columns in ballista context.  I think we can add a param named with_information_schema which type is bool.
I can finish it in these days.


Cache path is broken?

So I'm using this, perhaps a bit outside of the scope of the project. Videos are trimmed locally, there is no library management besides app cache. This test case was based on react-native for Android.
Using RNCamera to save a video, it gets saved to:
file:///data/user/0/com.my-app/cache/Camera/58fe498b-d334-4f55-8296-795e14c58363.mp4
It works to pass this uri to showEditor, however the path from onFinishTrimming (outputPath) is
/data/user/0/com.my-app/files/trimmedVideo_1705855827.mp4
I transform the path by adding file:// like:
file:///data/user/0/com.my-app/files/trimmedVideo_1705855827.mp4
But the video is "broken" according to the trimming library, perhaps the path is not available?
Necessary permissions are set in AndroidManifest.xml as well as info.plist
Update:
Seems like the videos produced are actually broken. They show up as 0B in the Files-explorer.
Update:
It works on real device, just not on emulator... Curious. Also noticed "trimming video..."-message does not show on emulator, but shows on device. Could the reason be that I'm on Apple Silicon?

Hi,
I tested on Android emulator, it worked, but yeah, it'll better to always work with real device for both Android + iOS
About the "Trimming video..." text, please check the props trimmingText when you call showEditor. Check here

This works on device, not on emulator. Closing.


Use WebWorkers for fetching resources

Implementation is mostly done.
Still missing:

Capp cache should cache to IDB the background fetch script and invoke it from there instead of network
Tests are broken


Reference Handling

It would be nice to give the User to tool to simplify the handling of references.
Environment:

simplified reference handling should be supported insinde a bundle
Expected Behaviour:
when a reference is being created inside a resource there should be a dropdown of all the resources inside that bundle that qualify (e.g. based on resource type) available for selection.
the handling of these reference when bundles are duplicated, resources renamed or resources copied should be handled

started working on branch referenceSelection


Container couldn't be started

Describe the bug
Container couldn't be started
To Reproduce
Deploy as web app from Azure AI Studio
Expected behavior
Chat
Screenshots

Configuration: Please provide the following

Azure OpenAI model name and version (e.g. 'gpt-35-turbo-16k, version 0613') - gpt-35-turbo-16k
Is chat history enabled? Yes
Are you using data? If so, what data source? (e.g. Azure AI Search, Azure CosmosDB Mongo vCore, etc)
Verify the startup command and runtime configuration by showing the output of the following az CLI command:

az webapp show --name <app name> --resource-group <resource group name> --query "{startupCommand: siteConfig.appCommandLine, runtime: siteConfig.linuxFxVersion}"

Logs
Container gdarmon_0_32a627ef couldn't be started: Logs = _____
/ _ \ * _________ ____
/ /\ \ / | _ __ _/ __
/ | / /| | /| | /\ /
_| /__ _/ || __ >
/ / /
A P P S E R V I C E O N L I N U X
Documenta* http://ak*
Python 3.11.10
Note: Any data outside '/home' is not persisted
Starting OpenBSD Secure Shell server: sshd.
WEBSITES_* is not set to true.
Site's appComman* python3 -m gunicorn app:app
Launching oryx with: create-sc* -appPath /home/sit* -output /opt/star* -virtualE* antenv -defaultA* /opt/defa* -userStar* 'python3 -m gunicorn app:app'
Found build manifest file at '/home/si* Deseriali* it...
Build Operation ID: 12abcae34*
Oryx Version: 0.2.20241* Commit: 95c7a8852* ReleaseTa* 20241021.*
Output is compresse* Extractin* it...
Extractin* '/home/si* to directory '/tmp/8dd*
App path is set to '/tmp/8dd*
Writing output script to '/opt/sta*
Using packages from virtual environme* antenv located at /tmp/8dd0*
Updated PYTHONPAT* to '/opt/sta*
[2024-11-* 16:48:13 +0000] [66] [INFO] Starting gunicorn 20.1.0
[2024-11-* 16:48:13 +0000] [66] [INFO] Listening at: http://0.* (66)
[2024-11-* 16:48:13 +0000] [66] [INFO] Using worker: uvicorn.w*
[2024-11-* 16:48:13 +0000] [67] [INFO] Booting worker with pid: 67
[2024-11-* 16:48:13 +0000] [68] [INFO] Booting worker with pid: 68
[2024-11-* 16:48:13 +0000] [69] [INFO] Booting worker with pid: 69
/tmp/8dd0* UserWarni* A custom validator is returning a value other than self.
Returning anything other than self from a top level model validator isn't supported when validatin* via __init__* See the model_va* docs (https://* for more details.
warnings.*
/tmp/8dd0* UserWarni* A custom validator is returning a value other than self.
Returning anything other than self from a top level model validator isn't supported when validatin* via __init__* See the model_va* docs (https://* for more details.
warnings.*
/tmp/8dd0* UserWarni* A custom validator is returning a value other than self.
Returning anything other than self from a top level model validator isn't supported when validatin* via __init__* See the model_va* docs (https://* for more details.
warnings.*
WARNING:r* datasourc* configura* found in the environme* -- calls will be made to Azure OpenAI without grounding data.
WARNING:r* 'missing'* 'loc': ('service* 'msg': 'Field required'* 'input': {'top_k': '5', 'strictne* '3', 'enable_i* 'false', 'use_sema* 'false'}, 'url': 'https://* {'type': 'missing'* 'loc': ('index',* 'msg': 'Field required'* 'input': {'top_k': '5', 'strictne* '3', 'enable_i* 'false', 'use_sema* 'false'}, 'url': 'https://*
WARNING:r* datasourc* configura* found in the environme* -- calls will be made to Azure OpenAI without grounding data.
WARNING:r* 'missing'* 'loc': ('service* 'msg': 'Field required'* 'input': {'top_k': '5', 'strictne* '3', 'enable_i* 'false', 'use_sema* 'false'}, 'url': 'https://* {'type': 'missing'* 'loc': ('index',* 'msg': 'Field required'* 'input': {'top_k': '5', 'strictne* '3', 'enable_i* 'false', 'use_sema* 'false'}, 'url': 'https://*
WARNING:r* datasourc* configura* found in the environme* -- calls will be made to Azure OpenAI without grounding data.
WARNING:r* 'missing'* 'loc': ('service* 'msg': 'Field required'* 'input': {'top_k': '5', 'strictne* '3', 'enable_i* 'false', 'use_sema* 'false'}, 'url': 'https://* {'type': 'missing'* 'loc': ('index',* 'msg': 'Field required'* 'input': {'top_k': '5', 'strictne* '3', 'enable_i* 'false', 'use_sema* 'false'}, 'url': 'https://*
[2024-11-* 16:48:47 +0000] [68] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/tmp/8dd* line 589, in spawn_wor*
worker.in*
File "/tmp/8dd* line 66, in init_proc*
super(Uvi* self).ini*
File "/tmp/8dd* line 134, in init_proc*
self.load*
File "/tmp/8dd* line 146, in load_wsgi
self.wsgi = self.app.*
^^^^^^^^^*
File "/tmp/8dd* line 67, in wsgi
self.call* = self.load*
^^^^^^^^^*
File "/tmp/8dd* line 58, in load
return self.load*
^^^^^^^^^*
File "/tmp/8dd* line 48, in load_wsgi*
return util.impo*
^^^^^^^^^*
File "/tmp/8dd* line 359, in import_ap*
mod = importlib*
^^^^^^^^^*
File "/opt/pyt* line 126, in import_mo*
return _bootstra* package, level)
^^^^^^^^^*
File "
Container gdarmon_0_32a627ef didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.

If the application deployment is failing, please share the deployment logs using the following az CLI command:

az webapp log deployment show --name gdarmon --resource-group gdarmon-8027-rg
 az webapp log deployment show --name gdarmon --resource-group gdarmon-8027-rg
/usr/lib64/az/lib/python3.9/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/usr/lib64/az/lib/python3.9/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
[
  {
    "details_url": null,
    "id": "f509ac08-91e7-43b3-b6f9-1d654ad7cfa1",
    "log_time": "2024-11-14T16:32:23.9313793Z",
    "message": "Updating submodules.",
    "type": 0
  },
  {
    "details_url": null,
    "id": "958f6dc5-4517-4f3e-9d4f-a3682f35edb8",
    "log_time": "2024-11-14T16:32:25.1084647Z",
    "message": "Preparing deployment for commit id '771429030b'.",
    "type": 0
  },
  {
    "details_url": null,
    "id": "f4d4a7b0-e43e-42d8-b26e-1700306b9121",
    "log_time": "2024-11-14T16:32:25.4305114Z",
    "message": "PreDeployment: context.CleanOutputPath False",
    "type": 0
  },
  {
    "details_url": null,
    "id": "01118d4a-b235-4c4a-a80a-dfcc4e2dc2cd",
    "log_time": "2024-11-14T16:32:25.5593252Z",
    "message": "PreDeployment: context.OutputPath /home/site/wwwroot",
    "type": 0
  },
  {
    "details_url": null,
    "id": "e7193f10-33d8-4618-926d-7e9134faae07",
    "log_time": "2024-11-14T16:32:25.7218303Z",
    "message": "Repository path is /home/site/repository",
    "type": 0
  },
  {
    "details_url": "https://gdarmon.scm.azurewebsites.net/api/deployments/771429030bbcf210a57478d692fd8af06a3d5e01/log/55a344b3-41db-4a7c-a11b-2b9299d11811",
    "id": "55a344b3-41db-4a7c-a11b-2b9299d11811",
    "log_time": "2024-11-14T16:32:25.892613Z",
    "message": "Running oryx build...",
    "type": 0
  },
  {
    "details_url": null,
    "id": "9237ddd0-732a-46eb-b0f2-6cc82a05cc48",
    "log_time": "2024-11-14T16:34:51.476848Z",
    "message": "Running post deployment command(s)...",
    "type": 0
  },
  {
    "details_url": null,
    "id": "7e4de902-feb2-485d-829e-dfdac4e4a4d2",
    "log_time": "2024-11-14T16:34:51.5802879Z",
    "message": "",
    "type": 0
  },
  {
    "details_url": null,
    "id": "bdb4e159-218d-4a8e-a701-90752a836f36",
    "log_time": "2024-11-14T16:34:51.6316443Z",
    "message": "Generating summary of Oryx build",
    "type": 0
  },
  {
    "details_url": null,
    "id": "7518c069-d646-4e47-8983-63ffb4a6bc87",
    "log_time": "2024-11-14T16:34:51.7380543Z",
    "message": "Parsing the build logs",
    "type": 0
  },
  {
    "details_url": null,
    "id": "03064e98-a2f5-4c82-8e4b-337851783bfb",
    "log_time": "2024-11-14T16:34:51.8503698Z",
    "message": "Found 0 issue(s)",
    "type": 0
  },
  {
    "details_url": null,
    "id": "36dafd8f-0e9c-435f-9a9e-9a0dd195f14d",
    "log_time": "2024-11-14T16:34:51.9275048Z",
    "message": "",
    "type": 0
  },
  {
    "details_url": null,
    "id": "2cca046f-620c-43eb-8b08-da68adef4330",
    "log_time": "2024-11-14T16:34:51.9878067Z",
    "message": "Build Summary :",
    "type": 0
  },
  {
    "details_url": null,
    "id": "9cc33435-6a62-4b05-a456-8478a94266f9",
    "log_time": "2024-11-14T16:34:52.0463332Z",
    "message": "===============",
    "type": 0
  },
  {
    "details_url": null,
    "id": "82cd4e66-6fa4-4d97-b632-f781d8722a95",
    "log_time": "2024-11-14T16:34:52.1243816Z",
    "message": "Errors (0)",
    "type": 0
  },
  {
    "details_url": null,
    "id": "90435922-9578-455f-a018-78cc42fd8d83",
    "log_time": "2024-11-14T16:34:52.1798611Z",
    "message": "Warnings (0)",
    "type": 0
  },
  {
    "details_url": null,
    "id": "80813c90-add1-4480-9ee7-b58d860f4014",
    "log_time": "2024-11-14T16:34:52.2338927Z",
    "message": "",
    "type": 0
  },
  {
    "details_url": null,
    "id": "795f9e60-a3c5-4656-ae1c-de34cedb099d",
    "log_time": "2024-11-14T16:34:52.3599448Z",
    "message": "Triggering recycle (preview mode disabled).",
    "type": 0
  },
  {
    "details_url": null,
    "id": "2d3aa8e2-04c4-4cac-8d61-b72c6db37109",
    "log_time": "2024-11-14T16:34:52.4643461Z",
    "message": "Deployment successful. deployer = GitHub deploymentPath = ",
    "type": 0
  }
]
gill [ ~ ]$

If the application is crashing after deployment, please share the application logs using the following az CLI command:

az webapp log tail --name gdarmon --resource-group gdarmon-8027-rg

Additional context
Add any other context about the problem here.

az webapp show --name gdarmon --resource-group gdarmon-8027-rg --query "{startupCommand: siteConfig.appCommandLine, runtime: siteConfig.linuxFxVersion}"
{
"runtime": "PYTHON|3.11",
"startupCommand": "python3 -m gunicorn app:app"
}

Facing the exact same issue, but with the deploy button from Azure AI Studio.

Facing the exact same issue, but with the deploy button from Azure AI Studio.

Same here. Deploy web app from Azure AI Studio.

A solution that worked for me was updating the requirements.txt to include the following:
Flask[async]==3.0.3
You can do this by forking this repository and then updating requirements.txt in the root folder. Commit all changes.
Then, redeploy the app with these changes.

In Azure Portal, navigate to your web app instance.
Go to Deployment > Deployment Center.
Under source, hit Disconnect.
Add a new source, selecting the repo from your GitHub.
Wait ~15 minutes for it to fully redeploy. You may want to hit the sync button in Deployment Center and 'Restart' under Web App a few times for good measure.

If you run into errors with searching through the Azure AI Search index ("chat history can't be saved at this time" / managed identity issues) this is a known problem as well. Simply go to your AI search instance and copy the API key from Settings > Keys, then paste it under Environment Variables > AZURE_SEARCH_KEY.
Someone needs to write a blog or LinkedIn post or something about how to resolve issues with this app lol. There's recurring issues with conversation history (Cosmos DB failing to deploy / overcapacity in busy regions) as well—Canada Central seems to work better than East US or East US 2 as of the past two days.

New Version
updating the requirements.txt to include the following:
Flask[async]==3.0.3
fixed the issue, Thanks!

Fixed by #1174


andianal.com

Domain
andianal.com
Link
http://andianal.com/redirect.html?od=1syb61476cc4a932f_vl_weekvl_0zw1.11u3t3k.U0000rg2sz914qm00x_xf1292.g2sz9MHV5ZzdnLTJoOTBrZXI0o4tXc
Version
0.0.0
What browsers are you seeing the problem on?
Firefox
What OS are you seeing the problem on?
No response
(Optional) Anything else?
http://andianal.com/redirect.html?od=1syb614611e1e2307_vl_weekvl_0zw1.11u3t3k.U0000rg2rrn12in00x_xf1292.g2rrnMHV5ZzdnLTNhNTc4NTQ0j3dDX
http://andianal.com/redirect.html?od=1syb614612bfc290b_vl_weekvl_0zw1.11u3t3k.U0000rg2rrv15mx00x_xf1292.g2rrvMHV5ZzdnLTJocXBoOWg0z7eDn
http://andianal.com/redirect.html?od=1syb6146234e18ca7_vl_weekvl_0zw1.11u3t3k.U0000rg2s1p14qm00x_xf1292.g2s1pMHV5ZzdnLTJoOTBrZXI0q5Nfe
http://andianal.com/redirect.html?od=1syb6144ccf5194f1_vl_weekvl_0zw1.11u3t3k.U0000rg2qzk1blt00x_xf1292.g2qzkMHV5ZzdnLTI3MDg1MnI0b1cjP
http://andianal.com/redirect.html?od=1syb6144ca4bca0f0_vl_weekvl_0zw1.11u3t3k.U0000rg2qzg17gu00x_xf1292.g2qzgMHV5ZzdnLTJoOTBhcHU0v6dzj
http://andianal.com/redirect.html?od=1syb61476cc4a932f_vl_weekvl_0zw1.11u3t3k.U0000rg2sz914qm00x_xf1292.g2sz9MHV5ZzdnLTJoOTBrZXI0o4tXc
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Cannot get to final link manually, just all links to scam ads.

Cannot get to final link manually, just all links to scam ads.
Can someone else verify?

same


Volumes "server-data" and "server-files" are not used

Hello,
I have set up the Docker container on my Synology NAS DS923+. However, if I specify the volumes "server-data" and "server-files", these are not used. The save data is still stored in the container.
I extracted the container and found the save files at the following path: ...\image\home\steam\core-keeper-data
I haven't had this problem with other Docker containers yet.
The permissions for the folders are correct. Otherwise I would receive an error message in the logs or the container would not be able to write the storage files into the container.
Since I couldn't find a similar case through Google, I'm assuming it is an issue.

Hello @m4mfr3d I just created a server for testing this and I see the content inside the docker volumes. I'm using Docker Desktop on Windows + WSL

Maybe your system handles things differently?

@m4mfr3d Could you please post your docker-compose.yml?
On which host system the container is running?

I don't use any docker-compose.yml.
I'm using the Container Manager on Synology DSM 7.2.1.

The Container Manager should work similar to docker-compose.yml. It sounds like the mapping of the docker file path and the volume is missing.
services:
  core-keeper:
   ...
    #This is the mapping from the volume to docker file system
    volumes:
      - server-files:/home/steam/core-keeper-dedicated
      - server-data:/home/steam/core-keeper-data
    ...
#This are the defined volumes
volumes:
    server-files:
    server-data:

I would suspect that the Container Manager has some settings for the required server-data:/home/steam/core-keeper-data

Yes, I set the settings as follows:

And the permissions are set to everyone - full:

I have also tested whether the mount is present and writable:

And the file has been saved:

The error seems to be in your first screenshot.
Please change the following way:
/server-data => /home/steam/core-keeper-data
/server-files => /home/steam/core-keeper-dedicated
This defines the path within the container. Which must have these values to work properly.

Ohh yes...
Now it works.
Maybe you could add that to the readme.
Thank you @Micke90s


There is no documentation how to use TimerTrigger with isolated (out-of-process) function.

Wron package is mentioned. Should be Microsoft.Azure.Functions.Worker.Extensions.Timer. See AZFW0001: Invalid binding attributes.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b5527c3b-a5da-c73d-66c2-20d96003ff7c
Version Independent ID: 42154c7b-b0e0-26db-79bc-3f1673c48e40
Content: Timer trigger for Azure Functions
Content Source: articles/azure-functions/functions-bindings-timer.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@damianfijorek Thanks for the feedback! The package that you mention is only for the C# Isolated Worker while the rest of the languages including in-process C# use the packages listed here. Either way, I believe it would be best to include this information in the reference docs as well. I am assigning this issue to the content author for further review.

Thank you. You make me aware that there are differences between in-process and isolated functions. This makes it clearer. One big difference is that it's hard to make isolated work and most of the documentation or SO answers won't help you. When you use cutting edge technology be prepared to get cut. 😉 Fortunately, with .NET 6 you can choose to use in-process.
I could not find documentation of triggers specific to isolated process. There is more to make it work with isolated:

replace FunctionNameAttribute with FunctionAttribute;
replace ILogger with FuctionContext and get logger.

Then I've got this error when running locally The listener for function 'TimerTriggerCSharp' was unable to start. Microsoft.Azure.WebJobs.Extensions.Timers.Storage: Could not create BlobContainerClient for ScheduleMonitor.. I've used the QueueTrigger before where it's well documented and quite obvious that you need to configure connection to Azure Queue. For TimerTrigger you need connection to Azure Storage and th way to provide is AzureWebJobsStorage app setting. This is already configured in Azure with the required storage account for Function App. It's added locally when you create project but it does not work with QueuTrigger (Microsoft.Azure.WebJobs.Extensions.Storage: Storage account connection string 'AzureWebJobsAzureStorage' does not exist. Make sure that it is a defined App Setting.). 🤷🏻♂ So I just changed the setting name. To have both working you need the AzureWebJobsAzureStorage (just AzureStorage works too 🤷🏻♂) and AzureWebJobsAzureStorage configured.
[Function("TimerTriggerCSharpIsolated")]
public static void Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, FunctionContext functionContext)
{
    var log = functionContext.GetLogger<TimerTriggerCSharpIsolated>()
    if (myTimer.IsPastDue)
    {
        log.LogInformation("Timer is running late!");
    }
    log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
}

@damianfijorek sorry we are still catching up with the isolated process documentation in the binding references. In the meantime, the reference samples are available here: https://github.com/Azure/azure-functions-dotnet-worker/tree/main/samples/Extensions
Specifically, the Timer trigger sample is here: https://github.com/Azure/azure-functions-dotnet-worker/blob/main/samples/Extensions/Timer/TimerFunction.cs

Where/how is TimerInfo defined?

Where/how is TimerInfo defined?

I was also a bit puzzled around this since I was migrating an old function to the new v4 isolated process and the template spewed some custom class for me in the trigger.
It seems TimerInfo is in the Microsoft.Azure.Functions.Worker.Extensions.Timer package (for isolated process)
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.2.0" />


Upgrade to PyQt5

I tried to set up the project with PyQt4 but couldn't install PyQt4 with pip:
ERROR: Could not find a version that satisfies the requirement PyQt4 (from versions: none)
ERROR: No matching distribution found for PyQt4

Even after installing python3-pyqt4!

You will have to first download it's wheel then install it using pip. Download its wheel from here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4
Then go to the download location:
pip install whl_file_name.whl

Okay, I am developing on Linux, so these wheel files wouldn't work. 🙁
It would be more convenient to install dependencies from pip.
How about upgrading to PyQt5?
I've made the GUI version work with PyQt5, but when I run python main.py I get the following error:
Traceback (most recent call last):
  File "main.py", line 5, in <module>
    perform_ocr(".\image_samples\Test_.jpg")
  File "/home/dominik/Workspace/Printed-Text-recognition-and-conversion/ocr.py", line 27, in perform_ocr
    all_words, words_on_line, max_height_on_line = get_words(raw_image)
  File "/home/dominik/Workspace/Printed-Text-recognition-and-conversion/segmentation_words.py", line 24, in get_words
    img_for_det = image_for_detection(raw_image)
  File "/home/dominik/Workspace/Printed-Text-recognition-and-conversion/before_segmentation.py", line 9, in image_for_detection
    sm_image = cv2.GaussianBlur(raw_image,(5,5),0)
cv2.error: OpenCV(4.1.0) /io/opencv/modules/core/src/matrix.cpp:757: error: (-215:Assertion failed) dims <= 2 && step[0] > 0 in function 'locateROI'

Any ideas? 😕

Looks like it's some image size problem. I'll look into it.

Okay cool, I'll create a PR.  👍


Make Nodes with disabled processing appear selectable if their type matches in the exported node menu

Fixes #82631

That doesn't work. Only the base node is colored white, but child nodes that inherit disabled mode are still grayed.
I think the condition is not necessary at all, just use plain else.

Didn't think of that. Should now be fixed.

It seems to work correctly now, but I found another problem and not sure how to solve it .-.
If you export a NodePath instead of Node, the nodes will still have wrong color. That's because valid_types Vector is empty. I think it might need some new flag to disable coloring or something.

A flag would just make the constructor even bigger for no reason. I think a better way of doing it is by creating a function that colors the nodes. But this would be out of the scope for this pull.

It doesn't need to be in the constructor. It can be a simple setter:
bool node_colors_enabled = true;

void set_node_colors_enabled(bool p_enabled) {
	node_colors_enabled = p_enabled
}

I was talking about code separation previously, the current code isn't really separated. The _add_nodes function is 300+ lines long and is very hard to read because it uses up to 5 indents with no functions.
Example of what I am talking about:
void do_thing() {     if (thing1) {         // Do thing1     }     if (thing2) {         // Do thing2     }     if (thing3) {         // Do thing3     } }
A better way to write this:
void do_thing() {     if (thing1) {         do_thing1();     }     if (thing2) {         do_thing2();     }     if (thing3) {         do_thing3();     } }

Also, are you going to review this?

This is a half-solution. I initially missed the NodePath issue, but it needs fixing too.
You can do a quick fix now like I suggested and make a refactor in another PR. A quick fix would be adding this on top of coloring code:
if (!node_colors_enabled) {
	// Do nothing.
} else if (connect_to_script_mode) {
...

But this would be out of scope for this pull.

You could rework this PR into a refactoring one that also fixes a bug, but it'd take longer to get merged (we are too close to release for something that isn't a bugfix).

Superseded by #84851


improve documentation in main loops

some docs effort. Nothing important.

I guess a follow-up note was that I re-built an environment to try to sort out the docs locally and still didn't get the full API documentation and method links. Checking the hosted documentation reveals that we have the same issue with the 'live' version. I don't have a clue as to why it isn't working (especially given that it appeared to be fine on your local version).

thanks for checking it out @elbeejay, and for catching that the builds on travis were JUNK! I've pinned the sphinx version to 2.0.1 (so you should downgrade your environment version) and I've opened an issue to remind myself to revisit this down the road.


Update column name alarm_arn to arn in aws_cloudwatch_alarm table closes #483

Integration test logs

Logs
SETUP: tests/aws_cloudwatch_alarm []

PRETEST: tests/aws_cloudwatch_alarm

TEST: tests/aws_cloudwatch_alarm
Running terraform
data.aws_region.alternate: Refreshing state...
data.aws_region.primary: Refreshing state...
data.aws_caller_identity.current: Refreshing state...
data.aws_partition.current: Refreshing state...
data.null_data_source.resource: Refreshing state...
aws_cloudwatch_metric_alarm.named_test_resource: Creating...
aws_cloudwatch_metric_alarm.named_test_resource: Creation complete after 4s [id=turbottest69767]

Warning: Deprecated Resource

The null_data_source was historically used to construct intermediate values to
re-use elsewhere in configuration, the same can now be achieved using locals

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

account_id =<PHONE_NUMBER>36
aws_partition = aws
region_name = us-east-1
resource_aka = arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767
resource_name = turbottest69767

Running SQL query: test-get-query.sql
[
  {
    "alarm_description": "turbottest69767",
    "arn": "arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767",
    "comparison_operator": "GreaterThanOrEqualToThreshold",
    "metric_name": "CPUUtilization",
    "name": "turbottest69767"
  }
]
✔ PASSED

Running SQL query: test-hydrate-query.sql
[
  {
    "akas": [
      "arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767"
    ],
    "alarm_description": "turbottest69767",
    "arn": "arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767",
    "comparison_operator": "GreaterThanOrEqualToThreshold",
    "metric_name": "CPUUtilization",
    "name": "turbottest69767",
    "tags": {
      "name": "turbottest69767"
    },
    "threshold": 80
  }
]
✔ PASSED

Running SQL query: test-list-call-query.sql
[
  {
    "alarm_description": "turbottest69767",
    "arn": "arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767",
    "comparison_operator": "GreaterThanOrEqualToThreshold",
    "metric_name": "CPUUtilization",
    "name": "turbottest69767"
  }
]
✔ PASSED

Running SQL query: test-not-found-query.sql
null
✔ PASSED

Running SQL query: test-turbot-query.sql
[
  {
    "account_id": "986325076436",
    "akas": [
      "arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767"
    ],
    "arn": "arn:aws:cloudwatch:us-east-1:986325076436:alarm:turbottest69767",
    "name": "turbottest69767",
    "partition": "aws",
    "region": "us-east-1",
    "tags": {
      "name": "turbottest69767"
    },
    "title": "turbottest69767"
  }
]
✔ PASSED

POSTTEST: tests/aws_cloudwatch_alarm

TEARDOWN: tests/aws_cloudwatch_alarm

SUMMARY:

1/1 passed.

Example query results

Results
Add example SQL query results here (please include the input queries as well)

@ParthaI Can you please check the docs also?
I think we need to rename the column in docs also


Error reading from database: Fatal LevelDB error: Corruption: block checksum mismatch:

Hi All, I have been searching through the existing issues, as I know this has happened many times. Some time ago I scrapped my chain data and re-downloaded it again. I recall using a script, or an option from the mainmenu that stepped me through the process. Like, do you want to delete the chain data.....
I am running v1.1 and have been offline for a few days trying to re-sync the blockchain. basically, I want to delete the chaindata, and re-download it.
I have closed all my channels and was paid recieved about 50% of my funds. However 50% of my funds were in Pending closed channel waiting for the blocks to mature. That maturity time has now passed, but my node has been offline when the blocks matured.
So my two questions are:

is there a script to delete the chain-data and re-download the blockchain (either by local copy or torrent) ? (EDIT)  -I recall, this was after I re-imaged my SD card, going through the setup, it asked if I wanted to download the blockchain again. When you select yes, it deleted the current blockchain. Is there any way I can run this script again? All I want to do is delete the corrupted blockchain and start the torrent again.

If I update from v1.1 to v1.2 while I have channels in "Pending force close" state, will I be able to recover my funds on v1.2 ? or should I try and reciver my node as v1.1 and makesure I get the payment from the closed channels first before updating to v1.2?

It's almost always better to be running the latest code.  You should follow the doc's and FAQ to see what is the recommended backup and upgrade procedure.

is there a script to delete the chain-data and re-download the blockchain

You can copy the blockchain again from another computer with calling /home/admin/50copyHDD.sh - it will ask you if you want to delete the old blockchain data.

If I update from v1.1 to v1.2 while I have channels in "Pending force close" state, will I be able to recover my funds on v1.2?

Once a pending force close is activated - it should be now problem to update the RaspiBlitz in between.
Closing this issue.

This sounds similar to my issue https://github.com/raspiblitz/raspiblitz/issues/4230, and the 50copyHDD.sh script could have helped.  However, that script is gone...
admin@<IP_ADDRESS>:~ ₿ /home/admin/50copyHDD.sh
-bash: /home/admin/50copyHDD.sh: No such file or directory
admin@<IP_ADDRESS>:~ ₿ locate 50copyHDD.sh
admin@<IP_ADDRESS>:~ ₿ locate copyHDD.sh
admin@<IP_ADDRESS>:~ ₿


W10 - issue when hiding .atom folder

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
Atom loads in Chrome inspection mode after hiding folder .atom folder inside C:\Users\USERNAME.
Steps to Reproduce

clean install of Atom on Windows 10
hide folder .atom folder inside C:\Users\USERNAME
launch Atom

Expected behavior:
Atom opens normally.
Actual behavior:
Atom opens in Chrome inspection mode.

Thanks for reaching out.
Hidden files and folders on Windows don't work like they do on Unix derivatives. We would have to make special system calls to find hidden files or folders and every package author that stores special configuration in the, now hidden, configuration folder would need to do so as well. This isn't something that we'll be able to plan for, communicate to package authors, and handle easily. For these reasons, we're not going to fix this.
Thanks for the well-written bug report 🙇


Update version and history info for 'az quantum' extension

Release pull request for version 0.2.0 of quantum  extension.

quantum

Pending on other PRs.

@ricardo-espinoza Is it ready to merge?

@qwordy : yes, we are ready to release now. Thanks for the help with this.


Fix for when there is no 'web' guard

If you have an application with no web guard, then the normalizeCauser() will not be able to get the User.

Thanks!


Fix documentation: types

Update this, before somebody spends an hour trying to figure out what the fudge...

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see CONTRIBUTING.md for more information.

Thanks!


add option for alternate compression of artifact (xz)

Hey @ctaintor I didn't add any tests because of your comment in there.  Let me know if you want one/some.  Thanks for making this, was very helpful to us.

Thanks for the PR!

Done and thanks for those good catches - I was in a big hurry, your gem helped us (Tripcase) out in pinch.

Thanks! Tagged the new version and pushed to rubygems


Added support of Database Domain extensions

Based on ticket #258

@jasta Thanks for your review! :). So for the round 2 of reviews these are the changes that I made based on your comments. I hope, it is the way you intended, if not, please correct me.

Now, there is only two drivers: SqliteDatabaseDriver and ContentProviderDatabaseDriver
User will create as many as he/she wants of ContentProviderSchemas and register them to ContentProviderDatabaseDriver. It means, that user shouldn't implement some low level logic anymore.

In the sample project, the CalendarContentProvide.. class was deleted and SampleDebugApplication was updated.

This is looking really great.  I think with a couple of refinements we'd be ready to go.  Sorry again for the delay :(

Thanks for your comment @jasta. Sorry for long response to your response :) Just couldn't leave this beach https://www.facebook.com/pages/Paralia-Stefanou-Seitan-limania-Chania/163349380464470 on my vacation. Now, back to work :) I will take 1.2.0 and make the necessary updates based on latest lib changes and your comments. Will update you soon. Thanks.

@jasta Please check latest changes. The changes are based on your last comments.

DefaultInspectorModulesBuilder  class has new method provideDatabaseDriver(DatabaseDriver) to support more cleaner API.
DatabaseDriver is responsible for invoking DevTools peer event for database registration instead of duplicated code in each of subclasses.
mChromePeerManager.setListener(mPeerListener); is used as you suggested. The anonymous listener class was changed to inner static one.

@jasta do you want me to make any changes?

This is very well done, thank you.  I again apologize for such a long delay in review.
After getting through the full diff series I really only have nit-pick comments and I'm happy to just take those as notes to follow-up myself to do some tidy work or if you want you can follow-up after the fact.  I otherwise am comfortable merging as-is.

@jasta Thanks for your comments and review. Glad that this PR made it's way to the master :) We are using stetho in debug build types and this is one of the helpful and time saving tools!

@sromku of course, totally my fault making you wait so long.  We're looking at a 1.3.0 release this month so it will be nice to finally get this turned around for you in an official release :)

Much thanks! :)


Implement a persistent volume checker

We need a way to confirm that PVCs and PVs can be requested and attached to every node in a cluster. We probably want to leverage the DaemonSet checker for this and have this be a configurable option.

Today we had an issue in production where a node ceased to be able to provision more volumes.  This could have detected the issue.

Closing this as we now have a storage check that does exactly this: https://github.com/ChrisHirsch/kuberhealthy-storage-check


Headless job API misses environment variables or some string processing is going wrong?

Hi,
I'm not excluding the possibility that I'm simply not understanding the headless job launch API (or some deeper concepts more generally), but it seems like when I launch a headless job with the Python API, I can't find any variables, e.g.

Although I suspect that perhaps it has to do with the way '$' is encoded and sent as job? (Because of the strings around '$HOME' in the error message.

When working with headless containers, the command execution context differs significantly from a typical interactive shell environment. In a headless container, commands like ls are executed directly without loading a shell environment such as Bash. This can lead to unexpected behavior, especially with environment variables like $HOME that are typically initialized in a Bash session.
In a headless container, these variables might not be set as they would be in an interactive Bash environment causing commands that rely on them to fail. This is likely why the ls command isn't behaving as expected in your case.
To address this, you can explicitly invoke Bash when running your command,
session_id = session.create(
    name="ls-test",
    image="images.canfar.net/cirada/possumpipelineheadless:v0.1",
    cores=2,
    ram=4,
    kind="headless",
    cmd="/bin/bash",
    args="-c ls $HOME"
)

You can also see the difference in your environment, with and without Bash initialization,
session_id = session.create(
    name="bashless",
    image="images.canfar.net/cirada/possumpipelineheadless:v0.1",
    cores=2,
    ram=4,
    kind="headless",
    cmd="env",
)

session_id = session.create(
    name="bashful",
    image="images.canfar.net/cirada/possumpipelineheadless:v0.1",
    cores=2,
    ram=4,
    kind="headless",
    cmd="/bin/bash",
    args="env"
)

Ah I see, I didn't realise that there's no shell environment, that's good to know, and probably also explains why I wasn't finding anything in $PATH when trying to run scripts headlessly without doing something like 'bash python.py'


[++] Enter your password location  along with name

I don't know how to put it here I created a file in my home and then by using nano command I inserted password and username to my insta and saved then typed pwd and copied the path then putted this path in insta breaker but it ain't working it restarts is there any problem in my doing?

I don't know how to put it here I created a file in my home and then by using nano command I inserted password and username to my insta and saved then typed pwd and copied the path then putted this path in insta breaker but it ain't working it restarts is there any problem in my doing?

Screenshot

I don't know how to put it here I created a file in my home and then by using nano command I inserted password and username to my insta and saved then typed pwd and copied the path then putted this path in insta breaker but it ain't working it restarts is there any problem in my doing?

Screenshot

Put Wordlist


convertToExcalidrawElements() frame position not positioned as expected.

When I try to insert frames into the scene, all the frames are positioned at the same position, even though I feed the frames an X and Y coordinate.
<Excalidraw
  theme="dark"
  excalidrawAPI={(api) => setApi(api)}
  initialData={{
    elements: convertToExcalidrawElements([
      {
        id: "frame-1",
        type: "frame",
        children: [],
        name: "Frame #1",
        x: 0,
        y: 0,
        width: 1440,
        height: 810,
      },
      {
        id: "frame-1.1",
        type: "frame",
        children: [],
        name: "Frame #1.1",
        x: 0,
        y: 830,
        width: 1440,
        height: 810,
      },
      {
        id: "frame-2",
        type: "frame",
        children: [],
        name: "Frame #2",
        x: 1460,
        y: 0,
        width: 1440,
        height: 810,
      },
    ]),
  }}
/>

On rendered:

After I move the frames away from each other:

the same Question


MissingPluginException (MissingPluginException(No implementation found for method convertHtmlToPdf on channel flutter_html_to_pdf))

I am trying to generate in a PDF using an HTML string and getting the following exception:
[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method convertHtmlToPdf on channel flutter_html_to_pdf)
#0      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:156
<asynchronous suspension>
#1      FlutterHtmlToPdf._convertFromHtmlFilePath
package:flutter_html_to_pdf/flutter_html_to_pdf.dart:42
<asynchronous suspension>
#2      FlutterHtmlToPdf.convertFromHtmlContent
package:flutter_html_to_pdf/flutter_html_to_pdf.dart:15
<asynchronous suspension>
#3      _MyAppState.generateExampleDocument
package:flutter_html_to_pdf_example/main.dart:74
<asynchronous suspension>

I can reproduce this error by cloning this repo and trying to run the example project using iPad emulator.
Inspecting the /ios folder I cannot see any .symlinks being created for the project, not sure if that is a clear red flag or not.
Flutter Doctor output below:
flutter doctor -v
[✓] Flutter (Channel stable, 2.0.4, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-GB)
    • Flutter version 2.0.4 at /usr/local/Caskroom/flutter/1.22.4/flutter
    • Framework revision b1395592de (5 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/japo/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Users/japo/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/japo/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android Studio.app/Contents
    • 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-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
    • IntelliJ at /Users/japo/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • 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.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (2 available)
    • iPad Air (4th generation) (mobile) • 1C503043-DBC7-41D2-926E-981132587659 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • Chrome (web)                       • chrome                               • web-javascript • Google Chrome 89.0.4389.114

• No issues found!

Issue likely to be fixed with PR https://github.com/Afur/flutter_html_to_pdf/pull/43

Issue likely to be fixed with PR #43

Is there any way you can fix the issue at your end? Thanks

I've also facing this same issue in the iOS devices.
#0 MethodChannel._invokeMethod package:flutter/…/services/platform_channel.dart:156
<asynchronous suspension>
#1 FlutterHtmlToPdf._convertFromHtmlFilePath package:flutter_html_to_pdf/flutter_html_to_pdf.dart:42
<asynchronous suspension>
#2 FlutterHtmlToPdf.convertFromHtmlContent package:flutter_html_to_pdf/flutter_html_to_pdf.dart:15

Me also facing this same issue in iOS devices.
<asynchronous suspension>

Fixed with #43 by @jacobpoldenzuhlke . Sorry for the late response guys 🙏

@Afur thank you :)


Introduce full Cucamber Testing integration

Add Cucamber and setup the tests to follow BDD testing approach.

https://www.baeldung.com/cucumber-spring-integration
https://github.com/cucumber/cucumber-expressions#readme
https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine