[Bug] Use ui config and blade directory as ultimate fallbacks for themes

Bug report
There are a few files that should be provided across themes (eg. what is now in sidebar_content.blade.php, common.css etc.)
What I did
Switched themes.
What I expected to happen
The menu items to stay the same.
What happened
A different inc/sidebar_content.blade.php file was used, so... the menu items changed.
What I've already tried to fix it
That is an understandable caveat... but... it's unexpected. It definitely isn't the intention of the developer to lose all menu items when they switch themes so... maybe we can do something about that?
So here's what I'm thinking. What if we use the UI term... as the fallback for themes... both for config files and for blade files?

[x] if something isn't specified in the theme config file... it falls back to what's specified in config/backpack/ui.php
[x] if a file isn't present in the theme blade directory... it falls back to what's in resources/views/vendor/backpack/ui

That way:

[x] all theme inc/sidebar_content.blade.php could load a resources/views/vendor/backpack/ui/inc/menu_items.blade.php
[x] when you generate a CRUD or something, a new item would be generated in menu_items.blade.php
[ ] when you switch themes, the menu items would stay the same
[x] themes could load files that are provided by CRUD (eg. common.css) the same way the load regular theme files (backpack_theme_view() because that ultimately falls back to the UI directory);

Fixed by #5061

@maurohmartinez after I've implemented this ui directory as fallback... I've noticed that in https://github.com/Laravel-Backpack/demo/pull/453 (v6 Demo) we are NOT using the same sidebar_content.blade.php file for all themes. Quite the contrary, each theme has one of those files, and they are all slightly different. This is a departure from what I first imagined the menu items to be like... something that works across themes. Ideally, all themes would use for the menu items the same blade file. That way, when you switch themes, you keep the same menu items. In order to achieve that, I've went ahead and modified all 3 themes so that sidebar_content.blade.php loads a new file menu_items.blade.php. Since that file doesn't exist in any of the themes... but it will exist in resources/views/vendor/backpack/ui/inc/menu_items.blade.php, basically all themes by default use that menu_items.blade.php as the source of menu items.
Now... How can we reconcile the differences between the HTML/CSS structure? How can we define menu items in one place... for all themes... and have them look good across themes? Here's what solutions I see:
A) We make sidebar items backwards-compatible in all themes.
Basically all themes support the CoreUIv2 syntax for defining menu elements and dropdowns. You tell me if this is possible @maurohmartinez . How different are the syntaxes? Can we do this? How difficult would it be for a new theme developer to do this too?
B) We create a few helpers, where the theme defines the output.
So instead of having this in menu_items.blade.php:

First-Party Addons

     News

 Articles

 Categories

                Tags

We'd have something like:
@backpackMenuSeparator('First-Party Addons')
@backpackMenuItem(' News', backpack_url('article'))
@backpackMenuItem(' Categories', backpack_url('category'))
@backpackMenuDropdownStart(' News')
    @backpackMenuItem(' News', backpack_url('article'))
    @backpackMenuItem(' Categories', backpack_url('category'))
    @backpackMenuItem(' Tags', backpack_url('tag'))
@backpackMenuDropdownEnd

And then each theme would define how that gets shown (read: what micro-blade-view it loads for each of those helpers, which has the proper classes already).

What do you think @maurohmartinez ?
Also @pxpm and @promatik . What do you guys think?
(1) Do you think this new syntax I proposed for menu items... which uses blade directives... is a good or a bad thing?
(2) Do you also see it important (as I do) that you define the menu items in one place, and that is even if you change themes? Or do you see each theme as providing their own menu items?
Let's do this! It's one of the last major "quirks" to fix in v6 theming 💪

@maurohmartinez what I would like, rephrased, is to delete all sidebar_content.blade.php files in our v6 Demo, and have all menu items be stored in one file, for all themes... in resources/views/vendor/backpack/ui/inc/menu_items.blade.php:

Does that make sense from a developer perspective? Isn't this intuitive and helpful?

We talked about this sometimes in the past and I agree making components agnostic to themes.
Not sure this is a good option tho. I don't think this gives us enough flexibility, I may be wrong, haven't considered all the use cases, but I think we shouldn't make a decision base on the two themes we are supporting.
I think a good strategy to know if we are building a robust and extensible enough theme system is by making sure we can construct any of the sidebars in https://getbootstrap.com/docs/5.0/examples/sidebars/

They are the bare minimum of bootstrap themes. If we can't fully support the "bootstrap example sidebars" I am sure we will have a hard time making it properly work on even more customized themes.
Cheers

Only option B would cover all sidebars... by relegating that to the theme itself. The theme can then output a different HTML, depending on what is used - sidebar, sidebar contensed, topbar, list group, nav etc.
Option A - would make it pretty difficult for a theme developer to add support for all of those.
Option B - would make it pretty easy for a theme developer to add support for all of those.

Indeed. Something "along the lines" of option B) I agree with you.
I am just not sure if we can make that option flexible enough to cover all those bootstrap cases, if it does I think it's the best and fair start point we have.
But I think the "golden" point is us (Backpack) don't care about the structure of the sidebar, only the items, and each theme implements their own structure.
So like:
// @sidebarItems($name, $link, $children)

@sidebarItems([
     ['name', 'link'], ['name', 'link', [
         ['name', 'link']
     ]]
])

@backpackMenuSeparator('First-Party Addons')
@backpackMenuItem('News', backpack_url('article'), 'nav-icon la la-newspaper-o')
@backpackMenuItem('Categories', backpack_url('category'), 'nav-icon la la-list')
@backpackMenuDropdownStart('News', 'nav-icon la la-newspaper-o')
    @backpackMenuItem('News', backpack_url('article'), 'nav-icon la la-newspaper-o')
    @backpackMenuItem('Categories', backpack_url('category'), 'nav-icon la la-list')
@backpackMenuDropdownEnd

It sounds better, I am not on naming phase yet.
I am trying to figure out the best strategy for this problem, because we will have more components that would benefit from being theme agnostic.
Sidebar items, are directly composed of:

element (a or button usually)
display text
link
attributes (rel, target etc)

Indirectly by:

visibility - should be visible for the current user ?
custom attributes (like having an icon etc).

At this point, I am not sure if using @bladeDirectives is the right approach here.

They will get extensively bigger (in your example you are not counting on adding extra attributes to links like rel, target etc).
They are not "customizable" by theme. (not the display, the internal blade directive configuration).

We could probably get better served by modeling some PHP classes around the sidebar that all the themes could use and exposing a single sidebar api to all the themes.
Themes will receive the SidebarItem, or SidebarItemGroup and do whatever they need to display it.
Any theme could easily overwrite those classes to keep the API but change the behaviour.
generators etc will need to have some $property or some getterFunction where they push to instead of pushing to a blade file.

No no no. If we get to PHP classes we've already over-engineered it. Let's try to find the middle-ground:

array that gets output by the theme - under-enginnered
???
PHP classes - over-engineered

Still Pedro - how about named attributes?
@backpackMenuItem(title: 'Categories', icon: 'la la-list', href: backpack_url('category'), visibleWhen: $is_admin, attributes: [
    'data-custom-name' => 'smth',
    'target' => '_blank',
    'class' => 'text-bold',
])

Since this issue has MOSTLY been resolved, other than ONE sub-item, I've created a new issue for that sub-item, with a summary. Let's continue the conversation in https://github.com/Laravel-Backpack/CRUD/issues/5134 - easier to do that there.


[AutoPR datafactory/resource-manager] (Public swagger update) Add TeradataSource,TeradataPartitionSettings,TeradataTableDataset,TeradataTableDatasetTypeProperties

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6346

(message created by the CI based on PR content)

This PR has been merged into https://github.com/Azure/azure-sdk-for-python/pull/5747


hello

Hello, great job from you.
I wanted to know if you could put a link for the cpp pool?
thank you so much

k


Break long poll loop early when context remaining timeout is too low

What changed?
Stop long poll on the client side when too little time is left on the context.

Why?
To prevent unnecessary call to the server will would timeout anyway.
Relate Server PR: https://github.com/uber/cadence/pull/4425

How did you test it?
Locally.

Potential risks

Pull Request Test Coverage Report for Build 061742d0-cd87-4c0e-b66d-bd45aae8181b

5 of 7 (71.43%)  changed or added relevant lines in 1 file are covered.
8 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 71.555%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/internal_workflow_client.go
5
7
71.43%

Files with Coverage Reduction
New Missed Lines
%

internal/internal_task_pollers.go
8
80.67%

Totals

Change from base Build 45d338ee-a2b0-4411-b30a-df23bc7d684a:
-0.03%

Covered Lines:
12170

Relevant Lines:
17008

💛  - Coveralls


bundler: failed to load command: thin (/home/ots/.rbenv/versions/2.6.10/bin/thin)

I have this issue when i run this command
ots@Onetime:~/onetimesecret$ bundle exec thin -e dev -R config.ru -p 7143 start

