translations: Extract JS strings by parsing the AST.

https://chat.zulip.org/#narrow/stream/58-translation/topic/Missing.20string.3F/near/983090
Testing Plan:
Manual testing
$ diff orig.json final.json
1a2
>   " __already_subscribed_users__ are already subscribed.": "",
2a4
>   "(__message_retention_days__ days)": "",
7a10,17
>   "/dark (Toggle night mode)": "",
>   "/day (Toggle day mode)": "",
>   "/fixed-width (Toggle fixed width mode)": "",
>   "/fluid-width (Toggle fluid width mode)": "",
>   "/light (Toggle day mode)": "",
>   "/me is excited (Display action text)": "",
>   "/night (Toggle night mode)": "",
>   "/poll Where should we go to lunch today? (Create a poll)": "",
18a29
>   "
The stream __stream_name__ does not exist.

Manage your subscriptions on your Streams page.
": "",
63a75
>   "Alert word \"__word__\" added successfully!": "",
75a88
>   "Allow message content in missed message emails": "",
89a103
>   "Anyone can join; anyone can view complete message history without joining": "",
129a144
>   "Check your email (%s) to confirm the new address.": "",
146a162
>   "Convert emoticons before sending (:) becomes \ud83d\ude03)": "",
179a196
>   "Default is __language__. Use 'text' to disable highlighting.": "",
251a269,270
>   "Error: Cannot deactivate the only organization administrator.": "",
>   "Error: Cannot deactivate the only user. You can deactivate the whole organization though in your Organization profile settings.": "",
268a288
>   "File size must be < __max_file_size__Mb.": "",
306a327,328
>   "Include content of private messages in desktop notifications": "",
>   "Include message content in missed message emails": "",
307a330
>   "Include organization name in subject of missed message emails": "",
310a334
>   "Invalid slash command. Check if you are missing a space after the command.": "",
312a337
>   "Invitation link: __link__": "",
355a381,382
>   "Message #__- stream_name__ > __- topic_name__": "",
>   "Message __- recipient_name__ (__- recipient_status__)": "",
363a391
>   "Messages in this stream will be automatically deleted after __retention_days__ days.": "",
373a402,403
>   "Must be invited by a member; new members can only see messages sent after they join; hidden from non-administrator users": "",
>   "Must be invited by a member; new members can view complete message history; hidden from non-administrator users": "",
380a411
>   "Narrow to __- message_recipient__": "",
391a423
>   "New members are not allowed to post to this stream.
Permission will be granted in __days__ days.": "",
473a506
>   "Password should be at least __length__ characters long": "",
538a572
>   "Saved. Please reload for the change to take effect.": "",
552a587
>   "Send mobile notifications even if I'm online (useful for testing)": "",
584a620
>   "Sort by estimated weekly traffic": "",
585a622
>   "Sort by number of subscribers": "",
627a665
>   "This stream does not exist or is private.": "",
628a667
>   "This time is in your timezone. Original text was '__timestamp__'.": "",
658a698
>   "Unread count summary (appears in desktop sidebar and browser tab)": "",
664a705,706
>   "Update successful: Subdomains allowed for __domain__": "",
>   "Update successful: Subdomains no longer allowed for __domain__": "",
730a773,775
>   "You are searching for messages that are sent by more than one person, which is not possible.": "",
>   "You are searching for messages that belong to more than one stream, which is not possible.": "",
>   "You are searching for messages that belong to more than one topic, which is not possible.": "",
738a784
>   "You must be an organization administrator to create a stream without subscribing.": "",
751a798
>   "__count__ users are subscribed to #__title__": "",
754a802
>   "__last_active_date__": "",
758a807
>   "__wildcard_mention_token__ (Notify stream)": "",
762a812
>   "group private messages with __recipient__": "",

Closing as obsoleted by #18075.  Thanks for your work on this @aero31aero!


Return type of the mutate function

