ENUM column type on PostgreSQL adapter

Hi,
I'm tryin to migrate some of my projects to Phinx (its great!), but I cannot complete the migration because Phinx don't support ENUM column types on PostgreSQL adapter...
Are there any reason for that, or I'm doing something wrong?
Regards!!

any update here from the team?

Side note: Afaik only few DBs (like MySQL) have enum support.
That is also why CakePHP does not have native support for it, as it is a snowflake kind of thing.
I recommend using integer columns and some low level framework or project PHP abstraction to simulate enums. This is then also DB agostic.

Sure, but in Phinx there are a lot of things only applies for one DB adapter (signedcolumns for some data types in MySQL, timezoneon timestamp data types in PostgreSQL,  etc) so I think "DB agnostic" is not a good reason to don't support some interesting and usefull features (like enum types, in my opinion)

Fair enough
Are you able to provide a pull request with your suggested changes?

I'd love to do it, but I'm not sure if I can.
I'll try it...

@bhean Did you manage to do this?

I'm not sure how one would integrate this into Phinx. To use enums in PostgreSQL, you have to do CREATE TYPE identifier AS ENUM ('value1', 'value2', 'value3', ...);
The example they give on their docs is:
CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
CREATE TABLE person (
    name text,
    current_mood mood
);

I'm guessing it'd be something like when in createTable(), loop through all columns and if any are enums, generate the CREATE TYPE statement for it, issue that, and then continue to generating the create table statement, substituting out the 'enum' type for the name we used in the CREATE TYPE (and in changeColumn, if the new type is enum, then do the CREATE TYPE business like above). Would you want an additional option name so that people could name their enums instead of having Phinx auto-generate the name?

@MasterOdin Yes I need it

enums have tricky requirements.
Closing due to lack of activity or out of scope. If there is new interest, please open a PR.

@othercorey can this be re-opened. It's annoying to do, but something phinx should probably support at some point.

Is anyone working on this, because i just hit this today having to support enums in pgsql ?

This is a quick hack for anyone who want to add 'enum' field to a postgresql table.
Use execute method to create enum type and then alter table:
$this->execute("create type foo as enum ('bar1', 'bar2')");
$this->execute('alter table table_name add column foo_column foo');


perf(VectorBundle/FiberwiseLinear): try to speed up again

#12061 regressed this file pretty badly; try to speed it up again
Before these changes, the profiler output on smoothFiberwiseLinear was
simp took 2.01s
tactic execution of Lean.Parser.Tactic.rintro took 103ms
simp took 905ms
simp took 507ms
simp took 1.26s
simp took 1.14s
elaboration took 645ms

after these changes, it is
simp took 534ms
simp took 183ms
simp took 127ms
simp took 421ms
simp took 365ms
elaboration took 350ms

Still not great at all, but deeper fixes require more time and expertise than I currently have.

I cannot recover the link to the post-merge perf. run from speed.lean-lang.org; help with that welcome.

!bench

Do you know why simp only [mem_iUnion] is so slow?

I do not. Understand and fixing this would be nice. Would you like me to add a TODO?

Yes, please. Otherwise LGTM. Thanks!
bors d+

Thanks for the review!
bors r+


Settings: commonly used not interactable by VoiceOver

From @PeterSaathoff-Harshfield
On the left side of the settings screen is a section called "commonly used." This section can't be read or interacted with by VoiceOver. It is reported as, "empty table."

This is just a tree like other trees. Are there other issues or has this been fixed @isidorn?

This works fine now. Just make sure to have Voice Over set to medium verobosity at least.


bug in _scan-job.tpl?

Hi, I ran into an issue where I could not install datree using fluxcd. I got this error:
Helm install failed: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:
  line 42: mapping key "seccompProfile" already defined at line 40

This seems to be caused by scan-job.tpl which defines seccompProfile at line 67, but just before it loads values.yaml which also includes seccompProfile. It might be a bug in fluxcd helm-controller. I was able to workaround it by defining seccompProfile: null in my values config.

Hi there @corbosman,
I noticed that you configured the HelmRepository in the datree namespace, but in the HelmRelease, you pulled it from the flux-system namespace. Additionally, you configured the HelmRelease in the flux-system namespace. Can you please explain why you did this? Is it possible that you accidentally configured some of the namespaces incorrectly?
I have updated the resources to use the datree namespace. Please try installing the chart using the following resources and let me know if it works.
kind: HelmRelease
metadata:
  name: admission-webhook-hr-datree
  namespace: datree
spec:
  releaseName: datree-webhook
  targetNamespace: datree
  chart:
    spec:
      chart: datree-admission-webhook
      sourceRef:
        kind: HelmRepository
        name: admission-webhook-datree
        namespace: datree
  interval: 5m
  install:
    remediation:
      retries: 3
  values:
    datree:
      token: "69e5e797-7554-4a43-bbd7-d973a959afc9"
      clusterName: "minikube"
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: admission-webhook-datree
  namespace: datree
spec:
  interval: 30m
  url: https://datreeio.github.io/admission-webhook-datree

That makes no difference, I put all "flux" resources in the flux-system namespace. But I could also put it in datree namespace.  It's kinda arbitrary. It's probably better to put the release in the datree namespace.
targetNamespace: datree
That makes sure the app itself gets installed in datree namespace. And this works fine, im running datree right now using the workaround. It could very well be that the actual bug is inside the FluxCD Helmcontroller, that it can't handle duplicate keys like you're currently creating with seccompProfile.

I attempted to install datree via FluxCD, using the resources configured in the way you specified. However, the installation failed due to the following error: "failed to get source: HelmRepository.source.toolkit.fluxcd.io "datree-webhook" not found". This occurred both with and without the seccompProfile. However, after updating the resources with the correct namespaces, everything worked fine.
It's possible that FluxCD has an issue with duplicate keys in the helm chart, as discussed here. However, this shouldn't affect the datree helm chart. Can you explain why you believe the seccompProfile is duplicated?

From _scan_job.tpl:
          securityContext:
            {{- with .Values.securityContext }}
            {{ toYaml . | nindent 12 }}
            {{- end }}
            seccompProfile:
              type: RuntimeDefault
              ```

  Then from your default values.yaml (which is include above I guess?)

securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 25000
capabilities:
drop: [ "ALL" ]
seccompProfile:
type: RuntimeDefault
```
As you can see, seccompProfile is added twice.


Lifecycle hooks are missing

I am missing the ability to hook into the stream manager and client lifecycle. Client exposes an event handler, but if you use StreamManager it already uses that, making it impossible to respond to state changes. For my purposes I need to respond to:

authentication success, so I can fetch roster, vcards for contacts and a few other app-specific things
authentication failure, so I can prompt for new credentials and retry auth
successful reconnect, so I can update my local state

I've been thinking a little bit about this. I don't think a channel is the right solution here, since it would block xmpp if nothing is listening on the channel. A callback/event approach like you currently have should be a better approach. If we can make this a bit more flexible to allow multiple subscribers and named event types. We can, for example, use https://github.com/kataras/go-events to allow something like this:
client.On("status", func handle(payload …interface{}) {
    status := payload[0].(string)
    fmt.Printf("XMPP client changed state to %v\n", status)
})

