Load by default stablediffusion instead diffusers not working

LocalAI version:

LocalAI v2.19.4
Docker Image ID: d99f62d40302 / TAG: latest-cpu
Environment, CPU architecture, OS, and Version:

uname -a: Linux XXX 6.8.0-39-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 10 15:35:09 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
CPU: AMD Ryzen 9 5950X 16-Core Processor
RAM: 32 GB
Describe the bug

Load by default stablediffusion instead diffusers not working
To Reproduce

Pull latest latest-cpu image and run it with the the environnement variable COMPEL=0
I set up dreamshaper using local-ai models install dreamshaper, and  change the "dreamshaper.yaml" in models folder with content:
name: stablediffusion
parameters:
  model: DreamShaper_8_pruned.safetensors
backend: diffusers
step: 25
f16: false

diffusers:
  pipeline_type: StableDiffusionPipeline
  cuda: false
  enable_parameters: "negative_prompt,num_inference_steps"
  scheduler_type: "euler_a"

download_files:
- filename: DreamShaper_8_pruned.safetensors
  uri: huggingface://Lykon/DreamShaper/DreamShaper_8_pruned.safetensors

usage: |
        curl http://localhost:8080/v1/images/generations \
          -H "Content-Type: application/json" \
          -d '{
            "prompt": "<positive prompt>|<negative prompt>",
            "step": 25,
            "size": "512x512"
          }'

Then ran command as stated in docs:
curl http://localhost:8080/v1/images/generations \
    -H "Content-Type: application/json" \
    -d '{
      "prompt": "A cat outdoor during sunny day",
      "model": "stablediffusion",
      "size": "512x512"
    }'

Expected behavior

Unable to load the generation, always have this log
ERR failed starting/connecting to the gRPC service error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp <IP_ADDRESS>:42383: connect: connection refused\""

However, when following the same steps using the localai/localai:v2.19.4-ffmpeg docker image, it works.
Logs

5:29PM INF Loading model 'DreamShaper_8_pruned.safetensors' with backend diffusers
5:29PM DBG Loading model in memory from file: /build/models/DreamShaper_8_pruned.safetensors
5:29PM DBG Loading Model DreamShaper_8_pruned.safetensors with gRPC (file: /build/models/DreamShaper_8_pruned.safetensors) (backend: diffusers): {backendString:diffusers model:DreamShaper_8_pruned.safetensors threads:32 assetDir:/tmp/localai/backend_data context:{emptyCtx:{}} gRPCOptions:0xc0006bd688 externalBackends:map[autogptq:/build/backend/python/autogptq/run.sh bark:/build/backend/python/bark/run.sh coqui:/build/backend/python/coqui/run.sh diffusers:/build/backend/python/diffusers/run.sh exllama:/build/backend/python/exllama/run.sh exllama2:/build/backend/python/exllama2/run.sh huggingface-embeddings:/build/backend/python/sentencetransformers/run.sh mamba:/build/backend/python/mamba/run.sh openvoice:/build/backend/python/openvoice/run.sh parler-tts:/build/backend/python/parler-tts/run.sh petals:/build/backend/python/petals/run.sh rerankers:/build/backend/python/rerankers/run.sh sentencetransformers:/build/backend/python/sentencetransformers/run.sh transformers:/build/backend/python/transformers/run.sh transformers-musicgen:/build/backend/python/transformers-musicgen/run.sh vall-e-x:/build/backend/python/vall-e-x/run.sh vllm:/build/backend/python/vllm/run.sh] grpcAttempts:20 grpcAttemptsDelay:2 singleActiveBackend:false parallelRequests:false}
5:29PM DBG Loading external backend: /build/backend/python/diffusers/run.sh
5:29PM DBG Loading GRPC Process: /build/backend/python/diffusers/run.sh
5:29PM DBG GRPC Service for DreamShaper_8_pruned.safetensors will be running at: '<IP_ADDRESS>:42383'
5:29PM DBG GRPC Service state dir: /tmp/go-processmanager3925853376
5:29PM DBG GRPC Service Started
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stdout Initializing libbackend for build
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stderr /build/backend/python/diffusers/../common/libbackend.sh: line 78: uv: command not found
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stdout virtualenv created
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stdout virtualenv activated
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stdout activated virtualenv has been ensured
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stderr /build/backend/python/diffusers/../common/libbackend.sh: line 83: /build/backend/python/diffusers/venv/bin/activate: No such file or directory
5:29PM DBG GRPC(DreamShaper_8_pruned.safetensors-<IP_ADDRESS>:42383): stderr /build/backend/python/diffusers/../common/libbackend.sh: line 155: exec: python: not found
5:29PM DBG [WatchDog] Watchdog checks for busy connections
5:29PM DBG [WatchDog] Watchdog checks for idle connections
5:29PM ERR failed starting/connecting to the gRPC service error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp <IP_ADDRESS>:42383: connect: connection refused\""
5:29PM DBG GRPC Service NOT ready

@sestren cpu images do not have a python environment to save on size. just use the latest tag

I tried the latest tag. However this tag also incorporate the call to download gpt4, vision, etc models.
I used latest-cpu instead of latest-aio-cpuor latest as per the documentation (i.e. One without the -core flag) as I understood it world act as the latest-aio-cpu without the packaged models.


[SPARK-34218][INFRA][FOLLOWUP] Fix Scala 2.13 profile typo in publish-snapshot

What changes were proposed in this pull request?
This is a follow-up of #31311 and fixes a typo in Scala 2.13 profile section in publish-snapshot command.
Why are the changes needed?
To fix snapshot publishing for Scala 2.13.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual.

Merged to master.

Merged to master.

Could you review this, @HyukjinKwon ? I missed this typo in the previous PR.

Could you review this, @HyukjinKwon ? I missed this typo in the previous PR.

Thank you so much!

Thank you so much!


Require json in utils.rb.

Without it, load_config simply returns an empty hash for everything,
which in turn makes it so that settings is always empty.
You can see this behavior in a minimal check plugin that attempts to
include utils without also requiring json.
require 'sensu-plugin/check/cli'
require 'sensu-plugin/utils'

class JsonCheck < Sensu::Plugin::Check::CLI
  include Sensu::Plugin::Utils

  def run
    if settings['api'].nil?
      critical 'Settings not loaded.'
    else
      ok settings['api']
    end
  end
end

@zroger makes sense to me, thanks!


Bookstore: initialize project with components

In this milestone of the project, I've

[x] Setup a new React application using Create React App
[x] Created a directory for the reusable components: /components.
[x] Installed React Router V6
[x] Setup router inside of
[x] Added 2 routes in the app, each renders a page component:
/
/categories
[x] Created components inside of the /components directory:

[x] Contains individual book state, as well as a button to delete the book <Book />
[x] Contains a list to render individual books <Books />
[x] Contains a form to create new books <AddBook />
[x] Contains navigation to link to the 2 routes created

Excellent and thorough review. Thanks for the approval😊.


Updated class name in Java

updated Java class name as per CamelCase convention

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Closed and Reopened this PR in an attempt to attempt to break out of the Travis build pending status.


Remove moot version property from bower.json

Per bower/bower.json-spec@a325da3

Thanks for that Kevin!


Question: Same Artifact for multiple stages (dev, qa, prod)?

Motivation

Reduce build time by running artifact creation (e.g. gradle azureFunctionsPackage/-Zip) only once
Have artifact consistency across stages

Approach

Build job

Run gradle azureFunctionsPackage/-Zip
Upload to GHA cache via upload-artifact action

Deploy Job (for each stage)

Download artifact from GHA cache via download-artifact action to gradle build folder
Run gradle azurefunctionsDeploy

Question

Which artifacts would have to be stored and downloaded to prevent a build during azureFunctionsDeploy?

Also it would be nice to use the already created .jar file from a build step.
Currently I can't use the gradle caching since using this plugin,
My pipeline time is now twice as long.
(Test stage time doubled and the default stage of this plugin is slower than my previous gradle bootJar stage.)


docs: moving best examples into subdirs

added app, reference, tutorial under examples
moves some of the best examples into these

Can we move app to experimental, I'll let Tristan know
Can we move control layout panel/plot and viz under reference.
Can we rename tutorial to tutorials
apps is very empty now and we don't have immediate plans to improve that
-- Is there anything that can go in there now from experimental/app?
-- If not, can we move the quickstart in apps to tutorial and delete apps for now.
--- In the future, this will be where we can keep instructions to use different templates

yes, let's put app/ under experimental & all the others under reference—thanks for doing that! eventually may want to re-org and flatten.
renamed tutorial => tutorials, removed all the other empty folders
love what you did with getting started, numbers, and apps! i personally don't like the "app" / "apps" name because it doesn't mean anything to me—let's go with this structure and see what else we can improve/add.

i personally don't like the "app" / "apps" name because it doesn't mean anything to me—let's go with this structure and see what else we can improve/add
agreed, I was torn between that and gallery. Went with gallery instead

I have read the CLA Document and I hereby sign the CLA


Gatling report does not generate

