Cancel job not working especially asyc job

Hello
i need a way to stop an async job, using your code:
public class AsyncJob extends Job {
@NonNull
@Override
protected Result onRunJob(Params params) {
    final CountDownLatch countDownLatch = new CountDownLatch(1);

    new Thread() {
        @Override
        public void run() {
            // do async operation here

            SystemClock.sleep(3_000L);
            countDownLatch.countDown();
        }
    }.start();

    try {
        countDownLatch.await();
    } catch (InterruptedException ignored) {
    }

    return Result.SUCCESS;
}

}
calling:  JobManager.instance().cancelAll();
not stopping the current job for example
actually even if a job was scheduled but did not start to work, calling cancel, is not cancelling it's future work.
is there a better way to cancel it ?
Thanks

@vRallev any idea ?

That's weird and I've tested it multiple times and it should work. If you cancel a not running job, then it shouldn't run anymore. If you cancel a job while it's running, then the you can call isCanceled() inside your job to check if it was canceled.
Please attach a log or a sample project. Otherwise it's hard for me to tell what's going on.

so this is my abstract class:
public abstract class AbstractAsyncJob extends Job {
protected String jobDescription;

protected Integer jobId;

@NonNull
@Override
protected Result onRunJob(Params params) {
    final CountDownLatch countDownLatch = new CountDownLatch(1);

    Utils.makeToastText(getContext(),jobDescription + ": Started");

    new Thread() {
        @Override
        public void run() {
            // do async operation here
            startJob();

            Utils.makeToastText(getContext(),jobDescription + ": Completed");

            SystemClock.sleep(10_000L);
            countDownLatch.countDown();
        }
    }.start();

    try {
        countDownLatch.await();
    } catch (InterruptedException ignored) {
        jobInterruptedException();
    }

    return Result.SUCCESS;
}

protected static ArrayList<Long> getStartAndEndForEvery24Hours(){
    //Calendar calendar = Calendar.getInstance();

    //
    long startMs = 1_000L;
    long endMs = startMs + TimeUnit.HOURS.toMillis(24);

    ArrayList<Long> values = new ArrayList<>();
    values.add(startMs);
    values.add(endMs);

    return values;
}

public static int scheduleEvery24Hours(String TAG, boolean updateCurrent) {

    ArrayList<Long> values = getStartAndEndForEvery24Hours();
    Long startMs = values.get(0);
    Long endMs = values.get(1);

    int jobId = createScheduledJob(
            TAG,
            updateCurrent,
            startMs,
            endMs
    );

    return jobId;
}

// .setRequiresDeviceIdle(true) // this not working for some reason, so i decided to manage the idle mode
// by code
protected static int createScheduledJob(String jobTag, boolean updateCurrent, Long startMs, Long endMs){
    int jobId = new JobRequest.Builder(jobTag)
            .setExecutionWindow(startMs, endMs)
            //.setBackoffCriteria(5_000L, JobRequest.BackoffPolicy.EXPONENTIAL)
            //.setRequiresDeviceIdle(true)
            .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED)
            .setRequirementsEnforced(true)
            //.setPersisted(true)
            .setUpdateCurrent(updateCurrent)
            .build()
            .schedule();

    return jobId;
}

// to override
protected void startJob() {

}

protected void jobInterruptedException(){

}

public interface JobResult {
    void onJobStart();

    void onJobComplete();
}

}

You misunderstood what was meant with async operation. onRunJob(params) is already called on a background thread. It's not necessary to create another thread.

what do you mean by that ?

even if i'm not using anymore the Thread object this still not working ....

@NonNull
@Override
protected Result onRunJob(Params params) {
    doHeavyWork();
    return Result.SUCCESS;
}

Please attach logs or a sample project.

this is the code i'm using now:
package com.tarcha.netminder.backgroundJobs.creator.jobs;
import android.os.SystemClock;
import android.support.annotation.NonNull;
import com.evernote.android.job.Job;
import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest;
import com.tarcha.netminder.com.Utils;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
/**

Created by shomron-ssd on 12/5/2016.
*/

public abstract class AbstractAsyncJob extends Job {
protected String jobDescription;

protected Integer jobId;

@NonNull
@Override
protected Result onRunJob(Params params) {
    //final CountDownLatch countDownLatch = new CountDownLatch(1);

    Utils.makeToastText(getContext(), jobDescription + ": Started");

    startJob(new JobResult() {
        @Override
        public void onJobStart() {

        }

        @Override
        public void onJobComplete() {
            Utils.makeToastText(getContext(), jobDescription + ": Completed");
            //countDownLatch.countDown();
        }
    });

    /*try {
        countDownLatch.await();
    } catch (InterruptedException ignored) {
        jobInterruptedException();
    }*/

    return Result.SUCCESS;
}

protected static ArrayList<Long> getStartAndEndForEvery24Hours() {
    //Calendar calendar = Calendar.getInstance();

    //
    long startMs = 1_000L;
    long endMs = startMs + TimeUnit.HOURS.toMillis(24);

    ArrayList<Long> values = new ArrayList<>();
    values.add(startMs);
    values.add(endMs);

    return values;
}

public static int scheduleEvery24Hours(String TAG, boolean updateCurrent) {

    ArrayList<Long> values = getStartAndEndForEvery24Hours();
    Long startMs = values.get(0);
    Long endMs = values.get(1);

    int jobId = createScheduledJob(
            TAG,
            updateCurrent,
            startMs,
            endMs
    );

    return jobId;
}

// .setRequiresDeviceIdle(true) // this not working for some reason, so i decided to manage the idle mode
// by code
protected static int createScheduledJob(String jobTag, boolean updateCurrent, Long startMs, Long endMs) {
    int jobId = new JobRequest.Builder(jobTag)
            .setExecutionWindow(startMs, endMs)
            //.setBackoffCriteria(5_000L, JobRequest.BackoffPolicy.EXPONENTIAL)
            //.setRequiresDeviceIdle(true)
            .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED)
            .setRequirementsEnforced(true)
            //.setPersisted(true)
            .setUpdateCurrent(updateCurrent)
            .build()
            .schedule();

    return jobId;
}

// to override
protected void startJob(final JobResult result) {

}

protected void jobInterruptedException() {

}

public interface JobResult {
    void onJobStart();

    void onJobComplete();
}

}

the test i'm doing is:

run the app
click home button, i'm detecting it inside my code => run BackgroundJobAllPersons.scheduleJob();
when i have a toast that said job started i'm going back to the app which my code detects it and top all current jobs using:

JobManager jobManager = JobManager.instance();
jobManager.cancelAll();
this is the flow

Then everything works as expected. It's not possible to destroy a thread and stop its work in Java. You need to check isCanceled(). Sorry, but that's not part of this library and you should ask such questions elsewhere like Stackoverflow.

i know, but i've been following your documentation, so it's not enough clear people.

Prove it and attach logs.

is there a serious coder that can help me out ?

@vRallev is there a test case where your library is starting jobs when the home button is clicked then when comming back it's stopping all the current jobs ? it's an important usecase make one and you will see that this is not working.

Sorry, no serious coder here.

you have just proved it : )


Add python django-rq package to requirements.txt

Environment

Python version:  any
NetBox version:  current

Proposed Functionality
Adding this python package as part of default requirements.txt will simplify webhook enablement as python packages will already be installed in correct env when netbox is installed.  So all that is left for user to do is install redis and add config.
Use Case
Webhook enablement
External Dependencies
django-rq

It's an optional package, like NAPALM, so it isn't included in requirements.txt. There's no reason to force someone to install something they're not necessarily going to use.


Agents on LXC Containers show RAM Usage of Proxmox Host

I have deployed the Beszel agent on several LXC containers on Proxmox which have different amounts of RAM.
Unfortunately every agent is showing 32GB of RAM in the UI which is the total amount of RAM of the Proxmox host. RAM usage is also showing the exact same value for every agent.
I tried changing the corresponding LXCs to unprivileged/privileged, turned on and off Nesting without any effect.
CPU and disk usage seem to work fine.
Am I missing an option here?

PS: I just figured out that this only occurs when using the dockerized agent.

Thanks for the info, I'll look into it.

To clarify, the binary agent correctly shows the memory allocated to the LXC container?
But installing Docker in the container and running the agent with Docker shows the memory info for the host?
Could you please tell me what free -h  and cat /sys/fs/cgroup/memory.max output in the container?

Yes, exactly. The docker agent shows the memory for the host and the binary agent shows the correct memory allocated to the specific LXC container it is running on.
Sure thing. I checked on a exemplary LXC and the amount of memory (1G) is correct.
free -h:
total        used        free      shared  buff/cache   available
Mem:           1.0Gi       178Mi       659Mi        48Ki       186Mi       845Mi
Swap:          1.0Gi       122Mi       901Mi
cat /sys/fs/cgroup/memory.max:
max

Also on Proxmox with a similar setup and ran into this same issue. Binary agent works though.


Allow external component for input

as proposed in #80

@sanniassin let me know if you're ok w/ the changes, so i'll also update the doc


operator init --dry-run should not create ns

Please provide a description of this PR:
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@monsteredc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
9f7fc5ccac3cf453c3b711faeb133af9d91a74af
link
true
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@monsteredc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-telemetry-mc-k8s-tests_istio
1edb11e8ec504a34a28ad35f4fae477a46b7c641
link
true
/test integ-telemetry-mc-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@monsteredc: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-telemetry-mc-k8s-tests_istio
1edb11e8ec504a34a28ad35f4fae477a46b7c641
link
true
/test integ-telemetry-mc-k8s-tests_istio