bundler: failed to load command: thin (/home/ots/.rbenv/versions/2.6.10/bin/thin)
/home/ots/onetimesecret/lib/onetime.rb:52:in `load!': undefined method `gibbler' for ["Onetime", "ots", 21835, "0.10.1",<PHONE_NUMBER>]:Array (NoMethodError)
        from config.ru:30:in `block in <main>'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/rack-<IP_ADDRESS>/lib/rack/builder.rb:71:in `instance_eval'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/rack-<IP_ADDRESS>/lib/rack/builder.rb:71:in `initialize'
        from config.ru:1:in `new'
        from config.ru:1:in `<main>'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/lib/rack/adapter/loader.rb:33:in `eval'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/lib/rack/adapter/loader.rb:33:in `load'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/lib/thin/controllers/controller.rb:72:in `start'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/lib/thin/runner.rb:203:in `run_command'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/lib/thin/runner.rb:159:in `run!'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/thin-1.8.1/bin/thin:6:in `<top (required)>'
        from /home/ots/.rbenv/versions/2.6.10/bin/thin:25:in `load'
        from /home/ots/.rbenv/versions/2.6.10/bin/thin:25:in `<top (required)>'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `load'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `kernel_load'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:23:in `run'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/cli.rb:483:in `exec'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/cli.rb:31:in `dispatch'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/cli.rb:25:in `start'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/exe/bundle:48:in `block in <top (required)>'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
        from /home/ots/.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/bundler-2.3.17/exe/bundle:36:in `<top (required)>'
        from /home/ots/.rbenv/versions/2.6.10/bin/bundle:25:in `load'
        from /home/ots/.rbenv/versions/2.6.10/bin/bundle:25:in `<main>'

ots@Onetime:~/onetimesecret$ bundle -v
Bundler version 2.3.17
ots@Onetime:~/onetimesecret$ ruby -v
ruby 2.6.10p210 (2022-04-12 revision 67958) [x86_64-linux]
ots@Onetime:~/onetimesecret$ rails -v
Rails 6.0.0

I appreciate if you can help me

Hi, sorry, but this is an issue tracker for rbenv issues only (regarding switching between Ruby versions).
Once a Ruby version is running, most errors that are thrown under it are due to app-specific code and its dependencies, and need to be debugged separately from rbenv. We can't help, unfortunately. Good luck!


Can’t add printer due to no “dot” in numpad

When I try to add a printer I can’t add the printer.
When I try to input the IP-address there only comma available. See attached picture.
running on iOS 17.0.3 iPhone 13 mini.
let me know if there’s any more information needed.
I’m very curious on this app, looks promising!
I appreciate your efforts :)

I didn't realize in some locales a comma is used rather than a period for the decimal point! I'll have to figure out a way to get around this!
As a workaround for now, you could type the IP address in something else, like the notes app for example, and copy and paste it in with .'s instead of ,'s.
Thanks for checking out the app and bringing this issue to my attention!

Ah, of course.

I will verify when I get a chance.
Thank you

Same problem here. No dot available only comma. I use german language settings. I will try to c&p the IP address.

Could you also add dns support?


Search in merge variables list

Sometimes merge variables dialog have a lot of potentially unsound merges. Ability to search in them would be useful.
Perhaps reducing the number of variables that can be merged somehow would also be a good solution.

Closing in favor of https://github.com/Vector35/binaryninja-api/issues/4896

These features will all be present in 3.6.4772.

Merge Variables Dialog now has a search
Merge Variables now has suggested merges that are at the top of the list
A new 'Merge Variables Here' option is available in the menu and hotkey '+' if you're in HLIL/Pseudo-C and you've selected the index of a variable-to-variable assignment.


[feature] Handle entity bodygroups and skins

Describe the solution you'd like
Automatically get the meshes for all active bodygroups, and materials for skins.

https://developer.valvesoftware.com/wiki/$texturegroup
https://developer.valvesoftware.com/wiki/$bodygroup

Looks like bodygroups can actually be implemented by lua, however not possible with skins

https://developer.valvesoftware.com/wiki/MDL

Skins requires #81

Added on https://github.com/Derpius/VisTrace/tree/mdlparser


[Feature request] Provide a way to not try/catch a zone run by default.

Using chrome dev tools with pause on uncaught exceptions while using zone.js, zone.js always catches and then re-throws an error if there is no onError handler. So the dev tools pause in zone.js where the error is re-thrown.
The stack trace is still useful, but we lose the value of breaking on uncaught exceptions when all we have is a reference to the error that will be logged to the console anyway.
It would be nice if zone.js had a way to tell it to only runs the zone within a try/catch if there is an onError handler.

+1, I am having this issue as well.


after 1.75.1 update  no code Code prompt!!!

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.75.1
OS Version: 12.5.1

.vue no Code prompt!!!!

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!


disabling auth doesn't seem to work

When trying to disable auth fully and trying to query cache using quarkus client the following error occurs:
 ISPN005003: Exception reported java.lang.SecurityException: ISPN000287: Unauthorized access: subject 'null' lacks 'CREATE' permission
This is the chart values config:
infinispan:
  # Default values for infinispan-helm-charts.
  # This is a YAML-formatted file.
  # Declare variables to be passed into your templates.

  images:
    # [USER] The container images for server pods.
    server: quay.io/infinispan/server:14.0
    initContainer: registry.access.redhat.com/ubi8-micro

  deploy:
    # [USER] Specify the number of nodes in the cluster.
    replicas: 1

    container:
      extraJvmOpts: ""
      storage:
        size: 1Gi
        storageClassName: ""
        # [USER] Set `ephemeral: true` to delete all persisted data when clusters shut down or restart.
        ephemeral: false
      resources:
        # [USER] Specify the CPU limit and the memory limit for each pod.
        limits:
          cpu: 500m
          memory: 512Mi
        # [USER] Specify the maximum CPU requests and the maximum memory requests for each pod.
        requests:
          cpu: 500m
          memory: 512Mi

    security:
      secretName: ""
      batch: ""

    expose:
      # [USER] Specify `type: ""` to disable network access to clusters.
      type: ""
      nodePort: 0
      host: ""
      annotations: [ ]

    monitoring:
      enabled: true

    logging:
      categories:
        # [USER] Specify the FQN of a package from which you want to collect logs.
        - category: com.arjuna
          # [USER] Specify the level of log messages.
          level: warn
        # No need to warn about not being able to TLS/SSL handshake
        - category: io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
          level: error

    makeDataDirWritable: false

    nameOverride: ""

    resourceLabels: [ ]

    podLabels: [ ]

    svcLabels: [ ]

    infinispan:
      cacheContainer:
        # [USER] Add cache, template, and counter configuration.
        name: default
        # [USER] Specify `security: null` to disable security authorization.
        security: null
        transport:
          cluster: ${infinispan.cluster.name:cluster}
          node-name: ${infinispan.node.name:}
          stack: kubernetes
      server:
        endpoints:
          # [USER] Hot Rod and REST endpoints.
          - securityRealm: default
            socketBinding: default
            connectors:
              rest:
                restConnector:
              hotrod:
                hotrodConnector:
              # [MEMCACHED] Uncomment to enable Memcached endpoint
              # memcached:
              #   memcachedConnector:
              #     socketBinding: memcached
          # [METRICS] Metrics endpoint for cluster monitoring capabilities.
          - connectors:
              rest:
                restConnector:
                  authentication:
                    mechanisms: BASIC
            securityRealm: metrics
            socketBinding: metrics
        interfaces:
          - inetAddress:
              value: ${infinispan.bind.address:<IP_ADDRESS>}
            name: public
        security:
          credentialStores:
            - clearTextCredential:
                clearText: secret
              name: credentials
              path: credentials.pfx
          securityRealms:
            # [USER] Security realm for the Hot Rod and REST endpoints.
            - name: default
              # [USER] Comment or remove this properties realm to disable authentication.
#              propertiesRealm:
#                groupProperties:
#                  path: groups.properties
#                groupsAttribute: Roles
#                userProperties:
#                  path: users.properties
              # [METRICS] Security realm for the metrics endpoint.
            - name: metrics
              propertiesRealm:
                groupProperties:
                  path: metrics-groups.properties
                  relativeTo: infinispan.server.config.path
                groupsAttribute: Roles
                userProperties:
                  path: metrics-users.properties
                  relativeTo: infinispan.server.config.path
        socketBindings:
          defaultInterface: public
          portOffset: ${infinispan.socket.binding.port-offset:0}
          socketBinding:
            # [USER] Socket binding for the Hot Rod and REST endpoints.
            - name: default
              port: 11222
              # [METRICS] Socket binding for the metrics endpoint.
            - name: metrics
              port: 11223
              # [MEMCACHED] Uncomment to enable Memcached endpoint
          # - name: memcached
          #   port: 11221

Its an empty infinispan instance, so client should be able to create the cache automatically. This is the case when using infinispan via docker compose with a custom config where security is disabled as per docs: https://infinispan.org/docs/stable/titles/security/security.html
Also if I examine the infinispan.xml settings file inside the container I can see that it still contains the default auth enabled settings. So that means that the above config to disable security had no effect or I did it incorrectly.

I have deployed a helm chart using your values.yaml [0] and I can confirm that authentication is disabled and I was able to create a cache via the Infinispan console [1].

Also if I examine the infinispan.xml settings file inside the container I can see that it still contains the default auth enabled settings. So that means that the above config to disable security had no effect or I did it incorrectly.

The configuration provided via your values.yaml is mounted at /etc/config/infinispan.yml and the server args are updated to use this configuration.
How have you configured the Quarkus client?
[0] I had to remove the initial "infinispan" element as this unexpected.
[1] I used to port-forwarding to easily test this, kubectl -n <namespace> port-forward svc/<chart-name> 11222 and connect to http://localhost:11222 via your local browser.

[0] I had to remove the initial "infinispan" element as this unexpected.
What do you mean with this? Can you provide your values.yaml file for comparison?

What do you mean with this? Can you provide your values.yaml file for comparison?

Sure:
# Default values for infinispan-helm-charts.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

images:
  # [USER] The container images for server pods.
  server: quay.io/infinispan/server:14.0
  initContainer: registry.access.redhat.com/ubi8-micro

deploy:
  # [USER] Specify the number of nodes in the cluster.
  replicas: 1

  container:
    extraJvmOpts: ""
    storage:
      size: 1Gi
      storageClassName: ""
      # [USER] Set `ephemeral: true` to delete all persisted data when clusters shut down or restart.
      ephemeral: false
    resources:
      # [USER] Specify the CPU limit and the memory limit for each pod.
      limits:
        cpu: 500m
        memory: 512Mi
      # [USER] Specify the maximum CPU requests and the maximum memory requests for each pod.
      requests:
        cpu: 500m
        memory: 512Mi

  security:
    secretName: ""
    batch: ""

  expose:
    # [USER] Specify `type: ""` to disable network access to clusters.
    type: ""
    nodePort: 0
    host: ""
    annotations: [ ]

  monitoring:
    enabled: true

  logging:
    categories:
      # [USER] Specify the FQN of a package from which you want to collect logs.
      - category: com.arjuna
        # [USER] Specify the level of log messages.
        level: warn
      # No need to warn about not being able to TLS/SSL handshake
      - category: io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
        level: error

  makeDataDirWritable: false

  nameOverride: ""

  resourceLabels: [ ]

  podLabels: [ ]

  svcLabels: [ ]

  infinispan:
    cacheContainer:
      # [USER] Add cache, template, and counter configuration.
      name: default
      # [USER] Specify `security: null` to disable security authorization.
      security: null
      transport:
        cluster: ${infinispan.cluster.name:cluster}
        node-name: ${infinispan.node.name:}
        stack: kubernetes
    server:
      endpoints:
        # [USER] Hot Rod and REST endpoints.
        - securityRealm: default
          socketBinding: default
          connectors:
            rest:
              restConnector:
            hotrod:
              hotrodConnector:
            # [MEMCACHED] Uncomment to enable Memcached endpoint
            # memcached:
            #   memcachedConnector:
            #     socketBinding: memcached
        # [METRICS] Metrics endpoint for cluster monitoring capabilities.
        - connectors:
            rest:
              restConnector:
                authentication:
                  mechanisms: BASIC
          securityRealm: metrics
          socketBinding: metrics
      interfaces:
        - inetAddress:
            value: ${infinispan.bind.address:<IP_ADDRESS>}
          name: public
      security:
        credentialStores:
          - clearTextCredential:
              clearText: secret
            name: credentials
            path: credentials.pfx
        securityRealms:
          # [USER] Security realm for the Hot Rod and REST endpoints.
          - name: default
            # [USER] Comment or remove this properties realm to disable authentication.
#              propertiesRealm:
#                groupProperties:
#                  path: groups.properties
#                groupsAttribute: Roles
#                userProperties:
#                  path: users.properties
            # [METRICS] Security realm for the metrics endpoint.
          - name: metrics
            propertiesRealm:
              groupProperties:
                path: metrics-groups.properties
                relativeTo: infinispan.server.config.path
              groupsAttribute: Roles
              userProperties:
                path: metrics-users.properties
                relativeTo: infinispan.server.config.path
      socketBindings:
        defaultInterface: public
        portOffset: ${infinispan.socket.binding.port-offset:0}
        socketBinding:
          # [USER] Socket binding for the Hot Rod and REST endpoints.
          - name: default
            port: 11222
            # [METRICS] Socket binding for the metrics endpoint.
          - name: metrics
            port: 11223
            # [MEMCACHED] Uncomment to enable Memcached endpoint
        # - name: memcached
        #   port: 11221

ok, so I am doing it a bit different and my values.yaml contains other values for my main deploy of which the infinispan chart is part of. Here's an example:
# Default values for scale-bootstrap.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

dockerRegistry: "xxxxx"

namespace: "xxxx"

appVersion: "1.0.0-SNAPSHOT"

helm:
  release:
    namespace:
      suffix:

spec:
  type:
    service: LoadBalancer
  containers:
    imagePullPolicy: Always

ports:
  service: 80

quarkus:
  log:
    level: INFO
    min-level: DEBUG

  infinispan-client:
    server-list: infinispan:11222
    client-intelligence: BASIC

infinispan:
  # Default values for infinispan-helm-charts.
  # This is a YAML-formatted file.
  # Declare variables to be passed into your templates.

  images:
    # [USER] The container images for server pods.
    server: quay.io/infinispan/server:14.0
    initContainer: registry.access.redhat.com/ubi8-micro

  deploy:
    # [USER] Specify the number of nodes in the cluster.
    replicas: 1

    container:
      extraJvmOpts: ""
      storage:
        size: 1Gi
        storageClassName: ""
        # [USER] Set `ephemeral: true` to delete all persisted data when clusters shut down or restart.
        ephemeral: false
      resources:
        # [USER] Specify the CPU limit and the memory limit for each pod.
        limits:
          cpu: 500m
          memory: 512Mi
        # [USER] Specify the maximum CPU requests and the maximum memory requests for each pod.
        requests:
          cpu: 500m
          memory: 512Mi

    security:
      secretName: ""
      batch: "user create -p password" # FIXME: disable auth or find a way to fetch these from secrets

    expose:
      # [USER] Specify `type: ""` to disable network access to clusters.
      type: ""
      nodePort: 0
      host: ""
      annotations: [ ]

    monitoring:
      enabled: true

    logging:
      categories:
        # [USER] Specify the FQN of a package from which you want to collect logs.
        - category: com.arjuna
          # [USER] Specify the level of log messages.
          level: warn
        # No need to warn about not being able to TLS/SSL handshake
        - category: io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
          level: error

    makeDataDirWritable: false

    nameOverride: "mcng-access-infinispan"

    resourceLabels: [ ]

    podLabels: [ ]

    svcLabels: [ ]

    infinispan:
    ....

I cannot remove the infinispan as you did, as it will not pick up the infinispan chart dep schema...

ok, so I am doing it a bit different and my values.yaml contains other values for my main deploy of which the infinispan chart is part of.

Maybe this is a common strategy that I'm not familiar with, but won't this break the Infinispan .tpl logic? For example our template logic depends upon variables such as `{{ .Values.deploy.replicas }}``. Or are you also pull the templates locally and updating them?