I am running a performance test.  When I use the atOnceUsers(10) injection profile there is an there is an error: There were no requests sent during the simulation, reports won't be generated.
This causes a java error
Full error stack
17:46:10.006 [main] INFO  com.intuit.karate - backend initialized
17:46:10.609 [main] INFO  c.intuit.karate.netty.FeatureServer - server started - http://<IP_ADDRESS>:52131
Simulation mock.CatsKarateSimulation started...
17:46:10.897 [GatlingSystem-akka.actor.default-dispatcher-10] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:10.996 [GatlingSystem-akka.actor.default-dispatcher-12] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.036 [GatlingSystem-akka.actor.default-dispatcher-5] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.055 [GatlingSystem-akka.actor.default-dispatcher-13] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.073 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.217 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.235 [GatlingSystem-akka.actor.default-dispatcher-3] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.284 [GatlingSystem-akka.actor.default-dispatcher-9] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.288 [GatlingSystem-akka.actor.default-dispatcher-4] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
17:46:11.320 [GatlingSystem-akka.actor.default-dispatcher-6] INFO  com.intuit.karate - scenario called at line: 12 by tag: @name=delete
================================================================================
2019-04-04 17:46:11                                           0s elapsed
---- Requests ------------------------------------------------------------------

Global                                                   (OK=0      KO=0     )

---- delete --------------------------------------------------------------------
[##########################################################################]100%
waiting: 0      / active: 0      / done: 10
---- create --------------------------------------------------------------------
[##########################################################################]100%
waiting: 0      / active: 0      / done: 10
Simulation mock.CatsKarateSimulation completed in 0 seconds
17:46:16.378 [GatlingSystem-akka.actor.default-dispatcher-9] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-45#-1936287571]] after [5015 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typi
cal reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.478 [GatlingSystem-akka.actor.default-dispatcher-12] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-70#-1321534357]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typ
ical reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.482 [GatlingSystem-akka.actor.default-dispatcher-11] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-71#1533301698]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typi
cal reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.808 [GatlingSystem-akka.actor.default-dispatcher-3] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-75#1263152730]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typic
al reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.808 [GatlingSystem-akka.actor.default-dispatcher-4] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-76#1890247501]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typic
al reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.809 [GatlingSystem-akka.actor.default-dispatcher-10] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-79#-870792734]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typi
cal reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.811 [GatlingSystem-akka.actor.default-dispatcher-2] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-80#-825752271]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typic
al reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.811 [GatlingSystem-akka.actor.default-dispatcher-13] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-83#-1849587794]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typ
ical reason for AskTimeoutException is that the recipient actor didn't send a reply.
17:46:16.812 [GatlingSystem-akka.actor.default-dispatcher-8] ERROR com.intuit.karate - http request failed: Ask timed out on [Actor[akka://GatlingSystem/user/karate-85#1317943268]] after [5025 ms]. Message of type [scala.concurrent.duration.FiniteDuration]. A typic
al reason for AskTimeoutException is that the recipient actor didn't send a reply.
Parsing log file(s)...
Parsing log file(s) done
Generating reports...
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won't be generated
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:49)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:76)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:55)
at io.gatling.app.Gatling$.start(Gatling.scala:82)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:47)
at io.gatling.app.Gatling$.main(Gatling.scala:39)
at io.gatling.app.Gatling.main(Gatling.scala)
... 6 more
karate-gatling-demo-master.zip

I added an extra scenario with a ramp up and then it works:
  setUp(
    custom.inject(rampUsers(2) during (5 seconds)).protocols(protocol),
    create.inject(atOnceUsers(10)).protocols(protocol),
    delete.inject(atOnceUsers(10)).protocols(protocol)
  )

does it work as you expect in normal gatling, then it is something that has to be fixed. I personally think this is low priority because a test where everything happens in one shot (zero seconds) sounds unrealistic. counting on you to help fix this :)

This does work if I use normal gatling and it did work about 6 months ago using the versions below.
<java.version>1.8</java.version>
<maven.compiler.version>3.6.0</maven.compiler.version>
<karate.version><IP_ADDRESS></karate.version>
<karate.gatling.version><IP_ADDRESS></karate.gatling.version>
<gatling.plugin.version>2.2.4</gatling.plugin.version>
I haven't ran karate performance tests since this version so not sure when it broke.
If you point me to the part of the code that could be causing the issue then I will check it out.  I appreciate your quick feedback.
Great tool.  I have been using it for the past year.

@paulmccormack thanks for the extra detail - that helps and I think I've figured out what went wrong.
can you build from source and confirm, here are instructions: https://github.com/intuit/karate/wiki/Developer-Guide

Hey Peter
I followed the build instructions from the above link and everything built fine.  In my pom i updated karate version to 1.0.0

@paulmccormack it seems to work for me - so this is interesting. it would be great if you can investigate and experiment with the code changes you see in this commit - it is very simple
also do try a different java version
and also try with no pause time (Nil for all)
  val protocol = karateProtocol(
    "/cats/{id}" -> Nil,
    "/cats" -> Nil
  )

@paulmccormack haven't heard from you and there are issues with the CI build hanging. I've reverted some of the changes. if now atOnceUsers() doesn't work - I'm treating this as a "won't fix" and "help wanted" and would even consider updating the documentation to say that atOnceUsers() is not supported. unless we get help to fix this of course

@ptrthomas sorry i haven't got back.  I had a product launch this weekend so had to work.  I am going to look into this tonight so I will update you on my findings.

@ptrthomas I have ran a few tests and hit the same issue as you.  When I run the karate demo the mock server starts and then the simulation hangs.
I had a quick look at the change for this release but couldn't really work out what was causing the issue.
I am on vacation for 3 weeks now so my next update will be when I'm back.
Cheers
Paul

@ptrthomas @paulmccormack - I came across this investigating an issue we have where with 0.9.2 and using only rampUpUsers(1) gatling was finishing early with no requests reports. After debugging it seems that not awaiting the latch means stop is called early and shutdown - if I add a thread breakpoint on the if condition guarding the latch.await() here so threads wait there, the scenario and simulation completes correctly and then releasing the breakpoints correctly generates the reports. Adding more users to the ramp up also seems to delay something so you can still get results, but if you have longish scenarios with multiple requests like I do, then the full scenario isn't actually fully completed.
If I remove the if condition and rebuild everything works perfectly and gatling waits for the full scenario to complete before shutting down and then generating the report - I believe this should be the correct solution, but we obviously have Paul's issue and the CI issue to sort out.
Unfortunately I also can't reproduce what Paul talks about above with the hanging if the if condition is removed and using the attached demo project above with atOnceUsers. Would be interested in what caused the CI build to fail as well @ptrthomas - maybe we could remove the condition on another branch and have Travis build it, adding logging/changing trace levels to find out, as when I run the full build locally there are no issues.

Increasing the atOnceUsers to 20 I can now replicate the hang - investigating further.

@tellisnz-shift thanks for looking into this - this is such an important part of karate.
are you able to see if the latch countdown is not being called for some reason: https://github.com/intuit/karate/blob/d5f933ab3983b0715b3d5b84d9107bbb00c4cacf/karate-core/src/main/java/com/intuit/karate/core/FeatureExecutionUnit.java#L144
a wild guess is that the gatling akka actor has killed itself too soon: https://github.com/intuit/karate/blob/d5f933ab3983b0715b3d5b84d9107bbb00c4cacf/karate-gatling/src/main/scala/com/intuit/karate/gatling/KarateAction.scala#L22
can you comment out that context.stop(self) line and see what happens ?

@tellisnz-shift @paulmccormack I just made some changes and just maybe this will be end of all the problems - please do verify when you get a chance !

This looks good to me :D

@tellisnz-shift awesome. I'm marking this as fixed

Hi, Im the author of https://stackoverflow.com/questions/55794928/karate-gatling-one-request-is-not-recorded
Verified that AtOnceUsers, rampUsers and other gatling functions are working perfectly after the fix, all the requests are fired and recorded successfully in the report.  Thanks @ptrthomas @paulmccormack  @tellisnz-shift

@Swiftkage thank you for the update !

Hi, we also meet the same issue. In which version did you fixed this issue? Thanks.

looks like the 0.9.3 version is not release and so not in maven repo yet. Can you please give us a snapshot version? as we are very urgent for this fix, thanks a lot.

@houchj can you try now with 0.9.3.RC1 ?

@ptrthomas , thanks for your quick help. But I see 404 returned from https://mvnrepository.com/artifact/com.intuit.karate/karate-core/0.9.3.RC1. or do you have any other repositories?

@houchj it is there https://repo1.maven.org/maven2/com/intuit/karate/karate-core/0.9.3.RC1/
try appending -U to your maven command

@ptrthomas thank you, it works nicely.

Hi @ptrthomas , unfortunately I found a similar issue come out when requests are timeout from server. No report is generated. I upload the logs here:
log.txt
Meanwhile I also did some modification of my sample project: https://github.com/houchj/karate-gatling-demo
It reproduces the problem, but the logs output are a little different, I'm not sure if it demonstrates the issue or not. Please give some advice, thanks.

@houchj thanks, I'm pretty sure it is because we were not handling an http client exception for the gatling integration. I've just made a commit to the develop branch. you will need to help us by building from source and then running your test again, let us know.

@ptrthomas , I just tested my project with the develop branch source code, and all timeout requests are now showing as "KO" which is very good, thanks a lot.