unit-tests_istio
1edb11e8ec504a34a28ad35f4fae477a46b7c641
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest-required

Looks like we have createNamedspace with dryRun option in reconciler see:
https://github.com/istio/istio/blob/62b77cc3b0fe96eb3b9c85e70642aed9468c3d9a/operator/pkg/helmreconciler/reconciler.go#L599-L604
Maybe we can enhance it there.

@morvencao Thanks!

/cherry-pick release-1.12

@monsteredc: #36570 failed to apply on top of branch "release-1.12":
Applying: fix
Using index info to reconstruct a base tree...
M	operator/cmd/mesh/operator-init.go
M	operator/cmd/mesh/shared.go
Falling back to patching base and 3-way merge...
Auto-merging operator/cmd/mesh/shared.go
Auto-merging operator/cmd/mesh/operator-init.go
CONFLICT (content): Merge conflict in operator/cmd/mesh/operator-init.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 fix
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.12

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Maybe we shouyld have a test with --dry-run using fake k8s client and assert no write actions.

Maybe we shouyld have a test with --dry-run using fake k8s client and assert no write actions.

@howardjohn Sounds great. I'll look into it.


Make .net version runnable on newer platform versions

For now runner requires .net5.0 to be installed to be runnable. Need to roll-forward to the next available higher major version

Merged in 3246ffa


Add creation and update datetime columns

Add datetimes function to create "created_at" and "updated_at" columns using "datetime" columns instead off "timestamps" columns to add further future proofing.

I'm curious, how does it future proof compared to timestamps?

timestamps currently has a maximum date time of 03:14:08 on 19 January 2038. datetime can go to 9999-12-31 23:59:59. Even knowing its 15ish years away thought it'd be good to implement an alternative.

This should go to 9.x or 10.x branch. Master is technically Laravel 11 (2024 release).

My bad, thank you.


Cursor moves to far left when updating control

Version: reactive_forms: ^10.2.0
I noticed this issue was resolved in 7.6.3.
7.6.3
Fix
Set cursor at the end of the text when set value to reactive text field from the FormControl.
However I am experiencing this issue when instead of using a ReactiveTextField, I use a Flutter Typeahead inside a ReactiveFormField and do field.didChange(). Is this something that can be fixed on the reactive_forms end? I have tried to work around this by passing an onChanged callback which achieves what I want, however the cursor still moves to the left in some cases so there is some inconsistent strange behaviour when I enter text.
Here is my Widget:
import 'package:flutter/material.dart';
import 'package:flutter_typeahead/flutter_typeahead.dart';
import 'package:reactive_forms/reactive_forms.dart';

import 'autocomplete_field_view_model.dart';

class AutocompleteField<
    ValueType,
    ViewModelType extends AutocompleteFieldViewModel<ValueType, SuggestionType>,
    SuggestionType> extends ReactiveFormField<ValueType, ValueType> {
  AutocompleteField(
      {required String formControlName,
      required this.viewModel,
      this.onTypedCallback,
      this.context,
      this.label,
      this.hint,
      bool hasFocus = false,
      this.onFocusLost,
      Map<String, String> Function(AbstractControl<dynamic>)?
          validationMessages,
      this.key})
      : super(
            key: key,
            formControlName: formControlName,
            validationMessages: validationMessages,
            showErrors: (control) => control.invalid,
            builder: (ReactiveFormFieldState<ValueType, ValueType> field) {
              viewModel.field = field;
              viewModel.setTypeAheadText(field.value);
              return FocusScope(
                  child: Focus(
                      onFocusChange: (isFocused) {
                        hasFocus = isFocused;
                        viewModel.onFocusChange(isFocused, onFocusLost);
                        // ignore: invalid_use_of_protected_member
                        field.setState(() {});
                      },
                      child: TypeAheadFormField<SuggestionType>(
                        hideSuggestionsOnKeyboardHide: true,
                        suggestionsBoxController:
                            viewModel.suggestionsBoxController,
                        textFieldConfiguration: TextFieldConfiguration(
                          controller: viewModel.typeAheadController,
                          onChanged: (String text) {
                            if (onTypedCallback != null) {
                              onTypedCallback(text);
                            }
                            viewModel.onTyped(text);
                          },
                          autofocus: false,
                          decoration: InputDecoration(
                              errorMaxLines: 3,
                              suffixIconConstraints: const BoxConstraints(
                                minWidth: 2,
                                minHeight: 2,
                              ),
                              suffixIcon: ReactiveStatusListenableBuilder(
                                formControlName: formControlName,
                                builder: (context, control, child) {
                                  return control.pending
                                      ? Container(
                                          width: 90,
                                          height: 60,
                                          child: Stack(children: [
                                            Positioned(
                                              top: 10,
                                              right: 15,
                                              child: CircularProgressIndicator(
                                                  backgroundColor:
                                                      Theme.of(context)
                                                          .primaryColorDark),
                                            )
                                          ]))
                                      : Container(width: 0);
                                },
                              ),
                              alignLabelWithHint: true,
                              labelStyle: TextStyle(
                                  height: 0,
                                  fontSize: hasFocus ? 24 : 18.0,
                                  color: Theme.of(context!).primaryColor),
                              hintText: hint,
                              labelText: label,
                              counterText: ''),
                        ),
                        suggestionsCallback: viewModel.suggestionsCallback,
                        suggestionsBoxDecoration:
                            viewModel.suggestionBoxDecoration(),
                        itemBuilder: viewModel.itemBuilder,
                        onSuggestionSelected: (SuggestionType suggestion) =>
                            viewModel.onSuggestionSelected(suggestion),
                      )));
            });

  ViewModelType viewModel;
  final Key? key;
  final BuildContext? context;
  final String? label;
  final String? hint;
  bool? hasFocus;
  final void Function()? onFocusLost;
  final void Function(String text)? onTypedCallback;

  @override
  ReactiveFormFieldState<ValueType, ValueType> createState() =>
      ReactiveFormFieldState<ValueType, ValueType>();
}

