Can't start Mnesia with Pow in production via releases

Hey, thanks again for awesome work and great library.
I've got stucked with configuring Mnesia for using in production with releases.
I assume that I misconfigured some options and would appreciate if somebody will point me out where exactly.
I have Umbrella Phoenix app with Pow which I would like to deploy via releases.
My main :pow config is:
config :myapp_web, :pow,
  repo: MyApp.Repo,
  user: MyApp.Identity.User,
  users_context: MyApp.Identity,
  mailer_backend: MyAppWeb.Mailer,
  web_mailer_module: MyAppWeb,
  cache_store_backend: Pow.Store.Backend.MnesiaCache,
  extensions: [PowResetPassword, PowEmailConfirmation],
  controller_callbacks: Pow.Extension.Phoenix.ControllerCallbacks

And here is MyAppWeb application:
defmodule MyAppWeb.Application do
  use Application

  def start(_type, _args) do
    # Ensure that the elixir nodes are connected for running distributed mnesia
    connect_nodes()

    # List all child processes to be supervised
    children = [
      MyAppWeb.Endpoint,
      {Phoenix.PubSub, name: MyAppWeb.PubSub},
      # Starts a worker by calling: MyAppWeb.Worker.start_link(arg)
      # {MyAppWeb.Worker, arg},
      {Absinthe.Subscription, MyAppWeb.Endpoint},
      # Run distributed MnesiaCache
      {Pow.Store.Backend.MnesiaCache, extra_db_nodes: Node.list()},
      # Recover MnesiaCache for all nodes from oldest node after network splits
      # Use Unsplit after adding nodes
      Pow.Store.Backend.MnesiaCache.Unsplit
    ]

    opts = [strategy: :one_for_one, name: MyAppWeb.Supervisor]
    Supervisor.start_link(children, opts)
  end

  def config_change(changed, _new, removed) do
    MyAppWeb.Endpoint.config_change(changed, removed)
    :ok
  end

  defp connect_nodes() do
    Enum.each(nodes(), fn node ->
      Node.connect(node)
    end)
  end

  defp nodes() do
    {:ok, hostname} = :inet.gethostname()
    # Name nodes as "a" and "b"
    for sname <- ["a", "b"], do: :"#{sname}@#{hostname}"
  end
end

Release config in umbrella root mix.exs:
      releases: [
        myapp: [
          applications: [
            myapp: :permanent,
            myapp_web: :permanent
          ],
          version: {:from_app, :myapp_web}
        ]
      ]

When I do MIX_ENV=prod mix release myapp everything is fine but when I start server with _build/prod/rel/myapp/bin/myapp start I've got:
10:42:37.250 [info] Running MyAppWeb.Endpoint with cowboy 2.8.0 at :::4001 (http)
10:42:37.251 [info] Access MyAppWeb.Endpoint at http://api.myapp.com
10:42:37.258 [info] Application myapp_web exited: MyAppWeb.Application.start(:normal, []) returned an error: shutdown: failed to start child: Pow.Store.Backend.MnesiaCache
    ** (EXIT) an exception was raised:
        ** (CaseClauseError) no case clause matching: {:aborted, {:badarg, :schema, :unknown}}
            (pow 1.0.21) lib/pow/store/backend/mnesia_cache.ex:352: Pow.Store.Backend.MnesiaCache.change_table_copy_type/1
            (pow 1.0.21) lib/pow/store/backend/mnesia_cache.ex:300: Pow.Store.Backend.MnesiaCache.init_cluster/1
            (pow 1.0.21) lib/pow/store/backend/mnesia_cache.ex:136: Pow.Store.Backend.MnesiaCache.init/1
            (stdlib 3.13) gen_server.erl:417: :gen_server.init_it/2
            (stdlib 3.13) gen_server.erl:385: :gen_server.init_it/6
            (stdlib 3.13) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

I suppose that problem is with nodes/distributed system, because when I remove this lines in application code it doesn't fail:
      # connect_nodes()
      # {Pow.Store.Backend.MnesiaCache, extra_db_nodes: Node.list()},
      # Pow.Store.Backend.MnesiaCache.Unsplit

But when I do login it's not working and in logs I see this error:
11:00:59.514 [error] #PID<0.4840.0> running MyAppWeb.Endpoint (connection #PID<0.4834.0>, stream id 6) terminated
Server: localhost:4001 (http)
Request: POST /api
** (exit) {:aborted, {:no_exists, [Pow.Store.Backend.MnesiaCache, ["credentials", "fd6d8249-4f45-4e7c-acaf-c333d3086941"]]}}

What I'm doing wrong?

It looks correct. Does this work in local? As wonderful as Mnesia is, it's a pain to debug, so we'll just have to figure it out by elimination. My first though would be to wipe any existing Mnesia data files on your server in case it was set up incorrectly.

Thanks a lot. It looks strange, but right now it works in container but not in local env. Sorry for open issue with that, of course it's not a Pow issue.

but not in local env
As Dan mentioned try to delete the Mnesia data, there should be a mnesia directory in your application root.

I'm currently struggling with this, did you eventually figure out the issue?
I'm using Google Cloud Platform and I have a volume mapped to /mnesia.  It was working before, but when I started using Elixir releases it broke with the same error as you.
# mix.exs
  def application do
    [
      mod: {MyApp.Application, []},
      extra_applications: [:mnesia, :logger, :runtime_tools]
    ]
  end

# config/config.exs
config :mnesia, dir: '/mnesia'

# Setup the endpoint in `prod.secret.exs` for my release
config :fb_scrape_db, MyAppWeb.Endpoint, server: true

# Added to my children in `application.ex`
Pow.Store.Backend.MnesiaCache,

# In my `APIAuthPlug` copied from the documentation
  defp store_config(config) do
    # backend = Config.get(config, :cache_store_backend, Pow.Store.Backend.EtsCache)
    backend = Config.get(config, :cache_store_backend, Pow.Store.Backend.MnesiaCache)

    [backend: backend]
  end

Built with the docker image: elixir:1.11.3-alpine

@cheerfulstoic finally got around to test it, works well with a elixir:1.11.3-alpine docker release. You might have had a build that unexpectedly quit which caused the mnesia data to be malformed. You should remove everything inside /mnesia and start it up again. Let me know if clearing the directory works.

I actually don't know how to clear the directory on GCP 🙈
But I don't think it's malformed because I rolled back to my old docker image which wasn't using Elixir releases and the sessions started working again (no need to login again)

But I don't think it's malformed because I rolled back to my old docker image which wasn't using Elixir releases and the sessions started working again (no need to login again)

I believe this is it. Does the new docker image have a new OTP version? Might have internal changes to mnesia. Could also just be simple permissions change with the OS. In any case, it's definitely working with a cleared volume for me (I tested with a failed start up sequence just to be sure I could trigger the :no_exists error)

Hrmm, good point... It looks like I went from using the image elixir:1.10.3 to the image elixir:1.11.3-alpine.  Best as I can tell those use OTP 22 and 23 respectively.  I think I'll give it a try again a bit later without changing the elixir version number and see if that works (if for no other reason than to debug the issue)

