Stackdriver Monitoring internal error HTTP/2

We are testing the stackdriver monitoring class and seeing a large amount of the exceptions attached on and off in our environments.
com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException:
INTERNAL: HTTP/2 error code:
INTERNAL_ERROR Received Rst Stream at
com.google.api.gax.grpc.ExceptionTransformingCallable$ExceptionTransformingFuture.onFailure(ExceptionTransformingCallable.java:108)

exception.txt

@garrettjonesgoogle is there someone on the gRPC team who might have better insight here?

@zsiegel I think we will need more details to investigate. Can you provide information on the environment you're running in, and the versions of your dependencies? Also, could you describe the conditions that this happens in more specifically?

We are running this on a number of nodes in a GKE cluster.
We have 3 web services running and we use an end of request handler to calculate the request timing and send them to stackdriver as a custom metric.
We inserted the middleware on just our /health endpoints to test out the dependency which was the latest in maven central at the time of testing (com.google.cloud:google-cloud-monitoring:0.17.2-alpha). We then let the Google Cloud load balancers hit our health endpoints as the normal do and watched our metrics (the load balancers in gcloud hit the endpoint 2-3 times a second)
After a few minutes of metrics we notice a ton of the stacktraces above. We are not doing anything to batch this data up we are simply logging a single Int64Value with a timestamp to StackDriver.
Let me know if you need anything else.

I don't know if you can provide the exact code you use to call StackDriver, but would you be able to at least provide a distilled version? It would help to know both the API method and types of parameters you are passing in.

sure can. see the near complete method call below.
        long endTime = System.currentTimeMillis();
        long responseTime = Math.max(1, endTime - startTime);

            TimeInterval interval = TimeInterval.newBuilder()
                                                .setEndTime(Timestamps.fromMillis(System.currentTimeMillis()))
                                                .build();

            TypedValue value = TypedValue.newBuilder()
                                         .setInt64Value(responseTime)
                                         .build();

            Point point = Point.newBuilder()
                               .setInterval(interval)
                               .setValue(value)
                               .build();

            List<Point> dataPoints = Collections.singletonList(point);

            Metric metric = Metric.newBuilder()
                                  .setType(CUSTOM_METRIC_DOMAIN + "/" + env + "/response_time")
                                  .build();

            Map<String, String> resourceLabels = new HashMap<>();
            resourceLabels.put("project_id", LoggingOptions.getDefaultProjectId());
            MonitoredResource resource = MonitoredResource.newBuilder()
                                                          .setType("global")
                                                          .putAllLabels(resourceLabels)
                                                          .build();

            TimeSeries timeSeries = TimeSeries.newBuilder()
                                              .setMetric(metric)
                                              .setResource(resource)
                                              .addAllPoints(dataPoints)
                                              .build();

            CreateTimeSeriesRequest request = CreateTimeSeriesRequest.newBuilder()
                                                                     .setNameWithProjectName(ProjectName.create(LoggingOptions.getDefaultProjectId()))
                                                                     .addAllTimeSeries(Collections.singleton(timeSeries))
                                                                     .build();

                metricsClient.createTimeSeries(request);

Thanks! I'll see if I can reproduce this.

I tried out code similar to yours and I observed the error once. Since this is a purely auto-generated client and our other auto-generated clients don't have this issue, this seems to be a server-side problem.

Hmm thats quite interesting... So if it indeed is a server side issue how would you go about reporting this to the Google Cloud / Stackdriver team? @garrettjonesgoogle

+1
I'm seeing similar errors. It had been working fine for months. Errors started appearing consistently a few days ago:
"Received RST_STREAM with error code 2"
{
"code": 13,
"metadata": {
"_internal_repr": {}
},
"note": "Exception occurred in retry method that was not classified as transient"
}
I'm using the google monitoring node api:
https://github.com/googleapis/googleapis/tree/master/google/monitoring/v3
I thought I was updating too quickly, so I've throttled way below the quota but still get errors.
It is Alpha, so I've not been complaining.

+1 I am having the same errors.
I only wanted to send 20 metrics in a for-loop and this error showed up after 4th attempt...
Any update on what we should do in our end to avoid it?
Thanks.
Dewei

Just FYI...
As of now, this error happens so frequently that I cannot even sent metrics any more.
Exception in thread "main" com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Rst Stream
 <dependency>
        <groupId>com.google.cloud</groupId>
        <artifactId>google-cloud-monitoring</artifactId>
        <version>0.19.0-alpha</version>
        <exclusions>
            <exclusion>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

private static void sendDataPoints(final MetricServiceClient client, String projectId, String metricType,
String monitoredResourceType, Map<String, String> resLabels,
long endTimeMs, TypedValue... values) throws Exception {
// Prepares an individual data point
TimeInterval interval = TimeInterval.newBuilder()
.setEndTime(Timestamps.fromMillis(endTimeMs))
.build();
    Point[] points = getPoints(interval, values);

    ProjectName name = ProjectName.create(projectId);

    // Prepares the metric descriptor
    Metric metric = Metric.newBuilder()
        .setType(metricType)
        .putAllLabels(resLabels)
        .build();

    // Prepares the monitored resource descriptor
    MonitoredResource resource = MonitoredResource.newBuilder().setType(monitoredResourceType).build();

    // Prepares the time series request
    TimeSeries timeSeries = TimeSeries.newBuilder()
        .setMetric(metric)
        .setResource(resource)
        .addAllPoints(Arrays.asList(points))
        .build();

    List<TimeSeries> timeSeriesList = new ArrayList<>();
    timeSeriesList.add(timeSeries);

    CreateTimeSeriesRequest request = CreateTimeSeriesRequest.newBuilder()
        .setNameWithProjectName(name)
        .addAllTimeSeries(timeSeriesList)
        .build();

    // Writes time series data
    client.createTimeSeries(request);
    System.out.println("Done writing time series value.");
}

FYI:
Here is some more info...
This error only happens to the CustomMetric that have been explicitly created.
If I don't send the create request and just let it be "automatically" created, then the subsequent send metric requests are successfully.
I am guessing maybe the resource allocation logic at the server side for explicitly created CustomMetric has some problem.
Thanks.
Dewei

Hi,
I have been experiencing the same issue since yesterday. My goal is to publish custom metrics to stackdriver. I am using
<dependency>
       <groupId>com.google.cloud</groupId>
       <artifactId>google-cloud-monitoring</artifactId>
       <version>0.8.0</version>
 </dependency>

      // Prepares the metric descriptor
        Metric metric = Metric.newBuilder()
                .setType(fullyQualifiedMetricType)
                .putAllLabels(metricLabels)
                .build();

        // Prepares the monitored resource descriptor
        Map<String, String> resourceLabels = buildResourceLabels();
        MonitoredResource resource = MonitoredResource.newBuilder()
                .setType(AWS_EC2_INSTANCE)
                .putAllLabels(resourceLabels)
                .build();

        // Prepares the time series request
        List<Point> pointList = generateDataPoints(metricValue);
        TimeSeries timeSeries = TimeSeries.newBuilder()
                .setMetric(metric)
                .setResource(resource)
                .addAllPoints(pointList)
                .build();

        CreateTimeSeriesRequest request = CreateTimeSeriesRequest.newBuilder()
                .setName(getFullyQualifiedProjectName())
                .addAllTimeSeries(Lists.newArrayList(timeSeries))
                .build();

        Retryer.retryQuietly(() -> {
            try (MetricServiceClient client = MetricServiceClient.create(settings)) {
                client.createTimeSeries(request);
                return null;
            }
        });

private List<Point> generateDataPoints(double metricValue) {
        TimeInterval interval = TimeInterval.newBuilder()
                .setEndTime(Timestamps.fromMillis(System.currentTimeMillis()))
                .build();

        TypedValue value = TypedValue.newBuilder()
                .setDoubleValue(metricValue)
                .build();

        return Lists.newArrayList(Point.newBuilder()
                .setInterval(interval)
                .setValue(value)
                .build());
    }

I see the same exception
com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException:
INTERNAL: HTTP/2 error code:
INTERNAL_ERROR Received Rst Stream at
com.google.api.gax.grpc.ExceptionTransformingCallable$ExceptionTransformingFuture.onFailure(ExceptionTransformingCallable.java:108)

When I tried the same approach with 0.17.2-alpha it worked perfectly. Since it's alpha and we want to use this code in production I do not want to use it. Can someone please help me with this issue since I cannot make any progress.
 <dependency>
            <groupId>com.google.cloud</groupId>
            <artifactId>google-cloud-monitoring</artifactId>
            <version>0.17.2-alpha</version>
        </dependency>

Thank you

I get this error in 0.21.1-alpha too:
Matching log/response time stamp:1501745788790. Message is hidden from client.
com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Rst Stream
	at com.google.api.gax.grpc.ExceptionTransformingCallable$ExceptionTransformingFuture.onFailure(ExceptionTransformingCallable.java:108)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:53)
	at com.google.common.util.concurrent.Futures$4.run(Futures.java:1126)
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:902)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:813)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:677)
	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:466)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:442)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426)
	at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:512)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:429)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:544)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:117)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Rst Stream
	at io.grpc.Status.asRuntimeException(Status.java:543)
	... 15 common frames omitted

My class for sending metrics looks like this:
@Service
public class GoogleMetricClient implements MetricClient {

    private final MetricServiceClient metricServiceClient;
    private final MonitoredResource resource;
    private final ProjectName projectName;

    private final Metric storeEntityTimeMetric;
    private final Metric findExistingTimeMetric;
    private final Metric createNewEntityTimeMetric;
    private final Metric updateTimestampTimeMetric;

    public GoogleMetricClient() throws IOException {
        String projectId = ServiceOptions.getDefaultProjectId();
        projectName = ProjectName.create(projectId);
        MonitoredResource.Builder resourceBuilder = MonitoredResource.newBuilder()
            .setType("global")
            .putLabels("project_id", projectId);
        metricServiceClient = MetricServiceClient.create();
        resource = resourceBuilder.build();
        storeEntityTimeMetric = Metric.newBuilder()
            .setType("custom.googleapis.com/my-service/total_store_entity_time")
            .putLabels("unit", "ns")
            .build();
        findExistingTimeMetric = Metric.newBuilder()
            .setType("custom.googleapis.com/my-service/find_existing_entity_time")
            .putLabels("unit", "ns")
            .build();
        createNewEntityTimeMetric = Metric.newBuilder()
            .setType("custom.googleapis.com/my-service/create_new_entity_time")
            .putLabels("unit", "ns")
            .build();
        updateTimestampTimeMetric = Metric.newBuilder()
            .setType("custom.googleapis.com/my-service/update_entity_time")
            .putLabels("unit", "ns")
            .build();
    }