The mutate function, the first item in the tuple returned from useMutation() is defined to be of the type:
https://github.com/Astrocoders/reason-apollo-hooks/blob/b5d9c32ad7f7691f7d4f0d6887465815c9b7e26e/src/ApolloHooksMutation.re#L64-L73
When called, the mutation promise is handled here:
https://github.com/Astrocoders/reason-apollo-hooks/blob/b5d9c32ad7f7691f7d4f0d6887465815c9b7e26e/src/ApolloHooksMutation.re#L143-L155
Seems to me that mutation('a) should return a promise resolving to result('a) instead:
https://github.com/Astrocoders/reason-apollo-hooks/blob/b5d9c32ad7f7691f7d4f0d6887465815c9b7e26e/src/ApolloHooksMutation.re#L13-L16
The mutation('a) type was added in https://github.com/Astrocoders/reason-apollo-hooks/pull/39/commits/d4cc1a5b270cf7271f37431642b16a2e7270e2af.

I agree.
We're currently handling mutation responses like so:
      mutate(~variables=input', ())
      |> Js.Promise.then_(
           (
             response:
               ReasonApolloHooks.Mutation.controlledVariantResult({
                 .
                 "response": option(string),
               }),
           ) =>
           switch (response) {
           | Data(x) =>
             switch (x##response) {
             | Some(id) => Js.Promise.resolve(Belt.Result.Ok(id))
             | None =>
               Js.Promise.resolve(Belt.Result.Error(`noClientIdInResponse))
             }
           | NoData => Js.Promise.resolve(Belt.Result.Error(`emptyResponse))
           | Error(errors) =>
             Js.Promise.resolve(Belt.Result.Error(`apolloErrors(errors)))
           /* This variant shouldn't contain Loading and Called */
           | Loading
           | Called => Js.Promise.resolve(Belt.Result.Error(`emptyResponse))
           }
         )

Good catch!

Good catch!

Yeah. Thanks @leeor!
@fakenickels
It's a quick fix, so I can open a PR later today

@fakenickels It's a quick fix, so I can open a PR later today

"He said and did it a week later"

Haha no problem!

@fakenickels I didn't use the correct keyword in the PR yesterday, so this wasn't automatically closed.


cmd/cue: trim output differs with defaulted extendable list and k8s constraints

What version of CUE are you using (cue version)?

$ cue version
cue version 0.4.0 darwin/amd64

What did you do?
I was searching for a way to merge lists that exist on the same key-path and came up with this ineffective attempt (still havent found one). Happened to run a trim on it.
// ./test.cue

import apps_v1 "k8s.io/api/apps/v1"

deployment: [string]: apps_v1.#Deployment // works if line removed
deployment: [string]: spec: template: spec: containers: [...{
	env: [...] | *[
		{name: "version", value: "value"},
		{name: "-", value:       "-"}, // works if line removed
		...,
	]
}]

deployment: ancile: spec: template: spec: containers: [{
	env: [
		{name: "version", value: "value"},
	]
}]

cue trim test.cue

What did you expect to see?
No error.
What did you see instead?
$ cue trim test.cue
  {
      deployment: {
          ancile: {
              metadata?: {}
              spec: {
                  replicas?: null | int32
                  selector?: null | {}
                  template: {
                      metadata?: {}
                      spec: {
                          volumes?: []
                          initContainers?: []
                          containers: [
                              {
                                  ... // 5 identical elements
                                  ports?: []
                                  envFrom?: []
                                  env: [
                                      {
-                                         name: "version"
+                                         name: string
                                          value: "value"
                                          valueFrom?: null | {}
                                      }
                                  ]
                                  resources?: {}
                                  volumeMounts?: []
                                  ... // 12 identical elements
                              }
                          ]
                          ephemeralContainers?: []
                          restartPolicy?: string
                          ... // 30 identical elements
                      }
                  }
                  strategy?: {}
                  minReadySeconds?: int32
                  ... // 3 identical elements
              }
              kind?: string
              status?: {}
              ... // 1 identical elements
          }
      }
  }
Aborting trim, output differs after trimming. This is a bug! Use -i to force trim.

Forcing the trim results in this. Note the missing env var name.
// ./test.cue

import apps_v1 "k8s.io/api/apps/v1"

deployment: [string]: apps_v1.#Deployment // works if line removed
deployment: [string]: spec: template: spec: containers: [...{
	env: [...] | *[
		{name: "version", value: "value"},
		{name: "-", value:       "-"}, // works if line removed
		...,
	]
}]

deployment: ancile: spec: template: spec: containers: [{
	env: [
		{value: "value"},
	]
}]

Trim works if one or the other of the marked lines are removed.

Dropping the now meaningless v0.4.x milestone. We have relabelled this from trim to roadmap/trim to indicate that a fix for this issue (and indeed all trim issues) requires a more substantial piece of work.


Prepare version 0.33.2

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[ ] Tests for the changes have been added (for bug fixes / features)
[x] Documentation has been added / updated (for bug fixes / features)
[x] HISTORY.rst has been updated (with summary of main changes)

[x] Link to issue (:issue:number) and pull request (:pull:number) has been added.

[ ] bumpversion patch has been called on this branch
[ ] The relevant author information has been added to .zenodo.json

What kind of change does this PR introduce?

Preparation for a point release (v0.33.2)

Does this PR introduce a breaking change?
Nope.
Other information:

Mention the 3.7 drop as breaking change?


https://mysite.dev returns default template

Hello,
Prax is returning some default template application instead of actual application , attached the screen shot for your reference,  I have executed the below command to run my application. Kindly let me knw if i missed anything

prax link
prax start

Do you have something else listening on port 80? Like Apache or nginx?
You might need to
sudo apache2ctl stop


MM-15377 Match spacing and new lines of posts to markdown preview

Summary
This will fix new lines not showing up in the markdown preview as well as the spacing being different from posts.
Ticket Link
https://mattermost.atlassian.net/browse/MM-15377

@jwilander Was this cherry-picked?

Not yet, I'll do so shortly


@angular/cli imports a library that is not permissively licensed.

Bug Report or Feature Request (mark with an x)
- [ x ] bug report

Versions.
1.0.3
Repro steps.
The regenerator-runtime library, imported by common-tags/babel-runtime, is licensed under Facebook's BSD-With-Patent-Termination license.
> yarn why regenerator-runtime

info This module exists because "@angular/cli#common-tags#babel-runtime" depends on it.
info Disk size without dependencies: "44kB"
info Disk size with unique dependencies: "44kB"
info Disk size with transitive dependencies: "44kB"
info Number of shared dependencies: 0

External ticket opened here: https://github.com/babel/babel/issues/5898
Desired functionality.
@angular/cli and its dependencies should be permissively licensed.

I just checked the my CLI install, and my generated project and it seems to be MIT licensed:
kamik@T460p MINGW64 /d/work/angular-cli (master)
$ npm ls regenerator-runtime
<EMAIL_ADDRESS>D:\work\angular-cli
+--<EMAIL_ADDRESS>| `--<EMAIL_ADDRESS>|   `--<EMAIL_ADDRESS>
kamik@T460p MINGW64 /d/work/angular-cli (master)
$ npm info<EMAIL_ADDRESS>license
MIT

Am I missing something here?
I'd like to add that we actually test licenses as well: https://github.com/angular/angular-cli/blob/master/scripts/test-licenses.js

Right - so regenerator-runtime lives in the regenerator project here, and doesn't actually contain its own license:
https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime
Looking at git-blame, and history, it appears that the license field itself was added during project creation. However, it is a part of the regenerator project as a whole, and the entire repository is licensed via these two file:
https://github.com/facebook/regenerator/blob/master/LICENSE
https://github.com/facebook/regenerator/blob/master/PATENTS
So, while the published package says one thing (which the test script is picking up), the "authoritative" source says something else, which is what our lawyers are going off of. As IANAL, I'm guessing that they made the decision that the more restrictive of the two is accurate.
It would probably be worth reaching out to the regenerator team for a clarification, and a separation of the projects if that's the necessary. Let me go ask.

Asked for clarification here: https://github.com/facebook/regenerator/issues/298

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


Use cupy.random in kmeans example

numpy.random.choice is the biggest bottleneck in this example.
With this fix, "GPU" time reduced to about a half in my environment.

Jenkins, test this please

Jenkins CI test (for commit 2aa36d8b0ca867a3b5be10495bf7118ecf895c6c, target branch master) succeeded!


Transport endpoint is not connected

`
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:20,746] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:22,748] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:24,750] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:26,752] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:28,754] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:30,756] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:32,759] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:34,761] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected
[2024-06-06 18:55:36,763] [ERROR] [LogProcessingWorker._safe_log_impl] An error occurred while sending events: [Errno 107] Transport endpoint is not connected
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 138, in _fetch_events
self._fetch_event()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 160, in _fetch_event
self._event = self._queue.get(block=False)
File "/usr/lib/python3.10/queue.py", line 168, in get
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 241, in _flush_queued_events
self._send_events(events)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/worker.py", line 304, in _send_events
self._transport.send(events, use_logging=use_logging)
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 103, in send
self._close()
File "/usr/local/lib/python3.10/dist-packages/logstash_async/transport.py", line 138, in _close
self._sock.shutdown(socket.SHUT_WR)
OSError: [Errno 107] Transport endpoint is not connected`
Logstash has data and can write data normally, but this issue is frequently prompted.
error  500/30s

This looks like https://github.com/eht16/python-logstash-async/issues/89 which should be fixed in 3.0.0.
What version do you use?

I've got a question regarding this issue, because it happens to me as well, and I try to check if I understand it correctly:
In https://github.com/eht16/python-logstash-async/blob/master/logstash_async/worker.py#L226 there's a bit of code that handles exception while sending - if there's any exception, it will requeue the messages.
try:
                events = [event['event_text'] for event in queued_events]
                self._send_events(events)
            # Log connection and network errors as warnings as they are rather harmless
            except NETWORK_EXCEPTIONS as exc:
                self._safe_log(
                    'warning',
                    'An error occurred while sending events: %s',
                    exc)
                self._database.requeue_queued_events(queued_events)
                break
            except Exception as exc:
                self._safe_log(
                    'exception',
                    'An error occurred while sending events: %s',
                    exc,
                    exc=exc)
                self._database.requeue_queued_events(queued_events)
                break

But in my case, and the example above, the exception is thrown on self._sock.shutdown(socket.SHUT_WR), which for UdpTransport happens here: https://github.com/eht16/python-logstash-async/blob/master/logstash_async/transport.py#L133
If i get it right, it means that whenever the socket can't be closed (because for example it's already gone OS-wise) events are requeued, despite the fact they were sucessfully sent, yes? That's what I seem to be observing, as I get a stream of duplicate events using UdpTransport, that can be only stopped with container restart and them being dropped from the in-memory queue.

@micurbanski @sibo-git
Thanks for the analysis. Could you have a look at #100 if it makes things better?
I'm not sure whether this is really a good idea, it will simply ignore the error. I see that requeueing already sent events is annoying but at this point, especially with UdpTransport, we probably can never know if the events were really sent or if they are still on the sending side in the socket queue or anywhere in between.
But maybe it's good enough.

Ok, it seems to help, meaning, the events are not requeued on socket close error, and we obeserve that we don't get duplicates anymore. So thanks for that!
Just one more thing, since it still bogs down our Sentry with that Error on closing the transport socket warning - can it be made configurable? I understand that it is important to throw warning by default, but we would like to be able to made conscious decision about not throwing that warning :)


Fix Dockerfile from crlf to lf line style

Update Dockerfile from crlf to lf line style

Not sure why it matters? Could you clarify and motivate your PR please?

Just refine. It looks better when all files in one crlf line breaks :)
All files are saved linux style - only with "LF" at the end of the line. Only the Dockerfile file is saved in windows break line style with endings "CRLF"


Neon number dart

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Dart program to check if a number is neon number added
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Fixed #5416

@bhav09 Changes made


Use individual package DBs for nix haskell libs

This changes the handling of package db's for haskell targets by using a tset to maintain a dependency tree for nix haskell packages.
For a haskell module, -package-db flags are passed for each of the required haskell toolchain libraries including their dependent package dbs.
This way only the the minimally required haskell nix packages are build by buck2 that are needed for a specific haskell target.