I don't update the tpl logic. As I understood we can override the chart dependency value using the name of the chart as I defined it above. It seems to work (at least partially), as the nameOverride: "something" indeed changes the name of the pod and I also see the deployment react to security changes where I just define a user and password in the values.yaml
Example:
# Default values for scale-bootstrap.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

dockerRegistry: "xxxx"

mcngImageNamespace: "xxx"

helm:
  release:
    namespace:
      suffix:

spec:
  type:
    service: LoadBalancer
  containers:
    imagePullPolicy: Always

ports:
  service: 80

quarkus:
  log:
    level: INFO
    min-level: DEBUG

  infinispan-client:
    server-list: infinispan:11222
    client-intelligence: BASIC

infinispan:
  # Default values for infinispan-helm-charts.
  # This is a YAML-formatted file.
  # Declare variables to be passed into your templates.

  images:
    # [USER] The container images for server pods.
    server: quay.io/infinispan/server:14.0
    initContainer: registry.access.redhat.com/ubi8-micro

  deploy:
    # [USER] Specify the number of nodes in the cluster.
    replicas: 1

    container:
      extraJvmOpts: ""
      storage:
        size: 1Gi
        storageClassName: ""
        # [USER] Set `ephemeral: true` to delete all persisted data when clusters shut down or restart.
        ephemeral: false
      resources:
        # [USER] Specify the CPU limit and the memory limit for each pod.
        limits:
          cpu: 500m
          memory: 512Mi
        # [USER] Specify the maximum CPU requests and the maximum memory requests for each pod.
        requests:
          cpu: 500m
          memory: 512Mi

    security:
      secretName: ""
      batch: "user create -p password"

    expose:
      # [USER] Specify `type: ""` to disable network access to clusters.
      type: ""
      nodePort: 0
      host: ""
      annotations: [ ]

    monitoring:
      enabled: true

    logging:
      categories:
        # [USER] Specify the FQN of a package from which you want to collect logs.
        - category: com.arjuna
          # [USER] Specify the level of log messages.
          level: warn
        # No need to warn about not being able to TLS/SSL handshake
        - category: io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
          level: error

    makeDataDirWritable: false

    nameOverride: "something"

    resourceLabels: [ ]

    podLabels: [ ]

    svcLabels: [ ]

    infinispan:
      cacheContainer:
        # [USER] Add cache, template, and counter configuration.
        name: default
        # [USER] Specify `security: null` to disable security authorization.
        security:
          authorization: { }
        transport:
          cluster: ${infinispan.cluster.name:cluster}
          node-name: ${infinispan.node.name:}
          stack: kubernetes
      server:
        endpoints:
          # [USER] Hot Rod and REST endpoints.
          - securityRealm: default
            socketBinding: default
            connectors:
              rest:
                restConnector:
              hotrod:
                hotrodConnector:
              # [MEMCACHED] Uncomment to enable Memcached endpoint
              # memcached:
              #   memcachedConnector:
              #     socketBinding: memcached
          # [METRICS] Metrics endpoint for cluster monitoring capabilities.
          - connectors:
              rest:
                restConnector:
                  authentication:
                    mechanisms: BASIC
            securityRealm: metrics
            socketBinding: metrics
        interfaces:
          - inetAddress:
              value: ${infinispan.bind.address:<IP_ADDRESS>}
            name: public
        security:
          credentialStores:
            - clearTextCredential:
                clearText: secret
              name: credentials
              path: credentials.pfx
          securityRealms:
            # [USER] Security realm for the Hot Rod and REST endpoints.
            - name: default
              # [USER] Comment or remove this properties realm to disable authentication.
              propertiesRealm:
                groupProperties:
                  path: groups.properties
                groupsAttribute: Roles
                userProperties:
                  path: users.properties
              # [METRICS] Security realm for the metrics endpoint.
            - name: metrics
              propertiesRealm:
                groupProperties:
                  path: metrics-groups.properties
                  relativeTo: infinispan.server.config.path
                groupsAttribute: Roles
                userProperties:
                  path: metrics-users.properties
                  relativeTo: infinispan.server.config.path
        socketBindings:
          defaultInterface: public
          portOffset: ${infinispan.socket.binding.port-offset:0}
          socketBinding:
            # [USER] Socket binding for the Hot Rod and REST endpoints.
            - name: default
              port: 11222
              # [METRICS] Socket binding for the metrics endpoint.
            - name: metrics
              port: 11223
              # [MEMCACHED] Uncomment to enable Memcached endpoint
          # - name: memcached
          #   port: 11221

So above deployment works without any trouble. In result we have an infinispan pod with admin user "admin" with password set to "passwod"...

@makdeniss I see that you have infinispan.security.authorization: { }, this should be null not an empty object. This could explain why requests are being rejected even though authentication is not configured.

@ryanemerson the latest example is meant to show you that I am defining that chart correctly when I want to create an admin user. The first post example is the one that doesn't work. So my definition is correct overall, but the security disable is not working if I do it the way I shown in the initial post.

@makdeniss I see. As disabling authentication works with the values.yaml I provided, I can only assume that the modified values.yaml structure is causing issues. Can you paste the output of /etc/config/infinispan.yml? This is also contained within the <chart-name>-configuration ConfigMap.
Also, if you enable debug logging for "org.infinispan.SERVER" the pod output will show the exact configuration that is parsed by the server:
  logging:
    categories:
      - category: org.infinispan.SERVER
        level: debug

Can you provide a full server log?

@makdeniss The pasted /etc/config/infinispan.yml looks like the default values.yaml provided with the Infinispan helm chart, so it seems like your nested infinispan config in your values.yaml is not being processed like you think.

I don't understand why it doesn't work on my side just for this specific chart and only for disabling security...

How is your infinispan dependency specified in the Chart.yaml dependencies param?

In the example above I manually copied the chart locally under charts/infinispan, however I have also tried using the below dependency and it worked:
dependencies:
  - name: infinispan
    version: 0.3.0
    repository: https://charts.openshift.io/

Unfortunately due to a limitation with charts.openshift.io, I have to perform the following steps.

Which versions of helm are you using?

version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"clean", GoVersion:"go1.15.11"}

Can you share your Chart.yaml and directory structure?

Here's my Chart.yml
apiVersion: v2
name: xx
description: A Helm chart for application modules
version: 0.1.1
appVersion: "0.0.1"

dependencies:
  # https://github.com/infinispan/infinispan-helm-charts/issues/60
  - name: infinispan
    alias: infinispan
    version: 0.3.0
    repository: https://charts.openshift.io/

Hmm I'm really not sure why it works in my case and not yours.
How are you installing the chart?


create a nitro icon

and use as default favicon, apple-touch, ... icon
place favicon & apple-touch icon also in root

Added temp. Icon for 0.1.0

for now the tmp icon is ok


Adding in the metricsBindAddress to kube-proxy configmap to allow for…

Codecov Report