    private TimeSeries createTimeSeries(Metric metric, long value) {
        TimeInterval interval = TimeInterval.newBuilder()
            .setEndTime(Timestamps.fromMillis(System.currentTimeMillis()))
            .build();
        TypedValue typedValue = TypedValue.newBuilder()
            .setInt64Value(value)
            .build();
        Point point = Point.newBuilder()
            .setInterval(interval)
            .setValue(typedValue)
            .build();
        return TimeSeries.newBuilder()
            .setMetric(metric)
            .setResource(resource)
            .addPoints(point)
            .build();
    }

    private void sendMetricTimeSeries(Collection<TimeSeries> timeSeries) {
        CreateTimeSeriesRequest request = CreateTimeSeriesRequest
            .newBuilder()
            .setNameWithProjectName(projectName)
            .addAllTimeSeries(timeSeries)
            .build();
        metricServiceClient.createTimeSeries(request);
    }

    private void sendMetricTimeSeries(TimeSeries timeSeries) {
        CreateTimeSeriesRequest request = CreateTimeSeriesRequest
            .newBuilder()
            .setNameWithProjectName(projectName)
            .addTimeSeries(timeSeries)
            .build();
        metricServiceClient.createTimeSeries(request);
    }

    @Override
    public void sendTotalStoreEntityTiming(long nanoSeconds) {
        sendMetricTimeSeries(createTimeSeries(storeEntityTimeMetric, nanoSeconds));
    }

    @Override
    public void sendCreateNewEntityTiming(long findExistingNanoSeconds, long sendCreateNewNanoSeconds) {
        sendMetricTimeSeries(
            Arrays.asList(
                createTimeSeries(createNewEntityTimeMetric, sendCreateNewNanoSeconds),
                createTimeSeries(findExistingTimeMetric, findExistingNanoSeconds)));
    }

    @Override
    public void sendUpdateTimestampOnEntityTiming(long findExistingNanoSeconds, long sendUpdateNanoSeconds) {
        sendMetricTimeSeries(
            Arrays.asList(
                createTimeSeries(updateTimestampTimeMetric, sendUpdateNanoSeconds),
                createTimeSeries(findExistingTimeMetric, findExistingNanoSeconds)));
    }

    @Override
    public void close() throws Exception {
        metricServiceClient.close();
    }
}

Getting the same
com.google.api.gax.grpc.GrpcApiException: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
with 0.22.0

Getting this error on a dataflow job
com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR Received Rst Stream

I'll close this for now due to inactivity. Please reopen if the issue persist.


Added findObservationReferenceRange

Coverage increased (+0.002%) to 94.599% when pulling b34c8e458fed69978b55a9b4678579401ef1e498 on cody-find-observation-reference-range into 9950fcfe3ff107b801c6f3959720e8a288c98f92 on main.


Add restart utility function.

This PR adds the restart(name) function on Api<K> where K is one of Deployment, DaemonSet, StatefulSet or ReplicaSet.
It also adds the complementary method to the kube crate.
To implement this functionality, I chose to add chrono to the kube-core crate, as the alternatives involved lots of code and it's already used in the bigger crate.
This fixes #630 by implementing the necessary functionality.
I hope this PR is acceptable.
Thank you.

Hello again! Thanks a lot for doing this.
I think this looks perfectly appropriate! Started CI.
Just a bit of double checking here. I was cross-referencing a bit with kubectl it does seem like they use a fieldManager with a strategic merge patch.
Now, I don't know why they have chosen to do this (it could be a fairly arbitrary choice), but it would be good to make sure that the strategy we use won't interfere with other annotations, so if you are able to double check that (in a quick test with restart on a deploy with more labels to see that other labels persist), that would be great.

Ah, for some reason I have to keep approving since you're a first time contributor. Anyway, if just rustfmt fails here I'll just merge it. There's a follow-up system that fixes any issues.

Ah, it's fixed. Perfect. Thank you very much. I'll get it into the next release probably sometime this week :-)

Nice! Thanks for merging.
I'll be glad when the next release gets tagged! :)

Woohoo!


Fix/#299 move shapes with keyboard

Now if there is an activeElement instanceof an Input or TextArea the keyboard-displacement is blocked, so keyboard events still working as expected. Otherwise, and if there is a selected element, the keyboard-displacement hook works and triggers the event.preventdefault

Now we dont need the document. comprobations. We check the isEditing property of each shape to know if it can be displaced with keyboard.
Closes #299
I didn't know there was another Issue opened so I think #320 will be closed too.


Add cosmosdb_sql_databases module

A separate module allows the cosmos account to be defined in a different
landing zone to the database. For example you could define a shared cosmos
db account with a private endpoint in level 3 and project-specific sql
databases inside that account in level 4 landing zones. This allows you to
nicely separate shared and project components.

Hi guys, I've updated the code to use the resource-block pattern as requested. And below is an example configuration, which can also be seen in https://github.com/Azure/caf-terraform-landingzones/pull/261
Level 3 - application infrastructure lz
landingzone = {
  backend_type        = "azurerm"
  global_settings_key = "connectivity"
  level               = "level3"
  key                 = "application_infra"
  tfstates = {
    connectivity = {
      level   = "lower"
      tfstate = "connectivity.tfstate"
    }
  }
}

resource_groups = {
  cosmos_re1 = {
    name   = "rg-cosmos-shared"
    region = "region1"
  }
}

cosmos_dbs = {
  cosmosdb_account_shared = {
    name                      = "cosmos-shared"
    resource_group_key        = "cosmos_re1"
    offer_type                = "Standard"
    kind                      = "GlobalDocumentDB"
    enable_automatic_failover = "true"

    consistency_policy = {
      consistency_level = "Session"
    }

    geo_locations = {
      # Primary location (Write Region)
      primary_geo_location = {
        prefix            = "customid-101"
        region            = "region1"
        zone_redundant    = false
        failover_priority = 0
      }

      # failover location
      failover_geo_location = {
        region            = "region2"
        failover_priority = 1
      }
    }

    # Optional
    enable_free_tier                = false
    enable_multiple_write_locations = false
  }
}

Level 4 - project lz
landingzone = {
  backend_type        = "azurerm"
  global_settings_key = "application_infra"
  level               = "level4"
  key                 = "project"
  tfstates = {
    application_infra = {
      level   = "lower"
      tfstate = "application_infra.tfstate"
    }
  }
}

cosmosdb_sql_databases = {
  project_database = {
    name                 = "cosmosdb-sql-project"
    cosmosdb_account_key = "cosmosdb_account_shared"
    lz_key               = "application_infra"
    throughput           = 400
    containers = {
      container1 = {
        name               = "container1"
        partition_key_path = "/partition_key_path"
        throughput         = 400
      }
    }
  }
}

Hi @arnaudlh can I help to progress this in any way?

hi @bobalong79, sorry it took longer that expected, I think it makes sense and would love to see it generalized not only for sql but also other cosmosdb technologies. Testing it now!

hi @bobalong79 I added the missing examples, code for examples, CI for examples and improved the association mechanisms in d960b6c9cac21502375be1a461c34690d8190ecd. It is all in commit which I merged into main as your PR. If you have free time, would be cool to have it for other cosmosdb tech :)
thanks for the PR and thanks for your contribution.

Thanks @arnaudlh! Will look to add for the other cosmos tech at some point.


AIR cross compile: fixup CMakeList and scripts

Fixup an issue where sysroot is not imported when building air-runtime as an external project to AIR.

This PR makes mlir-air import libxaie path from mlir-aie. Depends on this PR from mlir-aie, which exports libxaie paths: https://github.com/Xilinx/mlir-aie/pull/549


aurelia-bundler recent versions not published to npm

If I run npm install aurelia-bundler --save-dev I only get v0.2.1 which doesn't work with the latest version of aurelia.  I need to install the version from GitHub.
In and of itself, this isn't an issue, but seeing as everything else in aurelia is in npm, it makes sense to me to make the current versions available there, too.

@michaelmalonenz I don't have that problem. Just managed to install v0.3.2 (I was on 0.2.1) with npm install aurelia-bundler --save-dev.
Version 0.3.2 is published to npm three weeks ago.

Ok, now I'm confused - if I specify the version  npm install<EMAIL_ADDRESS>it all works.  Weird.


Storybook story for US Core Patient and Implantable Device

Required for #3002 and #3001

Completed by https://github.com/medplum/medplum/pull/3617


fix: PAUL clusters have wrong cluster name, row mislabfor MADE needs to be added

Describe the bug
Noticed there are some mistakes on the paul clusters:

cluster names are not right (will update this in the reply of this issue thread)
some row numbers in paul-f5 is wrong

And got the names for the MADE clusters:

MADE-F0A - Bogden 3
MADE-F0B - The Void
MADE-F0C - Kaer morhen
MADE-F0D - Gallifrey

To Reproduce

Expected behavior
No response
Relevant log output
No response
Version of software
v0.30
Environment
Live (https://s42.app)
Additional context
it has been discussed in discord general channel that handling the issues of incorrect cluster names and seats will be taken care in this one issue
Code of Conduct

[X] I agree to follow this project's Code of Conduct

so here is the list of cluster names of PAUL, but apparently for Narnia, in front of the door, Hogwarts are labeled as the name(...?)

so I'll just go with the hogwarts


Make the projects section responsive

The project section currently looks like this on a phone-

this should be made responsive.

@rasmita404 thanks you can go ahead.


Java version shipped with android studio not runnable

Describe the bug
When running a gradle builds in android-studio I get:
Process 'command '/nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java'' finished with non-zero exit value 1

Running this very same executable in a shell gives me:
$ /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java
bash: /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java: No such file or directory

which I only ever encountered when the executable is compiled for the wrong architecture or not some shared libraries are missing. But:
$ file /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java
/nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, not stripped

$ ldd /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java
	linux-vdso.so.1 (0x00007ffe2191e000)
	libpthread.so.0 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0 (0x00007fba9ffdf000)
	libjli.so => /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/../lib/amd64/jli/libjli.so (0x00007fba9ffc9000)
	libdl.so.2 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libdl.so.2 (0x00007fba9ffc4000)
	libc.so.6 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6 (0x00007fba9fe0e000)
	/lib64/ld-linux-x86-64.so.2 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007fbaa0002000)