Cleanup _common_compile_args
Add packages field to HaskellToolchainInfo
Add HaskellPackagesInfo record
Use package db from toolchain packages info
Add HaskellPackagesInfoTSet and a dynamic provider
Add dynamic field to HaskellPackagesInfo
Add package dependencies to HaskellLibraryInfo
Add packages reduction for HaskellLibraryInfoTSet
Add package_db projection to HaskellPackageDbTSet`
Use individual package dbs from resolved package db info
Pass resolved package info to get_packages_info for metadata
Use individual package db in haskell_binary rule
Use individual package db in haskell_library rule

Yes, correct. I think we could also go a step further and leverage the toolchain_deps information from the md file and only pass the package dbs that are used by the current module when compiling. WDYT?

That could avoid unnecessary metadata re-runs, which is a good thing.
 It reminds me, we're only creating this catalog file to be able to map from interface path to package name and from package name to package-id.

We need the mapping from interface path to package name to identify per module package dependencies, see https://github.com/MercuryTechnologies/the-culture-repo/pull/130.
We need the package-id to avoid issues with hidden Cabal package components, see https://github.com/MercuryTechnologies/buck2-prelude/pull/5.

If these issues could be resolved on the GHC side then we wouldn't need this catalog at all.

If ghc -M could tell us which package each module depends on by package-name and id then we wouldn't need the catalog for per module package dependencies.
If we can either work out a better way to obtain the package-name to package-id mapping in Starlark or fix https://github.com/MercuryTechnologies/the-culture-repo/issues/131 on the GHC side then we wouldn't need the catalog for the package-name to package-id mapping.

cc @tek

* If `ghc -M` could tell us which package each module depends on by package-name and id then we wouldn't need the catalog for per module package dependencies.

That seems like a quick addition to our current dep-json change!

* If we can either work out a better way to obtain the package-name to package-id mapping in Starlark or fix [Incompatibility with hidden internal packages the-culture-repo#131](https://github.com/MercuryTechnologies/the-culture-repo/issues/131) on the GHC side then we wouldn't need the catalog for the package-name to package-id mapping.

For the first alternative, are you thinking about an algorithm you can implement in your build or the addition of a CLI command to GHC that prints the package-ids?


Update TeraSky url

What this PR does / why we need it
Failing urllint check w/o www
Which issue(s) this PR fixes
N/A
Describe testing done for PR
N/A
Special notes for your reviewer
N/A

@vmware-tanzu/tce-owners anyone available to merge this? the urllint check fails on all our PRs and this will help with that


Exercises for Ch.Tactics

[Based on #84]
In this PR

Created exercises & solutions for Ch.Tactics
Fixed some markdown acorss the book

Links to the latest versions of updated files

Ch.Tactics Exercises, Solutions

These are the only files that changed significantly, all other changes is markdown stuff, doesn't need to be reviewed.

@JLimperg, @hargoniX, could you take a look at this please?

I'm not sure about the exercises here, they use (IMHO, I am not a tactic developer) very bad style. You explicitly rely on names of meta variables and you tell users to create hypothesis with fixed names instead of user provided names. This is exactly the type of stuff we do not want to have for macro hygiene and proof stability.
Other than that I don't know if we want to have the formatting changes, I am neutral to them if someone has an opinion they should speak up.

@hargoniX, ofc that shouldn't be done like that in real tactic development, that's explicitly for the sake of an exercise! I assume that's clear, but can add a comment.

I have used this argument for "Explicitly for the shake of exercise" before myself :D the people do much prefer proper examples (although I don't have nice suggestions for those right now) instead of artificial ones (like I originally had myself too).

I think the 1st exercise is essential because it's super useful for the mental model (literally connects proof terms & tactics) and stretches your usual assumptions about what tactics can do (they can wreak havoc, change all mvar usernames, randomize goal positions, affect the hypotheses of multiple goals at a time, etc., it's just a social convention that they don't), 2&3&4 just make people memorize the function names, 5th + additional exercises could be more real-world yeah.

I see that there are now a ton of formatting changes here as well, did you make sure that the book still compiles without looking weirder than before?

Yep, formatting changes are here so that the book looks less weird than previously.

I am still not sure about the tactic writing style here, in particular you mentioned you wanted to make step 5 more real-worldy but it does still do the wrong thing of claiming its own names. It wouldn't even be too hard to do it with a user provided name would it? Just andify ab ac as a_and_b or something like that.

I agreed it would be nice to have more real-worldly exercises as additional exercises (and instead of 5th), but I can't contribute more time to this right now.
Really I think the 1st&2nd exercises are essential for afforementioned reasons, and other exercises can go for the time being, we can indeed substitute them for something more real-worldly later. Removed the 4th and 5th.

I guess it's better to have at least some exercises, let's merge this for now and incrementally improve later on.


DPTForDepthEstimation class could not be matched

Hi, I was trying out depth estimation model via bumblebee (below is the code block):
{:ok, midas} = Bumblebee.load_model(
  {:hf, "Intel/dpt-hybrid-midas",
  cache_dir: bumblebee_cache_dir,
  auth_token: hf_token
  }
)

But I got an error:
** (RuntimeError) could not match the class name "DPTForDepthEstimation" to any of the supported models, please specify the :module and :architecture options
    (bumblebee 0.1.2) lib/bumblebee.ex:287: Bumblebee.load_spec/2
    (bumblebee 0.1.2) lib/bumblebee.ex:401: Bumblebee.load_model/2
    /Users/prthamesh/pratos-workbook.livemd#cell:vempkrw5zvjaonanodmtiiyi3xed4cza:1: (file)

I'm assuming this error is coz bumblebee is not on parity with huggingface libraries. Is there any way I can directly import .ckpt models or a way to contribute to bumblebee wrt the depth estimation model?

Hi @pratos! I believe you are correct, we would need to implement the model in Bumblebee. You can look at how other models are implemented for guidance. Perhaps resnet as a starting point?

Thanks for the info 😄! I'd see if I can get time to dive into this. I just started learning Elixir & don't have much experience writing pytorch arch from scratch! But would be an interesting exercise for me to go through 😀

Moved to #188.


Upadted Nav links and Blog styling

Changes made in this PR

Updated dropdown links with correct path , now clicking on the link would re-direct to the correct page, earlier it was an empty path.
Updated blog UI in Blog.html

Screenshot -

Do I need to raise issue first, then wait for the assigned tag? can I directly solve the issue and make a PR. will it be acceptable for GSSOC23 .As I am beginners so have this doubt.


Update exception handling for distributedMV when overwrite

What changes are proposed in this pull request?
Add better cancel handling for distributedMV. Before this change,  we would have the situation that we lose our destination file if we get interrupted soon after we delete the destination file but are not able to write a new file. After this change, we would at least keep our old destination file until the write succeeds. There's still the situation that we fail at the final step for renaming/deleting the destination file so we have both new & old destination file or we only have new destination file with tmp name but we hardly can do anything about it. So when the user retry he would see temporary files.
Why are the changes needed?
make distributedMV more reliable.
Does this PR introduce any user facing changes?
After this, when we get exception when writing tmp file, we would try to remove the tmp file(this may fail)
when weget exception when delete old file file, we would left both old file & tmp file in the directory.
when weget exception when rename tmp file, we would left tmp file in the directory.

@jja725 can you fix the tests and use the assumption that remove and rename fails much less frequently than copy to implement this?

can you include the tmp files the user expect to see in the PR description in the very rare cases? otherwise LGTM

can you include the tmp files the user expect to see in the PR description in the very rare cases? otherwise LGTM

done

alluxio-bot, merge this please


[FIX] date & time parsing fixes

[x] updates deps
[x] fixes parseTime helper (wrong day getDay() => getDate())
[x] fixes parseDateTime helper (wrong month as JS Date months are 0-based)

Merged


Added plant and disease scanner layouts.

The disease scanner layout page is accessible through a button in the add plants layout  page.

Two inter-connected layout xml pages added:
1.Add plants scanner
2.Disease scanner

@Pawananjani1A  Build is failed in your app due to the invalid name of assets. Kindly fix them and push them again.

I cannot see any XML files in your PR.


[Run][Plugin Manager][Indexer Plugin] Drive detection warning not shown

We have now implemented a plugin management for PT Run into the settings ux. (PR #9872; Issue #5273)
Bug
While testing the new plugin manager in the (now) deleted branch "feature/plugin-manager", it seems that the "drive detection warning" didn't shown anymore for me.
Note: I will reinvestigate this now on master.

This is a remaining work item form PR #9872.

@mykhailopylyp
I can reproduce this on a fresh build of an up to date clone of master on my newly installed Windows machine.

I have found a second issue and open a new issue for it.

@htcfreek
Do you have at least two drives?

@htcfreek
Do you have at least two drives?

Damn. No. Forgot this.

@htcfreek
So it can be closed as not relevant, right?

@htcfreek
So it can be closed as not relevant, right?

@mykhailopylyp
If it works on your system as as expected, yes.


examples: bump images version

Updated dependency containers (traefik, mariadb, redis):

traefik:2.10.4 -> 2.11.0
mariadb:10.5 -> 11.3.2
redis:4.0-alpine -> 7.2.4-alpine

Tested the traefik configuration with anonaddy:1.0.8.
That's also the reason why I didn't bump nginx, as I didn't test that example.
I only updated the tested images.

Okey, that failed test build is weird.
It says
Error: buildx bake failed with:
 ERROR: failed to solve: failed to do request:
 Head "https://registry-1.docker.io/v2/docker/dockerfile/manifests/1":
 net/http: TLS handshake timeout

Sounds like a hiccup with some docker api?

I was under the impression github would have pr-squasing somewhere in the UI. Oh well.
Edit:
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests

Under "Pull Requests", select Allow squash merging. This allows contributors to merge a pull request by squashing all commits into a single commit. The default commit message presented to contributors when merging is the commit title and message if the pull request contains only 1 commit, or the pull request title and list of commits if the pull request contains 2 or more commits.

@crazy-max anything missing here for a merge?


Fix for LTC

Thank you so much for that PR. I can't merge it since i have a huge commit underway and some of the files you modified will gave me conflicts 100% with y current modifications. I integrated all your code though within all the code i already modified so everything will be integrated with my next commit lol
Have a great weekend :fire: :rocket:


noUselessHref: provide option to remove all hrefs

#31 Introduced some href filtering, but I wonder - do we really need to show those hrefs at all? I think they just make it harder to read the text.
Please provide an option to skip all href generation. For now I'm using this hack:
function noUselessHref(doc) {
	Array.from(doc.querySelectorAll(`a`))
		.filter(function(el) {
			return true;
		})
		.forEach(el => el.classList.add('no-href'));
}

The idea with the hrefs was to produce PDFs that could be printed without losing where the links point to. However, I agree in some link-heavy contexts, this can be bothersome.
The easiest way to achieve this is with the --css option:
percollate pdf --css "a:after { display: none }

(I'm not at the computer right now, but it should work. I'll also add it to the README.)


Implement groups accumulator for stddev and variance

Which issue does this PR close?

Closes #12094.
Rationale for this change
Hopefully improve performance of queries using stddev and variance aggregates.
I did not find any of the current benchmarks containing stddev and/or variance. So I modified clickbench query 31 and 32 to use STDDEV instead of AVG. And these were the results:
Before
Running benchmarks with the following options: RunOpt { query: None, common: CommonOpt { iterations: 5, partitions: None, batch_size: 8192, debug: false, string_view: false }, path: "/home/eejbyfeldt/dev/apache/datafusion/benchmarks/data/hits.parquet", queries_path: "/home/eejbyfeldt/dev/apache/datafusion/benchmarks/queries/clickbench/queries.sql", output_path: Some("/home/eejbyfeldt/dev/apache/datafusion/benchmarks/results/implement-groups-accumulator-for-stddev/clickbench_1.json") }
Q0: SELECT "SearchEngineID", "ClientIP", COUNT(*) AS c, SUM("IsRefresh"), STDDEV("ResolutionWidth") FROM hits WHERE "SearchPhrase" <> '' GROUP BY "SearchEngineID", "ClientIP" ORDER BY c DESC LIMIT 10;
Query 0 iteration 0 took 3945.8 ms and returned 10 rows
Query 0 iteration 1 took 3993.8 ms and returned 10 rows
Query 0 iteration 2 took 4016.9 ms and returned 10 rows
Query 0 iteration 3 took 3991.3 ms and returned 10 rows
Query 0 iteration 4 took 4024.2 ms and returned 10 rows
Q1: SELECT "WatchID", "ClientIP", COUNT(*) AS c, SUM("IsRefresh"), STDDEV("ResolutionWidth") FROM hits WHERE "SearchPhrase" <> '' GROUP BY "WatchID", "ClientIP" ORDER BY c DESC LIMIT 10;
Query 1 iteration 0 took 6551.8 ms and returned 10 rows
Query 1 iteration 1 took 6642.9 ms and returned 10 rows
Query 1 iteration 2 took 6618.6 ms and returned 10 rows
Query 1 iteration 3 took 6680.7 ms and returned 10 rows
Query 1 iteration 4 took 6568.3 ms and returned 10 rows
Done

After
Running benchmarks with the following options: RunOpt { query: None, common: CommonOpt { iterations: 5, partitions: None, batch_size: 8192, debug: false, string_view: false }, path: "/home/eejbyfeldt/dev/apache/datafusion/benchmarks/data/hits.parquet", queries_path: "/home/eejbyfeldt/dev/apache/datafusion/benchmarks/queries/clickbench/queries.sql", output_path: Some("/home/eejbyfeldt/dev/apache/datafusion/benchmarks/results/implement-groups-accumulator-for-stddev/clickbench_1.json") }
Q0: SELECT "SearchEngineID", "ClientIP", COUNT(*) AS c, SUM("IsRefresh"), STDDEV("ResolutionWidth") FROM hits WHERE "SearchPhrase" <> '' GROUP BY "SearchEngineID", "ClientIP" ORDER BY c DESC LIMIT 10;
Query 0 iteration 0 took 2144.0 ms and returned 10 rows
Query 0 iteration 1 took 2155.1 ms and returned 10 rows
Query 0 iteration 2 took 2095.3 ms and returned 10 rows
Query 0 iteration 3 took 2100.2 ms and returned 10 rows
Query 0 iteration 4 took 2238.7 ms and returned 10 rows
Q1: SELECT "WatchID", "ClientIP", COUNT(*) AS c, SUM("IsRefresh"), STDDEV("ResolutionWidth") FROM hits WHERE "SearchPhrase" <> '' GROUP BY "WatchID", "ClientIP" ORDER BY c DESC LIMIT 10;
Query 1 iteration 0 took 3075.6 ms and returned 10 rows
Query 1 iteration 1 took 3062.4 ms and returned 10 rows
Query 1 iteration 2 took 3081.9 ms and returned 10 rows
Query 1 iteration 3 took 3105.1 ms and returned 10 rows
Query 1 iteration 4 took 3101.6 ms and returned 10 rows
Done

What changes are included in this PR?
An implementation of GroupsAccumulator for the stddev and variance aggregates.
It extracts the core logic from NullState::acummulate to a free function accumulate to make it reusable when implementing GroupsAccumulators that do not need separate null tracking as can be determine from some other value (in this case the count).

Are these changes tested?
Added more test cases in aggregates.slt

Are there any user-facing changes?
No.

Thanks @eejbyfeldt. Do you have any before/after benchmark results?

Thanks @eejbyfeldt. Do you have any before/after benchmark results?

Yes some benchmarks sounds like a great idea. I updated the PR description with something basic queries.
FAs far as I could tell stddev/varaiance was not used in any current benchmarks, so I modified two clickbench queries to use stddev instead of avg. The queries were choosen based on them having big improvements when the GroupsAccumulator api was first implemented (according to https://www.influxdata.com/blog/aggregating-millions-groups-fast-apache-arrow-datafusion/) so they are probably showing best case improvement.

I'll plan to merge this tomorrow unless there are additional comments

Thanks again @eejbyfeldt  and @Dandandan


Exercise 11.2.2

I think it is better to use intersect instead of union because the question is asking what do they have in common, even though the results are the same.
Thanks,

You're correct, it should be intersection. Thanks! It's fixed now.


patch service finalizers

While working on https://github.com/giantswarm/giantswarm/issues/6028 I noticed that the finalizers are fucked up on some services on the CP. At some point we changed the watch in here and did not clean up afterwards. The patch resource introduced here should just run once and then be dropped again. I will test this.

Don't need to merge this as the g8s-prometheus deployment got it out already. Closing.


upsc.txt

Pedagogical State University Ion Creanga from Chisinau

Hello,
I have some Java virtual lessons with the students from Pedagogical State University Ion Creanga from Chisinau and i need to add upsc.txt into repository.
thanks

@vitalie8484 Pull request merged. Thank you!


Logging is intermittent

We've enabled this feature for all of our gateways.  All of the gateways have days or weeks gaps in logging, even though we know refreshes are occurring constantly on these gateways.  I just enabled the last one this past Friday and so far it only has data from Friday and this is Monday.  This is regarding the below link.  I can't tell from github if it took me to the correct page to report issues on this topic.
https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-performance

@SteveWest1 Thanks for your feedback. For product related issues and ideas, visit https://ideas.powerbi.com/forums/265200-power-bi?category_id=161724.
Closing the issue.


[blemesh] CLI reset does not seems to clear all the Mesh credentials

How to reproduce:

Configure mesh node to use FCB and Settings
Provision
Call 'reset' command from mesh shell
Restart board and call 'init' in mesh shell

Expected: mesh starts advertising as non provisioned node

After investigating this issue I found that the problem was caused by misleading logs and is not a bug. FCB does not overwrite values that were previously written. Instead, it writes a new record with a different value (in this case a null value). So when restoring data from flash it looks like the keys are restored and then cleared, because this is the order in which those operations were stored. It can be a bit misleading at first glance.


core-list-dart: it´s not possible access variable (@observable) outside data attribute

Original (and more details) on:
http://stackoverflow.com/questions/28544403/core-list-dart-how-access-variable-observable-outside-data-attribute
I'm trying to apply a filter through a variable (asDateTime) for a given column to the core-list-dart.
This variable is outside of the content data attribute (model). When I access this variable, an error is throws.
Exception: Uncaught Error: Error evaluating expression '(model.dataVencimento | asDateTime)': Class '_ListModel' has no instance getter 'asDateTime'.
NoSuchMethodError: method not found: 'asDateTime' Receiver: Instance of '_ListModel' Arguments: []
Second comments on stackoverflow, in JS it´s works. Apparently this is a bug.

core-list-dart: bindings in the template passed to the list are evaluated against _ListModel.
In Polymer.js they are evaluated against the context where the List element itself was added.
I stumbled upon this when porting this Polymer example https://github.com/zoechi/contacts-app
where I needed a workaround for the filter getUrl at https://github.com/robdodson/contacts-app/blob/master/app/elements/contacts-page/contacts-page.html#L62 (my version https://github.com/zoechi/contacts-app/blob/master/lib/elements/contacts-page/contacts-page.html#L62)
This isn't an issue for me because the workaround was easy enough but it's obvious that core-list and core-list-dart behave differently.

We could possibly add a parent attribute or something to add support for this? I am really surprised that this works in polymer js though, for instance if you look at the documentation, only index, selected, and model should be valid variables within that template (and this is how it works in dart):
List item templates should bind to template models of the following structure:
{
  index: 0,           // data index for this item
  selected: false,    // selection state for this item
  model: {            // user data corresponding to data[index]
    /* user item data  */
  }
}

I was surprised as well. I think some more explicit way (like parent) would be better than it's currently in Polymer.js. because when you know what's going on (how the core-list-dart grabs the template and uses it) its unexpected that such bindings still works. From a more naive point of view it's probably expected. But I think it is quite handy for some use cases.

Ya, I definitely agree that there should be some way to access the parent scope.

@sigmundch how do you feel about adding the parent property to _ListModel?

Interesting.
I'm totally in favor of adding something, I'm just not sure what that is. I might be missing something obvious here, but if we add the .parent in _ListModel, what would it's value be? In our polymer-expressions scopes, the scopes are separate from the models, so it might look like a model, but then I'm not sure if the normal lookup will work there (we actually need the polymer expressions engine to do the lookup for us?).
Another option: instead of replacing the model in the template instance, we create a new scope (basically convert _ListModel into an actual polymer expressions scope). This would be something different than the _ModelScope, since _ModelScope doesn't have a parent scope (see https://github.com/dart-lang/polymer-expressions/blob/master/lib/eval.dart#L188).
Depending on what we do, this might require some changes in polymer-expressions to be able to have these new kind of scopes available.

We could assign it to this.templateInstance.model, which I think gives us what we want


JavaScript Handler function

I need a JavaScript Handler function. Do you have any plans to develop it?

+1

#56 brings js handler live


update i18n doc for .travis.yml

This change is

Coverage remained the same at 99.329% when pulling 39923b3b52c8dc8c53e8a0a944b7b52557c4fd7e on JasonYCHuang:i18n-readme-update into 75cf8106e6d7660da7d5283a274245ecdd5fae62 on shakacode:master.

See comment.

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

docs/basics/i18n.md, line 92 at r1 (raw file):

If the test are executed in Travis CI, make sure that rake is executed before npm run build in .travis.yml. npm run build depends on translations.js & default.js, and they are generated or updated by rake or rails server.

Not everybody uses Travis for CI
When tests run, they ensure that the the timestamp on the generated files are newer than the source files, or else the build script runs.
We should probably check the i18n files right before building the webpack files. This would cover the case for CI as well, so we would not need this.
In the case of the Rails server, it's fine to ensure that the i18n is built before the server starts, and the people just have to know to restart the server to pick up changes. Otherwise, we might want a specific rake task that can runReactOnRails::LocalesToJs.new

The bottom line is that this small comment, right after the clearly numbered sections, is a bit confusing. We should "just make this work".

Comments from Reviewable

Agree with your comment.
The best way is to make sure i18n files are generated before building the webpack files.
I18n files are generated by rails, and I have no idea how to execute rake files from javascript files.
Could you give me some hint?

Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

Comments from Reviewable

@JasonYCHuang Here is where we configure the test helper to check webpack files are ready:

https://github.com/shakacode/react_on_rails/blob/master/lib/react_on_rails/test_helper.rb#L34

The best way to ensure that the localization files are built before we build the webpack files is to have the npm scripts that build the webpack files first call some rake task. If you depend on the environment, that will probably run the code you put at server startup. However, I'm not sure that we always want the code at server startup. You'd know better.
Here's a rake task that just depends on server startup info:
desc "Pick a random user as the winner"
task :winner => :environment do
  puts "Yes -- we did something. Describe it!"
end

http://stackoverflow.com/q/7044714/1009332

@JasonYCHuang Should we close this PR? Per #717

@justin808 Yes, please close this PR.


Can't Disable Custom Cop

This issue showed up when we updated from Rubocop 0.40.0 to both 0.41.0 or 0.41.1. We made no other change than to bump the minor version of the gem.
We have a line in the top of our Gemfile to disable one of our custom cops which is we don't want to run on that file. Before updating the gem everything worked - the custom cop was disabled for the Gemfile. After updating to 0.41.x, we received both a notice that the disabled cop was unnecessary and then the failures as the unnecessary cop ran.

To test, I created a custom cop and a test file.
test.rb
# rubocop:disable MyCops/DontRunThisCop

puts "This will trigger MyCops/DontRunThisCop"

dont_run_this_cop.rb:
module MyCops
  class DontRunThisCop < ::RuboCop::Cop::Cop
    def on_send(node)
      add_offense(node, :expression, "Why Does This Cop Run?")
    end
  end
end

Commandline
$ bundle exec rubocop /path/to/test.rb --require /path/to/my_cops/dont_run_this_cop.rb -D
Expected behavior
Expected rubocop to inspect file and find 0 offenses
Actual behavior
Inspecting 1 file
W

Offenses:

test.rb:1:1: W: Lint/UnneededDisable: Unnecessary disabling of MyCops (unknown cop).
# rubocop:disable MyCops/DontRunThisCop
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test.rb:3:1: C: MyCops/DontRunThisCop: Why Does This Cop Run?
puts "This will trigger MyCops/DontRunThisCop"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1 file inspected, 2 offenses detected

Steps to reproduce the problem
Create the files above, run the commandline using version 0.41.1 of rubocop
RuboCop version
Include the output of rubocop -V:
$ rubocop -V
0.41.1

I think #3250 could fix this.

@mikegee Thank you for the suggestion. I tried using the latest rubocop
From the $ bundle install output I saw
Using rubocop 0.41.1 from https://github.com/bbatsov/rubocop.git (at master@6df06af)
Reran the steps above, same result -- looks like the cop is still flagged as unnecessary when disabled and continues to run the cop on the remainder of the file.

#3250 isn't released yet. https://github.com/bbatsov/rubocop/blob/master/CHANGELOG.md

Sorry michael, should have specified that I pointed my Gemfile to the rubocop master when I reran the test.

On Jul 1, 2016, at 11:27 AM, Michael Gee<EMAIL_ADDRESS>wrote:
#3250 isn't released yet. https://github.com/bbatsov/rubocop/blob/master/CHANGELOG.md
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I tested the example here with the current master and was unable to reproduce the problem.

@dwcaraway: Please confirm if you can still reproduce this on current master. If not, feel free to close. 😀


Added UniRx Reactive Extensions

More info if you've never used Rx; http://www.slideshare.net/neuecc/unirx-reactive-extensions-for-unityen

This looks pretty great, thanks!


Added Main.sublime-menu file.

Hello.
Please check this small enhancement pr.
It's goal to add next context menu to Sublime Preferences menu.
Before this enhancement I had next situation

Aftter adding this Menu

And now it's possible to access keybingings and package settings

Sublime text version - 4
Sublime build - 4143

I think it should be Clojure Sublimed in file paths, not Clojure-Sublimed?

Ok I released it with a space, will see how it works when installed from Package Control. It’s hard to tell from local install

Works for me with a space instead of a dash, so I’m gonna leave it like that


Testing of data processing for all the datasources (Smoke-Testing)(Azure)

This issue is not covered in v5.0 and needs to be analysed.

This will be address in 5.0


ng generate: "input.mergeMap is not a function"

Versions
Angular CLI: 1.6.0
Node: 8.9.1
OS: win32 x64
Angular: 5.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router, upgrade

@angular/cli: 1.6.0
@angular/flex-layout: 2.0.0-rc.1
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.4.2
webpack: 3.10.0

Repro steps

Install Angular and CLI as described above
Try ng generate component test

Observed behavior

ng generate ... crashes with the error message input.mergeMap is not a function.
The error happens for the generate command in general, not just for ng g c for example
No files are created
The complete output is:

C:\Users\Enzo\WebstormProjects\test-project>ng g c test
input.mergeMap is not a function
TypeError: input.mergeMap is not a function
    at Object.callRule (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular-devkit\schematics\src\rules\call.js:78:18)
    at SchematicImpl.call (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular-devkit\schematics\src\engine\schematic.js:35:23)
    at Promise (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\tasks\schematic-run.js:73:23)
    at new Promise (<anonymous>)
    at Class.run (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\tasks\schematic-run.js:72:16)
    at Class.run (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\commands\generate.js:152:33)
    at resolve (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\ember-cli\lib\models\command.js:261:20)
    at new Promise (<anonymous>)
    at Class.validateAndRun (C:\Users\Enzo\WebstormProjects\test-projectnode_modules\@angular\cli\ember-cli\lib\models\command.js:240:12)
    at Promise.resolve.then.then (C:\Users\Enzo\WebstormProjects\test-projectnode_modules\@angular\cli\ember-cli\lib\cli\cli.js:140:24)

Desired behavior

The ng generate command should generate files and adjust app.module.ts as usual

Additional information

Opened a new issue as described in #8782

Can you please post the results of running:
npm ls rxjs

Also, could you post the repository to github and share?

I have the same error :(
+--<EMAIL_ADDRESS>| +--<EMAIL_ADDRESS>| | --<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>

I was having the same error. This was the result from npm ls rxjs:
├─┬<EMAIL_ADDRESS>│ ├─┬ UNMET PEER DEPENDENCY<EMAIL_ADDRESS>│ │ ├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>│ │ └──<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>I ran:
npm update
And now it works.

Thanks! I ran yarn upgrade and now works :)

Output of npm ls rxjs:
<EMAIL_ADDRESS>C:\Users\Enzo\WebstormProjects\test-project
+--<EMAIL_ADDRESS>| `--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>
As suggested, I ran npm update, but this had no effect for me.