Merging #1784 into v0.13.x will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           v0.13.x    #1784   +/-   ##
========================================
  Coverage    25.27%   25.27%
========================================
  Files           98       98
  Lines         5088     5088
========================================
  Hits          1286     1286
  Misses        3660     3660
  Partials       142      142

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 9b80ab1...74afecd. Read the comment docs.


Fix4209

Fix: Provide a button to Submit to IESG on the Change IETF WG state when that is the recommended next state.
Fixes #4209.

I guess we both worked on this: #4254

I like what you did for the template better than my approach.  However, I think that the change in the view to remove sub-pub from the pull down is also needed.

Do you want to combine the two into your PR?

Yours is easier.  You just need to add one line to /ietf/doc/views_draft.py.
I just need to take line 1567 from https://github.com/russhousley/datatracker/blob/fix4209/ietf/doc/views_draft.py
The other changes in my PR can be ignored because you made a more robust fix in the template.

Done! Please check?

Closing this as OBE by #4254


Build Error from #257

We just got a dependabot PR into XDP (https://github.com/microsoft/xdp-for-windows/pull/92) to update our submodule for wil and it's failing to build because of #257:
Build FAILED.

       "D:\a\xdp-for-windows\xdp-for-windows\xdp.sln" (default target) (1) ->
       "D:\a\xdp-for-windows\xdp-for-windows\test\functional\lib\xdptests.vcxproj" (default target) (19) ->
       (RunNativeCodeAnalysis target) ->
         D:\a\xdp-for-windows\xdp-for-windows\submodules\wil\include\wil\result_macros.h(1314): error C6387: 'Temp_value_#1642' could be '0':  this does not adhere to the specification for the function 'GetProcAddress'.  [D:\a\xdp-for-windows\xdp-for-windows\test\functional\lib\xdptests.vcxproj]

I'm not 100% sure why, but it doesn't like this line:
pfnRtlDisownModuleHeapAllocation = reinterpret_cast<decltype(pfnRtlDisownModuleHeapAllocation)>(::GetProcAddress(::GetModuleHandleW(L"ntdll.dll"), "RtlDisownModuleHeapAllocation"));

cc @mtfriesen

The issue is that GetModuleHandle("muffindoesnotexist.dll") can return nullptr if indeed the DLL does not exist. In this instance, ntdll.dll is a core part of the OS that will never not exist. The fix would be to split the code across two lines, like so:
if (auto ntdllModule = ::GetModuleHandleW(L"ntdll.dll"))
{
    pfnRtlDisownModuleHeapAllocation = reinterpret_cast<...>(::GetProcAddress(ntdllModule, ...);
}


could not find an app file at "_build/prod/lib/uuid/ebin/uuid.app"

When compiled at the first time I met this error
Unchecked dependencies for environment prod:
* uuid (Hex package)
  could not find an app file at "_build/prod/lib/uuid/ebin/uuid.app". This may happen if the dependency was not yet compiled, or you specified the wrong application name in your deps, or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix) Can't continue due to errors on dependencies

Rerun the compile will get a warning but everything goes right
warning: redefining module UUID (current version loaded from /Users/tristan/Coding/Teambition/private-manager/_build/prod/lib/elixir_uuid/ebin/Elixir.UUID.beam)
  lib/uuid.ex:1

What happened?
elixir version: 1.6.6
uuid version: 1.2

Also having this problem. Is there a fix?

Based on mix deps.tree it seems the problem there is guardian:
...
├── guardian ~> 1.1.0 (Hex package)
│   ├── jose ~> 1.8 (Hex package)
│   │   └── base64url ~> 0.0.1 (Hex package)
│   ├── phoenix ~> 1.0 or ~> 1.2 or ~> 1.3 (Hex package)
│   ├── plug ~> 1.3.3 or ~> 1.4 (Hex package)
│   ├── poison ~> 2.2 or ~> 3.0 (Hex package)
│   └── uuid >= 1.1.1 (Hex package)
...

Depends on uuid but I had a quick glance at their dependencies and it doesn't seem to be declared anywhere, so possibly an odd transitive dependency?
Until guardian either updates to elixir_uuid, fixes the dependency declaration/packaging, or otherwise drops uuid entirely you can probably work around it by adding {:uuid, "~> 1.1"} to your dependencies manually.


Hangs on Debian/Linux but not on OS X

example code:
package main

import (
	"fmt"
	"log"

	"github.com/boltdb/bolt"
)

func main() {
	db, err := bolt.Open("my.db", 0600, nil)

	if err != nil {
		log.Fatal(err)
	}
	defer db.Close()

	db.Update(func(tx *bolt.Tx) error {
		b, err := tx.CreateBucket([]byte("MyBucket"))
		if err != nil {
			return fmt.Errorf("create bucket: %s", err)
		}
		b.Put([]byte("answer"), []byte("42"))
		return nil
	})

}

The my.db file will be created, but the process will then hang without doing anything else (and the my.db file is empty). This code runs fine on OS X, but not on Debian Linux. What should I do?

 You can try lsof or lslk to find which process is locking it:
http://unix.stackexchange.com/questions/85994/how-to-list-processes-locking-file

when I run lsof | grep "my.db" the only processes that show up are 5 instances of the main.go process:
test      30461             aamatuni    3u      REG               0,40        0   48969890 /mnt/hlpUsers/aamatuni/code/test/my.db (123.45.678.90:/volume1/homes)
test      30461 30462       aamatuni    3u      REG               0,40        0   48969890 /mnt/hlpUsers/aamatuni/code/test/my.db (123.45.678.90:/volume1/homes)
test      30461 30463       aamatuni    3u      REG               0,40        0   48969890 /mnt/hlpUsers/aamatuni/code/test/my.db (123.45.678.90:/volume1/homes)
test      30461 30464       aamatuni    3u      REG               0,40        0   48969890 /mnt/hlpUsers/aamatuni/code/test/my.db (123.45.678.90:/volume1/homes)
test      30461 30465       aamatuni    3u      REG               0,40        0   48969890 /mnt/hlpUsers/aamatuni/code/test/my.db (123.45.678.90:/volume1/homes)

Can you kill all those processes and try again? Only one process can access a bolt database at a time. Perhaps the first process is hanging on something different besides flock().

It's a single process. I think it shows up 5 times because of the different threads the goroutines are scheduled on (PID is all the same [30461], TID is different [30462-5]). I killed the process and all 5 entries went away. I started it up again and it hangs again (with 5 entries showing up in lsof)

Hmm. I'm not sure why it would be a problem. I've deployed on Linux many times. How is your /mnt/hlpUsers directory mounted? Does this program work in other directories (like your home directory)?

I think the problem is that my home folder is mounted as a NFS. I'm going to try and change the path of the .db files to the server's native filesystem tomorrow and see if this fixes things.

yep, that fixed the problem


[Ubuntu] Fix issues with aliyun-cli URL  #3468

Description
Fixed aliyun-cli installation failure
The latest aliyun-cli release is broken, upstream has source code but with no appropriate version of Linux.
We are determining name from archive name to download from and it is broken now.
We are bypassing this by hardcoding current version of url in the installer.

Related issue:
https://github.com/actions/virtual-environments-internal/issues/3468
Check list

[x] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run ubuntu2004

/azp run ubuntu2004


Add useAsyncCallback hook

Description
Add useAsyncCallback hook.
Is this a breaking change (Yes/No):
No

@koralle @quantumshiro
Please re-reviews.


Fix for the issue 574: rds: DBCluster writeConnectionSecret missing fields

Description of your changes
Add next fields: write the username and port field to the connection secret

Fixes https://github.com/upbound/provider-aws/issues/574
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
Manually

/test-examples="examples/rds/cluster.yaml"

Thank you, @turkenh !
Deleted manual-intervention and added a secret, now we can run it using uptest.


Question about the usage of internal APIs in the bottom sheet implementation

This is not a feature request nor a bug report, I was mostly curious about the lines I can see inside here in particular https://github.com/skydoves/FlexibleBottomSheet/blob/688b8f716c3828a5eb1871f5c14ddba7d96f9037/flexible-core/src/androidMain/kotlin/com/skydoves/flexible/core/FlexibleBottomSheetPopup.kt#L182-L191
I am only asking because I am concerned about what kind of risks you think one would be opting into while using this. And what are the chances that these private APIs will change in the future in a backwards incompatible way making this not work as expected in future Android API levels. If that were to happen, can the library update the code accordingly to keep all of this working as expected?

Hey @StylianosGakis, sorry for the late response. That's an interesting question. Yes, the FlexibleBottomSheet uses reflection to access private fields in WindowManager. However, you don't need to worry about it, as the code in WindowManager has remained unchanged for 13 years 😄, as you can see in the AOSP:
https://android.googlesource.com/platform/frameworks/base/+log/539ee87/core/java/android/view/WindowManager.java


Hyprland - exiting the compositor with hyprctl dispatch exit problems

In response https://github.com/hyprwm/hyprland-wiki/pull/850#discussion_r1833823643
Namely, xdg-desktop-portal-hyprland.service, mpd-notification.service do not restart after exiting Hyprland with the compositor-side command as well, as xcursor doesn't apply  to flatpak firefox if it was started to early.
If there are other logs I should provide - please, let me know.
journalctl -xe
░ Subject: A start job for unit UNIT has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has begun execution.
░░
░░ The job identifier is 1334.
Nov 08 14:36:03 archbtw systemd[1230]: Started Portal service (GTK/GNOME implementation).
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished successfully.
░░
░░ The job identifier is 1334.
Nov 08 14:36:05 archbtw uwsm_hyprland.desktop[3879]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: AER: Multiple Correctable error message received from 0000:00:1d.5
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:   device [8086:06b5] error status/mask=00000001/00002000
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:    [ 0] RxErr                  (First)
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: AER: Multiple Correctable error message received from 0000:00:1d.5
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:   device [8086:06b5] error status/mask=00000001/00002000
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:    [ 0] RxErr                  (First)
Nov 08 14:36:05 archbtw wpa_supplicant[967]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-63 noise=9999 txrate=117000
Nov 08 14:36:06 archbtw uwsm_hyprland.desktop[3897]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:36:06 archbtw systemd[1230]: Started app-flatpak-org.telegram.desktop-3898.scope.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished successfully.
░░
░░ The job identifier is 1355.
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5: AER: Multiple Correctable error message received from 0000:00:1d.5
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5:   device [8086:06b5] error status/mask=00000001/00002000
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5:    [ 0] RxErr                  (First)
Nov 08 14:36:06 archbtw uwsm_hyprland.desktop[3925]: QPainter::begin: Paint device returned engine == 0, type: 2
Nov 08 14:36:06 archbtw uwsm_hyprland.desktop[3925]: QWidget::render: Cannot render with an inactive painter
Nov 08 14:36:07 archbtw uwsm_hyprland.desktop[3984]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:36:08 archbtw kernel: pcieport 0000:00:1d.5: AER: Correctable error message received from 0000:07:00.0

systemctl --user status xdg-desktop-portal-hyprland.service
○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: inactive (dead)

Nov 08 14:22:11 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:22:11 archbtw systemd[1230]: Started Portal service (Hyprland implementation).
Nov 08 14:35:52 archbtw systemd[1230]: Stopping Portal service (Hyprland implementation)...
Nov 08 14:35:52 archbtw systemd[1230]: Stopped Portal service (Hyprland implementation).
Nov 08 14:35:53 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:35:53 archbtw systemd[1230]: Started Portal service (Hyprland implementation).
Nov 08 14:35:53 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:35:53 archbtw systemd[1230]: Started Portal service (Hyprland implementation).
Nov 08 14:35:53 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:35:53 archbtw systemd[1230]: Started Portal service (Hyprland implementation).

systemctl --user status mpd-notification.service
○ mpd-notification.service - MPD Notification
     Loaded: loaded (/usr/lib/systemd/user/mpd-notification.service; enabled; preset: enabled)
    Drop-In: /home/arch-mage/.config/systemd/user/mpd-notification.service.d
             └─override.conf
     Active: inactive (dead) since Fri 2024-11-08 14:35:52 +05; 6min ago
   Duration: 13min 43.667s
 Invocation: 2b2fa072bedc43ab817ab6c700fa68ae
    Process: 1376 ExecStart=/usr/bin/mpd-notification -H localhost -p 6600 -m ${HOME}/Music c -s 150 -t 10 (code=exited, status=0/SUCCESS)
   Main PID: 1376 (code=exited, status=0/SUCCESS)
     Status: "Stopped. Bye!"
   Mem peak: 17.2M
        CPU: 37ms

Nov 08 14:22:08 archbtw systemd[1230]: Starting MPD Notification...
Nov 08 14:22:08 archbtw systemd[1230]: Started MPD Notification.
Nov 08 14:35:52 archbtw systemd[1230]: Stopping MPD Notification...
Nov 08 14:35:52 archbtw systemd[1230]: Stopped MPD Notification.

UPD: Managed to get startup logs.

Here's the log for 'unclean' session (previously exited with hyprctl dispatch exit)
Selected compositor ID: hyprland.desktop
          Command Line: Hyprland
      Plugin/binary ID: hyprland
 Initial Desktop Names: Hyprland
                  Name: Hyprland
           Description: An intelligent dynamic tiling Wayland compositor

Units unchanged.
Starting hyprland.desktop and waiting while it is running...
Holding until PID 8691 exits

And a log for 'clean' session (previously exited with loginctl terminate-user "")

Selected compositor ID: hyprland.desktop
          Command Line: Hyprland
      Plugin/binary ID: hyprland
 Initial Desktop Names: Hyprland
                  Name: Hyprland
           Description: An intelligent dynamic tiling Wayland compositor

Created dir "/run/user/1000/systemd/user/"
Updated<EMAIL_ADDRESS>Updated<EMAIL_ADDRESS>Updated<EMAIL_ADDRESS>Updated "wayland-session-shutdown.target".
Updated<EMAIL_ADDRESS>Updated<EMAIL_ADDRESS>Updated "wayland-session-waitenv.service".
Updated "wayland-wm-app-daemon.service".
Updated<EMAIL_ADDRESS>Updated "app-graphical.slice".
Updated "background-graphical.slice".
Updated "session-graphical.slice".
Created unit subdir<EMAIL_ADDRESS>Updated<EMAIL_ADDRESS>Created unit subdir<EMAIL_ADDRESS>Updated<EMAIL_ADDRESS>Created unit subdir<EMAIL_ADDRESS>Updated<EMAIL_ADDRESS>Created unit subdir "xdg-desktop-portal-gtk.service.d/"
Updated "xdg-desktop-portal-gtk.service.d/order-tweak.conf".
Created unit subdir "plasma-xdg-desktop-portal-kde.service.d/"
Updated "plasma-xdg-desktop-portal-kde.service.d/order-tweak.conf".
Reloading systemd user manager.
Starting hyprland.desktop and waiting while it is running...
Holding until PID 9983 exits

journalctl --user --since ... time just before exiting and until finishing next session startup.

Log from right before exiting "good" session with "bad" command
Nov 08 14:57:59 archbtw uwsm_hyprland.desktop[11901]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:58:05 archbtw systemd[11081]: Stopped target XDG Autostart for session of hyprland.desktop Wayland compositor.
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Geoclue Demo agent...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Accessibility services bus...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping flatpak session helper...
Nov 08 14:58:05 archbtw foot[11343]: warn: server.c:71: client FD=8: terminal still alive
Nov 08 14:58:05 archbtw foot[11343]: server: client FD=8: terminal still alive
Nov 08 14:58:05 archbtw dbus-broker[11309]: Dispatched 105 messages @ 3(±4)μs / message.
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Foot terminal server mode...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Virtual filesystem service...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Hyprland's idle daemon...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Fast, IPC-controlled wallpaper utility for Hyprland....
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Hyprland Polkit Authentication Agent...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping MPD Notification...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Highly customizable Wayland bar for Sway and Wlroots based compositors....
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Portal service (GTK/GNOME implementation)...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Portal service (Hyprland implementation)...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Portal service...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping flatpak document portal service...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping sandboxed app permission store...
Nov 08 14:58:05 archbtw systemd[11081]: Stopped flatpak session helper.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped flatpak document portal service.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped sandboxed app permission store.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Accessibility services bus.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Portal service.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Hyprland's idle daemon.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Fast, IPC-controlled wallpaper utility for Hyprland..
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Hyprland Polkit Authentication Agent.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Highly customizable Wayland bar for Sway and Wlroots based compositors..
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Portal service (GTK/GNOME implementation).
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Geoclue Demo agent.
Nov 08 14:58:05 archbtw uwsm_hyprland.desktop[11736]: QDBusTrayIcon encountered a D-Bus error: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable")
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Virtual filesystem service.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Portal service (Hyprland implementation).
Nov 08 14:58:05 archbtw systemd[11081]: Removed slice User Graphical Application Slice.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped target Startup of XDG autostart applications.
Nov 08 14:58:05 archbtw uwsm_hyprland.desktop[11257]: wl_display_dispatch: Broken pipe
Nov 08 14:58:05 archbtw foot[11343]:  err: wayland.c:2105: failed to roundtrip Wayland display: Connection reset by peer
Nov 08 14:58:05 archbtw foot[11343]:  err: wayland.c:2105: failed to roundtrip Wayland display: Connection reset by peer
Nov 08 14:58:05 archbtw foot[11343]:  err: wayland.c:2105: failed to roundtrip Wayland display: Connection reset by peer
Nov 08 14:58:05 archbtw foot[11343]: wayland: failed to roundtrip Wayland display: Connection reset by peer
Nov 08 14:58:05 archbtw foot[11343]: wayland: failed to roundtrip Wayland display: Connection reset by peer

Is that all that happens after "bad" exit? Show states (before trying to start the next session):
systemctl --user status<EMAIL_ADDRESS>graphical-session-pre.target<EMAIL_ADDRESS>graphical-session.target

Here's the output withing 'bad' session
● graphical-session-pre.target - Session services which should run early before the graphical session is brought up
     Loaded: loaded (/usr/lib/systemd/user/graphical-session-pre.target; static)
     Active: active since Fri 2024-11-08 15:10:34 +05; 1min 10s ago
 Invocation: 6515e076a7bc4bafa6c13b8bfbbb284b
       Docs: man:systemd.special(7)

Nov 08 15:10:34 archbtw systemd[12988]: Reached target Session services which should run early before the graphical session is brought up.

● graphical-session.target - Current graphical user session
     Loaded: loaded (/usr/lib/systemd/user/graphical-session.target; static)
     Active: active since Fri 2024-11-08 15:10:37 +05; 1min 7s ago
 Invocation: bf3ddbeae9af48e68a17f1105d7cb155
       Docs: man:systemd.special(7)

Nov 08 15:10:37 archbtw systemd[12988]: Reached target Current graphical user session.

●<EMAIL_ADDRESS>- Environment preloader for Hyprland, An intelligent dynamic tiling Wayland compositor
     Loaded: loaded<EMAIL_ADDRESS>static)
    Drop-In<EMAIL_ADDRESS>             └─50_custom.conf
     Active: active (exited) since Fri 2024-11-08 15:10:34 +05; 1min 10s ago
 Invocation: 169c2f3833794986b0d6a27dcbbcc124
       Docs: man:uwsm(1)
    Process: 14619 ExecStart=/usr/bin/uwsm aux prepare-env -- hyprland.desktop (code=exited, status=0/SUCCESS)
   Main PID: 14619 (code=exited, status=0/SUCCESS)
   Mem peak: 12.9M
        CPU: 125ms

Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_CONFIG_DIRS
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_CONFIG_HOME
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_CURRENT_DESKTOP
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_DATA_HOME
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_MENU_PREFIX
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_SESSION_DESKTOP
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_SESSION_ID
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_SESSION_TYPE
Nov 08 15:10:34 archbtw uwsm_env-preloader[14619]:   XDG_VTNR
Nov 08 15:10:34 archbtw systemd[12988]: Finished Environment preloader for Hyprland, An intelligent dynamic tiling Wayland compositor.