I have managed to resolve this problem with the help of this SO question. It didn't work for me initially when I put the selection code into onChanged method of the TextEditingController:
child: TypeAheadFormField<SuggestionType>(
                        hideSuggestionsOnKeyboardHide: true,
                        suggestionsBoxController:
                            viewModel.suggestionsBoxController,
                        textFieldConfiguration: TextFieldConfiguration(
                          controller: textController,
                          onChanged: (String text) {
                            textController.value =
                                textController.value.copyWith(
                              text: text,
                              selection: TextSelection.fromPosition(
                                  TextPosition(offset: text.length)),
                              composing: TextRange.empty,
                            );
                          },
                          autofocus: false,

I had to also add it to the top of the ReactiveFormFieldState builder method for it to work.
            ....builder: (ReactiveFormFieldState<ValueType, ValueType> field) {
              textController.value = textController.value.copyWith(
                text: text,
                selection: TextSelection.fromPosition(
                    TextPosition(offset: text.length)),
                composing: TextRange.empty,
              );
              return FocusScope(
                  child: Focus(.........


parse_options sample code question

I followed the doc included in the json library for setting the parse_option to allow comments, but now my program won't compile,.
Here's what I added:
parse_options opt;                                  // all extensions default to off
opt.allow_comments = true;                          // permit C and C++ style comments to appear in whitespace
json::value
parse_file( char const* filename, opt );  // I added the "opt" here
The build errors I get - suspect the first on is the culprit...
../pretty.cpp: At global scope:
../pretty.cpp:25:1: error: ‘parse_options’ does not name a type
25 | parse_options opt;                                  // all extensions default to off
| ^~~~~~~~~~~~~
../pretty.cpp:26:1: error: ‘opt’ does not name a type
26 | opt.allow_comments = true;                          // permit C and C++ style comments to appear in whitespace
| ^~~
../pretty.cpp:29:35: error: ‘opt’ has not been declared
29 | parse_file( char const* filename, opt );
|                                   ^~~
../pretty.cpp:30:1: error: expected unqualified-id before ‘{’ token
30 | {
| ^
../pretty.cpp: In function ‘int main(int, char**)’:
../pretty.cpp:151:45: error: too few arguments to function ‘boost::json::value parse_file(const char*, int)’
151 |         auto const jv = parse_file( argv[1] );
|                                             ^
I don't know if I'm missing an include; or what might be wrong...I need some guidance.

resolved the compile problem by moving the "parse_options opt;" and "opt.allow_comments=true;" statements into the "parse_file" function.
Problem/issue will be closed.

Closed, fixed per above comment.


Version the SPA template package

We’ve met with the tooling team and discussed the recent changes in the tooling, which require packages to be uniquely named across runtimes.
Because that isn’t still the case, the change the tooling team made resulted in our SPA project templates to disappear from the New ASP.NET Core project dialog.
They’ve introduced a temporary workaround, making it so that the package from the newest runtime shows up. This, however, has a lot of issues and should be treated as a temporary mitigation.
The changes below are to make the SPA project templates packages unique per runtime, similar to how we have this setup for other project templates.

Approved for 2.1.13 and 2.2.7
Wait for branch to open.


add utils methods to the topology

As discussed https://github.com/bgpkit/valley-free/pull/7#issuecomment-1894902313. This PR creates util methods to analyze the topology graph.
De first commit is with the naive approach, the second one use a more typesafe approuch

@guissalustiano there is a merge conflict now that #9 is merged. Could you update your PR to address that? Thanks!

@digizeph done!


Support TLS client certificate

Very important change to establish secure TLS connection with MQTT broker.

I don't see these options in the docs: https://doc.deno.land/builtin/stable#Deno.ConnectTlsOptions
Does it require a newer version of Deno than is currently released?

It doesn't make sense to depend on an unstable api in a library unless the user opts in explicitly somehow. I'd recommend a separate UnstableDenoClient for this that can track unstable Deno APIs.


Timestamp calculation

This line
                time=$(date +%s%N | cut -b1-10)

includes nanoseconds and then cuts them off again.
A simpler version would be
    time=$( date +%s )

However even that is unnecessary.
    printf -v time '%(%s)T'

Also I adjust the main loop so that it runs 60 seconds after the previous run started rather than 60 seconds after it finished, or immediately if the job took longer than 60 seconds to run.

yeah, my code here is kind of dumb.
i will fix it, thanks.
also i dont see any issues with the order how cron runs. it was mainly done so for feedback without waiting while testing.
tell me if i am missing something about the order


Migration tool should take advantage of unsound promotions

Consider the following code:
class C {
  C() : x = null;
  int x;
  void f(bool b) {
    if (x != null) {        // (1)
      int y = x;            // (2)
    }
  }
}

Since the identifier x at (1) refers to a field, it is unsound to promote it to non-nullable within the body of the if (a derived class might override it with a getter).  So the flow analysis logic does not promote it.  Since the migration tool is based on flow analysis, this means that it will consider x to be nullable at (2), so it will produce the result:
class C {
  C() : x = null;
  int? x;
  void f(bool b) {
    if (x != null) {        // (1)
      int? y = x;           // (2)
    }
  }
}

This is technically a correct migration, however it probably doesn't match user intent.  What the user intends is probably for the variable y to be non-nullable, i.e.:
class C {
  C() : x = null;
  int? x;
  void f(bool b) {
    if (x != null) {        // (1)
      int y = x!;           // (2)
    }
  }
}

(Note that at (2) we have to add a ! to account for the fact that strictly sound type promotion treats x as nullable, even though we have decided that the user intent is for x to be non-nullable here).
In order for the migration tool to produce this migration correctly, it would need to keep track of both (a) the user's intention of what should be nullable, and (b) what actually is considered nullable by flow analysis.  At the moment the tool doesn't distinguish these concepts.

Here's another (perhaps more plausible) example of an unsound promotion we might want the tool to be able to handle:
void f(int/*?*/ i, int/*?*/ j) {
  if (i != null) {
    assert(j != null);
    int k = j;
  }
}

Currently this will be migrated as:
void f(int? i, int? j) {
  if (i != null) {
    assert(j != null);
    int? k = j;
  }
}

But it would be much nicer for it to be migrated as:
void f(int? i, int? j) {
  if (i != null) {
    assert(j != null);
    int k = j!;
  }
}

As of 1c7fe7196dd7a542f7f91cd6ea2ac81e1a13146c, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.
If you still need help, or you believe this issue has been closed in error, please feel free to reopen.


Get rid of the __name__ tag in the Subrouter

The __name__ tag is present in the main router for hot reload but provides no value in the Subrouter. Get rid of it!

@sansyrox 👋 ,
class SubRouter(Robyn):     def __init__(self, prefix: str = "", config: Config = Config()) -> None:         super().__init__(file_object=None, config=config)         self.prefix = prefix
is this method is correct ? , to eliminate the __name__ tag from Subrouter

Hey @Amaljyothi44 👋  , what is the logic that you are using? Would the live reload still work on change of the files here?

As SubRouter is a subclass, if we don't want to use a variable defined in the parent, we can initialize the variable with None or a default value. However, if we define file_object as None, the parent class code expects file_obj to be a str (as done in the first PR). Alternatively, set a default value for file_object ( have done in the second PR).

Hey @Amaljyothi44 ,
Would the live reload still work on change of the files here in your latest approach? Another way is use composition or not even use inheritance.
They would depend if you can make things like dev server work and the file routing work without adding hard coded paths.
Let me know what you find.

Hey @sansyrox,
I tried avoiding inheritance and used instances instead, but it only made things more complex.


'De-bloating' The Dockerfile

Hey @hayd, i personally feel the dockerfile logic could be simplified, here is what I use for any deno container:
FROM debian:stable-slim

RUN apt update -y \
  && apt clean \
  && apt install bash curl unzip -y

RUN curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh -s v1.5.1
RUN export DENO_INSTALL="/usr/bin"
RUN export PATH="$DENO_INSTALL/bin:$PATH"

I also wonder if it's worth adding ARGS support for a deno version? eg:
// your dockerfile
ARG DENO_VERSION

Run install deno | v${DENO_VERSION}

// my docker-compose.yml file
deno:
  args:
    - DENO_VERSION: 1.4.5 # or whatever the syntax is i can't remember fully

closing as duplicate of #79

Are we talking about de-bloating the image size or the number of lines in the dockerfile?

I’m taking about the number of lines in the Docker file, but the image size would be smaller should Debian slim be used - of course any slim image would do but maybe you have reasons to go with the image you’ve chosen

Happy to use the slim version, if not already!
I am unsure about using number of lines as a metric, and i am nervous about relying on deno install (compared to only github download, which is also a dependency of deno install) - and deno install is where the lines are :) .

Fair enough :) I guess what I’m saying in a nutshell is, the installation could be anything, but I feel the content of the dockerfile could be simplified and achieve the same result, without sacrificing readability

Also someone mentioned they couldn’t get any logs with your dockerfile, but I can’t find the link :/

Don't suppose we could move this discussion to https://github.com/hayd/deno-docker/issues/79?


Feature request: CLI command that outputs next version

This library is really awesome!  I love that the example in the readme is able to determine the next semver version based on last semver version and commits since then.  Would it be possible to add this functionality as a CLI command?  Ideally I could run something like npx git-commits-since --nextVersion and have it output the next version.

Oops, I just reread the readme... looks like a CLI is available for this.  Thanks!


Rotation ignored by the mount library

If you try to ride a mob that has self.rotate~=0 its model is not rotated when you are mounting it.
Is it possible to do something?
Thank you

Ideally mob models should be at 0 rotation for best compatibility but I'll have a look and see if attached models can be rotated.

Okies, it seems to be fixed now :)  I have mount functions check and use self.rotate to fix the mob rotation and added the line:
self.player_rotation = {x = 0, y = 90, z = 0}

... to the do_custom function with the other mount settings to rotate player properly.


Support BigQuery partitioning in Kafka connector

BigQuery supports YYYYMMDD partitioning tables. This feature is documented here. This will be a required feature when we start loading tracking data from Kafka into BigQuery, as we'll want to time-partition it, and implement a retention policy.
It seems like we might want this always enabled, simply by creating all tables with date partitions in the connector. We'll probably also want a regex-based config to be able to define if a field in the incoming message should be used as the partition date (e.g. a 'produced_ts' field).

Closed by https://github.com/wepay/kafka-connect-bigquery/pull/48

Just for clarification, now that #48 is merged does this mean all tables moving forward will be data-partitioned tables?
On a related note, what is the suggested method for handling this change when upgrading kafka-connect-bigquery? Is the best way to drop the existing tables in BigQuery and have a new BigQuery Sink connector create them and re-load messages?

Just for clarification, now that #48 is merged does this mean all tables moving forward will be data-partitioned tables?

Correct. The partitioning is based on the time that the row is inserted. One thing to be aware of is that this means that if you load a ton of data at once (e.g. loading all existing data from a Kafka topic), it'll all go into the partition for the day it's loaded. The decision to go this route was that, by writing only to the head of the table, it makes it much easier to do maintenance on past partitions (i.e. prior days). We opted to keep the BigQuery topic's behavior much like that of a Kafka topic: append to the end of the topic, so you can do compaction/repartitioning on prior days without affecting writes that might be in flight (since they're always going to the latest partition).

Is the best way to drop the existing tables in BigQuery and have a new BigQuery Sink connector create them and re-load messages?

Yes, this is what we did. This change was backwards incompatible, so it requires rebootstrapping or manually migrating--sorry for that inconvenience.
It's technically possible to migrate from YYYYMMDD-based (old style) BigQuery partitions to the new partitioning scheme, but we opted not to do that because it was a lot more manual work.

Great, thanks @criccomini for the quick and thorough response!


Comparison Operators for Bit Patterns

Missing implementation for O, Z, and M operators:
"TypeError: abap.compare.compareoperatortodoO is not a function"
https://help.sap.com/doc/abapdocu_756_index_htm/7.56/en-US/index.htm?file=abenlogexp_bitmasks.htm
Here's my example for "Secret Handshake" using these operators:
CLASS zcl_secret_handshake_example DEFINITION PUBLIC FINAL CREATE PUBLIC .
  PUBLIC SECTION.
    METHODS get_commands
      IMPORTING
        !code           TYPE i
      RETURNING
        VALUE(commands) TYPE string_table .
  PROTECTED SECTION.
  PRIVATE SECTION.
ENDCLASS.

CLASS zcl_secret_handshake_example IMPLEMENTATION.
  METHOD get_commands.
    DATA(x) = CONV xstring( code ).
    DATA(c) = VALUE string_table( ( `wink` ) ( `double blink` ) ( `close your eyes` ) ( `jump` ) ).
    DO 4 TIMES.
      CHECK x O CONV xstring( 2 ** ( sy-index - 1 ) ).
      IF x Z CONV xstring( 16 ).
        INSERT c[ sy-index ] INTO TABLE commands.
      ELSE.
        INSERT c[ sy-index ] INTO commands INDEX 1.
      ENDIF.
    ENDDO.
  ENDMETHOD.
ENDCLASS.

@mbtools try again, tho, I'm not sure if I got it correct, didnt add many unit tests
https://github.com/exercism/abap-test-runner/pull/148

works! ty


Bump CAPAS to 0.1.26 and fix network bugs

Issue #, if available:
Sometimes DNIs are not showing in order in ip -br link, causing dni and assigned ip pool doesn't match.
Description of changes:

Sort network interface by name.
Bump CAPAS to 0.1.26, to include the network fix from capas

Testing:

manually built a node ami using the new script, successfully created a cluster and confirmed DNIs were in order in the list.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve

/cherrypick release-0.16

/cherrypick release-0.16


[STORM-2037] debug operation should be whitelisted in SimpleAclAuthorizer

While enabling/disabling topology event logging, theres a call to assert-authorized-user with "debug" as the operation in ui/core.clj.
This needs to be whitelisted in SimpleAclAuthorizer to get it working in secure mode.

+1. We should be introducing a Enum class to capture these ACLs in one place and let the pluggable authorizers use that class instead of free-form strings.

merged into master and 1.x-branch


How to debug the "kvssink" plugin? What does "upload stream handle: 0" mean?

Gstreamer - kvssink plugin - example fails:  DEBUG - postReadCallback(): Wrote 8217 bytes to Kinesis Video. Upload stream handle: 0
I'm trying to stream a videotestsrc to kinesis video streams like this:
gst-launch-1.0 videotestsrc ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! x264enc ! h264parse! video/x-h264,stream-format=avc,alignment=au,width=640,height=480,framerate=30/1,profile=baseline ! kvssink stream-name="" access-key="" secret-key=""
I get this output:
`
Setting pipeline to PAUSED ...
log4cplus:ERROR could not open file ../kvs_log_configuration
INFO - createKinesisVideoClient(): Creating Kinesis Video Client
2023-01-23 16:21:17 [1995788032] INFO - heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001
2023-01-23 16:21:17 [1995788032] INFO - heapInitialize(): Creating AIV heap.
2023-01-23 16:21:17 [1995788032] INFO - heapInitialize(): Heap is initialized OK
2023-01-23 16:21:17 [1995788032] DEBUG - getSecurityTokenHandler invoked
2023-01-23 16:21:17 [1995788032] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is:<PHONE_NUMBER>767060917 Expiration: 0
2023-01-23 16:21:17 [1995788032] INFO - createDeviceResultEvent(): Create device result event.
2023-01-23 16:21:17 [1995788032] DEBUG - clientReadyHandler invoked
2023-01-23 16:21:17 [1995788032] INFO - try creating stream
2023-01-23 16:21:17 [1995788032] INFO - Creating Kinesis Video Stream video_stream_name_doni
2023-01-23 16:21:17 [1995788032] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream.
2023-01-23 16:21:17 [1995788032] INFO - logStreamInfo(): SDK version: 8867047d8d8f56645009ed73788a57f0a6107772
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): Kinesis Video Stream Info
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Stream name: video_stream_name_doni
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Streaming type: STREAMING_TYPE_REALTIME
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Content type: video/h264
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Max latency (100ns): 600000000
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Fragment duration (100ns): 20000000
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Key frame fragmentation: Yes
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Use frame timecode: Yes
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Absolute frame timecode: Yes
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Nal adaptation flags: 0
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Average bandwith (bps): 4194304
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Framerate: 25
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Buffer duration (100ns):<PHONE_NUMBER>
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Replay duration (100ns): 400000000
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Connection Staleness duration (100ns): 600000000
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Store Pressure Policy: 1
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	View Overflow Policy: 1
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Segment UUID: NULL
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Frame ordering mode: 0
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): Track list
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Track id: 1
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Track name: kinesis_video
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Codec id: V_MPEG4/ISO/AVC
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Track type: TRACK_INFO_TYPE_VIDEO
2023-01-23 16:21:17 [1995788032] DEBUG - logStreamInfo(): 	Track cpd: NULL
2023-01-23 16:21:17 [1995788032] INFO - writeHeaderCallback(): RequestId: 8f317d80-b36d-437a-9d44-b451b3737619
2023-01-23 16:21:18 [1815413824] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.674167064804E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","IngestionConfiguration":null,"KmsKeyId":"arn:aws:kms:us-west-2:149414536000:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-west-2:149414536000:stream/video_stream_name_doni/1674167064804","StreamName":"video_stream_name_doni","Version":"nEj3ocz154rjI04P3wVs"}}
2023-01-23 16:21:18 [1815413824] INFO - describeStreamResultEvent(): Describe stream result event.
2023-01-23 16:21:18 [1815413824] INFO - writeHeaderCallback(): RequestId: d33fe7b7-abeb-40af-893d-8ac932782d74
2023-01-23 16:21:19 [1805644864] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-56832325.kinesisvideo.us-west-2.amazonaws.com"}
2023-01-23 16:21:19 [1805644864] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event.
2023-01-23 16:21:19 [1805644864] DEBUG - getStreamingTokenHandler invoked
2023-01-23 16:21:19 [1805644864] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is:<PHONE_NUMBER>670999731 Expiration:<PHONE_NUMBER>3709551615
2023-01-23 16:21:19 [1805644864] INFO - getStreamingTokenResultEvent(): Get streaming token result event.
2023-01-23 16:21:19 [1805644864] DEBUG - streamReadyHandler invoked
2023-01-23 16:21:19 [1805644864] Stream is ready
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
INFO - kinesisVideoStreamFormatChanged(): Stream format changed.
2023-01-23 16:21:20 [1815413824] INFO - putStreamResultEvent(): Put stream result event. New upload handle 0
2023-01-23 16:21:20 [1815413824] DEBUG - Kinesis Video client and stream metrics
>> Overall storage byte size: 134217728
>> Available storage byte size: 134199959
>> Allocated storage byte size: 17769
>> Total view allocation byte size: 144080
>> Total streams elementary frame rate (fps): 25
>> Total streams transfer rate (bps): 33554432 (32768 Kbps)
>> Current view duration (ms): 0
>> Overall view duration (ms): 0
>> Current view byte size: 17729
>> Overall view byte size: 17729
>> Current elementary frame rate (fps): 25
>> Current transfer rate (bps): 33554432 (32768 Kbps)
DEBUG - postReadCallback(): Wrote 65524 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:21 [1640100928] INFO - writeHeaderCallback(): RequestId: c2f59aca-852d-5837-9ebd-32fb6919600a
DEBUG - postWriteCallback(): Curl post body write function for stream with handle: video_stream_name_doni and upload handle: 0 returned: {"EventType":"BUFFERING","FragmentTimecode":1674487280512,"FragmentNumber":"91343852333181516572604734057259660031733859197"}
2023-01-23 16:21:21 [1640100928] DEBUG - fragmentAckReceivedHandler invoked
2023-01-23 16:21:21 [1640100928] DEBUG - postReadCallback(): Wrote 65524 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:21 [1640100928] DEBUG - postReadCallback(): Wrote 65524 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 65524 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 65524 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 65524 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 5673 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8840 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8215 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8643 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8215 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8760 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8194 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8618 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8415 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 7823 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8239 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8226 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8215 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8232 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:22 [1640100928] DEBUG - postReadCallback(): Wrote 8216 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - postReadCallback(): Wrote 8633 bytes to Kinesis Video. Upload stream handle: 0
2023-01-23 16:21:23 [1640100928] DEBUG - postReadCallback(): Wrote 8263 bytes to Kinesis Video. Upload stream handle: 0
`
What do I do wrong?

Can you please update the title, right now it says [Question] but there are no details.
Looking at your logs everything seems to be working fine :).  Have you tried to open up the aws console and view the video, and/or inspect the IncomingBytes metric on the stream to see the bytes are coming in?  From the logging it looks like your stream name is video_stream_name_doni  in region us-west-2.

Hey hassanctech,
thank you for your fast response.
If i go to in the AWS console to Kinesis Video Streams page and select my stream (video_stream_name_doni), then there is in every monitoring chart the writing: "no data available". I didnt find "IncomingBytes" but there is a "PutMedia Incoming Data" this is also saying "no data available".
The CLI output says:
DEBUG - postReadCallback(): Wrote 8276 bytes to Kinesis Video. Upload stream handle: 0 2023-01-30 14:18:35 [1641178176] DEBUG - Kinesis Video client and stream metrics 	>> Overall storage byte size: 134217728 	>> Available storage byte size: 133570701 	>> Allocated storage byte size: 647027 	>> Total view allocation byte size: 144080 	>> Total streams elementary frame rate (fps): 30 	>> Total streams transfer rate (bps): 1551288 (1514 Kbps) 	>> Current view duration (ms): 0 	>> Overall view duration (ms): 2466 	>> Current view byte size: 11543 	>> Overall view byte size: 644027 	>> Current elementary frame rate (fps): 30 	>> Current transfer rate (bps): 1551288 (1514 Kbps)
What does Upload stream handle: 0 mean?

Hey hassantech,
you are right. I'm streaming into the wrong region. I need to stream to eu-central-1 . But now I need to figure out how to configure that.

Is there a documentation for all parameters the plugin (kvssink) can have?

It is not specific to kvssink but the standard way to get details about a GStreamer plugin (including all the parameters) is to simply run gst-inspect-1.0 kvssink.  Make sure your GST_PLUGIN_PATH is set to where it can find libgstkvssink.so.
I will also just state we do have official documentation for this:  https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/examples-gstreamer-plugin-parameters.html
Regardless if there is a discrepancy between that documentation and what the inspect command returns, the latter is the source of truth since it queries the plugin directly.
Also it looks like the issue is resolved so I will close this ticket.  If you need more help please open a new ticket.


Conan C/C++ Package Manager does not work.

after change the executable path like this "D:\Program Files\Python\Python38-32\Scripts\conan.exe". click the refresh button, vs always show that dialog：

Hi @hesihai,
Thanks for your issue.
As I understand, the dialog above is constantly popping up after changing the conan executable path?
Please give us more details to debug your issue, with the steps you followed so we can reproduce the issue from our side.
Thank you

Closing due to inactivity. If the problem persist please feel free to reopen the issue with more information. Thank you!


New Model Method last()

as first() method, last() method to determine last row with respecting useSoftDeleted property

Thank you for your PR. Friendly reminder - new features always need some tests.
Unfortunately, I don't think that the performance of the proposed solution is sufficient. If we had 100k records in the database, they would all be loaded into memory.
The easiest solution for this would probably be to use a subquery for the FROM part of the query, but the Builder class doesn't currently support this.


Fix OpenApi spec - add missing definitions

1. Why is this change necessary?
When accessing the generated OpenApi spec of a Shopware 6 shop, parts of the spec are missing.
The 'error' specification is missing the definition of the 'description' field, which leads to errors.
Also, the 'responses' section was missing from the 'components' section of the spec, although the file for it exists and is loaded. This missing 'responses' section results in an invalid OpenApi spec.
The provided changes fix both bugs and make the OpenApi spec valid again.
2. What does this change do, exactly?

Adds the missing 'description' definition to the 'error' schema in the OpenApiSchemaBuilder
Adds the missing 'responses' section in the 'components' section in the OpenApi Spec by a update to the array merge, to include not just the schema-components but also the responses

3. Describe each step to reproduce the issue or behaviour.

Create a new Shopware 6.5 project (with the production template)
Open the OpenApi Spec (<SHOP_DOMAIN>/store-api/_info/openapi3.json)

4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have rebased my changes to remove merge conflicts
[x] I have written tests and verified that they fail without my change
[X] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[X] I have read the contribution requirements and fulfil them.

🤖 Generated by Copilot at 2a3ffa2
This pull request improves the OpenApi core specification for the shopware/platform API by adding responses, descriptions and components. It also updates the changelog and removes unused code.

🤖 Generated by Copilot at 2a3ffa2

Add a changelog file to document the pull request (link)
Add a description property to the error schema in the OpenApiSchemaBuilder class to provide a human-readable explanation of the error (link)
Add a responses section to the OpenApi specification in the OpenApiFileLoader.php file to define the possible responses for each API endpoint (link)
Modify the components merging logic in the OpenApiFileLoader.php file to merge the entire components section recursively instead of only the schemas sub-section (link)
Remove an unused use statement from the OpenApiFileLoader.php file to optimize the code (link)

Adjusted the test class.

Added even more missing types & patterns back to the path files

Rebased all trunk branch changes and squashed all changes into a single commit. @Christian-Rades this can now be reviewed/merged by you.

Thank you for your contribution :tada: .
Sorry about the wait, it looks good to me. The PR will be merged shortly.

Thanks!


Preferences restructured. New "Event filters" header introduced

New "Event filters" header introduced to allow further filtering enhancements.
Old "Events" header renamed to "Event details" - this is exactly what it is after removing "filters" from it!
Now it's much clearer to see, where we will put other proposed options like:
#151 Add ability to hide calendar events
#122 Show events that ended in past X hours (configurable)
and similar...

When updating the strings please make sure to also update the strings.xml file on crowdin.

Now the widget with
"Show days without events" turned on and
"Past events background color" looks like this:

@mpost Ok, please grant me permission at Crowdin.com to update files. I joined the https://crowdin.com/project/plusonelabs-calendar-widget project.

@yvolk You should now be a manager on the project. :)
Let me know if you need help finding your way around. Atm you just upload the the new strings.xml file in english and people will be able to contribute translations.

@mpost Thank you, a while back I already noticed that you are using Crowdin.com for translation and arranged the same for AndStatus, so I have some experience :-)
BTW, you may be interested in using FB2 eBook format for a User Guide of Android application, see this discussion.