@Brocco I can not publish the original repo, but I created a new project and copied the exact dependecies:
https://github.com/evolkmann/test-ng-generate
In this particular setup, the error happens and can be reproduced.

yarn upgrade it work for me


 Sorry about that!
https://github.com/comtrya/comtrya/commit/dabfb771f860ca71eca9015dfbbd0c9aca5df1e0


Confusion around /stats when looking at it on the first day

Hi,
I just installed zulip chat, and I need to use the stats pages.
I don't see any updates on graph, and I have this messages :
WARN [] User from realm  attempted to access /stats, but the computed start time: 2018-01-18 10:05:42.749436+00:00 (creation time of realm) is later than the computed end time: None (last successful analytics update). Is the analytics cron job running?
Can you please tell me where I'm wrong ?
Thank you

@patrickELS there's an hourly cron job, /etc/cron.d/update-analytics-counts, that should be generating these data.  So, if this was your first hour after installation, it might not have run yet (though that page's handling of this situation could be better).  Is that what's going on?
The other possibility is some weird timezone bug...

Thank you.
It's part working now.
When I launch this command line it's working, I see graphs, but not on crontab.
But I've got only graph on "Messages sent over time"
All the others are still empty.
Even if I re-do this command line.

If this is a new server, you might need to wait a day -- some of the stats are daily totals, and so there might be 0 data points yet.