●<EMAIL_ADDRESS>- Main service for Hyprland, An intelligent dynamic tiling Wayland compositor
     Loaded: loaded<EMAIL_ADDRESS>static)
    Drop-In<EMAIL_ADDRESS>

Ah yes, my bad.
So, I exited 'good' session with the 'bad' command and started the command from just shell. The output of systemctl --user status<EMAIL_ADDRESS>graphical-session-pre.target<EMAIL_ADDRESS>graphical-session.target
○ graphical-session-pre.target - Session services which should run early before the graphical session is brought up
     Loaded: loaded (/usr/lib/systemd/user/graphical-session-pre.target; static)
     Active: inactive (dead)
       Docs: man:systemd.special(7)

Nov 08 15:10:34 archbtw systemd[12988]: Reached target Session services which should run early before the graphical session is brought up.
Nov 08 15:12:52 archbtw systemd[12988]: Stopped target Session services which should run early before the graphical session is brought up.
Nov 08 15:12:55 archbtw systemd[15570]: Reached target Session services which should run early before the graphical session is brought up.
Nov 08 15:31:48 archbtw systemd[15570]: Stopped target Session services which should run early before the graphical session is brought up.
Nov 08 15:33:55 archbtw systemd[17144]: Reached target Session services which should run early before the graphical session is brought up.
Nov 08 15:34:34 archbtw systemd[17144]: Stopped target Session services which should run early before the graphical session is brought up.
Nov 08 15:34:36 archbtw systemd[18200]: Reached target Session services which should run early before the graphical session is brought up.
Nov 08 15:36:00 archbtw systemd[18200]: Stopped target Session services which should run early before the graphical session is brought up.
Nov 08 15:36:23 archbtw systemd[19356]: Reached target Session services which should run early before the graphical session is brought up.
Nov 08 15:36:50 archbtw systemd[19356]: Stopped target Session services which should run early before the graphical session is brought up.

