Referencing other configurations does not work

I am following the instruction for referencing other configurations but getting error creating a variable.
Could not create configmanagementZoneId: loading config lifion-nonprod/managementZoneId failed with open ./lifion-nonprod/management-zone/zone-lifion.id: no such file or directory

I tried different combinations but no avail.
Here are my configurations:
environments.yaml file in main directory:
nonprod:
    - name: "nonprod"
    - env-url: "{{ .Env.DT_BASEURL }}"
    - env-token-name: "DT_API_TOKEN"
lifion-nonprod:
    - name: "lifion-nonprod"
    - env-url: "{{ .Env.DT_BASEURL }}"
    - env-token-name: "DT_API_TOKEN"

Directory structure:
-lifion-nonprod
--- alerting-profile
--- management-zone
File in alerting profile that having error: alerting-profile.yaml
Content:
- managementZoneId: "/lifion-nonprod/management-zone/zone-lifion.id"

Management-zone directory has management-zone.yaml and zone.json.
Content of the  management-zone.yaml :
config:
- zone-lifion: zone.json
zone-lifion:
- name: '[Kubernetes] lifion-int-use1'

I am executing a command from the root directory:
monaco -e=environments.yaml --dry-run  -p=lifion-nonprod  --verbose
You are currently using the old CLI structure which will be used by
default until monaco version 2.0.0

Check out the beta of the new CLI by adding the environment variable
  "NEW_CLI".

We can't wait for your feedback.

2022-03-18 10:26:14 DEBUG request log not activated
2022-03-18 10:26:14 DEBUG response log not activated
2022-03-18 10:26:14 INFO  Dynatrace Monitoring as Code v1.7.0
2022-03-18 10:26:14 DEBUG Reading projects...
2022-03-18 10:26:14 DEBUG   project - lifion-nonprod
2022-03-18 10:26:14 DEBUG Processing file: lifion-nonprod/alerting-profile/alerting-profile.yaml
2022-03-18 10:26:14 ERROR Could not create configmanagementZoneId: loading config lifion-nonprod/managementZoneId failed with open ./lifion-nonprod/management-zone/zone-lifion.id: no such file or directory
2022-03-18 10:26:14 FATAL Loading of projects failed: loading config lifion-nonprod/managementZoneId failed with open ./lifion-nonprod/management-zone/zone-lifion.id: no such file or directory

Hi @edvorkin, sorry for the very late reply on this!
The reference generally looks good.
However is - managementZoneId: "/lifion-nonprod/management-zone/zone-lifion.id" all that's in your alerting-profile.yaml?
It looks like monaco is trying to read as a config file "/lifion-nonprod/management-zone/zone-lifion.id" rather than resolving as a reference.
Your altering profile yaml should look similar to the management-zone one, something like:
config:
- some-alerting-profile: the-file-in-which-the-mgmt-zone-is-referenced.json
some-alerting-profile:
- name: 'This is some altering profile'
- managementZoneId: "/lifion-nonprod/management-zone/zone-lifion.id"

Could you please provide a minimal configuration in which to reproduce this issue (take yours and strip anything else/anything with internal details)? Thanks!


Adding selected multi-request support from History tab

This will alow to select multiple HTTP request from burp history and create single template with multiple request in it.
Selection example:

Template example:
id: template-id

info:
  name: Template Name
  author: geekboy
  severity: info
  description: description
  reference: https://
  tags: tags

requests:
  - raw:
      - |+
        POST /github/collect HTTP/2
        Host: {{Hostname}}
        Content-Length: 1000

        {"REDACTED"}

      - |+
        GET /projectdiscovery/nuclei/releases HTTP/2
        Host: {{Hostname}}

      - |+
        POST /_private/browser/stats HTTP/2
        Host: {{Hostname}}
        Content-Length: 2000

        {"REDACTED"}

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "example"

      - type: status
        status:
          - 200

@dwisiswant0 this is now implemented and released under v1.1.0

Kudos to y'all guys! :clap:


IntervalTerminator is too eager to throw an exception

Description
Instances of IntervalTerminator throw a runtime exception when
constructing a parameter with zero probability. Instead it should not
throw an exception, but indicate the likelihood of these parameters
are zero.
Files involved

src/timtam/IntervalTerminator.java
src/timtam/TimTam.java

To reproduce
Instantiate an interval terminator with a negative count.
Tasks

Fix the interval terminator class so that it does not throw an
exception so readily.
Include a check in the likelihood calculation for implausible
counts so a negative infinity can be returned for the
log-likelihood.
Update the Timtam package version and release it to GitHub.

This is being worked on in the interval-terminator-bug-fix branch

fixed on 0.4.1


Workspaces aren't restored properly

have two VS Code windows open, both showing a workspace/folder
exit
delete one of the workspaces/folders
restart
🐛 Instead of showing the other/remaining workspace an empty workspace/no folder is shown

I am actually not sure this is hot exit related, I think this happened in stable already.

@jrieken I cannot reproduce other than having dirty files in both windows and quitting. in that case reopening one window as empty window is actually expected because we need to restore the dirty files within even when the folder they where created in does not exist anymore.


ActiveDirectoryDsc: Add stubs to be used with unit tests

I think we need to add stubs to use in the unit tests, similar that was done in SqlServerDsc https://github.com/PowerShell/SqlServerDsc/tree/dev/Tests/Unit/Stubs.
For example there is no need to add helper functions to support mocking (which lowers the code coverage also). An example is here, a function that was added because we are missing stubs.
https://github.com/PowerShell/xActiveDirectory/blob/e4817bf4fa710c79455816a56a20665bd0dd1162/DSCResources/MSFT_xADReplicationSiteLink/MSFT_xADReplicationSiteLink.psm1#L300-L326

I tried to use @indented-automation's module https://github.com/indented-automation/Indented.StubCommand to generate the full stubs, but ran into a couple of issues (that I could not solve on my own). See the README.md my branch here https://github.com/johlju/xActiveDirectory/tree/add-stubs/Tests/Unit/Stubs which also links to the issues.
Feel free to continue this work and make it better. 😄

There seems to be a problem with the build worker loading in the assemblies so that classed are present, that means that our stub classes (for example Microsoft.ActiveDirectory.Management.cs) cannot be loaded. This can result in different results between running unit test locally and running them on the build worker.
I think this can have something to do with the meta tests running (common tests in the test framework) that imports this module for some reason.
I option would be to split up meta test and unit tests in different jobs, so that we can better control what is loaded and not.

I suggest we simplify the stubs of the AD cmdlets. Parameters in the cmlets are today referencing various ActiveDirectory classes which also demands that we need to have stubs for those classes. I suggest that we just change all the stub cmdlet parameters to use PSObject. We use these in unit tests, so we are really just intrested if the cmdlet are called using a specific parameter, and maybe check the value passed. We are no interested to test an actual scenario, that is what the integration tests are for. 🤔 We still need stub classes for resource that reference the types directly in code.
I think this would lower the bar for new contributors to write tests. Using PSObject in the cmdlet parameters have been done for the SqlServerDsc module and it have worked flawless.


Reset Tar version to 0.1.0

Let's not give people the wrong idea about the level of completeness of this tar implementation.

Hi @jstarks, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (John Starks). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

LGTM.


Create separate API key for dashboard

I think ideally there should probably be a separate API key for interactive use, the data wrangling workflow, and the Shiny app.  Should look into it with Zentra Cloud

@UArizonaCampusLivingLabforGSI talked to the Zentra Cloud team and they recommended doing this, partly because changing the units on the portal does change the units for the data downloaded from the API.  We want to avoid having this change.

I'm not sure we can make use of the Push API—I haven't found any information about how to use push APIs with R.  I suppose if we did use it, it would be for the shiny app, so maybe the endpoint URL is the shiny app?  Will the new API token also allow access to the REST API?

I am not sure, they may be different and as you have mentioned maybe it is not the correct route to change that feature. I will do a bit more digging today and see if there is a clear use or if it makes sense to continue using the REST API only.

For the Push API it sounds like there needs to be a server running at that Endpoint to accept the "payload".  There is a server running when someone is accessing the Shiny app, but I don't know how to configure it to accept a payload from a Push API.  The current data wrangling workflow doesn't use a server that could accept data from a push API.

Separate API token is updated in the secret and the old token is still there as a note in case we need it for any reason in the meantime.
I will confirm units today to make sure they are the same between accounts.


reify doesn't work when model has an enum attribute

I have a model defined like this:
class Question < ActiveRecord::Base
    ...
    enum question_response_type: { radio: 0, text: 1 }
    ...
end

When I try to call the reify method on a question draft, ActiveRecord throws an error:
ArgumentError: You tried to define an enum named "question_response_type" on the model "Question", but this will generate a instance method "question_response_type=", which is already defined by another enum.
Is there any way around this?

For anyone else googling this issue, this is now fixed in the draftsman 0.3.7 release.
https://github.com/liveeditor/draftsman/releases/tag/v0.3.7
Thank you @bdunham.

:+1: Thanks for reporting, @dedman.
I would really like to get some tests in there for this. I will open a new issue to make sure that happens.


THRIFT-5093: lib: cpp: test: clarify effect of MemoryPolicy on TMemoryBuffer

My main use case with the original code change was that I wanted to be able to call resetBuffer() on OBSERVE buffers and reuse the contents for test cases over and over. While the default resetBuffer() cannot be used for that purpose, the same result can be achieved by calling resetBuffer(ro_mem, ro_mem_size, OBSERVE) as well, so the workaround is fairly trivial.
While the former implementation would be more convenient in some cases, it makes more sense to have consistent behaviour for all resetBuffer() implementations.
Added test cases to clarify the effect of MemoryPolicy on  TMemoryBuffer behaviour.

[x] Did you create an Apache Jira ticket?  (not required for trivial changes)
[x] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
[x] Did you squash your changes to a single commit?  (not required, but preferred)
[x] Did you do your best to avoid breaking changes?  If one was needed, did you label the Jira ticket with "Breaking-Change"?
[ ] If your change does not involve any code, add  [skip ci] at the end of your pull request to free up build resources.