@yvolk Good to see that you have experience.
Also pretty cool how so many translaters jumped in immediatly to translate the missing strings after your mail. :)
What i don't likw about crowdin is how they map to the android language codes. You always have to copy the content to the right strings.xml files by hand. None the less the service itself is pretty nice.

@mpost Fo far I used only two-letters language codes for translations, so I didn't notice this problem in Crowdin.com. Maybe we can really rename in repository e.g. "values-bg" to "values-bg-rBG" and thus simplify our lifes?!


New installation doesn't appear to work.

Screenshots are attached. From first launch on a Windows 10 machine, this doesn't appear to work. Not sure why. Any ideas?

This seems to have been a local issue with extraction from the archive. I'm closing the issue to avoid wasting others' time!


DBZ-2140 Handle drop default value

https://issues.redhat.com/browse/DBZ-2140

Failing CI test has been fixed in parallel.


A main module field that could not be resolved

Hi,
I've got an error on compiling my app :

While trying to resolve module react-google-button from file /var/www/apps/BUM-P/Bump/Components/Search.js, the package /var/www/apps/BUM-P/Bump/node_modules/react-google-button/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/var/www/apps/BUM-P/Bump/node_modules/react-google-button/lib/index.js

I don't have directory named lib in the react-google-button dir, just a "src" dir.
Is it a bug ?