released 0.9.3

I am facing same issue with 0.9.5.RC1 version.
Simulation class :
import com.intuit.karate.gatling.PreDef._
import io.gatling.core.Predef._
import scala.concurrent.duration._
class TaskSimulation extends Simulation {
val protocol = karateProtocol(
"/userauth/oauth/token" ->Nil ,
"/task/library/" -> Nil
)
val getAllTasks = scenario("Retrieve All Task From Task Library").exec(karateFeature("Task.feature@RetrieveAllTask"))
val createTask = scenario("Create Task in Task Library").exec(karateFeature("Task.feature@CreateTask"))
setUp(
createTask.inject(rampUsers(2) during (5 seconds)) .protocols(protocol),
getAllTasks.inject(atOnceUsers(10)).protocols(protocol)
)
after {
Thread.sleep(5000)
println("Simulation is finished!")
}
}
Error stack :
gatling-maven-plugin:3.0.3:test (default-cli) @ FCSKY_KARATE_API ---
12:25:48.718 [main] INFO  io.gatling.compiler.ZincCompiler$ - Compiling 1 Scala source and 9 Java sources to C:\Users\Inzmam\git\fcservicesautomation\target\test-classes ...
12:26:00.558 [main] INFO  io.gatling.compiler.ZincCompiler$ - C:\Users\Inzmam\git\fcservicesautomation\src\test\java\base\runner\API_MAIN_RUNNER.java: Some input files use or override a deprecated API.
12:26:00.561 [main] INFO  io.gatling.compiler.ZincCompiler$ - C:\Users\Inzmam\git\fcservicesautomation\src\test\java\base\runner\API_MAIN_RUNNER.java: Recompile with -Xlint:deprecation for details.
12:26:00.565 [main] INFO  io.gatling.compiler.ZincCompiler$ - C:\Users\Inzmam\git\fcservicesautomation\src\test\java\base\common\utils\YamlReader.java: Some input files use unchecked or unsafe operations.
12:26:00.568 [main] INFO  io.gatling.compiler.ZincCompiler$ - C:\Users\Inzmam\git\fcservicesautomation\src\test\java\base\common\utils\YamlReader.java: Recompile with -Xlint:unchecked for details.
12:26:00.627 [main] INFO  io.gatling.compiler.ZincCompiler$ - Done compiling.
12:26:03.274 [main] INFO  i.g.c.config.GatlingConfiguration$ - Gatling will try to use 'gatling.conf' as custom config file.
12:26:04.760 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
12:26:06.408 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  i.g.c.stats.writer.LogFileDataWriter - Initializing
12:26:06.434 [GatlingSystem-akka.actor.default-dispatcher-3] INFO  i.g.c.stats.writer.ConsoleDataWriter - Initializing
12:26:06.587 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  i.g.c.stats.writer.LogFileDataWriter - Initialized
12:26:06.602 [GatlingSystem-akka.actor.default-dispatcher-3] INFO  i.g.c.stats.writer.ConsoleDataWriter - Initialized
Simulation performance.TaskSimulation started...
12:26:07.568 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  i.g.core.controller.inject.Injector - StoppedInjecting
12:26:08.152 [GatlingSystem-akka.actor.default-dispatcher-8] INFO  com.intuit.karate - scenario called at line: 15 by tag: @CreateTask
12:26:08.405 [GatlingSystem-akka.actor.default-dispatcher-4] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:08.455 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:08.476 [GatlingSystem-akka.actor.default-dispatcher-5] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:08.498 [GatlingSystem-akka.actor.default-dispatcher-3] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:08.520 [GatlingSystem-akka.actor.default-dispatcher-6] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:08.572 [GatlingSystem-akka.actor.default-dispatcher-7] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:08.678 [GatlingSystem-akka.actor.default-dispatcher-9] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:09.608 [GatlingSystem-akka.actor.default-dispatcher-3] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:09.642 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:09.760 [GatlingSystem-akka.actor.default-dispatcher-4] INFO  com.intuit.karate - scenario called at line: 15 by tag: @CreateTask
12:26:09.781 [GatlingSystem-akka.actor.default-dispatcher-6] INFO  com.intuit.karate - scenario called at line: 101 by tag: @RetrieveAllTask
12:26:10.082 [GatlingSystem-akka.actor.default-dispatcher-4] INFO  i.g.core.controller.inject.Injector - All users of scenario Create Task in Task Library are stopped
12:26:10.106 [GatlingSystem-akka.actor.default-dispatcher-6] INFO  i.g.core.controller.inject.Injector - All users of scenario Retrieve All Task From Task Library are stopped
12:26:10.112 [GatlingSystem-akka.actor.default-dispatcher-6] INFO  i.g.core.controller.inject.Injector - Stopping
12:26:10.128 [GatlingSystem-akka.actor.default-dispatcher-6] INFO  i.gatling.core.controller.Controller - Injector has stopped, initiating graceful stop
================================================================================
2019-09-02 12:26:10                                           3s elapsed
---- Requests ------------------------------------------------------------------

Global                                                   (OK=0      KO=0     )

---- Retrieve All Task From Task Library ---------------------------------------
[##########################################################################]100%
waiting: 0      / active: 0      / done: 10
---- Create Task in Task Library -----------------------------------------------
[##########################################################################]100%
waiting: 0      / active: 0      / done: 2
12:26:10.228 [GatlingSystem-akka.actor.default-dispatcher-2] INFO  i.gatling.core.controller.Controller - StatsEngineStopped
Simulation performance.TaskSimulation completed in 3 seconds
Simulation is finished!
Parsing log file(s)...
12:26:15.371 [main] INFO  i.gatling.charts.stats.LogFileReader - Collected ArrayBuffer(C:\Users\Inzmam\git\fcservicesautomation\target\gatling\tasksimulation-20190902065606345\simulation.log) from tasksimulation-20190902065606345
12:26:15.393 [main] INFO  i.gatling.charts.stats.LogFileReader - First pass
12:26:15.427 [main] INFO  i.gatling.charts.stats.LogFileReader - First pass done: read 25 lines
12:26:15.468 [main] INFO  i.gatling.charts.stats.LogFileReader - Second pass
12:26:15.506 [main] INFO  i.gatling.charts.stats.LogFileReader - Second pass: read 25 lines
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won't be generated
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:49)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:76)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:55)
at io.gatling.app.Gatling$.start(Gatling.scala:82)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:47)
at io.gatling.app.Gatling$.main(Gatling.scala:39)
at io.gatling.app.Gatling.main(Gatling.scala)
... 6 more
Parsing log file(s) done
Generating reports...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.240 s
[INFO] Finished at: 2019-09-02T12:26:15+05:30
[INFO] Final Memory: 86M/622M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:3.0.3:test (default-cli) on project FCSKY_KARATE_API: Gatling failed. Process exited with an error: -1 (Exit value: -1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

@InzmamHaq no use commenting here unless you follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@ptrthomas for generate report, which plugins or depenedencies I should have in pom.xml file ?

@Artashes1996 read the docs: https://github.com/intuit/karate/tree/master/karate-gatling

@ptrthomas system are generate simulation.log file, when I run tests.But I cann't see index.html file. If you have a time, please send me versions for dependencies. This is my pom.xml file ```
4.0.0
<groupId>com.mycompany</groupId>
<artifactId>karate-gatling-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.8</java.version>
    <maven.compiler.version>3.6.0</maven.compiler.version>
    <karate.version>0.9.5</karate.version>
    <gatling.plugin.version>3.0.2</gatling.plugin.version>
</properties>

<dependencies>
    <dependency>
        <groupId>com.intuit.karate</groupId>
        <artifactId>karate-apache</artifactId>
        <version>${karate.version}</version>
    </dependency>
    <dependency>
        <groupId>com.intuit.karate</groupId>
        <artifactId>karate-gatling</artifactId>
        <version>${karate.version}</version>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <testResources>
        <testResource>
            <directory>src/test/java</directory>
            <excludes>
                <exclude>**/*.java</exclude>
            </excludes>
        </testResource>
    </testResources>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven.compiler.version}</version>
            <configuration>
                <encoding>UTF-8</encoding>
                <source>${java.version}</source>
                <target>${java.version}</target>
                <compilerArgument>-Werror</compilerArgument>
            </configuration>
        </plugin>
        <plugin>
            <groupId>io.gatling</groupId>
            <artifactId>gatling-maven-plugin</artifactId>
            <version>${gatling.plugin.version}</version>
            <configuration>
                <simulationsFolder>src/test/java</simulationsFolder>
                <includes>
                    <include>gatling.AuthCall</include>
                </includes>
            </configuration>
        </plugin>
    </plugins>
</build>

@Artashes1996 please follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@ptrthomas system are generate simulation.log file, when I run tests.But I cann't see index.html file. If you have a time, please send me versions for dependencies. This is my pom.xml file ```
4.0.0
<groupId>com.mycompany</groupId>
<artifactId>karate-gatling-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.8</java.version>
    <maven.compiler.version>3.6.0</maven.compiler.version>
    <karate.version>0.9.5</karate.version>
    <gatling.plugin.version>3.0.2</gatling.plugin.version>
</properties>

<dependencies>
    <dependency>
        <groupId>com.intuit.karate</groupId>
        <artifactId>karate-apache</artifactId>
        <version>${karate.version}</version>
    </dependency>
    <dependency>
        <groupId>com.intuit.karate</groupId>
        <artifactId>karate-gatling</artifactId>
        <version>${karate.version}</version>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <testResources>
        <testResource>
            <directory>src/test/java</directory>
            <excludes>
                <exclude>**/*.java</exclude>
            </excludes>
        </testResource>
    </testResources>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven.compiler.version}</version>
            <configuration>
                <encoding>UTF-8</encoding>
                <source>${java.version}</source>
                <target>${java.version}</target>
                <compilerArgument>-Werror</compilerArgument>
            </configuration>
        </plugin>
        <plugin>
            <groupId>io.gatling</groupId>
            <artifactId>gatling-maven-plugin</artifactId>
            <version>${gatling.plugin.version}</version>
            <configuration>
                <simulationsFolder>src/test/java</simulationsFolder>
                <includes>
                    <include>gatling.AuthCall</include>
                </includes>
            </configuration>
        </plugin>
    </plugins>