You're right.
It's working as you said.
Thank you @timabbott

@rishig I think this is probably a sign that we need a more reasonable first-day experience for this page (just showing "no data yet" or having a single data point for each stat that's 0 would be fine).

yeah, can probably be closed in favor of #3865.
https://chat.zulip.org/#narrow/stream/9-issues/topic/.233865.20.2Fstats.20page.20for.20new.20users is also relevant.
Thanks for reporting @patrickELS!

I guess #3865 has a plan that's a lot of work and would make things quite nice; I think potentially splitting out the just "not enough data" warning from that would be a good quick thing to fix.

yup, that was clarified in the czo discussion, though probably should have been added to the issue as well (will do so now). The V1 is overlaying "Not enough data; please check back in a couple of days."


Email is not returned in claims

I have added email permission to azure and added email scope to my app, yet email is never returned in the claims.

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

ID: a4c264c0-0c5c-298e-bb45-9b4891c8d162
Version Independent ID: ce69b990-0b4c-abda-cd2d-68f85cd8031e
Content: Microsoft Account external login setup with ASP.NET Core
Content Source: aspnetcore/security/authentication/social/microsoft-logins.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.

I followed the docs on that page .. it didn't work. Therefore my feedback is that the docs need more information on this kind of use-case.


Race Detector Not Getting Triggered

What version of Go are you using (go version)?
1.10.1
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN="..."
GOCACHE="..."
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="..."
GORACE=""
GOROOT="..."
GOTMPDIR=""
GOTOOLDIR="..."
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build698559401=/tmp/go-build -gno-record-gcc-switches"

What did you do?
In this code a byte array is being accessed concurrently (but no single item in the array is being accessed concurrently).
Why -race is not showing an error? https://play.golang.org/p/IeA4npcemf5
What did you expect to see?
An error shown by race detector.
What did you see instead?
No error shown by race detector.

Please explain where and why do you think there's a race. I cannot find it.

but no single item in the array is being accessed concurrently

This is the key point.  Each array element is its own variable.  There is no data race (two concurrent accesses to the same variable, at least one of which is a write).


Invalid JWT Token when using Service Account JSON

OS type and version

macOS Sierra running a Debian Jessie Docker Container

Python version and virtual environment information python --version

CPython 3.5.0, no virtual environment

google-cloud-python version pip show google-cloud, pip show google-<service> or pip freeze

google-cloud-bigquery==0.23.0

Stacktrace if available

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/code.py", line 91, in runcode
    exec(code, self.locals)
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python3.5/site-packages/celery/local.py", line 191, in __call__
    return self._get_current_object()(*a, **kw)
  File "/app/warehouse/celery.py", line 53, in __call__
    return super().__call__(pyramid_env["request"], *args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/celery/app/task.py", line 379, in __call__
    return self.run(*args, **kwargs)
  File "/app/warehouse/packaging/tasks.py", line 58, in compute_trending
    query.run()
  File "/usr/local/lib/python3.5/site-packages/google/cloud/bigquery/query.py", line 364, in run
    method='POST', path=path, data=self._build_resource())
  File "/usr/local/lib/python3.5/site-packages/google/cloud/_http.py", line 299, in api_request
    headers=headers, target_object=_target_object)
  File "/usr/local/lib/python3.5/site-packages/google/cloud/_http.py", line 193, in _make_request
    return self._do_request(method, url, headers, data, target_object)
  File "/usr/local/lib/python3.5/site-packages/google/cloud/_http.py", line 223, in _do_request
    body=data)
  File "/usr/local/lib/python3.5/site-packages/google_auth_httplib2.py", line 187, in request
    self._request, method, uri, request_headers)
  File "/usr/local/lib/python3.5/site-packages/google/auth/credentials.py", line 116, in before_request
    self.refresh(request)
  File "/usr/local/lib/python3.5/site-packages/google/oauth2/service_account.py", line 318, in refresh
    request, self._token_uri, assertion)
  File "/usr/local/lib/python3.5/site-packages/google/oauth2/_client.py", line 143, in jwt_grant
    response_data = _token_endpoint_request(request, token_uri, body)
  File "/usr/local/lib/python3.5/site-packages/google/oauth2/_client.py", line 109, in _token_endpoint_request
    _handle_error_response(response_body)
  File "/usr/local/lib/python3.5/site-packages/google/oauth2/_client.py", line 59, in _handle_error_response
    error_details, response_body)