○ graphical-session.target - Current graphical user session
     Loaded: loaded (/usr/lib/systemd/user/graphical-session.target; static)
     Active: inactive (dead) since Fri 2024-11-08 15:36:49 +05; 49s ago
 Invocation: 42cb3e1ac631401ba02771749d0053e8
       Docs: man:systemd.special(7)

Nov 08 15:36:25 archbtw systemd[19356]: Reached target Current graphical user session.
Nov 08 15:36:49 archbtw systemd[19356]: Stopped target Current graphical user session.

Those seem to be properly stopped.
Run systemctl --user status and systemctl --user --failed, from the same place.

Status

● archbtw
    State: degraded
    Units: 182 loaded (incl. loaded aliases)
     Jobs: 0 queued
   Failed: 1 units
    Since: Fri 2024-11-08 15:45:23 +05; 55s ago
  systemd: 256.7-1-arch
   CGroup<EMAIL_ADDRESS>           ├─app.slice
           │ ├─app-dbus\x2d:1.25\x2dorg.a11y.atspi.Registry.slice
           │ │<EMAIL_ADDRESS>           │ │   └─22564 /usr/lib/at-spi2-registryd --use-gnome-session
           │ ├─dconf.service
           │ │ └─22421 /usr/lib/dconf-service
           │ └─mpd.service
           │   └─22259 /usr/bin/mpd --systemd
           ├─init.scope
           │ ├─22249 /usr/lib/systemd/systemd --user
           │ └─22251 "(sd-pam)"
           └─session.slice
             ├─dbus-broker.service
             │ ├─22280 /usr/bin/dbus-broker-launch --scope user
             │ └─22283 dbus-broker --log 4 --controller 10 --machine-id 3f39857500fc40b5bf4e073a1c99c8a8 --max-bytes<PHONE_NUMBER>00000 --max-fds<PHONE_NUMBER>0000 --max-matches<PHONE_NUMBER>
             ├─pipewire-pulse.service
             │ └─22263 /usr/bin/pipewire-pulse
             ├─pipewire.service
             │ └─22260 /usr/bin/pipewire
             ├─wireplumber.service
             │ └─22261 /usr/bin/wireplumber
             ├─xdg-desktop-portal.service
             │ └─23110 /usr/lib/xdg-desktop-portal
             ├─xdg-document-portal.service
             │ ├─23115 /usr/lib/xdg-document-portal
             │ └─23126 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
             └─xdg-permission-store.service
               └─23119 /usr/lib/xdg-permission-store

failed

  UNIT                           LOAD   ACTIVE SUB    DESCRIPTION
● xdg-desktop-portal-gtk.service loaded failed failed Portal service (GTK/GNOME implementation)

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

1 loaded units listed.

grep PartOf= /lib/systemd/user/xdg-desktop-portal.service

graphical-session.target is inactive, but xdg-desktop-portal.service is still alive. This is strange, dependency was added a long time ago

grep PartOf= /lib/systemd/user/xdg-desktop-portal.service

/lib/systemd/user/xdg-desktop-portal.service:PartOf=graphical-session.target

Just checked on my machine, exiting via exit dispatcher does not leave xdg-desktop-portal.service.
Show your user journal after Nov 08 14:58:05. When was graphical-session.target deactivated? was wayland-session-shutdown.target ever mentioned?

Here's the full log for journalctl --user --since 14:58
log.txt

. When was graphical-session.target deactivated? was wayland-session-shutdown.target ever mentioned?

Search within systemctl output for both targets returned nothing

You have StatusUnitFormat=description in systemd/system.conf, so unit names do not appear in status messages.
From what I see, shutdown sequence begins correctly. Everything, including portals, is stopped when it should:
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Portal service (GTK/GNOME implementation)...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Portal service (Hyprland implementation)...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping Portal service...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping flatpak document portal service...
Nov 08 14:58:05 archbtw systemd[11081]: Stopping sandboxed app permission store...
Nov 08 14:58:05 archbtw systemd[11081]: Stopped flatpak session helper.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped flatpak document portal service.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped sandboxed app permission store.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Accessibility services bus.
Nov 08 14:58:05 archbtw systemd[11081]: Stopped Portal service.

But immediately portals are trying to start again:
Nov 08 14:58:05 archbtw systemd[11081]: Starting Portal service...
Nov 08 14:58:05 archbtw systemd[11081]: Starting flatpak document portal service...
Nov 08 14:58:05 archbtw systemd[11081]: Starting sandboxed app permission store...
Nov 08 14:58:05 archbtw systemd[11081]: Started sandboxed app permission store.
Nov 08 14:58:05 archbtw systemd[11081]: Started flatpak document portal service.
Nov 08 14:58:05 archbtw systemd[11081]: Starting Portal service (GTK/GNOME implementation)...
Nov 08 14:58:05 archbtw xdg-desktop-por[12005]: cannot open display:

Something tries to bring them up somewhere around the rest of<EMAIL_ADDRESS>deactivation. A process not wrapped in a unit or something in exec-shutdown?

Something tries to bring them up somewhere around the rest of<EMAIL_ADDRESS>deactivation. A process not wrapped in a unit or something in exec-shutdown?

If you mean hyprland.conf  (the only place, where I have autostart programms, aside from systemd) - here's my autostart config
exec-once = uwsm finalize
exec-once = $easyeffects & $clipboard & $openfreebuds &
exec-once=[workspace 1 silent] sleep 3; $browser & sleep 4; $clock & sleep 1; $filemanager & $telegram &

$telegram = flatpak run org.telegram.desktop
$easyeffects = flatpak run com.github.wwmm.easyeffects --gapplication-service
$clipboard = wl-paste --watch cliphist store
$openfreebuds = flatpak run pw.mmk.OpenFreebuds
$clock = $term -T tty-clock tty-clock -C3 -c -s -n -f "%A %d %B %Y (%Z)"
$filemanager = $term -T nnn  $HOME/.local/bin/nwrap
$browser = flatpak run org.mozilla.firefox

No exec-shutdown entries

Tried exiting while running org.gimp.GIMP flatpak, no could not reproduce.
Flatpak starts apps in scopes, so there is no need to wrap them in uwsm app (although it uses app.slice and no relations to graphical-session.target, but at least just running a flatpak app does not trigger this).
Try removing some/all items from exec-once to see if one/some of them cause portal startup on shutdown.
Also try wrapping whatever runs in $term with uwsm app.

Also try wrapping whatever runs in $term with uwsm app.

$term is footclient. Foot, itself, runs as systemd-unit (foot-server.service)

After commenting entries below, xdg-desktop-portal-hyprland  restarts normally, if session is exited with 'bad' command. mpd-notification.service

exec-once = $easyeffects & $clipboard & $openfreebuds &
exec-once=[workspace 1 silent] sleep 3; $browser & sleep 4; $clock & sleep 1; $filemanager & $telegram &

I restarted session with hyprctl dispatch exit 4 or 5 times, to confirm it works.

After some more testing (removing flatpaks from autostart) I can say - they are the culprits, as xdph restarts normally if there are no flatpaks in autostart.
I think the problem is that xdg-desktop-portal-hyprland doesn't have org.freedesktop..portal.Background implementation (see the related issue https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/177)

I don't know why mpd-notification doesn't restart, though. Probably, something wrong with the service? https://github.com/eworm-de/mpd-notification/blob/main/systemd/mpd-notification.service

It does not have After=graphical-session.target. It has After=dunst.service xfce4-notifyd.service which you do not seem to have.

I don't know why mpd-notification doesn't restart, though. Probably, something wrong with the service? https://github.com/eworm-de/mpd-notification/blob/main/systemd/mpd-notification.service

It does not have After=graphical-session.target. It has After=dunst.service xfce4-notifyd.service which you do not seem to have.

I have an override file with the following contents (I use mako)
[Unit]
 After=dunst.service xfce4-notifyd.service mako.service

[Service]
ExecStart=
ExecStart=/usr/bin/mpd-notification  -H localhost -p 6600 -m '${HOME}/Music' c -s 150 -t 10

Oh wait, I don't even start mako.service. I'm running it with dbus activation. Nevermid, then

Anyway, https://github.com/eworm-de/mpd-notification/blob/main/systemd/mpd-notification.service could use graphical-session.target in After.

It didn't work, though. I replaced notification services with graphical-session.target to no avail

What I can tell from logs, mpd-notification is always first to end on exit, but also frequently first to start:
# session start
Nov 08 15:12:54 archbtw dbus-broker-launch[15601]: Service file '/usr/share//dbus-1/services/fr.emersion.mako.service' is not named after the D-Bus name 'org.freedesktop.Notifications'.
# too early
Nov 08 15:12:54 archbtw systemd[15570]: Starting MPD Notification...
Nov 08 15:12:54 archbtw systemd[15570]: Started MPD Notification.
Nov 08 15:12:54 archbtw systemd[15570]: Starting Bind graphical session to PID 15584...
Nov 08 15:12:54 archbtw systemd[15570]: Started Bind graphical session to PID 15584.
Nov 08 15:12:54 archbtw systemd[15570]: Starting Environment preloader for Hyprland, An intelligent dynamic tiling Wayland compositor...
Nov 08 15:12:55 archbtw systemd[15570]: Finished Environment preloader for Hyprland, An intelligent dynamic tiling Wayland compositor.
Nov 08 15:12:55 archbtw systemd[15570]: Reached target Preparation for session of hyprland.desktop Wayland compositor.
Nov 08 15:12:55 archbtw systemd[15570]: Reached target Session services which should run early before the graphical session is brought up.
Nov 08 15:12:55 archbtw systemd[15570]: Starting Main service for Hyprland, An intelligent dynamic tiling Wayland compositor...
Nov 08 15:12:57 archbtw systemd[15570]: Started Main service for Hyprland, An intelligent dynamic tiling Wayland compositor.
Nov 08 15:12:57 archbtw systemd[15570]: Reached target Current graphical user session.
# should start here
...
# exit triggered, mpd-notification is first to die
Nov 08 15:31:47 archbtw systemd[15570]: Stopping MPD Notification...
Nov 08 15:31:47 archbtw systemd[15570]: Stopped target Current graphical user session.
Nov 08 15:31:48 archbtw systemd[15570]: Stopped Main service for Hyprland, An intelligent dynamic tiling Wayland compositor.
Nov 08 15:31:48 archbtw systemd[15570]<EMAIL_ADDRESS>Consumed 42.501s CPU time, 849.2M memory peak.
Nov 08 15:31:48 archbtw systemd[15570]<EMAIL_ADDRESS>Triggering OnSuccess= dependencies.
Nov 08 15:31:48 archbtw systemd[15570]: Stopped target Session services which should run early before the graphical session is brought up.
Nov 08 15:31:48 archbtw systemd[15570]: Stopped target Preparation for session of hyprland.desktop Wayland compositor.
Nov 08 15:31:48 archbtw systemd[15570]: Stopping Bind graphical session to PID 15584...
Nov 08 15:31:48 archbtw systemd[15570]: Stopping Environment preloader for Hyprland, An intelligent dynamic tiling Wayland compositor...
Nov 08 15:31:48 archbtw systemd[15570]: Stopped Bind graphical session to PID 15584.
Nov 08 15:31:48 archbtw systemd[15570]: Stopped Environment preloader for Hyprland, An intelligent dynamic tiling Wayland compositor.
Nov 08 15:31:48 archbtw systemd[15570]<EMAIL_ADDRESS>Triggering OnSuccess= dependencies.