</build>

can you please share console log?


Select statement on Oracle database creates a new pending transaction

Description
When i execute a select statement on Oracle DB, dbeaver creates new pending transaction in the pending transactions list. Any subsequent select queries do the same. Then i have many pending trasactions in pending list but in reality, there is no transaction on database level.
select dbms_transaction.local_transaction_id from dual;
Select above returs NULL, because there is no transaction on DB level.
Select statement is not modifying statement on Oracle.
DBeaver Version
24.0.1
Operating System
Linux, Windows
Database and driver
Oracle JDBC Driver, <IP_ADDRESS>
Steps to reproduce

Execute select statement on Oracle database
Pending transaction counter is increased for each subsequent select

Additional context
No response

You probably want to switch transaction mode https://github.com/dbeaver/dbeaver/wiki/Auto-and-Manual-Commit-Modes
Does it satisfy your needs? If no, please specify the concrete steps to reproduce the issue - at least types of the statements you execute.

You probably want to switch transaction mode https://github.com/dbeaver/dbeaver/wiki/Auto-and-Manual-Commit-Modes Does it satisfy your needs? If no, please specify the concrete steps to reproduce the issue - at least types of the statements you execute.

Seems that AutoCommit with Smart Commit is what i need. Is it possible to set this combination as default for new connection?
Thanks

I'll close the issue then. If you experience some issue with it, please let me know and I'll reopen it.


fixes #38

Made a change for fixing issue #38. Please see #38 for more detail.

Thanks for the PR @gasuketsu! You probably want to quote the path in the conditional and the chmod right?

Thanks for the PR @gasuketsu! You probably want to quote the path in the conditional and the chmod right?

Thank you for your feedback! I have quoted for paths.


how install this plugin to elasticsearch?

from readme I can not find how to install this plugin to elasticsearch for experiment，in opendistro-for-elasticsearch i also not find this plugin by command "curl -XGET https://localhost:9200/_cat/plugins?v -u admin:admin --insecure", Looking forward to your reply

Hi @rrjia, for opendistro-for-elasticsearch, what artifact are you using? Currently, the k-NN plugin is present in the RPM, DEB, and Docker Image, but not in the Tarball. We are planning on adding it in to the Tarball in future releases.
Additionally, at the moment, the k-NN plugin is not supported for standalone plugin installation. The documentation can be found here.

thanks, i install opendistro-for-elasticsearch by Tarball, is knn-plugin planing support install on public elastic search?

install  opendistro-for-elasticsearch from DEB after thsi commad:
sudo apt install opendistroforelasticsearch
meet error:
dpkg: error processing archive /var/cache/apt/archives/opendistroforelasticsearch_1.8.0-1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 5

thanks, i install opendistro-for-elasticsearch by Tarball, is knn-plugin planing support install on public elastic search?

Yes, in the future, we are going to add the k-NN plugin into the Tarball. In order to install the zip, you have to ensure that the shared library is added to the library path. Documentation of this can be found here.

install opendistro-for-elasticsearch from DEB after thsi commad:
sudo apt install opendistroforelasticsearch
meet error:
dpkg: error processing archive /var/cache/apt/archives/opendistroforelasticsearch_1.8.0-1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 5

Hmm, this seems strange. Did you follow these steps? If so, could you provide more information on your environment, such as the Operating System you are using?