Not sure why multiple builds are failing, but it's highly unlikely it has anything to do with this change.

Dear @cfriedt I've just reviewed your change and I'm not certain if it is correct. Could you motivate your change further?
In my understanding, all init methods in the constructor TMemoryBuffer(uint8_t* buf, uint32_t sz, MemoryPolicy policy = OBSERVE) from existing memory will move the internal rBound_ and wBound_ up by sz. In the case of OBSERVE or TAKE_OWNERSHIP this happens in initCommon() whereas in the case of COPY this (probably) happens in write().
Your PR changes this behavior. I can not say with certainty if or why the current behavior is correct, but I' under the impression that it was written consistently with a certain intention in mind. And your PR breaks this consistency.
Or am I on the wrong track? Feedback welcome!

Or am I on the wrong track? Feedback welcome!

I think there is some conflation about whether wPos (and by extension wBase_ and wBound_ has any bearing on whether or not the buffer is writeable.
wPos does not determine if the buffer is writeable (in terms of permissions). It's owner_ that is responsible for that, as evident in TMemoryBuffer::ensureCanWrite().

I think there is some conflation about whether wPos (and by extension wBase_ and wBound_) has any bearing on whether or not the buffer is writeable.

I can not speak for other people and I don't know what has been discussed so far. However my concern is not about buffer ownership. I quote the relevant section:
    rBound_ = buffer_ + wPos;
    // TODO(dreiss): Investigate NULL-ing this if !owner.
    wBase_ = buffer_ + wPos;

So wPos is used to move rBound_ and wBase_ forward to the end of the buffer in all cases where TMemoryBuffer is constructed from existing memory. This makes certain sense to me, because its likely that users do not want to overwrite existing data.
I'm more than happy to get educated on the meaning of rBound_ and wBase_ and why you think the current implementation is incorrect. But at least from my limited understanding I am not convinced that this change is correct.

I can not speak for other people and I don't know what has been discussed so far. However my concern is not about buffer ownership. I quote the relevant section:
    rBound_ = buffer_ + wPos;
    // TODO(dreiss): Investigate NULL-ing this if !owner.
    wBase_ = buffer_ + wPos;

So wPos is used to move rBound_ and wBase_ forward to the end of the buffer in all cases where TMemoryBuffer is constructed from existing memory. This makes certain sense to me, because its likely that users do not want to overwrite existing data.

What if there is no existing data to overwrite? Then the buffer always has zero space. available for writing.
I think I'm beginning to see your point though; by fixing one use case, it breaks another.
Just to clarify, the use case that I have which is currently broken is this:

a pre-allocated, fixed-size buffer is passed in
The TMemoryBuffer should take ownership of the pre-allocated buffer
no data has been written to the buffer
all subsequent writes to the TMemoryBuffer fail, because wBase_ == wBound_

The use case that you are saying would be broken by this change is:

a pre-allocated, fixed-size buffer is passed in
The TMemoryBuffer should only observe the pre-allocated buffer
irrelevant whether data has been written to the buffer or not
all subsequent writes to the TMemoryBuffer fail, because wBase_ == wBound_

I'm more than happy to get educated on the meaning of rBound_ and wBase_ and why you think the current implementation is incorrect. But at least from my limited understanding I am not convinced that this change is correct.

Is it possible that the correct line should be the following? From what I can tell, it fixes both uses cases listed above.
initCommon(buf, sz, policy == TAKE_OWNERSHIP,  ( policy == TAKE_OWNERSHIP ) ? 0 : sz );

pushing back again, sorry

Not sure about the state of this, also CI seems all "red". How do we proceed here?

Let me take a look again.

@Jens-G - should be good now. Would you like to assign reviewers?

AppVeyor is failing for completely unrelated reasons ("cannot used reserved language keyword return").
Not even sure where to begin with Travis.
Re-running tests locally on aarch64 and amd64.

$ make check
...
make[5]: Leaving directory '/home/cfriedt/workspace/thrift/lib/cpp/test'
make  check-TESTS
make[5]: Entering directory '/home/cfriedt/workspace/thrift/lib/cpp/test'
An error message from getaddrinfo on the console is expected:
Thrift: Fri Jun 19 07:12:34 2020 getaddrinfo() -> -2; Name or service not known

*** No errors detected
PASS: UnitTests
Thrift: Fri Jun 19 07:12:34 2020 ~TFDTransport TTransportException: 'TFDTransport::close(): Bad file descriptor'

*** No errors detected
PASS: TFDTransportTest

*** No errors detected
PASS: TPipedTransportTest
*** No errors detected
PASS: DebugProtoTest

*** No errors detected
PASS: JSONProtoTest

*** No errors detected
PASS: OptionalRequiredTest

*** No errors detected
PASS: RecursiveTest

*** No errors detected
PASS: SpecializationTest
TBinaryProtocol => OK
TLEBinaryProtocol => OK
TCompactProtocol => OK

*** No errors detected
PASS: AllProtocolsTest
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport

*** No errors detected
PASS: TransportTest
Thrift: Fri Jun 19 07:13:21 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)

*** No errors detected
PASS: TInterruptTest

*** No errors detected
PASS: TServerIntegrationTest
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)

*** No errors detected
PASS: SecurityTest
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Fri Jun 19 07:13:40 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)

*** No errors detected
PASS: SecurityFromBufferTest
seed:<PHONE_NUMBER>

*** No errors detected
PASS: ZlibTest

*** No errors detected
PASS: TFileTransportTest
PASS: link_test

*** No errors detected
PASS: OpenSSLManualInitTest

*** No errors detected
PASS: EnumTest

*** No errors detected
PASS: RenderedDoubleConstantsTest

*** No errors detected
PASS: AnnotationTest
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: join done for IO thread #0
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: join done for IO thread #0
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: join done for IO thread #0

*** No errors detected
PASS: TNonblockingServerTest
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 entering loop...

Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: join done for IO thread #0
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 entering loop...

Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: join done for IO thread #0
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Fri Jun 19 07:13:43 2020 TNonblockingServer: IO thread #0 entering loop...

Thrift: Fri Jun 19 07:13:43 2020 TNonblocking: join done for IO thread #0

*** No errors detected
PASS: TNonblockingSSLServerTest
===================
All 23 tests passed
===================
...
cfriedt@cfriedt-MacBookPro:~/workspace/thrift$ echo $?
0
cfriedt@cfriedt-MacBookPro:~/workspace/thrift$ uname -a
Linux cfriedt-MacBookPro 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

On aarch64, completely unrelated failures (also works on x86_64, but not on aarch64). Error is specific to SSL.
x86_64 machine is Ubuntu Bionic, aarch64 machine is Debian 10.2
x86_64: libssl1.1 is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
aarch64: libssl1.1 is already the newest version (1.1.1d-0+deb10u3).
make[5]: Leaving directory '/home/chrisfriedt/workspace/thrift/lib/cpp/test'
make  check-TESTS
make[5]: Entering directory '/home/chrisfriedt/workspace/thrift/lib/cpp/test'
Thrift: Tue Jun 16 07:16:22 2020 TSocket::open() connect() <Host: localhost Port: 46709>: Connection refused
An error message from getaddrinfo on the console is expected:
Thrift: Tue Jun 16 07:16:26 2020 getaddrinfo() -> -2; Name or service not known

*** No errors detected
PASS: UnitTests
Thrift: Tue Jun 16 07:16:26 2020 ~TFDTransport TTransportException: 'TFDTransport::close(): Bad file descriptor'

*** No errors detected
PASS: TFDTransportTest

*** No errors detected
PASS: TPipedTransportTest

*** No errors detected
PASS: DebugProtoTest

*** No errors detected
PASS: JSONProtoTest

*** No errors detected
PASS: OptionalRequiredTest

*** No errors detected
PASS: RecursiveTest

*** No errors detected
PASS: SpecializationTest
TBinaryProtocol => OK
TLEBinaryProtocol => OK
TCompactProtocol => OK

*** No errors detected
PASS: AllProtocolsTest
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport
Timeout alarm expired; attempting to unblock transport

*** No errors detected
PASS: TransportTest
Thrift: Tue Jun 16 07:17:29 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)

*** No errors detected
PASS: TInterruptTest

*** No errors detected
PASS: TServerIntegrationTest
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
terminate called after throwing an instance of 'boost::execution_aborted'

*** 4 failures are detected in the test module "SecurityTest"
FAIL: SecurityTest
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:17:49 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
terminate called after throwing an instance of 'boost::execution_aborted'

*** 4 failures are detected in the test module "SecurityFromBufferTest"
FAIL: SecurityFromBufferTest
seed:<PHONE_NUMBER>

*** No errors detected
PASS: ZlibTest

*** No errors detected
PASS: TFileTransportTest
PASS: link_test

*** No errors detected
PASS: OpenSSLManualInitTest
*** No errors detected
PASS: EnumTest

*** No errors detected
PASS: RenderedDoubleConstantsTest

*** No errors detected
PASS: AnnotationTest
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Tue Jun 16 07:17:56 2020 TSocket::open() connect() <Host: localhost Port: 12345>: Connection refused
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: join done for IO thread #0
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Tue Jun 16 07:17:56 2020 TSocket::open() connect() <Host: localhost Port: 33643>: Connection refused
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: join done for IO thread #0
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Tue Jun 16 07:17:56 2020 TSocket::open() connect() <Host: localhost Port: 37905>: Connection refused
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: join done for IO thread #0

