Large file upload fails with 3 nested exceptions

This could be an issue with the client side network, but I would think the libraries retries chunks and give some informations in the output.
The upload starts and after a while, end up breaking with the following exceptions :
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
    chunked=chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 363, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 936, in _send_output
    self.send(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 905, in send
    self.sock.sendall(datablock)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 891, in sendall
    v = self.send(data[count:])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 861, in send
    return self._sslobj.write(data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 586, in write
    return self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 640, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/util/retry.py", line 261, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
    chunked=chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 363, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 936, in _send_output
    self.send(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 905, in send
    self.sock.sendall(datablock)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 891, in sendall
    v = self.send(data[count:])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 861, in send
    return self._sslobj.write(data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 586, in write
    return self._sslobj.write(data)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./onedrive.py", line 100, in <module>
    returned_item = client.item(drive='me', path=config['path']+"/"+upload).upload_async(upload)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/version_bridge/fragment_upload.py", line 173, in fragment_upload_async
    resp = upload_builder.post(i * __PART_SIZE, length)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/version_bridge/fragment_upload.py", line 121, in post
    return self.request(begin, length, options).post()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/version_bridge/fragment_upload.py", line 57, in post
    entity = UploadSession(json.loads(self.send(data=self._file_handle).content))
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/request_base.py", line 151, in send
    data=data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/http_provider.py", line 69, in send
    response = session.send(prepped)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/adapters.py", line 473, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))

I enabled some debug on the current slice and try and will report if I find anything new.

Closing as I could not reproduce the issue

This keeps happening sometimes so I reopen the case.
Is there a way that the exception is catched, and we follow the retry mechanism already in place for each "piece" upload?
Try 1, slice 64
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
    chunked=chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 363, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 936, in _send_output
    self.send(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 905, in send
    self.sock.sendall(datablock)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 891, in sendall
    v = self.send(data[count:])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 861, in send
    return self._sslobj.write(data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 586, in write
    return self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 640, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/util/retry.py", line 261, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
    chunked=chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/packages/urllib3/connectionpool.py", line 363, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 936, in _send_output
    self.send(message_body)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 905, in send
    self.sock.sendall(datablock)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 891, in sendall
    v = self.send(data[count:])
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 861, in send
    return self._sslobj.write(data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 586, in write
    return self._sslobj.write(data)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./onedrive.py", line 101, in <module>
    returned_item = client.item(drive='me', path=config['path']+"/"+upload).upload_async(upload)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/version_bridge/fragment_upload.py", line 174, in fragment_upload_async
    resp = upload_builder.post(i * __PART_SIZE, length)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/version_bridge/fragment_upload.py", line 121, in post
    return self.request(begin, length, options).post()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/version_bridge/fragment_upload.py", line 57, in post
    entity = UploadSession(json.loads(self.send(data=self._file_handle).content))
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/request_base.py", line 151, in send
    data=data)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/onedrivesdk-1.1.6-py3.5.egg/onedrivesdk/http_provider.py", line 69, in send
    response = session.send(prepped)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests-2.11.1-py3.5.egg/requests/adapters.py", line 473, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))

I suspect these are related:

stack overflow question about file modes as they pertain to windows
onedrivesdk.http_provider
python mail thread on rb file mode on linux not working

I'm unable to upload binary files while running on CentOS 7 with python 2.7 synchronously or while running from within a Ubuntu 16.04 container with python 3.5 asynchronously, though they share the kernel level at 3.10.0-514.2.2.el7.x86_64.

I was able to resolve my issues by looking through closed issues and changing the way I uploaded files:
https://github.com/OneDrive/onedrive-sdk-python/issues/51
The example code in the readme is just really bad.

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information


null string exception when executing Flyway command on Spanner database after upgrading from 8.0.0 to 10.1.0

Which version and edition of Flyway are you using?
Flyway 10.1.0 Community Edition
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
This issue occurs in the latest version
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Gradle plugin
Which database are you using? (Type & version)
Google Cloud Spanner
Which operating system are you using?
windows
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
After upgrading Flyway from version 8.0.0 to 10.1.0, executing the Flyway command against a Google Cloud Spanner database results in a null string exception.
Execution failed for task ':flywayInfo'.
> Error occurred while executing flywayInfo
  null string

What did you expect to see?
I expected the Flyway commands to execute normally without any errors, just as they did with version 8.0.0.
What did you see instead?
A null string exception occurred. This seems to be due to a change in the handling of the 'installed_on' column in the 'flyway_schema_history' table. In versions prior to 8.1.0, this column was allowed to be null. In version 10.1.0, the refreshCache method was updated with the following logic:
https://github.com/flyway/flyway/blob/flyway-10.1.0/flyway-core/src/main/java/org/flywaydb/core/internal/schemahistory/JdbcTableSchemaHistory.java#L224C1-L227C18
Timestamp installedOn = rs.getTimestamp(columnOrdinalMap.get("installed_on"));
if (installedOn == null) {
    installedOn = Timestamp.valueOf(rs.getString(columnOrdinalMap.get("installed_on")));
}

When installedOn is null, the Timestamp.valueOf(rs.getString(columnOrdinalMap.get("installed_on"))); conversion fails.

Any news on this?
I have encountered the same issue when trying to upgrade our flyway version.
I found this Stackoverflow Post with a fix but i would prefer not to change the column definition of the flyway table.

We found out that the problem occurs on old systems, which before Flyway version 6 (or so) had the table schema_version, which was renamed to flyway_schema_history.
We renamed the  table with a migration.
rename migration code

DO
$$
    BEGIN
        IF (EXISTS(SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'schema_version')
            AND EXISTS(SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'flyway_schema_history'))
        THEN
            DROP TABLE schema_version;
        END IF;
        IF (EXISTS(SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'schema_version')
            AND NOT EXISTS(SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'flyway_schema_history'))
        THEN
            CREATE TABLE flyway_schema_history AS TABLE schema_version;
        END IF;
    END
$$;

However, this only changed the name of the table. And, for those tables that were renamed and not created, did not apply flyways new table definition which has column constraints.
correct definition

CREATE TABLE flyway_schema_history
(
    installed_rank INTEGER                                   NOT NULL,
    version        CHARACTER VARYING(50),
    description    CHARACTER VARYING(200)                    NOT NULL,
    type           CHARACTER VARYING(20)                     NOT NULL,
    script         CHARACTER VARYING(1000)                   NOT NULL,
    checksum       INTEGER,
    installed_by   CHARACTER VARYING(100)                    NOT NULL,
    installed_on   TIMESTAMP WITHOUT TIME ZONE DEFAULT NOW() NOT NULL,
    execution_time INTEGER                                   NOT NULL,
    success        BOOLEAN                                   NOT NULL
);

I am unsure what the correct migration from schema_version to flyway_schema_history would have been. Everything i can find online suggest you were supposed to just rename the table.

Our solution was to migrate the table definition via a SQL Migration in Code (when flyway migrations are triggered), since migrating the flyway_schema_history table in a flyway migration is not possible.


[BUG] - Sonarcloud configuration isn't quite right

Description
There are some issues with the sonarcloud set up

code coverage is not being collected at all
code coverage is only being generated for the backend, not the frontend or extension
the quality gate has not been configured
the number of code smells in the mainline branch is not easily visible from github, so there are many warnings

Reproduction URL
https://sonarcloud.io/summary/overall?id=se310-t6_politicry
Reproduction steps
1. Go to https://sonarcloud.io/summary/overall?id=se310-t6_politicry
2. Note how the issues mentioned above are noticable.

Screenshots
N/A

Logs
N/A

Approved. This will expose a lot of the test coverage and code smells that were overlooked during development in A1.

we don't have access to the sonarcloud configuration, so this issue is waiting on a reply from team 6

reopening, #94 didn't fully fix the issue


[Confidential Ledger] Enable Batch Release

Description
Enable batch release for Confidential Ledger Java SDK.

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


Ruby Version is out of date in Gemfile

Since the ruby version is out of date, the Dockerfile exits with errors during the build process.

@cktricky Is this still true? We're running the latest version of Ruby and the docker images builds.
https://hub.docker.com/r/mccabe615/railsgoat/builds/bgbnr9sp5j6cyb4pym6bsjd/

Seems to come up fine now. I'd try running vagrant up to make sure this still works as expected but in terms of just the docker image, it seems to be coming up fine.


How about add ssr in this template?

Its will be very usefull

I dont think this template uses SSR, you would have to look into nuxt for that


Networkx to Plotly

This PR aims to convert the graph generated by Networkx library to a Plotly graph.
Progress so far:

Able to convert the networkx graph to a plotly graph.

The issue to be resolved:

Unable to show the edge weight when hovering over the edges on the graph

@cdolfi initial baseline code to convert networkx to a plotly graph.


foundry keystore makefile

Description:
Switched to makefile. Also tweaked a flow a bit in latest changes of #878 while deploying to live network you had to pass the raw password in cli:
yarn deploy --network sepolia --password my_password

# had to do same for yarn account

Now we are using makefiles and in the new flow :
yarn deploy

^ By default deploying to locahost won't ask you for password (already tackled in latest #878)
But when you pass it an live network which is not locahost then it will give you an interactive cli to type password.
Same for yarn account
cc @jrcarlos2000 to check once if I did not miss anything.

Tysm @jrcarlos2000! updated with all the changes! Merging this 🙌


HDF5

Hi, not sure if this crate is maintained at all - but in any case, just letting you know that the existing hdf5 crate has been yanked from crates index and is now replaced with https://github.com/aldanor/hdf5-rust (under the same name, hdf5, but it's a completely different crate).

Addressed in #8


Delete models/time-dependent-cosmologies/slc-20230120.pdf

Hi Виталий, I have approved deletion of your file.  Now you can try again to upload the new file.


Add custom help formatter and shorthand of --thres

$ budoux -h
usage: budoux [-h] [-H] [-m JSON] [-d STR] [-t THRES] [-V] [TXT]

BudouX is the successor to Budou,
the machine learning powered line break organizer tool.

positional arguments:
  TXT                      text (default: None)

optional arguments:
  -h, --help               show this help message and exit
  -H, --html               HTML mode (default: False)
  -m JSON, --model JSON    custom model file path (default: /Users/eggplants/prog/budoux/budoux/models/ja-knbc.json)
  -d STR, --delim STR      output delimiter in TEXT mode (default: ---)
  -t THRES, --thres THRES  threshold value to separate chunks (default: 1000)
  -V, --version            show program's version number and exit

Would it be better to write a reference to CLI in the README? (As well javascript/README.md)

The change LGTM! Thank you so much.

Would it be better to write a reference to CLI in the README? (As well javascript/README.md)

That would be awesome. Are you interested in writing the draft?

@tushuhei @junseinagao could you port this over to Javascript?

@eggplants
I'll implement this function to node cli. Give me a few days!


Change Response::html and Response::svg to take Into<String>

Currently, the Response::html constructor sets UTF-8 encoding in the Content-Type header. But because this constructor takes raw bytes (Into<Vec<u8>>), a user can pass in data encoded using e.g. Shift JIS instead. Since the Content-Type header overrides any <meta charset> tags in the response body (see spec), this will silently corrupt the page. A similar argument applies to Response::svg.
One hiccup was with the mustache library, which doesn't expose a method to render a String directly. I have submitted nickel-org/rust-mustache#43 to fix this.

That's a good point and the change is definitely needed.
I wanted to wait for the mustache people to merge your function first, but let's go without it.


Want to Generate Instruction Dataset using OpenSource LLM

There is just ChatGPT Option for Generating Dataset.
I want to use my open-source model, how to do so?

Hi @AbrahimZaman360,
In order to do so, you can modify this file and/or make contribution to include new class for Azure.
For contribution guide, head here.


Adding new language "Deutsch (du)"

This plugin is now archived. Unfortunately, I do not have the time to maintain or review pull-requests for this plugin. Feel free to fork this project if you are interested.


Use alternative fork vladmandic/automatic

The original repo https://github.com/AUTOMATIC1111/stable-diffusion-webui seems to be staled for a month now. Is it possible to add an alternative and more active fork like https://github.com/vladmandic/automatic (with 1.5k stars and +600 new commits) to the colab options somehow?
Thanks

I'm planning on adding it soon

I hope you'll make it optional, not mandatory.

@Topzie A1111 is still active https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/dev


Multiline configmap data produces output with lines separated by empty lines

Multiline configmap data produces output with lines separated by empty lines
The output of the suggestion #86  is a little off (i.e. not pretty). For example, with the snippet below:
You will get a yaml file with empty lines in between each line in the array.
To contrast, running console.log(daemonfile) in TypeScript playground(/node for the compiled javascript),  the multiline output has no empty lines in between (as required).
In the end the yaml is a little chunkier than it should be. Am I missing something here?
let daemonfile = [
            "# Maximum buffer size in MB (minimum 3). Choose 0 to use 1% of host memory. ",
            "TotalBufferSizeMB: 0",
            "# Maximum number of concurrent calls to AWS X-Ray to upload segment documents.",
            "Concurrency: 8",
            "# Send segments to AWS X-Ray service in a specific region",
            "Region: \"\"",
            "# Change the X-Ray service endpoint to which the daemon sends segment documents.",
            "Endpoint: \"\"",
            "Socket:",
            "  # Change the address and port on which the daemon listens for UDP packets containing segment documents.",
            "  # Make sure we listen on all IP's by default for the k8s setup",
            "  UDPAddress: <IP_ADDRESS>:2000",
            "Logging:",
            "  LogRotation: true",
            "  # Change the log level, from most verbose to least: dev, debug, info, warn, error, prod (default).",
            "  LogLevel: prod",
            "  # Output logs to the specified file path.",
            "  LogPath: \"\"",
            "# Turn on local mode to skip EC2 instance metadata check.",
            "LocalMode: false",
            "# Amazon Resource Name (ARN) of the AWS resource running the daemon.",
            "ResourceARN: \"\"",
            "# Assume an IAM role to upload segments to a different account.",
            "RoleARN: \"\"",
            "# Disable TLS certificate verification.",
            "NoVerifySSL: false",
            "# Upload segments to AWS X-Ray through a proxy.",
            "ProxyAddress: \"\"",
            "# Daemon configuration file format version.",
            "Version: 1"
        ].join("\n");

        new ConfigMap(scope, "xray-config", {
            data: {
                "config.yaml": daemonfile
            }
        });

I also tried with the another pattern, i.e. using a back tick ` e.g.
The output wasn't any better:
let daemonfile = `
line1
line2
...
`
new ConfigMap(scope, "xray-config", {
            data: {
                "config.yaml": daemonfile
            }
        });

I could not get away with trying regex to replace new lines as well, e.g.
const regex = new RegExp("\n{2,}",'gi');
let daemonfile = [
            "# Maximum buffer size in MB (minimum 3). Choose 0 to use 1% of host memory. ",
            "TotalBufferSizeMB: 0",
            "# Maximum number of concurrent calls to AWS X-Ray to upload segment documents.",
            "Concurrency: 8",
            "# Send segments to AWS X-Ray service in a specific region",
            "Region: \"\"",
...
]
].join("\n").replace(regex, "");

new ConfigMap(scope, "xray-config", {
            data: {
                "config.yaml": daemonfile
            }
        });

I had trouble with this as well, and was able to chase down what I believe to be the root cause, using the following PoC code:
import { App } from "cdk8s";
import { Construct } from "constructs";
import { Chart, ChartProps } from "cdk8s";
import { KubeConfigMap } from "./imports/k8s";

const app = new App();

export class MyChart extends Chart {
  constructor(scope: Construct, id: string, props: ChartProps = {}) {
    super(scope, id, props);
    new KubeConfigMap(this, `test-cm`, {
      metadata: {
        annotations: {
          "annotation/number": "12345",
          "annotation/date": "2020-10-10",
          "annotation/boolean": "on",
          "annotation/string": "normal string",
        },
      },
      data: {
        records: `
- long: document
  multiline: strings
    nested: records
`,
      },
    });
  }
}
new MyChart(app, "testing")
app.synth();

It appears that there was a previous issue, #325, which was due to certain boolean and date types not being parsed correctly. The original incorrect YAML was analogous to:
apiVersion: v1
data: # note the block literal
  records: |

    - long: document
      multiline: strings
        nested: records
kind: ConfigMap
metadata:
  annotations:
    annotation/boolean: on # this is of type boolean
    annotation/date: 2020-10-10 # this is of type date
    annotation/number: "12345" # but the number has been properly stringified
    annotation/string: normal string
  name: testing-test-cm-c8f3662e

The resolution of #325 was #327 which, among other things, included the addition of this line that sets the default string type toQUOTE_DOUBLE.
However, doing this prevents any block literals from being created by the YAML stringifier, so a multiline string ends up escaped many times, as seen in this example:
apiVersion: "v1"
data:
  records: "

    - long: document

    \  multiline: strings

    \    nested: records\n"
kind: "ConfigMap"
metadata:
  annotations:
    annotation/boolean: "on"
    annotation/date: "2020-10-10"
    annotation/number: "12345"
    annotation/string: "normal string"
  name: "testing-test-cm-c8f3662e"

I believe that in the original example, the boolean is not stringified because "on" is not a valid boolean under the default schema for the YAML package, yaml-1.2. The same issue occurs with the date, YYYY-MM-DD is not a valid date format under yaml-1.2. Therefore the YAML stringifier skips stringification of these items. This causes a compatibility issue with other parsers that are using the yaml-1.1 schema.
As we are already loading YAML files as yaml-1.1, I propose we set the schema to yaml-1.1 by default, and revert to the default PLAIN string type, which lets the parser decide when to use quotes or block literals.
That will give us a still correct and much prettier result:
apiVersion: v1
data:
  records: |

    - long: document
      multiline: strings
        nested: records
kind: ConfigMap
metadata:
  annotations:
    annotation/boolean: "on"
    annotation/date: "2020-10-10"
    annotation/number: "12345"
    annotation/string: normal string
  name: testing-test-cm-c8f3662e

If this is an acceptable solution, I'm happy to write the PR. I don't believe there is significant risk of regression here, but I could be wrong, I'm no YAML expert.

I had trouble with this as well, and was able to chase down what I believe to be the root cause, using the following PoC code:
import { App } from "cdk8s";
import { Construct } from "constructs";
import { Chart, ChartProps } from "cdk8s";
import { KubeConfigMap } from "./imports/k8s";

const app = new App();

export class MyChart extends Chart {
  constructor(scope: Construct, id: string, props: ChartProps = {}) {
    super(scope, id, props);
    new KubeConfigMap(this, `test-cm`, {
      metadata: {
        annotations: {
          "annotation/number": "12345",
          "annotation/date": "2020-10-10",
          "annotation/boolean": "on",
          "annotation/string": "normal string",
        },
      },
      data: {
        records: `
- long: document
  multiline: strings
    nested: records
`,
      },
    });
  }
}
new MyChart(app, "testing")
app.synth();

It appears that there was a previous issue, #325, which was due to certain boolean and date types not being parsed correctly. The original incorrect YAML was analogous to:
apiVersion: v1
data: # note the block literal
  records: |

    - long: document
      multiline: strings
        nested: records
kind: ConfigMap
metadata:
  annotations:
    annotation/boolean: on # this is of type boolean
    annotation/date: 2020-10-10 # this is of type date
    annotation/number: "12345" # but the number has been properly stringified
    annotation/string: normal string
  name: testing-test-cm-c8f3662e

The resolution of #325 was #327 which, among other things, included the addition of this line that sets the default string type toQUOTE_DOUBLE.
However, doing this prevents any block literals from being created by the YAML stringifier, so a multiline string ends up escaped many times, as seen in this example:
apiVersion: "v1"
data:
  records: "

    - long: document

    \  multiline: strings

    \    nested: records\n"
kind: "ConfigMap"
metadata:
  annotations:
    annotation/boolean: "on"
    annotation/date: "2020-10-10"
    annotation/number: "12345"
    annotation/string: "normal string"
  name: "testing-test-cm-c8f3662e"

I believe that in the original example, the boolean is not stringified because "on" is not a valid boolean under the default schema for the YAML package, yaml-1.2. The same issue occurs with the date, YYYY-MM-DD is not a valid date format under yaml-1.2. Therefore the YAML stringifier skips stringification of these items. This causes a compatibility issue with other parsers that are using the yaml-1.1 schema.
As we are already loading YAML files as yaml-1.1, I propose we set the schema to yaml-1.1 by default, and revert to the default PLAIN string type, which lets the parser decide when to use quotes or block literals.
That will give us a still correct and much prettier result:
apiVersion: v1
data:
  records: |

    - long: document
      multiline: strings
        nested: records
kind: ConfigMap
metadata:
  annotations:
    annotation/boolean: "on"
    annotation/date: "2020-10-10"
    annotation/number: "12345"
    annotation/string: normal string
  name: testing-test-cm-c8f3662e

If this is an acceptable solution, I'm happy to write the PR. I don't believe there is significant risk of regression here, but I could be wrong, I'm no YAML expert.


Add entry by Andrew Sun

Check List:

[x] Tests pass (./test.sh <username>)
[x] All formatting changes by the build are committed
[x] Output matches that of calculate_average_baseline.sh

Implementation class: CalculateAverage_asun
I used spullara's entry as my starting point.
AMD Ryzen 5900X (12c/24t), 64 GiB DDR4-3600 with -XX:ActiveProcessorCount=8:

Execution time: ~3.9 seconds
Execution time of reference implementation: ~127 seconds

I used spullara's entry as my starting point.

Thanks for calling this out! Can you describe which improvements you've done over that entry? I am asking because as per the rules we wanna avoid resubmitting existing entries by others with only tiny or trivial improvements.

I vectorized hashing of the city name and finding the semicolon, made parsing the temperature and line ending branchless with SWAR, and changed the intermediate temperature values to longs instead of doubles. I also tuned some parameters here and there that should theoretically make it faster on the target system.
If I have time, I plan to rewrite the hashtable and improve the quality of the hashing.

Ok, sounds good. 00:11.038. Thx for particpating!


[GST-2195] Fixed Vagrant test

This repo currently works with Ansible 1.9.4 and 2.1.1 Furthermore two Vagrant test bugs were resolved.

LGTM :+1:


⚠ ClamAV has degraded performance

In f8ab621, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 210 ms

Resolved: ClamAV performance has improved in 4328db3.


DocsArchive-<IP_ADDRESS>Auto archive content

Auto archive content from https://github.com/opstest2/docs-archive-test-source.git

Docs Build status updates of commit ae8dfc9:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: RepositoryUnauthorizedWithSourceCommit] Git data access to 'https://github.com/opstest2/docs-archive-test-target' (branch: Release_Archive_main_2022-02-10-02-04-41) is not authorized.. It looks like this might be the first time user: v-alji submitted a pull request to this repo. Before user can run builds in a pull request, he/she can enable 'v-alji' GitHub account in Docs by visiting Docs Portal (https://ops.microsoft.com). After enabling his/her account (v-alji), close and then reopen this pull request to start another build.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


No option to dismiss in case dismiss did not work

Please add this function
public func dismiss() {
        self.inputViewController?.dismiss(animated: true, completion: nil)
    }

to VoiceOverlayController

@spinach

Added in official release 1.0.0


Underrun issue

The sampletest program is running on my computer and it sounds fine most of the time. However, there are static-like clicking noises every once in a while wile notes are playing (mostly when they start) and this message is constantly printed to the console: ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred

Hi John,
It sounds like this is going to be due to audio callbacks not completing in time. You may be able to mitigate this problem by increasing the target latency for the playback system (see setup_sound() in app_sampletest.c around lines 511-515). If that makes the problem go away, this is almost certainly the issue. If the latency needs to be severely increased, it could be possible that the issue is due to memory being paged out to disk.
What operating system are you using?

I tested
stream_params.suggestedLatency          = def_device_info->defaultLowOutputLatency * 5;
with values from 1.5 (default) to 5 and it did make the event less frequent, but not go away entirely.

In a separate terminal: find the process ID for sampletest, and then examine the number of page faults:

ps -A | grep sampletest
top -p12345

(where 12345 should be replaced by the PID of sampletest). In top, you want to monitor the nMaj columns (see http://man7.org/linux/man-pages/man1/top.1.html). See if you can detect these columns having changes which coincide with glitches. If this is happening - it's likely that samples are being swapped to disk.
Another experiment you could do is to call mlockall() somewhere early in main() (before the playback engine gets initialised) - if this function succeeds, you should not get any page faults as memory should never be swapped out. I have absolutely no idea, but you may need to run the program with elevated privileges to get this function to work.
If disk-reading page faults are definitely not happening (because the nMaj number isn't incrementing), this could be related to computational complexity just getting too high for the system you are operating on (look at the CPU usage of the task manager) - but I would be surprised because I would have expected that increasing the latency substantially would have fixed this.
Aside from this, I'm not sure I am going to be able to fix this given that I do not know how to reproduce it locally.


Check input and axis param in quantize and dequantize

Try to fix https://github.com/tensorflow/tensorflow/issues/42105

Unfortunately internal tests rolled this back. Monday I'll try to get access to the failing test and try merging this again. Apologies for the delay


Add version number to binaries and SHA256 files

What do you do if you don't want an older version to be overwritten? It depends on the developers. I think that I should include the version number into filenames in future releases (source code not affected).

The software is now legalised. Sorry for the inconvenience.


Fixed #24469 -- Fixed escaping of forms, fields, and media in non-Django templates.

See https://code.djangoproject.com/ticket/24469 for more information

buildbot, add to whitelist.

merged in 6bff3439894ac22d80f270f36513fc86586273f3, thanks!


Visual Studio 15.6 deadlocks on solution load for .NET Core SDK project when a  is added to file list

(Edited by @cartermp to update repro steps)
15.6 crashes on load of this solution
https://github.com/btrepp/vspreviewcrash
Repro steps

git clone https://github.com/btrepp/vspreviewcrash
cd vspreviewcrash\dotnet
.paket\paket.exe install
dotnet restore
Open solution file.

Expected behavior
Solution loads.
Actual behavior
A popup with "a non fatal error has occured" appears, but then VS locks up
Known workarounds
None
Related information
Operating system is windows 10, Machine had brand new windows installed and then Visual studio installed.

Sorry not at computer - can you remove the FSharp.NET.Sdk attribute and
see what happens?
On Thu, Feb 1, 2018, at 17:38, btrepp wrote:

15.6 crashes on load of this solution
https://github.com/btrepp/vspreviewcrash

Repro steps

Clone repo
Open solution in 15.6 preview 3
Expected behavior

Solution loads like in 15.5.6

Actual behavior

A popup with "a non fatal error has occured" appears, but then VS
locks up> Known workarounds

None

Related information

Operating system is windows 10, Machine had brand new windows
installed and then Visual studio installed.> — You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub[1], or mute the
thread[2].>

Links:

https://github.com/Microsoft/visualfsharp/issues/4300
https://github.com/notifications/unsubscribe-auth/AGBEzg0Ju77LNUeQEmFCIJHFMfJQiCN7ks5tQmcsgaJpZM4R2jYv

That helps with the solution level crash, the IDE loads. But fails to load the project with
"The project file is incomplete. Expected imports are missing"
Its nice enough to create a log file for this. Which contains
=====================
2/02/2018 10:52:10 AM
Recoverable
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.ProjectSystem.UpToDate.BuildUpToDateCheck.Initialize()
   at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposed.EnsureInitialized(Boolean allowInitializing)
   at Microsoft.VisualStudio.ProjectSystem.UpToDate.BuildUpToDateCheck.Load()
   at Microsoft.VisualStudio.ProjectSystem.ConfiguredProjectImpl.<>c__DisplayClass108_2.<<InitializeAsync>b__6>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.ProjectMultiThreadedService.<>c__DisplayClass28_1.<<Fork>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.ProjectSystem.UpToDate.BuildUpToDateCheck.Initialize()
   at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposed.EnsureInitialized(Boolean allowInitializing)
   at Microsoft.VisualStudio.ProjectSystem.UpToDate.BuildUpToDateCheck.Load()
   at Microsoft.VisualStudio.ProjectSystem.ConfiguredProjectImpl.<>c__DisplayClass108_2.<<InitializeAsync>b__6>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.ProjectMultiThreadedService.<>c__DisplayClass28_1.<<Fork>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---

===================

@Pilchie @jmarolf
That stack looks like Project System or CPS.

Tagging as external for now, will update or close as-appropriate

Tagging @panopticoncentral - do you know how this could happen?

All we do in Initialize is hook up to the dataflow. Best guess is that some condition is causing one of the CPS services we expect to be there to be null. We can harden against this, but it's surprising that a service wouldn't be there. Maybe the import service since imports are mentioned above? I'll take a look in the debugger.

Big title/text update for tracking purposes.
Basically, if a <None Include-""> is in the set of files for compilation in a .NET Core SDK project, VS will deadlock. This is because default file globbing for the project system will pick it up anyways, and this ultimately leads to duplicate items referring to the same file.
The workaround is to apply this in the project file:
  <ItemGroup>
    <None Remove="*.*" />
  </ItemGroup>

Then the F# project files with None Include items will work just fine. A fix is underway in the project system.

Depending on your projects (eg I used folders). The nuclear workaround is
  <ItemGroup>
    <None Remove="**/*" />
  </ItemGroup>

Which throws all the automagic stuff in the bin and makes it so you explicitly include items. Adding this everywhere brought my solution back to being use-able.

The fix for this has been merged in and will be available in a servicing release for 15.6 soon.


call attach & detach based on events from etcd

[ ] start with an RFC
[ ] optional for MVP: implement proper assignment of tenants
[ ] wait for https://github.com/neondatabase/neon/issues/1396 to complete

@arssher @kelvich since we decided to keep using attach/detach APIs this can be closed, right?

yes


make persistent app properties BOSH configurable

[#108422520]
Signed-off-by: James Myers<EMAIL_ADDRESS>

Mergedk thanks


gpg failing on swift version 5.0 and 5.1

Describe the bug
gpg: no valid OpenPGP data found
2022-05-27T01:03:18.6540771Z ##[group]Run swift-actions/setup-swift@v1
2022-05-27T01:03:18.6541027Z with:
2022-05-27T01:03:18.6541219Z   swift-version: 5.0
2022-05-27T01:03:18.6541402Z ##[endgroup]
2022-05-27T01:03:19.0435884Z [command]/usr/bin/gpg --import /home/runner/work/_temp/d75c9f8a-9a43-4698-b365-ce3cc73aa4f8
2022-05-27T01:03:19.0520669Z gpg: directory '/home/runner/.gnupg' created
2022-05-27T01:03:19.0523805Z gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
2022-05-27T01:03:19.0554994Z gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
2022-05-27T01:03:19.0557566Z gpg: key D441C977412B37AD: public key "Swift Automatic Signing Key #1<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0658866Z gpg: key 9F597F4D21A56D5F: public key "Swift 2.2 Release Signing Key<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0667085Z gpg: key 63BC1CFE91D306C6: public key "Swift 3.x Release Signing Key<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0675426Z gpg: key EF5430F071E1B235: public key "Swift 4.x Release Signing Key<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0685228Z gpg: key 7638F1FB2B2B08C4: public key "Swift Automatic Signing Key #2<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0694155Z gpg: key 925CC1CCED3D1561: public key "Swift 5.x Release Signing Key<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0703180Z gpg: key FAF6989E1BC16FEA: public key "Swift Automatic Signing Key #3<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0836806Z gpg: key 925CC1CCED3D1561: "Swift 5.x Release Signing Key<EMAIL_ADDRESS>1 new signature
2022-05-27T01:03:19.0850317Z gpg: key F167DF1ACF9CE069: public key "Swift Automatic Signing Key #4<EMAIL_ADDRESS>imported
2022-05-27T01:03:19.0851037Z gpg: Total number processed: 9
2022-05-27T01:03:19.0865498Z gpg:               imported: 8
2022-05-27T01:03:19.0866138Z gpg:         new signatures: 1
2022-05-27T01:03:19.0885012Z [command]/usr/bin/gpg --keyserver hkp://keyserver.ubuntu.com --refresh-keys Swift
2022-05-27T01:03:19.3445053Z gpg: refreshing 8 keys from hkp://keyserver.ubuntu.com
2022-05-27T01:03:23.0802502Z gpg: key F167DF1ACF9CE069: "Swift Automatic Signing Key #4<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0807153Z gpg: key FAF6989E1BC16FEA: "Swift Automatic Signing Key #3<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0816091Z gpg: key 925CC1CCED3D1561: "Swift 5.x Release Signing Key<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0822050Z gpg: key 7638F1FB2B2B08C4: "Swift Automatic Signing Key #2<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0828369Z gpg: key EF5430F071E1B235: "Swift 4.x Release Signing Key<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0834526Z gpg: key 63BC1CFE91D306C6: "Swift 3.x Release Signing Key<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0840519Z gpg: key 9F597F4D21A56D5F: "Swift 2.2 Release Signing Key<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0848436Z gpg: key D441C977412B37AD: "Swift Automatic Signing Key #1<EMAIL_ADDRESS>not changed
2022-05-27T01:03:23.0849465Z gpg: Total number processed: 8
2022-05-27T01:03:23.0850242Z gpg:              unchanged: 8
2022-05-27T01:03:23.6838983Z [command]/usr/bin/gpg --verify /home/runner/work/_temp/19cd8f86-def8-4a2a-8d13-13740de149ba /home/runner/work/_temp/f108991b-9d8c-4f2d-b601-09bcfb17f4f3
2022-05-27T01:03:23.6879784Z gpg: no valid OpenPGP data found.
2022-05-27T01:03:23.6880922Z gpg: the signature could not be verified.
2022-05-27T01:03:23.6881210Z Please remember that the signature file (.sig or .asc)
2022-05-27T01:03:23.6881490Z should be the first file given on the command line.
2022-05-27T01:03:23.6926331Z ##[error]Unexpected error, unable to continue. Please report at https://github.com/swift-actions/setup-swift/issues
The process '/usr/bin/gpg' failed with exit code 2
Stacktrace:
Error: The process '/usr/bin/gpg' failed with exit code 2
    at ExecState._setResult (/home/runner/work/_actions/swift-actions/setup-swift/v1/dist/index.js:995:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/swift-actions/setup-swift/v1/dist/index.js:978:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/swift-actions/setup-swift/v1/dist/index.js:872:27)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1022:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

Workflow configuration (please complete the following information):

Platform (runs-on): [macos-latest, ubuntu-latest]
Swift version (swift-version): [5.0, 5.1]

This also happens for me with Swift 4.2 on ubuntu-18.04 (which I believe is currently ubuntu-latest)

I also cannot get any versions of Swift before 5.5 (4.2, 5.0, 5.1, 5.2, 5.3, 5.4) to work on macos-11 or macos-12, although they do work on macos-10.15. I suspect part of those problems are specific to my project, but some of them may be an issue with this action

I am seeing this with Swift 5.5 and 5.6

Seeing this in 5.6 and 5.7 as well.


When using a Named FromQueryAttribute the generator is not respecting nested classes

Considering the following example:
public IActionResult Get([FromQuery] Filter filter)
{
    return Ok();
}

public class Filter
{
    [FromQuery(Name = "sf")]
    [SwaggerParameter("Sub Filter")]
    public SubFilter SubFilter { get; set; }
}

public class SubFilter
{
    [FromQuery(Name = "a")]
    [SwaggerParameter("The Alias to filter")]
    public string Alias { get; set; }
}

When calling the Get action we should pass a query string parameter named sf.a to set the Alias property, but the generator doesn't seem to navigate correctly through all nested named FromQuery attributes, thus generating a json with a parameter named a.
A workaround we found is to inherit the current AnnotationsParameterFilter and SwaggerParameter by adding a custom Name to it.
.net Core version: 2.2
Swashbuckle version: 5.3.3

This is a dup of #1833

This is a dup of #1833


[Query] Fixes empty property name parsing exception

Description
Updates property name parsing checks to allow for empty and whitespace property names.  These types of property names are currently allowed via the portal. Previously, an exception would be thrown upon parsing empty/whitespace property names when the gateway was bypassed and routing logic performed on the client side. Specifically, this would be the case when using macOS or Linux.
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Closing issues
closes #2879

/azp run

/azp run


Typo: "Nob-Essential Instrumentation"

In https://github.com/BBjaba/BAS-kernel/blob/7571481f8ad4274c81cd60471bbf85b9e4fa7d19/kernel/src/pciDescriptors.cpp#L26
Found it by random luck :)

Oh. thx for finding it! I just got bored in writing that much class names :)
But it's better not to make a new issue for these sort of problems. It's better make a pull request.


Update Complex Method doc - closes #1009

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@80be66d). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #1773   +/-   ##
=========================================
  Coverage          ?   79.82%
  Complexity        ?     1937
=========================================
  Files             ?      324
  Lines             ?     5472
  Branches          ?     1009
=========================================
  Hits              ?     4368
  Misses            ?      581
  Partials          ?      523

Impacted Files
Coverage Δ
Complexity Δ

...rturbosch/detekt/rules/complexity/ComplexMethod.kt
96.29% <ø> (ø)
11 <0> (?)

...ab/arturbosch/detekt/api/internal/McCabeVisitor.kt
91.42% <100%> (ø)
18 <0> (?)

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 80be66d...0118edc. Read the comment docs.


Give all question types non-empty labels for screen readers' benefit

Screen readers need to see HTML <label>s for all <input>s so they can read them out. At present, all our question types have <label>s, but (as far as I can tell) they are empty.

We should follow this guide for putting non-empty, useful labels next to each input. You can use Tailwind's sr-only class to hide the label from non-screen-reading users.
Consider putting the question's title and/or description in the <label> next to the <input>.
This applies to all question types that use <input> tags, which I think is everything.
Original tester comments

Actual results:
At step 6 above, observe the 'date question text updated new version updated' dropdown list is unlabeled
Expected results:
All controls should hae a proper label associated and screenreader should be able to annouce the label , state, controltype & value as seen applicable

Just tested out "Program for Question Lifecycle" with a screen reader. Looks like it can handle every question type properly, giving a reasonable voiceover description thanks to our <label>s. Great!


Update version: AntiMicro.AntiMicro version 2.24-final

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/113545&drop=dogfoodAlpha

Possible duplicate package entry.
Similar installer SHA256 hash found in manifest:

InstallerSha256: 6ed60e839281f6802dbbd2221079dcd9cd0562513f4124e8c431ab7a6e8d9af2

manifests\a\AntiMicro\AntiMicro\2.24.0
manifests\a\AntiMicro\AntiMicro\2.24-final

Are these the same version? I'm unfamiliar with this publisher's versioning system.


Contributor discontinuity criteria are ambiguous re shared channels

*** @(CHA-RL4a2)@ @[Testable]@ If the given contributor has not yet successfully managed to attach its Realtime Channel (i.e. no call to @attach()@ on the channel, per @CHA-RL1f@, has succeeded), then no action should be taken (i.e. @CHA-RL4a3@ and @CHA-RL4a4@ behaviours are not performed).

I find the wording of CHA-RL4a2 ambiguous — is the "has-already-been-attached" state meant to be keyed by the contributor or by its underlying realtime channel?
Given that contributors might share channels, we might receive a state change for a contributor which was actually triggered by calling attach() on some other contributor.
It makes me wonder whether it would be simpler to not allow contributors to share channels. I don't really see what it buys us, and it means that we write

In that sense, implementations of Room Lifecycle @MUST@ make no assumptions over which realtime channels are in use or being shared, and treat every @contributor@ as being entirely standalone.

but then have to introduce exceptions like

*** @(CHA-RL5a1)@ NOTE: As many chat features share channels, the equality of contributors when deciding not to detach is based on their realtime channel, and not the contributor themselves. i.e. if two features share a realtime channel, and that channel is suspended, then that channel should not be detached.

Since, as of https://github.com/ably/specification/issues/233, the room already now has logic to fetch each channel precisely once, how about we also create only one lifecycle contributor per realtime channel?

I’ve implemented CHA-RL5a1 in Swift by making it so that contributors no longer share realtime channels; see https://github.com/ably-labs/ably-chat-swift/pull/147

So the logic when originally implemented is thus:

Different chat features can definitely share one channel. It makes a lot more sense to have presence and occupancy living alongside messages than their own channel. It's also more economical with the current pricing model.
In the original implementation, we just made it so that different features count as a contributor to room lifecycle (as that seemed like a reasonable abstraction).
There needs to be some linkage of feature - lifecycle contributor simply because of the reason of discontinuities.

That said, I think it would be reasonable to define the lifecycle contributor on a per-channel basis, so long as those individual features can be notified of discontinuities on their channels (i.e. we still tie features to contributors in some way).
The thing that this would require us to remove would be the feature attachment/detachment error codes for occupancy and presence, as they share channels with messages. Though I don't think this would necessarily be a problem.
WDYT?

Yep, what you've described is pretty much how it's implemented in Swift in the above PR (the error codes for occupancy and presence are still there but will never get thrown).


No support for Actions[] in containers in C#

Developing on v0.5, in C# there is only a way to add selectActions to a container, and no button related Actions, although on the schema it specifies that these exist.

@250blahblah in Containers, you should use the ActionSet element instead.  The actions property isn't needed.

Are you looking to set the selectAction of a Container? If so, I believe you've found a bug in our .NET impl.
If you're looking to put multiple Actions inside a Container, then as @dclaux mentions an ActionSet is correct best approach.

Thanks for such a prompt response -- the ActionSet works excellently. I just have one request (if either of you happen to be involved in the development of AdaptiveCards): can this be added to the documentation? As of today, https://docs.microsoft.com/en-us/adaptive-cards/create/cardschema#container does not mention ActionSets.
Thanks!

I think this is a schema issue as well. The schema (at least at http://adaptivecards.io/schemas/adaptive-card.json) doesn't seem to indicate what an ActionSet actually is or that actions can be added to containers.

Currently ActionSet is not an official v1.0 feature but we're exploring ways to make it work in a future release. I've filed a separate tracking here: #877


.wasm (application/wasm) is served with charset

this should not happen.

This works for me with ecstatic 4.0.0 - probably thanks to https://github.com/jfhbrook/node-ecstatic/issues/220

using light-server as a workaround for now, it serves wasm files with correct content type.

Any update on this issue? Would be great to serve wasm files which are accepted by the browser 🙂

using light-server as a workaround for now, it serves wasm files with correct content type.

Thanks. It works perfectly:
light-server --serve . --open

using light-server as a workaround for now, it serves wasm files with correct content type.

Thanks. It works perfectly:
light-server --serve . --open

What is blocking this issue?

@rhysd

What is blocking this issue?

The problematic code is in ecstatic, so the first step is to inline ecstatic (bigger change, scheduled for next release https://github.com/http-party/http-server/pull/693), then it should be just a one-line fix

@zbynek Thank you for the update. I'll wait for next release and use other HTTP server for serving Wasm files meanwhile.


Accept ownyourgram content

[ ] Successfully get content for test post and send correct response
[ ] Format content being injected in to Github with correct filename

This is now working, pending some security checks 👍

This is done. But ownyourgram appears to be sending a blank body. Bizzare.

Fixed!


Code blocks adding stray \n

First and foremost, thank you for writing this library, it's awesome!
Code blocks add a newline even if it does not exist in the input string.
Is this intended?
From elm repl:
> Markdown.Block.parse Nothing "    return"
[CodeBlock Indented "return\n"]

This is a problem for our product because we need to parse and unparse the code often, and every cycle adds more and more \n to the markdown.

Thanks for the feedback!
I understand that this is a problem, but I tried to follow the commonmark spec and it seems that this is how it should behave (I found an open issue about this).
Let me know if I miss something.

I understand, thanks.
For the time being, we'll use a work around.


Spanish Implementation

Submitting as draft because
1-) I'm unclear how pull requests actually works
2-) I haven't properly made an Integration Test because I found it extremely un-ergonomic to constantly build the Num2Words settings after every .to_word() call
I also submitted a .devcontainer configuration because I found it extremely helpful to be able to test stuffs in a virtual environment specially so when I didn't have available a beefy-enough computer (I might've forgotten to add Rust Docs Viewer in the extensions though)

Hey, sorry for the big delays in replying to the messages!
I'll take a look at your PR soon, thanks for the changes.
I'll be honest by saying I am not much interested in dev containers, do you think you can get them removed for now?
Also I've seen that you've done a lot of improvements regarding fmt, that's nice! I am wondering if it's too hard for you to split that in another PR? Usually one PR = one feature!
Thanks again :)

oh yes. it's alright.
As for the fmt it was something I ended up with after editing a template I copied and edited into my liking.

just... give me a moment while I figure how to separate the stuffs out

I'll assume the rustfmt thing will got to be in a separate PR right?

that would be best! just move files that are not changed in this PR to another one. If there was rustfmt ran within files that were changes within this PR, I am completely fine with keeping it here (on top of that, that'll avoid merge conflicts), makes it easier for both you and me :)

Sheesh. It makes me glad I didn't go crazy with changing stuffs. fortunately I found out about how to revert a file to a specific commit. Hope this is the way to go for such situation

Should I also undo the added Derives to the enums?

Sorry for making you go through all of this trouble! and thank you very much for taking the time to work on it, it's very kind :)
I'll see the PR more in depth this weekend! If you're not planning on redoing the derives or rustfmt, I'll take on that job once this is merged.

I was thinking about figuring what rustfmt config was the one that onelined the chained methods and see if it was alright to disable it.
The reason is because if the method chaining gets one-lined, then the type-hint for each method return on the chain will not be hinted by rust-analyser.
but anyways, the chainings tends to be short more often than not, so the loss of the type-hint which can only be seen in an IDE isn't that relevant

Hi, I was thinking about making a PR with another branch for benchmarks. Mainly  I want to see what issues can arises if I expect merge conflicts( expecting so because I had to add some derives to do benchmark)

Alright. That should be it

Oh, btw. I'm working on translating the currencies. Might submit a commit by the end of the day

I have a question if you can get the answer
I'll be leaving it as the first meanwhile, but should it be like the second case?
assert_eq!(
    ordinal(124_001_091_000_000_000_001),
    "ciento veinticuatrotrillonésimos milnoventa y unobillonésimos primeros"
//  "ciento veinticuatrotrillonésimos mil noventa y unobillonésimos primeros"
);

I couldn't redo the Cardinal implementation.
Performance gains were dirt low. at about x1.02-x1.25 faster, and also the implementation looked a bit ugly. So I have no changes to the current implementation of Spanish.

Hey guys! Native Spanish speaker here. Is there anything that you need help with? I'd love to use this crate in a project that I'm currently developing

Hey guys! Native Spanish speaker here. Is there anything that you need help with? I'd love to use this crate in a project that I'm currently developing

[ ] I would like opinions on whether to support a flavor for "Semantically Incorrect" milliards.
according to  RAE, 10E9(1,000,000,000) is called "Billón", whereas in English, 10E9 is called "Trillion". Choosing to support semantically Incorrect cardinals would mean that spanish's "Billón" would be english's trillion.

[ ] Maybe check currency, in case some currency got mistranslated.

[ ] Support converting too big of numbers into nEm expression, i.e. 20.23E20 => veinte coma veintitrés por 10 a la 20

Priority close to 0:

Cleanup tests & Integration Tests: Because some test cases overlaps other tests. Also I personally think they could look cleaner with some work.

Otherwise, everything should be fine. Other than big numbers which can lose precision

Hey @Laifsyn! I just review the "Semantically Incorrect" numbers that you mention and as far as I know almost the complete Latin-america region use those big numbers exactly in the same way as in English, so a direct translation of them should be precise enough. Later versions of this crate could include some other forms of Spanish cardinals numbers but knowing that they are rarely used this should be not a priority. But let me ask some friends in Colombia and Argentina (Countries that use particularly high number prices in the every day life) to confirm that.
In the other hand, let me test the USD and PESOS translation, those are the currency that I'm familiar with.
And last but not least, I just want to say a big thank you to make the Spanish implementation possible!

Just a quick question... I'm using this crate in library mode, is there any way to just print the resulting words? The output always show me the array that the code use to convert numbers to words.

Just a quick update... When using Spanish as language, the output shows an array that I supposed the code use to translate the numbers to words.

Just a quick update... When using Spanish as language, the output shows the array that the code use to translate the numbers to words.

Thanks for finding out! I might have forgotten to test the actual binary before I uploaded


Converting to onnx

I would like to convert the model to ONNX format but, the operators flip and linspace are not supported. Is there a workaround for this?
Thanks

If you are using DSNT at the output, one option is to save the model up until (but excluding) the DSNT-related operations. Since those layers don't have weights anyway, saving them is not important. Kind of like how you don't need to save the loss function.

This is effectively a duplicate of https://github.com/anibali/dsntnn/issues/9


Remove objid and thing_id / thingid

This removes the SDSS-specific objid and thing_id fields from the core of Celeste (primarily CatalogEntry). Mostly these were not used for anything, so this doesn't have much of an effect.
In the benchmarks, objid was sometimes used as an object index. It was necessary to have an object index when reshaping (melting or stacking) DataFrames. However, it wasn't necessary for the index to be globally unique or meaningful. So here, I've replaced it with a simple running index (1:length(catalog)) within the catalog.
References to objid/thing_id still exist in the SDSSIO module which is totally fine. The code there has the ability to read tables with those fields, they're just not used by any of the rest of the code.

Codecov Report

Merging #696 into master will increase coverage by 0.26%.
The diff coverage is 76.92%.

@@            Coverage Diff             @@
##           master     #696      +/-   ##
==========================================
+ Coverage   73.89%   74.16%   +0.26%
==========================================
  Files          36       36
  Lines        3812     3789      -23
==========================================
- Hits         2817     2810       -7
+ Misses        995      979      -16

Impacted Files
Coverage Δ

src/model/light_source_model.jl
53.57% <ø> (ø)
:arrow_up:

src/SDSSIO.jl
93.23% <ø> (-0.03%)
:arrow_down:

src/DeterministicVI.jl
88% <0%> (ø)
:arrow_up:

src/GalsimBenchmark.jl
100% <100%> (ø)
:arrow_up:

src/joint_infer.jl
70.52% <100%> (ø)
:arrow_up:

src/AccuracyBenchmark.jl
43.37% <50%> (+0.08%)
:arrow_up:

src/ParallelRun.jl
40.27% <75%> (+0.27%)
:arrow_up:

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 7712bf9...8432045. Read the comment docs.

Great! Bonus: code base is now 56 lines shorter.


Keyfinder (by Ibrahim Sha'ath) cask broken

Here's the cask that is currently broken:
https://github.com/caskroom/homebrew-cask/blob/master/Casks/keyfinder.rb
Here's the existing code:
cask 'keyfinder' do
  version :latest
  sha256 :no_check

  url 'http://www.ibrahimshaath.co.uk/keyfinder/bins/KeyFinder-OSX.zip'
  name 'KeyFinder'
  homepage 'http://www.ibrahimshaath.co.uk/keyfinder/'
  license :gpl

  app 'KeyFinder-OSX/KeyFinder.app'
end

The code is currently broken, because the link to download the latest version is currently:
http://www.ibrahimshaath.co.uk/keyfinder/bins/KeyFinder-OSX-2-1.zip
So the code should look like this:
cask 'keyfinder' do
  version :latest
  sha256 :no_check

  url 'http://www.ibrahimshaath.co.uk/keyfinder/bins/KeyFinder-OSX-2-1.zip'
  name 'KeyFinder'
  homepage 'http://www.ibrahimshaath.co.uk/keyfinder/'
  license :gpl

  app 'KeyFinder-OSX/KeyFinder.app'
end

Or, and this would actually be a much better solution, if Ibrahim Sha'ath wants to change the link on his website so that the link in the existing code (http://www.ibrahimshaath.co.uk/keyfinder/bins/KeyFinder-OSX.zip) always points to the latest version, that would ensure that the cask doesn't break again the next time he releases an update.
I'm a little new to this github thing, so if anyone knows how to tag him so he sees this, that would be very helpful.

We prefer versioned downloads, so we’ll solve this another way.

Fixed in https://github.com/caskroom/homebrew-cask/pull/20444.


Request feature to set background color for ST2Web

I should like to be able to set different background colors for ST2web for our different environments like dev, prod etc. to make it easier to see which on we're working in

This is an https://github.com/StackStorm/st2web request.  @armab are you able to move it, I don't have the required permissions.


Completely disable path checking when style is 'none'.

When setting ZSH_HIGHLIGHT_STYLES[path]='none' I think the whole path checking should be disabled. Slightly related to #144, I am having some problems with a FUSE mount, too.
What happens is that when I'm midway writing the path the FUSE mount keeps trying to find the path that doesn't exist. And this is pretty slow.
I don't really need the path highlighting and tried to set the style to 'none' but noticed that it doesn't cut it.
So _zsh_highlight_main_highlighter_check_path() should return 1 immediately if path style is set to 'none'.
_zsh_highlight_main_highlighter_check_path()
{
  [[ "$ZSH_HIGHLIGHT_STYLES[path]" == "none" ]] && return 1
  ...

Or if there's another way, please tell me. :)

Does none mean "fall back to zle_highlight[default]", or does it mean "fall back to the terminal emulator's default colors (overriding zle_highlight[default])"?
(My reading of zshzle(1) is that none means the latter, but as implemented it means the former.)
If it's the former, then omitting a none entry from region_highlight is a no-op, and your suggested fix makes sense.  If it's the latter, we still need to add something to region_highlight, but we could use [[ $ZSH_HIGHLIGHT_STYLES[path] = $ZSH_HIGHLIGHT_STYLES[default] ]] as the short-circuit condition, as in the following patch.
diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh
index f7aa2a9..c4a77c2 100644
--- a/highlighters/main/main-highlighter.zsh
+++ b/highlighters/main/main-highlighter.zsh
@@ -745,6 +745,19 @@ _zsh_highlight_main_highlighter_highlight_path_separators()
 # Else, return non-zero (and the contents of $REPLY is undefined).
 _zsh_highlight_main_highlighter_check_path()
 {
+  # Early exit if possible.
+  #
+  # The assignment to $styles must enumerate every value $REPLY may have at
+  # return from this function.
+  {
+    local -aU styles
+    styles=( "$ZSH_HIGHLIGHT_STYLES[default]" "$ZSH_HIGHLIGHT_STYLES[path]" "$ZSH_HIGHLIGHT_STYLES[path_prefix]" )
+    if (( $#styles == 1 )); then
+      # Pretend it's not a path; won't affect the output
+      return 1
+    fi
+  }
+
   _zsh_highlight_main_highlighter_expand_path $arg;
   local expanded_path="$REPLY"

The diff currently breaks all tests, see path-redirection2.zsh for why. (So it needs some test harness changes)
Action items:

[ ] Follow up with upstream about meaning of none.  Clarify zshzle(1).
[ ] Implement a way to disable path highlighting, e.g., the above patch.


Allow for ordering of communication channels

I'm not sure what the logic to ordering the channels is in the ID user interface right now, but I would prefer it his could be controlled by the local community. In the case of Belgium, the Facebook group is on top, but that's really the least lively channel we offer. With imagery, we have a "best imagery source" thing; maybe we could mark one of the channels as "most active for this area" and show that on top.
(I would understand if we want to keep this out of scope, because it opens the door to so many discussions. Having them show randomized would be good too I think.)

Oh good suggestion @joostschouppe and definitely in scope.  I wanted to open this as an issue and forgot to.
Agree we should add a sort parameter or some way to let local communities control the order.
For comparison the current code in iD just hardcodes some numbers (so I could ship something quickly) and I would love to get rid of it:
    // All else being equal, rank more "social" communities higher
    // (anything not in this list receives no adjustment)
    var COMMUNITYRANK = {
        'meetup': +5,
        'slack': +4,
        'facebook': +3,
        'reddit': +2,
        'forum': -2,
        'mailinglist': -3,
        'irc': -4
    };

Has this been implemented? How does it work?

Has this been implemented? How does it work?

Nothing implemented yet..

Weighted shuffling could be used to stop people from complaining about an unfair treatment which always lists some channels first. More randomness is fun as you might discover new stuff over time (assuming a user won’t read the entire list anyway)
https://www.npmjs.com/package/weighted-shuffle

Weighted shuffling

I think a fixed predictable sorting which can be customised for each region is best. In my opinion the channels with the most engagement would be at the top, and the less frequently used ones at the bottom, so we help direct people to where there is more activity and hence best likely to get help.

Can this be resolved by having something like reach_estimate with some number of people reachable via this channel?

I was thinking we would just add a generic sounding field like order so local communities can order the entries according to whatever criteria they want to use.

This will not work well - you can do that arbitrarily within one shape, but for two overlapping ones you have to provide a common criteria. Same holds for global communities: are they above (as there are more people) or below (as they are less specific) local ones?

you can do that arbitrarily within one shape, but for two overlapping ones you have to provide a common criteria. Same holds for global communities: are they above (as there are more people) or below (as they are less specific) local ones?

reach_estimate might not be the best measure. For example, a chat room might be only 20 people, but where all the conversation is happening. While the mailing list might have 200 members but have only one message every other month or two. I think the community-filled 'order' is probably best. And indeed, starting with the most local channels first.


Feature Request: Scan() and Find() should set DB.Error if no records are returned

Describe the feature
Scan() and Find() (and friends) should set DB.Error to ErrRecordNotFound if no records are found.
Motivation
Using Scan() to read one column from one row is problematic if I want to determine that a record was fetched successfully, because it's possible that a row exists but the column is empty (i.e. checking against the zero value wont work). Using a struct with First() is rather silly if I want to read just one column, and is down right not practical if that column is user specified. Checking DB.RowsAffected adds (seemingly) extra lines and is redundant as there's an already existing error specifically for this.
Related Issues
#3193

designed for this.

designed for this.

So what do I do?

I think you might doing something wrong, If you really need this, you could use the following code:
DB.Clauses(RaiseErrorOnNotFound{}).Find(&users)

type RaiseErrorOnNotFound struct {
}

func (RaiseErrorOnNotFound) ModifyStatement(stmt *Statement) {
	stmt.RaiseErrorOnNotFound = true
}

func (RaiseErrorOnNotFound) Name() string {
	return ""
}

func (RaiseErrorOnNotFound) Build(clause.Builder) {
}

func (RaiseErrorOnNotFound) MergeClause(*clause.Clause) {
}

Why cant Scan(), Find(), Pluck(), etc. just set ErrRecordNotFound? It's an already existing error, and it allows me to easily check that I got a result.


Backend can't seem to distinguish between lens columns and underlying table columns

SELECT r.a, r.b, r.c, s.b, s.d from sane_r, s where r.b = s.b;

I'm guessing this is supposed to throw an error because we are trying to project attributes of r when joining sane_r, but it doesn't. Need to put in some checks in percolate?

This seems like a SqlToRA bug.  I'll write a typechecker tomorrow that should fix this.


Chunks plugin

new chunks plugin that creates chunks.json file in the build directory.
contents of the file will be like:
{
  "client": {
    "css": [
      "/static/css/bundle.36d04d42.css"
    ],
    "js": [
      "/static/js/bundle.d3433edb.js",
      "/static/js/bundle.d3433edb.js.map"
    ]
  },
  "home": {
    "css": [
      "/static/css/home.2f97ec2d.chunk.css"
    ],
    "js": [
      "/static/js/home.82beecb0.chunk.js",
      "/static/js/home.82beecb0.chunk.js.map"
    ]
  },
  "about": {
    "css": [],
    "js": [
      "/static/js/about.1e639ac9.chunk.js",
      "/static/js/about.1e639ac9.chunk.js.map"
    ]
  }
}

this file is useful for code splitting and SSR, we can determine which chunk is for which request before we start to call renderToString. similar to Collecting chunks in Loadable Components but the approach I took in this PR is faster since there is no need to wait for async data (getInitialProps) and renderToString to do all their job. the only thing that we need is req.url and chunkName so we can find JS and CSS chunks for the current request.
How It's Faster?
In SSR world we usually do two things:

fetch data before start rendering
render to string (HTML)

this process can take about half a second.
we can be smart and use this gap (from the moment request fired to the time which the first byte received by the browser) and tell the browser to download CSS and JS files for the current request while the server is handling the request.
other solutions like react-loadable and loadable-components can't do this.
Read this comment for more inforamtion
How it's working?

we need to add webpackChunkName to our async components, we should also store chunkName in a variable so we can find the chunk in the next steps.

// routes.js

import Home from './Home';

export default [
  {
    path: '/',
    exact: true,
    component: Home,
  },
  {
    path: '/about',
    exact: true,
    component: () => import(/* webpackChunkName: "whatever" */ './About'),
    chunkName: 'whatever',
  },
  {
    path: '/contact-us',
    exact: true,
    component: () => import(/* webpackChunkName: "ContactUs" */ './Contact'),
    chunkName: 'ContactUs',
  },
];

you can develop a babel plugin that do this for you too, like this plugin.

find out the current request is for which component. I used react-router so I will call the matchPath method.

const matched = matchPath(req.url, routes)

so matched variable will contain an object like this:
{
  path: '/contact-us',
  exact: true,
  component: () => import(/* webpackChunkName: "ContactUs" */ './Contact'),
  chunkName: 'ContactUs',
}

getAssets() this is simple a function that returns a property from an array

const { scripts, styles } = getAssets(matched.chunkName, chunks)

function getAssets(chunkName, chunks) {
  const scripts = chunks[chunkName].js || [];
  const styles = chunks[chunkName].css || [];
  return { scripts, styles };
}

it's that much EZ :)
you can find the implemented version of the above code at https://github.com/jaredpalmer/after.js/pull/237.
TODO

update all examples with the new chunk assets

@jaredpalmer check if variable names and changes are good. if everything is ok just call me to update examples.

I'm going to merge this, later we can update the examples.
if I update the examples right now no one can't use it since we are not going to release a new version of razzle today

@nimaa77 did you add an example? Can't see it but I might well be missing it

@andycloke oh sorry didn't notice your message here :)
checkout https://github.com/jaredpalmer/after.js we are using it mostly in that library


Function Plugin should forbid local run for jdk 13

Function team is working on java 11 now, we will support java 11 in the near future.

Will support this in next relesae.


Angular uib-tabset/uib-tab wrong ActiveTab index if tabs are created dynamically

Hi All,
Please help us with one of the major issue of active tab index in tabset. Below is our requirement, and active tab index is used works fine if the tab created are later the current index.
There is a list of array with Name,Sortorder which is used to bind the tab here with order according to Sortorder column. This array is dynamic and sortorder is preset already.
In DB
Name Sortorder
A        1
B        2
C        3
D        4
From the application user can add any name at any point of time. Like D first then B then C. so on every add completion, the array list is appended and ordered with sortorder column and keep the current active index as intact as the same tab should be open eventhough other tabnames are added. Everything works fine untill we add names like B first, C then , D later. But if the sequence followed is different, the active tab index generated goes wrong somehow(it always take +1 of the current scope ) with which to show current active tab as open is not working for us.

Closing this as this project is no longer being maintained, per the README and the ISSUE_TEMPLATE.


Add markdown linting to dev container

Supports #9.

[x] Docs
[x] Package installed
[x] Alias for usage
[x] Usage tested

Well, that one was quick. :)


[loc][Query][vscode-cmake-tools] Localizability of 0; "package.c_cpp.debuggers.symbolLoadInfo.exceptionList.description"

Hello developers,
please help localization team to answer question from translator.
In case translator is not sure about context/meaning/localizability of string we raise a question.
Source:
List of filenames (wildcards allowed) separated by semicolons ';'. Modifies behavior of LoadAll. If LoadAll is true then don't load symbols for libs that match any name in the list. Otherwise only load symbols for libs that match. Example: "foo.so;bar.so"
File Name:
Src\vscode-extensions\vscode-cmake-tools.xlf
Query:
Do these sentences mean the following?
The list of filenames (wildcards allowed) separated by semicolons ';'.modifies behavior of LoadAll.
Also does "lib" mean library?

This looks like a cpptools string.  Moving to cpptools.


refactor: open hz code for being called

What type of PR is this?

refactor
Check the PR title.

[ ] This PR title match the format: <type>(optional scope): <description>
[ ] The description of this PR title is user-oriented and clear enough for others to understand.

(Optional) Translate the PR title into Chinese.
开放 hz 的代码，以供调用
(Optional) More detail description for this PR(en: English/zh: Chinese).

en: convert package 'internal' to 'internal_pkg'
zh(optional): 将 internal 包改为 internal_pkg
Which issue(s) this PR fixes:

Remove internal_pkg directly?

Yes. Use the ".doc" file to declare that this package may not be backward compatible and should not be relied upon. kitex, protoc-gen-go all use a similar approach

Remove internal_pkg directly?

Yes. Use the ".doc" file to declare that this package may not be backward compatible and should not be relied upon. kitex, protoc-gen-go all use a similar approach


Increment version for monitor releases

Increment package version after release of Azure.Monitor.OpenTelemetry.AspNetCore

This was a hotfix. Don't need the increment version. We will continue working in main branch.


How to prevent the agent from moving to empty area in SUNCG env?

Hi!
I'm trying to run RL on SUNCG env but many SUNCG scenes have large empty area.
When the agent random-walks in the early stage of learning,
the agent stuck in these areas very frequently.
This causes the observations consist of only background (green color)
Is there any way to keep the agent stay in meaningful area? (area containing objects, walls, ETC)

How to have the agent learn to move about intelligently is part of current visual navigation research.  In some ways, empty rooms should be "easy" since there is very few things to bump into.
You  can consider having your agent build an mental map of the environment or giving it richer signals about the environment.  You can use the measurements to get offset and distance to goal (please see https://github.com/minosworld/minos/blob/master/API.md#return-object).  In addition to the color sensor you can also add additional sensors (such as depth) that will help your agent.


Clover Build Update?

Hi! Are you still gonna release 5104 or are you waiting for 5105 due to the transition to C++?

Just finished fixing Clobber, so new builds should be out momentarily.


Add VS "like" commit characters to Razor's completion item.

The new RazorCommitCharacter construct allows us to specify whether or not to insert the commit character on insert. Unfortunately this PR doesn't go alllll the way and remove the hacked code to inject VS commit characters onto our O# completion items yet (that's coming).
Updated call sites to take in the new Razor commit character construct
Added a new RazorCompletionOptions record struct that can indicate when snippest are supported. In all relevant scenarios they are; however, in the legacy editor they're not so we need an option to know if we should use snippet based commit characters or non-snippet based commit characters.
Updated tests

Fixes #6339

I'm approving, but I really don't like all of these initializers that now to array.Select().ToArray(). Can you create a helper method, or custom collection class or something, so most of them can just be new CommitCharacterList( "=", " ") etc.

Ended up adding a helper RazorCommitCharacter.FromArray(...). The endpoints still look a bit yucky because they go from RazorCommitCharacter -> string[] but that's only temporary till I move that over to the new VS protocol APIs.


Flaky failure in c-benchmarks: what():  Failed to connect in time

https://github.com/skupperproject/skupper-router/runs/6239120583?check_suite_focus=true#step:9:3138
65: BM_TCPEchoServerLatency1QDRThread           3.13 ms        0.013 ms           10
65: terminate called after throwing an instance of 'std::runtime_error'
65:   what():  Failed to connect in time

This happened on CentOS 8 as flaky failure after enabling IPv6 on lo. This may be just a coincidence.

https://en.wikipedia.org/wiki/Mokusatsu

Closing this for now


Suggestion for improvement of Links color in Hero Section

Actual Behaviour
The colors selection of the links on the Hero Section is poor

Expected Behaviour

When we hover on the Links in the Hero Section the text's color should change to some other constrasting color
-in this case maybe pink or light green is good
It is just a suggestion for UI improvement of the Hero section

I myself want to work on this issue

I myself want to work on this issue


build: update groovy wrapper for Gradle 7

Description
This pull request updates the groovy wrapper to a version compatible with Gradle 7. It includes the changes in MovingBlocks/groovy-wrapper#7.
Testing
If groovyw runs again, then it should work. You can try testing with groovyw module get formic.
Notes
The groovy wrapper is (and always has been) a binary file, so I'd only merge this if you trust it. If there's a way of making a reproducable build of the wrapper, then that would help for validation.

I've now officially also made a formal new wrapper release - https://github.com/MovingBlocks/groovy-wrapper/releases/tag/v2.1.0 :-)
Can move forward either merging this or dropping in the new jar from there then fixing up #673 👍
Feel free to go for it or I'll circle around to this eventually, just out of time for tonight :-)

I managed to reproduce the groovy-wrapper.jar contents from the release byte-for-byte, so I've changed to using that one. It's easier to replicate than the one I uploaded before. Thanks for the release! I'll merge this in now.
(The build failed for unrelated reasons.)


Fix HostLibraryTests on gfx942

Test errors were caused by missing sample libraries. gfx942 cannot load libs marked gfx940. This change adds sample libs for gfx942.

Thanks for your quick update!!!
Can we have gfx941 as well?

Added sample lib for 941 tests as well. Tested locally on 941 and 942 and all tests passed.


[ExternalMetadataBuilder] Fix extra "target" key in output JSON.

We were emitting two "target" keys, one with the library name and one with the symbol name. Remove the library name, as we don't want it anyway.

@swift-ci please test


remove ipyvolume

this will not be included in analysis. But we will still add it to -tag for individual application.

@tacaswell


M3-1927 updating caption variants to body text variant

These are residuals from the mobile typography update.

Coverage remained the same at 32.173% when pulling a0b19f93d57a6a20867cdac51f858e074bb0c515 on WilkinsKa1:M3-1927-text-variants into 5b28ad58d5c5fa525f850f227d2a9e4c69669377 on linode:release-0.40.0.


Pass work separately of context

Work is the thing that produces the context, so it'd be nice to pass it around separately.

@bot-gradle test QFL please.

OK, I've already triggered QuickFeedbackLinux build for you.

@wolfs I've merged this because it was trivial, please let me know if you want some changes.


Request text too long, text length cannot exceed 1000

Hi, does anyone have any ideas or solutions to increase the response token length?

I dont know how to increase but I'm using the system prop of the ai package. The result is pretty good.
  const result = await streamText({
    model: openaiModel("gpt-4"),
    system:
      `You are a virtual assistant.` +
      `Your answers can not have more than 100 words.`,
    messages,
  });

Yes, it's good, but I have a report that exceeds 1000 tokens, and I need to increase the token limit to accommodate the entire report.

I dont know how to increase but I'm using the system prop of the ai package to limit the response. The result is pretty good.
  const result = await streamText({
    model: openaiModel("gpt-4"),
    system:
      `You are a virtual assistant.` +
      `Your answers can not have more than 100 words.`,
    messages,
  });

Yes, it's good, but I have a report that exceeds 1000 tokens, and I need to increase the token limit to accommodate the entire report.


Orchestrator

:warning: DO NOT MERGE YET PLS :warning:

Waiting for @Byllie to merge his branch

Non?


feat(construct rewrite): rewrite aws-kinesisfirehose-s3

Issue #, if available:
Closes Issue #850
Description of changes:
A rewrite will allow:

Decoupling source and destination - we can write aws-kinesisfirehose-s3 and aws-kinesisfirehose-amazonredshift once, and aws-lambda-kinesisfirehose and aws-iot-kinesisfirehose once and mix and match sources and destinations. As the number of sources and destinations grows, this will reduce the number of constructs required to fulfill more use cases.
More functionality - the new version will allow us to add helpers such as a transformation Lambda function to be applied to all incoming data, rather than going through all the steps required to create a processor (the construct will do that work).

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

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: fdd72c196de3a395d2bb67beedee89ba9096755f
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 8f0df8dfee21e43c6c022d82c2ba53b6ebfff589
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

We're changing plan on this - we're going to add functionality to the current construct rather than rewrite/replace. That will get a new PR in the new year.


Improving performance of parallel_stereo

After some fixes a while ago, parallel_stereo now correctly load-balances (as many threads overall are being used as there are cores, and if one process exits another takes its place).
However, I noticed that stereo_tri can perform a lot better if started with bigger tiles than what is used for stereo_corr. Presumably that's because starting fewer processes with more work per process can reduce the total I/O. However, for stereo_corr we want small tiles, as that one is not I/O intensive but very CPU intensive, so bigger tiles would make it too coarse-grained.
Also, for ISIS we may still want smaller tiles for stereo_tri as then stereo_tri is single-threaded. But even there, 2 processes with bigger tiles may perform better than 4 processes with smaller tiles, again because of I/O.
Should we use variable-size tiles?
Also, all processes started by parallel_stereo write to disk full-sized images, though they have only no-data outside the current tile being processed. We assumed overhead because of that would be small since LZW compresses the empty areas well. But we never tested if this scales. Does 500 processes writing to disk to 500 files bog the system down even though very little writing happens to each file most of the time?
In short, a careful analysis of parallel_stereo performance is required, both on Pleiades (which has distributed storage, and on a local machine, such as lunokhod1).

I studied this in more detail. Apparently stereo_tri and even stereo_rfne are not so good at taking advantage of using many threads. What gives the most performance is to use as many processes as there are cores and with one thread per process (for the corr, rfne, and tri steps). This is now the default. The user can always set --processess and --threads-multi if desired to tweak these.


Activation of environment not working within Dockerfile

Hi Will,
This is nonresidentalien from Stackoverflow. Please find the content of the dockerfile and the env.yaml below. Thanks again for your help, much appreciated.

RUN pip3 install --upgrade pip --no-cache-dir \
    && pip3 install -r /app/alphafold/requirements.txt --no-cache-dir \
    && pip3 install --upgrade --no-cache-dir \
      jax==0.3.25 \
      jaxlib==0.3.25+cuda11.cudnn805 \
      -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

USER $MAMBA_USER

and env.yaml:
name: env
channels:
  - conda-forge
dependencies:
  - conda = 4.13
  - openmm=7.5.1
  - cudatoolkit=11.1.1
  - pdbfixer
  - pip
  - python=3.8

The only thing I notice is the name mismatch between the -n base and the name: env directive in yaml.

Hi @lhangart. Your SHELL ["/bin/bash", "-o", "pipefail", "-c"] command is clobbering the shell configuration that mambaorg/micromamba performs. If you remove that line, then pip should be found.
For  reference, this issue started on  this StackOverflow question.

Thanks Will, that solved the problem!