Yeah, it looks like it might be a bug from when the build setup was upgraded. We are only publishing dist and es builds, so that path should be updated to es/index.js like the module field specifies

Here a copy of a part of my package.json :
"react": "^16.10.2",     "react-dom": "^16.9.0",     "react-geocode": "^0.1.2",     "react-google-button": "^0.7.1",     "react-headroom": "^2.2.8",     "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.2.tar.gz",     "react-native-24h-timepicker": "^1.0.0",     "react-native-checkbox-form": "^1.1.5",     "react-native-deprecated-custom-components": "^0.1.2",     "react-native-gesture-handler": "~1.3.0",     "react-native-linear-gradient": "^2.5.6",     "react-native-map-clustering": "^2.0.2",     "react-native-maps": "^0.24.2",     "react-native-navigation": "^2.27.9",     "react-native-ratings": "^6.5.0",     "react-native-slider": "^0.11.0",     "react-native-swipe-gestures": "^1.0.4",     "react-native-unimodules": "^0.5.2",     "react-native-web": "^0.11.7",     "react-navigation": "^3.13.0",

Solved by v0.7.2 release

Solved by v0.7.2 release


Resize viewer

I want to resize OSD viewer according to browser size so how can I do this?

By default the viewer automatically resizes itself to the div that contains it. You can resize that containing div however you normally would. For instance, if it's the only thing in your window, you can give it this CSS: width: 100%; height: 100%;

Actually I need to resize my OSD viewer according to browser size while preserving same DZI level which means that if I open my viewer with DZI level 14 for example so I would like to keep the same zoom level.

I think you want to use preserveImageSizeOnResize.
See the options at: http://openseadragon.github.io/docs/OpenSeadragon.html#Options


Is not the action shall be named Copy Changed Line instead of Copy Deleted line when the line has changes

Testing #111544

forwarding since this is unrelated to wrapping.


'dev' environment not recognized after 'prod' migration - PostgreSQL

I'm submitting a...

[ ] Bug report

Current behavior
After a 'production' migration in POSTGRESQL, db-migrate doesn't recognize local migration
database.json

{
    "defaultEnv": "dev",

    "dev": {
        "driver": "DB_DRIVER",
        "user": "DB_USER",
        "password": "DB_PASSWORD",
        "host": "DB_HOST",
        "database": "DB_NAME"
    },

    "prod": {
        "use_env_variable": "DATABASE_URL",
        "ssl": {
            "rejectUnauthorized": false
        }
    }
}

Errors