*** No errors detected
PASS: TNonblockingServerTest
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Tue Jun 16 07:17:56 2020 TSocket::open() connect() <Host: localhost Port: 12345>: Connection refused
Thrift: Tue Jun 16 07:17:56 2020 TConnection::workSocket(): client disconnected
Thrift: Tue Jun 16 07:17:56 2020 SSL_shutdown: Broken pipe (SSL_error_code = 6)
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: join done for IO thread #0
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 entering loop...

Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: join done for IO thread #0
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: Serving with 1 io threads.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: using libevent 2.1.8-stable method epoll
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for listen.
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: IO thread #0 registered for notify.
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 entering loop...
Thrift: Tue Jun 16 07:17:56 2020 TSocket::open() connect() <Host: localhost Port: 40159>: Connection refused
Thrift: Tue Jun 16 07:17:56 2020 TConnection::workSocket(): client disconnected
Thrift: Tue Jun 16 07:17:56 2020 SSL_shutdown: Broken pipe (SSL_error_code = 6)
Thrift: Tue Jun 16 07:17:56 2020 TNonblockingServer: IO thread #0 run() done!
Thrift: Tue Jun 16 07:17:56 2020 TNonblocking: join done for IO thread #0

*** No errors detected
PASS: TNonblockingSSLServerTest
====================
2 of 23 tests failed
====================

 ./SecurityTest
Running 1 test case...
Thrift: Tue Jun 16 07:23:33 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:23:33 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
SecurityTest.cpp(268): error: in "SecurityTest/ssl_security_matrix":       Server = SSLTLS, Client = TLSv1_0 expected mConnected == 1 but was 0
Thrift: Tue Jun 16 07:23:33 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:23:33 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
SecurityTest.cpp(268): error: in "SecurityTest/ssl_security_matrix":       Server = SSLTLS, Client = TLSv1_1 expected mConnected == 1 but was 0
SecurityTest.cpp(149): fatal error: in "SecurityTest/ssl_security_matrix": N6apache6thrift9transport13TSSLExceptionE: SSL_CTX_set_cipher_list: bad value
terminate called after throwing an instance of 'boost::execution_aborted'
unknown location(0): fatal error: in "SecurityTest/ssl_security_matrix": signal: SIGABRT (application abort requested)
SecurityTest.cpp(149): last checkpoint

*** 4 failures are detected in the test module "SecurityTest"

$ ./SecurityFromBufferTest
Running 1 test case...
Thrift: Tue Jun 16 07:19:42 2020 SSL_shutdown: Broken pipe (SSL_error_code = 5)
Thrift: Tue Jun 16 07:19:42 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:19:42 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
SecurityFromBufferTest.cpp(245): error: in "SecurityFromBufferTest/ssl_security_matrix":       Server = SSLTLS, Client = TLSv1_0 expected mConnected == 1 but was 0
Thrift: Tue Jun 16 07:19:42 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
Thrift: Tue Jun 16 07:19:42 2020 SSL_shutdown: shutdown while in init (SSL_error_code = 1)
SecurityFromBufferTest.cpp(245): error: in "SecurityFromBufferTest/ssl_security_matrix":       Server = SSLTLS, Client = TLSv1_1 expected mConnected == 1 but was 0
SecurityFromBufferTest.cpp(145): fatal error: in "SecurityFromBufferTest/ssl_security_matrix": N6apache6thrift9transport13TSSLExceptionE: SSL_CTX_set_cipher_list: bad value
terminate called after throwing an instance of 'boost::execution_aborted'
unknown location(0): fatal error: in "SecurityFromBufferTest/ssl_security_matrix": signal: SIGABRT (application abort requested)
SecurityFromBufferTest.cpp(145): last checkpoint
$ uname -a
Linux penguin 4.19.113-08528-g5803a1c7e9f9 #1 SMP PREEMPT Thu Apr 2 15:16:47 PDT 2020 aarch64 GNU/Linux

Added test_take_ownership() to illustrate that is still working fine.

Reviewers, @emmenlau  @Jens-G?

Also, this should probably be labelled as a bug and not a feature (it has no labels yet).

@emmenlau Can do do that?

@emmenlau Still not sure what the status here is ... :-)

@emmenlau Ping?

I could try rebasing to see if unrelated tests pass.

I could try rebasing to see if unrelated tests pass.

It's already at the latest from master.

@Jens-G - will this be merged soon? I'd be happy to make additional changes if required.

I'll try to review this again soon. Please ping me if I don't get back to it soon!

Ping, @emmenlau ;-)

@cfriedt I'll pull this into my local build and see how it performs, ok? Its not a merge yet, but at least a step on the way. Thanks again!

I've been using these changes successfully in my code for a few months now. I'm not certain that qualifies as a validation, but I personally would be open to merging this PR. Other opinions?

@cfriedt for the sake of a nicer git history, could you rebase on latest master?
@all, I would merge these changes as they have worked for me successfully for a long time and there are tests that seem to confirm the improved behavior. Please speak up if there are any concerns against merging.

@emmenlau - will do

@cfriedt I've just this very second merged a PR that fixes the Travis build, please be sure to include it in your rebase if possible. Thanks a lot!

Ok @cfried, I'm sorry but there is indeed a problem: With your changes, there are consistent crashes on all Windows builds (MSVC and MINGW) in processor_test, see https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/40571399. With another very recent build from yesterday, we do not get these, see https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/40603625.
You can try to rebase again on latest master and force push, just to be sure its not a random fluctuation. But if the Windows tests fail again, we will need to follow it up (or at least not merge).

Ok @cfried, I'm sorry but there is indeed a problem: With your changes, there are consistent crashes on all Windows builds (MSVC and MINGW) in processor_test, see https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/40571399. With another very recent build from yesterday, we do not get these, see https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/40603625.

Odd - yeah, the logs show this:
[00:15:37] 397: Test command: C:\projects\build\MSVC2017\x64\bin\Release\processor_test.exe
[00:15:37] 397: Test timeout computed to be: 300
[00:15:39] 397: Thrift: Mon Aug 30 10:33:14 2021 TNonblockingServer: Serving with 1 io threads.
[00:15:39] 397: Thrift: Mon Aug 30 10:33:14 2021 TNonblockingServer: using libevent 2.1.8-stable method win32
[00:15:39] 397: Thrift: Mon Aug 30 10:33:14 2021 TNonblocking: IO thread #0 registered for listen.
[00:15:39] 397: Thrift: Mon Aug 30 10:33:14 2021 TNonblocking: IO thread #0 registered for notify.
[00:15:39] 397: Thrift: Mon Aug 30 10:33:14 2021 TNonblockingServer: IO thread #0 entering loop...
[00:17:43] 397: Thrift: Mon Aug 30 10:35:18 2021 TNonblockingServer: caught bad_alloc exception.
[00:17:44] 397: Running 64 test cases...
[00:17:46] 397/416 Test #397: processor_test ...................***Failed  128.95 sec

I'm not sure where the bad_alloc exception would come from, but I'll look into it if it does not pass after rebasing.

Hi, any updates on this?

Man - I wish there were more hours in the day! Up until a few weeks ago, I only had Mac machines and it was somewhat painful to set up Windows in a VM to try and reproduce the weird Windows issues. Now I have a decent Linux machine to use for that, so I'll give it another go in the next few days.
Thanks, for checking in :-)

Man - I wish there were more hours in the day!

Haha, don't we all! Happy coding and keep up the good work! Would be great if this comes to a good solution...

@emmenlau - repurposing this ticket to simply add clarifying tests.
My main use case with the original code change was that I wanted to be able to call resetBuffer() on OBSERVE buffers and reuse them for test cases. I can achieve that by calling resetBuffer(ro_mem, ro_mem_size, OBSERVE) as well, so the workaround is fairly trivial. It makes more sense to have consistent behaviour for all resetBuffer() implementations.

There are a few errors and warnings, could you have a look at that?
https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/43268999/job/2fkl3a5gaf0mlduy

There are a few errors and warnings, could you have a look at that? https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/43268999/job/2fkl3a5gaf0mlduy

Done! As it turns out, MSVC constexpr support might not be as complete as in g++ or clang++.
https://docs.microsoft.com/en-us/cpp/cpp/lambda-expressions-constexpr?view=msvc-170

Thanks for your patience & reviews @Jens-G & @emmenlau

Thanks to you for bringing this home!


[flow] Add typechecking to TravisCI

Depends on https://github.com/mozilla/tofino/pull/556.

Unfortunately we've decided to drop flow for this project, we'll be removing the existing type annotations in #559

😭