It works, if Hyprland was previously closed with systemctl command, so not a big deal.

Does it work if stopping with uwsm stop or systemctl --user start wayland-session-shutdown.target?

No, it doesn't

Could you please set StatusUnitFormat=combined in /etc/systemd/system.conf, do systemctl daemon-reload and post journal from running uwsm stop in a session to starting a terminal in a new session (all with uwsm v0.20.4).

Could you please set StatusUnitFormat=combined in /etc/systemd/system.conf, do systemctl daemon-reload and post journalctl --user ... from running uwsm stop in a session to starting a terminal in a new session (all with uwsm v0.20.4).
sincelog.txt

...and also systemctl --user status in between sessions.

● archbtw
    State: running
    Units: 178 loaded (incl. loaded aliases)
     Jobs: 0 queued
   Failed: 0 units
    Since: Sun 2024-11-10 00:47:56 +05; 1min 22s ago
  systemd: 256.7-1-arch
   CGroup<EMAIL_ADDRESS>           ├─app.slice
           │ ├─app-dbus\x2d:1.27\x2dorg.a11y.atspi.Registry.slice
           │ │<EMAIL_ADDRESS>           │ │   └─5768 /usr/lib/at-spi2-registryd --use-gnome-session
           │ ├─dconf.service
           │ │ └─5624 /usr/lib/dconf-service
           │ └─mpd.service
           │   └─5467 /usr/bin/mpd --systemd
           ├─init.scope
           │ ├─5457 /usr/lib/systemd/systemd --user
           │ └─5459 "(sd-pam)"
           └─session.slice
             ├─dbus-broker.service
             │ ├─5488 /usr/bin/dbus-broker-launch --scope user
             │ └─5499 dbus-broker --log 4 --controller 10 --machine-id 3f39857500fc40b5bf4e073a1c99c8a8 --max-bytes<PHONE_NUMBER>00000 --max-fds<PHONE_NUMBER>0000 --max-matches<PHONE_NUMBER>
             ├─pipewire-pulse.service
             │ └─5471 /usr/bin/pipewire-pulse
             ├─pipewire.service
             │ └─5468 /usr/bin/pipewire
             └─wireplumber.service
               └─5469 /usr/bin/wireplumber

With https://github.com/hyprwm/Hyprland/issues/8398 exit dispatcher will behave more like stopping compositor unit. And with app-flatpak- ordering hopefully most of unclean session deactivation problems should go away.
StatusUnitFormat=combined did not apply, BTW.

So, Hyprland's exit dispatcher and uwsm stop will behave, like loginctl terminate-user ""? I'm mostly concerned about 'imperfect' units, like mpd-notification.service

StatusUnitFormat=combined did not apply, BTW.

Weird. I did set it and used daemon-reload command

It will behave close to systemctl --user stop<EMAIL_ADDRESS>Due to the way uwsm binds graphical session and login session together, that particular login session will end too.
loginctl terminalte-user "" is perfectly valid, but a bit of a nuclear-ish option. I just want to make sure that problems with plain graphical+login session deactivation method are resolved.


shortcut not working

Type: Feature Request
ctrl+ A shortcut not working.
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Remote OS version: Linux x64 6.1.43

Run the command: Developer: Toggle Keyboard Shortcuts Troubleshooting and report the results.  Also Reload with Extensions Disbaled - does the problem still exist?

go to setting and search shortcuts and check commands and delete other command who is same as which not working just like ctrl+c are kept as copy rest all delete.

I assume the problem is resolved.


Opengemini Monitoring

Opengemini k8s is deployed. Is there a monitoring plug-in like opengemini_exporter? I want to monitor it and connect it to the Prometheus monitoring system

Related features are being developed. Prometheus will be able to pull monitoring data from openGemini soon.

Ok thanks, looking forward to it


Want to add Dijkstra Algorithm

Description
Dijkstra Algorithm using the priority queue
Domain
Algorithm
Type of Contribution
Addition
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

I would like to add Dijkstras algorithm using Priority Queue, Please assign this to me. Thank You.

Hi @maheshdbabar9340, I would like to solve this issue, can you assign this to me?

/assign

@Mrjoy832 I added dijkstras algorithm cpp code please let me know if any changes are required.
Waiting for your response. Thank You.

Will be checked by eve

@Mrjoy832 Will you please check again pull request #1135? I just changed now.


Realtime notifications for launches and projects

I spent a lot of time trying to follow a good component design for this, and also try to update the data in realtime.
In the end, nothing worked as good as intended, so this basic approximation could be just a baseline for a future better implementation.
I still left some comments on the other attempts, as the code could be fixed and implemented later.

Well done, big piece of work done! A start to a new era on delta

Thanks Sasha!


Scrolling Issue

Hi Using Your MBX(*segment) Control everything is fine but when we scroll(swiping) thirdViewController  methods gets called in secondViewController any help

Hi Gantaios. Can you tell me more about the problem?


Strict ./sql/workbench/api/common/**/*.ts

Model view had a lot of issues... @alanrenmsft @Charles-Gagnon help testing here would be nice.

Pull Request Test Coverage Report for Build 240263738

79 of 166 (47.59%)  changed or added relevant lines in 38 files are covered.
6 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 38.993%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/arc/src/models/miaaModel.ts
0
1
0.0%

extensions/arc/src/ui/components/keyValueContainer.ts
0
1
0.0%

extensions/machine-learning/src/views/externalLanguages/fileBrowserDialog.ts
0
1
0.0%

extensions/machine-learning/src/views/models/manageModels/importModelWizard.ts
0
1
0.0%

extensions/machine-learning/src/views/models/prediction/predictWizard.ts
0
1
0.0%

extensions/resource-deployment/src/ui/deployClusterWizard/pages/azureSettingsPage.ts
0
1
0.0%

extensions/resource-deployment/src/ui/notebookWizard/notebookWizardPage.ts
0
1
0.0%

extensions/resource-deployment/src/ui/radioGroupLoadingComponentBuilder.ts
0
1
0.0%

extensions/resource-deployment/src/ui/wizardBase.ts
0
1
0.0%

src/sql/workbench/services/tasks/common/tasksService.ts
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/schema-compare/src/dialogs/schemaCompareDialog.ts
6
42.89%

Totals

Change from base Build 240246695:
-0.03%

Covered Lines:
18964

Relevant Lines:
44419

💛  - Coveralls


Create FUNDING.yml