google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT Signature.', '{\n  "error" : "invalid_grant",\n  "error_description" : "Invalid JWT Signature."\n}')

Steps to reproduce

Try to query anything in BigQuery using a service account with "Viewer" permissions and GOOGLE_APPLICATION_CREDENTIALS pointed to a JSON file downloaded when creating the service account.

Code example

bq = bigquery.Client()
query = bq.run_sync_query(
        """ SELECT project,
                   IF(
                        STDDEV(downloads) > 0,
                        (todays_downloads - AVG(downloads))/STDDEV(downloads),
                        NULL
                    ) as zscore
            FROM (
                SELECT project,
                       date,
                       downloads,
                       FIRST_VALUE(downloads) OVER (
                            PARTITION BY project
                            ORDER BY DATE DESC
                            ROWS BETWEEN UNBOUNDED PRECEDING
                                AND UNBOUNDED FOLLOWING
                        ) as todays_downloads
                FROM (
                    SELECT file.project as project,
                           DATE(timestamp) AS date,
                           COUNT(*) as downloads
                    FROM `the-psf.pypi.downloads*`
                    WHERE _TABLE_SUFFIX BETWEEN
                        FORMAT_DATE(
                            "%Y%m%d",
                            DATE_ADD(CURRENT_DATE(), INTERVAL -31 day))
                        AND
                        FORMAT_DATE(
                            "%Y%m%d",
                            DATE_ADD(CURRENT_DATE(), INTERVAL -1 day))
                    GROUP BY file.project, date
                )
            )
            GROUP BY project, todays_downloads
            HAVING SUM(downloads) >= 5000
            ORDER BY zscore DESC
        """
    )