You can try switch the volume or the mnesia directory (`config :mnesia, :dir, '/new/path/to/dir') for the new release to ensure it initiates from blank state. Be aware that this means all users currently logged in will have to log in again. This should resolve the issue though. Not sure if there's any way to migrate if it's because of OTP changes.


Typeahead auto-open on init

Hello,
I'm binding Typeahead with v-model to my internal variable.

But when I declare a default value for val.country Typeahead open automatically the drop down list. I think because the plugin finds a "changed" event of the input value.
Is there a way to close programmatically the dropdown list or to block this behavior?

I had that issue, I set the limit to zero initially and then when someone types I change limit to 4.  Sorta acts as a disable initially and reenable when someone types.

            Style
            <typeahead
                v-model="beer.style.stylename"
                placeholder="Style"
                async-key="data"
                :async="getAsyncStyleUrl"
                :template="asyncStyleTemplate"
                :on-hit="callBackStyle"
                :limit="typeaheadLimit">
            </typeahead>

data (){
        return {
            asyncStyleTemplate: '{{ item.stylename }}',
            typeaheadLimit: 0
        }
    }

enableTypeahead() {
            this.typeaheadLimit = 4;
        }

Nice workaround @tehjrow
I made it work by alterring the source (in Typeahead.vue, or the js created from it):
I added a prop to the component ( around line 35 ):
    matchStart: { type: Boolean, default: false },
    supressInitialSearch: { type: Boolean, default: false }, // added
    onHit: {

And then I changedf the  created  hook to respect this property (around line 125)
      if (! this.supressInitialSearch) {
          this.__update();
      }

And now the property can be added to the typeaheads when needed:
                <typeahead
                           supress-initial-search="true"
                           :on-hit="...">

This seems to work for me, to prevent the initial search and popup


Dictionary command does not work

Is there an existing issue for this?

[X] I have searched the existing issues

Description of the bug
https://owlbot.info/ no longer exists.
Steps To Reproduce

Use the /dictionary command.

Expected behavior
Reply with the definition of the provided word.
Screenshots
No response
Additional context
No response

Qaves at Skyra Lounge suggested using https://dictionaryapi.dev/, however, I don't have the bandwidth to do the change atm


Allow var() with Shared<T: Atomic>

Extend the use of var() and Shared<> so it can be used with more atomic types.

Thanks for the PR!

Actually, the PR did not compile, so I'm reverting it.


IndexError when handle http response

I receive a http response like this,
HTTP/1.1 200 OK
	Content-Type: application/octet-stream
	Content-Length: 89606
	Content-Disposition: attachment; filename="MB-500Ap_2009-01-12.cfg"
	Connection: close

Brickcom-50xA
OperationSetting.locale=auto
HostName.name=cam
ModuleInfo.DIDO_module=1
ModuleInfo.PIR_module=0
ModuleInfo.WLED=0
SensorFPSSetting.fps=0
ModuleInfo.AUTOIRIS_module=0
ModuleInfo.IRCUT_module=0
ModuleInfo.IRLED_module=0
ModuleInfo.lightsensor=0
ModuleInfo.EXPOSURE_module=0
ModuleInfo.MDNS_module=0
ModuleInfo.PTZ_module=1
ModuleInfo.MSN_module=0
ModuleInfo.WIFI_module=0
ModuleInfo.watchDog_module=0
ModuleInfo.sdcard_module=1
ModuleInfo.usbstorage_module=0
ModuleInfo.sambamount_module=0
ModuleInfo.QoS=0
ModuleInfo.shutter_speed=0
ModuleInfo.discovery_internet=1
ModuleInfo.POE_module=
ModuleInfo.audio_record=1

it throws exceptions.IndexError, but I use chrome visit the same url,It has not error

Please provide the traceback for the IndexError you receive or a URL that we can use to reproduce this.

We also need the output from python -m requests.help or failing that python -c 'import requests; print(requests.__version__)'

python -m requests.help output is
{   "chardet": {     "version": "3.0.4"   },   "cryptography": {     "version": "2.1.1"   },   "idna": {     "version": "2.6"   },   "implementation": {     "name": "CPython",     "version": "2.7.14"   },   "platform": {     "release": "10",     "system": "Windows"   },   "pyOpenSSL": {     "openssl_version": "1010006f",     "version": "17.3.0"   },   "requests": {     "version": "2.18.4"   },   "system_ssl": {     "version": "100020bf"   },   "urllib3": {     "version": "1.22"   },   "using_pyopenssl": true }
traceback output is:
    return request('get', url, params=params, **kwargs)
  File "C:\Python27\lib\site-packages\requests\api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Python27\lib\site-packages\requests\sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Python27\lib\site-packages\requests\sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "C:\Python27\lib\site-packages\requests\adapters.py", line 440, in send
    timeout=timeout
  File "C:\Python27\lib\site-packages\urllib3\connectionpool.py", line 617, in urlopen
    **response_kw)
  File "C:\Python27\lib\site-packages\urllib3\response.py", line 456, in from_httplib
    headers = HTTPHeaderDict.from_httplib(headers)
  File "C:\Python27\lib\site-packages\urllib3\_collections.py", line 312, in from_httplib

I can provide a test url, http://<IP_ADDRESS>/configfile.dump,username and password is admin,basic auth.thanks a lot!

That's not a complete traceback. I don't see the IndexError in that output

I was able to reproduce this. It's a bug in how urllib3 handles headers that start with ' ' or '\t' (which these headers do.

All of the headers in this response start with '\t' and so https://github.com/shazow/urllib3/blob/ead61e0fd4f386339d78baf766f9188832ddead3/urllib3/_collections.py#L312 fails because headers is [] and headers[-1] generates an IndexError. It's unclear to me what was being handled by that in https://github.com/shazow/urllib3/commit/ed15c4ab9d64e280ea38b5be24c61a0ae3dfbe81

The headers in this response may not start with \t. \t is reserved explicitly for continuation lines, which these are not. This is simply a malformed HTTP response, and it's not really reasonable to try to parse it correctly.


Create repository from ZIP / Use as transport tool

I am currently (mis)using ABAPGit to transport Z-Coding from our normal R/3 system to a sandbox (empty) S/4 system.
For use cases like this, it would be convenient to have a function "New Offline from ZIP" besides "New Online" and "New Offline" in the repository list (in the target system).

Ah, I just saw in the documentation that the package name is not part of the repository. However, it is in the filename of the ZIP file.
But the repository name is not available, or is it?

You can name the offline repository and use any package as you like (*). Then import the ZIP.
(*) An exception is repositories using a namespace. Then the package you use also has to be in this namespace.

I know I can do this (I just did it yesterday).
My suggestion is: Maybe this use case is so popular,  that it would be worth while to have a direct function button (and automatic use of the package name from the ZIP file) for it.

For example, the file name would be abapGit-main.zip. What should be the package? $abapgit, zabapgit? The package also determines transport paths. So I don't think it's something to automate.
I think it would be nice, though, if we could specify the "recommended target package" in the repo settings (.abapGit.xml). Then we could use that for the initial pull if the user doesn't enter a package. This would work for online and offline repos.

The ZIP file names that the program creates for me (when I export a Z package from an SAP system into a ZIP) are always named with the package:
ZS_DEV_TOOLS_COMMON_20210924_100837
ZBAS_20210923_140543
ZX_MULTI_USE_INCLUDES_20210924_100659

I thought you meant the file download from GitHub for example. If you use the AG export, you are right. You could add "ZIP to Package" here:

I'm not sure if this is something for everyone. You could use a copy of ZCL_ABAPGIT_GUI_PAGE_EX_PCKAGE to get started.

Ah, I was not thinking of that part of the process (in the source system), but the other (in the target system).
I would think that many people use (or would like to use) abapGit as an occasional transport tool between systems (for sandbox systems, or occasional distribution of tool packages to other system lines). But I think that it is up to you ("core team") to decide.
It is just a convenience function, so I would not implement it unless you decide that it is worth while.

Your requirements are going more into the direction of an "ABAP Package Manager" (apm). This has been discussed in various places:
https://github.com/abapGit/abapGit/issues/3152, https://github.com/abapGit/abapGit/issues/217, https://github.com/abapGit/abapGit/issues/2236, https://github.com/abapGit/abapGit/issues/2892
I'm working on something like this but don't have any timeline yet.

Well, my suggestion is not about things like dependencies, it is much simpler.
On the other hand, this comment in one of the issues you mentioned - for example - sounds sensible to me.
I close the issue for now. It was just a suggestion.


fix log_saver bug:

delete local log file if it's synced to s3
make local/s3 file path consistent

@pgarbacki @MaoYe

r+ but @MaoYe should have another look as he is the author of this piece of code.

r+, thanks!


Diary - XML demo

XML is powerful tool for structured data presentation and XSLT is great presentation layer transformer. Adding the popularity of XML, it would be worth to support as one of provided plugins.
Demo would include the generic XML-as-table sample and sample of tuning up the rendering using specialized for data XSLT.
The sample should be easy to comprehend and visually distinctive. With a vast variety of available datasets like in https://github.com/awesomedata/awesome-public-datasets, most of those are pretty dry for showcase. So far I found few interesting samples for XML data:

MediaWiki API
countries listing

The shop or real estate API would be another good showcase but could not find free to use one 🤔
For `countried listing mledoze / countries gives the listing in XML and SVGs for flags.
Which are published in CDN

<EMAIL_ADDRESS>pics in SVG<EMAIL_ADDRESS>
The xml-as-table.xslt would be a default template, countries-pre-pipeline.xslt would massage data before passing to default template to inject image URL, countries-post-pipeline.xslt would change the flag URL to image.

There is a need for XML with embedded XSLT to show the ability of rendering UI. While xml.xsd given a perfect example of such, it is not anyhow attractive or visual.
Would need something more compelling. As an option, countries.xml with embedded XSLT for self-transformation.
Alternative could be a template for personal web site with theming as post-processor sample. The URL routing would be a programming sample for fetch-element parameters passed to XSLT to pick selected page from URL #hash


support : and ? in flow context as per updated YAML spec

This allows 3 more tests in the official test suite to pass.

Not quite correct. Will make another attempt soon.


Offiline Queque buffering limited 1 hour

Environment

OS: ubuntu 14.04
Erlang/OTP:
EMQ: 2.1

Description
Offline buffering mqtt device , we have a requirement  when device offline we require all messages to be buffered and sent client when it comes online next
A description of the issue
Currently, offline message seems to be buffered only for one hour we tried two settings, but offline buffering seems to work for 1 hour
mqtt.mqueue.max_length = infinity
mqtt.session.expiry_interval = 24h
Please me know is there any else setting we can change /tweak to achieve desired effect

Persist messages to databases.

	Thanks for tip ...but How is there a plug-in for that ? Any link  to documentation or guide will help

	Get Outlook for iOS

On Sat, Jul 28, 2018 at 8:34 PM +0530, "Gilbert"<EMAIL_ADDRESS>wrote:
Persist messages to databases.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Look at this link :http://emqtt.io/docs/v2/plugins.html. You could see that EMQ has mechanism to load plugins . And the feature you want is in enterprise edition of EMQ which support plugins to persist message to databases.

Thanks ! will try the plugin ...in case of any issues revert
On Sun, 29 Jul 2018 at 6:57 AM, Gilbert<EMAIL_ADDRESS>wrote:

Wait, I have mistaken your issue. Look at this plugin, it is open source
plugin. emq-retainer
http://emqtt.io/docs/v2/plugins.html#emq-retainer-retainer-plugin
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/emqtt/emqttd/issues/1699#issuecomment-408645461, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGKklJ6ZzFob4quXpMiGYdd_O5KtT5etks5uLQ9rgaJpZM4Vi0Us
.


phosphatidylinositol terms

increased levels of PI(3,4)P2
increased levels of PI(3,4,5)P3
fig 2
PMID:15249580

decresed PI(4,5)P2 levels

decreased cellular phosphatidylinositol-3,4-bisphosphate level FYPO:0006485
decreased cellular phosphatidylinositol-3,4,5-trisphosphate level FYPO:0006486
increased cellular phosphatidylinositol-3,4-bisphosphate level FYPO:0006487
increased cellular phosphatidylinositol-3,4,5-trisphosphate level FYPO:0006488
normal cellular phosphatidylinositol-3-phosphate level FYPO:0006489
with synonyms
edit file: c97b3b6deffa646901716342b8e38d25e85ae32e
release: 26292d5dada779e4c2e25ace9ed0d27185395cda


add TargetObjectiveImmuneComponent + minor KillPersonCondition refactor/cleanup

About the PR

adds the TargetObjectiveImmuneComponent that makes the entity unable to be assigned as a kill objective target
Why / Balance

Useful for admins, event characters, CC inspectors, maybe even ghost roles. Mostly needed downstream for events, PRing it here just makes it easier for me.
Technical details

OnHeadAssigned and OnPersonAssigned classes now use AssignRandomTarget with a bool value whether the target should be a head or not to avoid the duplicated code, overall cleaner, most of the code is otherwise same. Added another check for TargetObjectiveImmuneComponent, made the component too obviously.
Media

hopefully good enough of a clip making sure nothing is broken, very crispy to fit it in 10 MB
https://github.com/user-attachments/assets/6cc7dab2-7dfc-42a1-bb93-6ad3b3af8675
Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

no cl no fun

Exempt would maybe be a better term?

Exempt would maybe be a better term?

The name is based off AntagImmune which prevents the target from becoming an antagonist, I went with that mostly so that admins can just search "immune" in the VV addcomp list when setting up an event character.

@Tayrtahn uses a Predicate now to filter out the targets based on whatever condition, also added a fallbackToAny bool value that can be set to false if for whatever reason we don't want to fall back to a target from outside the filtered pool.

yeah no i got tired of dealing with conflicts for 4 months


Issue 1094

This addresses #1094 by doing typeof tests against globals to ensure they exist.

Thanks @markwolff, both those changes are actioned. Didn't realise xhr wasn't always detected as function, was it object? (I'm just curious)
And I can't believed I missed a === 🤦♂

@aaronpowell Yes I believe it was reported as an object for IE9 (and 10?), even though we can patch it in the same way


Please specify the license for this package

Could you please specify the license used by this package?
Assuming that you want to release under "the GPL v3 or any later version", the best way to do that would be to add this to the library header:
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

You could also, or instead, add a LICENSE file containing the text of the GPL-3. But if you only add that file, then the "or (at your option) any later version" bit won't be known.  I recommend that you do both.
If this is too noisy for you, then you could also add one of these following lines to the header.  (I do however recommend against doing only that - a judge might decide that this is not sufficient.)
;; License: GNU General Public License version 3, or (at your option) any later version
;; License: GNU General Public License version 3, or any later version
;; License: GNU GPL version 3, or (at your option) any later version
;; License: GPL version 3, or (at your option) any later version
;; License: GPL version 3, or any later version
;; License: GPL v3, or (at your option) any later version
;; License: GPL v3, or any later version
;; License: GPL-3+

Thanks!

Please put the actual text of the license (http://www.apache.org/licenses/LICENSE-2.0.txt) into the LICENSE file and/or put the permission statement into the library:
;; Copyright 2017 Craig Andera
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;;     http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.

Friendly ping!

Why?

It would help tools that try to extract the license.
I have written such a tool as part of my work on the Emacsmirror, and while I have added some kludges to detect licenses that are specified in a non-standard way, I would prefer not to add too many matchers that could lead to false-positives.

Can you provide a link to the standard or standards for license inclusion?

Putting the actual license into the file named LICENSE is a convention that... I feel doesn't need much justification. I am sure there is some documentation or standard somewhere that says that this is what should be done, but I don't know it. Actually, since this project is hosted on Github, it is relevant that this is documented here: https://help.github.com/articles/licensing-a-repository.
As far as the permission statement goes. Look at any elisp library that is distributed with Emacs to see how it should look like when using the GPL. For the Apache-2.0 license this is documented here: https://www.apache.org/licenses/LICENSE-2.0#apply.

Sorry I'm being terse - super busy and I haven't worked on this project in forever. Will accept a PR, but not planning to spend more time on this. Thanks for the info - will try to comply in future projects.


Synchronize submodules with LLVM at llvm/llvm-project@2be569870486

Updates LLVM dependencies to match
2be569870486.

llvm-bazel to
7280663185ee
TensorFlow to
856698be1fe9

./scripts/git/update_to_llvm_syncpoint.py

Closed by 68e439a


[WIP] Add another component

NO TESTS HAVE BEEN ADDED YET AS WE STILL NEED TO DECIDE ON THIS APPROACH
What
This adds an alternative approach to the Add another component.
Why
This uses a template-based solution which is more flexible and less specific code.
Testing locally
Visit http://whitehall-admin.dev.gov.uk/component-guide/add-another/
Screenshot
With JS

Without JS

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

😢

Sorry @DilwoarH! 🙈 I'm just closing some old PRs to tidy up the list. I'd like to think we'll improve our 'add another' component at some point, but we haven't got to it yet!


Draft proposal for experimental field

(Not sure if this is the best place/right way to start this conversation, but would be interested in feedback.)
TLDR: a way to include items in an API but marked as "experimental" to set expectations that they could change or go away, and that wouldn't be a "breaking change" in semver terms.

@MikeRalphson thanks for the feedback and apologies for taking a while to follow up. I've made some edits and responded inline.

As a result of #2604 the filename for this proposal should change to use a dated prefix. Please could you update this PR to match? Apologies for the extra work.

@MikeRalphson no problem, that's done.

Since this PR was submitted, we've created some special interest groups (SIGs), and one of them is planning to address the lifecycle, which I think this falls into. There isn't a lot of traction yet, and we're still working out how the group will actually operate, but I'd also suggest we use Discussions, either in the spec repo (this one) or possibly around the new repo linked above. There are some similarities to #1973 worth noting, as well. (Thanks @darrelmiller for flagging this proposal to the nascent lifecycle SIG!)

Thanks @earth2marsh, that looks interesting.
What would be the right next step for this PR?

TBH, I'm not sure. I think as the lifecycle SIG gets traction, that this would be the basis of a discussion there where the overall lifecycle issues are considered? I'm not sure anyone has stepped up to run it yet, but I plan to stay involved and will flag this (and reach out) once it begins getting momentum.

Filed #3257 to revive and clarify our proposals process.  Once we figure it out, we'll resolve this PR accordingly.

@OAI/tsc is this proposal, like PR #3286, better started as an x- field to test it out?  (@davidjgoss there is a registry for such fields which @miqui is updating as it has been a bit under-utilized).
If so, it would seem like this document should be associated with that, rather than a proposal in this repo.  If not, we will get to looking at the draft proposal process soon and can evaluate this once we've revived that process.

This is already "out there" as an extension (citation: https://github.com/search?q="x-experimental%3A+true"&type=code), and there was quite a bit of engagement around the issues for it. Can we say what is needed for this to merit consideration for 3.2?

@lornajane oh nice!  It... did not even occur to me to check 😅 🤦
Yeah, that seems like a good reason to at least accept the proposal into the repo (meaning merging this PR, assuming it is in alignment with the x- usage that's actually happening).  We can then work from the merged proposal document on the actual spec change.  At least I think that's how it's supposed to work?

For what it's worth, we use x-ibm-release-level with possible values of experimental, beta, and preview. It seems like it would be worth considering whether to combine this kind of annotation into a single enumeration property with deprecated and possibly some other values.

The x-experimental also shows up in the extensions dataset from 2021 https://github.com/Mermade/openapi-specification-extensions/blob/main/extensions/2021/extensions.tsv#L154 so it looks like it's actively in use. I also spot x-deprecated here and agree with @hudlow that we could consider covering more lifecycle states.
Reports of an API Lifecycle SIG have been greatly exaggerated, it looks like there's a repo and a slack channel but no activity since the setup a couple of years ago in either.

@davidjgoss Would you be able to revisit this proposal and make some of the proposed updates? I'm in support of us adopting this change.

@lornajane sure, I’ll try and get those changes done over the next few days or so.
(Thanks everyone for input.)

merging this PR, assuming it is in alignment with the x- usage that's actually happening

Just noting the x-experimental usage that I can find in the wild is on operations and schemas. We have included parameters also in this proposal, but I'm not opposed to omitting them if we feel that's a better way to start.


support log scales

Consider a plt.LogScale() function like:
void LogScale(bool xAxis: false, bool yAxis: false)

This will have all sorts of side effects, but let's explore them.
A strong start is to modify the coordinate/pixel conversion functions to do a log conversion:
https://github.com/swharden/ScottPlot/blob/4bc377cc10a33ee25b20e8784a4822aee1b8ff91/src/ScottPlot/Settings.cs#L395-L411

What a can of worms! Lots of the code currently expects a linear canvas:

mouse click/drag panning and zooming
axis tick labels
rendering functions (data-to-screen pixel lookups)

I'm going to put idea on the back burner until at least the next major release. This will require re-coding a LOT to support, but I'd still like to get there eventually.


Add vit staging tool page

Adds the VIT staging landing pages for both 3.0 and 5.1 feeds, as per this Pivotal Card.
Sorry about the slightly out-of-order merging in of master at the end rather than the start, but there were no overlaps so seemed innocuous.

The location of the VIT is going to change per discussions.


Steal non Java-16 related updates

This PR takes the updates not directly related to Java 16 from #13 given the indications that the 1.17 update will not be considered for a while.


Conditionally do 'console.log' call

Description
Verify the presence of the console.log function before to call it.
Purpose
Some browsers fail on console object

LGTM


How to add icons at the top of the sidebar?

I want to add some icons at the top of the sidebar. Though I read the related docs, I have no ideas. Could you give me a hand? Thanks.

Using Webview API I can add Icon to my Webview panel using:
const onDiskPath = vscode.Uri.file( path.join(context.extensionPath, ".images", "webview_icon.png"));
this.panel.iconPath = onDiskPath;

How are you opening this tab?

Check this out: https://code.visualstudio.com/api/references/contribution-points#contributes.menus

@luhc228
I made it work like this. You have to have the command and if you want it to be displayed as a button you add an entry to "menus" as "editor/title". Just make sure the "group" is "navigation"
"contributes": {
    "commands": [
      {
        "command": "YOUR_COMMAND",
        "title": "COMMAND TITLE",
        "icon": {
          "light": "/.images/icon2.png",
          "dark": "/.images/icon2.png"
        }
      }
    ],
    "menus": {
      "editor/title": [
        {
          "command": "YOUR_COMMAND",
          "alt": "markdown.showPreviewToSide",
          "group": "navigation"
        }
      ]
    }
}

Result


Compact number formatter

Compact number formatter defined in hoist-react. Created new format testing component in toolbox.

Sure - I've been working on it this afternoon. I'll have the changes we discussed ready tmrw AM

Hi -- Can we catch this branch up, if we think we want to go forward with it?


Switching apps

Now that Siri Shortcuts is here, it would be pretty neat if we could make shortcuts that launch apps on the TV, e.g. by telling HomeKit to activate a scene. Any timeline on this? 🙏🏼

You can already launch any app that you want.  Or do i misunderstand something?

Woops, sorry! Readme didn't expand on mobile, and last I checked it was only possible to configure one app switch. That's awesome man, I'm gonna tinker around!

Works flawlessly, thanks 🎉

Good to hear :)


ExoPlayer - Can't play media files with a # (hash sign) in filename or path

Using the ExoPlayer implementation, I am unable to play any songs where either the filename or any part of the file path contains a hash/pound sign (#). If I switch back to the regular Android implementation, the same files play fine.
I do not get any exceptions or other errors. The music simply does not play.

I've added a new branch to update ExoPlayer to 2.2.0: https://github.com/martijn00/XamarinMediaManager/tree/exoplayer2.2.0
The code compiles but for some reason it won't play.


bug: Using space button while playing the video is performing the last action rather than pause

Describe the bug
Pressing the space button while playing a video performs the last action (e.g., previous or forward) instead of pausing the video.
To Reproduce
1.Play a video.
2.Perform an action that changes the playback state (e.g., go to the previous or next video).
3.Press the space button.
Expected behavior
The video should pause when the space button is pressed, regardless of the previous action.
Info :

Browser [chrome]

Are you referring to the 15 secs playback speed ?

YES


Feature/ds 231 tabs js

@crishpeen Waiting to rebase and merge of https://github.com/lmc-eu/spirit-design-system/pull/339


Assign to room not possible

Hi,
Is it true that you can't assign a virtual devices created with the assistant sdk to a room in smart home control ?
Once I try to assign the sdk-based device to a room, an error follows that "something went wrong"
Is this a (known) limitation to the SDK or a bug ?

Are you using the Assistant SDK library or the Assistant SDK service?
There are some limitations to assigning rooms for devices, and features that would necessitate room assignments are probably not available in the SDK at the moment.

I'm using the Assistant SDK library. All other functionality is working fine

Either way, features that you'd get from room assignments aren't available right now.

besides being unable to add the device, I could not adjust the volume of alarms and timers using sdk on raspberry

On a previous version of Google Home app, I was able to assign the device to a room.
Then the app updated and that functionality disappeared...
I'm using the library


fix build error in RIP-28 at getmQClientFactory

Make sure set the target branch to develop
What is the purpose of the change
fix build error in RIP-28 at getmQClientFactory
Brief changelog
change to getmQclientFactory
Verifying this change
ci pass
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

fix ci issue

Codecov Report

Merging #3754 (a45f643) into develop (8d28d3f) will decrease coverage by 0.27%.
The diff coverage is 34.07%.

@@              Coverage Diff              @@
##             develop    #3754      +/-   ##
=============================================
- Coverage      47.26%   46.98%   -0.28%
+ Complexity      5038     4854     -184
=============================================
  Files            628      636       +8
  Lines          41406    42244     +838
  Branches        5379     5521     +142
=============================================
+ Hits           19572    19850     +278
- Misses         19408    19912     +504
- Partials        2426     2482      +56

Impacted Files
Coverage Δ

...a/org/apache/rocketmq/broker/BrokerController.java
46.54% <0.00%> (-0.89%)
:arrow_down:

.../broker/longpolling/LmqPullRequestHoldService.java
0.00% <0.00%> (ø)

...e/rocketmq/broker/longpolling/ManyPullRequest.java
0.00% <0.00%> (ø)

...etmq/broker/plugin/AbstractPluginMessageStore.java
0.00% <0.00%> (ø)

...ocketmq/broker/processor/AdminBrokerProcessor.java
34.38% <0.00%> (-0.19%)
:arrow_down:

...ocketmq/broker/processor/SendMessageProcessor.java
39.59% <0.00%> (-0.30%)
:arrow_down:

...n/java/org/apache/rocketmq/store/MessageStore.java
0.00% <ø> (ø)

...he/rocketmq/store/stats/LmqBrokerStatsManager.java
0.00% <0.00%> (ø)

...n/java/org/apache/rocketmq/test/util/StatUtil.java
16.19% <16.19%> (ø)

...cketmq/broker/offset/LmqConsumerOffsetManager.java
44.44% <44.44%> (ø)

... and 28 more

Continue to review full report at Codecov.

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


[SPARK-44503][SQL] Project any PARTITION BY expressions not already returned from Python UDTF TABLE arguments

What changes were proposed in this pull request?
This PR adds a projection when any Python UDTF TABLE argument contains PARTITION BY expressions that are not simple attributes that are already present in the output of the relation.
For example:
CREATE TABLE t(d DATE, y INT) USING PARQUET;
INSERT INTO t VALUES ...
SELECT * FROM UDTF(TABLE(t) PARTITION BY EXTRACT(YEAR FROM d) ORDER BY y ASC);

This will generate a plan like:
+- Sort (y ASC)
  +- RepartitionByExpressions (partition_by_0)
    +- Project (t.d, t.y, EXTRACT(YEAR FROM t.d) AS partition_by_0)
      +- LogicalRelation "t"

Why are the changes needed?
We project the PARTITION BY expressions so that their resulting values appear in attributes that the Python UDTF interpreter can simply inspect in order to know when the partition boundaries have changed.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
This PR adds unit test coverage.

@allisonwang-db @ueshin @HyukjinKwon FYI

Thanks! merging to master.


Description generated from another same-name parameter

The authorizationRuleName parameter is set as name in create_or_update_authorization_rule_notificationhubs_namespace in custom.py. But the description for name in  _parameter.py is wrong, the generated description The connection string of the namespace for the specified authorizationRule. comes from the the authorizationRuleName in Namespaces_ListKeys. The right description is Authorization Rule Name.
It seems same name parameters are using the same description, but they are actually different in swagger.

Zim will investigate in milestone 12-23 and then we will triage again

won't fix in POC because the fix cost is high. It won't repro in the next CodeGen version.


pull request for e2e test at 02/01/2017 10:26:13

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


chore: Changing OpenAI datasource documentation link

Description
Changing the documentation link to https://docs.appsmith.com/connect-data/reference/open-ai
Type of change

Chore (housekeeping or task changes that don't impact user perception)

Testing
How Has This Been Tested?

[x] Manual

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/ok-to-test


No access on External Storage

Describe the bug
Bug details:
OrbStack VMs may lose access to /Volumes/$EXTERNAL_STORAGE_ON_MAC
When acess from VMs, the terminal shows "ls: cannot open directory '.': Not a directory"
This bug USUALLY occurr on my machine, not always.
To Reproduce
Make sure $EXTERNAL_STORAGE_ON_MAC is mounted on mac and have been accessed from orb VMs before reproduce.
Plug out and replug in external storage, then wait for storage can be accessed from mac.
On mac, run commands below:
cd /Volumes/$EXTERNAL_STORAGE_ON_MAC
ls
...show files on /Volumes/$EXTERNAL_STORAGE_ON_MAC...
orb
cd /Volumes/$EXTERNAL_STORAGE_ON_MAC
ls
...show "ls: cannot open directory '.': Not a directory"...
Expected behavior
The external storage can be access from VMs.
Diagnostic report (required)
OrbStack info:
Version: 0.15.0 (150000)
Commit: c5bda1bf8c660116c880c5f4fae3b7625ff19030 (v0.15.0)
System info:
macOS: 13.4.1 (22F82)
CPU: amd64, 8 cores
CPU model: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-07-24T02-10-59.655473Z.zip
Screenshots and additional context (optional)
The image shows the situation.

Workaround: Restart OrbStack or change orbstack VM options like memory or cpus. (On some preview builds a button can poweroff/poweron orbstack, but recently builds removed it. I have to quit orbstack and reopen. READD A BUTTON to do this operation? )
The external storage fs is NTFS and I use Paragon NTFS.

I had similar issues with mounts through /Volumes on mac - could not read entire drive, very slow and would hang container (using navidrome music server with music on /Volumes/music NTFS). Had to go back to Rancher Desktop.

Issue still seems to be here - although now container doesn't hang.  Will still arbitrarily stop reading external drive.
Orbstack 1.0.0

Seeing the same as dro-ex; container goes up without complaint, but it cannot list any files from the mapped drive.

I use containers in my home lab, personal use, but out of curiosity, the Pricing page mentions "Priority support" for those under the Pro plan.  Would that include pushing up priority on issues like this one?  I can appreciate if not given that I'd just be a single license holder.

This explains so much about why my setup has been so unstable, hope there's a fix coming!

Fixed for the next ersion.

Released in v1.6.0 Canary 1.
To update to Canary: Settings > Update channel

Released in v1.6.0.
New: Truly fast container filesystems on macOS: 2–10x faster, within 75-95% of native


Add De La Salle University Dasmariñas (Domain)

Domain:
[First letter of last name][First letter of first name][Middle initial][Last four digits of student<EMAIL_ADDRESS>Domain Proof:
https://www.dlsud.edu.ph/ithelp.htm#activatePortal (Should be under: "MICROSOFT OFFICE 365 ACTIVATION or DLSUD EMAIL ADDRESS (Access to schoolbook and Open Athens)")
Official Website:
https://www.dlsud.edu.ph/
Full Address:
De La Salle University - Dasmariñas, DBB-B, 4115 West Ave, City of Dasmariñas, Cavite, Philippines
IT/CS Proof:
https://www.dlsud.edu.ph/programs/cscs/bsit.htm
https://www.dlsud.edu.ph/programs/cscs/bcs.htm

@barCode2222 I am sorry, the domain dlsud.edu.ph is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Add transport-native-io_uring to docker compose files

Motivation:
in the 4.2.0-Alpha2-SNAPSHOT, I am seeing only 1 Linux classifier (linux-x86_64) for io_uring
https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty-transport-native-io_uring/4.2.0.Alpha2-SNAPSHOT/maven-metadata.xml
I do not see 'linux-aarch_64' or 'linux-riscv64' artifacts in the Maven metadata
Modification:
add 'transport-native-io_uring' to Docker Compose files
Result:

creates an artifact for transport-native-io_uring with classifier linux-aarch_64
creates an artifact for transport-native-io_uring with classifier linux-riscv64

ready for review

Thanks a lot!


chore: Create the contribution guide

Somehow, my personal project gets some attentions from new comers, but since there is no guide to follow for any contribution, it would be hard for them to contribute properly.
Acceptance Criteria:

Create CONTRIBUTING.md, Sending a Pull Request, Naming Convention for branch/commit.
It should have Code of Conduct,
(Not Required) Create .eslintrc.json for linting

Related to #32


⚠ Bofrost.es has degraded performance

In 2bf28a1, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1691 ms

Resolved: Bofrost.es performance has improved in d543e63 after 6 minutes.


CI tests run twice when a commit is pushed to a PR

At the moment the CI tests run twice when you push a commit to a PR from a non-forked repo (see Continuous Build #320 and #321
https://github.com/api3dao/airnode/actions/runs/771308103
https://github.com/api3dao/airnode/actions/runs/771308169
For more information
https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
We're leaving this as is for the moment because running the tests twice sometimes is not a big deal.

Adding comment for future somebody who looks at this issue.
It can't be done as of now. See: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
What we can do is change workflow so that it ONLY triggers to pushes to main and PRs to main
But we don't want to do that as of now.


Handling GeoTagging with bad internet connectivity (An error occurred while trying to get your location. Please try adding a custom locale manually.)

Sometimes I have to try four times so that geo tagging works.
So maybe it would be possible to retry a few times or to do more retries (i.e. 10 with a second pause in between)?

Will take a look into it.

There are a couple places in the code this could happen @alexanderadam, is this the message that appears to you?
An error occurred while trying to get your location. Please try adding a custom locale manually.

I can't remember correctly but I think that's it.
I didn't happen for a few days now.

I can't remember correctly but I think that's it. I didn't happen for a few days now.

I've been trying as well and it doesn't occur, if you can force this to happen please go to Settings > Contact > Send Logs, it will help me out.

I will! :+1:

I just sent you the logs but I already checked and this is the relevant bit:
[INFO]: [Geolocation] - Getting location...
[ERROR] : [Geolocation] - Failed to decode location: PlatformException(IO_ERROR, A network error occurred trying to lookup the supplied coordinates (latitude: 12.34567 longitude: 12.34567)., null, null)
Stacktrace: package:one_second_diary/utils/utils.dart 51 in Utils.logError

So it's probably just the missing location name lookup, right?
Is there a background queue that could add this later on or so?
And maybe the coordinates could be stored anyway, even if the name couldn't be resolved?
Or do you have better ideas regarding this issue?

Thanks!
Yes, it's the location decoding, it seems like a rate limit from Android itself.
When this happens, tapping again the checkbox to try again works? If the answer yes, maybe trying to decode again a couple more times if it fails with 1 or 2 seconds intervals might solve the problem.

And maybe the coordinates could be stored anyway, even if the name couldn't be resolved?

It's a good "last scenario" option, however the video won't have the text which is the main point. But there seems to be no other ways to decode without relying on external APIs, and I prefer to avoid that.

When this happens, tapping again the checkbox to try again works? If the answer yes, maybe trying to decode again a couple more times if it fails with 1 or 2 seconds intervals might solve the problem.

Yes, so far it worked every time.

It's a good "last scenario" option, however the video won't have the text which is the main point. But there seems to be no other ways to decode without relying on external APIs, and I prefer to avoid that.

I get that, but this features requires internet, right? And not having connection is a valid scenario, too, no?
Storing it and resolving it later, when there's internet again, might be a fix for that. Right?

I'm not sure about it, I think it would be better to have a more robust edit video page in the future where you could select from saved locales or pick from the map and then see the edit happening than trying to do video processing on the background, the UI would likely freeze on less powerful devices, what do you think? Moreover if tapping again works, the retry I am implementing might solve it for good.

it would be better to have a more robust edit video page in the future where you could select from saved locales or pick from the map

I see. Yeah, that would be good.

the retry I am implementing might solve it for good.

That's true. Let's try it :+1:

How about this: the coordinates will be stored either way but if the name is missing, there's another button for "Fetch location name". This way no background queue is needed and the user still gets all the data if needed.

I believe it was fixed with retry attempts implementation so I will be closing for now, please reopen if it happens after the update. Thanks!

I don't think that it'll conceptually work.
But when will the new version be published?

Very soon.

Just in case this will still be an issue later on if there's no internet connectivity, I still think that this approach might work best:
On the video view where the "Delete video" and "Add subtitles" buttons are, there could be a "Resolve Geotagging" button in case the metadata (and therefore the text) is missing.
That way no queue is needed and people can simply resolve the coordinates later when they have internet connectivity again.


Edit docs based on dev team walkthrough

@choldgraf I'm going through and reorganizing a bit. Here's the WIP rendered version: https://test-binderhub.readthedocs.io/en/full-read/index.html

@yuvipanda @choldgraf PR ready for review and merge.


IPA not coherently use between gym and deliver

Hi,
Steps

Run deploy lane with fastlane for one application (one specific scheme of my workspace)
fastlane deploy --env gopili

Everything goes well, a gopili.ipa is generated in the workspace folder

Run deploy lane with fastlane for another application
fastlane deploy --env kelbillet

Expected result
IPA generated by gym should be used by deliver action.
Observed result
Gym works well, but deliver do not use ipa generated with gym, but ipa generated by previous fastlane deploycommand (aka gopili.ipa)
Information

fastlane 1.52.0
Xcode 7.2 (7C68)
OS X El Capitan 10.11.2

fastlane_deploy.log.zip
fastlane_conf.zip

That's weird, could you add debug right after running gym and post the results here? This will print out the lane environment

Debug logs:
[12:40:03]: --- Step: debug ---
[12:40:03]: -------------------
Lane Context
{:DEFAULT_PLATFORM=>:ios, :ENVIRONMENT=>"kelbillet", :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios deploy", :IPA_OUTPUT_PATH=>"/Users/qarnault/Desktop/bug_hunt/kelbillet.ipa", :DSYM_OUTPUT_PATH=>"/Users/qarnault/Desktop/bug_hunt/kelbillet.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/qarnault/Library/Developer/Xcode/Archives/2016-01-21/kelbillet 2016-01-21 12.38.29.xcarchive"}
[12:40:03]: ---------------------
[12:40:03]: --- Step: deliver ---
[12:40:03]: ---------------------
[12:40:03]: Login to iTunes Connect<EMAIL_ADDRESS>[12:40:07]: Login successful

+-------------------+-------------------------+
|            deliver 1.8.0 Summary            |
+-------------------+-------------------------+
| username          |<EMAIL_ADDRESS> |
| app_identifier    | com.kelbillet.kelbillet |
| ipa               | gopili.ipa              |
| metadata_path     | ./fastlane/metadata     |
| screenshots_path  | ./fastlane/screenshots  |
| skip_screenshots  | false                   |
| app_version       | 1.9                     |
| skip_metadata     | false                   |
| force             | false                   |
| submit_for_review | true                    |
| automatic_release | false                   |
+-------------------+-------------------------+```

Alright, this is caused since it detects an ipa file in the current directory, the priorities are wrong in this one, I'll work on a fix :+1:

Thanks.


hours: "numeric" w/ 0 in minutes and non 0 in seconds cause strange output.

@anba's https://github.com/tc39/test262/pull/3903 surface the following issue
intl402/DurationFormat/prototype/format/numeric-hour-with-zero-minutes-and-non-zero-seconds.js
What should be the output of
 (new Intl.DurationFormat("en", {  hours: "numeric",})).format({  hours: 1,  minutes: 0,  seconds: 3})

@anba's code, following the spec text produce the expectation as
1, 03

and currently, the buggy v8 implement 1:03 (which is neither correct)
I think it should be
1:00:03
v8 also incorrectly output
 (new Intl.DurationFormat("en", {  hours: "numeric",})).formatToParts({  hours: 1,  minutes: 0,  seconds: 3})
[{type: "integer", value: "1", unit: "hour"}, {type: "literal", value: ":"}, {type: "integer", value: "03", unit: "second"}]

I think it should be
[{type: "integer", value: "1", unit: "hour"}, {type: "literal", value: ":"}, {type: "integer", value: "00", unit: "minute"}, {type: "literal", value: ":"}, {type: "integer", value: "03", unit: "second"}]

but that is not following the spec text.
We should also consider case like
 (new Intl.DurationFormat("en", {  hours: "numeric", fractionalDigits: 9 })).format({  hours: 1,   microseconds: 4})
 (new Intl.DurationFormat("en", {  hours: "numeric", fractionalDigits: 9})).format({  hours: 1,   milliseconds: 5})
 (new Intl.DurationFormat("en", {  hours: "numeric", fractionalDigits: 9})).format({  hours: 1,   nanoseconds: 6})

@ben-allen @sffc @ryzokuken @anba

I think the problem is here
9. If unit is "hours" or "minutes", then
  a. If unit is "hours", then
    i. Let nextValue be duration.[[Minutes]].
    ii. Let nextDisplay be durationFormat.[[MinutesDisplay]].
  b. Else,
    i. Let nextValue be duration.[[Seconds]] + duration.[[Milliseconds]] / 103 + duration.[[Microseconds]] / 106 + duration.[[Nanoseconds]] / 109.
    ii. Let nextDisplay be durationFormat.[[SecondsDisplay]].
  c. If nextValue is not 0 or nextDisplay is not "auto", then
    i add  separator block...

We actually do not need to calculate nextValue since the only usage is compare against 0, we just need a boolean for step c and set that boolean in sub steps of a and b
How about
9. If unit is "hours" or "minutes", then
a. Let addSep be *false*.
b If duration.[[Nanoseconds]] is not 0, set addSep to *true*.
c Else if duration.[[Microseconds]] is not 0, set addSep to *true*.
d Else if duration.[[Milliseconds]] is not 0, set addSep to *true*.
e Else if duration.[[Seconds]] is not 0, set addSep to *true*.
f Else if unit is "hours" and duration.[[Minutes]] is not 0, set addSep to *true*.
g Else if unit is "hours" and durationFormat.[[MinutesDisplay]] is "always", set addSep to *true*.
h Else if unit is "minutes" and durationFormat.[[SecondsDisplay]] is "always", set addSep to *true*.
i If addSep is *true*, then
  i add  separator block...

The proposed changes in https://github.com/tc39/proposal-intl-duration-format/issues/170#issuecomment-1692666120 will add a separator even when the next unit isn't displayed.
If we want to return "1:00:03" for the above mentioned test case, it's also necessary to make some adjustments to current step 4.l:

If value is not 0 or display is not "auto", then

And change it to:

If value is not 0 or display is not "auto" or separated is true, then

And then remove step 4.l.ii.5:

Else,
a. Set separated to false.

If #166 gets accepted, slightly different changes are necessary.

My understanding is that new Intl.DurationFormat("en", {  hours: "numeric" }) is supposed to imply that the remainder of fields are numeric and should therefore output the expected results, but it is definitely a problem that minutes are not displayed when zero. Hmm

@ben-allen to discuss with @romulocintra and @ryzokuken on who should work on this.

Marking closed as fixed by #180 & #183


apply Data Augmentation

Apply data augmentation techniques for voice

using Time and Frequency Masking , Noise Addition , Pitch Shifting


Cannot parse trailing commas in function definitions

The following code should parse correctly:
        # Check trailing commas are permitted in funcdef argument list
        def f(a,): pass
        def f(*args,): pass
        def f(**kwds,): pass
        def f(a, *args,): pass
        def f(a, **kwds,): pass
        def f(*args, b,): pass
        def f(*, b,): pass
        def f(*args, **kwds,): pass
        def f(a, *args, b,): pass
        def f(a, *, b,): pass
        def f(a, *args, **kwds,): pass
        def f(*args, b, **kwds,): pass
        def f(*, b, **kwds,): pass
        def f(a, *args, b, **kwds,): pass
        def f(a, *, b, **kwds,): pass

Currently we report errors because of the trailing commas.

ParserTests.cs currently excludes test_grammar.py because of this bug.


does this still work?

i always get 0 results. does it still work?

Haven't tried it in quite some time, especially not after the rebranding from Ebay Kleinanzeigen to kleinanzeigen.de. So it probably does not work anymore I'll have a look at it tonight and see what changes are needed.

I had a look at the project and there was indeed a small change in the website structure. That should be addressed in #9. One reason to return 0 results could be that you did not use the correct kleinanzeigen.de URL, because the examples still refer to ebay-kleinanzeigen.de.
I published v0.1.0 to PyPI. This replaces all references to Ebay Kleinanzeigen with  kleinanzeigen.de and fixes the error when parsing the ad items.


Fixing scipy imports for older versions

Modulus Pull Request
Description

Checklist

[ ] I am familiar with the Contributing Guidelines.
[ ] New or existing tests cover these changes.
[ ] The documentation is up to date with these changes.
[ ] The CHANGELOG.md is up to date with these changes.
[ ] An issue is linked to this pull request.

Dependencies

/blossom-ci

/blossom-ci


yarn 2 workspace monorepo: private_source_authentication_failure error on registry.npmjs.org

In the foxglove/studio repo, we are receiving some updates from dependabot, but the number of PRs opened by dependabot is lower than expected and definitely not limited by our open-pull-requests-limit: 100.
There are unexplained errors that show up in the log:

Full log output is here: https://gist.github.com/jtbandes/766fdc3396c5e9036577fb5d4881ef17
Example error that may be related to internal packages (note @foxglove/electron-socket, below, is a package in our monorepo)
...
updater | INFO <job_131018418> Updating @pmmmwh/react-refresh-webpack-plugin from 0.5.0-beta.1 to 0.5.0-beta.7
  proxy | 2021/05/11 06:14:49 [034] GET https://registry.yarnpkg.com:443/@actions%2fcore
  proxy | 2021/05/11 06:14:50 [034] 200 https://registry.yarnpkg.com:443/@actions%2fcore
...
  proxy | 2021/05/11 06:15:20 [084] GET https://registry.yarnpkg.com:443/@babel%2fplugin-transform-typescript
  proxy | 2021/05/11 06:15:20 [084] 200 https://registry.yarnpkg.com:443/@babel%2fplugin-transform-typescript
  proxy | 2021/05/11 06:15:20 [086] GET https://registry.yarnpkg.com:443/@babel%2fplugin-syntax-typescript
  proxy | 2021/05/11 06:15:20 [086] 200 https://registry.yarnpkg.com:443/@babel%2fplugin-syntax-typescript
  proxy | 2021/05/11 06:15:20 [088] GET https://registry.yarnpkg.com:443/@foxglove%2felectron-socket
  proxy | 2021/05/11 06:15:20 [088] 404 https://registry.yarnpkg.com:443/@foxglove%2felectron-socket
updater | INFO <job_131018418> Handled error whilst updating @pmmmwh/react-refresh-webpack-plugin: private_source_authentication_failure {:source=>"registry.npmjs.org"}
...

References #1297 for yarn 2
Package ecosystem
npm
Package manager version
npm 7, yarn 2
Language version
node 14/15
Manifest location and content prior to update

Links to package.json/yarn.lock files in monorepo
https://github.com/foxglove/studio/blob/main/package.json
https://github.com/foxglove/studio/blob/main/yarn.lock
https://github.com/foxglove/studio/blob/main/app/package.json
https://github.com/foxglove/studio/blob/main/packages/just-fetch/package.json
https://github.com/foxglove/studio/blob/main/packages/log/package.json
https://github.com/foxglove/studio/blob/main/packages/ros1/package.json
https://github.com/foxglove/studio/blob/main/packages/rosmsg-deser/package.json
https://github.com/foxglove/studio/blob/main/packages/velodyne-cloud/package.json
https://github.com/foxglove/studio/blob/main/packages/wasm-bz2/package.json
https://github.com/foxglove/studio/blob/main/packages/electron-socket/package.json

dependabot.yml content
https://github.com/foxglove/studio/blob/main/.github/dependabot.yml

As per #1297, we don't support yarn v2, so if yarn v2 is required to fix this, it's unlikely that this will get fixed before then. I haven't looked at it in depth since I rejected it immediately as "won't fix yarn 2", but given that it's an auth problem, I'm not sure if it has anything to do with auth. Looking at https://www.npmjs.com/package/@pmmmwh/react-refresh-webpack-plugin, it looks like it's public, so not sure why that's failing with an auth error?

Closing, as it looks like you moved off Dependabot for now.
Work on #1297 is underway, so once that lands if you're still having problems please file an issue. I'd say re-open this one, but I really doubt the info in this issue will be relevant anymore once that lands... even for errors the logs will be completely different.

I'm having the same problem as @jtbandes.
Re-opening the issues since https://github.com/dependabot/dependabot-core/issues/1297 has been closed and the problem persists.

Hei @fjakobs!
As @jeffwidman explained, Yarn v2 support has landed recently and that's a significant change over our previous code base. So even if the problem still exists, error logs and other relevant information for us to troubleshoot is likely be different now.
So we'd rather work with a fresh bug report. Could you open a separate ticket following our current bug report template, including as much information as possible?
Thank you!


Split type arguments break 0.43.0

Expected Behavior
I expect it to format it or accept it
Observed Behavior
It fails with an error like this
Step 'ktlint' found problem in 'path/to/file.kt':
Error on line: 48, column: 7
Unexpected indentation (expected 4, actual 6)
java.lang.AssertionError: Error on line: 48, column: 7
Unexpected indentation (expected 4, actual 6)
        at com.diffplug.spotless.kotlin.KtLintStep$State.lambda$createFormat$0(KtLintStep.java:129)
        at jdk.proxy49/jdk.proxy49.$Proxy441.invoke(Unknown Source)
        at com.pinterest.ktlint.core.KtLint.format(KtLint.kt:428)
        at com.pinterest.ktlint.core.KtLint.format(KtLint.kt:352)

Steps to Reproduce
this snippet fails for us
    fun setMessagingChannelDisplayNameMap(
      messagingChannelDisplayNameMap: Map<String, // This line
        String>
    ): Builder = apply {
      this.messagingChannelDisplayNameMap =
        messagingChannelDisplayNameMap
    }

Your Environment

Version of ktlint used: 0.43.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): Spotless
Version of Gradle used (if applicable): N/A
Operating System and version: N/A
Link to your project (if it's a public repository): N/A

When I run ktlint --relative --verbose with the provide code sample, I get following output:
Issue1267.kt:1:1: Unexpected indentation (4) (should be 0) (indent)
Issue1267.kt:1:2: Unnecessary space(s) (no-multi-spaces)
Issue1267.kt:2:1: Unexpected indentation (6) (should be 4) (indent)
Issue1267.kt:2:7: Unexpected indentation (expected 4, actual 6) (parameter-list-wrapping)
Issue1267.kt:4:1: Unexpected indentation (4) (should be 0) (indent)
Issue1267.kt:4:5: Unexpected indentation (expected 0, actual 4) (parameter-list-wrapping)
Issue1267.kt:5:1: Unexpected indentation (6) (should be 4) (indent)
Issue1267.kt:7:1: Unexpected indentation (4) (should be 0) (indent)

Note that the output from rule parameter-list-wrapping should be considered as wrong as it conflicts with the indent rule.
With ktlint -F --relative --verbose, the ouput is as follows:
Issue1267.kt:1:1: Trailing space(s) (no-trailing-spaces)

and code is formatted like:

fun setMessagingChannelDisplayNameMap(
    messagingChannelDisplayNameMap: Map<String, // This line
        String>
): Builder = apply {
    this.messagingChannelDisplayNameMap =
        messagingChannelDisplayNameMap
}

Can you try to reproduce above on your system with a file only containing your code sample and nothing else in it? I have the idea that something else in the file initiate the error you reported.

@paul-dingemans we have a lot of rules touching the same code... I'm wondering if it's time to disable one or more of them so they stop conflicting with each other.

Yes, I really would prefer to do so. But in order to do so, we need this  https://github.com/pinterest/ktlint/pull/1230 to be merged...

This is what it prints
$ ./config/bin/ktlint -F --relative --verbose path/to/file.kt
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jetbrains.kotlin.com.intellij.util.ReflectionUtil (file:/Users/zsweers/dev/slack/restructure/slack-android-ng/config/bin/ktlint) to field java.lang.Throwable.backtrace
WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
path/to/file.kt:48:7: Unexpected indentation (expected 4, actual 6) (parameter-list-wrapping)
path/to/file.kt:50:5: Unexpected indentation (expected 2, actual 4) (parameter-list-wrapping)

Where the line 48 is the line with the start of the generic type and line 50 is the line with the function return type. The error goes away if I put the type arguments on the same line

Yes this is a known problem. The parameter list wrapping rule and the indent rule do not agree on the indent level. The indent rule however wins as it runs later. Those warnings of the parameter list wrapping rules can (should) be ignored


chore: fix a common flake

Testing

Trade-offs

Dependencies

Screenshots

:tada: This PR is included in version 5.1.12 :tada:
The release is available on:

v5.1.12
GitHub release

Your semantic-release bot :package::rocket:


PyTorch: Unsupported uninitialized argument

Please provide steps or model files to reproduce this issue.

model_test.zip
you can rename the above file to model_test.pt and try to load it. I think it fails because there is no model/data.pkl .  the model_test.zip was created from torch c++.
It fails with Error loading PyTorch model. Cannot read property '1' of undefined in 'model_test.pt'.

@powderluv the model forward expects parameters like a_dict. To extract the graph the model would have to run guessing defaults. In particular this line expects a_dict to contain a hello key: value0 = torch.add(value, (a_dict)[key]). The default a_dict would be an empty dictionary not containing hello.

netron_issue_547_1.zip

https://drive.google.com/file/d/1-oLvAC6iVCMJ2HtQlbAspdBERf-atPC8/view?usp=sharing
Includes both the torchscript file (.pt) and the python file that generated it

Another, simpler example (both torchscript and python generator):
https://drive.google.com/file/d/1ZG0QYEJt9aVs964YiJIoa81fzcufyc-N/view?usp=sharing

Ok, I got a minimal repro:
import torch
import torch.nn as nn

class UNet(nn.Module):

    def __init__(self, n_class):
        super().__init__()
        self.upsample = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)

    def forward(self, x):
        x = self.upsample(x)
        return x

_model=UNet(2)
_scriptmodule = torch.jit.script(_model)
_scriptmodule.save("UNet.pt")

upsample.zip

I see that made a commit but now when trying to load the upsample example in Netron 4.5.9 it says "unhandeld exception".

@divideconcept torch.jit.script does not include input tensor size information so it is not always possible to run the code and extract the graph without user interaction (see #630). Saving a traced model should work around the issue.
import torch
import torch.nn as nn

class UpModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.upsample = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)

    def forward(self, x):
        x = self.upsample(x)
        return x

model = UpModel()
traced_model = torch.jit.trace(model, torch.rand([ 1, 3, 224, 224 ]))
torch.jit.save(traced_model, "UpModel.pt")

Indeed, traced models works much better than scripted model.


Question: When can we expect a new release? (3.1.2)

I will try to get something released in the next week.

@kongchen , could you please push 3.1.2-SNAPSHOT and 3.1.2-RELEASE to the maven repositories?

@mdzhigarov It looks like @kongchen has released 3.1.2.


Export; Newer iterations of Godot won't import Collada UV's.

The issue being...
If I download the newest available build of Godot (the sourceforge page has one from Feb 11th), and bring in a new Collada file, that version of Godot will not be able to read the UV coordinates of the object resulting in any texture being scaled down to infinity.
I have verified this by using both the official and the dev. version of the Better Collada exporter with the new build of Godot and by using the dev. version with 1.0 official. 1.0 official imports the coordinates as it should while the dev. build doesn't.
This doesn't affect models in game files already made, just new models, hope this can soon be fixed.

Well, it looks like the issue isn't what I thought it was, UV's are imported fine if I create an entirely new .dae file while remembering to check the 'triangulate' option.
Still, I wonder why the Blender exporter won't just delete the old .dae file and create a new one if I specifically tell it to overwrite it, because it apparently won't overwrite the old file with the version that has 'triangulate' checked so I can re-import it into Godot with proper UV coordinates.

Closing this, this is just cluttering things up


Bug: If the parsed package does not have a package name？

RT.

fix: #903

conflict: packageNameStructName(use camelCase).  example: apiJsonResult.
no conflict: structName.   example: JsonResult.

What sense does it make ?

Some tools may not recognize . well .
All generated models have package names . I think it's not intuitive and redundant .

As swagger 2.0 support dot in models, it is a bug of the tools you mentioned, I think.

Some tools may not recognize . well .
All generated models have package names . I think it's not intuitive and redundant .

Excuse me, How you generate model.Tag and  model.Tag 1

@To-echo Would you mind coming back with a code sample and explaining the issue as better you can if you need help?

@To-echo Would you mind coming back with a code sample and explaining the issue as better you can if you need help?

Thank you for your reply, I just want to use swag to generate swagger.json and import it into YApi, but YApi does not support public struct, see: https://github.com/YMFE/yapi/issues/352, so I need to customize swap struct name generation rules, currently use URI as part of the structure name, see: https://github.com/To-echo/swag/commit/4af1b6a54c31a5c88c09feac5abbc00ce69c5ce7

Unfortunately, there is no way to configure struct name generation. Removing the package name from the definition will lead to struct overlap and conflicts.


fix zoom level for one active place

Closes #2290
What does this PR do?
Removes condition (!this.hasOneMarker) in if-statement that causes bug.
If !this.hasOneMarker is present, the bounds () method returns undefined.
This causes the zoom () method to return undefined which results in the 'zoomed out' bug described in #2290.
Important note for the reviewer: Digging through the git history and using the frontend I could not figure out why !this.hasOneMarker was part of the condition in the first place. To me it does not make any sense, but maybe there is an edge-case somewhere where it does?

Links to related issues
Checklist

[x] added a test, or explain why one is not needed/possible...
[x] no unrelated changes
[x] asked someone for a code review
[x] joined chat.foodsaving.world/channel/karrot-dev
[x] added an entry to CHANGELOG.md (description, pull request link, username(s))

I close this PR because I just realized that it does not fix the bug as described in #2290. If there is no active place the map still has the zoom out bug. I will reopen the PR if I have fixed it.


Make vizviewer exit when the port is in use

Codecov Report

Merging #252 (b064b00) into master (b42fcf4) will decrease coverage by 2.53%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##            master     #252      +/-   ##
===========================================
- Coverage   100.00%   97.46%   -2.54%
===========================================
  Files           21       21
  Lines         2166     2166
===========================================
- Hits          2166     2111      -55
- Misses           0       55      +55

Impacted Files
Coverage Δ

src/viztracer/viewer.py
99.67% <100.00%> (-0.33%)
:arrow_down:

src/viztracer/patch.py
83.33% <0.00%> (-16.67%)
:arrow_down:

src/viztracer/util.py
94.28% <0.00%> (-5.72%)
:arrow_down:

src/viztracer/main.py
94.57% <0.00%> (-5.43%)
:arrow_down:

src/viztracer/viztracer.py
95.12% <0.00%> (-4.88%)
:arrow_down:

src/viztracer/code_monkey.py
97.94% <0.00%> (-2.06%)
:arrow_down:

src/viztracer/functree.py
98.48% <0.00%> (-1.52%)
:arrow_down:

src/viztracer/cellmagic.py
100.00% <0.00%> (ø)

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 b42fcf4...b064b00. Read the comment docs.


我在部署完整的PrimiHub隐私计算管理平台报错

Describe the bug
A clear and concise description of what the bug is.
[root@localhost docker-deploy]# sh deploy.sh
docker installed
Docker Compose version v2.6.0
docker-compose installed
1.6.4: Pulling from primihub/primihub-fusion
Digest: sha256:591e2d8e0f8e684fa4e6764ef200cb22d030f3e5e764ddbdb8a1264a930f49e2
Status: Image is up to date for primihub/primihub-fusion:1.6.4
docker.io/primihub/primihub-fusion:1.6.4
1.6.4: Pulling from primihub/primihub-platform
Digest: sha256:721bd58c64df3e61b80b6be1d8bc5b8f2ecd91e4a9e1309b379cd52a2f796906
Status: Image is up to date for primihub/primihub-platform:1.6.4
docker.io/primihub/primihub-platform:1.6.4
1.6.4: Pulling from primihub/primihub-web
Digest: sha256:224b169e706b18c8f6cdc532ccaf9902f30a0fc093f309f46bfdf1efc569b769
Status: Image is up to date for primihub/primihub-web:1.6.4
docker.io/primihub/primihub-web:1.6.4
1.6.4: Pulling from primihub/primihub-node
Digest: sha256:f23c659e71e5ba3964acaf04eb69b8bff231cca07022c2abbc679fbea31cdaa5
Status: Image is up to date for primihub/primihub-node:1.6.4
docker.io/primihub/primihub-node:1.6.4
v2.0.4: Pulling from primihub/nacos-server
Digest: sha256:6dfbd52d675f804d11f370b42a1f969f5d9557c56fe091a62de3051d3d115d6e
Status: Image is up to date for registry.cn-beijing.aliyuncs.com/primihub/nacos-server:v2.0.4
registry.cn-beijing.aliyuncs.com/primihub/nacos-server:v2.0.4
3.6.15-management: Pulling from primihub/rabbitmq
Digest: sha256:d1e6b70b28b9fe6c42ba86c059bd249677583bb62cb25f6f982649bd7ae6976b
Status: Image is up to date for registry.cn-beijing.aliyuncs.com/primihub/rabbitmq:3.6.15-management
registry.cn-beijing.aliyuncs.com/primihub/rabbitmq:3.6.15-management
7: Pulling from library/redis
Digest: sha256:92b8b307ee28ed74da17578064c73307ad41e43f422f0b7e4e91498b406c59e3
Status: Image is up to date for redis:7
docker.io/library/redis:7
5.7: Pulling from primihub/mysql
Digest: sha256:398f124948bb3d5789c0ac7c004d02e6d9a3ae95aa9804d7a3b33a344ff3c9cd
Status: Image is up to date for registry.cn-beijing.aliyuncs.com/primihub/mysql:5.7
registry.cn-beijing.aliyuncs.com/primihub/mysql:5.7
Using default tag: latest
latest: Pulling from primihub/loki
Digest: sha256:d69f377ecfdbb3f72086a180dcd7c2f02c795cf1867bbeb61606b42a8d41a557
Status: Image is up to date for registry.cn-beijing.aliyuncs.com/primihub/loki:latest
registry.cn-beijing.aliyuncs.com/primihub/loki:latest
[+] Running 0/0
⠿ Network docker-deploy_primihub_net  Error                                                                                0.0s
failed to create network docker-deploy_primihub_net: Error response from daemon: Pool overlaps with other one on this address space
最后报这个错误
⠿ Network docker-deploy_primihub_net  Error                                                                                0.0s
failed to create network docker-deploy_primihub_net: Error response from daemon: Pool overlaps with other one on this address space

请问是部署哪里出了问题，应该修改哪里

172.28网段你本地已经占用了，改一下网段就行
sed -i 's/172.28/172.29/g' docker-compose.yml
sed -i 's/172.28/172.29/g' config/primihub_node*

喔喔，那这不是Bug


This method is implemented for BC purpose and should never be called.

Lexik version 2.14.4
Symfony 5.4.2
I follow the example at following URL to create a custom authenticator.
https://github.com/lexik/LexikJWTAuthenticationBundle/blob/2.x/Resources/doc/6-extending-jwt-authenticator.md
But now I get the error message "This method is implemented for BC purpose and should never be called." when createAuthenticationListners, it seems the "create" method in JWTAuthenticatorFactoryTrait.php shold not be called, but I am not sure why it is still called.
Anyone has idea how to fix this issue?
Thanks.

I see we have to put. "enable_authenticator_manager: true" in security.yaml, this is not show in the example.

@bluemoonljb Does the above solve your issue. After making the necessary changes I am getting.
Cannot configure AuthenticatorManager as "basic" authentication does not support it, set "security.enable_authenticator_manager" to false.

Can you show us your security.yaml here?

@fd6130  Thanks that worked.
firewalls:
        pattern:
            pattern: ^/api/pattern/
            basic: ~
            jwt: ~
            stateless: true
            provider: app_user_provider
        api:
            pattern: ^/api/
            cs_hmac: ~
            jwt: ~
            stateless: true
            provider: app_user_provider

Although am getting issues when adding multiple patterns.
Not sure is something wrong with my implementation or its an issue, this used to work with 2.13.0

@cs-alok-agarwal Do you mean route not found or authentication is not working in multiple patterns?

When adding additional self-authentication apart from JWT its creates an issue, like in above case cs hamc

Can you further explain more about this?


[Question]: Can i determine active network information?

What is your question?
How can i determine active network information? wifi full information or sim card information?
Checklist before submitting a question

[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I am using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

Yes, I had already searched for those unable to find on google any there any way to get all the information I have check connectivity_plus but it only provides what kind of internet device is using like Wifi or mobile but do not have its strength and carrier details


Improvement some conditional statement

I think so yes there is no behind motivation because if/else and switch is a code smell and specific part for refactoring code with strategy pattern or chain of responsibilty pattern but also use switch is simple way for extend source code and temporary treatment

FYI we don't normally accept style-only PRs as it is very subjective and doesn't improve the functionality of the product.

@Tratcher Should I Close PR?


Docker

Docker container functionality needs to be added

Added Dockerfile, built an image and run app in Docker container - all works fine.


I cannot delete tables or views with "Failed to delete collection due to existing dependency."

Create a new table (v0.20),
Try to delete it
"Failed to delete collection due to existing dependency."

It doesn't make any sense

I don't think this is a PocketBase issue.
Double check that there is no other collection that reference the one you are trying to delete/rename.
If you are still not able to find the culprit, feel free to paste your collections configuration as json (Admin UI > Settings > Export collections) and I'll have a look.

I cannot send you my collections, this is a bug. I'm gonna downgrade...

It is not a bug because we have automated tests that checks the delete operation and also the issue is not reproducible in the live demo.
If you jumped several versions, double check your view queries for missing dependencies.
But without export of your collections configuration I don't know how to help you.

You can enable the debug logs in v0.20 by going to the Admin UI > Logs > Log settings and set -4 as "Min log level" value.
Perform again the delete operation and check if there is a more detailed error message with the failed request. To see the admin request logs make sure to switch the "Include requests by admins" toggle.

The tests are not checking what happens if a collection has a problem (because has an outdated data) and you try to delete a different collection with no problem or relation at all. So when you delete the new collection, because of the other problem, you cannot. Stop checking for every collection and check only related ones.
You try to close issues as soon as possible to have good numbers (like a lot of current open software, and this doesn't make a good image of the community tbh), but this is a real bug.

@pagoru I don't care about any "numbers", nor "image". I'm not selling you anything, this is just a hobby project. What I care is about is my mental health and having cluttered issues tab with unreproducible reports and constant spam doesn't help with that.
We have to resave all views because we don't know what collections take part of a view query. The view can be literally anything and the source of the view records could be even an expression, eg. union between multiple other collections or even manual typed data (eg. select 1 as id). It is not a bug and it is just how it works. It is better to throw a validation error to the user instead of leaving your db in a broken state.
If you think that it can be done better, feel free to open a PR and I'll try to review it, but again - this is just a hobby project.

Sorry!


[WIP] feat: implement client seed mode

Signed-off-by: Jim Ma<EMAIL_ADDRESS>
Description

Related Issue

Motivation and Context

Screenshots (if appropriate)
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist

[ ] Code compiles correctly.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Codecov Report

Merging #1247 (3b536f5) into main (798ebb7) will increase coverage by 0.28%.
The diff coverage is 52.94%.

@@            Coverage Diff             @@
##             main    #1247      +/-   ##
==========================================
+ Coverage   46.04%   46.33%   +0.28%
==========================================
  Files         135      137       +2
  Lines       11370    11612     +242
==========================================
+ Hits         5235     5380     +145
- Misses       5563     5643      +80
- Partials      572      589      +17

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
46.33% <52.94%> (+0.28%)
:arrow_up:

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

Impacted Files
Coverage Δ

client/daemon/proxy/proxy.go
13.12% <0.00%> (ø)

client/daemon/rpcserver/rpcserver.go
21.73% <10.00%> (-0.21%)
:arrow_down:

client/daemon/storage/local_storage.go
28.96% <16.66%> (+0.23%)
:arrow_up:

client/daemon/peer/peertask_reuse.go
71.15% <24.44%> (-12.90%)
:arrow_down:

client/daemon/peer/peertask_manager.go
23.66% <43.75%> (+0.39%)
:arrow_up:

client/daemon/rpcserver/seeder.go
62.09% <62.09%> (ø)

client/daemon/peer/peertask_file.go
57.57% <66.66%> (-0.12%)
:arrow_down:

client/daemon/peer/peertask_conductor.go
58.35% <80.00%> (+0.09%)
:arrow_up:

client/daemon/peer/peertask_seed.go
88.88% <88.88%> (ø)

client/daemon/peer/peertask_stream.go
62.67% <100.00%> (ø)

... and 6 more


Betaproteobacteria

Hello - In all mothur-compatible SILVA reference files releases 132 and higher Betaproteobacteria are part of Gammaproteobacteria.
e.g.
release 132: AY741358.G9KCep35	Bacteria;Proteobacteria;Gammaproteobacteria;Betaproteobacteriales;Burkholderiaceae;Burkholderia-Caballeronia-Paraburkholderia;
release 138 and 138.1: LR025742.G9KSt190	Bacteria;Proteobacteria;Gammaproteobacteria;Burkholderiales;Burkholderiaceae;Burkholderia-Caballeronia-Paraburkholderia;
could you please explain why or is this a bug?
Thank you,
Markus

solved


How to acknowledge in app products ? Why my in app purchases are being refunded ?

Version of react-native-iap
^4.4.8
Version of react-native
0.62.0
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
In app purchases should not be refunded
Actual behavior
In app purchases are being refunded
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
Integrated buying in app products not subscription
Listened for purchaseUpdateListener
The payment shows up in Google Console
But after few days the amount is refunded

After updateListener is successful and you saved your receipt in DB call RNIap.acknowledgePurchaseAndroid with the purchaseToken in the request and you are all good!

Did you try RNIap.finishTransaction(purchase, true); ?
// If consumable (can be purchased again)
RNIap.finishTransaction(purchase, true);
// If not consumable
RNIap.finishTransaction(purchase, false);

purchaseUpdateSubscription = purchaseUpdatedListener(
      async (purchase: InAppPurchase | SubscriptionPurchase) => {
        const receipt = purchase.transactionReceipt;
        if (receipt) {
          try {
            // if (Platform.OS === 'ios') {
            //   finishTransactionIOS(purchase.transactionId);
            // } else if (Platform.OS === 'android') {
            //   // If consumable (can be purchased again)
            //   consumePurchaseAndroid(purchase.purchaseToken);
            //   // If not consumable
            //   acknowledgePurchaseAndroid(purchase.purchaseToken);
            // }
           //**if consumable; second parameter must be true, otherwise false**
            const ackResult = await finishTransaction(purchase,true);
          } catch (ackErr) {
            console.warn('ackErr', ackErr);
          }

          this.setState({receipt}, () => this.goNext());
        }
      },
    );


ChatGLM3-6B AttributeError: 'ChatGLMConfig' object has no attribute 'num_hidden_layers'

Traceback (most recent call last):
File "vcheck.py", line 2014, in
llm = LLM(model=model_path, trust_remote_code=True)  # Name or path of your model
File "/app/vllm/vllm/entrypoints/llm.py", line 66, in init
self.llm_engine = LLMEngine.from_engine_args(engine_args)
File "/app/vllm/vllm/engine/llm_engine.py", line 157, in from_engine_args
engine = cls(*engine_configs,
File "/app/vllm/vllm/engine/llm_engine.py", line 79, in init
self._verify_args()
File "/app/vllm/vllm/engine/llm_engine.py", line 114, in _verify_args
self.model_config.verify_with_parallel_config(self.parallel_config)
File "/app/vllm/vllm/config.py", line 81, in verify_with_parallel_config
total_num_hidden_layers = self.hf_config.num_hidden_layers
File "/usr/local/lib/python3.8/dist-packages/transformers/configuration_utils.py", line 265, in getattribute
return super().getattribute(key)
AttributeError: 'ChatGLMConfig' object has no attribute 'num_hidden_layers'
my vllm version is 0.2.6

Hi @Senna1960321, could you check the model_type attribute of your model's config.json? It should be "chatglm".

Hi @Senna1960321, could you check the model_type attribute of your model's config.json? It should be "chatglm".
I check the config.json, it is "model_type": "chatglm"

Hi @Senna1960321, could you check the model_type attribute of your model's config.json? It should be "chatglm".

I check the config.json, it's value is "model_type": "chatglm". @WoosukKwon

Hi, @Senna1960321  I met the same error with version 0.2.6, have you solved the issue?

Hi, @Senna1960321 I met the same error with version 0.2.6, have you solved the issue?

No, I can't use ChatGLM3-6B yet, but I can use Llama2-7b. @BaileyWei


[Bug] Discord Canary 114799 (009b870) Not Working.

Describe the Bug
I just updated discord, and now BetterDiscord wont re-install. Using the installer for Repairing does not working, or removing, then re installing.
To Reproduce
Update discord canary. BetterDiscord will not be loaded.
Expected Behavior
Standard discord client seen.
Screenshots
Regular discord.
Discord Version
Canary 114799 (009b870)
Additional Context
Nope.

Canary 114864 (e16662d) not working too

Canary 114895 (a87dc12) not working as well.

same

Canary 114909 (fd7024f) not working too

yeah also on mac just stopped working after the update

i switched to the PTB client for the time being. not really a fix, but it still injects

Instead of posting more messages with your individual canary versions just react to the emoji in the first post. Discord pushed new features in it and it's expected to be broken, be patient.

doesn't work for me either

Please reinstall


ARTEMIS-1550 - Support LVQ for OpenWire

Add support for LVQ, using the same property key as core "_AMQ_LVQ_NAME"
Update current LVQ test case to correctly test OpenWire LVQ.

@stanlyDoge here is PR to add support for LVQ over OpenWire (also at same time correcting the test you pointed out)


refactor: delete spurious return statements

Some return statements were unnecessary and can be let fall through.

Thx, good catch 😄


Added Modules info. Bug fix pellets page. Add restart to SocketIO

Added modules info to admin page. Since you can configure your modules easily now thought it would be a good idea to also be able to see what you currently have configured. Bug fix pellets page on deleted profiles. Added admin restart to SocketIO

Thanks for the addition!  Looks great!


fix accuracy problems when float32 convert to flaot64

my problem:
var score float32
myscore = 66.7

formatScore := cast.ToFloat32(fmt.Sprintf("%0.2f", myscore))
member := "sam123"
mycmd := []interface{}{"Zadd", "testzsetkey", formatScore, member}
cmd := redis.NewCmd(mycmd...)

client := redis.NewClient(&redis.Options{
	Addr:        "<IP_ADDRESS>",
	Password:    "", // no password set
	DB:          0,       // use default DB
	PoolSize:    1,
	IdleTimeout: 500,
})

client.Process(cmd)
//.... blabla

"formatScore"  which its type will be convert to float64, then the data stored in Redis is not accurate!
like this:

Result：
then get the score of "sam123" from redis, it value is : 66.669998168945312,
but my expected result is: 66.7

Please add a test to the https://github.com/go-redis/redis/blob/master/commands_test.go.
Could we fix this without a dependency on cast package? Perhaps we could add w.float32(n float32) and w.float64(n float64) that will write a float32 without a cast to float64?

Please add a test to the https://github.com/go-redis/redis/blob/master/commands_test.go.
Could we fix this without a dependency on cast package? Perhaps we could add w.float32(n float32) and w.float64(n float64) that will write a float32 without a cast to float64?

Ok, I will deal with it as soon as possible.

I've proposed alternative in https://github.com/go-redis/redis/pull/1009
Overall it looks like existing code is working fine - you just need to convert float64 back to float32
package main

import (
	"fmt"

	"github.com/go-redis/redis"
)

func main() {
	red := redis.NewClient(&redis.Options{})

	f := float32(66.97)

	err := red.Set("float_key", f, 0).Err()
	if err != nil {
		panic(err)
	}

	n, err := red.Get("float_key").Float64()
	if err != nil {
		panic(err)
	}

	fmt.Println(n, float32(n))
	// 66.97000122070312 66.97
}

Float32 helper should reduce confusion a bit.

Your plan is really flexible，Good
But it didn't solve my problem， Because I store it in redis as a float32 type by formatted "%0.2f" and then provide data support for other applications, eg: the PHP web system... not go luanguage system. however these system does not call Float32(), other than this, PHP web system does not know whether the data is float32 or float64.  Then there will be an accuracy problem.
Although we can use the format function to reformat in the php system, but the cost is a bit large
My request is just to get the same data as I wrote it.  I hope you will consider our usage scenarios.
thanks!

I've proposed alternative in #1009
Overall it looks like existing code is working fine - you just need to convert float64 back to float32
package main

import (
	"fmt"

	"github.com/go-redis/redis"
)

func main() {
	red := redis.NewClient(&redis.Options{})

	f := float32(66.97)

	err := red.Set("float_key", f, 0).Err()
	if err != nil {
		panic(err)
	}

	n, err := red.Get("float_key").Float64()
	if err != nil {
		panic(err)
	}

	fmt.Println(n, float32(n))
	// 66.97000122070312 66.97
}

Float32 helper should reduce confusion a bit.

Your plan is really flexible，Good
But it didn't solve my problem， Because I store it in redis as a float32 type by formatted "%0.2f" and then provide data support for other applications, eg: the PHP web system... not go luanguage system. however these system does not call Float32(), other than this, PHP web system does not know whether the data is float32 or float64. Then there will be an accuracy problem.
Although we can use the format function to reformat in the php system, but the cost is a bit large
My request is just to get the same data as I wrote it. I hope you will consider our usage scenarios.
thanks!

@vmihailenco

Can you see my reply?  @vmihailenco

Just try it - all should be working as expected. float32(66.97) is stored correctly in Redis. You can verify it using redis-cli.