Adds the ability for people to fund us individually (Unfortunately you can't do teams).

Oh that's new. I don't know if we want to make an organization just for this. Perhaps if we get a lot of people wanting to sponsor then definitely. I also don't know what the requirements are Legally for organization sponsorships.

Closing this for new can always reopen in the future


Without SD

Is it possible to run the raspiblitz without an SD Card? I run my pi just with a SSD.

There is an open issue to research booting the RaspiBlitz from HDD/SSD.
https://github.com/rootzoll/raspiblitz/issues/430
Please add your ideas and experiences there. Closing this issue as a double.


Is there some way to integrate alerta with grafana?

is there an easy way to integrate alerta with grafna？ It is stuff like plugin used by grafana

There will be ... https://github.com/grafana/grafana/issues/2209

thanks very much,satterly.

I'm happy to  leave this issue open until the grafana work is complete as a reminder.

Hello Grafana v4.0 is Out!
I want to test the Alert feature. Configure a Grafana Notification Webhook to send the alerta web ui.
Can you help me .

adding this to views.py in app/wesocket
@app.route('/webhooks/grafana', methods=['OPTIONS', 'POST'])
@cross_origin()
@auth_required
def grafana():
hook_started = webhook_timer.start_timer()
alerts = parse_grafana(request.data)

LOG.warning(alerts)

for incomingAlert in alerts:

    LOG.warning(incomingAlert)
    if g.get('customer', None):
        incomingAlert.customer = g.get('customer')

    add_remote_ip(request, incomingAlert)

    try:
        alert = process_alert(incomingAlert)
    except RejectException as e:
        webhook_timer.stop_timer(hook_started)
        return jsonify(status="error", message=str(e)), 403
    except Exception as e:
        webhook_timer.stop_timer(hook_started)
        return jsonify(status="error", message=str(e)), 500

    webhook_timer.stop_timer(hook_started)

if alert:
    body = alert.get_body()
    body['href'] = absolute_url('/alert/' + alert.id)
    return jsonify(status="ok", id=alert.id, alert=body), 201, {'Location': body['href']}
else:
    return jsonify(status="error", message="insert or update of grafana check failed"), 500

def parse_grafana(check):
check = json.loads(check)
evalMatches = check['evalMatches']
timeout = 60
alerts = []

for item in check['evalMatches']:
    LOG.warning(item['metric'])
    alerts.append(Alert(
        status='open',
        resource=item['metric'],
        event=check['state'],
        environment='Production',
        severity='critical',
        service=[check['ruleName']],
        text="Value:" + str(item['value']),
        origin='Grafana',
        event_type='Grafana_event',
        raw_data=item['value'],
        timeout=timeout,
        value='Error',
        group='group'
    ))

return alerts

and adding this to grafana should work
http://localhost:8080/webhooks/grafana?api-key=
method=POST

Tested but not working!

works here.. anything in the logs regarding the POST or other exceptions ?

does the function "def parse_grafana(check):" be first than the other one like the others webhooks

Makes no difference..
--
Marco.
On 2 Dec 2016, 12:21 +0200, colomboipl<EMAIL_ADDRESS>wrote:

does the function "def parse_grafana(check):" be first than the other one like the others webhooks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

ok, i dont have api key neither login on alerta side. i think that will be easier to implement.

This is my error from alerta side:
t=2016-12-02T19:32:58+0000 lvl=info msg="Sending notification" logger=alerting.notifier type=webhook id=0 isDefault=false
t=2016-12-02T19:32:58+0000 lvl=info msg="Sending webhook" logger=alerting.notifier.webhook
t=2016-12-02T19:32:58+0000 lvl=eror msg="Failed to send webhook" logger=alerting.notifier.webhook error="Webhook response status 500 Internal Server Error" webhook=Alerta_io

The problem is in the add_remote_ip function .

Can u share the alerta log in debug mode? The log I saw is from grafana
Sent from my iPad

On 2 Dec 2016, at 21:52, colomboipl<EMAIL_ADDRESS>wrote:
The problem is in the add_remote_ip function .
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I put it . Iḿ using the docker image from docker hub and I see that the alerta has an update that included the function add_remote_ip. Iḿ using now the new alerta but I have a problem with connection to the mongo

OK Now I cant put all running with yours version of the views.py. But this error occurs
=2016-12-02T23:19:03+0000 lvl=info msg="Sending notification" logger=alerting.notifier type=webhook id=0 isDefault=false
t=2016-12-02T23:19:03+0000 lvl=info msg="Sending webhook" logger=alerting.notifier.webhook
t=2016-12-02T23:19:03+0000 lvl=eror msg="Failed to send webhook" logger=alerting.notifier.webhook error="Webhook response status 405 METHOD NOT ALLOWED" webhook=Alerta_io

Grafana webhook integration is available from Alerta server version 4.8.17.

Thanks
A Sáb, 10 de dez de 2016, 22:22, Nick Satterly<EMAIL_ADDRESS>escreveu:

Grafana webhook integration is available from Alerta server version 4.8.17.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/guardian/alerta/issues/203#issuecomment-266248743,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL6FOu4ZImSsKzk9y8N3GOGUXLCBvIwdks5rGzQpgaJpZM4IltmQ
.


Docker image needs more documentation and doesn't seem to work

Running
docker run -v `pwd`:/app --rm -it --workdir /app licensefinder/license_finder /LicenseFinder/bin/license_finder

Yields this error:
/usr/bin/env: ruby: No such file or directory

Also, ideally license_finder should be on the PATH and be set as the ENTRYPOINT in the Dockerfile instead of having to pull the image and look around for the binary.

@ryanwalls not too long ago, we added a dlf (docker license finder) script. There's a note about how to use it in the README?
The command it runs from within that script is a bit different in that it gets a proper bash shell where environment variables and such get set up.
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && `echo $@`"

Can you try either dlf or something like the line above and let me know if it works for you?

See #426 for some recent updates/clarification in the documentation for both using the dlf script and for folks wishing to test their contributions before submitting them.


deis:perms is not working in fresh installation

I've just set up cluster with Deis 1.5.1 and trying to make user an admin. Unfortunately I get 404 on deis:perms:
$ deis perms
404 NOT FOUND
Detail:
Not found

deis-router:
Apr 15 17:01:02 production-coreos-1 sh[1191]: [INFO] - [15/Apr/2015:17:01:02 +0000] - <IP_ADDRESS> - - - 404 - "GET /v1/apps/org/perms HTTP/1.1" - 370 - "http://deis.prod.example.com/v1/apps/org/perms" - "python-requests/2.5.1 CPython/2.7.6 Linux/3.19.3-3-ARCH" - "~^deis\x5C.(?<domain>.+)$" - <IP_ADDRESS>:8000 - deis.prod.example.com - 0.553 - 0.553

deis-controller:
<IP_ADDRESS> "GET /v1/apps/org/perms HTTP/1.0" 404 22 "python-requests/2.5.1 CPython/2.7.6 Linux/3.19.3-3-ARCH"

This means the app wasn't found. You either need to change your local directory to the application directory, or specify the app name with --app=.

@carmstrong Thanks for the explanation. It worked indeed. But perms:create username --admin doesn't require -a key. I assume that --admin is system-wide, and perms:list is per-app?

yes you are correct in that sense. However, deis perms is synonymous with deis perms:list which is the per-app endpoint. If you want to list sysdamins then you have to use the full deis perms:list --admin (note: deis perms --admin may work but I've never tried)

Yes, deis perms --admin works. Awesome, thank you.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:29: patch_must_be_in_build: patch must be in build when source/patches is set.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:29: patch_must_be_in_build: patch must be in build when source/patches is set.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:34: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:35: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:37: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:38: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:39: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:41: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:73: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:73: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:73: missing_license_family: The recipe is missing the about/license_family key.
WARNING: /tmp/abs_87be6i03j2/clone/recipe/meta.yaml:73: missing_description: The recipe is missing a description
Errors were found


Create the new variables and constraints for the use of a tighter formulation for storage assets

There is a new binary variable to avoid charging and discharging simultaneously.
Extra constraints shown in #640

After a discussion with @g-moralesespana:

Binary variable resolution: lowest in/out flows to the storage asset. For example, one flow is for charging with a resolution of 1h, and the other is for discharging every 2h. The binary resolution should be every 2h.
Using the binary method, the capacity constraints are still written in the highest resolution to guarantee that the bounds of the flows are in power.


fragment_outreach_programs_dashboard.xml changed to use constraintLayout

There is some UI issue while logging in. Also, I am closing this PR as we have assigned whole welcome screen work () to @gconnect . Refer #82  & #23


Add Cluster API image builds

At the moment, we don't have a way to automate image builds and ship artifacts in a clean and defined way.
We should implement this and that will allow us to have a set of qcow2 files that we ship for new Kubernetes versions automatically.

I think the number on action item for this is to find a way to build the images inside of GitHub Actions and ship them as artifacts inside the project.  Once we have that, then we can also figure out the promotion pipeline.
However, I think the bigger question here is what is the are the signals we use to run the following actions:

When to build an image for a new Kubernetes version
When to rebuild an existing image (perhaps a security vulnerability has come out)
When to promote an image (i.e. upload into object storage)

I think we also should try and optimize for time when it comes to this since we're using more expensive large runners so we should reduce the amount of runs.

this is somewhat related: https://github.com/vexxhost/magnum-cluster-api/issues/163

i think the simplest way for now is that if the PR content contains /build-new-image then it will NOT download a new image but instead build it in CI, and then run the tests using it.
once done, it will publish an artifact.  after that, we can figure out how to promote it afterwards, that's another story i think.

This is done!


django admin

I have a question, lets say if I add a new Statement and Response, how do I update the training files (eg. ai.yml) or database from whatever i edited in Django admin ? Is there a command or do i have to do something ? Thanks!

As per my knoweldge currently this feature didn't support chatterbot other Django admin, What you are looking feature to achieve through this repository no ETA to complete https://github.com/gunthercox/DialogDataStudio


[AIFlow] Supports the pause_job_scheduling to pause the specified job scheduling

Describe the feature

Hope support pause_job_scheduling for sometimes a job is periodic, now only support pause_workflow_scheduling
Describe the solution you'd like

Describe alternatives you've considered

Additional context

@syntomic, IMO the pause_job_scheduling which pause the periodic job scheduling makes sense to me. Do you have interest to introduce this interface?


Let deliver sync screenshots!

Also deletes screenshots if none locally (this is what preview says anyway).
From daniszewskik
Assisted by lacostej
This should address #1549 and other issues.

Related #1510, #1516, #1549, #597, #550, #500

The tests failed because we just merged the other PR, so I'll re-trigger the build.

@KrauseFx I guess we need to release spaceship and bump deliver's dependency before this passes.

Hey @lacostej, just wanted to check on the status of this PR.

@KrauseFx I have to spend a bit of time on it to restructure the code. Hopefully sometime during the week-end

Thanks @lacostej, I'll close the PR in the mean-time, feel free to re-open whenever you have time 👍

@lacostej @KrauseFx any updates/plans on this PR? It seems to fix #1590, however, I've faced this issue again today


Questions about GFX API

Thank you for a great library. I am considering to use Sokol instead of Dawn, because it is small and simple.

Compute support is planned. Will it support float-f16, atomics and subgroups(except nvidia)?
Sokol designed with wasm as first-class citizen. Why not WGSL? It will be hard to use Tint as offline WGSL->GLSL compiler for my own project? There are only one @glsl_options?
It will be helpful to share best practices for binding groups according to frequency of change, like in webgpu-best-practices. Also Attributes/buffers have third level of nesting.

    state.pip = sg_make_pipeline(&(sg_pipeline_desc){
        .shader = sg_make_shader(triangle_shader_desc(sg_query_backend())),
        .layout = {
            .attrs = {
                [ATTR_vs_position].format = SG_VERTEXFORMAT_FLOAT3,
                [ATTR_vs_color0].format = SG_VERTEXFORMAT_FLOAT4
            }
            .buffers[0].stride = 24
        },
    });

instead of
    state.pip = sg_make_pipeline(&(sg_pipeline_desc){
        .shader = sg_make_shader(triangle_shader_desc(sg_query_backend())),
        .layout_attrs = {
             [ATTR_vs_position].format = SG_VERTEXFORMAT_FLOAT3,
             [ATTR_vs_color0].format = SG_VERTEXFORMAT_FLOAT4
        },
        .layout_buffers[0].stride = 24
    });

As I understand all this structs will be additional garbage collected class, if I using FFI with GC language? Anyway I don't have strong opinion here.

Compute support is planned. Will it support float-f16, atomics and subgroups(except nvidia)?

I don't know the complete compute feature set yet, but in general, only features will be supported that work across D3D11, GL 4.3+ core profile (e.g. without extensions), Metal and WebGPU. I typically look at WebGPU and then check what additional restrictions apply for GL.

Why not WGSL?

You can feed WGSL directly into sokol_gfx.h, but only if the WebGPU backend is used (e.g. see: https://github.com/floooh/sokol-samples/tree/master/wgpu). I haven't evaluated Tint deeply enough yet to decide if it can be complete replacement for SPIRVCross. WGSL may be supported as cross-backend shader authoring language at some point in the future,but don't hold your breath.
As for your third point: the additional nesting doesn't have any runtime cost since the structs are nested and not dangling off.. The entire sg_pipeline_desc is a single blob on the stack (WebGPU is actually less efficient in that regard for many desc structs).


Public cloud Azure access

Tested. Now Public Admins can still see the Azure feature.
Needs to be checked on Prod when it is passed there.