So I am a bit lost here...
To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:Enteee/Universe.git
cd Universe
git reset --hard 827a81d0b862ca596cb783478361c59b879e0f77
nix-shell
android-studio
build

Expected behavior
Java binary should run
Additional context
Add any other context about the problem here.
Metadata

system: "x86_64-linux"
host os: Linux 4.14.136, NixOS, 19.09pre188002.e275a6c2f38 (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.09pre188002.e275a6c2f38, nixos-hardware, nixpkgs-19.09pre187222.002b853782e"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

I might be on the complete wrong path here, but when I did compare the java binary in android-studio with the one installed in my user environment I found that the one major difference is that the user environment java has a dependency on
libz.so.1 => /nix/store/iiymx8j7nlar3gc23lfkcscvr61fng8s-zlib-1.2.11/lib/libz.so.1 (0x00007f51c05ce000)

And I have had similar issues I never quite got to the bottom of, involving libz with another binary. Strange enough that java version which loads libz dynamically seems to work just fine..

$ ldd $(which java)
	linux-vdso.so.1 (0x00007ffdcaf4e000)
	libpthread.so.0 => /nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libpthread.so.0 (0x00007f1792c6f000)
	libz.so.1 => /nix/store/iiymx8j7nlar3gc23lfkcscvr61fng8s-zlib-1.2.11/lib/libz.so.1 (0x00007f1792c50000)
	libjli.so => /nix/store/4ybi3p3b1llb54kh043s0p6pnp8qisyf-openjdk-8u202bga-jre/lib/openjdk/jre/lib/amd64/jli/libjli.so (0x00007f1792c3d000)
	libdl.so.2 => /nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libdl.so.2 (0x00007f1792c38000)
	libc.so.6 => /nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libc.so.6 (0x00007f1792a82000)
	/nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/ld-linux-x86-64.so.2 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007f1792c92000)

$ ldd /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java
	linux-vdso.so.1 (0x00007ffef4efb000)
	libpthread.so.0 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0 (0x00007f5a7df62000)
	libjli.so => /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/../lib/amd64/jli/libjli.so (0x00007f5a7df4c000)
	libdl.so.2 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libdl.so.2 (0x00007f5a7df47000)
	libc.so.6 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6 (0x00007f5a7dd91000)
	/lib64/ld-linux-x86-64.so.2 => /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007f5a7df85000)

That java executable is run in an FHS environment (it's own chroot env, where lib paths and such look like a normal linux and don't have to be patched). Inside that environment, the java executable runs fine (the problem is the interpreter), you can see this in the segment you pasted:
$ file /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java
/nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, not stripped

And you can probably just run it inside the android-studio terminal.
Why it doesn't compile is probably a different issue, it could be for example env variables like JAVA_HOME or such leaking which gradle might pick up, or a gradle.properties or other gradle config misconfiguration, or your SDK installs might not be "nix compatible" (I'm not certain non-nix android-studio SDK installs can be shared).
My suggestion is to try with a fresh android-studio config (eg .Android-Studio*) and clean env and probably a dummy project and see if it still fails.
Also, those reproduction steps are nice, however not exactly reproducible because "with import  {}" depends on your system configuration, it would be better to provide a fixed revision of that, or just use/mention the latest 19.03 or whichever channel.

thank you for your answer. Just for my understanding: how can I enter such a FHS environment? I thought when I am running nix-shell I am already in this environment.

My suggestion is to try with a fresh android-studio config (eg .Android-Studio*) and clean env and probably a dummy project and see if it still fails.

I will try that and report back.

Also, those reproduction steps are nice, however not exactly reproducible because "with import {}" depends on your system configuration, it would be better to provide a fixed revision of that, or just use/mention the latest 19.03 or whichever channel.

I am sorry for this, I thought with the root channel Informtaion: nixos-19.09pre188002.e275a6c2f38, this would be the case.

It's not usually meant for user-interaction, but you could enter it like this (or use the built-in shell in android-studio):
[nix-shell:~/nixpkgs]$ cat $(which android-studio)
#!/nix/store/xfghy8ixrhz3kyy6p724iv3cxji088dx-bash-4.4-p23/bin/bash
/nix/store/86dvnjwrfs9vvwdn77gvs2r6b0ni6jjg-android-studio-stable-<IP_ADDRESS>-fhs-env/bin/android-studio-stable-<IP_ADDRESS>-fhs-env /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/bin/studio.sh

[nix-shell:~/nixpkgs]$ /nix/store/86dvnjwrfs9vvwdn77gvs2r6b0ni6jjg-android-studio-stable-<IP_ADDRESS>-fhs-env/bin/android-studio-stable-<IP_ADDRESS>-fhs-env
android-studio-stable-<IP_ADDRESS>-fhs-env-chrootenv:ec@reidar:~/nixpkgs$ /nix/store/nzk9d8lrf834rpnf6kyfnx9p2llhxf1g-android-studio-stable-<IP_ADDRESS>/jre/bin/java -version
openjdk version "1.8.0_152-release"

Ah yes, that channel tag is enough, so I take everything back :)

After I removed all my profile relevant files I am having a hard time reproducing this myself. I'll poke a bit around, but if I can't get the error to trigger again I'll close this issue later.

can not reproduce this anymore. I still struggle to run my application, because libgdx comes with a per-compiled version of libwjgl which does not find it's X-dependencies. But that's probably an other issue which might be fixable by some LD_PRELOAD / patchelf magic..

I have a similar issue for me, build tools inside the android sdk downloaded by Android Studio fail to find libraries, among which zlib (libz) is prominent. Trying to find a way here to make things work.

Asked here- https://discourse.nixos.org/t/help-understanding-linking-in-nixos/4359


Feature/codecoverage

merge codecoverage into develop

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@ffbd81d). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             develop   #74   +/-   ##
=======================================
  Coverage           ?   56%
=======================================
  Files              ?    13
  Lines              ?   839
  Branches           ?    85
=======================================
  Hits               ?   473
  Misses             ?   365
  Partials           ?     1

Continue to review full report at Codecov.

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


stm32h7 rcc: Sync h7x7xx and h7x3xx. Changes are relevant to both

Summary
stm32h7 rcc: Sync h7x7xx and h7x3xx. Each of the differences is relevant to it's counterpart.
Impact
Correct features supported on both platforms.
Testing
CI

@btashton - Thank you!


Toggle Button UPGRADE🤘

Design:
Reference
NOTE: Please store all assets locally
UX:
Unlike the current toggle button, the transition should take place in whichever area of the toggle button the mouse is clicked rather than only on a specific side

I want to work on this issue.

I want to work on this issue.

I am closing this for now. There is a major issue with the nav bar. This can be taken over only after that

I am closing this for now. There is a major issue with the nav bar. This can be taken over only after that


docs: refine Required with Ellipsis examples to use (...) in Query()

I came across the same issue #12313 @bowenerchen has reported 2 weeks ago.

@Kludex could you please review this?

default=... should be replaced by just the removal of it.


Fix ingress-controller version and version digests

@arkoc : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

thank you for the feedback!
This feedback was addressed in a separate commit and will be available soon.
#please-close


PSR-18

We have compatibility with PSR-7 and PHP-HTTP, and can probably implement PSR-18 without any fuss.

It would certainly be a good thing for those rare occassions where, for instance, cURL is not fully available.

Well, actualy I just realized that Gt\Fetch\Http implements Http\Client\HttpClient which in turn extends the PSR-18 Psr\Http\Client\ClientInterface already.
But if there was PSR-18 client injected as dependency, it would be really nice, because you can then get rid off all the mess with curl, and have users inject their preferred implementation of psr 18 client and this library can focus on the async part. Making it async http client over any psr 18 client. This seems much more flexible then an async http client that also, along the way, provides unnecesarily complicated implementation of psr 18 client.

It's been some time since I've added functionality to this repo, but I'm currently working on branch 89-async to make many improvements, one of which is the change to making @slepic's suggestion: Fetch is now compatible with other Http\Client\HttpClient implementations, but does not try to implement it itself.
Will be released to v2 once I've completed the other compatibility improvements.
Thanks and happy new year!

It's been some time since I've added functionality to this repo, but I'm currently working on branch 89-async to make many improvements, one of which is the change to making @slepic's suggestion: Fetch is now compatible with other Http\Client\HttpClient implementations, but does not try to implement it itself.
Will be released to v2 once I've completed the other compatibility improvements.
Thanks and happy new year!


Facet entries should have default order

Either by count or by entry

Order top 10 count values by count.
For the remainder, sort alphabetically.

Just go by count for now.


Clarify description of Remove-MpThreat cmdlet

Clarify description.
"Removes active threats" as in attempts to remediate a detected threat or as in removes the "threat" from the list of active threats and has nothing to do with trying to clean, quarantine, or otherwise remediate?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ad3e29ff-868d-6624-0f65-2c2ae830bcfa
Version Independent ID: ff8a389b-a31c-7178-9cb2-3d6142f3a595
Content: Remove-MpThreat (Defender)
Content Source: docset/winserver2022-ps/defender/Remove-MpThreat.md
Product: w10
Technology: windows
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

@vci-steven Thank you for your feedback. That is right, It removes the "threat" from the list of active threats. It does not clean, quarantine, or remediate.
Hope this helps!
Thanks
Sri

Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Add Syphilis to dashboard

FRONT END PULL REQUEST
Related Issue

part of #7421

Changes Proposed

Add Syphilis to disease constants so that it will be an option in dashboard drop down
Add logic that only populates dropdown with Syphilis as an option if feature flag is set to true

Testing

Configure the syphilisEnabled flag to true in your application.yaml file and the dashboard dropdown should Include Syphilis as an option. The opposite logic can be tested with setting the flag to false.

Updated with at @emyl3's catch -- the only code that is really left in this PR after the merge conflict with #7539 is the tests for the dashboard properly loading syphilis.


⚠ Bofrost.be has degraded performance

In 1df80f7, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1459 ms

Resolved: Bofrost.be performance has improved in 663b20a after 7 minutes.


Needed JS?

In the README you've mentioned some needed JS files I couldn't find! What are those?