When I use 'db-migrate up --config src/config/database.json' I get this error: [ERROR] Error: Environment(s) 'dev' not found.
When I use 'db-migrate up --config src/config/database.json -e dev' I get this error: [ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: no pg_hba.conf entry for host "xxxxx", user "xxxxx", database "xxxxx", SSL off

Where in the docs is this use_env_variable property documented? Does it even work?
Also, I suppose driver, user, etc. are all taken literally, and are not supposed to be obtained from env-vars, right?


[1.11] Bump dcos-net

High-level description
Bump dcos-net
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS-38600 Deadlock when SSL sockets are simultaneously sending/receiving data and buffers are full
DCOS-37703 Erroneous values in Service Addresses stats

Related tickets (optional)
Other tickets related to this change:
Checklist for all PRs

[x] Added a comprehensible changelog entry to CHANGES.md or explain why this is not a user-facing change: no user-facing change.
[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here: none
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[x] Test Results: [link to CI job test results for component]
[x] Code Coverage (if available): [link to code coverage report]

https://github.com/dcos/dcos-net/pull/65
https://github.com/dcos/dcos-net/pull/67
https://github.com/dcos/dcos-net/compare/0f269553af3e7a45b03503e186c84f22ef31ef4e...dfa5da1b92b2756f19308d380cdb900d3b8f337d
https://circleci.com/gh/dcos/dcos-net/571
https://codecov.io/gh/dcos/dcos-net/commit/dfa5da1b92b2756f19308d380cdb900d3b8f337d

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and review process
What is the review process and when will my changes land?
All PRs require 2 approvals using GitHub's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label [Ready For Review]

@mesosphere-mergebot bump-ee

@orsenthil could you please help me with mergebot/enterprise/ statuses here?

@mesosphere-mergebot bump-ee


Address scheduling/connection errors (CloudRun create/run scheduling, SSLEOFError broken pipe error)

Add the backoff package v2.2.1 (link):

Add delay & retries between CloudRun API create call and run call, to ensure the job is started correctly
Retry if initial start_job request encounters an SSLEOFError, which tends to happen on the first request after a long period of requests.  Manually starting a dummy job, letting it fail, and starting a new job has usually worked so far, so this formalizes that retry process.

Explicitly close all db connections on app context teardown. Will hopefully prune connections before they go stale, which could ideally avoid the above problems altogether.  (That said, I'm not sure the above is a db connection issue...)

Quick update: the catch-and-retry on SSLEOFError successfully caught and handled the broken pipe error in a new ECHO job in the QA environment.  This doesn't address the root problem, but it should stop jobs from auto-failing going forward.


fix(logs): add missing Msg calls to logs

Description:
Log calls that don't include .Msg() or .Msgf() never get logged.
This change adds these where I could find they were missing.
Demo: https://go.dev/play/p/zaZ58Teo7y3

Testing done:

See Go playground link above

Affected area:

Functional Area

New Functionality
[ ]

CI System
[ ]

CLI Tool
[ ]

Certificate Management
[ ]

Control Plane
[ ]

Demo
[ ]

Documentation
[ ]

Egress
[ ]

Ingress
[ ]

Install
[ ]

Networking
[ ]

Observability
[ ]

Performance
[ ]

SMI Policy
[ ]

Security
[ ]

Sidecar Injection
[ ]

Tests
[ ]

Upgrade
[ ]

Other
[X]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? No

Did you notify the maintainers and provide attribution?

Is this a breaking change? No

Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? N/A

Good catch, @nojnhuh. I wonder if we should spend some time in getting a regex put together and grep through the codebase. This is definitely significant and we should try to catch all occurrences of this.

This is what I put together to find these (using ripgrep):
rg '^\s*log\.' | rg -v '\.$' | rg -vF Msg

Which is roughly "lines starting with log. that don't end in . (since Msg was broken out into the next line in the instances I checked) that don't contain Msg."
That does throw a few false-positives.


Unable to access new map's settings

currently using 1.3.1.
Steps to reproduce:

Create new map with "+add" button. (does not matter - private or corporation)
Switch to new map
Try to access "settings" button from the right side Map menu

button does nothing - window with map settings does not appear.
No error in any log.
Button "settings" works well for older maps (created months ago).

I can't reproduce - it works as expected for me.
Check your console output in developer tools when you click the button. Are there any errors?

First I manually expanded map table with:
ALTER TABLE map MODIFY COLUMN slackWebHookURL varchar(255);
Then i modified mapmodel.php so it would not try to revert it to 128 chars. I clicked "set up tables" but somehow column stayed "nullable".
So i fixed it with:
ALTER TABLE map MODIFY COLUMN slackWebHookURL varchar(255) NOT NULL;
Deleted problematic maps and now newly created maps don't have that problem.
I think we can close this one - Exodus is working on discord support out of box for 1.3.2 anyway :)


az login TimeoutError: [WinError 10060]

Describe the bug
I tried authenticating with az login but it doesn't seem to work. There is an timeoutError everytime I try to login! I don't use any proxies and just followed the instructions from Microsofts installation guide and installed the azcli with the msi-package. A browser is installed but with or without the operator "--use-device-code" the command will timeout. I also tried to use it within my wsl2 Ubuntu20.04 instance but there I'll receive the same error. But within the docker-container provided the interactive login seems to work, is there something I don't see?
Command Name
az login
Errors:
The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='login.microsoftonline.de', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0450D0E8>, 'Connection to login.microsoftonline.de timed out. (connect timeout=None)'))
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 174, in _new_conn
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 96, in create_connection
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 86, in create_connection
TimeoutError: [WinError 10060] Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 382, in _make_request
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 1010, in _validate_conn
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 358, in connect
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 179, in _new_conn
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x0450D0E8>, 'Connection to login.microsoftonline.de timed out. (connect timeout=None)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 439, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 783, in urlopen
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 755, in urlopen
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/retry.py", line 574, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.de', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0450D0E8>, 'Connection to login.microsoftonline.de timed out. (connect timeout=None)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 152, in login
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 148, in login_with_device_code
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 107, in _msal_app
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1525, in __init__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 456, in __init__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 100, in __init__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 160, in tenant_discovery
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 555, in get
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 542, in request
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 655, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 504, in send
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='login.microsoftonline.de', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0450D0E8>, 'Connection to login.microsoftonline.de timed out. (connect timeout=None)'))

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az login --use-device-code --debug

Expected Behavior
Environment Summary
No Proxy-Server!
Windows-10-10.0.19045-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.40.0

Additional Context
nslookup login.microsoftonline.de looks okay to me.
C:\Users>nslookup login.microsoftonline.de
Server:  fritz.box
Address:  <IP_ADDRESS>

Nicht autorisierende Antwort:
Name:    www.tm.bf.prd.aadg.akadns.net
Addresses:  <IP_ADDRESS>
          <IP_ADDRESS>
          <IP_ADDRESS>
          <IP_ADDRESS>
Aliases:  login.microsoftonline.de
          prdbf.aadg.msidentity.de

Please go through this issue and see if it helps
https://github.com/Azure/azure-cli/issues/21514

thanks for the quick response but as you can see in the "Additional context" my network connection works fine. Ping also works without any problems

Any update on this? I am facing the same problem (also network connection is working)

Duplicate of #23775


Add support for reverting INDArray features and labels in MultiNormalizerStandardize

This functionality was missing in the MultiDataSet normalizer. Quite handy if you want to denormalize a model's outputs.

Build triggered. sha1 is merged.

Build started sha1 is merged.

Build finished. 1 tests run, 1 skipped, 0 failed.

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/448/Build result: FAILURE[...truncated 394.22 KB...]	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)	at hudson.model.ResourceController.execute(ResourceController.java:98)	at hudson.model.Executor.run(Executor.java:404)Caused by: java.io.FileNotFoundException: https://api.github.com/repos/deeplearning4j/nd4j/statuses/a14024345396730be719ed0f69a7992f32adc37a	at sun.reflect.GeneratedConstructorAccessor41.newInstance(Unknown Source)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890)	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885)	at java.security.AccessController.doPrivileged(Native Method)	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)	at org.kohsuke.github.Requester.parse(Requester.java:524)	at org.kohsuke.github.Requester._to(Requester.java:251)	... 12 moreCaused by: java.io.FileNotFoundException: https://api.github.com/repos/deeplearning4j/nd4j/statuses/a14024345396730be719ed0f69a7992f32adc37a	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)	at org.kohsuke.github.Requester.parse(Requester.java:514)	... 13 more


Minor code cleanup in StorageFile

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Small Improvement

for #5371 issue.


Use sentence case throughout titles and headings

The problem
This is now in the style guide, although hidden under the reference to the Wikipedia manual of style.
Suggestions
Sentence case implies that only the first letter of a title or heading is to be capitalized. This needs to be done consistently throughout all the documentation. Done already for #1945 (which is closed), but there are zillions of other documents with the same problem.

What would count as proper names when doing this? So from NativeCall.pod6 we've got:
Basic use of Pointers
and:
Library Paths and Names
and in numerics.pod6:
Printing Rationals
and:
Available Allomorphs
Should types be considered proper names?
Perl 6 is a proper name as that's in the guide, I think.