Sorry, we realised we should have made this more obvious sooner :(

Coverage remained the same at 42.356% when pulling 5398aac3bb4bb2b53dd7cc4c578020ce7d579e8c on LegNeato:flow-travis into 2c8af3a80c46bcf2bd0acc97160d762738471082 on mozilla:master.


[Dropdown] - .add onVisible and onHidden callbacks

add onVisible and onHidden callbacks, similar to popup.

Yes, I think this is needed as well.

reopen


Update MD file on new branch 2017-21-12_20-11-34

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

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


Formatting Issue in Outlook for Mac

I seem to be loosing a decent amount of the formatting when performing the copy paste into Outlook for Mac:

Last time I updated my signature back in Nov '19 I did not have this issue. In addition, copying my signature from then out of OWA and pasting it into Outlook for Mac works fine which suggests something changed here in the signature app.
The behaviour is the same when copying from Edge, Brave, and Safari as well as pasting into other rich text editors like TextEdit and Word.

Broken on Windows for me as well.

OK, something's broken. This was definitely working before. Someone needs to investigate :)

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-UWuiAvk2j2gLogVa/yisrcb38OIdGSJdP8onw4LmHzY='), or a nonce ('nonce-...') is required to enable inline execution.

At line 133 in index.js

Another sample for Windows
Signature generator...

Copy by clicking the "Copy Signature" button

Copy by drag-select + ctrl+c

@AHoran ahh that'd do it. @mderriey looks like the security changes may have caused this then?

https://github.com/Readify/telstra-purple-signatures/blob/master/public/web.config#L38 <- if someone has time to resolve it's here

On it, apologies!

All good, easy mistake.


Unexpected Behavoir

I am trying to use ltext to help me parameterise a number of shell scripts where I have to experiment with a bunch of values and options. However when I try to do this I seem to run into a number of issues:

If $$ value %% is preceded by text then no substitution occurs
If text follows $$ value %%, then on substitution the text is removed

Below are a few example cases:
Preceding text
The template file:
$ cat template

$$ value %%

This is broken

Nothing happens in this case $$ value %%

The file to be substituted
$ cat values

I am a value

Which when applied using ltext I get the following output
$ ltext "template values" --left "$$" --right "%%"

This is broken

Nothing happens in this case $$ value %%

Text following the parameter
The template file
$ cat template

$$ value %%

This is broken

$$ value %% now you see me

The file to be substitued
$ cat values

now you don't

When applied using ltext I get the following
$ ltext "template values" --left "$$" --right "%%"

This is broken

now you don't

I'm not sure if I'm missing something obvious or that that I should be doing someting different, but any help would be greatly appreciated

I agree, this is a very disappointing bug. I'm working on a large revamp of the system right now - which will take care of this bug.
Right now, ltext only supports line-by-line substitutions, but in the new one, we'll have character-by-character, which will fix this issue. I'll ping this thread as soon as the new release is out.


exclude current product from recently viewed

I found it a bit weird viewing a product detail page and having the same product listed underneath as recently viewed. A change to the templatetag makes it possible to exclude it.

:+1:

That's a lovely change, thanks!


v1.7 backports 2020-09-25

#13241 -- cilium: encrypt-node creates two IPsec tunnels but only uses one (@jrfastab)
#13228 -- identity: Avoid kvstore lookup for local identities (@gandro)
#13234 -- EKS: improve rules for asymmetric routing (multi-node NodePort) (@qmonnet)
#13272 -- k8s: Remove CRD deleting functionality (@christarazi)

Once this PR is merged, you can update the PR labels via:
$ for pr in 13241 13228 13234 13272; do contrib/backporting/set-labels.py $pr done 1.7; done

test-backport-1.7

Failure from Travis looks legit, trying to fix it...

Test failure:
=== RUN   Test
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1805e8e]
goroutine 8 [running]:
sync.(*RWMutex).RLock(...)
	/home/travis/.gimme/versions/go1.13.15.linux.amd64/src/sync/rwmutex.go:48
github.com/cilium/cilium/pkg/identity/cache.(*localIdentityCache).lookupByID(0x0, 0xc0000003e8, 0x0)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/identity/cache/local.go:170 +0x3e
github.com/cilium/cilium/pkg/identity/cache.(*CachingIdentityAllocator).LookupIdentityByID(0xc0000d70e0, 0x2155cc0, 0xc0000d0018, 0x3e8, 0x10)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/identity/cache/cache.go:248 +0x90
github.com/cilium/cilium/pkg/proxy.(*defaultEndpointInfoRegistry).FillEndpointIdentityByID(0x31a1500, 0x3e8, 0xc0000343d0, 0xc000056b50)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/epinfo.go:50 +0x57
github.com/cilium/cilium/pkg/proxy/logger.(*LogRecord).fillIngressSourceInfo(0xc000034380, 0xc0000343d0, 0xc000698d60, 0x3e8)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/logger/logger.go:161 +0x74
github.com/cilium/cilium/pkg/proxy/logger.logTags.Addressing.func1(0xc000034380)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/logger/logger.go:238 +0x2db
github.com/cilium/cilium/pkg/proxy/logger.(*LogRecord).ApplyTags(0xc000034380, 0xc000698e60, 0x1, 0x1)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/logger/logger.go:290 +0x49
github.com/cilium/cilium/pkg/proxy.(*kafkaRedirect).handleRequest(0xc000362f90, 0xc0002b6cc0, 0xc00026b890, 0xc0002c0080, 0x211ea20, 0xc0002b6c90, 0x3e8, 0xc000056790, 0xf)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/kafka.go:316 +0x3dd
github.com/cilium/cilium/pkg/proxy.(*kafkaRedirect).handleRequests(0xc000362f90, 0xc0000b3800, 0xc0002b6cc0, 0xc0002c0000, 0xc000699e70)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/kafka.go:443 +0x752
github.com/cilium/cilium/pkg/proxy.(*kafkaRedirect).handleRequestConnection(0xc000362f90, 0xc0002b6cc0)
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/kafka.go:498 +0x1ee
created by github.com/cilium/cilium/pkg/proxy.(*kafkaListener).Listen
	/home/travis/gopath/src/github.com/cilium/cilium/pkg/proxy/kafka.go:130 +0x922
FAIL	github.com/cilium/cilium/pkg/proxy	0.049s
FAIL
make: *** [unit-tests] Error 1
The command "./.travis/build.sh" exited with 2.

test-backport-1.7

test-backport-1.7

test-backport-1.7

now the failure might be legit, I will try to reproduce it locally:
https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-K8s/3553/consoleFull
12:53:24  • Failure [434.764 seconds]
12:53:24  K8sConformance
12:53:24  /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:395
12:53:24    Portmap Chaining
12:53:24    /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:395
12:53:24      Check connectivity-check compliance with portmap chaining [It]
12:53:24      /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:430
12:53:24
12:53:24      connectivity-check pods are not ready after timeout
[2020-09-29T10:53:24.022Z]     Expected
[2020-09-29T10:53:24.022Z]         <*errors.errorString | 0xc00048a400>: {
[2020-09-29T10:53:24.022Z]             s: "Timeout reached: timed out waiting for pods with filter  to be ready",
[2020-09-29T10:53:24.022Z]         }
[2020-09-29T10:53:24.022Z]     to be nil
12:53:24
12:53:24      /usr/local/go/src/reflect/value.go:460

Hit known flake #12777 as well: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/19937/testReport/junit/Suite-k8s-1/17/K8sDatapathConfig_ManagedEtcd_Check_connectivity_with_managed_etcd/
The portmap chaining one seems at a glance to be providingreal signal, though I note that it only failed on the k8s1.13 case and in none of the other cases, which seems a bit odd. Digging a bit deeper into the echo-b-host previous pod logs, I see this:
2020-09-29T10:49:49.675045046Z Cannot bind to the port 41000. Please specify another port number either through --port argument or through the json-server.json configuration file

Searching through old github issues, I found #11311 with the same failure scenario, which was fixed on v1.8 but the fix was not backported to v1.7. I'll mark the fix to evaluate for backport, but I'm not concerned to block this PR based on that failure.


Add content to readme

I just added content to the Readme file but the Heroku live link and a screenshot of our home page are missing. If you would kindly add them on after you are done.

ok


Add a refreshing background to the app

Need a background which changes over time, ofcourse the background should be pokemon related :rofl:

[x] I ensure that this issue is not a duplicate of any current open issues(s).
[ ] Assign this issue to me (I want to work on this).
[ ] I will send my PR only after I'm assigned to this issue by any maintainer.
[ ] I understand that I will be unassigned from this issue if I fail to send a PR for this within a week.

Fixed in #43


Unable to initialize the Fabric SDK

I cloned the repo and after making the binary file and starting the network when I try to run the binary.
SDK created
Ressource management client created
Unable to initialize the Fabric SDK: failed to save channel: opening channel config file failed: open /src/github.com/chainHero/heroes-service/fixtures/artifacts/chainhero.channel.tx: no such file or directory
The file is there.
I am in ubuntu 18.04
my fabric binary 1.4 is it causing this problem

are you using recemonded go version ?

Go is 1.13 which version should I use ?

sorry the exact version is 1.14.2


Fix fuse big reads

Fixes #833 (where most of the bug discussion is).

Also updated the pipeline.json spec to use new parallelism_spec field so that the example will run w whats on master


Testing if commenting out works

Signed-off-by: Matthias Wessendorf<EMAIL_ADDRESS>/hold
do not merge - only a test ......

/close
worked as expected


Build is broken since 7.2.0

Bug report

Actual Behavior
I just upgraded from version 7.1.0 to 7.2.0, the yarn build command returns the following error:
Cannot find module 'ts-node'
Expected Behavior
The yarn build command should work

  System:
    OS: macOS 12.6.2
    CPU: (8) x64 Apple M1
    Memory: 27.75 MB / 16.00 GB
  Binaries:
    Node: 14.21.1 - /var/folders/z8/9hvjpnrd7yn9qk6dmt7mxk300000gn/T/yarn--1680539298628-0.011389713840826765/node
    Yarn: 1.22.19 - /var/folders/z8/9hvjpnrd7yn9qk6dmt7mxk300000gn/T/yarn--1680539298628-0.011389713840826765/yarn
    npm: 8.19.2 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 111.0.5563.146
    Firefox: 110.0.1
    Safari: 16.4
  Packages:
    babel-loader: ^9.1.2 => 9.1.2
    clean-webpack-plugin: ^4.0.0 => 4.0.0
    css-loader: ^6.7.3 => 6.7.3
    file-loader: ^6.2.0 => 6.2.0
    html-webpack-plugin: ^5.5.0 => 5.5.0
    imports-loader: ^4.0.1 => 4.0.1
    postcss-loader: ^7.2.0 => 7.2.0
    replace-in-file-webpack-plugin: ^1.0.6 => 1.0.6
    sass-loader: ^13.2.2 => 13.2.2
    style-loader: ^3.3.2 => 3.3.2
    terser-webpack-plugin: ^5.3.7 => 5.3.7
    webpack: ^5.77.0 => 5.77.0
    webpack-cli: ^5.0.1 => 5.0.1
    webpack-dev-server: ^4.13.2 => 4.13.2
    webpack-merge: ^5.8.0 => 5.8.0
    webpack-notifier: ^1.15.0 => 1.15.0

Please try https://github.com/webpack-contrib/postcss-loader/releases/tag/v7.2.1

Please try https://github.com/webpack-contrib/postcss-loader/releases/tag/v7.2.1

It works, thanks!


feat!: Add getLoc/getRange to SourceCode interface

Prerequisites checklist

[x] I have read the contributing guidelines.

