Customize project compilation?

Environment

Elixir & Erlang versions (elixir --version):

Erlang/OTP 23 [erts-11.0.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.10.4 (compiled with Erlang/OTP 21)

Operating system: macOS Mojave 10.14.6 (18G103)
Editor or IDE name (e.g. Emacs/VSCode): VimR (Neovim)
Editor Plugin/LSP Client name: coc-elixir

Troubleshooting

[x] Restart your editor (which will restart ElixirLS) sometimes fixes issues
[ ] Stop your editor, remove the entire .elixir_ls directory, then restart your editor

NOTE: This will cause you to have to re-run the dialyzer build for your project

[I'm willing to do this but I don't think it's necessary or particularly useful for my issue.]
If you're experiencing high CPU usage, it is most likely Dialyzer building the PLTs; after it's done the CPU usage should go back to normal. You could also disable Dialyzer in the settings.
Logs

If using a client other than VS Code, please try VSCode's "ElixirLS: Elixir support and debugger" extension. Does it reproduce your failure?
Create a new Mix project with mix new empty, then open that project with VS Code and open an Elixir file. Is your issue reproducible on the empty project? If not, please publish a repo on Github that does reproduce it.
Check the output log by opening View > Output and selecting "ElixirLS" in the dropdown. Please include any output that looks relevant. (If ElixirLS isn't in the dropdown, the server failed to launch.)
Check the developer console by opening Help > Toggle Developer Tools and include any errors that look relevant.

[Again, I'm willing to do the above, but I don't think any of these steps are necessary or particularly useful for my issue.]
In the coc-elixir logs I'm seeing output like this:
...

==> phoenix_live_dashboard
Compiling 33 files (.ex)

== Compilation error in file lib/phoenix/live_dashboard/layout_view.ex ==
** (UndefinedFunctionError) function Appsignal.Phoenix.Template.EExEngine.compile/2 is undefined (module Appsignal.Phoenix.Template.EExEngine is not available)
    Appsignal.Phoenix.Template.EExEngine.compile("lib/phoenix/live_dashboard/templates/layout/dash.html.eex", "dash.html")
    (phoenix 1.5.4) lib/phoenix/template.ex:351: Phoenix.Template.compile/3
    (phoenix 1.5.4) lib/phoenix/template.ex:166: anonymous fn/4 in Phoenix.Template."MACRO-__before_compile__"/2
    (elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
    (phoenix 1.5.4) expanding macro: Phoenix.Template.__before_compile__/1
    lib/phoenix/live_dashboard/layout_view.ex:1: Phoenix.LiveDashboard.LayoutView (module)
[Warn  - 6:06:25 PM] could not compile dependency :phoenix_live_dashboard, "mix compile" failed. You can recompile this dependency with "mix deps.compile phoenix_live_dashboard", update it with "mix deps.update phoenix_live_dashboard" or clean it with "mix deps.clean phoenix_live_dashboard"

This is – sadly! – a known issue with my project.
For a full/post-clean compile, I need to first run mix deps.compile problem-dep --include-children before I can (successfully) run mix compile. Is there some way I can configure ElixirLS to do this? Or is there a way I could 'manually' do this outside of ElixirLS?

If you came up with a PR we would consider it but it would be a maintenance burden with little help to most users. Please consider other ways: setting an alias on mix compile (that's what elixir-ls is calling). Ultimately, fixing the problem-dep or isolating the problem and reporting it upstream is going to be more beneficial to the community.

@lukaszsamson Thanks for the feedback!
I can fully appreciate that this is a relatively low-value request for almost all users.
Sadly, aliasing mix compile was more trouble than it was worth. I think (IIRC) that it effectively caused every compile to be a full/clean compile, for my project's code anyways.
The problem with the problem-dep is known, i.e. reported upstream and fixed in a development branch (again IIRC). This situation should be temporary as-is.
Is there any way I could manually workaround this for now? I.e. some way I could manually run mix deps.compile problem-dep --include-children for the copy of my project ElixirLS makes? That would be entirely sufficient as a temporary workaround.

@kenny-evitt You could try editing your mix.exs to have build_path: ".elixir_ls/build", then closing your editor, removing your .elixir_ls directory and running MIX_ENV=test mix deps.compile appsignal --include-children, Then remove the build_path from your mix.exs and use your editor normally. Although you'd have to redo these steps if you ever clear out your .elixir_ls directory.
Although I wonder if there is some way you could make use of this snippet from mix help deps.compile, but as far as I know you can't set the project's build_path from the command line:
The compilation can be customized by passing a compile option in the
dependency:

    {:some_dependency, "0.1.0", compile: "command to compile"}

@axelson Thanks! I'll try the :build_path trick soon and let you know if I got it working.
I think the snippet won't help because the problem with the problem_dep is that it needs to be compiled before another dependency but that's not supported by Mix.
Here's the upstream issue by the way:

Compilation issues with Phoenix Live Dashboard · Issue #319 · appsignal/appsignal-elixir

@axelson That seemed to do the trick – the :build_path trick in particular! Thanks again!

@axelson Newer versions of Mix support a MIX_BUILD_PATH environment variable so I think I can compile appsignal via:
$ MIX_ENV=test MIX_BUILD_PATH=".elixir_ls/build/test" mix deps.compile appsignal --include-children

I'll try that when I get a chance.

Ah, I wasn't aware of that environment variable. That's probably an easier/better approach.

The MIX_BUILD_PATH environment variable didn't work for just now when I tried it:
$ MIX_ENV=test MIX_BUILD_PATH=".elixir_ls/build" mix deps.compile appsignal --include-children
...
===> Compiling certifi
===> Compiling src/certifi.erl failed
src/certifi.erl:none: undefined parse transform 'ct_expand'

==> partially
** (Mix) Could not compile dependency :certifi, "/Users/kenny/.asdf/installs/elixir/1.10.4/.mix/rebar3 bare compile --paths=".elixir_ls/build/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile certifi", update it with "mix deps.update certifi" or clean it with "mix deps.clean certifi"

Adding build_path: ".elixir_ls/build" to the output of project/0 in my mix.exs file DID work tho.
For context, we just updated the Erlang version for our project, which is what I'm guessing necessitated me using this workaround again.


WIP: Support lru in ColdObjectTracker

What do these changes do?

In this PR, I will build a LRU for ColdObjectTracker, to keep track of the oldest unused Obj ID.
Mainly prepare for later implementation of spill.
In detail, I sketched a LRU by a doubly-linked list and  hash table -- A classic implementation of LRU. Due to the limitation of currently used cpp version (C++14), the synchronize mechanism I firstly choosed was std::shared_mutex in C++17, then I changed to std:: shared_timed_mutex, but they should have no difference in our scenario.  see here
Related issue number

Fixes #724(partially) and https://github.com/v6d-io/v6d/issues/739
TODOs

[ ]  Add UnitTest

[ ] Encounter a problem when I attempt to run test on my server. Plz kindly refer to disscussion (Disccussion here)

Vineyard currently built with C++14, and we currenly have no plan to upgrade to C++17 for backwards compatibility reason.


Tag

Hi @mika314
Would it be possible to add a tag like v0.0.1 or something else to make the changes more traceable?
I'm currently planning on extending the API with some of the floating point-precision commands and it would be nice to have some feature vs tag relationship here.

Here we go!
https://github.com/mika314/sdlpp/releases/tag/v0.0.1


feat: update sigma version and support edge events

I updated the sigma version to 2.1.1, because sigma 2.1.1 added edge events

hi @sim51, when will this PR be merged? We also need this new feature of sigma.js, what's more, I also need a "doubleClick" event in mouseEvents, I can create a PR for my requirement after this PR has been merged. Thanks.

@Frida0 I apologize for my carelessness, I have added double click event.😅

PR is merged.
I added/checked all the new Sigma events.
Will be part of the v12.2

@akitaSummer @sim51 thanks.


GPS not working in 4.0.1

I updated to 4.0.1 via OTA and GPS no longer works. It finds satellites but never appears to get a fix. Worked fine in 3.4. Device is XZ2 Compact single SIM.

Just checked on my XZ2c (4.0.1, hybris9 arm32 based port) and it worked fine, GPS fix was obtained. Hard to say, sometimes it may take longer time. Put your phone somewhere where you expect the fix, start some program that will keep the phone awake (I used Pure Maps and entered "Follow me" mode in navigation), and wait 10 minutes or more. It is quick in estimating number of satellites , but fix takes longer. Maybe it is your case.

Working fine here also. Tested with the CDS tool.

Got it to work now.

Thank you for update, good to know.


Only run integration tests on version builds

Setup AppVeyor so it only runs the integration tests on tag builds or maybe specific branches?

Fixed in 0b30f4a39a5ae1e29126e76682c64c201033b54f


wxglade script doesn't support Python 3

The wxglade script (that gets installed to /usr/bin when using setup.py) doesn't support Python 3.
This script could probably just be replaced by using entry_points in setuputils.

Hi, open wxglade.py  with IDLE Python and execute since the IDLE

I'm not referring to 'wxglade.py' (which works fine with Python 3) but 'wxglade' bash script.

As the script would pick any interpreter instead of the one that was being used, it's probably not too useful.
I'm not sure how to handle this. My experience with Linux and setuputils is almost zero...

I have just modified the script to search for Python 3 first.
The script tries to install wxGlade into site-packages. This is something that I don't find useful at all. A development tool has not to install itself into the target installation.
Maybe it would be best to drop it completely.

hi @DietmarSchwertberger There are some details that you want to add, for example wx.aui

@Moriand : That's rather unlikely. I don't see much of an intersection of the types applications that use profit from wx.aui and the ones that are generated by a GUI builder. I have not had the need to use wx.aui within almost 20 years of wxPython usage.
But I also don't see how this is related to issue #324.

@DietmarSchwertberger Ah, sorry, the problem was that it can not be installed and what I said was just a suggestion to the application in general

I have updated the script to support Python 3. It should be extended to check whether wxGlade is really available for the tested version.

The check for Python 3 is in and will be part of 0.9.0.
The check whether wxGlade is really available for this version is beyond my shellscript capabilities...

in 0.9.0b1


how to set constraint for assign all orders in vrp

I noticed cvrptw example will have unassigned orders.
but in real world, some times we have reserved orders,
and we can reassign those orders in hours,
so we must ensure assign all orders.
how to set constraint let system must assign all orders in vrp?

I think this is Quadratic Distribution Problem, dose ortools can solver this problem?

to make an order mandatory simply add a penalty equal to max value to it.

ok , I'll have a try.

ok , I think DEAP could be better choice.


nixos: Fix systemd stage 1 after #201266

Description of changes
#201266 broke systemd stage 1, because the initrdBinEnv already included some explicit links to util-linux tools, which caused a collision. The real problem here is that systemd stage 1 is including all of system.fsPackages, which it should not do, both because it includes extraneous binaries from each package and because it includes extraneous packages altogether (e.g. dosfstools). Instead, we should go through all the nixos/modules/tasks/filesystems/ and add the all the necessary binaries explicitly, as they currently do for extraUtils. But that would be a notably larger PR in need of significantly more testing. This fix preserves #201266 and fixes systemd stage 1 with the minimal change.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@ofborg test fsck systemd-initrd-simple

@GrahamcOfBorg eval

Instead, we should go through all the nixos/modules/tasks/filesystems/ and add the all the necessary binaries explicitly, as they currently do for extraUtils. But that would be a notably larger PR in need of significantly more testing. This fix preserves https://github.com/NixOS/nixpkgs/pull/201266 and fixes systemd stage 1 with the minimal change.

@ElvishJerricco can you open an issue for this, or add a FUTUREWORK into the changes here, so we don't forget about it?

@flokli done #201519


Improve tests for catch-all + defaults/nulls

I noticed some squishiness + missing tests while investigating something in this area

Looks good to me

:shipit:


feat(postgres-14-with-zhparser): maintain Postgres with zhparser

with building extension from source:

scws;
zhparser;
pg_bigm;

merged in main branch.


What is the broker response for a no-op update?

When the platform sends an update request the broker can return a 200 OK (forgetting async for a moment) to state that has processed the proposed changes (either parameters or plan id). What is not defined is the broker's behaviour if the platform sends another request with the same proposed changes and the broker does nothing.
For parameters we cannot necessarily assume that the endpoint is idempotent because a broker could have a parameter like "upgrade": true. But plan changes can be more black or white.
Do we want to add any clarifying text in the spec to guide broker authors on what to do when an update results in a no-op?

What kind of advise are you thinking of? My initial reaction is that it just returns a 200 and doesn't change anything on the instance.

@fmui any thoughts on this?


Failed to obtain Auth token

Worked as of 2024-11-05, however now getting an invalid_client error without changing contents of config.env or updating packages as far as I can tell.
config.env contents:
PRESCIENT_ENDPOINT_URL=<PRESCIENT_UAT_URL>
PRESCIENT_AWS_REGION="us-west-2"
PRESCIENT_AWS_ROLE=<AWS_ROLE_ARN>
PRESCIENT_TENANT_ID=<TENANT_ID>
PRESCIENT_CLIENT_ID=<CLIENT_ID
PRESCIENT_AUTH_URL="https://login.microsoft.com"
PRESCIENT_AUTH_TOKEN_PATH="/oauth2/v2.0/token"

Reproducible example:
from prescient_sdk.client import PrescientClient

client = PrescientClient()
client.auth_credentials
Traceback (most recent call last):
  File "/home/ysebastien/git/enexus-raster-math/main.py", line 97, in <module>
    client.auth_credentials
  File "/home/ysebastien/git/enexus-raster-math/.venv/lib/python3.12/site-packages/prescient_sdk/client.py", line 157, in auth_credentials
    raise ValueError(f"Failed to obtain Auth token: {self._auth_credentials}")
ValueError: Failed to obtain Auth token: {'error': 'invalid_client', 'error_description': "AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: e0300674-91f1-4d54-b4a7-9682e0213900 Correlation ID: 403d5ba8-7755-48a3-80f6-fe86dfbd3bbc Timestamp: 2024-11-06 19:42:37Z", 'error_codes': [7000218], 'timestamp': '2024-11-06 19:42:37Z', 'trace_id': 'e0300674-91f1-4d54-b4a7-9682e0213900', 'correlation_id': '403d5ba8-7755-48a3-80f6-fe86dfbd3bbc', 'error_uri': 'https://login.microsoft.com/error?code=7000218'}

Looks like client ID has expired in Azure

The auth flow we are using does not require a client_secret. This is likely an azure configuration change. Likely something I changed when trying to help David with the UI.

I re-enabled the allow public client flows, which is a setting I was testing when Enbridge was having problems.


Any plans for a migration guide?

Updating from NaN 1.x to 2.x is getting more harder than I thought.

converted examples in node-addon-examples may make it a bit easier (pull request is pending, but you can see nan_2.x and nan_1.x here: https://github.com/winfinit/node-addon-examples)
also what helped me a lot is to look through https://github.com/nodejs/nan/tree/master/test

@rvagg said he was working on one

The converter script in https://github.com/nodejs/nan/issues/376#issuecomment-120838432 was very helpful for me

+1

Good hint @winfinit . Found everything I needed there.

The biggest gotcha I've run into between nan v1 and v2 is a change to the Buffer creation methods where ownership of the underlying data is transferred.
In nan v1, the "take ownership" method is NanBufferUse which results in delete[] being called on the data during GC.
In nan v2, the "take ownership" method is Nan::NewBuffer which results in free() being called.

@lovell I had a bunch of memory corruption because of this exact change. Took awhile to figure it out.

So if I use new for memory allocation then I need to use BufferCopy and cannot use the allocated memory block because it is removed with free()?

Supply a FreeCallback that calls delete.

@kkoopa Ah thanks, I read over that one. Is there a nan wrapper for node::smalloc::FreeCallback and node::Buffer::FreeCallback callback? And what is the hint argument?

https://github.com/nodejs/nan/blob/master/nan.h#L1218
The hint argument is user data.

https://nodesource.com/blog/cpp-addons-for-nodejs-v4 here 'tis

Great!


Upgrade to mongodb version 6 ???

Please, would be nice

It can be done this way: https://github.com/leandroguimaraes/docker-mongo-replica-set/commit/2e62132d1ef624ce8171d78a194b9a9caa68a7d0

@leandroguimaraes thanks for that.
Do you know why your image wouldn't work on GitLab CI/CD as a service? I haven't tried in GitHub.
Not sure if it has to do with the HOST name, which is needed, as localhost does not mean anything when running a docker container as a service in GitLab, therefore I use the alias mongors and I refer to that connection string
mongodb://mongors:27017,mongors:27018,mongors:27019/?replicaSet=rs0&readPreference=primary&ssl=false

But for some reason, my functional tests, which work well when running the mongo Replica set container in my local, don't work when running it in GitLab CI/CD
I can see the following error in console before the traces about timeout connectivity show
MongoServerError: No host described in new configuration with {version: 1, term: 0} for replica set rs0 maps to this node

Any tip would be much appreciated!
PS: my CI/CD job looks like this
test:
    stage: test
    services:
        -   name: registry.gitlab.com/myrepo/mongo-rs:latest
            alias: mongors
    variables:
        # MongoDB
        HOST: "mongors"
    before_script:
        - echo "Wait, even more, for infrastructure"
        - sleep 60;
    script:
        - dotnet test --blame --configuration Release --logger "console;verbosity=minimal" --collect:"XPlat Code Coverage"
        - echo "tests will fail because of connectivity to mongors"
    allow_failure: false

It can be done this way: leandroguimaraes@2e62132

this never worked for me. it gives some error, but I didn't bother to debug extensively. also considering there's a newer version of mongodb, i decided to make this in light of version 7.
to whom it may concern

@maybesmurf thank you very much. This helps me a lot.


Support string descriptors for generate

When running
apollo-codegen generate **/*.graphql --schema schema.json --target typescript --addTypename --output operation-result-types.ts

If there are string descriptors in a .graphql files
"this is my comment"
Then an error is thrown of
Unexpected String "this is my comment"

See

https://github.com/Swydo/meteor-graphql/issues/12#issuecomment-352675055

https://github.com/graphql/graphql-js/pull/927

Even with having "graphql": "^0.12.3", as a dependency in my project it was still using an older version.
I've managed to get it to use a newer version of graphql.
Using yarn ^1.3.2 and adding to my projects package.json
  "resolutions": {
    "graphql": "^0.12.3"
  }

This should be fixed in apollo-codegen 0.18.3.


Timing issue with useComputed

https://codesandbox.io/embed/charming-rosalind-qyxbh1?file=/src/index.js&codemirror=1
Here, a component is only rendered if the value of a signal is not-null.
Within that component, a useComputed assumes the signal is not-null. However, the recomputation appears to run before the component is unmounted, meaning it receives a null value.

Hmm yes, this seems to be a side-effect of mixing a synchronous update with an asynchronous one. When we can't do an optimal update (like synchronously updating text or an attribute) we have to fall back to re-rendering the VNode, which in this case leads to changing the return value from the VNode to that dom-node.
However the dependencies does include one that we can do synchronously i.e. that recompute which will happen synchronously with the null value while the VNode update will be scheduled like any other update in Preact, which would allow us to batch it with useState/....

I guess it could be more intuitive if we say that computeds used as hooks are hooked into the Preact render cycle

I think that's probably the safest thing. I ran into another bug that might also be related to timing. I'll file it today.

How about something like this? Sorry, wrote this in JavaScript instead of TS so I could test it quickly in the sandbox:
function useComputed(compute) {
  // Keep track of the latest compute function.
  const $func = useRef(compute);
  $func.current = compute;

  // Keep track of the latest compute function result
  // so that we can fall back to it after unmount.
  const $value = useRef();

  // On unmount just start returning the last computed value.
  useEffect(() => {
    $func.current = null;
  }, []);

  const $compute = useRef();
  if (!$compute.current) {
    $compute.current = computed(() => {
      if ($func.current) {
        $value.current = $func.current();
      }
      return $value.current;
    });
  }

  // Update the internal flag here?
  // (currentComponent as AugmentedComponent)._updateFlags |= HAS_COMPUTEDS;
  return $compute.current;
}

This way the computed's updates end in tandem with the component's lifecycle, and it'll just start returning the last computed value whenever asked.


(GH-1895) Add action to trigger updating ps module in bolt-vanagon

In order to ship the powershell cmdlets module in the Bolt MSI package
we need generate the module from it's constituent files and commit it to
bolt-vanagon. This will happen by creating a repository-dispatch event
whenever changes to the powershell files are committed to master. The
repository-dispatch event sends a payload to the specified repository
which can be used to trigger another Github Action. This
repository-dispatch will trigger an action that generates the powershell
module and commits it to master of bolt-vanagon. This should ensure that
the module in bolt-vanagon stays up to date with the module components
in bolt.
!no-release-note

CLA signed by all contributors.


[BUG] org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testReplicaAlreadyAtCheckpoint is flaky

Describe the bug
The test case org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testReplicaAlreadyAtCheckpoint is flaky:
java.lang.AssertionError:  inconsistent generation
	at __randomizedtesting.SeedInfo.seed([138297ACFE85FB99]:0)
	at org.opensearch.index.translog.transfer.TranslogCheckpointTransferSnapshot$Builder.build(TranslogCheckpointTransferSnapshot.java:180)
	at org.opensearch.index.translog.RemoteFsTranslog.upload(RemoteFsTranslog.java:338)
	at org.opensearch.index.translog.RemoteFsTranslog.prepareAndUpload(RemoteFsTranslog.java:310)
	at org.opensearch.index.translog.RemoteFsTranslog.sync(RemoteFsTranslog.java:365)
	at org.opensearch.index.translog.InternalTranslogManager.syncTranslog(InternalTranslogManager.java:196)
	at org.opensearch.index.engine.InternalEngine.syncTranslog(InternalEngine.java:610)
	at org.opensearch.index.shard.IndexShard.postActivatePrimaryMode(IndexShard.java:3449)
	at org.opensearch.index.shard.IndexShard.lambda$updateShardState$4(IndexShard.java:727)
	at org.opensearch.index.shard.IndexShard$5.onResponse(IndexShard.java:4052)
	at org.opensearch.index.shard.IndexShard$5.onResponse(IndexShard.java:4022)
	at org.opensearch.index.shard.IndexShard.lambda$asyncBlockOperations$37(IndexShard.java:3973)
	at org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82)
	at org.opensearch.index.shard.IndexShardOperationPermits$1.doRun(IndexShardOperationPermits.java:157)
	at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:908)
	at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

To Reproduce
./gradlew ':server:internalClusterTest' --tests "org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testReplicaAlreadyAtCheckpoint" -Dtests.seed=138297ACFE85FB99

Expected behavior
The test must always pass
Additional context
https://build.ci.opensearch.org/job/gradle-check/30101/testReport/junit/org.opensearch.remotestore/SegmentReplicationUsingRemoteStoreIT/testReplicaAlreadyAtCheckpoint/

This cause looks identical to https://github.com/opensearch-project/OpenSearch/issues/10902.  @kasundra07 was this build on 2.x or main?
The fix for this is in main but has not yet landed in 2.x - https://github.com/opensearch-project/OpenSearch/pull/11168

It appears that the fix referenced above has resolved the flakiness here. I was unable to repro the inconsistent generation issue even after repeatedly running the repro command from this run several thousand times:
./gradlew ':server:internalClusterTest' --tests "org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testReplicaAlreadyAtCheckpoint" -Dtests.seed=138297ACFE85FB99 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=lt -Dtests.timezone=Europe/Warsaw -Druntime.java=21

Also, no open items reference this flaky failure. Note that when using  -Dtests.iters parameter to repeatedly run the test, I did run into other failures, though these are unrelated to the flakiness in this issue. Examples:

Test suite timeout  - mitigated by overriding the suite timeout using -Dtests.timeoutSuite
java.lang.AssertionError: a started primary with non-pending operation term must be in primary mode - recurrence of https://github.com/opensearch-project/OpenSearch/issues/10006

I'm opting to close this issue as a fixed flaky test. Please reopen if this signature resurfaces.


Bug: Reporter doesn't work for non BDD setup projects

Given
import 'dotenv/config';
import { defineConfig, devices } from '@playwright/test';
import { defineBddConfig, cucumberReporter } from 'playwright-bdd';

const testDir = defineBddConfig({
  paths: ['tests/features/*'],
  import: ['tests/steps/**/*.ts', '!tests/fixtures/*'],
  importTestFrom: 'tests/steps/fixtures.ts',
});

export default defineConfig({
  testDir,
  reporter: [
    ['line'],
    cucumberReporter('junit', {
      outputFile: 'coverage/junit.xml',
    }),
    cucumberReporter('html', {
      outputFile: 'coverage/web.html',
    }),
  ],
  retries: 2,
  projects: [
    {
      name: 'setup',
      testMatch: /setup\.ts/,
      testDir: 'auth',
    },
    {
      name: 'chromium',
      use: {
        ...devices['Desktop Chrome'],
      },
      dependencies: ['setup'],
    },
});

When
When I run the "setup" job and there's an error
Then
The reporter falls over for non BDD driven projects and you can't opt out of cucumber report for that project
Error in reporter Error: __bddData annotation is not found for test "reservation user".
    at TestCaseRun.extractBddData (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright-bdd/src/reporter/cucumber/messagesBuilder/TestCaseRun.ts:77:13)
    at new TestCaseRun (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright-bdd/src/reporter/cucumber/messagesBuilder/TestCaseRun.ts:53:25)
    at MessagesBuilder.onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright-bdd/src/reporter/cucumber/messagesBuilder/Builder.ts:58:25)
    at Object.onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright-bdd/src/reporter/cucumber/messagesBuilder/index.ts:21:34)
    at CucumberReporterAdapter.onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright-bdd/src/reporter/cucumber/index.ts:56:29)
    at ReporterV2Wrapper.onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/reporters/reporterV2.js:87:150)
    at /Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/reporters/multiplexer.js:47:65
    at wrap (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/reporters/multiplexer.js:86:5)
    at Multiplexer.onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/reporters/multiplexer.js:47:45)
    at InternalReporter.onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/reporters/internalReporter.js:62:20)
    at JobDispatcher._reportTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/runner/dispatcher.js:519:20)
    at JobDispatcher._onTestEnd (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/runner/dispatcher.js:285:10)
    at WorkerHost.emit (node:events:514:28)
    at ChildProcess.<anonymous> (/Users/lgilbraith/code/OrderIntegrity/node_modules/playwright/lib/runner/processHost.js:105:16)
    at ChildProcess.emit (node:events:514:28)
    at emit (node:internal/child_process:951:14)

But I expect
To be able to run without error
Isolated demo
I'll try to create a repro soon
Environment
Playwright-bdd environment info:

platform: darwin
node: v20.10.0
playwright-bdd: v6.2.0
@playwright/test: v1.43.1
@cucumber/cucumber: v10.5.1
Playwright config file: playwright.config.ts

Released in v6.3.1.
Please re-check on your side.

Thanks, I will take a look!
On Fri, May 31, 2024, 04:10 Vitaliy Potapov @.***>
wrote:

Closed #143 https://github.com/vitalets/playwright-bdd/issues/143 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/vitalets/playwright-bdd/issues/143#event-12998937130,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACJVU72JXTIGJBBCYGMJFBLZFBLCTAVCNFSM6AAAAABGXJCNNOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHE4TQOJTG4YTGMA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Looks like the same as https://github.com/vitalets/playwright-bdd/issues/166
Fixed in v6.6.0.
@magarwal19 could you re-check on your side?

Hi It seems to be working as expected currently . We can close this issues.. and if observed again in future will log a new with more details

Ok! Thanks for the feedback!

@vitalets i see that issue again:
Error in reporter Error: __bddData annotation is not found for test "Client Portal - Test notification (email)". at TestCaseRun.extractBddData (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\TestCaseRun.ts:76:13) at new TestCaseRun (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\TestCaseRun.ts:52:25) at MessagesBuilder.onTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\index.ts:68:25) at Object.onTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\ref.ts:24:34) at CucumberReporterAdapter.onTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright-bdd\src\reporter\cucumber\index.ts:61:29) at ReporterV2Wrapper.onTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\reporters\reporterV2.js:87:150) at C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\reporters\multiplexer.js:47:65 at wrap (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\reporters\multiplexer.js:86:5) at Multiplexer.onTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\reporters\multiplexer.js:47:45) at InternalReporter.onTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\reporters\internalReporter.js:62:20) at JobDispatcher._reportTestEnd (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\runner\dispatcher.js:518:20) at JobDispatcher._failTestWithErrors (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\runner\dispatcher.js:370:10) at JobDispatcher._massSkipTestsFromRemaining (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\runner\dispatcher.js:377:14) at JobDispatcher._onDone (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\runner\dispatcher.js:443:10) at WorkerHost.emit (node:events:518:28) at ChildProcess.<anonymous> (C:\BuildAgent\work\a556589622e3634b\e2e-tests\node_modules\playwright\lib\runner\processHost.js:105:16) at ChildProcess.emit (node:events:518:28) at emit (node:internal/child_process:951:14) at processTicksAndRejections (node:internal/process/task_queues:83:21)
It is only present with file that has "@mode:serial" added.

I will check it, reopenning.

Fixed in v7.3.0.
@aluckin3 could you check on your side?


Format single digit integer with $ 0,0[.]00 it returns $ 3 instead of $ 3.00

@sjzamora86 if you don't want the decimal place to be optional you can remove the square brackets from your format string.


We need a cute mascot :)

chainer has a ring log but we want a cute mascot.
For example, Hive has so cute mascot: https://hive.apache.org/
Fluentd too: http://www.fluentd.org/
Cute mascot is very important for spreading softwares.

:+1:

:+1:

:+1:
How about a cute mascot wearing a China dress?

Hi,
How about something like this: https://www.butlerandwilson.co.uk/media/catalog/product/cache/1/image/1800x/040ec09b1e35df139433887a97daa66f/c/r/crystal-swinging-panda-chain-necklace.6936.full.jpg

We have discussed this question and decided on the new Chainer mascot. Behold, the Chainer Parrot!

To ask @kuenishi for Jubatus-like mascot.

We discussed, and decided that since we have a logo, getting a mascot isn't necessary.
Thanks!


Add New Injest Content

If we WANT to have any docs for ingest, it should contain a list of ingest regions and information about how to bypass the ingest load balancer and force ingest into a specific region.

Closing this issue, the ingest information does not need to be in the docs.


Changing the logo of Age Calculator

👨💻 Changes proposed
Changed the logo image

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Actually by mistake i deleted the photo, now I have added the better one and deleted the older one
Please check and sorry for the inconvenience


add crystal telegram bot, and critter

@codenoid I have posted some comments. Also can you briefly describe what does your PR do? The travis also looks like failing.


ServiceBus CrossEntity transactions : Added sample and java doc

cross Entity transaction was already developed and released as beta

Adding more java doc and sample

closing in favor of PR :https://github.com/Azure/azure-sdk-for-java/pull/21968


[engsys] update prettier version for rush-prettier autoinstaller

update prettier version to ^2.5.1
run rush update-autoinstaller --name rush-prettier

I still use pre-commit on one of my machines. Updating prettier to v2 as we are doing that in the repo


remove not-in-use fixed_size_array feature

It seems fixed_size_array feature (I search FixedSizeArray in the repo and not found anything) are not in use, and it has been removed in latest rustc (see: https://github.com/rust-lang/rust/pull/84094)

thanks!


csc.dll is confused for source file under dotnet test

Problem
I use Buildalyzer to populate an AdhocWorkspace, like this:
var workspace = new AdhocWorkspace();
var analyzerManager = new AnalyzerManager();

foreach (var filePath in projectFilePaths)
{
    ProjectAnalyzer analyzer = _analyzerManager.GetProject(filePath);
    analyzer.AddToWorkspace(workspace);
}

then I compile a project like this:
var compilation = workspace.CurrentSolution.Projects.First().GetCompilationAsync().Result;

My integration tests (written with NUnit) successfully pass when run by ReSharper in Visual Studio. When I try to run them in a console with dotnet test, I get a weird behavior: GetCompilationAsync() produces diagnostics where the compiler complains:
C:\Program Files\dotnet\sdk\2.1.302\Roslyn\bincore\csc.dll(1,1): error CS0116: A namespace cannot directly contain members such as fields or methods

and several screens of strings similar to:
\u0013\u0015Microsoft Corporation1&0$\u0006\u0003U\u0004\u0003\u0013\u001dMicrosoft Time-Stamp PCA 2010\u0002\u00133\u0000

Environment
> dotnet --info

.NET Core SDK (reflecting any global.json):
 Version:   2.1.302
 Commit:<PHONE_NUMBER>

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.16299
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.302\

Host (useful for support):
  Version: 2.1.2
  Commit:  811c3ce6c0

.NET Core SDKs installed:
  2.1.2 [C:\Program Files\dotnet\sdk]
  2.1.104 [C:\Program Files\dotnet\sdk]
  2.1.201 [C:\Program Files\dotnet\sdk]
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.302 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

After examining MSBuild output, I see that CSC command line under dotnet test is different. Under ReSharper, it is:
C:\Program Files\dotnet\sdk\2.1.302\Roslyn\bincore\csc.dll /noconfig /unsafe- ........

whereas under dotnet test it is:
C:\Program Files\dotnet\dotnet.exe "C:\Program Files\dotnet\sdk\2.1.302\Roslyn\bincore\csc.dll" /noconfig /unsafe- ............

and therefore MSBuild output items include csc.dll in CscCommandLineArgs output item:
    Output Item(s):
        CscCommandLineArgs=
            C:\Program Files\dotnet\sdk\2.1.302\Roslyn\bincore\csc.dll
            /noconfig
            /unsafe-
            .........
            HelloPage.cs
            Services\IGreetingService.cs
            .........

and accordingly, I get "C:\Program Files\dotnet\sdk\2.1.302\Roslyn\bincore\csc.dll" in the first item returned by ProjectAnalyzer.GetSourceFiles()
I guess that list of source files is retrieved from CscCommandLineArgs. Then excluding file paths with "dll" extension should do the work. Am I on the right path?

I guess that list of source files is retrieved from CscCommandLineArgs. Then excluding file paths with "dll" extension should do the work. Am I on the right path?

That's exactly correct. Buildalyzer looks at what MSBuild told it the CscCommandLineArgs property is. Are you on the latest version? This is a known issue and there's already code to deal with it when using AnalyzerResult.GetSourceFiles(): https://github.com/daveaglick/Buildalyzer/blob/master/src/Buildalyzer/AnalyzerResult.cs#L52

I just published Buildalyzer 2.0 which runs MSBuild out-of-process (as opposed to the old way of running it via MSBuild APIs). In general, if you can build it Buildalyzer should now be able to build it. Given how drastically different this new technique is, I'm closing all existing bug reports.
Please try the new version and if you're still having problems, please open a new issue.


test: reduce flakiness of reconcile timeout e2e

This test has been relatively flaky, particularly on autopilot. The condition of the flake appears to frequently coincide with a node replacement that causes Pod eviction. This presumably causes the reconciler Pod to get evicted and restarted, and by the time it comes back up the goproxy Pod is ready.
This extends the delay of the goproxy readinessProbe in order to reduce the chance of encountering this scenario on autopilot.
Example flake:
override_reconcile_timeout_test.go:106: ERROR: WatchObject(ResourceGroup config-management-system/root-sync): predicates not satisfied: object "pod-1" does not have expected actuation and reconcile status, actual actuation status is "Succeeded", expect "Succeeded"; actual reconcile status is "Succeeded", expect "Timeout": context deadline exceeded

/assign @nan-yu


confirmation bug

My app is in production and when it sends the confirmation email after sign up it appends localhost/ to the beginning of the confirmation link url which makes it not work correctly. If you delete the localhost portion of the url it works fine. In my config/environments/production.rb file I have configured my action mailer as follows: config.action_mailer.default_url_options = { :host => 'http://my-app.herokuapp.com/' }  So I am unsure as to why I am getting this issue. If you would like I could send you a link to the site to see how it is not working.

Could you please read and provider the proper information: https://github.com/plataformatec/devise/wiki/Bug-reports
An app that reproduces the error would also be great.


next/config not working on custom server

Bug report
Describe the bug
When using next.js with a custom-server, publicRuntimeConfig is undefined in the client.
To Reproduce
Check the logs on these Codesandboxes:
Working without a server: hello-world
Not working with a custom server: custom-server-express
Expected behavior
publicRuntimeConfig to be as set in next.config.js.
System information

Version of Next.js: 7.0.2

What am I missing here? Is getConfig not supposed to work with a custom server? What would be the alternative?

This example works fine when clicking both console and terminal though https://codesandbox.io/s/rr1v861l2p

Urgh, my bad. Thanks.

I can't access the sandbox anymore, can someone post the solution?

Hey @timneutkens ! I'm also running into this issue where getConfig() returns an empty object when running a custom express server. Do you remember what the solution was?

it holds state in a singleton, the only reason it wouldn't work is if you have duplicated next inside node_modules or something 🤔

Hmm yeah that's a possibility. I ended up going with Now build env and secrets instead. Works like a charm.


request.auth.credentials is null using hapi-auth-cookie

hi,
I am using hapi-auth-cookie to authenticate my users.  after setting credentials by
request.auth.session.set({
    userId      : userId,
    fullName    : fullname,
});

request.auth.credential is null in this module.  am I doing something wrong?

nvm, user error.  thanks.


piCAM Pull Request

Completed piCAM code from Amer El Eissawi and Syed Abraham Ahmed. Requesting review and merge to main.

Reviewing mass change of lines. Fixing now.

Closing as some merge errors occured from main to our outdated project.


Fix downgrade tests, there are no hooks when upgrading from passive

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

Project coverage is 72.53%. Comparing base (0fe9187) to head (efd3044).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2004   +/-   ##
=======================================
  Coverage   72.53%   72.53%
=======================================
  Files          76       76
  Lines        8910     8910
=======================================
  Hits         6463     6463
  Misses       1913     1913
  Partials      534      534

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


Components - OO vs. Func

https://react.dev/reference/react/Component says
We recommend defining components as functions instead of classes. See how to migrate.
https://news.ycombinator.com/item?id=35187959#:~:text=> Why did react (effectively),> says
But that's not how most people actually structure their React code. Instead, they continue to model their application as an aggregation of conceptual objects a la OOP. Forms. Widgets. Color pickers and the like. Each with its own persisted state. The fact that you've architected React to avoid semantic classes is orthogonal to the fact that people are still using it to implement conceptual classes.
(amongst other things)

https://chatgpt.com/share/675b55ba-c528-8009-9e7d-d1ff8a91df70
says
import withTheme from './withTheme';
import withAuth from './withAuth';
import withData from './withData';
import withLogging from './withLogging';

function MyComponent({ theme, user, data }) {
  return (

Welcome, {user.name}

Data: {data}

  );
}

// Wrapping the component with multiple HOCs
export default withTheme(
  withAuth(
    withData(
      withLogging(MyComponent)
    )
  )
);


More accurate/natural English README translations

Thanks for your contrbution! I'll handle this PR.


forward_front: ValueError: not enough values to unpack (expected 2, got 1)

Hi,first thx for ur excellent work!
when I use celebA lama-deep model to predict with 'refine=True', there always a problem :
File "/DATA/jupyter/personal/project/cover_diff/lama/saicinpainting/evaluation/refinement.py", line 128, in _infer
z1,z2 = forward_front(masked_image)
ValueError: not enough values to unpack (expected 2, got 1)
when I use big-lama model, there isn't this problem.
I tried to fix it but failed.Can u tell me how to do with it, thx a lot!

found any fixes to this?

Hi,first thx for ur excellent work! when I use celebA lama-deep model to predict with 'refine=True', there always a problem : File "/DATA/jupyter/personal/project/cover_diff/lama/saicinpainting/evaluation/refinement.py", line 128, in _infer z1,z2 = forward_front(masked_image) ValueError: not enough values to unpack (expected 2, got 1) when I use big-lama model, there isn't this problem. I tried to fix it but failed.Can u tell me how to do with it, thx a lot!
Have you solved this problem?

Hey, thanks for raising this issue. Will be adding a fix soon!


PayPal Shopware API

PHP Version: 8.2   | Shopware Version: <IP_ADDRESS>  | Affected area / extension: Extension:PayPal-Integration

Expected behaviour:
PayPal has problems offering PayPal-powered payment method iDEAL to end customers.
Actual behaviour:
PayPal has problems offering PayPal-powered payment method iDEAL to end customers.
This API call has now failed with PayPal debug (paypal-correlation-id).
And the response from PayPal to this Shopware 6 API call was this and this response shows an error
„NOT_ENABLED_FOR_PAYMENT_SOURCE“.
PayPal Response (HTTP: 422)
PayPal Response body { "name": "UNPROCESSABLE_ENTITY", "details": [ { "field": "/payment_source/ideal", "location": "body", "issue": "NOT_ENABLED_FOR_PAYMENT_SOURCE", "description": "NOT_ENABLED_FOR_PAYMENT_SOURCE" } ], "message": "The requested action could not be performed, semantically incorrect, or failed business validation.", "debug_id": "235939387ef3e", "links": [ { "href": "https://developer.paypal.com/docs/api/orders/v2/#error-NOT_ENABLED_FOR_PAYMENT_SOURCE", "rel": "information_link", "method": "GET" } ] }
How to reproduce:
This information was provided to us by a PayPal technician.

[public] Shopware automated response: This issue is linked to the internal issue: PPI-990
[created from PPI-990, comment 495132]

[public] Hey there, since this error does not really look like one Shopware can solve, we contacted some PayPal representatives who confirmed, that you need a special onboarding to accept iDEAL payments. Click the following link to start the Onboarding (make sure to login with your existing account and not create a new one): https://www.paypal.com/bizsignup/entry?product=ideal&capabilities=IDEAL&country.x=DE The approval process may take several days.
[created from PPI-990, comment 495275]


Apply style to docs

Will require #68 to be completed.
Raises some errors so far I am not sure how to deal with.
Example:
datashuttle/docs/source/pages/api_index.rst: WARNING: document isn't included in any toctree
datashuttle/docs/source/pages/cli_index.rst: WARNING: document isn't included in any toctree
datashuttle/docs/source/pages/documentation.md: WARNING: document isn't included in any toctree
datashuttle/docs/source/pages/get_started.md: WARNING: document isn't included in any toctree

Thanks for this! completely unrelated but I need to check this at the same time
Is the <br> flag needed in md?


[as2_pkg] Tello plataform error

ROS2 Version
humble
Version
main
What happened?
Error
Hi, I'm trying to port a code that I developed in simulation to the Tello drone. However, the actuators don't respond when sending commands. I tried with other libraries, and the motors did start. Additionally, when launching the launcher, both the image and the sensor data are read correctly. What could be causing the error?
Annotation
In the platform, I'm getting the following errors, but from what I've researched, they're related to some camera frame, and at the moment, I'm not having any errors related to it, but just in case, it might be helpful.
Relevant log output
## Plataform log
[as2_platform_tello_node-1] [h264 @ 0x7407c8013d40] non-existing PPS 0 referenced
[as2_platform_tello_node-1] [h264 @ 0x7407c8013d40] non-existing PPS 0 referenced
[as2_platform_tello_node-1] [h264 @ 0x7407c8013d40] decode_slice_header error
[as2_platform_tello_node-1] [h264 @ 0x7407c8013d40] no frame!
[as2_platform_tello_node-1] [INFO] [1712505080.144725977] [drone0.platform]: Transition [ARM] : New State [LANDED]
[as2_platform_tello_node-1] [INFO] [1712505081.035385653] [drone0.platform]: Transition [TAKE_OFF] : New State [TAKING_OFF]

## Controller log
ros2 launch as2_motion_controller controller_launch.py namespace:=drone0 use_sim_time:=false plugin_name:=pid_speed_controller motion_controller_config_file:=/home/adrian/workspace/install/tello_driver/share/tello_driver/config/motion_controller.yaml plugin_config_file:=/home/adrian/workspace/install/tello_driver/share/tello_driver/config/pid_speed_controller.yaml
...
...
[as2_motion_controller_node-1] [INFO] [1712505080.173511050] [drone0.controller_manager]: Control mode not established
[as2_motion_controller_node-1] [INFO] [1712505081.175359574] [drone0.controller_manager]: input_mode:[POSITION YAW_ANGLE LOCAL_ENU_FRAME ]
[as2_motion_controller_node-1] [INFO] [1712505081.175465704] [drone0.controller_manager]: output_mode:[SPEED YAW_SPEED BODY_FLU_FRAME ]
[as2_motion_controller_node-1] [INFO] [1712505081.175506487] [drone0.controller_manager]: input_pose_frame_id:[drone0/odom]
[as2_motion_controller_node-1] [INFO] [1712505081.175542611] [drone0.controller_manager]: input_twist_frame_id:[drone0/odom]
[as2_motion_controller_node-1] [INFO] [1712505081.175575169] [drone0.controller_manager]: output_pose_frame_id:[drone0/base_link]
[as2_motion_controller_node-1] [INFO] [1712505081.175606015] [drone0.controller_manager]: output_twist_frame_id:[drone0/base_link]
[as2_motion_controller_node-1] [INFO] [1712505081.183450727] [drone0.controller_manager]: Waiting for odometry
[as2_motion_controller_node-1] [WARN] [1712505081.193416661] [drone0.controller_manager]: State changed, but ref not recived yet

## Behaviors log
[takeoff_behavior_node-4] [INFO] [1712505081.034907699] [drone0.TakeoffBehavior]: START
[takeoff_behavior_node-4] [INFO] [1712505081.035609724] [drone0.TakeoffBehavior]: Takeoff accepted
[takeoff_behavior_node-4] [INFO] [1712505081.035667848] [drone0.TakeoffBehavior]: Takeoff to position: 0.000000, 0.000000, 2.000000
[takeoff_behavior_node-4] [INFO] [1712505081.035682364] [drone0.TakeoffBehavior]: Takeoff with angle: 0.000000
[takeoff_behavior_node-4] [INFO] [1712505081.035693183] [drone0.TakeoffBehavior]: Takeoff with speed: 1.000000
[takeoff_behavior_node-4] [INFO] [1712505081.168200046] [drone0.TakeoffBehavior]: Setting control mode to [POSITION YAW_ANGLE UNDEFINED_FRAME ]
[takeoff_behavior_node-4] [INFO] [1712505081.277071793] [drone0.TakeoffBehavior]: RUNNING
[takeoff_behavior_node-4] [INFO] [1712505086.344193080] [drone0.TakeoffBehavior]: RUNNING
[takeoff_behavior_node-4] [INFO] [1712505091.344768939] [drone0.TakeoffBehavior]: RUNNING

Hi @mhl787156 no, I archived to read from the sensors and the camera, but it doesn't takeoff/spin.

Hi @mhl787156 and @Adrimapo,
Which version of the Tello SDK are you using, the v<IP_ADDRESS> or the v2.0?
We are currently working on an update to the platform and the project

Hi guys, pretty sure our tellos are on 2.0, been having some issues where the tello just flies in the same direction regardless of teleop input on Vel mode. On holiday rn will give more info when back!

Hi guys, now I'm currently using the 1.04 version, I could update it and try again. Thanks


chore: remove rlp error msg

Purpose

How does the solution address the problem

Changes made

prnet cleaned-up successfully


Ask for visualization

Dear authors,
Thanks for you great job! Would you mind sharing your code of how to visualize those figures in your paper?

For the bounding boxes, you can refer to ground_visualize.py.
For the object labels, they were manually attached to the pictures.

Great! Thank you very much!


Update efk stack

The current stack is outdated. It's an attempt to update it.

ci check this

@ameukam The statefulset fails validation: ValidationError(StatefulSet.spec): missing required field \"serviceName\" in io.k8s.api.apps.v1.StatefulSetSpec; if you choose to ignore these errors, turn validation off with --validate=false

@riverzhang please, can you check this ?

Great to see EFK based on StatefulSet rather than Deployment!

@ameukam  Thanks.  all looks good.  ci passed.

guys, with clean install there are no indexes patterns, any hints?

ah, I see where the issue is

Hey guys, would be nice to add such things to the documentation.
The manual process to run fluentd on (all) nodes is as follows:
1. Run fluentd on all nodes
> kubectl label nodes --all beta.kubernetes.io/fluentd-ds-ready=true

2. Run fluentd on specifc nodes
# Get nodes
> kubectl get node
NAME      STATUS    ROLES                 AGE       VERSION
node01    Ready     ingress,master,node   28m       v1.10.4
node02    Ready     ingress,node          28m       v1.10.4
node03    Ready     ingress,node          28m       v1.10.4

# Assign label to one specific node
> kubectl label nodes node01 beta.kubernetes.io/fluentd-ds-ready=true
# Or assign label to multiple nodes
> kubectl label nodes node01 node02 node03 beta.kubernetes.io/fluentd-ds-ready=true

Check that pods from DaemonSet are running
> kubectl get pods --namespace=kube-system
NAME                                   READY     STATUS    RESTARTS   AGE
elasticsearch-logging-0                1/1       Running   0          35m
elasticsearch-logging-1                1/1       Running   0          35m
fluentd-es-v2.0.4-6c2wj                1/1       Running   0          9m
fluentd-es-v2.0.4-6lkjz                1/1       Running   0          7m
fluentd-es-v2.0.4-v4f2l                1/1       Running   0          7m
...

Actually, I think the fluentd-ds-ready=true thing is more a bug than a feature.
See https://github.com/kubernetes-incubator/kubespray/pull/2932


Make distribution optional in version info

Description
No longer require distribution in OpenSearchVersionInfo to be non-null.
Issues Resolved
Closes #573
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This is by design with compatibility mode enabled, see https://github.com/opensearch-project/opensearch-java/issues/573#issuecomment-1668578780. Thanks for bringing this up @jhg023!


Can't get the Formio instance from a ref

I have a wizard form and I need it's reference.
<Form src={AppConfig.apiUrl +"/"+ formName} ref={form => this.wizard = form}/>

However, this.wizard.formio is undefined.

You may need to wait for this.wizard.ready to finish. It is a promise so if you wait then formio should be available.

this.wizard.ready is also undefined.
The strangest part is that the formio field is set. Here a quick log.
    console.log("Wizard");
    console.log(this.wizard);
    console.log("ready");
    console.log(this.wizard ? this.wizard.ready : null)
    console.log("formio")
    console.log(this.wizard ?  this.wizard.formio : null);

Managed to get it. The problem was that I was trying to get it on render() function. I triggered the update with onChange prop of the form and set the state of the form within my own component.
...
setRef = (ref) => {
...
    this.setState({form: ref.current});
 }
...
render(){
...
<Form src={AppConfig.apiUrl + formName} ref={this.wizard} onChange={() => this.setRef(this.wizard)}/>
...
}
...


make error with opencv .. thank you ..

Package opencv-2.0.0-12.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost mxnet]# make
g++ -std=c++0x -DMSHADOW_FORCE_STREAM -Wall -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -Iinclude -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_USE_OPENCV=1 pkg-config --cflags opencv -fopenmp  -MM -MT build/io/io.o src/io/io.cc >build/io/io.d
g++ -std=c++0x -c -DMSHADOW_FORCE_STREAM -Wall -O3 -I./mshadow/ -I./dmlc-core/include -fPIC -Iinclude -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMXNET_USE_OPENCV=1 pkg-config --cflags opencv -fopenmp  -c src/io/io.cc -o build/io/io.o
In file included from src/io/io.cc:5:0:
src/io/./image_augmenter.h:10:30: 致命错误：opencv2/opencv.hpp：没有那个文件或目录
编译中断。
make: *** [build/io/io.o] 错误 1

where is your opencv installed? if not in the standard directory you'll need to add it to CFLAGS and LDFLAGS.
Also, I'm not sure about this is relevant by opencv 2.0 seems too old

Thank you . I finally solve this problem by download the OpenCV tar and make && install it

/usr/bin/ld: cannot find -lcblas
collect2: 错误：ld 返回 1
make: *** [lib/libmxnet.so] 错误 1

/usr/bin/ld: /usr/lib/../lib64/libcblas.a(cblas_sgemm.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/../lib64/libcblas.a: could not read symbols: Bad value
collect2: 错误：ld 返回 1
make: *** [lib/libmxnet.so] 错误 1

which blas are you using. Could you try atlas? sudo apt-get install libatlas-dev and change USE_BLAS to atlas

It was due to blas was not dynamically compiled, you might need to switch to openblas or other BLAS, please feel free to reopen if necessary

openblas works for me and I use opencv3.


[BUG] Document.get(id) returning None in app using FastAPI + Beanie

Describe the bug
I have a small web server that I am testing with a local mongodb instance. The app is FastAPI with beanie for the db operations. I've noticed that when I use id as a route parameter, calling document.get() returns None. However when I do a find().to_list() the results clearly show that the id is in fact in the DB.
To Reproduce
class User(Document):
    name: str
    package: Package
    token: str = Field(default_factory = lambda: secrets.token_hex(3))
    subscribed: datetime
    phone_number: constr(regex = r"^\d{3}-\d{3}-\d{4}$") | None
    address: str | None
    enabled: bool = True

    class Settings:
        name = "main"
        use_state_management = True
        bson_encoders = {
            datetime: lambda t: int(t.timestamp())
        }
        json_encoders = {
            ObjectId: str,
            datetime: lambda t: int(t.timestamp())
        }

    class Config:
        allow_population_by_field_name = True
        arbitrary_types_allowed = True
        json_encoders = {
            ObjectId: str,
            datetime: lambda t: int(t.timestamp())
        }
        schema_extra = {
            "example": {
                "name": "john smith",
                "subscribed":<PHONE_NUMBER>,
                "phone_number": "917-323-2348",
                "address": "123 My apartment streat 32433"
            }
        }

@app.on_event('startup')
async def init_database():
    client = motor.motor_asyncio.AsyncIOMotorClient()
    await init_beanie(
        database = client.users,
        document_models = [User]
    )

@app.delete(
    "/users/{id}",
    response_description = "Delete a user from the system"
)
async def delete_user(id: PydanticObjectId):
    print(await User.find().to_list())

    print("search id: ", id)
    user = await User.get(document_id = id)
    print("user get: ", user) # prints None
    user: User | None = await User.find_one(User.id == id)
    print("user find_one: ", user) # prints None

Expected behavior
What I expect to happen is that user = await User.get(document_id = id) returns the user object.
Additional context
This is the server output when using thunder client to hit the delete endpoint. As you can see the find_all returns a User that has 6321a13c270f743661ce9633 as an id. But when I call get() nothing is found.
Request example I used:  http://<IP_ADDRESS>:8000/users/6321a13c270f743661ce9633
INFO:     Application startup complete.
 Let this be a warning for anyone who works with motor + pydantic and then switches to beanie + pydantic.
Somehow, the object ids created by the two are different even though they look exactly the same. I discovered that any users I created using my old motor method did not show up when using beanie.get() or find_one. I don't fully understand why, but after manually deleting the motor users everything works.
Hope this helps someone.

Hey! Thank you for the issue. I'll check why ids are different. It is at least interesting. Or even a bug. Could you pls tell which MongoDB version you use?

Hey, It was really interesting, minus the several hours of headache 😅  . I am using mongodb 4.2.3 which is not very recent. The guide I used originally to set up pydantic + mongo was from here . I suspect the issue may be with the PyObjectId class used somehow creating a different ID type, but I have no way to prove it since their string versions looked identical.


[BUG] System Indices breaking cluster state invariance after upgrade from 2.15

Describe the bug
When we are upgraded our cluster from 2.15 to 2.17, we observed that multiple system indices were having different IndexMetadata on Cluster Manager node and remaining follower nodes. Where system flag is true on cluster manager but on followers it is false with same version.
This breaks the invariance guarantee of IndexMetadata being same as cluster manager on all nodes.
This has started happening because we have marked various index as system index as part of https://github.com/opensearch-project/security/issues/4439
Related component
Plugins
To Reproduce

Create a multinode 2.15 cluster with plugins such as observability, which create a system index.
Upgrade the cluster to 2.16/2.17
Active Cluster Manager have system flag true for .opensearch-observability index metadata, but all follower show false

Expected behavior
Cluster State Index Metadata should be same for all the nodes.
Additional Details
This is happening in both the causes, with remote_store.publication.enabled: true/false

[Catch All Triage - 1, 2, 3]


Simplify build scripts even more and upgrade platyPS in Appveyor

PR Summary
This is a follow up of PR #1082 that improves it by further simplifying and tidying up the build scripts.
Especially: removing the $framework parameter as we can figure it out ourselves, upgrade platyPS version installed in AppVeyor for security (see here)
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

@JamesWTruher gentle ping on the review request

Ok, I addressed all points, merge is now only being blocked by the build failure on Linux due to the AppVeyor image update. PR #1107 has the best possible workaround for that atm, can you please review this one @rjmholt  while James is out of office?


Type 'AngularPlugin' is not assignable to type 'ITelemetryPlugin', Angular 15 ( "@angular/common": "15.1.0") error when trying to build the project

error TS2322: Type 'AngularPlugin' is not assignable to type 'ITelemetryPlugin'.
Types of property 'setNextPlugin' are incompatible.
import { AngularPlugin } from '@microsoft/applicationinsights-angularplugin-js';
    const angularPlugin = new AngularPlugin();
    this.appInsights = new ApplicationInsights({
        config: {
            instrumentationKey: 'key',
            enableAutoRouteTracking: false, // option to log all route changes
            enableCorsCorrelation: true,
            extensions: [angularPlugin],
            extensionConfig: {
                [angularPlugin.identifier]: { router: this.router },
            },
        },
    });
    this.appInsights.loadAppInsights();

extensions: [angularPlugin],
                            ~~~~~~~~~~~~~

"@microsoft/applicationinsights-angularplugin-js": "3.0.1",
"@microsoft/applicationinsights-web": "2.8.9",
"@angular/common": "15.1.0",
"typescript": "4.9.4",

Which versions of the plugin and ApplicationInsights are you using?
We recently release v3.0.1 of the angular plugin which moved the base version of Application Insights to 2.8.10 to address this issue (which is typescript being more pedantic than necessary) #76
You can safely cast to any to bypass the error, we believe we tracked this down to a change we made to introduce an optional unload function. As we support backward compatibility of the newer ApplicationInsights using older components (plugins).
If your not using 3.0.1 and 2.8.10 can you please upgrade both (or use the workaround by casting as any to avoid TypeScript complaining).

problem was fixed after the update "@microsoft/applicationinsights-web": "2.8.9", to "@microsoft/applicationinsights-web": "2.8.10"

@MSNev the dependencies between the 2 projects are inconsistent.
Will these old versions ^2.8.12 be upgraded to ^3.0.1?
https://github.com/microsoft/applicationinsights-angularplugin-js/blob/main/package.json#L67
   "@microsoft/applicationinsights-common": "^2.8.12",
    "@microsoft/applicationinsights-core-js": "^2.8.12",
    "@microsoft/applicationinsights-properties-js": "^2.8.12",

To match the dependencies of '@microsoft/applicationinsights-web'? i.e. v3.0.1?
For now I will experiment and downgrade @microsoft/applicationinsights-web to v2.8.13

Is there any update?  This still occurs when using the most current version of both these packages
    "@microsoft/applicationinsights-angularplugin-js": "^3.0.1",
    "@microsoft/applicationinsights-web": "^3.0.2",

Still in progress (sorry delay as I was OOF last week), the plan is to finalize the updates and release the update by / before the end of July 23.

That's unfortunate a seemingly small issue with dependency versions has lingered for so long.  You're aware Angular 16 has been out for three months already?

for angular v14, the bug is solved at ver 14.0.0 https://github.com/microsoft/applicationinsights-angularplugin-js/releases/tag/14.0.0


Are dotnet plugins ( F# or C#) planned?

I would like to use the generator to create F#  types.
Is something like this on the roadmap?
At the moment, F# type-providers exist for GraphQL. However, they cannot create reusable class-libraries.

Hi @JanDonnermayer !
We don't have C# or F# plugins that are maintained by use at the moment.
The following might help you?

https://github.com/netspective/graphql-codegen-csharp
https://github.com/agoda-com/graphql-codegen-csharp

The reason we don't have our own plugins for .NET moment is because we are not using it regularly in our projects, so it's hard for us to generate the optimal code.
PRs are always welcome, and if wish to write your own plugin, we're here to help ;)

Hi @dotansimha,
thanks for your reply! The links are super helpful!
I will evaluate both of them, as well as contributing to this repo.

We can close this one, we have 2 new plugins for C#.

Awesome, I will definitely use them!


docs: describe admin endpoints

We need to document these endpoints so people know about them and to clarify their intended usecase(s).
Fixes: https://github.com/moov-io/paygate/issues/231

Codecov Report

Merging #235 into master will decrease coverage by 4.19%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master     #235     +/-   ##
=========================================
- Coverage   58.54%   54.35%   -4.2%
=========================================
  Files          31       31
  Lines        4287     4287
=========================================
- Hits         2510     2330    -180
- Misses       1282     1488    +206
+ Partials      495      469     -26

Impacted Files
Coverage Δ

accounts.go
10.95% <0%> (-69.87%)
:arrow_down:

internal/database/mysql.go
10.66% <0%> (-50.67%)
:arrow_down:

ofac.go
38.65% <0%> (-35.3%)
:arrow_down:

internal/filetransfer/sftp.go
44.44% <0%> (-26.12%)
:arrow_down:

internal/filetransfer/config.go
55.11% <0%> (-0.79%)
:arrow_down:

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 cd81905...34324a1. Read the comment docs.


UFBX runtime loader not working

Tested versions
Godot v4.3.stable
System information
Linux Mint 21 (Vanessa) - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 (nvidia; 535.183.01) - AMD Ryzen 5 2600X Six-Core Processor (12 Threads)
Issue description
It doesn't work to load a FBX model at runetime in gdscript. Not correct, the loading works partial as you could see in the attached debugger images. But nothing is displayed in the 3D view.
Steps to reproduce

unzip the MRP project
change "PREFIX_DIR" in Viewer.gd to an absolute path in your system where you unzipped the MRP project
start the project and see that only the GLTF file is loaded and the FBX files produces an error
look into the debugger for the FBX object and see that there're "ImportedMeshInstance3D" where in the GLTF loaded file are "MeshInstance3D"

Minimal reproduction project (MRP)
github_ufbx_bug.zip
Error messages:

E 0:00:00:0934   Viewer.gd:28 @ _load_gltf_or_fbx(): No loader found for resource: /home/andreas/Games/Assets/3d/kaykit/KayKit_Adventurers_1.0_SOURCE/Characters/fbx/knight_texture.png (expected type: Texture2D)
<C++-Fehler>   Method/function failed. Returning: Ref()
<C++-Quelle>   core/io/resource_loader.cpp:291 @ _load()
 Viewer.gd:28 @ _load_gltf_or_fbx()
Viewer.gd:19 @ load_fbx()
Viewer.gd:14 @ _ready()
W 0:00:01:0019   Viewer.gd:30 @ _load_gltf_or_fbx(): Adding 'Knight_ArmLeft' as child to 'Skeleton3D' will make owner '' inconsistent. Consider unsetting the owner beforehand.
<C++-Quelle>   scene/main/node.cpp:1579 @ add_child()
 Viewer.gd:30 @ _load_gltf_or_fbx()
Viewer.gd:19 @ load_fbx()
Viewer.gd:14 @ _ready()
W 0:00:01:0019   Viewer.gd:30 @ _load_gltf_or_fbx(): Adding 'Knight_ArmRight' as child to 'Skeleton3D' will make owner '' inconsistent. Consider unsetting the owner beforehand.
<C++-Quelle>   scene/main/node.cpp:1579 @ add_child()
 Viewer.gd:30 @ _load_gltf_or_fbx()
Viewer.gd:19 @ load_fbx()
Viewer.gd:14 @ _ready()

.......... (each bone is reported)

wasnt ur problem about gltf?

try this https://github.com/Naming-things-is-hard-btw/godot/releases/tag/asds

It was always a FBX problem. GLTF works here great.
I get this error running your binary:
./godot.linuxbsd.editor.x86_64: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by ./godot.linuxbsd.editor.x86_64)

btw only do this for testing since i tried to patch the fbx importer in this custom build

I also tried MRP in the following environment and got the same error message.

Windows 10.0.22621 - GLES3 (Compatibility) - NVIDIA GeForce GTX 1080 Ti (NVIDIA; <IP_ADDRESS>22) - Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (8 Threads)

Furthermore, when I switch the FBX importer to FBX2glTF, I get the same error message.

i have glibc installed, u dont.. please install it and try again

I won't play around with glibc on my stable development system. Maybe I'll try to build godot on my own, but I'll be on vacation for the next 10 days. So maybe someone else could verify the fix.

i have glibc installed, u dont.. please install it and try again

I won't play around with glibc on my stable development system. Maybe I'll try to build godot on my own, but I'll be on vacation for the next 10 days. So maybe someone else could verify the fix.

yea i tried it and it works it will be merged in godot 4.4

This seems to still be an issue as of 4.4 dev5. I assume it never got merged? :/

its still not merged but you can compile it yourself if u wanna try it.
but i lost the code for it locally but the repo still exists they can merge it when they find free time to do so