query.use_legacy_sql = False
query.run()

First, thanks for all the work you do on packaging @dstufft!
@jonparrott Any ideas? @dstufft This probably belongs in https://github.com/GoogleCloudPlatform/google-auth-library-python/, but let's discuss here first.
I've seen an issue where an invalid grant was caused by the clock on the local machine being out of sync by 4+ hours with the real world, but even being wrong by 65 minutes (in either direction) would make one of the "issued at" and "expires" timestamps in the JWT be impossible.

Yeah this is a weird one. I'll try to reproduce.
On Mon, Mar 6, 2017, 8:38 AM Danny Hermes<EMAIL_ADDRESS>wrote:

First, thanks for all the work you do on packaging @dstufft
https://github.com/dstufft!
@jonparrott https://github.com/jonparrott Any ideas? @dstufft
https://github.com/dstufft This probably belongs in
https://github.com/GoogleCloudPlatform/google-auth-library-python/, but
let's discuss here first.
I've seen an issue where an invalid grant was caused by the clock on the
local machine being out of sync by 4+ hours with the real world, but even
being wrong by 65 minutes (in either direction) would make one of the
"issued at" and "expires" timestamps in the JWT be impossible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3100#issuecomment-284453228,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPUcwogK28lENp134BjxTWz6c0nW4czks5rjDaOgaJpZM4MTr5e
.

@dstufft I can't reproduce. :(
I can't really debug any further without asking you for sensitive information. Do you mind reaching out to me via email or hangouts? I'm jonwayne at google.com.

Sure.

As per email conversation with @dstufft, closing for now.

Hello,
I have the same problem. I am developing an application with C #.
How did you find a solution?
Thank you.

Having the same problem as well.

@liangjacky can you check your system clock? This is a very strange error and is difficult to reproduce.

@jonparrott what about my system clock? Is there a specific command I should run? Sorry for being so layman, but I think the time on my macbook is correct?

Basically just ensuring it's not too far off. Are you getting the exact same error? The code you posted in your comment appears to be javascript not Python.

I just synced my time with time.apple.com and and it didn't seem to change anything. Thanks for the suggestion though.

Sorry, it was an issue with the key I was using. Please ignore my comments.

I am getting the same error. I am running the following code on jupyter notebook with the version:
Python 3.6.1 :: Anaconda 4.4.0 (x86_64)
I checked my system time is synced with Apple server. Here is the code:
from google.cloud import storage
import google.auth

# creds = compute_engine.Credentials()
credentials, project = google.auth.default()
client = storage.Client(credentials=credentials)
# client = storage.Client()
bucket = client.list_buckets()
print(bucket)

for b in bucket:
    print(b)

And here is the stack trace:
---------------------------------------------------------------------------
RefreshError                              Traceback (most recent call last)
<ipython-input-35-9982667b4ccb> in <module>()
----> 1 for b in bucket:
      2     print(b)

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/iterator.py in _items_iter(self)
    216     def _items_iter(self):
    217         """Iterator for each item returned."""
--> 218         for page in self._page_iter(increment=False):
    219             for item in page:
    220                 self.num_results += 1

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/iterator.py in _page_iter(self, increment)
    245         Yields :class:`Page` instances.
    246         """
--> 247         page = self._next_page()
    248         while page is not None:
    249             self.page_number += 1

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/iterator.py in _next_page(self)
    345         """
    346         if self._has_next_page():
--> 347             response = self._get_next_page_response()
    348             items = response.get(self._items_key, ())
    349             page = Page(self, items, self._item_to_value)

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/iterator.py in _get_next_page_response(self)
    394                 method=self._HTTP_METHOD,
    395                 path=self.path,