They will be automatically included when you install via pip


[WIP]TokenRequest feature documentation

Place holder

@mikedanese When you have some time, could you please flesh out the docs on the TokenRequest feature?

@mikedanese  -- removing this from the milestone per this comment: https://github.com/kubernetes/features/issues/542#issuecomment-420212071
/milestone clear

/close

My understanding is that we have until Friday for docs. What am I missing?

/reopen
/assign @awly @liggitt @cjcullen


defaultActions: slim ActionFiles and ActionDirectories

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

8 of 8 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 57.98%

Totals

Change from base Build<PHONE_NUMBER>3:
0.03%

Covered Lines:
2997

Relevant Lines:
5169

💛  - Coveralls


Move to Babel 6 (WIP)

Work In Progress
see #46 for previous discussion
Checklist

[x] migrate build step to Babel 6
[x] update tests
[ ] fix Program.exit

Seems like the fixtures just need updating, is this something that is done manually? Seems like a really fragile set of tests but I guess I am not sure what else you would do.
What's happening with pragram.exit?

Looking into updating the expected test file for modern.  For the most part, the changes mirror those from classic with one exception.  The actual output is no longer producing the code that calls _wrapComponent.  I am fairly new to both babel and this react-transform plugin, but the call to _wrapComponent seems necessary for functionality.   If that is a true statement, does anyone know what changes are necessary in the plugin itself to make this work?
Actual
var LikelyComponent = (function () {
  function LikelyComponent() {
    _classCallCheck(this, LikelyComponent);
  }

  _createClass(LikelyComponent, [{
    key: "render",
    value: function render() {}
  }]);

  return LikelyComponent;
})();

Expected
var LikelyComponent = (function () {
  function LikelyComponent() {
    _classCallCheck(this, _LikelyComponent);
  }

  _createClass(LikelyComponent, [{
    key: "render",
    value: function render() {}
  }]);

  var _LikelyComponent = LikelyComponent;
  LikelyComponent = _wrapComponent("_$LikelyComponent")(LikelyComponent) || LikelyComponent;
  return LikelyComponent;
})();

@chicoxyzzy @danderu thanks for tackling this! can you describe the outstanding issue with program.exit? 6fcecf7 seems to be working on my end...

@justingreenberg you are welcome! I don't know what does the "program.exit" issue means. It seems to be ok for me.

@danderu were you able to verify that the current code that is being output is functionally correct?  See my previous comment about wrapComponent not being called for the modern test

Pursuant to my previous comments, I am pretty sure that the decorators added in the ClassExpression transformation are not being handled correctly for the modern test case.  It is possible that this is an issue with the .babelrc missing needed plugins or with Babel 6.  See https://phabricator.babeljs.io/T2700 and https://phabricator.babeljs.io/T2648

Hi @kainoa21 , I didn't put transform-decorator plugin in .babelrc since decorator in babel is not supported yet. see https://github.com/gaearon/babel-plugin-react-transform/issues/46#issuecomment-154833064 and https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-decorators/src/index.js#L83 .

@TaopaiC, then in order for this to work I think we will need to refactor the ClassExpression transform to not use decorators.

@kainoa21 I'll be available to check what you are pointing out tomorrow, thanks! :)

@kainoa21 you are correct.
I wrote a version without using decorator. The classes in modern test are wrapped now. PR: chicoxyzzy/babel-plugin-react-transform#5
Generated
var LikelyComponent = (function () {
  var _LikelyComponent = (function () {
    function LikelyComponent() {
      _classCallCheck(this, LikelyComponent);
    }

    _createClass(LikelyComponent, [{
      key: "render",
      value: function render() {}
    }]);

    return LikelyComponent;
  })();

  return _wrapComponent("_$LikelyComponent")(_LikelyComponent) || _LikelyComponent;
})();

Expected in babel-5
var LikelyComponent = (function () {
  function LikelyComponent() {
    _classCallCheck(this, _LikelyComponent);
  }

  _createClass(LikelyComponent, [{
    key: "render",
    value: function render() {}
  }]);

  var _LikelyComponent = LikelyComponent;
  LikelyComponent = _wrapComponent("_$LikelyComponent")(LikelyComponent) || LikelyComponent;
  return LikelyComponent;
})();

Thanks @TaopaiC, this looks good to me.

Heh, I finally caught up to where you all are and arrived at the same place so that is good :)

Is anyone still working on this?
does anybody found any different successful method of hot reloading react with babel6?

@liorkesos Hot reloading with Babel 6 should work using this branch, I'm using it locally successfully. You'll need to pull this branch down and run npm build

I don't sure this branch works proper. Can someone confirm it works ok?

@liorkesos @chicoxyzzy tests are passing and transforms are working on gaearon/react-transform-boilerplate#64 using this branch and babel 6 (w/ hot module reloading, error catching)

Can someone else confirm it works ok?