What is the purpose of this pull request?
Updates the SourceCode interface with getLoc() and getRange() methods.
What changes did you make? (Give an overview)

Added getLoc() method to SourceCode interface
Added getRange() method to SourceCode interface
Added SourceRange interface
Updated SyntaxElement type to be a union of several popular AST-location formats
Added an optional offset property to Position, as many ASTs support that

Related Issues
Refs https://github.com/eslint/eslint/issues/18695

Is there anything you'd like reviewers to focus on?
I marked this as breaking as existing implementations of SourceCode would now be invalid.
Also, I thought that including different formats of SyntaxElement would provide the best developer experience. Otherwise, I'd need to set SourceCode.ast to Object, so there would effectively be no type checking or intellisense available. I'm not sure if that makes the most sense.

@mdjermanovic just a reminder: when it looks like a PR is ready to merge, please move to "Merge Candidates"

This is blocking me currently, so going to merge to get moving again.


EthereumAddress class misspelt

The "EthereumAddress" class was not spelt correctly and thus confusing most especially when referencing it. On the current version "~2.0" it is spelt as "EthrereumAddress".
Also, is it an oversight that BitcoinCashAddress is missing from the package whereas it's Network equivalent is present?
Although one could create the Address classes by extending Resource, it is much more convenient just having to reference it directly from the package.

Using the API, I get an error that says
LogicException in Mapper.php line 124: The Coinbase API only accepts transactions to an account, email, or bitcoin address"
It is understandable why I get this error since I was trying to use an EthereumAddress. But is there any real reason for this limitation?? Why are other cryptocurrency addresses not allowed?


Fix : pagination issue, not using correct offset value

Closes #19
Although most functionality was already present.
Corrected the pagination usage as offset was not being properly set.

Where is the test?

It is a whole story regarding postgres in general. I can pick it up next

For the pageNumber or offset to work reliably, we need to maintain the DB cursor in the backend which adds more complexity(e.g., when to purge them, DB disconnection).
So, I suggest we do the pagination by CREATED_AT column. Let the implementation return pageSize(count would be more apt in this approach) the number of service requests ordered by their creation timestamp in descending order. To retrieve more service requests, the client needs to make further API calls with a query parameter createdBefore carrying the value of the last service request creation time from the previous API call. In this way, the pagination works reliably and we also take advantage of CREATED_AT index(we need to create one if it doesn't exist already).

For the pageNumber or offset to work reliably, we need to maintain the DB cursor in the backend which adds more complexity(e.g., when to purge them, DB disconnection).
So, I suggest we do the pagination by CREATED_AT column. Let the implementation return pageSize(count would be more apt in this approach) the number of service requests ordered by their creation timestamp in descending order. To retrieve more service requests, the client needs to make further API calls with a query parameter createdBefore carrying the value of the last service request creation time from the previous API call. In this way, the pagination works reliably and we also take advantage of CREATED_AT index(we need to create one if it doesn't exist already).


Display the logo of each Wikibase instance in the login form and Wikibase selection dialog

The Wikibase login form now shows the Wikibase logo on the left hand side:

It would be nice if we could have the logo of the selected Wikibase instance instead. This would be immediately recognizable to the user, who would therefore be less likely to enter credentials for another instance.
These logos could also be shown in the UI where we select which instance to work against.

Proposed solution
The URL of the logo used by the Wikibase instance can be fetched via the API:
https://daap.bannerrepeater.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics
Which gives a logo URL: https://daap.bannerrepeater.org/w/resources/assets/wiki.png
This would give something like this:

Alternatives considered
The logo could be added to the manifest, but if we can fetch it from the MediaWiki instance directly I think it simplifies everyone's life if we do that.
Additional context
We need to think about whether fetching these images from the frontend directly from the remote site could cause security or privacy issues. It seems that it is not more dangerous than visiting the Wikibase instance itself (since that loads the logo too), so I think is is acceptable?

Hello, I would like to work on this issue.

@sjathin wonderful! I have invited you to the organization: that should let you assign issues to yourself, help with issue tagging and other things like that.

@wetneb Thank you so much for the invitation !!!

@sjathin welcome aboard!

I am facing the following issue:
I am trying to get the URL of the logo(https://www.wikidata.org/w/api.php?action=query&meta=siteinfo&format=json) using the following :
$.ajax({url: <url-shown-above>, async: false, dataType: 'json', success:.....});
But this gives a CORS issue. if I try the same request using an API Client such as postman I get a response,
Not exactly sure as to why I am facing this CORS issue. Any thoughts on why the CORS issue and how I can resolve this?

Curious, I would expect CORS headers to be set correctly for this API. Have you inspected the headers of the response you get in postman? Have you tried JSONP too?

Yes I did try with JSONP, it works fine, but the problem that I faced is that I cannot do JSONP as async:false

Did the CORS issue resolve itself?  I’m happy to take a look if it’s still an issue.

Yes, it did resolve, making the dataType as jsonp fixed it.


[elfio] Update elfio from 3.8 to 3.9

Describe the pull request
Updates elfio from 3.8 to 3.9

What does your PR fix?
Fixes #17248

Which triplets are supported/not supported? Have you updated the CI baseline?
All, Yes

Does your PR follow the maintainer guide?

Yes

The failures caused by popsift will be fixed by #17277.

Thanks @schultetwin1 :)


cmd/Bosun Items page data question

Hello,
I have a question about Items page in cmd/Bosun application. Is it so that it shows data only for openTSDB datasource?
Depending on setup it might be completely empty and confuse users who doesn't set up an openTSDB environment. Mine suggestion is to disable this menu point and show tooltip that describes in which case this menu point might be available. What do you think about that?
Thanks!

I see the PR got merged. Can this issue be closed too?


MKL no longer works with tensorflow 1.15

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): NO

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Centos 7

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): 1.15.2

Python version: N/A

Bazel version (if compiling from source): 0.24.1

GCC/Compiler version (if compiling from source): gcc-6 (devtoolset-6 on centos 7)

CUDA/cuDNN version: N/A

GPU model and memory: N/A

Exact command to reproduce:

 bazel build -c opt --copt=-msse4.2 --copt=-mavx \
       --copt=-O3 --config=mkl --linkopt -ldl \
       --copt=-march=x86-64 \
       //tensorflow/tools/pip_package:build_pip_package \
       //tensorflow/tools/lib_package:libtensorflow_jni \
       //tensorflow/tools/lib_package:libtensorflow \
       //tensorflow/tools/lib_package:libtensorflow_proto \

Describe the problem
libtensorflow_framework.so build this way does not have any symbols from MKL. When trying to import tensorflow from java scala, it fails with symbol not found for tensorflow::DisableMKL()
The number of MKL symbols found in libtensorflow_framework.so for 1.15 are also significantly lower than those found in 1.14.
Source code / logs
Code used to import tensorflow in scala
import org.tensorflow.Tensorflow

Note: We have to ensure libiomp5.so and libmklml_intel.so are available on library load path.
The simplest solution we found was to load the libraries manually in order. The code snippet can be seen here:
https://gist.github.com/pavanky/ea6e71e3e7e52c013db844b715723be0
Error
libtensorflow_jni.so: undefined symbol: _ZN10tensorflow10DisableMKLEv

Looking at the number of symbols related to MKL:
 $ nm -D org/tensorflow/native/linux-x86_64/libtensorflow_framework.so.1 | grep -i mkl | wc -l
1
 $ nm -D org/tensorflow/native/linux-x86_64/libtensorflow_jni.so | grep -i mkl | wc -l
9
 $ nm -D org/tensorflow/native/linux-x86_64/libtensorflow_framework.so.1 | grep -i mkl
0000000000e127b0 T _ZN10tensorflow12IsMklEnabledEv

For reference, 1.14 had a lot more
 $ nm -D org/tensorflow/native/linux-x86_64/libtensorflow_framework.so.1 | grep -i mkl | wc -l
11388
 $ nm -D org/tensorflow/native/linux-x86_64/libtensorflow_jni.so | grep -i mkl | wc -l
8

MKL is also not available in the wheel built by the command mentioned above.
>>> import tensorflow as tf
>>> tf.python.pywrap_tensorflow.IsMklEnabled()
False

tried to build with this patch, all it did was get rid of the error. The performance regression tests we have in house indicate MKL is not being used (i.e. they are on par with no-mkl).
iff --git a/tensorflow/core/util/util.cc b/tensorflow/core/util/util.cc
index 489999d..5f93530 100644
--- a/tensorflow/core/util/util.cc
+++ b/tensorflow/core/util/util.cc
@@ -120,7 +120,7 @@ string SliceDebugString(const TensorShape& shape, const int64 flat) {
   return result;
 }

-#ifdef INTEL_MKL
+//#ifdef INTEL_MKL
 bool DisableMKL() {
   enum MklStatus { MKL_DEFAULT = 0, MKL_ON = 1, MKL_OFF = 2 };
   static MklStatus status = MKL_DEFAULT;
@@ -135,5 +135,5 @@ bool DisableMKL() {
   }
   return status == MKL_OFF ? true : false;
 }
-#endif  // INTEL_MKL
+//#endif  // INTEL_MKL
 }  // namespace tensorflow
diff --git a/tensorflow/core/util/util.h b/tensorflow/core/util/util.h
index 4aa47aa..c829707 100644
--- a/tensorflow/core/util/util.h
+++ b/tensorflow/core/util/util.h
@@ -57,9 +57,9 @@ string PrintMemory(const char* ptr, size_t n);
 string SliceDebugString(const TensorShape& shape, const int64 flat);

 // disable MKL in runtime
-#ifdef INTEL_MKL
+//#ifdef INTEL_MKL
 bool DisableMKL();
-#endif  // INTEL_MKL
+//#endif  // INTEL_MKL

 }  // namespace tensorflow

@pavanky Could you please update the original post to provide the commands you used to import tensorflow from java as well? Thank you very much!

@ashraf-bhuiyan @claynerobison