--> 396                 query_params=params)
    397         elif self._HTTP_METHOD == 'POST':
    398             return self.client._connection.api_request(

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/_http.py in api_request(self, method, path, query_params, data, content_type, headers, api_base_url, api_version, expect_json, _target_object)
    297         response, content = self._make_request(
    298             method=method, url=url, data=data, content_type=content_type,
--> 299             headers=headers, target_object=_target_object)
    300
    301         if not 200 <= response.status < 300:

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/_http.py in _make_request(self, method, url, data, content_type, headers, target_object)
    191         headers['User-Agent'] = self.USER_AGENT
    192
--> 193         return self._do_request(method, url, headers, data, target_object)
    194
    195     def _do_request(self, method, url, headers, data,

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/cloud/_http.py in _do_request(self, method, url, headers, data, target_object)
    221         """
    222         return self.http.request(uri=url, method=method, headers=headers,
--> 223                                  body=data)
    224
    225     def api_request(self, method, path, query_params=None,

/Users/MOLi/anaconda/lib/python3.6/site-packages/google_auth_httplib2.py in request(self, uri, method, body, headers, **kwargs)
    185
    186         self.credentials.before_request(
--> 187             self._request, method, uri, request_headers)
    188
    189         # Check if the body is a file-like stream, and if so, save the body

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/auth/credentials.py in before_request(self, request, method, url, headers)
    119         # the http request.)
    120         if not self.valid:
--> 121             self.refresh(request)
    122         self.apply(headers)
    123

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/oauth2/service_account.py in refresh(self, request)
    308         assertion = self._make_authorization_grant_assertion()
    309         access_token, expiry, _ = _client.jwt_grant(
--> 310             request, self._token_uri, assertion)
    311         self.token = access_token
    312         self.expiry = expiry

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/oauth2/_client.py in jwt_grant(request, token_uri, assertion)
    141     }
    142
--> 143     response_data = _token_endpoint_request(request, token_uri, body)
    144
    145     try:

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/oauth2/_client.py in _token_endpoint_request(request, token_uri, body)
    107
    108     if response.status != http_client.OK:
--> 109         _handle_error_response(response_body)
    110
    111     response_data = json.loads(response_body)

/Users/MOLi/anaconda/lib/python3.6/site-packages/google/oauth2/_client.py in _handle_error_response(response_body)
     57
     58     raise exceptions.RefreshError(
---> 59         error_details, response_body)
     60
     61

RefreshError: ('invalid_grant: Invalid JWT Signature.', '{\n  "error" : "invalid_grant",\n  "error_description" : "Invalid JWT Signature."\n}')

@jonparrott I'm getting the same error today using google-cloud-pubsub==0.29.4 and after updating to google-cloud-pubsub==0.30.1. Tried generating a new private key JSON file for my service account.

My local system time and my phone time appear to be correct:

This is code that has run fine for at least a month until today. It runs inside a Docker container, so there may be some issue there with setting time that I'm just not aware of. Any ideas would be greatly appreciated.

Ok, I found as issue with Docker for Mac https://github.com/docker/for-mac/issues/2076 (a couple related issues actually, but this one pretty clearly covers the problem). The time of the VM that runs containers drifts from system time, and doesn't appear to reset itself properly. Stopping and restarting Docker for Mac fixed the issue for me.

Just as a note, I was having the same issue on a windows machine. I was looking at the time on the clock and it was correct, but I  was still receiving the error. It ended up being the timezone. Someone had set the clock but they had not changed the timezone to EST.

I had the same problem in another programming language(golang) but think this can work on this language too.
I had that error because I was using a credential file that was deleted on my project, so I just create another credential file, that that solved it

I am facing same issue in python3.
from dags.util.GCloudStorage import GCloudStorage
client = GCloudStorage(
"/home/gaurav/airflow/dags/script/gcp_credentials/my_gcs_credentials.json", ""project_name)
client.create_bucket("test_bucket")
===============================================================
Here's the GCloudStorage.py looks like:
from google.cloud import storage
from google.oauth2 import service_account
from google.api_core import exceptions
class GCloudStorage:
def __init__(self, credential_file_path, project_id):
    """
    :param credential_file_path: credential File for Authentication.
    :param project_id: project ID
    """
    self.CREDENTIAL_FILE_PATH = credential_file_path
    self.PROJECT_ID = project_id
    self.DATASET_ID = None

def create_connection(self):
    """
    Creates Connection with Google Cloud Storage and returns client.
    :return client: Google Cloud Storage Client
    """
    google_credentials = service_account.Credentials.from_service_account_file(self.CREDENTIAL_FILE_PATH)
    # Construct a BigQuery client object.
    client = storage.Client(project=self.PROJECT_ID, credentials=google_credentials)
    return client

def create_bucket(self, bucket_name):
    """
    Creates a new empty bucket.
    :param bucket_name: name of the bucket.
    :return responseMsg: success or other message.
    """
    # Instantiates a client
    storage_client = self.create_connection()
    response = None
    try:
        bucket = storage_client.create_bucket(bucket_name)
        print(bucket)
        response = "Bucket {} created".format(bucket.name)
    except exceptions.Conflict as error:
        response = "Bucket Already Exist: {}".format(error.code)
    return {"response": response}

def upload_blob(self, bucket_name, source_file_name, destination_blob_name):
    """
    Uploads a file to the bucket.
    :param bucket_name: bucketName
    :param source_file_name: Source File Name
    :param destination_blob_name: Destination Blob Name.
    :return responseMsg: Success or failed response message.
    """
    storage_client = self.create_connection()
    bucket = storage_client.get_bucket(bucket_name)
    blob = bucket.blob(destination_blob_name)
    print("BlobName ---> ", blob)
    blob.upload_from_filename(source_file_name)
    response = "File {} uploaded to {}".format(source_file_name, destination_blob_name)
    print(response)
    return {"response": response}

def delete_bucket(self, bucket_name):
    """
    Deletes a bucket. The bucket must be empty.
    :param bucket_name: bucket Name.
    :return responseMsg: success or failed response message.
    """
    # Instantiates a client
    storage_client = self.create_connection()
    bucket = storage_client.get_bucket(bucket_name)
    bucket.delete()
    response = "Bucket {} deleted".format(bucket.name)
    return {"response": response}

=============================================================
when i run the above create bucket code it gives me below error:
Traceback (most recent call last):
File "/home/gaurav/airflow/dags/util/test cloud.py", line 7, in
client.create_bucket("test_bucket")
File "/home/gaurav/airflow/dags/util/GCloudStorage.py", line 37, in create_bucket
bucket = storage_client.create_bucket(bucket_name)
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/cloud/storage/client.py", line 436, in create_bucket
_target_object=bucket,
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/cloud/_http.py", line 417, in api_request
timeout=timeout,
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/cloud/_http.py", line 275, in _make_request
method, url, headers, data, target_object, timeout=timeout
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/cloud/_http.py", line 313, in _do_request
url=url, method=method, headers=headers, data=data, timeout=timeout
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/auth/transport/requests.py", line 277, in request
self.credentials.before_request(auth_request, method, url, request_headers)
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/auth/credentials.py", line 124, in before_request
self.refresh(request)
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/oauth2/service_account.py", line 334, in refresh
access_token, expiry, _ = _client.jwt_grant(request, self._token_uri, assertion)
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/oauth2/_client.py", line 153, in jwt_grant
response_data = _token_endpoint_request(request, token_uri, body)
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/oauth2/_client.py", line 124, in _token_endpoint_request
_handle_error_response(response_body)
File "/home/gaurav/airflow/venv/lib/python3.6/site-packages/google/oauth2/_client.py", line 60, in _handle_error_response
raise exceptions.RefreshError(error_details, response_body)
google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT Signature.', '{\n  "error": "invalid_grant",\n  "error_description": "Invalid JWT Signature."\n}')
Process finished with exit code 1
I am newbie to GCP, so any silly mistakes will be helpful to me.
Thank you in advance.

Really a good catch!!!
https://github.com/googleapis/google-cloud-python/issues/3100#issuecomment-323210685
With some reason my system clock was 2 hours ahead and setting it back to correct time, all worked well.

It was the time that was causing this error. I took my battery out and the laptop lost track of time. Now after reading your comments I just updated the time and everything worked well. Thank you guys.

Ok, I found as issue with Docker for Mac docker/for-mac#2076 (a couple related issues actually, but this one pretty clearly covers the problem). The time of the VM that runs containers drifts from system time, and doesn't appear to reset itself properly. Stopping and restarting Docker for Mac fixed the issue for me.

I was having the same problem here on Linux and restarting the Docker service solved it for me. Too bad I didn't check the time inside my container before restarting Docker.

First, thanks for all the work you do on packaging @dstufft!
@jonparrott Any ideas? @dstufft This probably belongs in https://github.com/GoogleCloudPlatform/google-auth-library-python/, but let's discuss here first.
I've seen an issue where an invalid grant was caused by the clock on the local machine being out of sync by 4+ hours with the real world, but even being wrong by 65 minutes (in either direction) would make one of the "issued at" and "expires" timestamps in the JWT be impossible.

I was having the same problem while using GCS, thanks a bunch!

I'm running into this issue, and I know for certain that the time being used by the SDK is the correct time. I extracted the exact JWT that was being posted and verified that the exp being posted was in the future. The iat timestamp was set a few minutes in the past.

I have this issue but my code is deployed as a cloud function. What should i do?

I have this issue but my code is deployed as a cloud function. What should i do?

I was getting the same error in Python 3.7. Created a new key and set it in the GOOGLE_APPLICATION_CREDENTIALS env var, somehow it worked. Not sure it will work for everyone but worth a try.

I was getting this error. Turns out it had been too long since I'd run gcloud auth activate-service-account and my credentials had expired

===This is the problem i am facing in python 3.7, i saw a comment to correct my system clock, i did but it still showed the same error.
Below is the code and the error it gave me===
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
cred = credentials.Certificate("serviceAccountKey.json")
firebase_admin.initialize_app(cred, {
'databaseURL': "https://faceattendancerealtime-2b9ec-default-rtdb.firebaseio.com/"
})
ref = db.reference('Students')
data = {
"321654":
{
"name": "Jackson Green",
"major": "Engineering",
"starting_year": 2017,
"total_attendance": 6,
"standing": "G",
"year": 4,
"last_attendance_time": "2022-12-11 00:54:34"
}
}
for key, value in data.items():
ref.child(key).set(value)
===Above is the code===
===Below is the error i recieved===
C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\auth_init_.py:55: Python37DeprecationWarning: After January 1, 2024, new releases of this library will drop support for Python 3.7. More details about Python 3.7 support can be found at https://cloud.google.com/python/docs/python37-sunset/
warnings.warn(message, Python37DeprecationWarning)
C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\oauth2_init_.py:40: Python37DeprecationWarning: After January 1, 2024, new releases of this library will drop support for Python 3.7. More details about Python 3.7 support can be found at https://cloud.google.com/python/docs/python37-sunset/
warnings.warn(message, Python37DeprecationWarning)
Traceback (most recent call last):
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\AddDataToDatabase.py", line 46, in
ref.child(key).set(value)
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\firebase_admin\db.py", line 264, in set
self._client.request('put', self._add_suffix(), json=value, params='print=silent')
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\firebase_admin\db.py", line 929, in request
return super(_Client, self).request(method, url, **kwargs)
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\firebase_admin_http_client.py", line 118, in request
resp = self._session.request(method, self.base_url + url, **kwargs)
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\auth\transport\requests.py", line 538, in request
self.credentials.before_request(auth_request, method, url, request_headers)
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\auth\credentials.py", line 175, in before_request
self.refresh(request)
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\oauth2\service_account.py", line 439, in refresh
request, self._token_uri, assertion
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\oauth2_client.py", line 314, in jwt_grant
metrics.API_CLIENT_HEADER: metrics.token_request_access_token_sa_assertion()
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\oauth2_client.py", line 279, in _token_endpoint_request
_handle_error_response(response_data, retryable_error)
File "C:\Users\Hysoka\PycharmProjects\FaceRegcognitionRealTimeDatabase\venv\lib\site-packages\google\oauth2_client.py", line 73, in _handle_error_response
error_details, response_data, retryable=retryable_error
google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.'})
===I would really need help here thank you===

Hi @Jacksongreenhenry,
Please could you file a new support request in https://github.com/googleapis/google-auth-library-python via this link: https://github.com/googleapis/google-auth-library-python/issues/new?assignees=&labels=&projects=&template=support_request.md?


Allow followups to define the skipped days

This addition allows to configure which days shall be skipped in the
gregorian calendar if the holyday falls onto one.
By default this is saturday and sunday but one can now also only define
one or multiple days.
Thanks to Sarel van der Walt for the input for that
This PR fixes #28

Ping @sarelvdwalt

Thank you @heiglandreas - have have sent you a PR #31 to enhance South African checks :)


Can winappdriver be used to test Office Apps (officejs applications) within Windows Applications?

My team is building out officejs applications, I have some code written up to test our installed application (an add-in for Outlook) and thought it would be cool to re-use some of the code. Is it possible to interact with the inapp edge browser?

@caseynelson89 yes attaches just fine.  We use both WinAppDriver and WebView2.

@liljohnak do you have any examples of having both implemented in a project? Also, do you know if you're able to interact with the elements in the pane as if they're browser elements? For some reason the browser elements specifically are not accessible within winappdriver

Sure will get back to you with an example.  And yes msedgedriver.exe exposes all the elements.  WinAppDriver is a subset.

I'm also looking to test office js add-ins but in Word. How do you configure the webdriver client to connect using the edge browser driver? @liljohnak