yes, i follow all steps on website (https://opendistro.github.io/for-elasticsearch-docs/docs/install/deb/)
my Operating System information:
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

I am working to reproduce the issue. One question, does your cluster access to the internet? There is a known issue here where installation fails when the cluster does not have access to internet. In that thread, there is a temporary workaround.
We are working to resolve this problem now by building a separate DEB/RPM for the k-NN library.

thanks for your help, my cluster has accessibility  to the internet, more error information as follow:
--2020-06-08 08:57:52--  https://d3g5vo6xdbdb9a.cloudfront.net/downloads/k-NN-lib/libKNNIndexV1_7_3_6.zip
Resolving d3g5vo6xdbdb9a.cloudfront.net (d3g5vo6xdbdb9a.cloudfront.net)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to d3g5vo6xdbdb9a.cloudfront.net (d3g5vo6xdbdb9a.cloudfront.net)|<IP_ADDRESS>|:443... connected.
ERROR: cannot verify d3g5vo6xdbdb9a.cloudfront.net's certificate, issued by ‘CN=DigiCert Global CA G2,O=DigiCert Inc,C=US’:
Unable to locally verify the issuer's authority.
To connect to d3g5vo6xdbdb9a.cloudfront.net insecurely, use `--no-check-certificate'.

Hi
I am getting below error:
root@yshicoder:/home/yshicoder/Desktop# sudo apt-get install elasticsearch
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package elasticsearch


Refactored and more general sankey plotting function

plot_array can serve as an input here: In sodym, we can provide a general plotting function with lots of customization options via parameters. We can call this function from simson.

Includes moving Sankey out of data writer (#25)

Can we close this, or anything else you want to do @JakobBD?


[CELEBORN-1727][FOLLOWUP] Fix CelebornHashCheckDiskSuite flaky test

What changes were proposed in this pull request?
Fix CelebornHashCheckDiskSuite flaky test .
Why are the changes needed?
Ditto.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UT.

Merge to main(v0.6.0) and branch-0.5(v0.5.2)


error linking libnoise library

Hi dev team - I'm trying to link an external library (libnoise) that's been successfully built on linux.  On my Mac, it works fine to use --cflag="-lnoise" after doing the --include= and --lib= in the configure step.  But on linux, it seems I'm running into this issue
https://stackoverflow.com/questions/2624238/c-undefined-references-with-static-library
If I manually edit the Makefile to add -lnoise then Athena++ compiles, but if there is already a built-in way I'd love to know as for sure I'll forget I had to resort to this a couple months from now.  Thanks

I think we can easily add a configure flag for -l options just like we have for -I and -L. Perhaps the new feature can be --lib and the old -L can be changed to --lib_path or something.

Actually, I'd be interested in knowing the exact configure commands you call, and what the script reports as "Compilation command" at the very end.

While it is not difficult to add a new configuration option, this can be easily done using the --cflag configuration option already available.

Hi Kengo.  What I'm reporting is that --cflag works on Mac but not linux due to the issue I linked to.
Chris, here's my configure call
python configure.py --prob=$prob --coord=spherical_polar -mpi --flux=hllc --nghost=3 -hdf5 --hdf5_path=/usr/projects/hpcsoft/toss3/grizzly/hdf5/1.8.16_intel-17.0.4_intel-mpi-5.1.3 --include=/users/waterst3/local/libnoise/dist/include --lib=/users/waterst3/local/libnoise/dist/Release --cflag="-lnoise"
Here's what that spits out
Linker flags:             -L/usr/projects/hpcsoft/toss3/grizzly/hdf5/1.8.16_intel-17.0.4_intel-mpi-5.1.3/lib -L/users/waterst3/local/libnoise/dist/Release  -lhdf5
Compilation command:     mpicxx  -I/usr/projects/hpcsoft/toss3/grizzly/hdf5/1.8.16_intel-17.0.4_intel-mpi-5.1.3/include -O3 -std=c++11 -lnoise -I/users/waterst3/local/libnoise/dist/include
This is what doesn't work on the cluster.  If I insert -lnoise before -lhdf5 in the Makefile, then it works.

Oh I see the point, sorry. The easiest workaround is just to specify all the compiler options using --cflag instead of --lib and --include in the right ordering.

Or you can just set the environment variable such as LD_LIBRARY_PATH etc.?

Ah yes, the libraries must come after the object files in the link command -- see https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html under "It makes a difference where in the command you write this option..." The Makefile template already links according to ... $(CXXFLAGS) ... $(OBJ_FILES) ... $(LDLIBS), so we just need a convenient user interface for setting $(LDLIBS). This should be in the next release.

Just tried doing everything with cflag and it doesn't work.  That is, I get an "undefined reference" error doing this
python configure.py --prob=$prob --coord=spherical_polar -mpi --flux=hllc --nghost=3 -hdf5 --hdf5_path=/usr/projects/hpcsoft/toss3/grizzly/hdf5/1.8.16_intel-17.0.4_intel-mpi-5.1.3 --cflag="-I/users/waterst3/local/libnoise/dist/include -L/users/waterst3/local/libnoise/dist/Release -lnoise"

And specifying LD_LIBRARY_PATH is the first thing I tried.  That works for a test driver, so I probably don't need the paths at all.  The feature to add -lnoise to LDLIBS in the Makefile would be great.

Ah, how about keeping --include?

Doing
python configure.py --prob=$prob --coord=spherical_polar -mpi --flux=hllc --nghost=3 -hdf5 --hdf5_path=/usr/projects/hpcsoft/toss3/grizzly/hdf5/1.8.16_intel-17.0.4_intel-mpi-5.1.3 --include=/users/waterst3/local/libnoise/dist/include --cflag="-L/users/waterst3/local/libnoise/dist/Release -lnoise"
gives me this, which still doesn't work
Compilation command:     mpicxx  -I/usr/projects/hpcsoft/toss3/grizzly/hdf5/1.8.16_intel-17.0.4_intel-mpi-5.1.3/include -O3 -std=c++11 -L/users/waterst3/local/libnoise/dist/Release -lnoise -I/users/waterst3/local/libnoise/dist/include

It seems that the ordering of the compiler options the configure script sets is not appropriate... -I has to come earlier.

I see that now.  Thanks for the rapid responses!


Cannot reach clu.informatik.uni-freiburg.de

I have been trying for the past few days to get the data, but rsync cannot reach clu.informatik.uni-freiburg.de:
$ rsync -avzh --progress<EMAIL_ADDRESS>/home/me/FIRED/
rsync: failed to connect to clu.informatik.uni-freiburg.de (<IP_ADDRESS>): Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(127) [Receiver=3.1.3]

Hey Matterda,
I am aware of the problem since last friday. It's only a temporary problem due to a firewall added by our sys admin. We will sort this out in the following days/hours. Meanwhile you can access the 1Hz data under this Nextcloud Link.
Sorry for your trouble!
Ben

Hi Ben,
Thanks a lot for the link! I think Nextcloud's password is different from the one provided in the README.md file. If you cannot share it, it's OK: I will try through rsync again in the next few days.
Mattia

ah yes sorry for that, it is "fired"

Rsync connection issue is fixed - thanks for reporting! I will close the issue.


Configuration files not found when importing a file from outside the current project folder

Version
3.0.3
Reproduction link
https://github.com/Aymkdn/vue-cli-error
Node and OS info
Node 8.11.4 / npm 5.6.0 / Windows 10
Steps to reproduce
My structure is the one below:
parent/
├── common/
|   ├── Example.vue
└── demo/
    ├── public/
    ├── src/
    |   └── App.vue
    ├── .browserlistrc
    ├── .eslintrc
    ├── babel.config.js
    ├── package.json
    ├── etc...

demo has been created with vue create demo. I use the default settings. I've only changed the src/App.vue file (see below)
In App.vue I'd like to refer the file parent/common/Example.vue (in code):
import Example from '../../common/Example.vue'

Then if I run npm run serve I receive the below error:
Module build failed (from ./node_modules/eslint-loader/index.js):
Error: No ESLint configuration found.
    at Config.getLocalConfigHierarchy (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint\lib\config.js:255:39)
    at Config.getConfigHierarchy (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint\lib\config.js:179:43)
    at Config.getConfigVector (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint\lib\config.js:286:21)
    at Config.getConfig (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint\lib\config.js:329:29)
    at processText (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint\lib\cli-engine.js:163:33)
    at CLIEngine.executeOnText (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint\lib\cli-engine.js:620:17)
    at lint (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint-loader\index.js:237:17)
    at transform (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\eslint-loader\index.js:215:18)
    at C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\loader-fs-cache\index.js:127:18
    at ReadFileContext.callback (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\loader-fs-cache\index.js:31:14)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)

I tried to ignore ESLint but then I receive an error from PostCSS :
Module build failed (from ./node_modules/postcss-loader/lib/index.js):
Error: No PostCSS Config found in: C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\src
    at config.load.then (C:\Users\aymkdn\Documents\PROJECTS\nodejs\proof\demo\node_modules\postcss-load-config\src\index.js:55:15)
    at <anonymous>

What is expected?
I'd assume it would use the current project's config files to import files from somewhere else.
So using the current ESLint and other configurations defined in the current project.
What is actually happening?
The program tries to find configuration files from the outside folder instead of using its own config files, and because it cannot find them it fails.

I need that because I have the same code I'll need to import for different projects.
The behavior is the same with a simple JS file.
I also tried with a  webpack alias, but same error.
Thank you.

Maybe it's just a configuration issue (a parameter somewhere that I missed), or maybe I should open an issue on eslint and  postcss-load-config ?
While I'm waiting for some guidance, I did the below workaround.
I changed eslint/lib/config.js on line 284 from:
const directory = filePath ? path.dirname(filePath) : this.options.cwd;

to:
const directory = this.options.cwd;

I changed postcss-load-config/src/index.js on line 36 from:
  path = path ? resolve(path) : process.cwd()

to:
  path = process.cwd()

It's clearly not a good workaround, but at least it works for now...

You can force ESLint to use a specific config with eslint-loader configFile option: https://github.com/webpack-contrib/eslint-loader#options

Thanks Akryum for pointing me to the right direction!
Here is the required configuration in vue.config.js to avoid the issue :
const path = require('path');
module.exports = {
  chainWebpack: config => {
    config.module
      .rule('eslint')
      .use('eslint-loader')
      .tap(options => {
        options.configFile = path.resolve(__dirname, ".eslintrc.js");
        return options;
      })
  },
  css: {
    loaderOptions: {
      postcss: {
        config:{
          path:__dirname
        }
      }
    }
  }
}

I resolved this by placing a .eslintrc.json file in the root of my "common" module (which I linked into my project using yarn link.

Getting this same issue for when I yarn link a dependency on my local:
 error  in /Users/darrenjennings/source/repos/kong-ui-plugin-audit-logs/pages/List.vue?vue&type=style&index=0&lang=css&

Module build failed (from ./node_modules/postcss-loader/lib/index.js):
Error: No PostCSS Config found in: /Users/darrenjennings/source/repos/kong-ui-plugin-audit-logs/pages
    at config.load.then (/Users/darrenjennings/source/repos/kong-ee-vagrant/kong-admin/node_modules/postcss-load-config/src/index.js:55:15)
    at <anonymous>

Adding a blank .postcssrc.js file to the linked module fixed it.


add announcement notification bar for amigo

Example proof of concept is here:
https://confluence.atlassian.com/bitbucketserver/add-a-system-wide-google.c-banner-973479805.html
Administrators will choose (ALL USERS OR LOGGEN IN USERS ) and write messages over Webclient .

It is merged #648


webContentProcessDidTerminate

YouTubePlayerKit Environment

YouTubePlayerKit version: <IP_ADDRESS>
macOS version: 12.4
Xcode version: 13.3.1 (13E500a)
Dependency manager (SPM, Manually): SPM

What did you do?

Implemented the YoutubePlayerKit as per the instructions on GitHub.  It is a macOS app using SwiftUI.

 let youTubePlayer: YouTubePlayer = "https://youtube.com/watch?v=psL_5RIBqnY"
var body: some View {
    //  WWDC 2019 Keynote
    YouTubePlayerView(self.youTubePlayer) { state in
                // Overlay ViewBuilder closure to place an overlay View
                // for the current `YouTubePlayer.State`
                switch state {
                case .idle:
                    ProgressView()
                case .ready:
                    EmptyView()
                case .error(let error):
                    Text(verbatim: "YouTube player couldn't be loaded: \(error)")

                }
            }
}

What did you expect to happen?

Youtube vIdeo would load and allow me to play it.

What happened instead?

I got the message back from state saying 'webContentProcessDidTerminate'

Fixed the issue.  Missed the small print


Spring 2.4.0-M3 + GraalVM 20.2.0 -> Naive image failure

hi
with spring boot 2.4.0-M3, graalvm 20.2.0 (java 8) , native image failure with :
Warning: class initialization of class io.netty.util.internal.logging.Log4JLogger failed with exception java.lang.NoClassDefFoundError: org/apache/log4j/Priority. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.netty.util.internal.logging.Log4JLogger to explicitly request delayed initialization of this class

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start reactive web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ReactiveWebApplicationContext due to missing ReactiveWebServerFactory bean.

This is tested by our samples and works with the regular dependencies, please reopen with a repro if that does not work for you.


Added the ability to remove your application

By adding "remove_applications": ["your_app_name"] to your json node you can now remove the application from the server.
In this first version we clean up the following things:

App files (/u/apps/app_name)
Disable log_rotate
Remove the NGINX config
Disable the backup cron
Remove the backup config file.

I'm not super happy with the name remove_applications for the recipe. So if you can come up with a better name, please let me know!

/cc @joshuajansen @michiels

:+1:


Manage dump / dumpsearch in one repository

This would keep the dump related libs together in one repository. And we would be able to build them together in one CI pipeline.

Thanks for the repo merge and the history fix :-)


Clarify tags listing behavior

Fixes https://github.com/opencontainers/distribution-spec/issues/106
Registries MAY return a partial set for paginated and non-paginated tag
listing requests.
Also fix a typo.
This implements my second proposed option.

LGTM


Remove integration branch?

AFAIK, the integration is "broken" and not used anymore. Shouldn't it be removed then?

It's read only now. I wanted to keep it for historic purposes.

All right then.


Make dependency on Hermann optional

We don't currently use Hermann. The latest version of lookout-zipkin would crash on book because of a LoadError.

@jamescway @rtyler could one of you review this?

@smathieu so this would cause L4E to not be able to work, but it would have the code still in there.  Is that the intention?

@jamescway Yes. I think our configuration is currently using Scribe rather than Kafka.
Looking at the code a bit more closely, it seems like there's a possibility for the RackHandler to attempt to construct a ZipkinKafkaTracer when it could not exist. I'll address that and update the PR.

@smathieu Which configuration are you looking at?  The stuff deployed to bare metal or the aws stuff?  The aws stuff is with kafka (thats what we're using now)  other stuff is deprecated.


Clean up localization.md

Perform actions below:

Put link text on a single line
Provide a consistent look for lists
Provide consistent headings like v+n

/lgtm

/lgtm

left couple of nit comments, otherwise lgtm

/approve


ProxyConfiguration needs to support dynamic Apify Proxy URL

Describe the bug
If you create an instance of ProxyConfiguration then it sends a request to the
const APIFY_PROXY_STATUS_URL = 'http://proxy.apify.com/?format=json';

which is a URL of production Apify Proxy. This URL doesn't recognize a user connecting from the development or staging environment as those are completely separate. So the initialization fails. This means that we can't run actors with ProxyConfiguration in other than the production environment.
To Reproduce
Execute following code in other than production environment:
const Apify = require('apify');

Apify.main(async () => {
    await Apify.createProxyConfiguration();
});

Expected behavior
In other than a production environment, it should send a request to the corresponding instance of Apify Proxy.
The problem here is that we don't provide such a URL or hostname in an environment variable. We provide only the internal IP address of Apify Proxy which we want our users to use to connect to our proxy but this URL connects to port 8080 of Apify Proxy that is used for proxying but not for HTTP status.
One of the solutions could be a new environment variable APIFY_PROXY_STATUS_URL.

Let's think about it for a bit. The proposed solution is good, but it just doesn't feel right to add an env var for such a specific thing.
Can we configure it using something we already have?
Or maybe turn off the check with some config?

I don't like such a specific variable either but I don't see any other variable that would allow us to configure it properly for all the environments. It's easy to distinguish between production and staging but you need to be able to configure this also locally where it's running on a certain port http://localhost:2345/?format=json.
I'd prefer to have just APIFY_PROXY_HOSTNAME but that is already used and point's to a local load balancer for the proxy which we want people to use instead of the actual hostname.

Ok, yeah. Let's go ahead with the new env var. I plan to add a new Config class to SDK anyway, as a layer between the env vars and their usage in code.


Issue 92 | Benchmark program for resources stress tests

Summary
In order to test compute resources we need to have benchmark program.
Below you can see executon graph of a program. Each of boxes is a task in a program. This program is designed to tests vertical and horizontal scalability of compute resources.

Program accepts list of arguments to control stress levels:

n_entries - number of circuits and observables will be used in each iteration on generation task.
depth_of_recursion - defines how many recursive iterations generation task will have. (Number of generated circuits will be n_entries * depth_of_recursion).
n_backends - number of backends, which defines how many parallel trainspilation and estimations will happen.
n_qubits - number of qubits will be used in a program. Affects backends, circuits and observables.
circuit_depth - depth of generated circuits.
size_of_observable - size of generated observables.
n_graphs - number of times graph above will be executed within one program.

Details and comments
Closes #92

@Tansito @pacomf   yes, you are both correct. it's just a simple program that we can tweak to see how resources are scaling with more programs and tasks running. We can use this program inside something like k6 or similar to track results.


Fix React native portal unmount

I need help to know how to submit this fix correctly dev renderer + prod renderer
Fixes #19084
[INTERNAL] [BUGFIX] [ReactNativeRenderer] - Missing line in unmountHostComponents()

Warnings

:warning:

:clipboard: Test Plan - This PR appears to be missing a Test Plan.

  Generated by :no_entry_sign: dangerJS

cc @hramos

I don't know if this fix is right, but this file should not be edited directly. You'll want to send a PR to the facebook/react repository (which is where this line is coming from). And it'll need some tests.

Relevant line: https://github.com/facebook/react/blob/43ffae2d1750ee32409e140e41ea562ff46d2516/packages/react-reconciler/src/ReactFiberCommitWork.js#L724
Since this code is generic I expect that the issue also exists for other renderers. It's possible that it doesn't reproduce with React DOM because removeChild() exists in both cases (and so it doesn't matter whether it's a container or a normal instance). But it matters for other renderers.
One way to reproduce it might be to add assertions to createNoop renderer that enforce removeChild can only be called with an instance, and removeChildFromContainer can only be called with a container. Then write a portal test against it (it also exposes createPortal), like the one in ReactIncrementalPerf-test.

Closing as this should be sent against React repo.

Thank you for the guidelines, I'm going to submit this ASAP. 🎉

The fix landed into React in https://github.com/facebook/react/pull/13220 and will be carried over with the next RN sync.


[TASK] Landmark Server V2

Description of task
Create a landmark server, a a common interface for SITAW nodes to communicate with AUTO nodes
Suggested Implementation
Create a ROS2 message on the form:

Message Type
Name
Description

Metadata

Stuff to define what the object is

std_msgs/Header
header
For reference frame and timestamp of the landmark

string
namespace
For specifying the type of the landmark. (boat, buoy, etc)

int32
id
Specific item within namespace. (namespace + id should uniquely define the landmark)

int32
action
add/remove

State

Stuff to define where the object is

int32
type
enum for type of object (dynamic/moving or static)

geometry_msgs/Pose
pose
Position and orientation of the object

Extent

Stuff to define the shape of something

shape_msgs/SolidPrimitive
shape
Shape of the object. (Prism/Sphere)

All message types can be found here.
The old implementation of the landmark server requires the user to change the code for each new type of landmark added. The new implementation should be agnostic to type of landmark. The idea is for the AUTO side to use ROS actions to filter what kind of landmarks they want to listen to. E.g. filter for static/moving objects, only boats, only buoys etc.
The landmark server should also support publishing a map with the nav_msgs/OccupancyGrid message.
Suggested Workflow

[ ] Look at old landmark server (or not)
[ ] Create the message in the Vortex-msgs repo
https://github.com/vortexntnu/vortex-msgs/issues/2
[ ] Find a suitable way to store the landmarks, with ways to update, add and delete existing landmarks.
[ ] Create a simple publisher to publish everything
[ ] Create an action to filter what messages you want to listen to.
https://github.com/vortexntnu/vortex-msgs/issues/3
This should be added to an action folder in Vortex-msgs. The feedback topic should contain the filtered messages in some form (@vortexntnu/autonomous-systems decides what format this format should be in)

Specifications

[ ] Server can store any type of landmark without having to recompile/edit code.
[ ] ROS Action to publish a filtered subset of the landmarks.
[ ] ROS Action to get an occupancy grid representation.

Contacts

@EirikKolas, has some opinions
@alekskl01

Code Quality

[ ] Every function in header files are documented (inputs/returns/exceptions)
[ ] The project has automated tests that cover MOST of the functions and branches in functions (pytest/gtest)
[ ] The code is documented on the wiki (provide link)

I closed to to await progression on the target tracker to better understand what the actual requirements for the server was. Should be good now though and the pull request can be reopened

noice!


osd: support numactl options on OSD activate

This commit adds OSD containers activate with numactl support.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1684146
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

@fultonj

@bengland2 fyi

@guits can this get backported to 3.2?

jenkins test dev-centos-container-all_daemons

This is a starting point.  In particular the use of numactl --preferred will prevent swapping or OOM when NUMA node 0 runs out of memory (but other NUMA nodes have free memory).  It will work for certain cases where we want to restrict OSDs to a single socket.
But it doesn't take into account which NUMA socket is connected to the network NIC or NVM devices, and does not allow user to override which NUMA socket is used.   @markhpc is this consistent with changes Sage was making for NUMA?  See this pull request for NUMA support.
Another option, for non-hyperconverged storage, is to balance the OSDs across NUMA sockets.   This gets advantages of NUMA locality for any OSD X, keeping all threads for OSD X on the same NUMA socket, while allowing OSDs in aggregate to consume more CPU and memory than is available on 1 NUMA socket.    This can be done by evenly distributing OSDs across NUMA nodes.  I used to use a round-robin method back in /etc/init.d days but that wouldn't work anymore.

This is a starting point. In particular the use of numactl --preferred will prevent swapping or OOM when NUMA node 0 runs out of memory (but other NUMA nodes have free memory). It will work for certain cases where we want to restrict OSDs to a single socket.
But it doesn't take into account which NUMA socket is connected to the network NIC or NVM devices, and does not allow user to override which NUMA socket is used.

Wait, it does allow the user to override the NUMA socket used. By default the new variable ceph_osd_numactl_opts is an empty string and numactl is not used to start an OSD. If you set the ceph_osd_numactl_opts  variable to "-N 0 --preferred=0" (e.g. in all.yml), then it will use preferred and node 0. The user can set this variable to whatever they want. E.g. membind, though I understand this is not desirable, or a different NUMA socket.

@markhpc is this consistent with changes Sage was making for NUMA? See this pull request for NUMA support.

My understanding is that ceph PR 25792 is only available in Nautilus. This patch let's Lumionus users use numactl start OSDs with docker. I don't expect this option would be used with Nautilus, though technically they could.

Another option, for non-hyperconverged storage, is to balance the OSDs across NUMA sockets. This gets advantages of NUMA locality for any OSD X, keeping all threads for OSD X on the same NUMA socket, while allowing OSDs in aggregate to consume more CPU and memory than is available on 1 NUMA socket. This can be done by evenly distributing OSDs across NUMA nodes. I used to use a round-robin method back in /etc/init.d days but that wouldn't work anymore.

So you want each OSD to alternate between NUMA nodes. This patch actually does let you do that, but it's sneaky. You'd have to set the ceph_osd_numactl_opts as follows in your all.yml (or similar)
ceph_osd_numactl_opts: "-N $(($1%2)) --preferred=$(($1%2))"
Because in the run_osd_start.sh $1 is the number of the OSD, the %2 would round robin it between NUMA nodes 0 and 1. If you %N, where N is the number of sockets the pattern will continue to work. Here's an example:
[fultonj@skagra ~]$ cat alternate.sh
#!/bin/bash
export OPT="-N $(($1%2)) --preferred=$(($1%2))"
echo $OPT
[fultonj@skagra ~]$ for i in $(seq 0 9); do ./alternate.sh $i; done
-N 0 --preferred=0
-N 1 --preferred=1
-N 0 --preferred=0
-N 1 --preferred=1
-N 0 --preferred=0
-N 1 --preferred=1
-N 0 --preferred=0
-N 1 --preferred=1
-N 0 --preferred=0
-N 1 --preferred=1
[fultonj@skagra ~]$

@fultonj  I took a look at stable-3.2 branch of ceph-ansible and you're right, my bad.    It's really not user-friendly, particularly the round-robin thing, and there are too many ways that inexperienced users could mess it up, but yes you can do it.   So I guess then the question becomes:  how do we expose higher-level policies to the user that let them ask for the end-result that they want without having to know how numactl works?
And more troubling to me is: why doesn't the Linux scheduler prefer putting threads within the same process on the same NUMA node, when possible?  And why isn't there a primitive that says "please schedule this process near device X".   If it did this, then none of this probably would have been necessary, right?  But I'll have to take that up with a different group.

Well, numactl does allow "ip:HOST" as a "node number" so if you want the cores "near" a network address you can specify that.  And "-l" aka "--localalloc" is equivalent to --preferred with the same node number so that would probably be the better thing to use.
It also allows "block:PATH" as a "node number" as well, so if you want to schedule the OSD near the storage, you've got that option as well.
And, "netdev:DEV" is also an option if you know the NIC but not the IP address.

Well, numactl does allow "ip:HOST" as a "node number" so if you want the cores "near" a network address you can specify that.  And "-l" aka "--localalloc" is equivalent to --preferred with the same node number so that would probably be the better thing to use.
It also allows "block:PATH" as a "node number" as well, so if you want to schedule the OSD near the storage, you've got that option as well.
And, "netdev:DEV" is also an option if you know the NIC but not the IP address.


PEP-3107 issue.

Seems PEP-3107 currently not supported by PTVS.
Is it possible to support? It rly usefull.
Currently i use PTVS 2.2 on MSVS-2013.

It should be supported. What is not working for you?

@zooba In next code annotations will not be shown for me.
def foo( x : int, y : int ) :
	# Tooltip here shows <unknown type> for both `x` and `y`

Or for next example too.
class Foo( object ) :
	def __init__( self ) :
		self.x	= 10
		self.y	= 2

def bar( f : Foo ) :
	# IntellISense doesn't shows `f` members here.
	# Type of `f` also shown as <unknown type>.

As i can know, this is expected behaviour of function annotations.

This is actually PEP 484, and is new for Python 3.5 (see #82). Previously, they were not meant to be interpreted specially unless you wrote your own code for it.
We're looking at supporting PEP 484 sometime soon, so I'll close this issue.


token/ERC20/StandardToken.sol is missing

Hello, I am getting error when I run compile command from truffle console:
Error: Could not find openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol from any sources; imported from /Users/test/Sites/ethereum/tokenzendr-contract/contracts/BearToken.sol
When I check StandardToken.sol in the path, it's not there. Can somebody please suggest me why its missing or what's the alternative way?
Thank you

Hello @deepakkbc! You have probably installed version 2.0 of OpenZeppelin (the latest release). In it, StandardToken was renamed to ERC20: change your import statement and your contract should compile.

waoo..thank you for quick reply. When I replace stanardToken with erc20.sol, I have started getting so many  Undeclared identifier errors like
/Users/deepak/Sites/ethereum/tokenzendr-contract/contracts/TokenZendR.sol:6:24: DeclarationError: Identifier not found or not unique.
contract TokenZendR is Ownable, Pausable {
^-----^
,/Users/deepak/Sites/ethereum/tokenzendr-contract/contracts/TokenZendR.sol:61:68: DeclarationError: Undeclared identifier.
function addNewToken(bytes32 symbol_, address address_) public onlyOwner returns (bool) {
In fact I was following this tutorial https://medium.com/coinmonks/building-ethereum-dapps-with-reactjs-truffle-contract-web3-a-ui-for-tokenzendr-a-smart-bf345478b116

How did you install OpenZeppelin? Please make sure you're actually using version 2.0 (if installed via npm, it should be in your package.json file); ERC20.sol was an interface pre-2.0, not a contract.


Customising Pulse::users results in Undefined array key "email"

Pulse Version
v1.0.0-beta2
Laravel Version
10.34.2
PHP Version
8.2.13
Description
When customising the users' attributes in the pulse dashboard using the example shown in the docs, you receive an undefined array key "email" exception.
https://laravel.com/docs/10.x/pulse#application-usage-card

I looked into this and it's due to how the avatar_url is resolved.
'avatar' => $user['avatar'] ?? ($user['email'] ?? false)
                                ? sprintf('https://gravatar.com/avatar/%s?d=mp', hash('sha256', trim(strtolower($user['email']))))
                                : null,

In this scenario, the null coalescing operator resolves the first line only. So even if $user['avatar'] exists and is a valid string, it falls into the first part of the ternary sprintf('https://gravatar.com/avatar/%s?d=mp', hash('sha256', trim(strtolower($user['email'])))).
The simplest solution here is to wrap the intended ternary in parentheses so it is resolved independently. Then if $user['avatar'] is set, it will use it.
Steps To Reproduce
I use Jetstream and wanted to customise the users to use the profile_photo_url that comes out of the box with it. So to replicate this issue, create a new Laravel project with the Jetstream stack (I am using Inertia with Vue). Then pull in laravel/pulse and add the following to the AppServiceProvider::boot method.
Pulse::users(function ($ids) {
    return User::findMany($ids)->map(fn ($user) => [
        'id' => $user->id,
        'name' => $user->name,
        'extra' => $user->email,
        'avatar' => $user->profile_photo_url,
    ]);
});

I've just forked the repo to raise a PR and realised that Taylor has already resolved it in this commit, it just isn't tagged yet 😄. I'll close this.
https://github.com/laravel/pulse/commit/bb589881e1888a97c2301fbb54b2f3ccc8b3a493


member field + lambda results unexpected UnboundLocalError

Code:
class X:
    v = 10
    f = lambda x=v: x

Expected:
silence
Actual:
Traceback (most recent call last):
  File "test_lambda_scope.py", line 3, in <module>
    f = lambda x=v: x
  File "test_lambda_scope.py", line 3, in X
    f = lambda x=v: x
UnboundLocalError: local variable 'v' referenced before assignment

Since I am interested in how the RustPython compiler works, I want to try this! Is there any starting point in the codebase I can start poking around?

To be honest, I am not understand this problem very well.
The first step will be checking if it is a bytecode problem or not. dis module will be helpful.
The second step depends on the result of first step, but I would dig around LoadClassDeref generation and execution.

Thanks! I will start from the points you've mentioned 👍

@jirheee since it's been a while, do you need any help?

I'm looking into this issue using dis.
RustPython's bytecodes are as follows.
  3           0 LoadGlobal           (0, __name__)
              1 StoreLocal           (1, __module__)
              2 LoadConst            ("X")
              3 StoreLocal           (2, __qualname__)
              4 LoadConst            (None)
              5 StoreLocal           (3, __doc__)
  4           6 LoadConst            (999)
              7 StoreLocal           (4, v)
  5           8 LoadFast             (0, v)
              9 BuildTuple           (1, false)
             10 LoadConst            (<code object <lambda> at ??? file "a.py", line 5>)
             11 LoadConst            ("<lambda>")
             12 MakeFunction         (DEFAULTS)
             13 StoreLocal           (5, w)
             14 LoadConst            (None)
             15 ReturnValue

But cpython's bytecodes are as follow.
  3           0 LOAD_NAME                0 (__name__)
              2 STORE_NAME               1 (__module__)
              4 LOAD_CONST               0 ('X')
              6 STORE_NAME               2 (__qualname__)
  4           8 LOAD_CONST               1 (999)
             10 STORE_NAME               3 (v)
  5          12 LOAD_NAME                3 (v)
             14 BUILD_TUPLE              1
             16 LOAD_CONST               2 (<code object <lambda> at 0x100c49bb0, file "a.py", line 5>)
             18 LOAD_CONST               3 ('X.<lambda>')
             20 MAKE_FUNCTION            1 (defaults)
             22 STORE_NAME               4 (w)
             24 LOAD_CONST               4 (None)
             26 RETURN_VALUE

I don't know about these bytecodes very much, but it seems the UnboundLocalError occurs because of the below bytecodes.
  4           6 LoadConst            (999)
              7 StoreLocal           (4, v)
  5           8 LoadFast             (0, v)

The v variable is stored through StoreLocal, but loaded through LoadFast. (and also the index mismatch too.)
While in cpython, the v variable is stored and loaded through LOAD_NAME, STORE_NAME.

In the example code, compile_name is called twice when v is stored, and loaded.
The problem here is when v is stored, it is not function scope, so its op_type is treated as Local type,
but when the v is accessed, because it is in function scope, it is treated as a Fast type.
(Related: https://github.com/RustPython/RustPython/blob/main/compiler/codegen/src/compile.rs#L479)
I think maybe using LoadNameAny like cpython could be a method.

So, I think maybe the problem here is the default argument v's scope is evaluated as in the function's scope in the lambda expression, which is not correct.
>>>>> f = lambda x=v:x
name: v
self.ctx.in_func(): true

>>>>> def f(x=v): x
name: v
self.ctx.in_func(): false


LocalPath object has no attribute endswith

With the following tox.ini on a centos 7 machine I get an error when tox-pipenv is installed
[tox]
minversion = 1.8
envlist = py{27}-ansible{23,24}
skipsdist = true

[testenv]
passenv = *
deps =
    molecule==2.8
    ansible23: ansible==2.3
    ansible24: ansible==2.4
commands =
    molecule test

$ tox
py27-ansible23 create: /home/user1/ansible-module/.tox/py27-ansible23
Traceback (most recent call last):
  File "/home/user1/.local/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/home/user1/.local/lib/python2.7/site-packages/tox/session.py", line 40, in main
    retcode = Session(config).runcommand()
  File "/home/user1/.local/lib/python2.7/site-packages/tox/session.py", line 392, in runcommand
    return self.subcommand_test()
  File "/home/user1/.local/lib/python2.7/site-packages/tox/session.py", line 558, in subcommand_test
    if self.setupenv(venv):
  File "/home/user1/.local/lib/python2.7/site-packages/tox/session.py", line 457, in setupenv
    status = venv.update(action=action)
  File "/home/user1/.local/lib/python2.7/site-packages/tox/venv.py", line 169, in update
    self.hook.tox_testenv_create(action=action, venv=self)
  File "/home/user1/.local/lib/python2.7/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/home/user1/.local/lib/python2.7/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/user1/.local/lib/python2.7/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/home/user1/.local/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall
    return outcome.get_result()
  File "/home/user1/.local/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result
    _reraise(*ex)  # noqa
  File "/home/user1/.local/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/home/user1/.local/lib/python2.7/site-packages/tox_pipenv/plugin.py", line 22, in tox_testenv_create
    pipfile_path = os.path.join(venv.path, 'Pipfile')
  File "/usr/lib64/python2.7/posixpath.py", line 77, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'LocalPath' object has no attribute 'endswith'

pipenv, tox and tox-pipenv were installed by user
$ pip freeze --user
backports.shutil-get-terminal-size==1.0.0
certifi==2018.1.18
configparser==3.5.0
enum34==1.1.6
flake8==3.5.0
idna==2.6
mccabe==0.6.1
pathlib==1.0.1
pew==1.1.2
pipenv==9.0.1
pluggy==0.6.0
py==1.5.2
pycodestyle==2.3.1
pyflakes==1.6.0
shutilwhich==1.1.0
tox==2.9.1
tox-pipenv==1.2.1
virtualenv==15.1.0
virtualenv-clone==0.2.6

Seems like venv.path is a pathlib.Path and not a string in some cases.
There is an easy fix though. I'll try to find time to work on a PR.

Can you check my PR and see if that works for you?

released in 1.3.0

@tonybaloney Why did you reopen?

@thedrow I don’t normally close an issue unless the raiser confirms it has been fixed

This is still happening for me with 1.3, but now on a different line. You need to apply the same fix everywhere you have os.path.join(venv.path) @tonybaloney

Already did in #12 :)


How to change count of options in context menu of file?

Hi All! I'm using dokan to write virtual disk in scope of c# project. And for now I'm interesting in possibility
to change context menu for file after right click on it. For example leave only "copy" and  "paste". Also is it possible to do using only dokan-dotnet part?
Thank you in advance!

Hi @kovtunenkoa17 ,
Context menu are not managed by Dokan. It is a Windows feature for all the devices.
https://docs.microsoft.com/en-us/windows/desktop/shell/context-menu-handlers
I am not sure it is possible to remove the generic option menu. If you or someone could come up with an idea, it would be great to share it. Seems like a couple of people are interested in this.

Thank you @Liryna for quick answer!


microservice migration - remaining instances

[ ] verify all README.md and licenses
[x] add sampel docker-compose and/or minikube scripts
[ ] update documentation on installation, commands etc.
[x] update wiki
[x] make gateway multi-instance compatible (session store)
[x] fix project invitation, ui does no longer handle signin/-up
[x] devextreme integration seems kinda broken? styles no longer applied :(
[x] check sonar integration
[x] one formatting to rule them all

[ ] deduplicate configurations and/or dependencies (gradle, editorconfig, ..)


Demo

Pull request to merge in a new node12 function to faasd

Invalid now. I have updated the deploy.yml file to only  on successful pull request merge rather than firing when a pull request is created.


[Bug] 1-1 relationship field doesn't seem to work using class notation

Bug report
What I did
Added a 1-1 relationship field using dot-notation like so:
CRUD::field('rideWaitingTime.waiting_time')
    ->label('Wachttijd')
    ->type('number')
    ->attributes(['step' => 1])
    ->tab('Openings- en wachttijden');

What I expected to happen
To see a number type field underneath the "Openings- en wachttijden" tab labeled "Wachttijd".
What happened
A text field appeared on top of the form above the tabs. It was otherwise working properly, it loads existing data and stores it properly in the database, so the relationship works but somehow the other settings (label, type, attributes and tab) are being ignored.
What I've already tried to fix it
I was able to fix it by declaring the field using $this->crud->addField, like this:
$this->crud->addField([
    'name' => 'rideWaitingTime.waiting_time',
    'label' => 'Wachttijd',
    'type' => 'number',
    'attributes' => [ 'step' => 1],
    'tab' => 'Openings- en wachttijden',
]);

This way it's working completely as expected, so it's not a huge problem, but it should probably work using the class notation too so I thought I'd mention the issue to you.
Is it a bug in the latest version of Backpack?
After I run composer update backpack/crud the bug... is it still there?
Yes.
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
### PHP VERSION:
PHP 7.4.24 (cli) (built: Sep 24 2021 00:55:41) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.24, Copyright (c), by Zend Technologies
    with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
    with blackfire v1.67.0~linux-musl-x64-non_zts74, https://blackfire.io, by Blackfire

### LARAVEL VERSION:
v7.30.5@afb0c034072a03a5ab1872fbdea54f8befd873c3

### BACKPACK VERSION:
4.1.62@273c277e826c157ef0913962769a7ec9a44b6233

@mraap thanks for the report.
When I read your issue I was sure I already saw it before.
Here it is: https://github.com/Laravel-Backpack/CRUD/pull/3981
Make sure you are not overriding any files in your app/resources folder that were modified in that PR, if you do please manually add the fixes.
Let me know how it goes or feel free to close if I was rigth!
Merry Christmas,
Pedro

Disregard my last comment @mraap . I was wrong you were rigth!
The fix had only been merged in 4.2.
@tabacitu should we also merge that fix into 4.1 ? It's a little BC, some public methods removed, but still worth it for the use case ?

Thanks for reporting this @mraap ! It's indeed a bug, it's been already fixed in 4.2 so you'll be getting it very soon when we release 4.2 and you upgrade. Until then, please use addField() for that one... it will look odd but only for a while.
@pxpm - yup - that's what I wanted to say, it's exactly #3996 . No, we have no time to backport it to 4.1 right now, let's focus on finishing 4.2 please. Focus! 😅

I didn't find the other ticket about this issue so I just thought I'd mention it to you. It's no problem at all to use the addField for now. Thanks for clarifying 😊


⚠ Bofrost.com has degraded performance

In 34b2327, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 608 ms

Resolved: Bofrost.com performance has improved in 3d1cfba.


Reland "Revert "[ios] Run ios rendering test on github action runner""

Reland https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/pull/1149

Reland after this PR https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/pull/1151 merged.