@penpornk I update the original description with more information. We technically use scala and not java, but that shouldnt be too different.

@penpornk Also verified from python (wheel) that MKL is not available.

@pavanky Thank you very much for the additional details!
I tried this on Ubuntu 16.04, gcc 5.4.0, and python2.7. (TF 1.15.2.)

One additional question: are there changes in behavior between 1.15.0 and 1.15.2?

@penpornk did you use the same build instructions or did you try something different?

@pavanky Yes, I used the instruction you provided:
 bazel build -c opt --copt=-msse4.2 --copt=-mavx \
       --copt=-O3 --config=mkl --linkopt -ldl \
       --copt=-march=x86-64 \
       //tensorflow/tools/pip_package:build_pip_package \
       //tensorflow/tools/lib_package:libtensorflow_jni \
       //tensorflow/tools/lib_package:libtensorflow \
       //tensorflow/tools/lib_package:libtensorflow_proto

I tried building it on CentOS but got this JDK header error. (I'm using OpenJDK version 1.8.0_242, the same version I used for Ubuntu.) Any suggestions?
ERROR: <bazel_cache_directory>/1cd7327d9a236f0d3fa30a23be6b1071/external/bazel_tools/tools/jdk/BUILD:96:1: Executing genrule @bazel_tools//tools/jdk:gen_include/linux/jni_md.h failed (Exit 1)
cp: cannot stat 'external/local_jdk/include/linux/jni_md.h': No such file or directory

@penpornk this is the setup I am using (minus the Twitter specific stuff): https://gist.github.com/pavanky/5a45b29ed3ca56b7e1c747b9c0c88503
I then run make IMAGE_TYPE=cpu USE_MKL=1

I could reproduce the results of @penpornk on Centos 7 along with all other sw installs mentioned in the original thread.  All amendments should be all about bug fixes or security issue fixes.

@preethivenkatesh are you using the same bazel version? Can you also check for symbols in libtensorflow_framework.so

@penpornk are you using the same version of bazel ? 0.24.1?

@pavan,
libtf_symbols.txt

@jingxu10 Yes, I know that. But I'm asking because the build process changed between the 1.15.0 and 1.15.2 and wanted to make sure this issue is not because of that.

@jingxu10 Yes, I know that. But I'm asking because the build process changed between the 1.15.0 and 1.15.2 and wanted to make sure this issue is not because of that.

Are the changes in the build process in the r1.15 branch?

The build scripts are in the branch now. They weren't before we started the patch process release.

so , does this mean you are able to build it with the latest r11.5?

@pavanky Yes, I used bazel 0.24.1. I haven't had a chance to try your docker file yet, sorry!
Would love to know if you had problems with 1.15.0 too.

@preethivenkatesh Would you mind trying @pavanky's dockerfile as well? Maybe the issue lies there.

yeah I'll try to work on it today

we are able to reproduce the issue in the dockerfile. we'll continue to troubleshoot

Thank you for the update!

@preethivenkatesh please let me know if I can do anything to help

@preethivenkatesh any updates?

@pavanky this was assigned to me now.
Stay tuned please and I keep you posted.
I was able to reproduce the issue using your Dockerfile.
One thing to keep in mind though both Python2.7 and CentOS 7 are considered unsupported configurations starting TensorFlow v1.15 but I'm not going to make a final call on that just yet 🙂

@ashahba python2 support has been dropped internally, if you can get reproduce with python3 that is OK as well.

@ashahba Even I thought this issue could be because on 2.7, but I was able to reproduce this issue on py36 when I tired.

Hi @pavanky and @preethivenkatesh I have put some docker and scripts together here to help you with building TensorFlow with MKL on CentOS 7 here: https://github.com/ashahba/centos7-tf
I tried:
docker build --build-arg TF_BRANCH=v1.15.2 --build-arg PY_VER=3.6 --build-arg CONFIG_VER=v2 -f Dockerfile . -t centos-tf-3.6-v2

and the bazel options where reported as follows:
Writing build flags: build --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=0 --copt=-O3 --copt=-Wformat --copt=-Wformat-security --copt=-fstack-protector --copt=-fPIC --copt=-fpic --linkopt=-znoexecstack --linkopt=-zrelro --linkopt=-znow --linkopt=-fstack-protector --copt=-mmmx --copt=-msse --copt=-msse2 --copt=-msse3 --copt=-mssse3 --copt=-msse4.1 --copt=-msse4.2 --copt=-mpopcnt --copt=-mavx --copt=-maes --copt=-mpclmul --config=mkl --config=v2

and of course the wheels correctly report MKL support:
python3
Python 3.6.8 (default, Aug  7 2019, 17:28:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow_core as tf_core
>>> tf_core.python.pywrap_tensorflow.IsMklEnabled()
True

and also:
nm -D  /tensorflow_src/bazel-out/k8-opt/bin/tensorflow/libtensorflow_framework.so.1 | grep -i mkl | wc -l
15718

I tried this for both Python 2.7 and Python 3.6 and on both v1.15.0 and v1.15.2 as described in the repo and they all seem to work fine.
Also if you have new bazel flags or targets that need to be built, you can just modify the file build_tf_whl.sh around this line:
https://github.com/ashahba/centos7-tf/blob/master/build_tf_whl.sh#L46
Good luck and please let me know if that solves the issue you are seeing.
Thanks.

One think to note, is that most of the work is just reusing scripts that are already in TensorFlow repo.

@ashahba Thank you very much!

@ashahab thanks trying!

Thanks the new dockerfile works!


Beaglebone target missing from kubos.mk

https://github.com/kubostech/kubos-linux-build/blob/master/package/kubos/kubos.mk#L21
Additionally the else branch not having KUBOS_TARGET set seems to break on my buildchain - I'm not super familiar with buildroot, but it seems that this method of raising an error isn't particuarly robust (ie. I wasn't actually getting the 'unknown target' error that this line suggests should occur.

There are definitely a few improvements that need to be made. The kubos.mk file was created and tested against the ISIS-OBC, which is our current officially supported target; the error case wasn't properly tested (that's on me). The beaglebone black target is not officially supported yet and does have some outstanding work remaining. This will be fixed some time in the next week or two.
If you'd like to get the beaglebone target to work for now, there are a few things you'll need to do:

Replace the kubos.mk file's else case line with KUBOS_TARGET = kubos-linux-beaglebone-gcc
Run this command: sudo apt-get install crossbuild-essential-armhf gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
Re-run make from your buildroot folder. If you get any weird errors, try running make kubos-deepclean and then re-running make

If you're planning on creating a Kubos SDK project to go on your beaglebone, you'll need to run two more commands:

kubos use <IP_ADDRESS> (the latest build of the SDK, which includes the new beaglebone target)
kubos link -a

Already got one working actually, using much the same as what you've just mentioned. Thanks though, figured I'd still open the issue :)

Awesome! We absolutely appreciate the feedback!

Looks like this was fixed in e5ad3ca527c6e71d10ed76bd78672dee3f6061f8


Cook 3926

I'm closing this one out for now.  It's worth circling back to if the package ends up in more distros, but it's not worth the added complexity at the moment.


chore(effect): add cleanup effect test case

close #5521  close #5533

This doesn't seem to be testing anything different from the test case above, nor does it fix anything.

This test case can fix this #5541


Update error messages and labels

Context

Remove ‘please specify’ from form labels
Replace ‘Please explain…’ with  ‘Tell us…’

@emmajhf

@paulrobertlloyd merging this for you to reduce the number of open PRs!


Eternal Reload with mod installed

When I opened up Minecraft to play this mod, the title screen kept reloading, and all text was replaced with "Missing Letter" squares. The only thing that changed was that I had put this mod into the game (as well as BCLib) and a Windows update.(I do not think that the windows update is the cause)(If it is I will report back saying that it isn't the mod causing this)
Version is 1.17.1

I removed BCLib as well as Better End and minecraft loaded properly.

Not BCLib's fault either.

Can you please send your logs?

I do not know what you are asking after, but if it makes any difference I had to exit out of the game manually. (NO buttons worked)( I had the game windowed because of a mod)

latest.log
I  think this is what you want? I'm not totally sure.

ConcurrentModificationException

in

team.chisel.ctm.client.handler

The real reason of crash is CTM, disable it and it will work fine

I... Don't know what CTM is. Nor do I know what mod it's hiding with.

Oh wait it's connected textures mod isn't it?

The game works now! Thanks


Add CNAME for taskata.js.org

@F-Ruxton I'm just trying to add the DNS config so that we can claim http://taskata.js.org - once we've merged this change and pushed to gh-pages again then I can complete the setup of the custom domain on the other end.


Fix bugs

What kind of change does this PR introduce?

Fix #38
Fix #41

pr: @thorwebdev | @soedirgo
TBH the "globalThis" is a new one to me.
#38 links to this: https://codesandbox.io/s/github/supabase/supabase/tree/master/examples/nextjs-todo-list
I suspect if globalThis isn't supported, perhaps localStorage isn't either? Not really sure what to do in these situations. Hopefully this is a step closer. #kaizen

pr: @thorwebdev | @soedirgo
TBH the "globalThis" is a new one to me.
#38 links to this: https://codesandbox.io/s/github/supabase/supabase/tree/master/examples/nextjs-todo-list
I suspect if globalThis isn't supported, perhaps localStorage isn't either? Not really sure what to do in these situations. Hopefully this is a step closer. #kaizen

Fixes:
https://github.com/supabase/supabase-js/issues/113
https://github.com/supabase/supabase-js/issues/89

Fixes:
https://github.com/supabase/supabase-js/issues/113
https://github.com/supabase/supabase-js/issues/89


[MRG] add EEG_matchingpennies to testing data

To do:

[ ] merge #42 through "rebase and merge" option

Looks good!

can you rebase now @sappelhoff ?

done @jasmainak

Merged, thanks @sappelhoff !

@sappelhoff can you help me finish the other two PRs #43 and #41 ? You can push directly to my branch (let me know if you don't have permission)

sure, let me take a look at it :+1:

Magic how little lines you need for a new dataset :)
We should have one dataset that also does make source and ideally make report we could see as artifact on circle


Simulation support for pipes and pipe_arrays

Linux:

pipes: https://psg-sc-arc.sc.intel.com/arc/dashboard/reports/show_job/646898033
pipe_array:


Fix zarr 3.0 compatybility

References and relevant issues
closes #7193
Description
Fix zarr 3.0 related test by used named arguments

One of the big  changes of Zarr v3 is that everything now goes in zarr.json instead of .zarray + .zgroup + .zattrs

It looks also like zarr.open is a problem as it does not allow creating group file.

Looks like need to block pydantic==2.9.0b1 for this PR.

There is even issue for this https://github.com/pydantic/pydantic/issues/10239 initially reported here https://x.com/Czaki_PL/status/1828178992332955873

a6 has https://github.com/zarr-developers/zarr-python/pull/2158, so we may be good to go?

a6 has zarr-developers/zarr-python#2158, so we may be good to go?

I will not have time before Thursday to sit on this.

The test_add_zarr_1d_array_is_ignored and test_add_many_zarr_1d_array_is_ignored are failing because __setitem__ for 1d array is not implemented.
Did we really need to test if 1d arrays are ignored?
other failing are looking to need fixes on our side.

To avoid the deprecation, should be no issue to just use create_array instead of create_dataset, because I don't think we care about h5py in our tests?

Unfortunately, zarr 2.x does not have create_array method, so we need to keep create_dataset for zarr 2.x compatybility. See https://github.com/napari/napari/actions/runs/11660697193/job/32463676718?pr=7215#step:13:576

Gah, sorry! I've was using a zarr v3 env and reading those docs.
Annoying!


0126 - Word Ladder II

Description of the Problem
Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such that:

Only one letter can be changed at a time
Each transformed word must exist in the word list. Note that beginWord is not a transformed word.

Note:

Return an empty list if there is no such transformation sequence.
All words have the same length.
All words contain only lowercase alphabetic characters.
You may assume no duplicates in the word list.
You may assume beginWord and endWord are non-empty and are not the same.

Example 1:
Input:
beginWord = "hit",
endWord = "cog",
wordList = ["hot","dot","dog","lot","log","cog"]

Output:
[
  ["hit","hot","dot","dog","cog"],
  ["hit","hot","lot","log","cog"]
]

Example 2:
Input:
beginWord = "hit"
endWord = "cog"
wordList = ["hot","dot","dog","lot","log"]

Output: []

Explanation: The endWord "cog" is not in wordList, therefore no possible transformation.

Code
class Solution:
    def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:

Link To The LeetCode Problem
LeetCode

I would like to solve this. Can you please assign this?

I will solve this issue. Please assign this to me

7 day inactivity - assigned @DhawalKhapre


Build a package without vcs

I have a project that builds python extensions (.pyd binary files) which need to be installed in the same folder as python files.  The build attempte to to make a wheel using flit from those binaries.
The problem is flit requires the .pyd files to be staged in git, which I don’t wish to do.
Any suggestions for a workaround??

If you have a project that builds Python extensions, flit isn't the right tool for you. You'll want to use a different build backends that are designed to support that use case, like https://github.com/scikit-build/scikit-build or https://pypi.org/project/meson-python/ or https://github.com/pypa/setuptools.

I wonder how this is supposed to work anyway, do you want to have to manually run a Makefile before running flit?
Do you want to be able to run pip install with an sdist (for example via PyPI)?

Yea i have a cmake build that produces the two pyd files and i need them installed in the same folder as  the python files.
they will be installed with something like
pip install ./mywheel.whl .
Don’t plan to distribute an sdist.

Then it sounds like scikit-build would be a great fit for you?

sci-kit builds looks like 3 steps back to setuptools.
I think i’ll just script staging my binaries with git as part of the build process to trick flit into making my wheel.  Or use .gitignore on them if that works.

It turned out if I put just include the build targets in .gitignore, they  are still included in the wheel made by flit, so that completel y worked.


OpcPublisher: BadSubscriptionIdInvalid

Hi,
We are testing OPC Publisher since a few days. If we choose a publishing interval around 200ms we get an BadSubscriptionIdInvalid-Error after a few seconds/minutes and the subscription gets lost.
error message
2020-11-16 16:27:10.282 +01:00 [ERR] Exception
Opc.Ua.ServiceResultException: BadSubscriptionIdInvalid
at Opc.Ua.Client.Subscription.SetPublishingMode(Boolean enabled) in C:\Build\Projects\NETStandard-NuGet\src\SampleApplications\SDK\Opc.Ua.Client\Subscription.cs:line 1069
at OpcPublisher.OpcUaSubscription.SetPublishingMode(Boolean enabled) in D:\dev\IoT_Publisher\opcpublisher\OpcUaSubscription.cs:line 76
at OpcPublisher.OpcSession.MonitorNodesAsync(CancellationToken ct) in D:\dev\IoT_Publisher\opcpublisher\OpcSession.cs:line 731
OS
Windows 10 Enterprise
Is that an OPC Publisher issue?
best regards
jo

I forgot to mention the version: We are using v2.4.1

This is fixed in v 2.5.3. Please retest. Thanks!

Do you mean v2.5.3 of the IIoT repo?


Bug fix: fixed query to obtain the code node.

What
We can't rely on the listID, intead we need to find it according to usedBy edge and the codelist node at the other end
Example of a situation that triggered the bug:

We want to get the code node that has value S13002553 and is used by codeList administrative-geography:

code node with value S13002553:

g.V().hasLabel('_code').has('value', 'S13002553').valueMap(true)
==>{listID=[geography], id=_code_geography_S13002553, label=_code, value=[S13002553]}

codelist nodes that have edges with this node:

 g.V().hasLabel('_code').has('value', 'S13002553').out('usedBy').valueMap(true)
==>{listID=[administrative-geography], id=_code_list_administrative-geography_one-off, geography=[true], label=_code_list, edition=[one-off], label=[Geography]}
==>{listID=[output-area], id=_code_list_output-area_2011, geography=[true], label=_code_list, edition=[2011], label=[Geography]}

Note that the code node has listID that does not match the codeList value. This is because this node is used by multiple codelists, hence there is no way to define a unique codelist value as a property of the code node.
The solution to get the code node by unique {code, codelist} is by checking usedBy edge.
How to review

Make sure change makes sense
Make sure unit tests pass
This change has been tested with hierarchy builder, with administrative-geography codelist (the same dataset that triggered the bug originally)

Who can review
Anyone

This makes sense 👍
Thanks for explaining it 😁

thanks for approving it :)