Yep, working for me locally with a similar config to @justingreenberg. Assuming this just needs the Program.exit change before it's merged?
(I'd help out, but still pretty new to React/Babel, so not sure I can help productively there.)

Thank you for the effort! Closing in favor of #50 from one of Babel's creators. :stuck_out_tongue:

cool!


HttpClient close leak.

Related issue:https://github.com/personium/personium-client-java/issues/49

It seems that the problem was that the TCP connection was not closed because the caller did not issue a disconnect instruction, so it seems that the problem was solved when Connection: close was specified for the header on the engine side.
This will be a provisional response.

Released v1.5.19


Updated table of contents

Added outline of topics into table of content
Moved table of contents into 101functions folder and renamed file to index.md

@anthonychu,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:warning: Validation status: warnings

File
Status
Preview URL
Details

sandbox/snippets/101functions/index.md
:warning:Warning
View
Details

sandbox/snippets/101functions.md
:white_check_mark:Succeeded

sandbox/snippets/101functions/index.md

Line 66: [Warning] Invalid file link:(~/snippets/101functions/cosmosdb/#using-documentclient).
Line 67: [Warning] Invalid file link:(~/snippets/101functions/cosmosdb/#retrieve-a-single-document-by-id).
Line 68: [Warning] Invalid file link:(~/snippets/101functions/cosmosdb/#retrieve-a-list-of-documents).

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


Relationship Card update

Change from the below card

To something like

I suggest to place the Origin Name and its Primary Key in the same column on the left and the Destination and Origin Foreign Key in the same column on the right.

Removed highlighting altogether since it's not really a table listing.


请问可以给一个在ubuntu无网络环境下的portal安装包吗？开箱即用的。感谢

Feature description
工作环境需要在ubuntu命令行下写代码，但是没有网络。
Additional information
No response

i think u can and should pack up yourself.

We won't provide any portable installer for nvimdots because it just an organization of config files about plugins and their configs and requires many system-wide dependencies to work. You can do it by yourself according to following steps.

Download the require dependencies like deb or executable binaries matching your Ubuntu version first.
Create archives of ~/.local/share/nvim and ~/.config/nvim and upload them to your Ubuntu machine.
Decompress them to the corresponding directory.

More info may helps:
https://www.reddit.com/r/neovim/comments/lncqxl/remote_neovim_like_vscode/
https://github.com/jbyuki/instant.nvim


Fixes for animation registry

Fixes
https://github.com/AvaloniaUI/Avalonia/issues/11594
https://github.com/AvaloniaUI/Avalonia/issues/11634

You can test this PR using the following package version. 11.0.999-cibuild0036125-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]


Change color of SVG

It would be nice to be able to change the fill color of an SVG. For instance:
var svg = svgView.createView({
    image: "/thing.svg",
    color: "#fff"
});

Should display the SVG as white, even if the original SVG source is not white.

svg file have multiples elements with colors. Which elements do you think the module should fill ?

I was thinking that it would recursively change all elements to the specified color. If that doesn't make sense, can the elements be exposed so that I can manually change the color of each one myself?
My use case is pretty simple - I have an SVG that is completely black, and I sometimes want to change it to be white.

this is not the goal of this module, but i'll look into it as soon as i have some time. But why d'ont you use a custom font for this or simply use 2 svg file  with different colors ?

I could use multiple SVGs but it seems a shame to do that and add the extra size to the app when I can do it programmatically.
I originally tried custom fonts but it turns out they are broken on Android in TiSDK 4.x (see TIMOB-18968).

i will look into it as soon as i have some time for it.

@yissachar look at https://github.com/falkolab/Ti.SVGProduct/blob/master/example.js#L35

:+1:  :)


[DS-3397] Fix error when getting bitstream policies in REST API (6.x version)

Port/Cherry-pick of #1729 to 6.x

Merging. Approved in #1729...this is an identical cherry-pick


Double decoded req.query

In "next" branch, reg.query got decoded twice!!!
using this as server:
const polka = require('polka')
polka()
.get('/', (req, res) => {
  res.end(JSON.stringify(req.query))
}).listen(8181, err => {
  if (err) throw err
  console.log(`Polka listening on port 8181`)
})

and "curling" it:
curl -v "http://<IP_ADDRESS>:8181/?i=TU10Z&n=smsitfix2&Q=%2b393383123549"

we got:
{"i":"TU10Z","n":"smsitfix2","Q":"<PHONE_NUMBER>49"}

instead of:
{"i":"TU10Z","n":"smsitfix2","Q":"+393383123549"}

may be @polka/url must not decode eagerly the url ...

Ah, you're right. Thanks!
The @olka/url decodes it initially, and then passing req.query (string) thru querystring.parse will re-decode it again.
I'll push out a fix for this tonight :)

Took the opportunity to basically rewrite @polka/url & made it much faster in the process, haha
Closing this since it's pertinent to next specifically, and there's now a new version up.
Thanks!


[MAR-70] feat: Add image crop modal to EditUserForm in apps/web/src/components/settings/EditUserModalForm.tsx

Let the user crop an uploaded image file for their profilePhoto in 'EditUserForm' before saving via a pop-up modal. Image must be in a 1:1 format and a max of 500px wide.
You can install and use the ReactCrop library, an example of usage can be found below:
import ReactCrop from 'react-image-crop'
import 'react-image-crop/dist/ReactCrop.css'

const [crop, setCrop] = useState<Crop>({
  unit: '%', // Can be 'px' or '%'
  x: 25,
  y: 25,
  width: 50,
  height: 50
})

<ReactCrop crop={crop} onChange={c => setCrop(c)}>
  <img src={src} />
</ReactCrop>

Checklist

[X] apps/web/src/components/settings/EditUserModalForm.tsx

Import ReactCrop and its CSS from 'react-image-crop'.

Add a new state variable crop using useState to manage the crop area. Initialize it with a default crop area.
In the handleSubmit function, before saving the image, apply the crop to the image.
Add a new modal that will pop up when the user uploads an image. This modal will contain the ReactCrop component where the user can crop the image.

From SyncLinear.com | MAR-70

Good try, but I think I need to take this one on.

Merged


Clustered environment

From chicchiricco on August 18, 2010 11:42:38
It is mandatory to eventually enable Syncope to run in a clustered environment: i.e. two or more instances of Syncope with a single (or clustered) DBMS instance.
The idea is to try to use JBoss cache (only if not implying JBoss AS) or Swarm cache.
Interesting references:
# http://docs.jboss.org/hibernate/core/3.3/reference/en/html/performance.html#performance-cache # http://community.jboss.org/wiki/jbosscache # http://swarmcache.sourceforge.net/index.html
Original issue: http://code.google.com/p/syncope/issues/detail?id=31

From chicchiricco on September 10, 2010 07:57:52
Status: Accepted

From chicchiricco on September 13, 2010 02:26:09
Status: Started

From chicchiricco on September 28, 2010 03:49:52
This issue was closed by revision r595 .
Status: Fixed


Requested generation length 1 is not possible!

Hi,
Claude dev configured for https://api.sambanova.ai/v1 with Meta-Llama-3.1-405B-Instruct but got this error message:
API Request failed
Requested generation length 1 is not possible! The provided prompt is 4309 tokens long, so generating 1 tokens requires a sequence length of 4310, but the maximum supported sequence length is just 4096!

I got the same error.

This isn't something I can fix unfortunately, seems to be a problem on that particular API provider's end with tool calling

Sad. but thX to inform me.
Thanks for this wonderful extension.  :) I started to use with google api and seems ok.


CMake bug workaround when using clang on OSX

This commit fixes an issue wherein setting CMAKE_CXX_STANDARD to 11
was not adding the "-std=c++11" flag to the command line when
using Clang on OS X. This is a known CMake issue reported in
https://gitlab.kitware.com/cmake/cmake/issues/15943. The suggested
workaround is to set the CMake policy CMP0025.

@davidbeckingsale, alternatively moving the calls to cmake_minimum_required above the project() call, would also fix this.  It is actually recommended practice to call the cmake_minimum_required before invoking the project() command so that all policy settings are established before making any other cmake calls (see the note here: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html). This also explains why I haven't come across this issue in other projects e.g., RAJA and Axom. However, setting the policy seems to be more aligned with the current setup in place.


e2e tests now run in ADO pipeline

This change allows our tests to run inside the ADO pipeline we will use for official builds:

Installed missing dependencies (build steps run as root inside the containers, so we can just install whatever is missing)
Added steps to start and kill Xvfb server because ADO build agents are headless (unlike the machines used by GitHub actions)
Added --user-data-dir to VS code calls. This was needed because VS code runs as root in this scenario.

This is needed for #457
The tests themselves are partially failing due to a race condition. @shenglol is working on a fix. (We have observed this type of failures in GH actions as well - just less frequently.)

Codecov Report

Merging #1095 (c1b183a) into main (9710a22) will increase coverage by 0.48%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1095      +/-   ##
==========================================
+ Coverage   94.27%   94.75%   +0.48%
==========================================
  Files         328      324       -4
  Lines       15856    15707     -149
  Branches       12        0      -12
==========================================
- Hits        14948    14883      -65
+ Misses        908      824      -84

Flag
Coverage Δ

dotnet
94.75% <ø> (-0.08%)
:arrow_down:

typescript
?

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

Impacted Files
Coverage Δ

...cep.Core.UnitTests/FileSystem/FileResolverTests.cs
79.31% <0.00%> (-20.69%)
:arrow_down:

.../Bicep.Core.UnitTests/Assertions/BaselineHelper.cs
63.63% <0.00%> (-15.91%)
:arrow_down:

src/Bicep.Core.UnitTests/Utils/CompilerFlags.cs
33.33% <0.00%> (ø)

...Bicep.Core.UnitTests/FileSystem/PathHelperTests.cs
100.00% <0.00%> (ø)

src/vscode-bicep/src/utils/logger.ts

src/vscode-bicep/src/utils/telemetry.ts

src/vscode-bicep/src/extension.ts

src/vscode-bicep/src/language/client.ts


Non square aspect ratios

Hey! First and foremost love the app. Currently I am modifying it locally to support images in non square aspect ratios. Would you be interested in me raising a PR to add this functionality?

a yes from me- if i could get this to better work with iphone photos id be a happy camper


Ability to connect to database with ssl certificates

Hi there!
It seems the only way to connect using Backup is with username / password combos. I'd like to be more secure with my database and connect using SSL. Is this not possible?

@bytenel have you tried specifying the SSL options through the additional_options config?

@bytenel any luck with setting this up?


Cannot chat after 30minutes

Hi guys, i integrated stanza in my project.
My issue : If i leave my website after about 30-40 minutes, it cant chat anymore, cant use client,sendMessage. I think it base on session out. I set keepalive in startSession function. I wonder that it is right or wrong. It just happen in "global chat" as Multi-User Chat.
This is my startSession function and i use AngularJS
service.client.on('session:started', startSession);
// fn start session
function startSession() {
service.client.enableCarbons(function (err) {
if (err) {
console.log('Server does not support carbons');
}
});
//enale keep alive here
service.client.enableKeepAlive({
interval: 30
});
$timeout(function () {
  getDiscoItems();
}, 3000);

}
Thanks.

it happen with me as well.. after a certain amount of time browser being idle, xmpp connection is stopped.
I have only added polling to re-connection, it says to me ERR_CONNECTION_REFUSED even though internet is online.
Any help why it happen and how to fix it?


Test binja 4 0

Close https://github.com/mandiant/capa/issues/2016
The PR contains:

The binja version check update in https://github.com/mandiant/capa/commit/bf4695c6bfdd9cffbaf45b2d1912b94cc8cbab28. Which is a standard operation after we release a new stable
Fix the stack string detection code after 4.0 (https://github.com/mandiant/capa/commit/58e4a30156668bbd280efbb5295ccb840aebe080), and also simplify it a bit
Added support for forwarded export in the binja feature extractor, and enabled the relevant unit tests. https://github.com/mandiant/capa/commit/92cfc0caa7131e941f7f4ce110254c28e6d8630b. This is a bit funny, that I fixed a relevant bug on the binja end that blocks it, and prematurely asked Willi to close https://github.com/mandiant/capa/issues/1646. Though, at that time, I have not actually added the support for forwarded export in binja extractor (I only fixed a blocker in binja itself). This time I fixed it

Checklist

[ ] No CHANGELOG update needed

[ ] No new tests needed

[ ] No documentation update needed

changes looks good, but looks like tests didn't run fully in CI?

PRs do not have access to the action secrets, so it does not have the binja license to run the relevant tests. You will need to trigger a build as a maintainer of the project to enable a full test

@williballenthin how should we go about versioning capa here? Do we need a new release if we break support for older Binary Ninja versions?

@williballenthin how should we go about versioning capa here? Do we need a new release if we break support for older Binary Ninja versions?

Just FYI this PR does not bump the required binja version to 4.0. It does require the builtin outlining feature, which I remember is introduced in stable 3.4. Still quite new, though

Ok, should we maybe include a note which Binary Ninja version we support/require? Which makes me realize that we don't have any documentation/note on Binary Ninja support/usage anywhere?!


Qualys Scan report import  fails to decode CVSS field

Bug description
When I import a qualys scan, I am getting an error.
uwsgi_1         | ERROR:django.request:Internal Server Error: /api/v2/import-scan/
uwsgi_1         | Traceback (most recent call last):
uwsgi_1         |   File "./dojo/api_v2/serializers.py", line 1097, in save
uwsgi_1         |     parser_findings = parser.get_findings(data.get('file', None), test)
uwsgi_1         |   File "./dojo/tools/qualys/parser.py", line 233, in get_findings
uwsgi_1         |     return qualys_parser(file)
uwsgi_1         |   File "./dojo/tools/qualys/parser.py", line 216, in qualys_parser
uwsgi_1         |     master_list += issue_r(issue, d)
uwsgi_1         |   File "./dojo/tools/qualys/parser.py", line 154, in issue_r
uwsgi_1         |     if _temp['CVSS_score'] is not None and float(_temp['CVSS_score']) > 0:
uwsgi_1         | ValueError: could not convert string to float: '4.3 (AV:N/AC:M/Au:N/C:P/I:N/A:N)'
uwsgi_1         |

Looking at the report. I see records where the CVSS field isn't a float.
<VULN_DETAILS id="qid_11827">
        <QID id="qid_11827">11827</QID>
        <TITLE><![CDATA[HTTP Security Header Not Detected]]></TITLE>
        <SEVERITY>2</SEVERITY>
        <CATEGORY>CGI</CATEGORY>
        <THREAT><![CDATA[This QID reports the absence of the following HTTP headers according to CWE-693: Protection Mechanism Failure:

X-Frame-Options: This HTTP response header improves the protection of web applications against clickjacking attacks. Clickjacking, also known as a "UI redress attack", allows an attacker to use multiple transparent or opaque layers to trick a targeted user into clicking on a button or link on another page when they were intending to click on the top level page.

X-XSS-Protection: This HTTP header enables the browser built-in Cross-Site Scripting (XSS) filter to prevent cross-site scripting attacks. X-XSS-Protection: 0; disables this functionality.

X-Content-Type-Options: This HTTP header prevents attacks based on MIME-type mismatch. The only possible value is nosniff. If your server returns X-Content-Type-Options: nosniff in the response, the browser will refuse to load the styles and scripts in case they have an incorrect MIME-type.

Strict-Transport-Security: The HTTP Strict-Transport-Security response header (HSTS) is a security feature that lets a website tell browsers that it should only be communicated with using HTTPS, instead of using HTTP.

QID Detection Logic:

This unauthenticated QID looks for the presence of the following HTTP responses:

Valid directives for X-Frame-Options are:

X-Frame-Options: DENY - The page cannot be displayed in a frame, regardless of the site attempting to do so.

X-Frame-Options: SAMEORIGIN - The page can only be displayed in a frame on the same origin as the page itself.

X-Frame-Options: ALLOW-FROM RESOURCE-URL - The page can only be displayed in a frame on the specified origin.

Valid directives for X-XSS-Protections are:

X-XSS-Protection: 1 - Enables XSS filtering (usually default in browsers). If a cross-site scripting attack is detected, the browser will sanitize the page (remove the unsafe parts).

X-XSS-Protection: 1; mode=block - Enables XSS filtering. Rather than sanitizing the page, the browser will prevent rendering of the page if an attack is detected.

X-XSS-Protection: 1; report=URI  - Enables XSS filtering. If a cross-site scripting attack is detected, the browser will sanitize the page and report the violation. This uses the functionality of the CSP report-uri directive to send a report.

X-XSS-Protection: 0 disables this directive and hence is also treated as not detected.

A valid directive for X-Content-Type-Options: nosniff

A valid HSTS directive Strict-Transport-Security: max-age=<expire-time>; [; includeSubDomains][; preload]

NOTE: All report-only directives (where applicable) are considered invalid.]]></THREAT>
        <IMPACT><![CDATA[Depending on the vulnerability being exploited, an unauthenticated remote attacker could conduct cross-site scripting, clickjacking or MIME-type sniffing attacks.]]></IMPACT>
        <SOLUTION><![CDATA[Note: To better debug the results of this QID, it is requested that customers execute commands to simulate the following functionality: curl -lkL --verbose.

CWE-693: Protection Mechanism Failure mentions the following - The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. A "missing" protection mechanism occurs when the application does not define any mechanism against a certain class of attack. An "insufficient" protection mechanism might provide some defenses - for example, against the most common attacks - but it does not protect against everything that is intended. Finally, an "ignored" mechanism occurs when a mechanism is available and in active use within the product, but the developer has not applied it in some code path.

Customers are advised to set proper X-Frame-Options, X-XSS-Protection, X-Content-Type-Options and Strict-Transport-Security HTTP response headers.

Depending on their server software, customers can set directives in their site configuration or Web.config files. Few examples are:

X-Frame-Options:

Apache: Header always append X-Frame-Options SAMEORIGIN

nginx: add_header X-Frame-Options SAMEORIGIN;

HAProxy: rspadd X-Frame-Options:\ SAMEORIGIN

IIS: <HTTPPROTOCOL><CUSTOMHEADERS><ADD NAME="X-Frame-Options" VALUE="SAMEORIGIN"></ADD></CUSTOMHEADERS></HTTPPROTOCOL>

X-XSS-Protection:

Apache: Header always set X-XSS-Protection "1; mode=block"

PHP: header("X-XSS-Protection: 1; mode=block");

X-Content-Type-Options:

Apache: Header always set X-Content-Type-Options: nosniff

HTTP Strict-Transport-Security:

Apache: Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

Nginx: add_header Strict-Transport-Security max-age=31536000;

Note: Network devices that include a HTTP/HTTPS console for administrative/management purposes often do not include all/some of the security headers. This is a known issue and it is recommend to contact the vendor for a solution.
]]></SOLUTION>
        <PCI_FLAG>1</PCI_FLAG>
        <LAST_UPDATE>2021-01-30T04:33:17Z</LAST_UPDATE>
        <CVSS_SCORE>
          <CVSS_BASE source="service">4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)</CVSS_BASE>
          <CVSS_TEMPORAL>3.5 (E:U/RL:U/RC:UR)</CVSS_TEMPORAL>
        </CVSS_SCORE>
        <CVSS3_SCORE>
          **<CVSS3_BASE>5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)</CVSS3_BASE>**
          <CVSS3_TEMPORAL>4.7 (E:U/RL:U/RC:R)</CVSS3_TEMPORAL>
        </CVSS3_SCORE>
      </VULN_DETAILS>