I've been looking at this a bit more and proposing adding this, or something similar, to the style guide:
It would mean changing all of 'method method-name' to 'Method method-name' in the Types section (eg https://docs.perl6.org/type/Any
That has been so methodical, I'm not sure that there's not a different rule being followed, which could lead to friction.
I'm happy to take this on, but I want to make sure I'm not going to end up in editing tennis with someone...

All titles, subtitles and headers (=TITLE, =SUBTITLE, =head[1..Inf]) should be written in sentence case.
Sentence case has a capitalised first word with all following words fully lowercased, except for words which are proper nouns.
If a word is a proper noun, it should be written with the expected casing.
A proper noun is a noun that, in its primary application, refers to a unique entity.
Example: "Difference between methods and functions".
Methods and functions are common nouns and so do not have leading upper case letters unless at the start of a sentence.
Example: "What is Perl 6 and what is Rakudo Star?"
Perl 6 and Rakudo Star are unique entities and so are proper nouns.
Examples of proper nouns:
The names of most computer languages (Perl 5, Perl 6, Python, Lisp...)
The names of people (Larry Wall, Guido van Rossum...)
Functions, attributes, routines and methods whose signature has a specific letter casing.
Example: "Method ACCEPTS"
Example: "Method Str"
Don't use function, attribute, routine or method names as the first word in any headline.
Example: "Add - a method" # WRONG! Don't use this as a headline as the sentence case rule has changed it
Example: "Method add" # RIGHT! It's clear that the method is called 'add'
Titles, subtitles and headers should not end in a full-stop/period. Ideally they should not end with question marks or exclamation marks either.

In the case of method, it's also the name of a type declaration, method. So it makes sense to keep it in lowercase.

Ok, great. That's me thinking out loud to make sure I don't go off on a huge tangent...I'll do some of the 'Language docs that seem fairly clear cut.

Thanks!


FLAKE: python_linux_opt_asyncio_py36_asyncio_test_aio_unit_channel_ready_test_TestChannelReady.py36_asyncio.test_aio.unit.channel_ready_test.TestChannelReady

https://source.cloud.google.com/results/invocations/d1a06fc9-e469-4248-80a4-8a2cc73ad9de/targets/github%2Fgrpc%2Frun_tests%2Fpython_linux_opt_asyncio%2Fpy36_asyncio.test_aio.unit.channel_ready_test.TestChannelReady/tests
++ dirname /var/local/git/grpc/tools/run_tests/helper_scripts/run_python.sh
+ cd /var/local/git/grpc/tools/run_tests/helper_scripts/../../..
++ realpath py36_asyncio/bin/python
+ PYTHON=/var/local/git/grpc/py36_asyncio/bin/python3.6
++ pwd
+ ROOT=/var/local/git/grpc
+ /var/local/git/grpc/py36_asyncio/bin/python3.6 /var/local/git/grpc/src/python/grpcio_tests/setup.py test_aio
running test_aio
Running       unit.channel_ready_test.TestChannelReady.test_channel_ready_blocked
Running       unit.channel_ready_test.TestChannelReady.test_channel_ready_success
[95mTesting gRPC Python...
[0m[91mFAILURE       unit.channel_ready_test.TestChannelReady.test_channel_ready_blocked
[0m[92mSUCCESS       unit.channel_ready_test.TestChannelReady.test_channel_ready_success
[0m2 tests finished:
	1 successful
	1 unsuccessful
	0 skipped
	0 expected failures
	0 unexpected successes
Interrupted Tests:
	[]

Errors/Failures:
[91munit.channel_ready_test.TestChannelReady.test_channel_ready_blocked[0m
[1mtraceback:[0m
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/var/local/git/grpc/src/python/grpcio_tests/tests_aio/unit/_test_base.py", line 31, in wrapper
    return loop.run_until_complete(f(*args, **kwargs))
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/var/local/git/grpc/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.py", line 62, in test_channel_ready_blocked
    test_constants.SHORT_TIMEOUT)
  File "/usr/local/lib/python3.6/unittest/case.py", line 203, in __exit__
    self._raiseFailure("{} not raised".format(exc_name))
  File "/usr/local/lib/python3.6/unittest/case.py", line 135, in _raiseFailure
    raise self.test_case.failureException(msg)
AssertionError: TimeoutError not raised

[1mstdout:[0m
None
[1mstderr:[0m
None

Unexpected successes: []
Test failure

On 8 cores Kokoro Linux VM, this test case passes 1k runs with Bazel. The issue might be 1) in the native test framework; 2) a rare race that only happen in slower machine.
INFO: Elapsed time: 724.961s, Critical Path: 20.64s
INFO: 2010 processes: 2010 linux-sandbox.
INFO: Build completed successfully, 1013 total actions
//src/python/grpcio_tests/tests_aio/unit:channel_ready_test              PASSED in 6.4s
  Stats over 1000 runs: max = 6.4s, min = 5.4s, avg = 5.5s, dev = 0.1s

I am observing this:
https://source.cloud.google.com/results/invocations/6ced9ebe-f658-482f-b760-fc0c3d7178d5/targets/grpc%2Fcore%2Fpull_request%2Flinux%2Fgrpc_python_bazel_test/log

======================================================================
FAIL: test_channel_ready_blocked (__main__.TestChannelReady)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/.cache/bazel/_bazel_root/d2dc70c3d9da3fab488ba0dcbbd35051/execroot/com_github_grpc_grpc/bazel-out/k8-fastbuild/bin/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.runfiles/com_github_grpc_grpc/src/python/grpcio_tests/tests_aio/unit/_test_base.py", line 31, in wrapper
    return loop.run_until_complete(f(*args, **kwargs))
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/root/.cache/bazel/_bazel_root/d2dc70c3d9da3fab488ba0dcbbd35051/execroot/com_github_grpc_grpc/bazel-out/k8-fastbuild/bin/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.runfiles/com_github_grpc_grpc/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.py", line 62, in test_channel_ready_blocked
    test_constants.SHORT_TIMEOUT)
AssertionError: TimeoutError not raised

----------------------------------------------------------------------
Ran 2 tests in 2.015s

Seems to be happening a bit more frequently since yesterday, whereas before that the tests are mostly green:  https://fusion.corp.google.com/projectanalysis/summary/KOKORO/prod%3Agrpc%2Fcore%2Fpull_request%2Flinux%2Fgrpc_python_bazel_test

Haven't seen this in a long time. Closing. Might be fixed by https://github.com/grpc/grpc/pull/23007.


Bug in "Account Update"

On Account Update request, the name object will be overwritten by the firstname.
Payload:
payload: {
  name: Joi.object().keys({
    first: Joi.string().required(),
    middle: Joi.string().allow(''),
    last: Joi.string().required()
  }).required()
}

Update:
var update = {

  $set: {
    name: request.payload.name.first // must be 'request.payload.name'
  }
};

Line

Good find. That does look like a bug.


Desktop_Server Receive inputs

Desktop Server needs to receive commands from Viewer and translate to native inputs.

In Progress

This is about 75% complete

Completed
https://github.com/smasherprog/Remote_Access_Library/pull/49


Device networked buttons & Device networked doors

About the PR
Adds device networked buttons that use DeviceList into the game. Upon being pressed, the button will send a single Enum to any devices that are within its device list. This also device networks doors, as a use case for these device networked buttons, allowing you to toggle bolts and toggle open doors.
This also obsoletes a component method, SetBoltsWithAudio, as one was added into AirlockSystem that also checks if a door's bolt wires were cut. This also fixes a bug that was in WiresSystem that wasn't found, as nothing really used the buggy method (until now)
This is different from ApcNetSwitch, as this instead sends an enum to any devices that it's linked to, rather than toggling a bool and then sending that new state. This is abusable if an entity is not configured correctly, however, as without the DeviceList component, the component that powers the button can broadcast an event to every single device that it can reach.
Screenshots
https://user-images.githubusercontent.com/76629141/193950722-5644ce42-140d-4957-aa0f-ddd5b69e456c.mp4
Changelog
:cl:

add: NanoTrasen has begun to ship buttons that open and close doors, and lock them to your stations! Finally, your crews will no longer have to set emergency access to all doors, making every critical area that needs to be quickly exited but not entered a public space.

it probably wouldn't be a bad idea to have signal linking for all doors as well (as you did mention, signal linking does check for if the user has access before being able to link)
there has been discussion about how device network integration should be handled in the near future, e.g., illiux's design doc on device networking, but i'm not sure which would be preferred for dealing with all devices that can be interacted with remotely (see: AI role) - illiux's design goals also discussed the idea of authentication, but for something like this, it probably would be nicer to just add access tags or something to send over to a door

will you resolve conflicts and handle reviews? i know some are ongoing discussions but the construction graph one isnt

reopen once you are free


devcon: Made DumpDeviceDriversCallback be __stdcall.

I've noticed the recent activity in this repository and was wondering if you would accept some pull requests for better MinGW support.  Here is the first one.  My commit message explains it pretty well.  Thanks!

I also have several changes I'd like to make for usbview, but I'll wait to hear back from you before putting effort into making another pull request.

Would it be better to use CALLBACK directly?

Yes, I think so, actually.  Thanks for the response; I'll update the pull request some time.

I changed the pull request and tested that I can still build devcon with MinGW.  I have not tested Visual Studio.

Thanks!


feat: Circular and Backward type support

Support backward, and circular type thanks to @ggrandi04 (see #1)

LETS GOOO!!!!


Clear tx build -> sign -> submit flow

The end of each step should have a clear button leading you to the next stage.

Does this PR (which is now live on production) implement what is desired or is this issue about something else?
https://github.com/stellar/laboratory/pull/71

yeah. is good now.


Lights block lockers from being pushed by them.

Looks like their bounding box sticks out half a tile, stopping the locker dead in its tracks. Not the player though.

fixed by physics rewrite


[library] Use reset in sqrt to represent running state.

This amends the square root problem described in #750. Example program and data (should output 4):
import "primitives/core.futil";
import "primitives/binary_operators.futil";
import "primitives/math.futil";
component main() -> () {
  cells {
    @external(1) M = std_mem_d1(32,1,1);
    const0 = std_const(32,16);
    sq_0 = std_reg(32);
    sqrt0 = sqrt(32);
  }
  wires {
    group let0 {
      sq_0.in = sqrt0.out;
      sq_0.write_en = 1'd1;
      let0[done] = sq_0.done;
    }
    group upd0<"static"=1> {
      M.addr0 = 1'd0;
      M.write_en = 1'd1;
      M.write_data = sq_0.out;
      upd0[done] = M.done;
    }
  }
  control {
    seq {
      invoke sqrt0(in=const0.out)();
      let0;
      upd0;
    }
  }
}

{
  "M": {
    "data": [
      [1]
    ],
    "format": {
      "numeric_type": "bitnum",
      "is_signed": false,
      "width": 32
    }
  }
}

The Cholesky benchmark also works now. Closes #750.

Pending #761 submission, this should be good.

@rachitnigam Any final comments? This fixes the latching, but doesn't touch any blocking stuff. I opened another issue for that in #754.

Cool, merge it


diagnostics should get updated after a concept is implemented

Expected behavior
The specification should not show the newly created concept as unimplemented.
The diagnostics of the concept file where the new concept is created should work seamlessly.
Actual behavior

The step is still marked as unimplemented. However navigation to the newly created concept is working as expected.
Adding a concept to an existing/new file does not highlight unimplemented steps.

Version
Gauge version: 0.9.8.nightly-2018-03-14
Commit Hash: b285ea3

Plugins
-------
csharp (0.10.2.nightly-2018-03-12)
html-report (4.0.4.nightly-2018-02-23)
java (0.6.7.nightly-2018-03-12)
js (2.2.0.nightly-2018-03-14)
python (0.2.4.nightly-2018-03-12)
ruby (0.4.3.nightly-2018-03-12)

Bug on story - https://github.com/getgauge/gauge-vscode/issues/192

Since the diagnostics of unimplemented step is displayed, the  user is able implement the same step text multiple times.

Steps I fallowed to replicate:

add a new step * abc  in spec file(* abc marked as undefined)
implement the * abc  as concept in a new concept file (* abc not marked as undefined)
add a new step to concept file and the newly added step is marked as undefined, which implies  concept file's diagnostics are working.

Isn't this the expected behaviour?
if not can you please give some steps to replicate.

This happens on OS Windows.
Observation
This happens when I open the spec file in Windows  with a double click.
(With a single click, when you navigate between spec/cpt/impl files the original file is closed. However with a double click, the original file is open)

This happens on OS Windows.

Fix should be available in gauge nightly >= 06/04/18


(chore): Fix git conflicts with line endings

Closes #7546

[x] I have read the Contributing Guide.

(I think you accidentally added hwp-converter.json to this PR branch)

(I think you accidentally added hwp-converter.json to this PR branch)

Yes, it was half-consciously. I was checking and fixing the index for line endings and came across this file  which is checked in with 755 modifiers instead of 644 like other files. But I will revert this to keep the PR cleaner.

If you need to specify these filetypes explicitly, shouldn't .bat and .cmd be listed as well? (The command processor needs these endings to interpret the files I believe.)

I'm almost sure that we don't need to specify them if newer Git versions are used. But not sure how older GIt versions behave - will the be able to auto-detect all text files? Not sure how to deal with this, need your support.
1⃣ Remove all text file concretizations from .gitattributes and just keep * text=auto eol=crlf
2⃣ Add concretizations for .bat and .cmd files to .gitattributes

I cleaned up a bit. Hopefully text=auto instead of just text will make it work like expected 🙂


Using $ionicPlatform.ready()  in module.js before plugins are initialized

What do you think about returning a promise in the module which uses $ionicPlatform.ready() to make sure the plugins are not used until the dom is ready?
angular.module('ngCordova', [ngCordova.plugins])
  .factory('ngCordova', function ($q, $rootScope, $ionicPlatform) {
    var deferred = $q.defer();

    $ionicPlatform.ready(function () {
      console.log('ionic is ready');
      $rootScope.$apply(deferred.resolve);
    });

    return {
      ready: function () {
        return deferred.promise;
      }
    };
  })
  .run(function (ngCordova) {});

Then each plugin uses the ngCordova service service like so:
.factory('Notification', function ($q, ngCordova) {
  return {
    alert: function (message, alertCallback, title, buttonName) {
       ngCordova.ready().then(function () {
          navigator.notification.alert(message, alertCallback, title, buttonName);
       });
    }
  };
});

Any news about this ? Adding the "ready" condition to the plugins ?

Same as @JerryBels, there is any news about it?

+1 ?

@pbernasconi blogged about adding this on the Ionic blog back in December 2014, but it's still hasn't been added. Would love to hear some news.

+1 to what simpixelated said

+1 for @emertechie abstract view suggestion

+1

Here's a nice work around I found for this recently:
http://stealthcode.co/multiple-calls-to-ionicplatform-ready/

I've wasted hours here, why would all the examples show ,
ie.  if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
        }

If none of the plugins are loaded on $ionicPlatform.ready ?   when my app starts I need to register notifications, I do this on run and use $ionicPlatform.ready - but I'm seeing the behavior where where window.cordova isn't defined

I used @romgar's solution posted here. https://github.com/driftyco/ng-cordova/issues/8#issuecomment-48703042

@emertechie thanks for the code!
It worked using $routeProvider too:
$routeProvider         .when('/home', {             templateUrl: 'views/home.html',             controller: 'homeController',             resolve: {               cordova: function($q) {                  var deferred = $q.defer();                  document.addEventListener("deviceready", function () {                    console.log('ionic.Platform.ready');                    deferred.resolve();                  });                  return deferred.promise;               }             }         })


Use fields from http.DefaultTransport in imagestore

Description

http.DefaultTransport has some useful properties set that are not
present in a zero-value transport struct.
Specifically it sets up a function for fetching proxy environment
variables.
When we moved from using the default transport to creating our own to
solve https://bugzilla.redhat.com/show_bug.cgi?id=2034686 we also
removed the proxy environment variable handling as a side-effect.
How was this code tested?

This was verified to fix the proxy issue in @chadcrum 's test environment.
Assignees

/cc @CrystalChun
/cc @danielerez
Links

https://bugzilla.redhat.com/show_bug.cgi?id=2038903
Checklist

[x] Title and description added to both, commit and PR
[x] Relevant issues have been associated
[x] Reviewers have been listed
[x] This change does not require a documentation update (docstring, docs, README, etc)
[ ] Does this change include unit tests (note that code changes require unit tests)

/cherry-pick release-ocm-2.4


Replace React Helment with Gatsby Head

Summary
There was a warning within the console that recommended we use the built-in Gatsby head component as of Gatsby v4.19.0. This should reduce the amount of third-party dependencies we need. For the most part it also seems like it will reduce the amount of direct package size as well.
Documentation for Gatsby Head
Warning produced from the run command:
warn gatsby-plugin-react-helmet: Gatsby now has built-in support for modyfing
the document head. Learn more at https://gatsby.dev/gatsby-head

I saw this as well. Would it be just replacing the react-helmet component with gatsby-head?


Not able to Access the Composer REST Server

Hi,
I am following steps given in https://ibm-blockchain.github.io/interacting/
for step 4. Start and Access the Composer REST Server
It is expecting businessnetworkid , here i am giving business network name which i used while using composer playground.
I am able to create rest server successfully.
vishwasrao@vishwasrao-desktop:~/Desktop/projects/blockchain/hyperledger/ibm-container-service/cs-offerings/free/scripts$ ./create/create_composer-rest-server.sh agentbroker Preparing yaml file for create composer-rest-server Creating composer-rest-server pod Running: kubectl create -f /home/vishwasrao/Desktop/projects/blockchain/hyperledger/ibm-container-service/cs-offerings/free/scripts/../kube-configs/composer-rest-server.yaml deployment "composer-rest-server" created Creating composer-rest-server service Running: kubectl create -f /home/vishwasrao/Desktop/projects/blockchain/hyperledger/ibm-container-service/cs-offerings/free/scripts/../kube-configs/composer-rest-server-services.yaml service "composer-rest-server" created Composer rest server created successfully vishwasrao@vishwasrao-desktop:~/Desktop/projects/blockchain/hyperledger/ibm-container-service/cs-offerings/free/scripts$
But when trying to access it using
http://YOUR_PUBLIC_IP_HERE:31090/explorer/
I am not able to load explorer
I am getting message
This site can’t be reached
My Business Network Name is : agentbroker
If I want to give business network id , where can i find it?
I am not doing any changes & just following steps given.
Thanks,
Vishwas

I have same issue from a clean deployment into new cluster. It appears to be set up correctly but get the same error as Vishwas reported above. The Playground seems to work correctly.

https://github.com/IBM-Blockchain/ibm-blockchain.github.io/issues/40
It is the same issue as this one. We will try to post the updated instructions ASAP.

Hi All,
I got it resolved :)
let me share some thoughts here.

While creating REST server it asks for business network ID, to be frank i do not know from where I can get this id. But while going through github repo i come to know commit comment ans business network name. So I tried with business network name.
So may be we need to change docs or command while creating REST server.
I was doing mistake of creating business network for Web Browser and not on hlfv1.
When you open Composer first time, it will have two options for creating business network.
one with Web Browser and below that for hlfv1, Common mistake can be creating creating business network on web browser and then creating rest server for that,

Let me know if its clear or we need to do some changes in docs
Thanks,
Vishwas

I suggest an update in docs to make it more clear that where this business network identity is defined when you use Composer. Assuming it's the Composer UI field "Give your new Business Network a name:" that is relevant? And second, while Composer details difference between Web Browser and hlfv1, this tutorial should just state "use hlfv1" to be as accurate as possible.

https://github.com/IBM-Blockchain/ibm-blockchain.github.io/pull/41/
Instructions have been updated. Feel free to re-open if the problem arises again.

still the same error, i followed every instruction and it doesn't work.
When I type "kubectl get svc"

 NAME                                TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                           AGE
blockchain-ca                     NodePort    <IP_ADDRESS>    <none>        30054:30054/TCP                   7h
blockchain-orderer             NodePort    <IP_ADDRESS>   <none>        31010:31010/TCP                   7h
blockchain-org1peer1        NodePort    <IP_ADDRESS>    <none> 30110:30110/TCP,30111:30111/TCP   7h
> blockchain-org2peer1     NodePort    <IP_ADDRESS>    <none> 30210:30210/TCP,30211:30211/TCP   7h
> composer-playground    NodePort    <IP_ADDRESS>    <none>        8080:31080/TCP                    7h
> composer-rest-server     NodePort    <IP_ADDRESS>    <none>        3000:31090/TCP                    3h
> kubernetes                       ClusterIP   <IP_ADDRESS>           <none>        443/TCP                           7h

Is there a solution for this?  I have a similar problem that can't reach the rest server
"This site can’t be reached"

Never mind.  Figured it out.

make sure to use "hlfv1" not Web Browser option.
do this:  ./create/create_composer-rest-server.sh --business-network-card admin@animaltracking-network

where originally I did not have "admin@" in the argument.


Queues - show competitions using the queue - Update

@ mention of reviewers
@Didayolo
A brief description of the purpose of the changes contained in this PR.
Solved problem in #1317
Checklist

[x] Code review by me
[x] Hand tested by me
[x] I'm proud of my work
[ ] Code review by reviewer
[ ] Hand tested by reviewer
[ ] CircleCi tests are passing
[ ] Ready to merge

Nice, thank you for the quick fix