Allow for unquoted keys

The junker should handle this contents fine:
{
  name: "there",
  version: 2.0
}

Added support for it in 2.1.6


Add calls to modify UVM memory size and tests

This is an intermediate PR for UVM dynamic resources
Signed-off-by: Kathryn Baldauf<EMAIL_ADDRESS>

It would be good to include a bit more background in the info on what this does, why it's needed, etc.


Problem with service in MySaveHandler

@volkanceylan help me please.
I have two tables, Table1 and Table2. Table2 is extended data table with relation 1-1.
In AfterSave() of MySaveHandler of Table1 I update or create the Table2 data. If I use this first way, al works, but the behviors are not called.
If I use the second way the behviors are called, but after first insert (update) I receive an error.
// FIRST WAY OK
protected override void AfterSave()
{
    base.AfterSave();

    var fTableFields = Table2Row.Fields;
    Table2Row extendRow = null;

    if (!IsCreate)
        extendRow = Connection.TryFirst<Entities.Table2Row>(fTable2Fields.IdParent == Row.Id.Value);

    var updL = extendRow != null ? extendRow : new Table2Row()
    {
        IdParent = Row.Id,
        [...]
    };

    updL.field = Row.jField;
    [...]

    if (IsCreate)
        Connection.Insert<Table2Row>(updL);
    else
        Connection.UpdateById<Table2Row>(updL, ExpectedRows.One);
}

with this secon way, after first insert (update) I have the problem: Unable to cast object of type System.Int32 to type System.String. It seems as if the framework seeks to update another entity.
// SECOND WAY OK ONLY IN FIRST INSERT/UPDATE
protected override void AfterSave()
{
    base.AfterSave();

    var fTableFields = Table2Row.Fields;
    Table2Row extendRow = null;

    if (!IsCreate)
    {
        var lr = new ListRequest();
        lr.EqualityFilter = new System.Collections.Generic.Dictionary<string, object>();
        lr.EqualityFilter.Add(fTable2Fields.IdParent.PropertyName, this.Row.Id.Value);
        lr.ColumnSelection = ColumnSelection.List;

        extendRow = new Table2Repository().List(Connection, lr).Entities.First();
    }

    updL.field = Row.jField;
    [...]

    var saveRequest = new SaveRequest<Table2Row>();
    saveRequest.Entity = updL;
    if (IsCreate)
        new Table2Repository().Create(this.UnitOfWork, saveRequest);
    else
    {
        saveRequest.EntityId = updL.Id;
        new Table2Repository().Update(this.UnitOfWork, saveRequest);
    }
}

Do you have a strack trace, couldn't understand here

After putting the fields in the row in the order they are on DB the problem has disappeared. But the fields in the row must be in the same sequence?

No, as far as i know. Are you sure you don't do select * from somewhere.


'react-native init' error : npm ERR! Command failed: git fetch -a origin

An error has occurred while I trying to initialize a react-native project by: react-native init awesomeProject:
Installing react-native package from npm...
`npm install --save react-native` failed