Steps to reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Deployment method (select with an X)

[ ] Kubernetes
[ ] Docker
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: [e.g. Ubuntu 18.04]
DefectDojo Commit Message: [use git show -s --format="[%ci] %h: %s [%d]"]

Sample scan files (optional)
If applicable, add sample scan files to help reproduce your problem.
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
Console logs (optional)
If applicable, add console logs to help explain your problem.
Additional context (optional)
Add any other context about the problem here.

Qualys changed the CVSS_BASE field from integer to string in the last weeks...

@kareem-DA could you be more accurate on on the parser you used?
Also please fill completely the sections of the issue.

@kareem-DA could you be more accurate on on the parser you used?
Also please fill completely the sections of the issue.

I updated the description.

@kareem-DA Can you share one of these "new" Qualys reports without confidential data here: https://github.com/DefectDojo/sample-scan-files/tree/master/qualys ? Then we can extend our tests and improve the parser.

I have spent the better part of the day trying to pull our internal data out of the report and I haven't been able to without being sure that the report stays consistent.  Sorry

resolved in #4373


Contract package multi line comment support

In the past multi line comments were not extracted when parsing contract. This is now fixed.
This ticket closes #4

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 10 (90.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 76.748%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

contracts/contract_listener.go
9
10
90.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.08%

Covered Lines:
878

Relevant Lines:
1144

💛  - Coveralls


Tenant Properties => Comment and Description interchanged

Category

[ ] Question
[ ] Typo
[X] Bug
[ ] Additional article idea

Observed Behavior
The value of description and the value of comments seem to be interchanged when adding tenant properties.
Steps to Reproduce
Add a new Key:
Set-SPOStorageEntity -Site https://tenant.sharepoint.com/sites/appcatalog -Key "TestKey" -Value "TestValue" -Description "Test Description" -Comments "Some Comment"
Now get the key again:
Get-SPOStorageEntity -Site https://tenant.sharepoint.com/sites/appcatalog -Key "TestKey"
=>This will result in the following output:
Comment            : Test Description
Description        : Some Comment
Value              : TestValue
Context            : Microsoft.Online.SharePoint.PowerShell.CmdLetContext
Tag                :
Path               : Microsoft.SharePoint.Client.ObjectPathMethod
ObjectVersion      :
ServerObjectIsNull : False
TypedObject        : Microsoft.SharePoint.ClientSideComponent.StorageEntity

Thanks for your feedback, we are fixing this issue.  Should be rolled out by next Sunday (14th of October).

What will happen with existing entries? Are those beeing updated or should we delete and recreate them?

The comments/description will stay as is (swapped).  Therefore if you want them to be correct swap them in the code that creates it so that the end result looks accurate.  Then going forward it will continue to be accurate.  It was a bug in the creation code path where we swapped the values by mistake.  I am closing this issue as the fix is already checked in and just rolling out.  Please re-open if you still see the issue after Tuesday the 16th (by then all farms should be patched with the fix).


D A and Oligosaccharyltransferase complex B

Hi GO,
I would need 2 children terms for the terms for the Oligosaccharyltransferase complex. In vertebrates, there are 2 different complexes, OST-A that mediates glycosylation cotranslationally, and OST-B that mediates mediate modification of skipped glycosylation sites in unfolded proteins both co- and post-translationally.
Thanks
Sylvain
Name: Oligosaccharyltransferase complex A
Definition: A translocon-associated protein complex containing STT3A as catalytic subunit that directs glycosylation of specific substrates cotranslationally.
Child of GO:0008250 oligosaccharyltransferase complex
Synonym: OST-A
Xref
ComplexPortal=CPX-5621; Oligosaccharyltransferase complex A
PMID:31831667
PMID:39509507
Name: Oligosaccharyltransferase complex B
Definition:A protein complex containing STT3B as catalytic subunit that directs glycosylation of specific substrates cotranslationally and post-translationally. It mediate modification of skipped glycosylation sites in unfolded proteins
Child of GO:0008250 oligosaccharyltransferase complex
Synonym: OST-B
Xref
PMID:31831667

+[Term]
+id: GO:0160226
+name: oligosaccharyltransferase complex A
+namespace: cellular_component
+def: "An oligosaccharyltransferase complex that contains STT3A as the catalytic subunit." [PMID:31831667, PMID:39509507]
+synonym: "OST-A" EXACT []
+is_a: GO:0008250 ! oligosaccharyltransferase complex
+property_value: term_tracker_item "https://github.com/geneontology/go-ontology/issues/29333" xsd:anyURI
+created_by: rynl
+creation_date: 2024-12-10T00:57:44Z
+
+[Term]
+id: GO:0160227
+name: oligosaccharyltransferase complex B
+namespace: cellular_component
+def: "An oligosaccharyltransferase complex that contains STT3B as the catalytic subunit." [PMID:31831667, PMID:39509507]
+synonym: "OST-B" EXACT []
+is_a: GO:0008250 ! oligosaccharyltransferase complex
+property_value: term_tracker_item "https://github.com/geneontology/go-ontology/issues/29333" xsd:anyURI
+created_by: rynl
+creation_date: 2024-12-10T01:06:31Z
+


Feature request: Only tell the last played move

This will improve visualization and it is the reason i am searching for chess chatbots in the first place.

What exactly do you mean? Do you want it to delete the previous messages each time it sends a new one?

No, there should be an option to stop viewing the board at all, only giving the move that happens last.

By giving the move do you mean the text of the move? You need to see the board to know where the bot has moved.

No you don't have to if you know chess well, the positions on the board and the FEN notation.

You can take a look at some yt vids on blindfold chess.

So do you want an option for blindfold chess? there is already a theme for that
It would be impractical to remove the board entirely, as most people don't want to play blindfold

Those people should enable the board.

Closing as I don't think this will be a feature useful for the vast majority of people.


[MPLUGIN-433] Allow to disable link validation

Also validate internal links to javadocs in mojo/parameter description and deprecated

Please also rebase with current codebase ... build should will be ok 😄

Please also rebase with current codebase

Done.

What do you think about adding IT test for such options?
By the way we don't have any IT tests for javadoc links ... or I don't see.

By the way we don't have any IT tests for javadoc links ... or I don't see.

Not end2end but there is a lot of unit tests and https://github.com/apache/maven-plugin-tools/blob/master/maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/javadoc/JavadocSiteIT.java which checks that the links being created actually work against a Javadoc site created from JDK8/11/17.

I now also added a proper IT in https://github.com/apache/maven-plugin-tools/pull/162/commits/6b564c8aaf89af4776ffb7898e2a86a4ce400a4f with some basic checks on generated links.


Values object must be immutable

According to the principles of DDD, Values object must be immutable, but here the constructor are public. So i can easily do this.
$test = new Text('value1');
$test->__construct('value2');

echo $test->value; // value2

Shouldn't you protect this method, and make it call from a static method like ValueObject::new($value) ?

The objects are immutable, but not in the constructor.
If you try to assign a value manually, it will throw an exception:
$test = new Text('value1');

$test->value = 'new value'; // ... Exception

I considered making constructors final, but this way developers are limited in extending objects/overriding the constructor logic, e.g. Name extends Text and adds sanitization logic. With final construct we'll be unable to do that.

I would have simply put the constructor in protected so that the developers cannot use it without passing a static method which will act as a factory.
protected function __construct(string|Stringable $value)
{
    // ....
}

public static function make(mixed ...$values): static
{
    return new static(...$values);
}


RxJs compile errors

Hi
when i want to extend this example to use RxJs, e.g. in server/contact/contact_servcie.ts I add:
import * as Rx from 'rxjs';

the npm start, result in these errors:
? Unable to compile TypeScript
node_modules\rxjs\CoreOperators.d.ts (77,31): Cannot find name 'PromiseConstructor'. (2304)
node_modules\rxjs\Observable.d.ts (65,67): Cannot find name 'PromiseConstructor'. (2304)
node_modules\rxjs\Observable.d.ts (159,31): Cannot find name 'PromiseConstructor'. (2304)

I found https://github.com/ReactiveX/RxJS/issues/592
Hence i tried  "tsd install es6-shim --save" but this lead to conflicts
tools\typings\tsd\es6-promise\es6-promise.d.ts (11,15): Duplicate identifier 'Promise'. (2300)
tools\typings\tsd\es6-promise\es6-promise.d.ts (42,16): Duplicate identifier 'Promise'. (2300)
tools\typings\tsd\es6-shim\es6-shim.d.ts (475,11): Duplicate identifier 'Promise'. (2300)
tools\typings\tsd\es6-shim\es6-shim.d.ts (552,13): Duplicate identifier 'Promise'. (2300)

Here i find this: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/5015
But i don't understand how to fix this. Can you help, by making this starter setup so it can have RxJs?

Meanwhile i have a work around.
I added tools\typings\missing.d.ts with a copy of the interfaces in e6s-shim.d.ts:
interface IteratorResult<T> {...
interface IterableShim<T> {...
interface Iterator<T> {...
interface PromiseConstructor {...

at least i can continue with that.
But is this a valid solution?

Thanks!


Nightly releases

Adds nightly releases and cleans up the release workflow.
Nightly releases are put under a draft version and the workflow is automatically run every day at midnight GitHub-time.
The release has archive files for macOS, Linux and Windows. Each archive contains both the forge and cast binaries and nothing else.
The archive files have predictable names that work well with scripts that pull specific versions off of GitHub releases (such as https://github.com/onbjerg/foundry-action).
An example release can be seen here: https://github.com/onbjerg/foundry/releases/v0.0.1
As an aside, when we do start releasing stable versions we should probably consider adding a changelog and using that for the release descriptions.

That's a great PR.
Do you have any thoughts on packaging? I was thinking brew for mac, choco for windows and apt for linux.
For brew, we need to PR a formula. For apt things can get a bit complicated and for choco i haver absolutely no idea

Do you have any thoughts on packaging? I was thinking brew for mac, choco for windows and apt for linux.

No thoughts on packaging so far. It should be easy-ish to add, so I think we should add it once we are closer to our first stable release. That would also give us time to figure out what kind of package managers we want to support as well

For brew, maybe checkout https://sake.sh

Should be good to go now except for https://github.com/gakonst/foundry/pull/459#discussion_r785312537

Incredible work - gonna trigger a manual release


Send idX’s categories QA with user data to GTM/GA4

 Add user custom questions label/answer to GTM dataLayer push when idX user exists.


Missing device check in TensorMap.keys_to_samples() [and probably some other operations]

Some operations (such as tensormap.keys_to_samples()) may re-initialize the internal Labels objects, which have the default "cpu" device. It results in a device conflict later on, if metatensor.torch.operations.sum_over_samples() or some other type of index-based operation is used.

Example:
tensor_2 = tensor_1.keys_to_samples('keys')
tensor_3 = metatensor.torch.operations.sum_over_samples(tensor_2, ['samples'])

will result in the following error, while using GPU as a primary device
metatensor.torch.operations.sum_over_samples(
  File "/home/mazitov/apps/anaconda3/envs/torch-alchemical/lib/python3.10/site-packages/metatensor/operations/reduce_over_samples.py", line 514, in sum_over_samples
    return _reduce_over_samples(
  File "/home/mazitov/apps/anaconda3/envs/torch-alchemical/lib/python3.10/site-packages/metatensor/operations/reduce_over_samples.py", line 369, in _reduce_over_samples
    _reduce_over_samples_block(
  File "/home/mazitov/apps/anaconda3/envs/torch-alchemical/lib/python3.10/site-packages/metatensor/operations/reduce_over_samples.py", line 170, in _reduce_over_samples_block
    _dispatch.index_add(
  File "/home/mazitov/apps/anaconda3/envs/torch-alchemical/lib/python3.10/site-packages/metatensor/operations/_dispatch.py", line 338, in index_add
    output_array.index_add_(0, index, input_array)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA_index_add_)

This should be relatively easy to fix: we need to move the labels back to GPU (in practise, any device which is not "cpu") after calling the function from metatensor-core around here:
https://github.com/lab-cosmo/metatensor/blob/ef15c7326ef5cc188d1d8f99370316d19379f239/metatensor-torch/src/tensor.cpp#L320-L356


Add deterministic UUID function uuid3

Add uuid3 function which takes a VARCHAR as input and returns a deterministic UUID (Type 3 UUID). The input is MD5 hashed, and uuid3 function doesn't have any random or environment-dependent element, and thus, it's reproducible

@Praveen2112 all suggested changes done.
Let me know if anything else needs to be done. Thanks

Please squash the commits.

@losipiuk @Praveen2112 I've sent the CLA email, but the CLA bot still keeps failing. Does it take some time for it to be processed?

We may need to adjust the signature and behavior of this function. Type 3 UUIDs are supposed to be constructed from a namespace and a name (see https://tools.ietf.org/html/rfc4122#page-13):
  The version 3 or 5 UUID is meant for generating UUIDs from "names"
   that are drawn from, and unique within, some "name space".  The
   concept of name and name space should be broadly construed, and not
   limited to textual names.  For example, some name spaces are the
   domain name system, URLs, ISO Object IDs (OIDs), X.500 Distinguished
   Names (DNs), and reserved words in a programming language.  The
   mechanisms or conventions used for allocating names and ensuring
   their uniqueness within their name spaces are beyond the scope of
   this specification.

In particular, how the names are converted to bytes is dependent on the specific namespace. In the current implementation, we assume the input is a UTF-8 encoded string and use that as the byte representation:
 The algorithm for generating a UUID from a name and a name space are
   as follows:
   [...]
   * Convert the name to a canonical sequence of octets (as defined by
      the standards or conventions of its name space); put the name
      space ID in network byte order.
   * Compute the hash of the name space ID concatenated with the name.

So, it would be more appropriate for the function to be defined as uuid3(namespace::uuid, name::varbinary)::uuid.
Also, note that SHA-1 is recommended unless there's a need for backward compatibility:
   * Choose either MD5 [4] or SHA-1 [8] as the hash algorithm; If
      backward compatibility is not an issue, SHA-1 is preferred.

@cla-bot check

We may need to adjust the signature and behavior of this function. Type 3 UUIDs are supposed to be constructed from a namespace and a name (see https://tools.ietf.org/html/rfc4122#page-13):
  The version 3 or 5 UUID is meant for generating UUIDs from "names"
   that are drawn from, and unique within, some "name space".  The
   concept of name and name space should be broadly construed, and not
   limited to textual names.  For example, some name spaces are the
   domain name system, URLs, ISO Object IDs (OIDs), X.500 Distinguished
   Names (DNs), and reserved words in a programming language.  The
   mechanisms or conventions used for allocating names and ensuring
   their uniqueness within their name spaces are beyond the scope of
   this specification.

In particular, how the names are converted to bytes is dependent on the specific namespace. In the current implementation, we assume the input is a UTF-8 encoded string and use that as the byte representation:
 The algorithm for generating a UUID from a name and a name space are
   as follows:
   [...]
   * Convert the name to a canonical sequence of octets (as defined by
      the standards or conventions of its name space); put the name
      space ID in network byte order.
   * Compute the hash of the name space ID concatenated with the name.

So, it would be more appropriate for the function to be defined as uuid3(namespace::uuid, name::varbinary)::uuid.
Also, note that SHA-1 is recommended unless there's a need for backward compatibility:
   * Choose either MD5 [4] or SHA-1 [8] as the hash algorithm; If
      backward compatibility is not an issue, SHA-1 is preferred.

Yes, I'm aware of the NAMESPACE component. But I am using the Java implementation of UUID Type 3, which takes only one input and I thought it'd make more sense.
Regarding the MD5 , I used that because a Type 3 UUID uses MD5 hash while a Type 5 used SHA (and I was going to add type 5 later).
If we want to proceed with the NAMESPACE approach. As per me, the second approach looks better:

Letting users pass any of the NAMESPACE UUID values as the first argument, i.e.
uuid3('6ba7b810-9dad-11d1-80b4-00c04fd430c8', 'presto') , where first argument is the RFC 4122 Namespace DNS
Creating functions for each of the NAMESPACES, (as done in Postgres uuid-ossp like uuid_nil(), uuid_ns_dns(), uuid_ns_url(), uuid_ns_oid(), uuid_ns_x500() , each of which return the static value of the Namespace UUID.

Let me know your thoughts.

If we want to proceed with the NAMESPACE approach. As per me, the second approach looks better:

Both approaches are complementary. The function would still be uuid3(uuid, varbinary), but it would be supplemented by a set of additional functions that provide well-known uuids for various namespaces.

You can implement version 3 (or 5) in Java code:
UUID nameUuid = ...;
byte[] value = ...;
bytes[] b = Hashing.md5().newHasher()
        .putLong(Longs.reverse(nameUuid.getMostSignificantBits()))
        .putLong(Longs.reverse(nameUuid.getLeastSignificantBits()))
        .putBytes(value)
        .hash().asBytes();
long msb = Longs.fromBytes(b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]);
long lsb = Longs.fromBytes(b[8], b[9], b[10], b[11], b[12], b[13], b[14], b[15]);

Superseded by https://github.com/prestosql/presto/pull/4413


FR: don't block cursor with the messages

I don't want to see the message above my cursor when I'm editing the text, so it would be nice to make message change it's position when the cursor is around the top right corner.

There's no right way to fix that. Would be a source of issues. not adding this


platformio: patch python interpreter path

Previously platformio would use a plain python interpreter to call external scripts with. They then rightfully complained about missing dependencies.
Wrapping the interpreter with the package dependencies and substituting it makes esp-idf builds work.
Closes: #227230
Tested with a bluetooth proxy configuration as described in https://esphome.io/components/bluetooth_proxy#complete-sample-recommended-configuration-for-an-ethernet-connected-bluetooth-proxy.
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Building and flashing firmware based on esp-idf works. Not suspect this originates in the post_build script defined in esphome, but executed by platformio. Likely this call https://github.com/esphome/esphome/blob/dev/esphome/components/esp32/post_build.py.script#L63.
Building .pioenvs/esphome-766d10/firmware.bin
esptool.py v4.4
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
esp32_create_combined_bin([".pioenvs/esphome-766d10/firmware.bin"], [".pioenvs/esphome-766d10/firmware.elf"])
Pyserial is not installed for /nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python. Check the README for installation instructions.
Traceback (most recent call last):
  File "/home/hexa/.platformio/packages/tool-esptoolpy/esptool.py", line 31, in <module>
    import esptool
  File "/home/hexa/.platformio/packages/tool-esptoolpy/esptool/__init__.py", line 42, in <module>
    from esptool.cmds import (
  File "/home/hexa/.platformio/packages/tool-esptoolpy/esptool/cmds.py", line 14, in <module>
    from .bin_image import ELFFile, ImageSegment, LoadFirmwareImage
  File "/home/hexa/.platformio/packages/tool-esptoolpy/esptool/bin_image.py", line 14, in <module>
    from .loader import ESPLoader
  File "/home/hexa/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 21, in <module>
    import serial
ModuleNotFoundError: No module named 'serial'
=============================================================================== [SUCCESS] Took 67.91 seconds ===============================================================================
INFO Successfully compiled program.
INFO Resolving IP address of esphome-766d10.local
WARNING Error with socket 6 (('<IP_ADDRESS>', 5353))): [Errno 1] Operation not permitted
Traceback (most recent call last):
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/asyncio/selector_events.py", line 1196, in sendto
    self._sock.sendto(data, addr)
PermissionError: [Errno 1] Operation not permitted
INFO  -> <IP_ADDRESS>
INFO Uploading .esphome/build/esphome-766d10/.pioenvs/esphome-766d10/firmware.bin (1257328 bytes)
Uploading: [============================================================] 100% Done...


[app-configuration] New snapshot feature

Packages impacted by this PR
app-configuration
Issues associated with this PR
#23605
Describe the problem that is addressed by this PR
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

API change check
API changes are not detected in this pull request.

/azp run js - appconfiguration - tests

/azp run js - app-configuration - tests

/azp run js - app-configuration - tests

/check-enforcer evaluate

/check-enforcer evaluate

/azp run js - app-configuration - tests

/azp run js - app-configuration - tests

/azp run js - app-configuration - tests


Dropzone: thumbnails are not visible consistently on Storybook

Describe the bug
When uploading files to Dropzone on Storybook, with the thumbnails prop set to true, sometimes the thumbnail appears and sometimes it's just blank.
To Reproduce
Steps to reproduce the behavior:

Go to Storybook (https://storybook-preview-dev--upbeat-sinoussi-f675aa.netlify.app/?path=/story/dropzone--default)
Browse a few files
Notice that sometimes the thumbnail is visible, sometimes it's not.

Expected behavior
Thumbnails are visible consistently when the prop is set to true.
Screenshots

Additional context
When adding files sometimes, there is a console error Failed to load resource: net::ERR_FILE_NOT_FOUND. Not sure if this is a limitation of Storybook, or why this happens only sometimes.

Cannot be reproduced on CodeSandbox, not too concerned about this happening in Storybook.


Fix webhook on-success logic

Fix for issue https://github.com/rackspace-cookbooks/chef-slack_handler/issues/13

Looks good to me. :shipit:


similarize text in right column

The text for the table of contents could be a bit bigger

made font of TOC elements bigger


Split traits into painlesstraits

Closes #47

I'm happy with this change. If we need new traits we can add them to painlessjson temporarily until they can be added to painlesstraits.

I can just add you to the repo if needed, though I think that what it has is pretty much all that one would need.

Thanks @msoucy


[DOC] Add instructions for a full build of libcamera-apps

To fully build libcamera-apps (with libav-related options), I've found that these APT packages were needed : libavcodec-dev, libavutil-dev, libavformat-dev and libavdevice-dev
Woudl it please be possible to add them to https://www.raspberrypi.com/documentation/accessories/camera.html#building-libcamera-apps ?

This has already been updated here: https://github.com/raspberrypi/documentation/pull/2673
At some point it will be merged into the main documentation repo.

Nice, sorry didn't see that  ^^


Add a script to start docker image

This is a script that does the following:

Pull madlib/postgres_9.6:latest from docker;
Mount your local madlib directory to docker container;
Build madlib from source;
Install madlib and run install check;
Log into docker container from shell as postgres user, so that you
can run psql and start using madlib from here

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/214/

I ran the shell script analysis tool (available via brew shellcheck). It reported a few issues with the script:
✘-1 ~/workspace/MADlib/madlib/tool [PR-181 L|…1]
17:40 $ shellcheck --version
ShellCheck - shell script analysis tool
version: 0.4.6
license: GNU General Public License, version 3
website: http://www.shellcheck.net
✔ ~/workspace/MADlib/madlib/tool [PR-181 L|…1]
17:40 $ shellcheck docker_start.sh

In docker_start.sh line 33:
workdir=`pwd`
        ^-- SC2006: Use $(..) instead of legacy `..`.

In docker_start.sh line 34:
user_name=`whoami`
          ^-- SC2006: Use $(..) instead of legacy `..`.

In docker_start.sh line 77:
docker exec madlib-test bash -c 'rm -rf /build; mkdir /build; cd /build; cmake ../madlib; make clean; make; make install' | tee $workdir/logs/madlib_compile.log
                                                                                ^-- SC2086: Double quote to prevent globbing and word splitting.

In docker_start.sh line 84:
docker exec madlib-test bash -c '/build/src/bin/madpack -p postgres -c postgres/postgres@localhost:5432/postgres install' | tee $workdir/logs/madlib_install.log
                                                                                ^-- SC2086: Double quote to prevent globbing and word splitting.

In docker_start.sh line 92:
docker exec madlib-test bash -c '/build/src/bin/madpack -p postgres  -c postgres/postgres@localhost:5432/postgres -d /tmp install-check' | tee $workdir/logs/madlib_install_check.log
                                                                                ^-- SC2086: Double quote to prevent globbing and word splitting.

In docker_start.sh line 99:
docker exec --user=postgres -it madlib-test bash | tee $workdir/logs/docker_exec.log
                                                       ^-- SC2086: Double quote to prevent globbing and word splitting.

✘-1 ~/workspace/MADlib/madlib/tool [PR-181 L|…1]
17:40 $

Although I do understand why you echo the commands prior to executing, I think the script easier to maintain without them. A user of the script can always run this with bash -x docker_start.sh to watch the commands execute.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/232/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/233/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/241/

Jenkins ok to test

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/249/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/251/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/252/


Make remembering previously visible stuff configurable

Add a config option for a client, specifying whether to remember items
that are out of sight and mark their last seen position and attributes
on the map (under cursor they will be reported as 'remembered' as opposed
to 'seen'). BTW, that was and is the default behaviour currently.
Let the same be specified for actors and perhaps even with map tiles.
The infrastructure to do so is ready (config files, server sending
enough information, client processing the information and then recording it).

Now that I keep client state of the server, this flexibility is lost. Closing.


SQS send message not reaching queue

Environment:

AWS ParallelCluster / CfnCluster version [e.g. aws-parallelcluster-2.5.1]
Configuration file (i.e. ~/.parallelcluster/config) without any credentials or personal data.

Bug description and how to reproduce:
SQS message not sent after compute_ready is executed by chef routine.  Manually modifying the compute_ready script to remove the ".cn" logic allows the script to execute properly.

Hi @efrye04 ,
could you give us more context to try to reproduce your issue?
Which version of ParallelCluster you're using?
Which region?
Can you share the configuration file (i.e. ~/.parallelcluster/config) without any credentials or personal data?
Thanks


nest 8 compatibility

thanks for your work!
it looks like this lib is compatible with nest 8
can you please change peerDependencies to read something like
"@nestjs/common": "^7 || ^8",

Should be fixed in v0.1.15 on NPM. Thanks for reporting it.


Image Discovery web app does not work in Chrome

When you select an area, either by extent or rectangle, you get the error "There is currently no imagery available for your search area"

@lfunkhouser this error is because the arcgisonline image services are using a weak ssl certificate. I know that we logged that issue already but can't seem to locate it. @ACueva is one that figured it out.

@conklinbd I had submitted this error to the image team who forwarded to IST. They are working on it but don't know the status. I'll find my GitHub issue.

The issue is #1008

Since this is a known issue for this release I am going to change it to next.

@nfeuerstein issue #1008 has been resolved (i.e. issue with online SSL certificate issue). I've tested the Image Discovery app and it does work. I'll go ahead and close the issue.


First wave of speaker invitations  for FTC SF OSS day

https://docs.google.com/document/d/1RXZL26hUzb6EtRDLb_YiGX85yUNmZh5wYYDkkFuR9uU/edit
See bolded

Going to close this out for now. Did the reachouts, but many are pending decisions out of our control


peek_delayed() works only with 'default' tube

Send to a tube other than 'default' a delayed job, peek_delayed() won't return that job.
Doing exactly the same with 'default' tube, peek_delayed() will happily return that delayed job.

looks like you need to call user('yourtube') in order to be able to use peek_delayed()

peek_{ready,delayed,buried} only operate on the currently used tube, yes. I'll add a note to that effect to the tutorial (see issue #19).