client.On("status", func handle(payload …interface{}) {
    status := payload[0].(string)
    if status == "authenticated" {
        RetrieveRoster(client)
    }
}

client.On("reconnect", func handle(…interface{}) {
    fmt.Println("Stream manager is attempting to reconnect")
}

This can also replace StreamManager.PostConnect.

I just noticed StreamManager.PostConnect, which looks very much like a "successful (re)connect and auth" event. That might actually be enough for me at the moment.

@wichert Yes, I confirm that the role of postConnect is to perform the post auth operations.
However, I agree that adding a few more hooks may be nice. I will think about it.

I have already started to find some issues with postConnect: if for some reason the stream restarts, for example because some IQ processing error results in an error, the code I run in postConncect won't notice and happily keeps running. Perhaps one thing that might be useful is to have a per-stream context that is passed to callbacks, and that is cancelled when the stream ends for whatever reason.

Yes, adding the context for cancellation would be handy.


Determine nearest datacenter

Currently, local datacenter is determined by simply selecting the first endpoint from all hosts. This is not only suboptimal, but could even lead to selecting a data center that is not accessible by the client.
In my network I can reach DC1, but cannot reach DC2. This logic selected DC2 as local datacenter even if I only passed DC1 nodes as connection points. As result, all connections to the cluster have failed.
This fix takes the first node from each datacenter, and tries to connect to each of them in parallel. Once the fastest node replies, it selects that datacenter and doesn't wait for other connections.
As the connections are executed in parallel, this solution has a minimal performance impact (according to my tests 56 ms between a client in Hungary and cluster in France) and is executed only once per session.

I think that it is a good idea and implementation for your needs but I don't see it as part of the built-in policies.
There is a constructor parameter in the policy to manually set the datacenter and this should be used for that. For different deployments, the local datacenter parameter can be set via application configuration.
I think it is a good idea to maintain the policies as is, with the same behaviour as the other DataStax driver.

OK, I was not aware of the fact that I can control the local datacenter via configuration, I will check that option. I agree that the same behavior should be kept among all drivers. I am going to close this pr.
Is there a possibility to fall back to another datacenter, if the current one is down?

Ok, cool.
To use failover to another datacenter, you can use the constructor overload specifying hostsPerRemoteDc parameter.
It won't connect to the hosts located on the remote datacenters until it has to (all other nodes failed), not before, so it would be safe to use a any number there.
//dc hungary is local but if it fails, connect to 5 remote hosts as a max
var policy = new DCAwareRoundRobinPolicy("hungary", 5);

Thanks Jorge, this is very useful!


add a way to do orchestrator -c graceful-master-takeover via GUI

It would be nice to be have the possibility of doing a scheduled master switch from the GUI.
Drag and drop a slave on the master position to do a graceful failover (with a big red confirmation prompt) seems to be a good option.

Drag and drop a slave on the master position to do a graceful failover

That's easy to implement, but makes for a UI inconsistency. Since typically when you drag a replica  R onto a server S, you mean to say you want R to replicate from S. Your suggestion that if S happens to be the master, and R happens to be a direct child, then this should translate as graceful takeover.
I think it would be confusing UI-wise. Any thoughts on how to solve it?

Yes that is a good point. I played with the UI a bit and the more intuitive way for me seems to be dragging the slave over to the little dot that is left of the master (the "root" of the tree)
The other option I can think of is adding an option in the config dialog of either the master (e.g. "Demote master") or the slave (e.g. "Promote as master).

the more intuitive way for me seems to be dragging the slave over to the little dot that is left of the master

unfortunately the jQuery draggable/droppable mechanism works by computing the position of the center of the object you drag. It would be near impossible to get to that small dot that is so far t othe left.
I was also thinking like a special, designated rubrik. None that sounds pretty. But who says we have to be pretty about it anyway.

Solved as follows:

if you drag onto the right half of a box's div, operation is interpreted as a relocate.
if you drag on the left half of a box's div, and where relevant, operation is interpreted as graceful-master-takeover or as take-master.
if you drag on the left half of a box's div, and where irrelevant, operation is interpreted as relocate

closed by #329

fixed and released in https://github.com/github/orchestrator/releases/tag/v3.0.3

@ManjotS Thank you. I'll look into it.

@ManjotS doesn't reproduce for me:

Can you please open a new Issue and apply a couple screen snapshots? I'll be closing this Issue.


Set attributes on child Models

I have created a Admin model which is the child of the User Model
class Admin extends User
{
    use \Parental\HasParent;

    protected $fillable = ['contact'];
}

I have a extra attribute for the Admin model called contact and have also created a migration for the same
Schema::create('admins', function (Blueprint $table) {
   $table->bigIncrements('id');
   $table->string('contact');
   $table->timestamps();
});

But when I am trying to insert the attribute, a entry is created in the users table but there is no entry in the admins table. I am not understanding how can I add custom attributes to child models. This is the code I am writing to create a Admin Record
 App\Admin::create([
   'name'=> "Aniket Magadum",
   "email" =><EMAIL_ADDRESS>   "password" => "password",
   "contact" => "8286000000"
 ]);

Hey friends! The team at Tighten has taken Parental back over and we're re-opening the issue tracker, but to give us a clean slate, I'm going to close all old issues that remain from when Caleb closed the issue tracker in 2020. If this is still an outstanding concern with the latest version of Parental, please feel free to open a new issue referencing this one.
Thank you!


Implement copy_to and move_to for S3_File

Pull Request Description

Closes #8833
Tests for copying between S3 and Enso_File will only be added once we implement Enso_File writing.

Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.
[ ] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

I mentioned that the tests are a bit slow (running for almost 3 minutes).
After further analysis of timings of individual methods I don't see any obvious outliers - it's just that every S3 operation seems to take about 0.7s and we do about 200 hundred of those to handle testing all the various edge cases.
We could try re-using existing objects a bit more to make it more efficient, but that could complicate the structure of the tests so much that I'm not sure if it's worth it. After all 3 minutes is not that bad, although not ideal if it means 3 minutes added to every CI run...

I mentioned that the tests are a bit slow...

As a sanity check, I tried using the AWS CLI to compare the performance:

There, an upload took about 1.5s and download about 2.2s. Of course that includes also the whole warmup of the CLI (which IIRC is in Python which does not have horrible startup times). Overall, it seems that the S3 transfers are not terribly fast and I do not think that the 0.7s per operation that we get is in any way 'anomalous' and suggesting we have some issues with our AWS SDK integration / approach.

To better understand the timing of the operations, I temporarily added measurement facilities (a1577dcac4b0c556948331817071972b958c56e4) and checked various operations in the REPL:
> Duration.time_execution <| "abc".write (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt")
read_bucket     01.3754308s     foo.txt
copy_object     00.7509514s     foo.txt -> foo.txt.bak
put_object      00.882127s      foo.txt
>>> (Pair.Value PT3.5453924S (S3_File.Value 'enso-ci-s3-test-stage' 'foo.txt' Nothing))
> Duration.time_execution <| (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt").exists
read_bucket     00.7141655s     foo.txt
>>> (Pair.Value PT0.7232116S True)
> Duration.time_execution <| "abc".write (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt") on_existing_file=Existing_File_Behavior
.Overwrite
put_object      00.8693344s     foo.txt
>>> (Pair.Value PT0.8857875S (S3_File.Value 'enso-ci-s3-test-stage' 'foo.txt' Nothing))
> Duration.time_execution <| "abc".write (S3_File.new "s3://enso-ci-s3-test-stage/foo-new.txt")
read_bucket     00.7033565s     foo-new.txt
put_object      00.8489154s     foo-new.txt
>>> (Pair.Value PT1.5753775S (S3_File.Value 'enso-ci-s3-test-stage' 'foo-new.txt' Nothing))
> Duration.time_execution <| "abc".write (S3_File.new "s3://enso-ci-s3-test-stage/foo-new.txt")
read_bucket     00.7075899s     foo-new.txt
copy_object     00.7284499s     foo-new.txt -> foo-new.txt.bak
put_object      00.8774334s     foo-new.txt
>>> (Pair.Value PT2.3323846S (S3_File.Value 'enso-ci-s3-test-stage' 'foo-new.txt' Nothing))
> Duration.time_execution <| (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt").size
raw_head        00.7136096s     foo.txt
>>> (Pair.Value PT0.7184278S 3)
> Duration.time_execution <| (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt").last_modified_time
raw_head        00.6900763s     foo.txt
>>> (Pair.Value PT0.6991006S 2024-02-15T13:10:30+01:00[Europe/Warsaw])
> Duration.time_execution <| "abc".write (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt") on_existing_file=Existing_File_Behavior.Error
read_bucket     00.7050382s     foo.txt
>>> (Pair.Value PT0.7303273S (Error: (Already_Exists (File_Like.Value (S3_File.Value 'enso-ci-s3-test-stage' 'foo.txt' Nothing)))))
>

We can see that usually a single operation seems to take around 0.7s. Backup (default...) strategy is the worst case because it requires 3 'primitive' operations - exists+copy+upload if the file already exists and 2 if it doesn't (exists+upload). Overwrite is much faster as it just does 1 primitive op: upload without any checks.

I tried using the VisualVM for profiling (well, polyglot sampling to be exact) but tbh I cannot quite interpret the results.

The profile above is generated with operation:
> Duration.time_execution <| "abc".write (S3_File.new "s3://enso-ci-s3-test-stage/foo.txt") on_existing_file=Existing_File_Behavior.Overwrite
put_object      01.4250147s     foo.txt
>>> (Pair.Value PT1.9046111S (S3_File.Value 'enso-ci-s3-test-stage' 'foo.txt' Nothing))

I do not clearly see the polyglot-Java calls there - as on screenshot the tree ends with Request_Body::from_local_file and File_Error.type::handle_java_exceptions - but these call into the Java interop and I cannot see these calls there. But these are the most important calls as I'd like to see the timings of the requests done by AWS SDK.
The timings seem completely off. As we can see the 'wall clock time' measured in Enso for the whole operation was 1.9s and 1.42s for the put_object primitive S3 op being part of it. But the polyglot sampler only shows 613ms of runtime, so only 30% seems to be 'counted'. I imagine this may be due to the fact that the 90% of that 1.42s of upload run-time is spent in the main thread WAITing for the response from AWS, so it is not counted as CPU-time. But this is also time that I'm interested in.

@JaroslavTulach do you see any obvious mistakes I may have made here in the approach to sampling the application? Can I do something to also reasonably measure the wait times and Java-polyglot calls?

As far as I could have measured using the available tools, I think that the ~0.7s per request timings are just due to S3 being slow and requiring long round-trips, and not due to some anomalies in our implementation.
As for the tests taking a lot of time - I guess that is quite expected from tests that need to phone external services and I think we need to think of implementing the strategy that we were considering for additional DB backends - of running these tests on the nightly builds + on-demand on CI only when we modify related logic (e.g. triggered by adding a label to the PR). This way these tests will not clog our main CI process too much.
I don't think we can make the tests less resource intensive, as we just need good coverage to avoid bugs and being more 'frugal' about re-using S3 resources will risk making the tests harder to understand and maintain.

1. I do not clearly see the polyglot-Java calls there -

I believe that's the expected behavior. The thing you call polyglot-Java isn't polyglot from the Polyglot Sampler perspective.


supabase start command fails after upgrading to 0.29.2

Bug report
Describe the bug
After updating to supabase CLI version 0.29.2, when running supabase start I get this error
Error: Error starting database: WARNING:  you need to manually restart any running background workers after this command

I already tried to remove all containers and images with the same result.
To Reproduce
Steps to reproduce the behaviour, please provide code snippets or a repository:

Upgrade to subase cli version 0.29.2
Remove all containers and images with for example docker container prune && docker image prune -a
Run supabase start

Expected behaviour
The service starts without errors.
Screenshots
If applicable, add screenshots to help explain your problem.
System information

OS: macOS Monterey (12.4)
Version of supabase-cli: 0.29.2

Should be fixed now - can you try upgrading to 0.29.3?

Confirmed on my side :+1:

Yes works for me too. Thanks, @soedirgo 🙌


Tile Component for collections

 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.


Subjects in classifications

Address Brian's concerns from #512. Hide set_memebr_subjects entirely.
I'll need to update the cellect_panotpes driver to use only subjects

Merge after #518

@ed - can you rebase? Also what role do the set member subjects play now? Just placeholders for counters? How / when will they get updated?

Rebased. The Set Member Subjects are going to act as a Many-To-Many join table for Subject -> SubjectSet, with two additional columns for the classification count and their active state. The only clients that will need to touch them are ones that want to retire subjects based on some external criteria.

I guess this depends on load testing / usage patterns but I think we should still use the active state on set_member_subjects when loading via cellect to keep the memory footprint smaller across all our cellect nodes.

Also do you want to remove this migration and just keep the schema or leave it and squash it on the next migration?

Yeah I was intending to do that too. I'm redoing the cellect adapter to use ActiveRecord instead of just sql strings, so we can benefit from prepared/cached statements.

Good point I'll squash it.

Nice!

I also need to update the docs.


meteor timing

First of all thank you so much for this tool. It is really nice.
I tested it a few hours. I noticed that the meteor in arcane lands in the last 1< sec and this gives the archon so little window that it will eventually make the meteor fail (will not have archon cd available in time) due to delay/lagg.
I think it should shoot the arcane meteor just a little bit earlier like 2<sec or so.

Fixed with version 1.2.14.
Now enters archon at ~2s arcane.


Consider rename from migen-formal to migen-axi or migen-zynq

It seems like there are currently mutiple efforts to interface Migen and LiteX with AXI + Zynq boards.
It would make this project a lot more findable if it was called something like migen-zynq or migen-axi.
Keep up the great work!

@mithro agreed, maybe migen-axi as Intel SoCs support may be added later on?

migen-axi sounds good to me!

Fixed by 09b5c2ef8327b7ef592d65d8f668f35006d519a5.


WIP: Adding NSTextView

I am currently collecting the changes from the fork of  @accpnt.
Stil WIP. But since the work was already done, we should use it :-).
Kudos to  @accpnt 🎉

Beautiful! Its time for me to set up my go environment again and start hacking on this too!

I have updated the changes, to match the existing sources, I also extended the hello world example see
https://github.com/mojbro/gocoa/blob/add-NSTextView/resources/images/helloworld-screenshot.gif


Update entra-service-limits-include.md

@rolyon
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Archive Node stopped (Mina Berkeley 2.0rumpup4)

Preliminary Checks

[X] This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/MinaProtocol/mina/issues
[X] This issue is not a question, feature request, RFC, or anything other than a bug report. Please post those things in GitHub Discussions: https://github.com/MinaProtocol/mina/discussions

Description
Archive process stopped with error
2023-10-08 06:41:55 UTC [Warn] Error when adding block data to the database, rolling back transaction: $error                                                       error: "Request to <postgres://mina:_@localhost:5432/mina_archive> failed: Connection failure: server closed the connection unexpectedly\n\tThis pro
bably means the server terminated abnormally\n\tbefore or while processing the request.\n Query: \"BEGIN\"."                                                (monitor.ml.Error                                                                                ("Async was unable to add a file descriptor to its table of open file descriptors"                                                                           (file_descr 8)                                                                                (error                                                                                "Attempt to register a file descriptor with Async that Async believes it is already managing.")                                                            (backtrace                                                                                ("Raised by primitive operation at Base__Backtrace.get in file \"src/backtrace.ml\", line 10, characters 2-48"                                               "Called from Async_unix__Raw_scheduler.create_fd in file \"src/raw_scheduler.ml\", line 109, characters 66-84"                                              "Called from Async_unix__Fd.create in file \"src/fd.ml\" (inlined), line 40, characters 2-112"                                                              "Called from Caqti_async.System.Unix.wrap_fd in file \"lib-async/caqti_async.ml\", line 44, characters 15-60"                                               "Called from Caqti_driver_postgresql.Connect_functor.Make_connection_base.reset.(fun) in file \"lib-driver/caqti_driver_postgresql.ml\", line 603, characters 10-56"                                                                                "Called from Async_kernel__Deferred0.bind.(fun) in file \"src/deferred0.ml\", line 54, characters 64-69"                                                    "Called from Async_kernel__Job_queue.run_job in file \"src/job_queue.ml\" (inlined), line 128, characters 2-5"                                              "Called from Async_kernel__Job_queue.run_jobs in file \"src/job_queue.ml\", line 169, characters 6-47"                                                      "Called from Async_kernel__Scheduler1.run_jobs in file \"src/scheduler1.ml\", line 335, characters 8-51"                                                    "Called from Async_kernel__Scheduler.run_cycle.run_jobs in file \"src/scheduler.ml\", line 173, characters 10-30"                                           "Called from Async_kernel__Scheduler.run_cycle in file \"src/scheduler.ml\", line 181, characters 2-12"                                                     "Called from Async_unix__Raw_scheduler.have_lock_do_cycle in file \"src/raw_scheduler.ml\", line 631, characters 4-49"
    "Called from Async_unix__Raw_scheduler.be_the_scheduler.loop in file \"src/raw_scheduler.ml\", line 875, characters 6-16"
    "Called from Async_unix__Raw_scheduler.be_the_scheduler in file \"src/raw_scheduler.ml\", line 879, characters 24-31"
    "Called from Async_command.in_async.(fun) in file \"async_command/src/async_command.ml\", line 75, characters 21-38"
    "Called from Core_kernel__Command.For_unix.run.(fun) in file \"src/command.ml\", line 2453, characters 8-238"
    "Called from Base__Exn.handle_uncaught_aux in file \"src/exn.ml\", line 111, characters 6-10"                                                               "Called from Dune__exe__Archive in file \"src/app/archive/archive.ml\", line 15, characters 6-95"))
...
("Raised at Base__Error.raise in file \"src/error.ml\" (inlined), line 8, characters 14-30"
  "Called from Base__Error.raise_s in file \"src/error.ml\", line 9, characters 19-40"
  "Called from Async_unix__Fd.create in file \"src/fd.ml\" (inlined), line 40, characters 2-112"
  "Called from Caqti_async.System.Unix.wrap_fd in file \"lib-async/caqti_async.ml\", line 44, characters 15-60"
  "Called from Caqti_driver_postgresql.Connect_functor.Make_connection_base.reset.(fun) in file \"lib-driver/caqti_driver_postgresql.ml\", line 603, characters 10-56"
  "Called from Async_kernel__Deferred0.bind.(fun) in file \"src/deferred0.ml\", line 54, characters 64-69"
  "Called from Async_kernel__Job_queue.run_job in file \"src/job_queue.ml\" (inlined), line 128, characters 2-5"
  "Called from Async_kernel__Job_queue.run_jobs in file \"src/job_queue.ml\", line 169, characters 6-47"))

Steps to Reproduce
No steps
Expected Result
null
Actual Result
null
How frequently do you see this issue?
Rarely
What is the impact of this issue on your ability to run a node?
Low
Status
Mina daemon status
-----------------------------------

Max observed block height:              6528
Max observed unvalidated block height:  0
Local uptime:                           12m3s
Chain id:                               3c41383994b87449625df91769dff7b507825c064287d30fada9286f3f1cb15e
Git SHA-1:                              14047c55517cf3587fc9a6ac55c8f7e80a419571
Configuration directory:                /home/olton/.mina-config
Peers:                                  33
User_commands sent:                     0
SNARK worker:                           None
SNARK work fee:                         100000000
Sync status:                            Bootstrap
Block producers running:                0
Coinbase receiver:                      Block producer
Consensus time now:                     epoch=1, slot=4747
Consensus mechanism:                    proof_of_stake
Consensus configuration:
        Delta:                     0
        k:                         290
        Slots per epoch:           7140
        Slot duration:             3m
        Epoch duration:            14d21h
        Chain start timestamp:     2023-09-13 13:01:01.000000Z
        Acceptable network delay:  3m

Addresses and ports:
        External IP:
        Bind IP:        <IP_ADDRESS>
        Libp2p PeerID:  12D3KooWDLNXPq28An4s2QaPZX5ftem1AfaCWuxHHJq97opeWxLy
        Libp2p port:    8302
        Client port:    8301

Metrics:
        block_production_delay:             7 (0 0 0 0 0 0 0)
        transaction_pool_diff_received:     124
        transaction_pool_diff_broadcasted:  0
        transactions_added_to_pool:         0
        transaction_pool_size:              0

Additional information
No response

That error is coming from Postgres.  Do you have Postgres logs to share?

I will see if there is a log, but the archive process should not stop with an error due to temporary loss of connection to the database

the archive process should not stop with an error due to temporary loss of connection to the database

Is there a log from the archive process indicating that it stopped? The poster states that the "archive process stopped", but the log shown above does not indicate that.

@olton Did the archive process actually halt in this case? That wasn't clear to me.

Don't know at the moment, I ran the archive process with pm2 so it would restart on a crash.

Seeing what happens with a local network if the Postgres process is terminated.

Using a local network, the archive process does crash if the Postgresql process has terminated.
The archive process crash shows up as: ```
(monitor.ml.Error
("Async was unable to add a file descriptor to its table of open file descriptors"
(file_descr 21)
(error
"Attempt to register a file descriptor with Async that Async believes it is already managing.")
...
To remedy this, we'd have to catch the failure, and have Caqti establish a new connection once Postgresql is available again.


Fix DXF serialization for near-black colors

I was exporting my jscad designs with color, and everything was working except the color black (also near-black colors since dxf is paletted)
For example:
const { colorize, cssColors } = require('@jscad/modeling').colors
const { cuboid } = require('@jscad/modeling').primitives

function main() {
  return colorize([0, 0, 0], cuboid({}))
}

module.exports = { main }

Load the js directly into jscad and the color works:

But if you export it to a DXF file and then open that DXF file in jscad you see:

Investigation showed that getColorNumber in the serializer was searching from 0 to 255 through the color index. However the deserializer requires that the index be at least 1.
It appears that colorindex 0 was just added as a convenience but was not intended to be used. colorindex 250 is also black [0,0,0] and works when deserialized too. So I just changed the serializer here.
All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Does your submission pass tests?

Note: please do NOT include build files (those generate by the build-xxx commands) with your PR,

Thank you for your help in advance, much appreciated !

@platypii Cool! Thanks for the changes.
Quick question... Given this change, is a more appropriate color index chosen? Did the resulting DXF file have the correct (near) color?

Yes this change results in black colors rendering correctly in the DXF file. It choose palette color 250 which is also black.

It would also be possible to make the deserializer more tolerant by changing the 1 to a zero on this line:
https://github.com/jscad/OpenJSCAD.org/blob/master/packages/io/dxf-deserializer/helpers.js#L54
But I don't know if that's actually dxf format compatible when color index = 0

It would also be possible to make the deserializer more tolerant by changing the 1 to a zero on this line: https://github.com/jscad/OpenJSCAD.org/blob/master/packages/io/dxf-deserializer/helpers.js#L54
But I don't know if that's actually dxf format compatible when color index = 0

If I remember correctly, the zero index is reserved for the block color, or something like that.
So, wouldn’t the ‘default’ color of the viewer be more appropriate? (current case)

If I remember correctly, the zero index is reserved for the block color, or something like that.
So, wouldn’t the ‘default’ color of the viewer be more appropriate? (current case)

Then yes I think that letting zero map to the default color in the deserializer makes sense, and the serializer change in this PR is the right move to fix the color black.


runtime: Not compatible

Go version
go version go1.21.4 windows/amd64
What operating system and processor architecture are you using (go env)?
set GO111MODULE=
set GOARCH=arm64
set GOBIN=
set GOCACHE=C:\Users\luizc\AppData\Local\go-build
set GOENV=C:\Users\luizc\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\luizc\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\luizc\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=C:\Users\luizc\ProjectWorks\Back\Go\Start\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\luizc\AppData\Local\Temp\go-build2615450429=/tmp/go-build -gno-record-gcc-switches

What did you do?
Run the project
What did you expect to see?
One calculating
What did you see instead?
fork/exec C:\Users\luizc\AppData\Local\Temp\go-build1506841787\b001\exe\start.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
In this case, I've already uninstalled Go, disabled the antivirus, checked the environment variables and haven't been able to find why this is happening.

so what version of Windows is this?

I simply can't run my codes in Golang anymore, because of this error

So my system is 64 bits, that's why I find it strange. How could you test it running at 32?

Your GOARCH is arm64, but your GOHOSTARCH is amd64, you need to change GOARCH to amd64.

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Receiving "Speak" directive 2 times for the request "Alexa, how many languages do you speak?"

Briefly summarize your issue:
I am receiving "Speak" directive 2 times for the request "Alexa, how many languages do you speak?"
2018-12-18 09:57:15.967 [  3] I DirectiveSequencer:onDirective:directive={"namespace:"SpeechSynthesizer",name:"Speak",messageId:"4157c687-0aa9-469d-86c0-d870bf545ac8",dialogRequestId:"6b74cdb7-0ea9-4243-8b12-baa0200638f5"}
2018-12-18 09:57:15.968 [  3] I DirectiveSequencer:onDirective:directive={"namespace:"SpeechSynthesizer",name:"Speak",messageId:"aeaf72c4-b74a-4946-bd1e-af99d24d22f9",dialogRequestId:"6b74cdb7-0ea9-4243-8b12-baa0200638f5"}
2018-12-18 09:57:15.968 [  4] I DirectiveRouter:preHandleDirective:messageId=4157c687-0aa9-469d-86c0-d870bf545ac8,action=calling
2018-12-18 09:57:15.968 [  4] I DirectiveRouter:preHandleDirective:messageId=aeaf72c4-b74a-4946-bd1e-af99d24d22f9,action=calling
2018-12-18 09:57:15.968 [  5] I DirectiveRouter:handleDirective:messageId=4157c687-0aa9-469d-86c0-d870bf545ac8,action=calling
What is the expected behavior?
Only one "Speak" directive expected.
What behavior are you observing?
Instead, 2 "Speak" directive is getting received for the request "Alexa how many languages do you speak?" only. The response from AVS is "Sorry, I don't know that one."
For any other request, I am receiving one "Speak" directive which is expected.
Tell us about your environment:

What version of the AVS Device SDK are you using?
  <1.9.0>

Tell us what hardware you're using:

Laptop

Tell us about your OS (Type & version):

Linux

Hello Jigar27,
Thank you for reporting this!
I was not able to reproduce this behavior.  Unfortunately, the logs you provided do not provide enough data for me to find the corresponding service logs.  Can you provide complete DEBUG9 level logs from a session that demonstrates this issue?
Also, from your description it was not clear if the two Speak directives result in any user observable problem - or if this is just not the underlying behavior you expected.  If this does present a problem for users, can you provide more details about how the user experience is degraded?
Thank you,
-SWH

Hi SWH,
I will share the complete debug9 logs in a while.
My observation is strictly related to those requests to which "Speak"
directive comes from the AVS, like "tell me a joke", "how many languages do
you speak?", "how many languages do you support?",etc.
The behavior I see here is, for any request like "how many languages do you
support" to which response like "sorry, I don't know that one" or something
similar response has to be played, I constantly see 2 "Speak" directives
getting handled by DirectiveSequencer. As a result later on, MediaPlayer's
setSource function for attachment is called 2 times once for each Speak
directive.
For the first Speak directive, setSource function gets called and
handlSetAttachmentReaderSource reads SDS and gets 1K data (which we tried
to write in a file, a file contains no voice) and exits.
For the second Speak directive, same sequence will follow. But this time
handleSetAttachmentReaderSource thread reads and exits with intended data
(which we tried to write in a file, a file contains "sorry, I don't know
that")
On Wed, Dec 19, 2018, 6:12 AM swh<EMAIL_ADDRESS>wrote:

Hello Jigar27,
Thank you for reporting this!
I was not able to reproduce this behavior. Unfortunately, the logs you
provided do not provide enough data for me to find the corresponding
service logs. Can you provide complete DEBUG9 level logs from a session
that demonstrates this issue?
Also, from your description it was not clear if the two Speak directives
result in any user observable problem - or if this is just not the
underlying behavior you expected. If this does present a problem for users,
can you provide more details about how the user experience is degraded?
Thank you,
-SWH
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alexa/avs-device-sdk/issues/1133#issuecomment-448426625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKFfRw6n8vzLCFfIh606vFFi6hAwvY9pks5u6YuNgaJpZM4ZYK7b
.

I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error.


Version 2.37.6

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

Please upload report for BASE (main@86ff78b). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1017   +/-   ##
=======================================
  Coverage        ?   89.53%
=======================================
  Files           ?      104
  Lines           ?    17996
  Branches        ?      280
=======================================
  Hits            ?    16113
  Misses          ?     1880
  Partials        ?        3

Flag
Coverage Δ

unittests
89.53% <ø> (?)

unittests-react
88.66% <ø> (?)

unittests-rust
89.67% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Ignore current_instance heap allocation when leak sanitizer is enabled

Without this patch, any user program that enables LeakSanitizer will
see a leak from tcmalloc. Add a weak hook to __lsan_ignore_object,
so that if LeakSanitizer is enabled, the allocation can be ignored.

Thanks a lot for the patch. Can you add some comments on why -U flag is needed on osx but no anywhere else? (I couldn't find it in man page of ld on my GNU/Linux system)

Found this: http://www.manpages.info/macosx/ld.1.html so seemingly makes sense. I don't think you need to bother with adding AM_LDFLAGS to libtcmalloc_la_LDFLAGS. I think AM_LDFLAGS is added automagically.

Yeah, osx errors on undefined symbols by default, so -U is needed when you use weak hooks.

Applied. Thanks.


How to use Views for custom sql statements?

Hi there
Do we perhaps have examples in the js-sdk that addresses how to use Views?
Thank you so much.

There is no special syntax or apis regarding the views since it is treated as read-only collection (aka. has only list/search and getOne() actions).
For SDK examples and docs of the supported actions, you can check the "API Preview" panel of your view collection.


Bug: Options in right click when Cairo set as a shell

When Cairo is set as a shell, right clicking blank space on desktop, second entry opens options.
It does trigger modern control panel, which is unusable when Cairo as a shell.
So no window at all, just icon in taskbar.

I'll hide this item when Cairo is shell.

This is now available in the latest release.


Upstream has released 0.122.0

Could we upgrade please?

Thanks for the nudge. The image should be available in minutes.

Cheers! :rocket:


ContinueAsNew to a different workflow fails

The ContinueAsNew tests that continue with different workflow stubs never stop continuing.

These unit tests are failing:
Test.EndToEnd.Workflow_ContinueAsNew_Stub
Test.EndToEnd.Workflow_ContinueAsNew_StubOptions

These tests are currently disabled.

I'll debug and try to resolve.

So I resolved thew issue with Test.EndToEnd.Workflow_ContinueAsNew_StubOptions.  I added a Workflow field to ContinueAsNewOptions, which allows a user to specify the string name of a workflow they want to execute on restart.  On the cadence-proxy side, this allows us to create the ContinueAsNewError with either the original workflow name a specified one if provided. This is a little more difficult with Test.EndToEnd.Workflow_ContinueAsNew_Stub because without passing the options (unless we want to pass a string workflow param) we have no way of knowing about the new workflow we want to execute upon restart.  So ContinueAsNew with a different workflow might only work if ContinueAsNewOptions are provided.

The generated continue-as-new stubs need to pass the new workflow type name in the options record, creating an options record if necessary.

FIXED


broken source file broke deployed package

I somehow managed to have the source file modified in https://github.com/openspending/os-data-importers/pull/58 end up being a json file instead of .csv as the URL indicates.
I think some time when os-data-importers ran, it then didn't collect useful data and overwrote the package I had deployed to OpenSpending
What would be a sensible way to avoid this? I guess the json was somehow interpreted as pretty bad CSV and assume none of the processors errored out so it thought it's a successful run and did the update.
Is there a way to add some demands like "these fields must be present and not blank" and/or "there must be at least X rows"?

11:54 Brook Elgie @brew
mmm... I'm not sure there's anything you can add at your end to sanity check the input sources before they hit the pipelines. There is post-processing. Let me see where that's applied.
11:55 JD Bothma @jbothma
I guess I can add a custom processor - been meaning to do one for a unique key check
11:56 Brook Elgie @brew
Yeah, the 'post' processing step is actually quite early in the flow. It's part of the first flow for denomalizing the data. Mexico uses a custom processor, so you can use that as an example.


Cant compile model

vulkan devices are available.
cuda devices are not available.
Running on local URL:  http://<IP_ADDRESS>:8080
To create a public link, set share=True in launch().
Found device Radeon RX 580 Series. Using target triple rdna2-unknown-windows.
Tuned models are currently not supported for this setting.
torch\jit_check.py:172: UserWarning: The TorchScript type system doesn't support instance-level annotations on empty non-base types in __init__. Instead, either 1) use a type annotation in the class body, or 2) wrap the type in torch.jit.Attribute.
warnings.warn("The TorchScript type system doesn't support "
loading existing vmfb from: A:\Downloads\Programs\shark\euler_scale_model_input_1_512_512fp16.vmfb
loading existing vmfb from: A:\Downloads\Programs\shark\euler_step_1_512_512fp16.vmfb
Diffusers' checkpoint will be identified here :  A:/Downloads/Programs/shark/models/model
Loading diffusers' pipeline from original stable diffusion checkpoint
Traceback (most recent call last):
File "gradio\routes.py", line 374, in run_predict
File "gradio\blocks.py", line 1017, in process_api
File "gradio\blocks.py", line 835, in call_function
File "anyio\to_thread.py", line 31, in run_sync
File "anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
File "anyio_backends_asyncio.py", line 867, in run
File "apps\stable_diffusion\scripts\txt2img.py", line 116, in txt2img_inf
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 223, in from_pretrained
File "apps\stable_diffusion\src\models\model_wrappers.py", line 340, in call
File "apps\stable_diffusion\src\utils\utils.py", line 441, in preprocessCKPT
File "diffusers\pipelines\stable_diffusion\convert_from_ckpt.py", line 976, in load_pipeline_from_original_stable_diffusion_ckpt
File "torch\serialization.py", line 810, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "torch\serialization.py", line 1173, in _load
result = unpickler.load()
^^^^^^^^^^^^^^^^
File "torch\serialization.py", line 1166, in find_class
return super().find_class(mod_name, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pytorch_lightning'
Found device Radeon RX 580 Series. Using target triple rdna2-unknown-windows.
Using tuned models for Linaqruf/anything-v3.0/fp16/vulkan://00000000-0100-0000-0000-000000000000.
Downloading (…)cheduler_config.json: 100%|█████████████████████████████████████████████| 341/341 [00:00<00:00, 173kB/s]
loading existing vmfb from: A:\Downloads\Programs\shark\euler_scale_model_input_1_512_512fp16.vmfb
loading existing vmfb from: A:\Downloads\Programs\shark\euler_step_1_512_512fp16.vmfb
Inferring base model configuration.
Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:
pip install accelerate

.
Downloading (…)_pytorch_model.bin";: 100%|████████████████████████████████████████| 3.44G/3.44G [52:17<00:00, 1.10MB/s]
Downloading (…)ain/unet/config.json: 100%|█████████████████████████████████████████████| 901/901 [00:00<00:00, 899kB/s]
Retrying with a different base model configuration
Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:
pip install accelerate

.
torch\fx\node.py:250: UserWarning: Trying to prepend a node to itself. This behavior has no effect on the graph.
warnings.warn("Trying to prepend a node to itself. This behavior has no effect on the graph.")
Loading Winograd config file from  C:\Users\abtahi.local/shark_tank/configs/unet_winograd_vulkan.json
Retrying with a different base model configuration
Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:
pip install accelerate

.
Retrying with a different base model configuration
Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:
pip install accelerate

.
Retrying with a different base model configuration
Traceback (most recent call last):
File "gradio\routes.py", line 374, in run_predict
File "gradio\blocks.py", line 1017, in process_api
File "gradio\blocks.py", line 835, in call_function
File "anyio\to_thread.py", line 31, in run_sync
File "anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
File "anyio_backends_asyncio.py", line 867, in run
File "apps\stable_diffusion\scripts\txt2img.py", line 116, in txt2img_inf
File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 223, in from_pretrained
File "apps\stable_diffusion\src\models\model_wrappers.py", line 383, in call

Looks like similar issue to https://github.com/nod-ai/SHARK/issues/1042. Can you try to set the local shark tank to another directory with --local_tank_cache= flag?

Okay i'll try that

It worked! Thanks for the help!

Glad it works! Close the issue.


refactor: use aqua for nfpm

doesn't seem this one works:
mise  main ❯ m x aqua:nfpm -- nfpm --version
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s
     Running `target/debug/mise x 'aqua:nfpm' -- nfpm --version`
mise WARN  invalid aqua tool: nfpm
mise WARN  failed to resolve toolset: [--runtime] aqua:nfpm@latest: HTTP status client error (404 Not Found) for url (https://mise-versions.jdx.dev/aqua-registry/nfpm/registry.yaml)
Error:
   0: "nfpm" couldn't exec process: No such file or directory

Location:
   src/cli/exec.rs:97

Version:
   2024.11.31-DEBUG macos-arm64 (675a2b0 2024-11-27)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

you can add a test for these by doing this:
nfpm.backends = [...]
nfpm.test = ['nfpm --version', 'nfpm version {{version}}']

oh I just fat fingered it

I added a test for this one, you can run these with mise test-tool nfpm

I added a test for this one, you can run these with mise test-tool nfpm

Thanks for the info :+1:


Issue in creating microservice using Git Bash Command

In Exercise-2>task-1, due to installing the microservice files with Java version 17 resulted with the below mentioned error while running the command ./mvnw clean package to build the microservice project

Referring to the below Microsoft document, tried installing the JDK 17 manually but the issue still persists.
https://github.com/microsoft/azure-spring-cloud-training/tree/master/00-setup-your-environment#prerequisites
Requesting you to help us on this blocker.

When you say "tried", did you succeed? For example, is running "java -version" saying that you use Java 17 or higher? Because that does seem like you're not using Java 17.


Load issue 2

I'm still seeing the load issue. I can reproduce the issue most times, but not consistently every time.
Repro:

Go to this page:
https://main--prisma-cloud-docs-website--hlxsites.hlx.page/prisma/prisma-cloud/en/compute/30-xx/admin-guide?branch=ian-gsheet

In the ToC, expand "Adminstrator's Guide", then expand "Configure".

In the ToC, scroll to the last entry in the "Configure" section, and click on "Permissions".

Notice that the page doesn't load.

Results:
Neither the ToC nor the adoc content load.

Expected results:
Page fully loads
Debug info:
After loading the first page in step 1, this is what I saw in the Developer Tools console:

After loading the "Permissisons" page, this is what I saw in the Developer Tools console:

I was able to reproduce it after a couple of times. Looking into it ...


Add support for partitioned collections

Currently, when trying to query across partitioned collections, the library will error with:
com.microsoft.azure.documentdb.DocumentClientException: Cross partition query is required but disabled. Please set x-ms-documentdb-query-enablecrosspartition to true, specify x-ms-documentdb-partitionkey, or revise your query to avoid this exception.

This is normally set on FeedOptions using
final FeedOptions options = new FeedOptions();
options.setEnableCrossPartitionQuery(true);

but this is not exposed anywhere the user can access it. Presently in the library, FeedOptions is hardcoded here:
https://github.com/Azure/azure-documentdb-hadoop/blob/35a7bde8201d816ee278fea53583ae3f4bf8e341/src/com/microsoft/azure/documentdb/hadoop/DocumentDBInputSplit.java#L159-L160
I'd be happy to implement something like this, it'd likely be a real quick fix, but I'm super new to Hadoop and not sure of the best way to do so.
Do I just add another configuration property that can be passed alongside the other ones?

I have the same issue on a HDInsight Cluster (Windows) with DocumentDB Connector 1.2.0
Caused by: com.microsoft.azure.documentdb.DocumentClientException: Cross partition query is required but disabled. Please set x-ms-documentdb-query-enablecrosspartition to true, specify x-ms-documentdb-partitionkey, or revise your query to avoid this exception.

@habukira @itszakko
We are facing the same issue. Any update on this issue?
Has this library been moved to another repository as there are no commits here since 2016?


Develop

Closing socket before deleting it.

It looks like your reverts were to undo changes to .gitignore. I'd suggest not building from within the source tree at all. If you do there is an ignore already for "build" that you can use as your build directory. CMake promotes building outside the source directory, you can generate your project files from any location.

Hi I'm still new with github, it is indeed a small change. On next contributions I'll pay more attention.

@fdaniel7  What is the GEODE ticket you are working on?

There's no ticket for this as far as I know. I'm fixing this as part of reviewing geode client code

Please open a JIRA and include it in your commit message.
GEODE-1234: blah blah

When connect() is invoked from one of TcpConn::TcpConn the TcpConn object is not created since the exception is thrown from the constructor, so ~TcpConn will not be invoked.

@fdaniel7 please close this PR, thx


Adding new public class (exton) page

Not quite ready yet

I finally got this working.  A broken link in the page causes an error 500.
Also the deployment to the test location doesn't seem to follow all links to the test area.

Hi @chucksuscheck,
Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾
In return for this generous offer we hope you will:

✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
ℹ Don't feel obliged to help, just do what you can if you have the time and the energy.
🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber


8312.3 RabbitMQ: Add GET /api/msg

Shippable/pm#8312
Add GET /api/rabbitmq. Call this from POST /api/initialize. It should, similarily to Vault, get the msg column from systemConfigs.  If it's empty, it should save a stringified JSON object with the default values.  This object should be returned.
Default values:
{
  address: admiralUrl,
  amqpPort: 5672,
  adminPort: 15672,
  username: '',
  password: '',
  isSecure: false,  // amqp/amqps
  isInstalled: false,
  isInitialized: false
}

added GET /api/msg route which also sets defaults


rewrite validation and template rendering

still wip, please don't merge; fix for #46 is still missing

Coding done! This is super meaty, can someone review please? (CC @mmilata @twaugh @jpopelka)
Once reviewed, I'll improve commit msg and should be ready to merge.
Also, @pbabinca can you try the new type of build please? It's named prod without koji.

Sure, I can do it.

Looks good to me!

@mmilata Martin, thanks for review!
@pbabinca here's how you can test it:
set build_type in config to prod-without-koji:
build_type = prod-without-koji

There are three ways how you can initiate the build
1)
original way should work
osbs.create_build(**kwargs)

2)
you can directly ask for the specific build type:
osbs.crete_prod_without_koji_build(<specific args>)

3)
I would prefer this one:
build_request = osbs.osbs_get_build_request()  # return instance of BuildRequest from osbs.build.build_request
build_request.set_params(**kwargs)
osbs.create_build_from_buildrequest(build_request)  # renders the build request and submits the build

rebased and I think this is ready to be merged


Update Readme with Cocoapods installation info

Feel free to merge and/or edit as you wish, but it would be great to have the Cocoapods installation instructions for those who might need it.

Thanks! It's a great idea indeed


perf(linter): jest/prefer-hooks-in-order: rewrite rule to allocate less and iterate fewer times

#6030  👈
main

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

Join @camchenry and the rest of your teammates on  Graphite


Error while trying to install app

While trying to install apps from terminal, I am getting this error:
Error searching remote nuvola: Cant find ref eu.tiliado.NuvolaAppTidal
Any Solution ?

Hello @hanut11. What's your Linux distribution, architecture (32bin/64bit) and Flatpak version (flatpak --version)?

Closing this ticket as there hasn't been any response since May 18th.


Update child theme to use parent's breadcrumb function

The legacy child theme had its own implementation of a breadcrumb function, which was nearly identical to the one in the parent theme.

Parent theme function: https://github.com/MITLibraries/MITlibraries-parent/blob/main/functions.php#L874-L902
Child theme function: https://github.com/MITLibraries/MITLibraries-child/blob/master/functions.php#L47-L75

(The only difference I see is, in the parent theme, there is a $hideParent value being looked up in a custom field. That custom field doesn't seem to exist anymore, and the "shorter breadcrumb" function relies on WordPress categories, like https://github.com/MITLibraries/MITlibraries-parent/blob/main/page.php#L27-L31 ). That get_field call fails silently if the field is not defined, so there's no harm in leaving it in for now. Once we get through bringing in content, we can remove it if the field doesn't surface.
This PR updates the reference to the legacy breadcrumb function, calling instead the parent theme's better_breadcrumb function from that partial. Please note, however, that there are still breadcrumb partials in this theme. The other two partials are not affected by this change.
Relevant ticket(s):

https://mitlibraries.atlassian.net/browse/lm-142

Document any side effects to this change:
This also fixes a bug in the parent theme breadcrumb function, where the wrong variable name is being passed to wp_kses to define allowed markup.
Developer
Secrets

[ ] All new secrets have been added to Pantheon tiers
[ ] Relevant secrets have been updated in Github Actions
[ ] All new secrets documented in README
[x] No new secrets are defined

Documentation

[ ] Project documentation has been updated
[x] No documentation changes are needed

Accessibility

[ ] ANDI or Wave has been run in accordance to
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)

Stakeholder approval

[ ] Stakeholder approval has been confirmed
[x] Stakeholder approval is not needed

Dependencies
NO dependencies are updated
Code Reviewer

[ ] The commit message is clear and follows our guidelines
(not just this pull request message)
[ ] The changes have been verified
[ ] The documentation has been updated or is unnecessary
[ ] New dependencies are appropriate or there were no changes

I've created https://mitlibraries.atlassian.net/browse/LM-198 to return to this function and remove the field reference, if it doesn't surface during content import.


Documentation Updates

It's spring, and our documentation could use a little spring cleaning.
This is a bit of a meta-issue for documentation

[x] Fix readthedocs
[ ] Update AMO references to ATN
[ ] Verify that the API actually works the way the documentation describes
[ ] Verify the docker install process works

Readthedocs is now fixed:
https://thunderbird-addons-server.readthedocs.io/


[BUG] IMX500 examples : 'tuple' object has no attribute 'x'

Please only report one bug per issue!
Describe the bug
Running examples imx500_classification_demo.py and imx500_object_detection_demo.py now return an error for some models.
File "/home/pi/git/picamera2/examples/imx500/imx500_classification_demo.py", line 62, in draw_classification_results
cv2.putText(m.array, "ROI", (b.x + 5, b.y + 15), cv2.FONT_HERSHEY_SIMPLEX,
^^^
AttributeError: 'tuple' object has no attribute 'x'
Aborted
This happens because imx500.get_roi_scaled now returns a tuple, so the code must be adjusted to reflect that change.
To Reproduce
imx500_classification_demo.py --model /usr/share/imx500-models/imx500_network_efficientnetv2_b0.rpk --preserve-aspect-ratio
Expected behaviour
A clear and concise description of what you expected to happen.
Console Output, Screenshots
If applicable, any console output or screenshots that show the problem and associated error messages.
Hardware :
AI Camera, RPi5
Additional context
Add any other context about the problem here.

Thanks for the report. We'll look into it!

Should be fixed now.


Bounding box center

Currently the center() function (for boundingBox) create a new vec3 if it's not provided.
And the function is called many times without arguments, so maybe we should cache it per boundingBox.

Added a deprecated message for caller without result argument


Create a New Repo

Hi HL Labs Governors,
we would like to create a new repo under HL Labs to consolidate the implementation of APIs for hardware-based attestation in a single open-source repo.

GitHub repo to add: https://github.com/hyperledger-labs/one-attestation-api

Associated lab proposal: the original proposal is here https://github.com/hyperledger-labs/hyperledger-labs.github.io/blob/main/labs/archived/fabric-private-chaincode.md although meanwhile FPC has transitioned to Hyperledger https://github.com/hyperledger/fabric-private-chaincode

Lab to be added to: the repo is meant to spin off the attestation API created in/for the Fabric Private Chaincode project, to extend it to support other attestation mechanisms (e.g., SGX DCAP), and to make it available for other projects (e.g., Private Data Objects).

@tkuhrt would this need to be a new lab?

I was wondering that myself, @ryjones. This feels like a new lab.

Hi, I was discussing this with @bvavala and we believe this work has the potential to be indeed a new lab.
As Bruno explained above, this work consolidates the implementation of hardware-based attestation for projects that leverage confidential computings (such as Intel SGX). We plan to use this attestation implementation in the Fabric Private Chaincode project and in the Private Data Object Lab, and enable other Hyperledger projects and other communities to leverage it as well.
Therefore, I suggest that we kick-off the process of a new lab. WDYT?

You should do it!

@bvavala I suggest that we close this issue due to no activity. We can re-open or proceed with the new lab proposal at any time.


paste doesnt seem to like stringify in this context

This compiles fine
extern crate paste;
extern crate libc;

use paste::paste;
use std::ffi::CStr;
use libc::{c_void,c_char,c_int,size_t,ssize_t};

#[macro_export]
macro_rules! testhook {

    (unsafe fn $real_fn:ident ( $($v:ident : $t:ty),* ) -> $r:ty => $hook_fn:ident $body:block) => {
            pub unsafe fn $hook_fn ( $($v : $t),* ) -> $r {
                    println!("{}()", extern crate paste;
                    extern crate libc;

                    use paste::paste;
                    use std::ffi::CStr;
                    use libc::{c_void,c_char,c_int,size_t,ssize_t};

                    #[macro_export]
                    macro_rules! testhook {

                        (unsafe fn $real_fn:ident ( $($v:ident : $t:ty),* ) -> $r:ty => $hook_fn:ident $body:block) => {
                                pub unsafe fn $hook_fn ( $($v : $t),* ) -> $r {
                                        println!("{}()", stringify!($real_fn));
                                        $body
                                }
                        };
                    }

                    testhook! {
                        unsafe fn readlink(path: *const c_char, buf: *mut c_char, bufsiz: size_t) -> ssize_t => my_readlink {
                            println!("readlink({})", CStr::from_ptr(path).to_string_lossy());
                            0
                        }
                    }
                    );
                    $body
            }
    };
}

testhook! {
    unsafe fn readlink(path: *const c_char, buf: *mut c_char, bufsiz: size_t) -> ssize_t => my_readlink {
        println!("readlink({})", CStr::from_ptr(path).to_string_lossy());
        0
    }
}

with paste, fails to compile
extern crate paste;
extern crate libc;

use paste::paste;
use std::ffi::CStr;
use libc::{c_void,c_char,c_int,size_t,ssize_t};

#[macro_export]
macro_rules! testhook {

    (unsafe fn $real_fn:ident ( $($v:ident : $t:ty),* ) -> $r:ty => $hook_fn:ident $body:block) => {
        paste! {
            pub unsafe fn $hook_fn ( $($v : $t),* ) -> $r {
                println!("{}()", stringify!($real_fn));
                $body
            }
        }
    };
}

testhook! {
    unsafe fn readlink(path: *const c_char, buf: *mut c_char, bufsiz: size_t) -> ssize_t => my_readlink {
        println!("readlink({})", CStr::from_ptr(path).to_string_lossy());
        0
    }
}

Errors as below
bash-4.4$ cargo clean ; cargo build
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.39
   Compiling libc v0.2.76
   Compiling paste v1.0.0
   Compiling quote v1.0.7
   Compiling ctor v0.1.15
   Compiling readlink v0.1.0 (/ws/sarvi-sjc/redhook/examples/readlink)
error[E0423]: expected value, found built-in attribute `path`
  --> src/lib.rs:15:17
   |
15 |                   $body
   |                   ^^^^^ not a value
...
21 | / testhook! {
22 | |     unsafe fn readlink(path: *const c_char, buf: *mut c_char, bufsiz: size_t) -> ssize_t => my_readlink {
23 | |         println!("readlink({})", CStr::from_ptr(path).to_string_lossy());
24 | |         0
25 | |     }
26 | | }
   | |_- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

warning: unused imports: `c_int`, `c_void`
 --> src/lib.rs:6:12
  |
6 | use libc::{c_void,c_char,c_int,size_t,ssize_t};
  |            ^^^^^^        ^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0423`.
error: could not compile `readlink`.

To learn more, run the command again with --verbose.
bash-4.4$

Changing stringify!($real_fn) to "something" then compiles fine

This looks like a rustc bug. Putting println!("{:#?}", input) at the beginning of the paste implementation to see what tokens the compiler is passing in as macro input, it shows:
...
                    Ident {
                        ident: "path",
                        span: #0 bytes(456..460),
                    },
...
                                            Ident {
                                                ident: "path",
                                                span: #22 bytes(381..386),
                                            },
...

where the two path tokens have totally different hygiene context (the #0 vs #22) and so do not resolve to each other.
It seems like the bug is with $:block, so you should be able to work around it by not using $:block.
#[macro_export]
macro_rules! testhook {
    (unsafe fn $real_fn:ident ( $($v:ident : $t:ty),* ) -> $r:ty => $hook_fn:ident { $($body:tt)* }) => {
        paste! {
            pub unsafe fn $hook_fn ( $($v : $t),* ) -> $r {
                println!("{}()", stringify!($real_fn));
                $($body)*
            }
        }
    };
}

Thx for the pointer. The problem also happens for
event!(Level::INFO, "{}()", stringify!($real_fn));
where event is macro in the tracing module.
https://github.com/tokio-rs/tracing

Should I create a bug against rustc  ?

Fixed by https://github.com/rust-lang/rust/pull/75800.


Introduce an actions section on the case overview page

https://trello.com/c/P2gn8vwe/1417-grey-action-bar-for-the-cases-landing-page
Description
Part of a design update to cases, this PR adds an actions section to the top of the case overview page with counts of the various case information and quick navigation links to add more. It also introduces a visual warning which is shown when a case does not yet relate to a product.

Checklist:

[ ] Have you documented your changes in the pull request description?
[ ] Does the change present any security considerations?
[ ] Is any gem functionality overloaded? Eg: Devise controller methods being overloaded.
[ ] Has acceptance criteria been tested by a peer?
[ ] Has the CHANGELOG been updated? (If change is worth telling users about.)

General testing (author)

[ ] Test without JavaScript
[ ] Test on small screen

Accessibility testing (author)

[ ] Works keyboard only
[ ] Tested with one screen reader
[ ] Zoom page to 400% - content still visible
[ ] Disable CSS - does content make sense and appear in a logical order?

Codecov Report

Merging #1931 (d60d947) into master (6fc6101) will decrease coverage by 77.43%.
The diff coverage is 50.00%.

@@             Coverage Diff             @@
##           master    #1931       +/-   ##
===========================================
- Coverage   89.29%   11.85%   -77.44%
===========================================
  Files         398      398
  Lines        8749    12300     +3551
  Branches     1281      380      -901
===========================================
- Hits         7812     1458     -6354
- Misses        739    10800    +10061
+ Partials      198       42      -156

Impacted Files
Coverage Δ

app/helpers/investigations/display_text_helper.rb
31.74% <ø> (-42.86%)
:arrow_down:

app/models/investigation.rb
81.30% <50.00%> (-14.89%)
:arrow_down:

app/models/contact.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/models/country.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/models/accident.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/models/incident.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/models/location.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/forms/alert_form.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/forms/comment_form.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

app/forms/sign_in_form.rb
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 324 more

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 6fc6101...d60d947. Read the comment docs.


Write post polybar open collective

This is the blog post announcing that we now have a collective where people can donate to support polybar development.
I will merge this on the 21st

Thanks for the review @TonCherAmi


Update client-side Blazor debugging instructions page to allow for Edge

When you hit Shift-Alt-D in a client-side Blazor app you see a page with instructions for running Chrome with remote debugging enabled so that you can debug your client-side Blazor app in the browser. These same instructions now work with the Chromium based version of Edge, so we should update these instructions to no longer be Chrome specific.

Edge Chromium still reports as  Chrome. so detecting it is unreliable that might not break once edge comes out of dev. The vendor is even still reporting as Google Inc. How about including the instructions for both.   Is this approach is good I will send a pr for it
MonoDebugger.ts
line 29   console.error('Currently, only Chrome Or Edge Dev is supported for debugging.');
BlazorMonoDebugProxyAppBuilderExtensions.cs
line 97 ... Ensure Chrome or Edge Dev is running .....
Windows  lines 147 - 151     Order Because Edge is still in dev
return $@"Close any instance of this browser, then press Win+R and enter the following:
""%programfiles(x86)%\Google\Chrome\Application\chrome.exe"" --remote-debugging-port=9222 {appRootUrl}";
   ""%programfiles(x86)%\Microsoft\Edge Dev\Application\msedge.exe"" --remote-debugging-port=9222 {appRootUrl}";
Linux does not need any changes as there is not edge chromium for Linux.
Mac lines 157 - 161
return $@"Close all Chrome instances, then in a terminal window execute the following:
open /Applications/Google\ Chrome.app --args --remote-debugging-port=9222 {appRootUrl}";
open /Applications/Microsoft\ Edge\ Dev.app --args --remote-debugging-port=9222 {appRootUrl}";


Org files

The app displays org files as if they were markdown, this results in a rather unreadable presentation of them.

If you want this to be fixed, you should report it to the original app https://github.com/jonan/ForkHub. This app is just a copy.

ok, thanks


switch color theme is broken

Hello and thank you for making this theme
it seems the commit afd55736a9ba7b8ed01e111b4ebf4a44dcc8e998 broke something in the theme switcher

when i click on it it stays white , it should switch to the black theme
i have no real skills in html / css and i really do not know where to look at
Regards

i think the answer is here: https://github.com/aaranxu/adidoks/pull/40

I can't reproduce this issue, what browser are you on? Does the devtools console show any errors when you click the button?

hello @ajyoon .
as i previously said the culprit was the commit i mentioned above
everything seems to be working now and i will close this issue.


bug: Problems using example in docs for exposing tRPC procedures externally

Provide environment information
System:
OS: macOS 14.2.1
CPU: (8) arm64 Apple M2
Memory: 97.97 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 10.2.5 - ~/.nvm/versions/node/v20.10.0/bin/npm
ct3aMetadata.initVersion: 7.26.0
Next.js: 14.1.0 (using App Router)
Describe the bug
I've used<EMAIL_ADDRESS>to scaffold a project and am trying to expose certain tRPC procedures externally (so that they can be invoked via Vercel Cron jobs).
Based on the Expose a single procedure externally example, when I create a file called src/app/api/test/[id].ts and include this:
import { type NextApiRequest, type NextApiResponse } from "next";
import { appRouter, createCaller } from "../../../server/api/root";
import { createTRPCContext } from "../../../server/api/trpc";

const userByIdHandler = async (req: NextApiRequest, res: NextApiResponse) => {
  // Create context and caller
  const ctx = await createTRPCContext({ req, res });
  const caller = createCaller(ctx);
  try {
    const { id } = req.query;
    const user = await caller.user.getById(id);
    res.status(200).json(user);
  } catch (cause) {
    if (cause instanceof TRPCError) {
      // An error from tRPC occurred
      const httpCode = getHTTPStatusCodeFromError(cause);
      return res.status(httpCode).json(cause);
    }
    // Another error occurred
    console.error(cause);
    res.status(500).json({ message: "Internal server error" });
  }
};

export default userByIdHandler;

I get 13 TypeScript errors, most significantly:

Module '"../../../server/api/root"' has no exported member 'createCaller'. on line 2, col 21

For this I have confirmed that the path points to src/server/api/root.ts
I have not modified src/server/api/root.ts from the original version and it looks like this - there is indeed no createCaller export:import { postRouter } from "~/server/api/routers/post";
import { createTRPCRouter } from "~/server/api/trpc";

/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here.
*/
export const appRouter = createTRPCRouter({
  post: postRouter,
});

// export type definition of API
export type AppRouter = typeof appRouter;

Object literal may only specify known properties, and 'req' does not exist in type '{ headers: Headers; }'. on line 7, col 41
Cannot find name 'TRPCError'. Did you mean 'RTCError'? on line 14, col 26

This is fixed by importing the error type:import { TRPCError } from '@trpc/server';

Cannot find name 'getHTTPStatusCodeFromError'. on line 16, col 24

This is fixed by importing the helper function:import { getHTTPStatusCodeFromError } from '@trpc/server/http';

Since I've only ever used the Next.js App Router and not the pages router, as a troubleshooting step I've tried scaffolding a new project using pages router, but that also has the same issues.
I've also pored over https://github.com/t3-oss/create-t3-app/issues/1709, https://github.com/t3-oss/create-t3-app/pull/1721, and https://github.com/t3-oss/create-t3-app/pull/1721/commits/c603e65581426890b06b1f678e291066fb7ce61a many times trying to figure out where createCaller() is and createCallerFactory() is implemented.
Reproduction repo
https://codesandbox.io/p/devbox/mn5qf3?file=%2Ftest%2Fsrc%2Fapp%2Fapi%2Ftest%2F[id].ts%3A3%2C10
To reproduce

Open the test/src/app/api/test/[id].ts file in the CodeSandbox devbox.
Wait for the TS server to initialize
Observe the TypeScript errors:

Additional information
I'm not familiar with the internals of create-t3-app or tRPC well enough to know whether this is just a documentation issue, or if there's actually something missing from the create-t3-app template which is intended to be there.

Wouldn't you need to create a route handler instead? https://nextjs.org/docs/app/building-your-application/routing/route-handlers


Builder reactivity broken when using previews

Package
filament/filament
Package Version
v3.2.99
Laravel Version
v11.20.0
Livewire Version
No response
PHP Version
PHP 8.2
Problem description
When using the blockPreviews for Builder the reactivity in the modal form doesn't work once the block is saved.
https://github.com/user-attachments/assets/0fb1a824-7025-4f7e-937e-9d1523ea96d1
Expected behavior
Same as without blockPreviews
Steps to reproduce
See https://github.com/martin-ro/block-builder (UserResource)
or
add this to a from:
Forms\Components\Builder::make('blocks')
                    ->blockPreviews()
                    ->schema([
                        Forms\Components\Builder\Block::make('test')
                            ->preview('components.test')
                            ->schema([
                                Forms\Components\Checkbox::make('is_company')
                                    ->live(),

                                Forms\Components\TextInput::make('company_name')
                                    ->hidden(fn(Forms\Get $get): bool => !$get('is_company'))
                            ])
                    ])

Reproduction repository (issue will be closed if this is not valid)
https://github.com/martin-ro/block-builder
Relevant log output
No response

Donate 💰 to fund this issue

You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
100% of the funding will be distributed between the Filament core team to run all aspects of the project.
Thank you in advance for helping us make maintenance sustainable!

Another observation I just made is that wrapping components in for example a group or fieldset reactivity works inside it. So this is only broken for "top level" components.


support /v1/video/upload API

refs #4

Coverage increased (+10.5%) to 96.703% when pulling 3258cf3db51f7ef730409ddc73d9bd29843e3f53 on bruce-upload into 46e4e4fa5cdaa2f4d79ebdd8ee1b2db656f97a90 on master.

Coverage increased (+10.5%) to 96.703% when pulling 6132b09074d0a67105f8b059c8d69c36307d148e on bruce-upload into 46e4e4fa5cdaa2f4d79ebdd8ee1b2db656f97a90 on master.


fixes #183 invalid canvas transform code

 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.Juergen Bocklage-Ryannel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


PinPoint installation on cluster

hi ,
I want pinpoint install to cluster wise.  I have installation HBase database on 10.x.x.x on linux machine and one collector is running on different ip: 10.x.x.y .
what is step for installed pinpoint on cluster wise

Please ref install document

Leave a comment


[rosdep/base] Add cwiid and cwiid-dev

Added C language version of the Wiimote library.
Both standalone library for running and development
flavor for building from source.
Needed for upstreaming new C implementation of ROS Wiimote node.

Thanks for filling in all the arches.


fix hsds/h5pyd tests

[ ] Closes Issue #xxxx
[ ] Tests added
[ ] Changes are documented in CHANGELOG.rst

@ajelenak I'm having a hard time to find the issue here.
The tests have silently be broken for some months now, as pip installing hsds/h5pyd didn't work due to some dependency issue.
In this PR I'm again using the latest versions from respective main. But our old convtest.py setup does not work anymore. I hope you can spare some time to look into this, as I'm somehow stuck now. Thanks!

Thanks for reporting, I'll take a look.

@ajelenak @jreadey Thanks for the great work over in hsds/h5pyd :100: :1st_place_medal:.
I've brought most of the tests back to work by aligning with the CI setup in hsds/h5pyd. This also simplified the whole test setup for the remote tests, which is really nice!
It would be great if you could have a look into the failing tests, here. There is one test which covers complex numbers, one which checks track_order and two tests where there is an issue with reopening the file. Thanks a bunch!
https://github.com/h5netcdf/h5netcdf/actions/runs/12195688403/job/34021801227?pr=245

I was looking at the track_order failure today.  The track_order argument was added to create_group in h5pyd in the last release, but we don't have support for setting track_order by property list.  I'll look into adding this to h5pyd.
I'll take a look at the file re-open and complex failures.

@jreadey I really appreciate your efforts, here and in #247.
I'm not sure which way of running is more appropriate, the Python app-version via conftest.py  (as of now and #247) or by running hsds completely externally (like here).
I like the current approach (since it's more user friendly wrt test-running) so it would be best to continue the efforts in #247. Anyway, please ping me if I can assist.

I've pushed out a new h5pyd release (v0.20.0) that should fix the track_order issue.  Please re-run the CI tests and let's see how we are doing.

@jreadey Thanks for working on this! I've re-run the CI here and in #247. It turns out that your #247 is better suited for merge as you've already fixed the two roundtrip tests there.
The remaining issue is with the complex data which is returned as:
<HDF5 dataset "data": shape (5,), type "|V16">

with dtype [('r', '<f8'), ('i', '<f8')]
h5py returns this as
<HDF5 dataset "data": shape (5,), type "<c16">

with dtype complex128.
Would it be possible to do the transform from structured array to complex on the h5pyd-side?

That last issue will take some time.  I need to update the type handling in both HSDS and h5pyd to support complex types.  Can we disable this last failure for now?
I've added an issue in h5pyd for complex support: https://github.com/HDFGroup/h5pyd/issues/246.

Sure, let's just skip the test for h5pyd/hands. Thanks @jreadey!


Not working on mac

Sorry for the poor title,
I'm using your crate do enable dynamic loading of modules for my application.
It works fine on linux, tested on a physical gentoo and a docker debian 9.3
On OSX 10.13 High SIerra (haven't tested on other versions) it fails with:
rustegram(4467,0x7fffad81d340) malloc: *** error for object 0x106817040: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

The dylib itself is a Rust written lib, and it passes the tests without problems.

Is this when the program is existing or when does it happen?

Sorry, I've not been clear enough...
It panics as soon as I call dylib's exposed function.
There is no TLS on called dylib, it's simple Rust code using serde_json

The issue with the TLS happens even if you just have simple function on mac that just returns a value really but it should only be a problem when unloading. Also you say the tests passes. Do you think you can try to change your dylib to do something similar to what the test is doing (just returning an i32) and see if you get the same issue.

Ok, i made some tests, those are the function signatures I tested and the results:
pub extern fn test_fun(a: i32) -> i32 OK
pub extern fn test_fun(a; i32) -> serde_json::Value OK
pub extern fn test_fun(a; i32) -> Result<serde_json::Value, String> OK
pub extern fn test_fun(a; &str, b: String) -> Result<serde_json::Value, String> FAIL
pub extern fn test_fun(a; String, b: String) -> Result<serde_json::Value, String> FAIL
pub extern fn test_fun(a; &str, b: &str) -> Result<serde_json::Value, String> OK
It doesn't makes sense to me, but a String parameter is the party stopper.

Are you really sure it's valid to return Rust values in this way in over a dll border? I would guess the problem here is that the String is allocated inside the dll which has a own "copy" of the allocator and then it tries to gets freed on the Rust non-dll side which a pointer that the application knows nothing about.
In my case I have always made sure that the dll makes and owns it's allocations internally and I never return Rust objects directly and only keeping it using a C API.

I don't know, I'm not an expert about dylibs.
If the String object is consumed inside the dll, but the application side still thinks it's owning it, yes, it could explain the problem, and it could explain why the problem doesn't appears with tests...
Thank you for your support, sorry for wasting your time.

Yeah I think the problem is that the function will try to free the string on exit but it's the application that has allocated it.
No problem. I think this is a general problem with sending data to dll functions and it should be unrelated to how dynamic_reload works as it doesn't know what is going on inside the dlls.

Yes, it seems to be OS related, because on linux it was working fine...
Actually I solved passing arguments with &stringvar.clone(), I hope it doesn't create memory leaks

Passing a ref should be fine as it's the sender that owns the memory. I would be very careful with returning Rust objects from the dll tho as it may cause similar issues.


aljs-Datepicker | Provide "onChange" type "onSelect" callback.

It would be a great help for the developers to have a callback similar to onChange for any of the date selection.
Ideally user is selecting a date, so there should be an onSelect callback, which could host some after logic.
Currently onChange get fired only if previously selected date and newly selected date are different.
Due to which code written on the onChange callback didn't execute when user manually clear the date field, and later select the same date from date picker.
Example: While using along with other JS framework, we might need to add watcher on the changed value to keep an eye on the change.
But when user cleared the date field and re-select the previous value, the other JS framework didn't get notification for the change and callback logic fails.
Thanks and Cheers :)

This issue seems to both expose both a bug (technically clearing it out should also call onChange once blurred) and suggest an enhancement. Thanks for this!


Clean up colormap code?

In fixing some bugs with color bars (https://github.com/pydata/xarray/pull/3601), we had to do some clunky workarounds because of limitations of matplotlib's API for modifying colormaps - this prompted a matplotlib issue https://github.com/matplotlib/matplotlib/issues/16296#issuecomment-1629755861. That issue has now been closed, and apparently the limitations are now fixed, so it should be possible to tidy up some of the colorbar code (at least at some point, once the oldest xarray-supported matplotlib includes the new API).
I have no time to look into this myself, but opening this issue to flag the new matplotlib features in case someone is looking at refactoring colorbar or colormap code.

See https://github.com/pydata/xarray/issues/7976

Looks like this is resolved?


LangChainGo Huggingface backend added

Description
Greetings to the authors of the LocalAI project, first of all, thank you very much for this wonderful project!
In the process of using it, I needed to implement a couple of solutions that I want to share with the community. First solution is backend langchain-huggingface.
In details, this PR adds the LangChainGo library to the project and implements a driver for working with the HuggingFace Inference API using it (and other, but this PR implemented only HF LLM). I agree that this PR violates the principle NO Internet access is required either. but maybe for some users like me, this is not critical.
The solution includes an example of use and a small instruction, see the directory examples/langchain-huggingface.
It also disables adding .git folder to final Docker-image and other small tunes of ignore files.
Notes for Reviewers
For testing this PR you need to add into a .env file string like: HUGGINGFACEHUB_API_TOKEN=hf_123456
Token can be generated here https://huggingface.co/settings/tokens
If the PR is approved, in the future I want to use the LangChainGo library to implement the execution of scripts. This will solve the problem with GPU without the need to add it to .cpp binding. Users will simply be able to write their own scripts in Python or any other programming language and just specify the path to them in config.
Signed commits

[x] Yes, I signed my commits.

I'm not totally against it, as it wouldn't really break our promise to not require internet - at the end this backend should be enabled explicitly from the user - however, I'd be afraid to start to include all the possible remote implementation for different providers. On the other hand, I think this is something that the community might find useful, as we have also already a request for OpenAI here: #328 .
Do you have any plans to attach embeddings to it too? or just wiring up at the completion endpoints?

@mudler hi! In my plans add ability to execute binary files or scripts to call more complex or non-typical solutions, but in any case i can implement support of OpenAI API too, it's not too hard, especially with help of LangChainGo package.
(btw my current local solution works with ruGPT-3 models via calls of python scripts in custom Docker-container with CUDA)

@mudler hi! In my plans add ability to execute binary files or scripts to call more complex or non-typical solutions,

I'm not sure if I do follow 100%, but feel free to open up a separate issue for discussion

but in any case i can implement support of OpenAI API too, it's not too hard, especially with help of LangChainGo package.

Great! keep in mind that there are also other OpenAI clients that we can use to allow a more closer feature mapping. https://github.com/sashabaranov/go-openai for instance supports also image/audio

I'm not sure if I do follow 100%, but feel free to open up a separate issue for discussion

LangChainGo supports local llm https://github.com/tmc/langchaingo/blob/main/llms/local/localllm.go
In general it's just a binary files caller, eg you have some executable python script which will receive some text as argument and return some text to stdout, this script will be executed via os/exec call.
https://github.com/tmc/langchaingo/blob/main/llms/local/internal/localclient/completions.go#L21
After that output will be returned back to user as completion of text.

I see, interesting! I think a similar approach came up in #69 , opening up a wide range of possibilities. Let's just make sure we document it properly so anyone can benefit from this.

@mudler okay! I'll done with it after couple hours, need to complete a work day on my job first :)

CI seems to fail, but nothing really serious:
/config.yaml MODELS_PATH=/home/runner/work/LocalAI/LocalAI/test-models go run github.com/onsi/ginkgo/v2/ginkgo --flakeAttempts 5 -v -r ./api ./pkg
missing go.sum entry for module providing package github.com/onsi/ginkgo/v2/ginkgo; to add:
	go mod download github.com/onsi/ginkgo/v2

@mudler hooray :) glad to help, soon i'll done with langchain-local and back to here )