Then I run this npm command manually , the errors looks like happen here:
npm verb afterAdd /Users/mc-zone/.npm/joi/6.9.1/package/package.json not in flight; writing
npm verb afterAdd /Users/mc-zone/.npm/joi/6.9.1/package/package.json written
npm ERR! git fetch -a origin (git://github.com/facebook/react.git) fatal: Unable to create temporary file '/Users/mc-zone/.npm/_git-remotes/git-github-com-facebook-react-git-baa2986b/./objects/pack/tmp_pack_XXXXXX': Permission denied
npm ERR! git fetch -a origin (git://github.com/facebook/react.git) fatal: index-pack failed
npm verb about to build /Users/mc-zone/_dev/rn/node_modules/react-native
npm verb unlock done using /Users/mc-zone/.npm/_locks/react-native-ce52a7d7697a2d98.lock for /Users/mc-zone/_dev/rn/node_modules/react-native
npm verb stack Error: Command failed: git fetch -a origin
npm verb stack fatal: Unable to create temporary file '/Users/mc-zone/.npm/_git-remotes/git-github-com-facebook-react-git-baa2986b/./objects/pack/tmp_pack_XXXXXX': Permission denied
npm verb stack fatal: index-pack failed
npm verb stack
npm verb stack     at ChildProcess.exithandler (child_process.js:203:12)
npm verb stack     at emitTwo (events.js:87:13)
npm verb stack     at ChildProcess.emit (events.js:172:7)
npm verb stack     at maybeClose (internal/child_process.js:818:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm verb cwd /Users/mc-zone/_dev/rn
npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/mc-zone/.nvm/versions/node/v4.2.1/bin/node" "/Users/mc-zone/.nvm/versions/node/v4.2.1/bin/npm" "install" "react-native" "--save"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code 128

npm ERR! Command failed: git fetch -a origin
npm ERR! fatal: Unable to create temporary file '/Users/mc-zone/.npm/_git-remotes/git-github-com-facebook-react-git-baa2986b/./objects/pack/tmp_pack_XXXXXX': Permission denied
npm ERR! fatal: index-pack failed
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm verb exit [ 1, true ]

Seems to be a permission problem, I also use sudo chown -R $USER ~/.npm still not working.
And this npm install is excuted by react-native-cli so I can't add the sudo command to npm  (sudo react-native init  still can't work )
How can I resolve this?
========
Other infomation:
System: Mac OS X 10.10.3
npm is installed by nvm when install node.
nvm is installed by brew.
$ npm -v
2.14.7
$ node -v
v4.2.1

And there is my folders permissions (want to init application in _dev):
drwxrwxrwx  521 mc-zone  staff   17714 10 17 19:20 .npm
-rw-------    1 mc-zone  staff      56 10 17 17:01 .npmrc
drwxrwxrwx    5 mc-zone  staff     170 10 17 16:57 .nvm
drwxrwxrwx    4 mc-zone  staff     136 10 16 23:15 _dev

You could try blowing away .npm with npm cache clean. Barring that this might be a bug for npm upstream since react-native doesn't seem to be doing anything special here.

@ide  What should I do In this case?  Reinstall npm can resolve it ?
Would be very grateful If you can provide some solutions. I  have been obsessed me for 2 days.

@ide  I tried npm cache clean, even uninstalled npm and completely reinstalled it again still not work. But it return to normal when I updated my OS X version to 10.11. Maybe there was some problem in my OS file system about permissions. So wierd.. Anyway, thank you for your tip.

Using the OS X disk utility to repair file permissions + restarting your computer might have helped as well (this happens during upgrades). Glad you got it fixed.


:bomb: Bug:  use kube-prometheus plugin seem happend error

What Happened?
prom.yaml:
---
# core config
varFile: "" # If not empty, use the specified external variables config file
toolFile: "" # If not empty, use the specified external tools config file
state: # state config, backend can be local or s3
  backend: local
  options:
    stateFile: devstream.state

---
# plugins config
tools:
  - name: kube-prometheus
    options:
      create_namespace: true
      repo:
        name: bitnami
        url: https://charts.bitnami.com/bitnami
      chart:
        namespace: monitoring
        timeout: "30s"
        chart_name: kube-prometheus

How to use:
dtm apply -f examples/prom.yaml
What happend:
2022-07-11 22:47:34 !! [ERROR]  Errors Map: key(kube-prometheus/-Create) -> value(non-absolute URLs should be in form of repo_name/path_to_chart, got: kube-prometheus)
2022-07-11 22:47:34 !! [ERROR]  Apply failed => some error(s) occurred during plugins apply process.
How to Reproduce?
No response
Anything else
No response
DevStream Version
latest

The value of chart_name should be prometheus-community/kube-prometheus-stack
https://docs.devstream.io/en/release-0.7/plugins/kube-prometheus/#usage

拴Q, It's Working @iyear


snowmachine: move to applications/misc/

Motivation for this change
The snowmachine package sits in pkgs/applications/ among folders that represent
categories.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

The snowmachine package sits in pkgs/applications/ among folders that represent
categories.

Thanks for the catch, I didn't realize I had placed this outside of the normal directory structure! I agree that pkgs/applications/misc is a much better spot.
I reviewed the hierarchy in the Nixpkgs manual, and I'll pay more attention to where I'm adding packages in the future.

The snowmachine package sits in pkgs/applications/ among folders that represent
categories.

Thanks for the catch, I didn't realize I had placed this outside of the normal directory structure! I agree that pkgs/applications/misc is a much better spot.
I reviewed the hierarchy in the Nixpkgs manual, and I'll pay more attention to where I'm adding packages in the future.


roc.DefaultConnection log level

Hello, I'm seeing log messages like this:
Jul 26, 2019 4:19:10 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
...how can I control this log level? I have found these methods:
JISystem.setInBuiltLogHandler(false);
JISystem.getLogger().setLevel();

...but how can I get the JISystem instance?
Thanks!

Hello,
What version are you using ? The best way to change log level in an application is to use a configuration file. We are using slf4j as you can see in the pom file :
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.12</version>
        </dependency>

Maybe you will have to add an implementation of slf4j as indicated in their documentation https://www.slf4j.org/docs.html
In test we added this dependency
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>1.1.3</version>
            <scope>test</scope>
        </dependency>

Then it test you should be able to use log config file of logback.
May I ask why are you using our library ? What is your use case ? Maybe we can help you to achieve what you are trying to do ?
Do not hesitate to contact us with any questions you may have at this mail<EMAIL_ADDRESS>

👋 Hi. The PR mentioned above shows an example of how to control what is logged by the opc-da subsystem.
TL;DR
jInterop uses java.util.logging. In order to make it working with slf4j you need to bridge it. First you need to declare the dependency for the bridge
<dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jul-to-slf4j</artifactId>
            <version>1.7.36</version>
            <scope>runtime</scope>
        </dependency>

The statically init it:
static {
        SLF4JBridgeHandler.removeHandlersForRootLogger();
        SLF4JBridgeHandler.install();
    }

Then configure the logger level as usual.
Best,
Andrea

J-Interop can't work properly after Microsoft applied DCOM hardening. You can check link here on this issue.
Alternatively, you can try this solution to retrieve OPC data back in Java. It utilizes network transportation layer to access data, so there is no 3rd party Java library or SDK required. IMO, it is simple and straightforward. Cheers!


[move-book] Added block doc comment option

Move seems to support block doc comments /** */.
It seems that the document does not make style recommendations on the
comment style, therefore listing all the possible comment options here.
This PR was originally opened against diem repository: https://github.com/diem/diem/pull/9660
(The Stale bot reminded me that the PR was still open)
Motivation
(Write your motivation for proposed changes here.)
Have you read the Contributing Guidelines on pull requests?
Yes (the whole file, the anchor "pull-requests" doesn't exist anymore).
Test Plan
Documentation-only change (book).
Related PRs
Original PR (now closed): https://github.com/diem/diem/pull/9660

/land


staging/olm: Re-generate test fake package(s)

Run go generate ./... at the root of the
staging/operator-lifecycle-manager repository.

Need to verify that the unit-olm check is green before merging.
/hold

Looks like we're good to go
/hold cancel


Bug Report: Funkin.exe keeps disappearing after I extract it.

After I extract it, it pops up with a message
"Cannot open KadeEngine1.4-Release-Edited\Funkin.exe.
 If so, please use Wine.

wine doesent work because the dll is different then linuxs and linuxs code is different so it wont match up if u use wine

macos is the same

and even if u replace the file executables it wont work, sorry man tuff luck on getting this engine ported

"lime build mac"

still

ur av


sigma coin id path broken

Actual behaviour
sigma coin ID value messed bad time.
every ID is 1
would like to see real ID

id1 is correct it refers to accumulator id which is all 1 for now until it hits 16000 in the anonymity set
On all Sigma we are on id1 for each denomination. Once it hits 16,000 it will move to id2.


[Todoist] "Today" and "Upcoming" commands show tasks not assigned to me

Extension
https://www.raycast.com/thomaslombart/todoist
Description
The "Today" and "Upcoming" commands show tasks not assigned to me. To solve that issue, the filter that fetches the tasks should be updated to include tasks that aren't assigned OR that are assigned to the logged in user (me).
Example (not tested):

today.tsx → (overdue | today) & (!assigned | assigned to: me)
upcoming.tsx → all & (!assigned | assigned to: me)

Steps To Reproduce

Create a shared project.
Create a task due today and assigned to a different user.
Run the "Today" or "Upcoming" commands.

Current Behaviour
That new task is shown.
Expected Behaviour
The new tasks should not be shown.

Hey @enricenrich, I'm working on an overhaul of the extension that should solve your issue (and provide many other useful features). Stay tuned 📻

Thanks for the update, @thomaslombart! I'm looking forward to test it. 🚀

Fixed: #6498


build ios on mac only

avoid downloading useless libraries when building on windows by not building for ios

This is useful but I think that windows users should add this by themselves, it's going to add unnecessary complexity to the build.gradle files


Most middleware (like query) is no longer bundled with Express

Hi,
probleme with express
Most middleware (like query) is no longer bundled with Express
How solve this for use ?
regards

I believe that is not within the scope of http2-express-bridge.