BUG: GH12622 where pprint of Timestamp in nested structure fails

[x] closes #12622
[x] tests added / passed
[x] passes git diff upstream/master | flake8 --diff
[x] whatsnew entry

I suspect this is a bug in Cython (I don't think type(A).func should be an instancemethod).  Not sure if we should use this workaround as we encounter issues in the wild, or do this for all the functions we can think of.

updated

@wesm this work for you?

@kawochen let's put a test in for Timedelta. I think it has the same issue.

Looks like this should work. Cython esoterica!

thanks @kawochen

@kawochen forgot to test for Timedelta, can you do a pr which adds?
Though does seem to work
In [7]: d = {'foo': 1, 'bar': [{'what': {'footttttttttttttttttttttttttttttttttt': pd.Timestamp('2011-01-01')}}] * 10, 'baz': [{'what': {'footttttttttttttttttttttttttttttttttt': pd.Timedelta('1 day 1 min')}}] * 10}
In [8]: d
Out[8]:
{'bar': [{'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}}],
 'baz': [{'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
  {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}}],
 'foo': 1}

In [9]: pprint.pprint(d)
{'bar': [{'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timestamp('2011-01-01 00:00:00')}}],
 'baz': [{'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}},
         {'what': {'footttttttttttttttttttttttttttttttttt': Timedelta('1 days 00:01:00')}}],
 'foo': 1}

No problem. Was going to update today :)


Refactoring functions

It might be better for organisation in the long run if we put each command/function into individual files, e.g. modules/unit.py, modules/roles.py etc. I think it's easier to manage than a giant bot.py file. Individual modules can be added/removed by just choosing what to import.

I'll see what I can do


Allow wind resource files (SRW) with .csv format

SAM requires that wind resource data files have the .srw file extension. The SRW file format is a comma-separated format, so it makes sense to use the .csv file extension. This would help reduce confusion about the file format, make it easier to use spreadsheet software to open the files, and help with compatibility with files from the NREL RE Data Explorer:
https://www.re-explorer.org/re-data-explorer/download/attributes
RE Data Explorer files are currently returned in a different format, but NREL is considering changing it to use the SRW format with a .csv extension.
The WIND Toolkit API returns .srw files, so SAM should allow both extensions.

Fixed in https://github.com/NREL/SAM/commit/027df07898309acfc553f49a8931b910cc065c97


Adding files match with paths argument into coverage list

I discovered that:

The coverage option (--cov or coverage=true) does coverage only the source file, but does not coverage other modules required by the source.
The option -p or --paths has not been used anywhere in your code.

In this PR, I make the files that match the paths parameter include in coverage report, which I think it could be useful. Please review.

Let's close this PR for now. I will take your suggestion and send you a new one. You can also go ahead and implement it if you have time.
BTW. Happy new year.

Let's close this PR for now. I will take your suggestion and send you a new one. You can also go ahead and implement it if you have time.
BTW. Happy new year.


Update Anti.lua

If that wait() did something important then this change is nice.
Pretty sure scel had a fit the last time someone tried to change all the waits to task.wait(), mostly because he did a replace all for the word wait.

The main reason I don't do the task.wait changes is because the variable for wait() is already pointing to task.wait p sure. Does anyone know the benefit of switching to task.wait? I don't even remember what the benefit was

@Sceleratis wait throttles whereas task.wait doesn't, therefore is much more accurate when it comes to wait timing.
Also, it's similar to Heartbeat:Wait(), timing wise.


[NODEJS] This dependency was not found: async_hooks

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS, and JRE?

Which company or project?

What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.
This dependency was not found: async_ Hooks, but npm install -- save async_hooks is already installed

Requirement or improvement

Please describe your requirements or improvement suggestions.

@githubphy make sure you use Node version >=10

Also, provide more details when asking questions

Also, provide more details when asking questions

One of my applications uses skywalking-backend-js. An error occurs when compiling this application. The error message is as shown in the figure. I use Node version is v15.5.0

The async_hooks module has been part of core since Node.js version 8. Could it be that your environment somehow loads an old version of Node.js even though you have a newer version installed?
If you in your code try to run console.log('Running Node.js version:', process.version), does it still output version 10?
Are you trying to use it with webpack? That looks like the error you get when trying to bundle Node.js code that uses non-browser-compatible code without explicitly telling webpack to allow it. See: https://webpack.js.org/configuration/node#other-node-core-libraries


Do not rename all *.js files to *.ts after running vue add @vue/typescript - give users a choice to enable allowJs:true mode

What does this PR do?
Close #2676
At the moment when we run vue add, Vue CLI renames all *.js files to *.ts. This PR introduces two new prompts on @vue/cli-plugin-typescript late-invokation:

convertJsToTs: if set to true, renames all .js files to .ts. Otherwise renames only main.js -> main.ts;
allowJs: if set to true, adds allowJs: true to TSConfig compiler options.

@Akryum @sodatea could you please take a look? 🙇♀


Add -n option to runsniffers.sh

A motivation:
Currently, if a developer wants to check the code with sniffers and runs runsniffers.sh command he has to wait up to 5-7 minutes, depending on the internet connections.
I strongly believe we could save a lot of developer's time by providing a flag which will prevent runsniffers.sh command update software every time.
How to review:

Create VM
Run reinstall.sh
Add some code to check
Run runsniffers.sh
Run runsniffers.sh -n
Make sure the the code was checked.

good stuff, guys


244 Active Admin filters

https://osraav.atlassian.net/browse/OSRA-244

changed filters for Orphan model
changed filters for Sponsor model
in order to filter sponsors by the number of sponsorsips, created an active_sponsorship_count column in the Sponsor model, which changes the value every time a sponsorship gets created or inavtivated

rspec tests

(paired with Cristian and Brian on this task)

@razorcd Agree with the removal of user filters

Updated the PR.
Kept self in the syntax of Sponsorship methods because all neighboring instance methods also had the word self in them. Removing self made the code even more confusing than keeping it in.

P.S.: Forgot to mention it in the commit description, but removed filters in User#index as well.

Updated PR

Looks good to me

:+1:


Configuration settings not saved on docker run

I am building a simple s3 backup docker container for ghost and I am running into an issue when restoring.
The DB seems to be fine, because in the admin area I can see the test posts I made, but the front page shows no posts and the site settings (url, site name etc) are not set anymore. Here is the site I am working on as an example. (though I wont keep it in this state for long).
Since the ghost install happens in the Dockerfile that means we can't have run time env variables, but shouldn't there be a way to update the config at runtime? It seems that the env vars are not saved anywhere, and are lost on backup.
What I want is to be able to have a server provisioning script that can rebuild the state of the blog on restarting / rebuilding the server, for example my current cloud-config.yml is like this:
  - docker volume create ghost_data
  # Run ghost
  - docker run -d --name circles_blog -v ghost_data:/var/lib/ghost/content -p 80:2368 -e NODE_ENV=production -e url=http://blog.joincircles.net -e mail__transport=SMTP -e mail__options__service=SES -e mail__options__host=${smtp_host} -e mail__options__port=465 -e mail__options__auth__user=${smtp_username} -e mail__options__auth__pass=${smtp_password} ghost:latest
  # Run ghost-backup-s3
  - docker run -d --name ghost_backup -v ghost_data:/data -e BACKUP_ONLY=false edzillion/ghost-backup:latest s3://circles-blog-backup/ghost-backup-s3

Ok, I have managed to get it in a working state by stopping the node process in the container and then starting it again:
docker exec -it circles_blog pkill node
docker start circles_blog

or even just
docker restart circles_blog


Snippets related to ScrollBar not working

🔍 Is there already an issue for your problem?

[X] I have checked older issues, open and closed

ℹ Environment / Computer Info
- Spotify version: <IP_ADDRESS>0.g242057a2 (Linux)
- Spicetify version: v2.37.7
- Marketplace version: 1.0.2

📝 Description
I recently noticed that "Hide Sidebar ScrollBar" snippet and "Modern ScrollBar" snippet not working
( I don't have any themes installed or any extensions related to Scroll Bar )
📸 Screenshots

added a pr to fix it

Where do you find the marketplace in the latest version?

Where do you find the marketplace in the latest version?

if you are talking about installation: https://spicetify.app/docs/getting-started/

They changed the class, for sure. Anyone know the new one?

They changed the class, for sure. Anyone know the new one?

#836 this works for me :)


Does not work with springboot 3.2.0 or higher

The dependency does not work for versions greater than or equal to springboot 3.2.0

Please provide additional details. How are you using it and where do you observe failures? Thanks!


[Question] Bump native version?

For example implementation "com.polidea.rxandroidble:rxandroidble:1.7.0"
But apparently the upstream native library is at 1.10.0. Will this library get a bump?

Eventually yes but not yet.
1.10.0 is an RxJava 2 library where this one uses the RxJava 1 branch — which is up to date. There is a blocking issue with the RxJava 2 implementation. When it will be solved the bump will happen.
Best Regards


Win 2008R2 DC in forest?

The article states that the DCs running the services must be W2012 or later.
Would there be any issues in a forest that also has a W2008R2 (or SBS2011) DC in the mix as well?

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

ID: 23e000f0-84ce-7ec7-e5ed-4bd9c49f5d49
Version Independent ID: e636b9d1-be81-0f00-97c4-ff4fa9078be3
Content: Deploy Azure AD password protection preview
Content Source: articles/active-directory/authentication/howto-password-ban-bad-on-premises-deploy.md
Service: active-directory
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@GLComputing Thanks for your feedback! We will investigate and update soon on it.

@GLComputing Yes, if the users get redirected to the 2008 R2 DC then it will not be able to compare the password provided with the banned password list and will not be able to restrict the users from setting them.
You should either make them Read only DCs or disable them for this feature to work completely.

@GLComputing I am checking in to see if the above answer was helpful. Let me know if you have any other questions.

Thanks ... Would be worth adding that note to the doc as a warning.
Even better with a link to making the lower DCs RO.
Also, if a user connects to a 2K8 DC and changes the password, will that cause an issue to replicate to the 2012 with the pass ban?

Anywhere that the password protection filter is not installed the password could be set and then replicated. The password is only checked on set when it goes through the password protection filter.
Hence the requirement that "All domain controllers where the Azure AD password protection DC agent service will be installed must be running Windows Server 2012 or later."
and on the overview topic...
"Incremental deployment is supported with the tradeoff that password policy is only enforced where the domain controller agent is installed.
It is recommended to install the DC agent on all DCs to ensure password protection enforcement. "

#please-close


Add support for customBlockFn

still subscribed to these repos and saw the emails come in. thinking of you all! hope you're safe!


WFLY-5043 Add elected stat to mod_cluster node

Linux with security manager Build 2132 is now running using a merge of 21151c0222bb9012546ca2e9be1c3297a0c908e5

Windows Build 2316 is now running using a merge of 21151c0222bb9012546ca2e9be1c3297a0c908e5

Linux Build 7263 is now running using a merge of 21151c0222bb9012546ca2e9be1c3297a0c908e5

Linux with security manager Build 2132 outcome was SUCCESS using a merge of 21151c0222bb9012546ca2e9be1c3297a0c908e5
Summary: Tests passed: 897, ignored: 285 Build time: 0:06:30

Linux Build 7263 outcome was SUCCESS using a merge of 21151c0222bb9012546ca2e9be1c3297a0c908e5
Summary: Tests passed: 2983, ignored: 358 Build time: 0:47:44

Windows Build 2316 outcome was SUCCESS using a merge of 21151c0222bb9012546ca2e9be1c3297a0c908e5
Summary: Tests passed: 2981, ignored: 359, muted: 1 Build time: 0:48:41


Integration test 2611

https://github.com/nasa/fprime/issues/2611#event-12269316142
Add integration test into baremetal reference.

LGTM

LGTM

Ethan can you merge this in? I dont think I have merge rights to this repo. Michael doesn't either I believe. Thanks.


[BUG] Wrong info shown for "Network Rate"  label in Compute Offering

Describe the bug
The info/tool tip displayed for "Network Rate" in Add Compute Offering is incorrect
To Reproduce
Steps to reproduce the behavior:

Log in as an Admin
Go to 'Service Offerings -> Compute Offerings'
Click on 'Add Compute Offering'
Scroll down to 'Network Rate' text box
Check the info displayed "provisioning type used to create volumes. Valid values are thin, sparse, fat." at the 'Network Rate' label, which is incorrect

Expected behavior
The info should indicate that the text field is to input the network rate.
Screenshots

Desktop (please complete the following information):

OS: Mac
Browser: Chrome
Version 87.0.4280.88

Additional context
Add any other context about the problem here.

@sureshanaparti can you test latest master and close, Pearl fixed the issue.

Verified.

Verified.


Suggestion: add README for setting "celery-exporter" as datasource

As the title suggests, it would be nice if there was a README on how to add this exporter as a datasource in Grafana.
For me, I'm having trouble have get my local Grafana instance to find the exporters http server. I'm using compose to bring up my containers, but I still keep getting 404 when adding a new datasource (http://celery-exporter:9808/metrics). Im able to see my tasks at localhost:9808/metrics, as well as curl the metrics endpoint from a container on the network. It's quite strange
Edit:
Figured it out. Your Flask server does not expose api/v1/query, which Grafana relies on to query metrics

Edit 2:
Adding image from container curl

Are you sure your setup is correct? This exporter exposes metrics to Prometheus. Grafana is used to query Prometheus, so your datasource should be Prometheus, not the exporter.
celery-exporter => Prometheus => Grafana

@danihodovic Ah ok my prom settings were botched. Figured it out thanks 👍


How do I add new CLI args to a Flutter launch via Atom?

I'd like to add "--verbose" to my flutter launches, via Atom. I clicked "Configure" and it opens the main.yaml. It's not clear where I add arbitrary CLI args.
Thanks!

In the flutter section, add args: -v. This needs better docs though.

Where can I add an empty args: to be added to any new main.yaml file generated? I'll be happy to send the PR.

Hereabouts: https://github.com/dart-atom/dartlang/blob/master/lib/flutter/flutter_launch.dart#L74

PR https://github.com/dart-atom/dartlang/pull/807


"no block given" exception when some properties have prepopulation but others don't

When there are two properties in form, one with prepopulate and the other without it, I got such error (failed test stacktrace):
LocalJumpError: no block given
    gems/reform-1.2.6/lib/reform/form/prepopulate.rb:23:in `instance_exec'
    gems/reform-1.2.6/lib/reform/form/prepopulate.rb:23:in `block (2 levels) in prepopulate_representer'
    gems/representable-2.1.5/lib/representable/pipeline.rb:11:in `call'
    gems/representable-2.1.5/lib/representable/pipeline.rb:11:in `block in call'
    gems/representable-2.1.5/lib/representable/pipeline.rb:11:in `each'
    gems/representable-2.1.5/lib/representable/pipeline.rb:11:in `inject'
    gems/representable-2.1.5/lib/representable/pipeline.rb:11:in `call'
    gems/uber-0.0.13/lib/uber/options.rb:85:in `callable!'
    gems/uber-0.0.13/lib/uber/options.rb:70:in `evaluate_for'
    gems/uber-0.0.13/lib/uber/options.rb:60:in `evaluate'
    gems/representable-2.1.5/lib/representable/binding.rb:107:in `evaluate_option'
    gems/representable-2.1.5/lib/representable/binding.rb:71:in `render_filter'
    gems/representable-2.1.5/lib/representable/binding.rb:37:in `block in compile_fragment'
    gems/representable-2.1.5/lib/representable/binding.rb:100:in `evaluate_option'
    gems/representable-2.1.5/lib/representable/binding.rb:36:in `compile_fragment'
    gems/representable-2.1.5/lib/representable/mapper.rb:64:in `compile_fragment'
    gems/representable-2.1.5/lib/representable/mapper.rb:30:in `serialize_property'
    gems/representable-2.1.5/lib/representable/mapper.rb:22:in `block in serialize'
    gems/representable-2.1.5/lib/representable/mapper.rb:21:in `each'
    gems/representable-2.1.5/lib/representable/mapper.rb:21:in `serialize'
    gems/representable-2.1.5/lib/representable.rb:41:in `create_representation_with'
    gems/representable-2.1.5/lib/representable/hash.rb:35:in `to_hash'
    gems/reform-1.2.6/lib/reform/form/prepopulate.rb:5:in `prepopulate!'
    gems/reform-1.2.6/test/prepopulate_test.rb:12:in `block in <class:FailedTest>'

Here is a test to reproduce.
class FailedTest < MiniTest::Spec
  class MyForm < Reform::Form
    collection :songs, prepopulate: ->(options){ [] } do
    end

    collection :notes do
    end
  end

  subject { MyForm.new(OpenStruct.new) }

  it { subject.prepopulate! }
end

Hey @freemanoid this is fixed in the last commit in master! :wink:

:+1: thanks @apotonick


Config refactory

Coverage increased (+0.7%) to 51.196% when pulling 5ea0e50f0f3cdbf8a053cc261527bba9b9a42009 on reasonerjt:config-refactory into 978feeacc95e888c78defa9d30e4304b2604dd45 on vmware:dev.

build 1101 indicates there's a go vet issue and it's been fixed in the latest commit. I'll merge this PR to avoid future conflict as it makes update to quite a few files


Add a view to refresh HQ UCR based dataset

This PR adds a view that that takes the domain and config_id via the URL and re-pulls the datasource when called. Below are the implementation details. I was able to test this locally with success.

The domain and config_id can be passed via the URL (for e.g. http://localhost:8088/a/test-domain/datasource/update/49f40d61cadcc69ede285982f4001e82).
The dataset is replaced on each refresh.

There is few more todos in here, but I wanted to get this out to get any initial feedback. The todos are

Assign a read permission on the created/updated dataset to the user's domain specific role.
Create a schema for the domain if it doesn't exist
Make date parsing work.
Let the view return the url or the DB model ID of the dataset.
Unit tests.

Note that the Oauth part is in a separate PR as well https://github.com/dimagi/hq_superset/pull/4
@kaapstorm @akashkj @proteusvacuum

Please see the full PR https://github.com/dimagi/hq_superset/pull/7/files


nixos/manual: fixing links for awstats release note

Motivation for this change
linkend attribute needs to point to an option.
Addresses: https://github.com/NixOS/nixpkgs/issues/76493

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
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @

@d-goldin I dropped the ball on this one... thanks for fixing!


lxd-user: More integration bits

Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

@brauner once we've got this one in, I'll land the matching snap packaging change I've been working on here.
With the snap change in place, all it will take is basically:

snap set lxd daemon.user.group=some-group

And then all members of some-group will be able to just run lxc list triggering the initial project setup and then use LXD as normal within the confined of their restricted project (so no privileged containers, no device passthrough other than GPU, ...).


How to customize the alarm content?

Describe the feature request
e.g. Email alerts
An alert for wasm_demo has been resolved after passing successfully 2 time(s) in a row
Alert description: wasm failed
Condition results:
✅ [STATUS] == 200
I want to customize the alert:)
Why do you personally want this feature to be implemented?
No response
How long have you been using this project?
No response
Additional information
No response

At the moment, you can only customize it via the alert description (endpoints[].alerts[].description).
You can get an idea of how the string is built by looking at the provider, e.g. https://github.com/TwiN/gatus/blob/a725e7e7700bd355ebeb1891b2f90fe0b78fba32/alerting/provider/email/email.go#L69-L91


Create a new ClusterIP service in the CP per CassDc

In order to allow Reaper to discover the IPs of all pods in all the managed clusters, which could be hosted in remote dataplanes, we'd need one additional service to be created in the CP for each CassDc.
This service would be equivalent to the additional-seed-service, where k8ssandra-operator explicitly sets the endpoints to the IP addresses of the seed nodes, but we would get the IPs of all pods in the DC instead of the pods for other DCs.
k8ssandra-operator would be responsible for reconciling those endpoints in case of IP changes, and Reaper would use the service URL as contact point for the cluster.
A new watcher must be added on the Endpoints object named <cluster>-<dc>-all-pods-services across all dataplanes (and the control plane), then in the reconcileDatacenters() method, a call must be made to a newly created method which will reconcile our new service along with the corresponding endpoints.
A new label must be added on the all pods service to be able to filter services in the watcher efficiently.
### Definition of Done
- [ ] One headless ClusterIP service gets created in the control plane for each DC
- [ ] this service endpoints contains the IPs of all nodes across the DC
- [ ] k8ssandra-operator explicitly sets the endpoints for these services like it does for additional-seed services
- [ ] The list of endpoints is copied directly from the watched service
- [ ] The **-**-all-pods-service services in cass-operator get an additional label such as `cassandra.datastax.com/all-pods: true`

Marking this as blocked because it requires a change in cass-operator (see PR comments).


Ability to translate FAQ form labels

Missed label definition.

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
no

Related tickets
no

License
MIT

Thank you!


Add example for updating relationship

Purpose
This PR is to add example code for updating a relationship using UpdateRelationshipAsync. Includes...

Editing the create call and method so that the relationship has a property
Adding a new method for updating a relationship's property
Add a call to that method to update the property that was added on relationship create

What to Check
Verify that the code sample is valid, good quality, and that the end-to-end sample still runs.
Status
Draft -- not ready to merge.
Tested, but could use code review for quality.

Hi @drwill-ms, when you have a minute, could you give a code review on this new example?


Update index.md

Update manifest path to reflect the changes for 3.6 version of documentation
Description
[Documentation] Manifest resources have moved from /getting-started/kubernetes/tutorials/stars-policy/manifests/ to /security/stars-policy/manifests/.
Todos

[ ] Tests
[x] Documentation
[ ] Release note

Release Note

None required

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Deploy preview for calico ready!
Built with commit a0c7379077c8ad11747b62198224544f11118dd2
https://deploy-preview-2544--calico.netlify.com

Thanks for the PR! I actually just merged this PR which does the same thing, so I'll hae


[BUG] Did not find the authorization API for Azure Confidential Ledger from AAD?

Query/Question
As shown in the following figure, the authorization API for Azure Confidential Ledger was not found in Azure Active Directory. Please tell me the solution using AAD method.

Hi @Jasun0925, this quickstart guide should help: https://learn.microsoft.com/en-us/azure/confidential-ledger/quickstart-portal.
Please let us know if you have specific questions about the SDK.


Don't create a .space folder while adding a new space

Is your feature request related to a problem? Please describe.
Since we don't rely on a .space folder, we don't want to create it while adding a new space
Describe the solution you'd like
Don't create a .space folder

FYI @micbar @butonic @C0rby

was fixed by https://github.com/cs3org/reva/pull/2519


[Fixed] Not working in WebGL

Works as expected in editor, building to webgl and running produces no errors but doesn't execute code (as if it didn't exist)

Modifying WeaveAssemblies (CodeProcessor.cs) directory path to:
directoryPath = Application.dataPath + $"/../Library/Bee/PlayerScriptAssemblies/";
causes an error:
Building Library\Bee\artifacts\WebGL\ManagedStripped failed with output:

C:\Program Files\Unity\Hub\Editor\2022.3.0f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe @Library\Bee\artifacts\rsp\4081997910746323624.rsp
Fatal error in Unity CIL Linker
Mono.Linker.LinkerFatalErrorException: ILLink: error IL1013: Error processing 'C:\Users\user\Documents\Unity Projects\projectname\Temp\StagingArea\Data\Managed\MethodsToPreserve.xml'
 ---> System.IO.IOException: The process cannot access the file 'C:\Users\user\Documents\Unity Projects\projectname\Library\Bee\PlayerScriptAssemblies\JasonSkillman.ScriptableEvents.dll' because it is being used by another process.

Ok I fixed it by manually reverting the commit that enabled multi assembly dlls (but keeping the modified directory for WebGL)
I highly suspect that my antivirus was locking the file since about 5 minutes later it complained about some non-related dll - this has never happened before
I am going to open a branch later (either tonight or around the weekend) so that it can be merged

Can you test this revision?
https://github.com/H1M4W4R1/Unity-Aspect-Oriented-Programming/commit/9799de6791eccfc0e4fc6546160dcd2e08465944
It still will collide with AV software, however now it should weave OpenGL assemblies. Also your version was incompatible with IL2CPP which generates DLLs under Library/Bee/artifacts instead of Library/Bee/PlayerScriptAssemblies.

Sure, give me until late tonight as I've overwritten my previous test code.
Also WebGL is only compatible with the IL2CPP backend and I had tested with a WebGL build (2022.3.0). Perhaps it uses PlayerScriptAssemblies DLLS prior to generating the artifacts? Just a shot in the dark :)
Thanks btw

On a sidenote, couldn't you just pass the assemblies string array from OnFilterAssemblies (EditorLevelAssemblyProcessor.cs)
directly into the weaver? I'd imagine that it contains all the dlls that are being processed - and therefore would account for every condition/build type.
I am not very knowledgeable in DLLs and code gen so this may be completely wrong.

Also WebGL is only compatible with the IL2CPP backend and I had tested with a WebGL build (2022.3.0). Perhaps it uses PlayerScriptAssemblies DLLS prior to generating the artifacts? Just a shot in the dark :)

I'm using 2021.3.21f1 (as it's default editor for currently developed project my client demands to use)

On a sidenote, couldn't you just pass the assemblies string array from OnFilterAssemblies (EditorLevelAssemblyProcessor.cs)
directly into the weaver? I'd imagine that it contains all the dlls that are being processed - and therefore would account for every condition/build type.

You're right. This code is just 3 years old and was written while being... not too sober to fix one single irritating problem within a single project. However it's a good idea to improve it... Just dropped a commit with update.

Sure, give me until late tonight as I've overwritten my previous test code.

Please provide timezone while writing hour / time of day... for me now it's middle of the night (precisely 2:36 AM UTC+2).

I ended up having the same issue regarding the AV, I disabled it and the problem still occurred.
I used (since my project wouldn't use this in another assembly anyways):
assemblies.FirstOrDefault(s => s.Contains("Assembly-CSharp.dll"));
so, it's definitely working. I have no idea why it fails on that one dll though and only when building (in editor it works just fine)

Please provide timezone while writing hour / time of day... for me now it's middle of the night (precisely 2:36 AM UTC+2).

My entire team is situated in one timezone so I completely forgot this was a thing, apologies! I ended up bug fixing elsewhere that night so could never get to it anyways
I ran to some other issues that are unrelated but this info would help me deduce some stuff, does this use reflection at runtime? such as when providing propertyinfo in the baseexecutionargs - or is this cached somewhere?
Thanks for everything again!

Does this use reflection at runtime?
Probably you figured it out already, but yes it does. Mostly MethodBase class methods (Invoke, MakeGenericMethod), because going around this would require a bit of trickery.

I have no idea why it fails on that one dll though and only when building (in editor it works just fine)
Editor and Player works a bit different way. It fails at linking, so probably weaving did pass, however for some reason assembly was not disposed after weaving. Maybe a circular reference?

I ran to some other issues that are unrelated
Just drop them into separate GitHub Issues, will take a look when I get some free time (impossible to determine approximate time). Less bugs are usually better.

Just drop them into separate GitHub Issues, will take a look when I get some free time (impossible to determine approximate time). Less bugs are usually better.

I fixed the issue, it was related to a separate system I was developing that dealt with reflection - il2cpp is aot so I wasn't sure if it was this or the stuff I was doing (it was) and was too lazy to make a separate project
If I ever get the time, I kind of want to attempt developing a CreateDelegate based system for your compile time code instead of the methodbase. It's basically what I ended up doing for my stuff except at runtime. Runtime is a nightmare.

If I ever get the time, I kind of want to attempt developing a CreateDelegate based system for your compile time code instead of the methodbase. It's basically what I ended up doing for my stuff except at runtime. Runtime is a nightmare.

Actually I meant splitting the AOP wrapper into two halves and implementing direct call to method rather than Invoke. ATM it uses single processing code for all methods, that's why MethodBase::Invoke is used.
To be more precise:
Wrapper checks if method should be processed, then creates new (secondary) method with same body. Then removes body from primary method and implements a call to AOPProcessor which then calls that new method using MethodBase::Invoke. The alternative way is to split AOPProcessor calls into two (one before method call and one after) and call method directly in the primary, however it would require a bit of trickery to implement features like return value override.

Actually I meant splitting...

Just to confirm, as in you meant to do it that way but it's not right now?
It's an interesting concept, I never realized until recently that code gen can literally change an entire class based on well another class. It's like a layer on top of it all.

Just to confirm, as in you meant to do it that way but it's not right now?

It was one of initial concepts, but why I choose current one with reflection ask me 3 years ago...

It's an interesting concept, I never realized until recently that code gen can literally change an entire class based on well another class. It's like a layer on top of it all.

As long as you can fluently operate in IL, you can even make a self-rewriting game.


[Feature Request] Add "language" option (or use Laravel locale) for google_address CRUD API call

Feature Request
What's the feature you think Backpack should have?
Currently the google_address CRUD field doesn't pass in the locale/language as a parameter to the Google search API.  As a result, only English results are returned for countries/city names, etc.
See docs here: https://developers.google.com/places/web-service/search
"Optional parameters
language — The language code, indicating in which language the results should be returned, if possible. Searches are also biased to the selected language; results in the selected language may be given a higher ranking. See the list of supported languages and their codes. Note that we often update supported languages so this list may not be exhaustive."
I suggest the current Laravel locale info be passed along to the google_address API call.
Have you already implemented a prototype solution, for your own project?
No
Do you see this as a core feature or an add-on?
Yes

Oh that's cool - didn't know or think of that. Thanks @perfectom . I've added this as a to-do. Please note that we're currently deep in a bugfixing sprint so we won't be tackling any new features any time soon.
Cheers!


Operations: Task's context sent as hash

When updating Task through Topological API, context has to be sent as hash, not as json's string.
depends on https://github.com/ManageIQ/topological_inventory-api-client-ruby/pull/15
depends on https://github.com/ManageIQ/topological_inventory-api/pull/229

@agrare pls :eyes:


gccgo: stack memory leak if create large number of goroutines in short time

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

$ go version
go version go1.6.1 gccgo (GCC) 6.1.1 20160602 linux/amd64

What operating system and processor architecture are you using (go env)?

Its gcc-go 6.1.1.-2 under Arch Linux.
$ uname -a
Linux fa-host 4.6.3-1-ARCH #1 SMP PREEMPT Fri Jun 24 21:19:13 CEST 2016 x86_64 GNU/Linux

$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/lib/go:/usr/share/gocode:/usr/lib/go/site"
GORACE=""
GOROOT="/usr"
GOTOOLDIR="/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1"
GO15VENDOREXPERIMENT="1"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"

What did you do?

After several days memory leak debugging work for our go
application, I found the memory issue only occurred when
compiled by gccgo, and its goroutine stack memory related
instead of heap. Here is a simple demo to reproduce it:
package main

import "time"
import "fmt"
import "runtime/debug"

func main() {
    worker := func() {
        time.Sleep(3 * time.Second)
    }
    for i := 0; i < 5000; i++ {
        go worker()
    }
    time.Sleep(10 * time.Second)
    fmt.Println("try to release memory")
    debug.FreeOSMemory()
    time.Sleep(3600 * 12 * time.Second)
}

For example save it as test.go and run:
go build -compiler gccgo test.go
./test

What did you expect to see?

The used memory should be released after "try to release
memory" printed.
5.  What did you see instead?
The memory(about 100MB) is still in used and looks never be
released even through I waited for a long time(about 1
hour). So I think it should be a special stack memory leak
issue.
BTW: Everything is OK if compiled by go/gc.

In typical use goroutine stacks are allocated by libgcc, outside the Go heap, and are attached to a goroutine.  If we ever released goroutines we would release the stacks, but we don't.  So they stick around forever.  I don't know if there is a good way to fix this.

I wonder, is there any way to reclaim the memory used by the already terminated goroutines?
We are using go-grpc right now, and each RPC request will result in a goroutine created. Because of this problem, our program runs out of memory pretty quickly if there are a lot of RPC requests. Is there any way to force gcc-go to release the goroutines? Thanks

@zhengcai The state is unchanged: there is no way to reclaim the memory used by goroutines.  But goroutines are reused, so I'm not sure how you could run out of memory even with a lot of goroutines.  What processor?  What OS?  What linker?

@ianlancetaylor will there by any work on this in near future? Are there any proposals to fix this?
I am using grpc with gccgo 8.2 on AIX. The problem we are facing is that grpc spaws a new goroutine for each request it gets. Now, as many as 100 requests can arrive at a time and sometimes even more. So, with such a large number of requests, the memory reaches up to 2~3 GB if the software is running for 3-4 days.

I do not know of anybody planning to work on this at present.  Do you want to take a look?

Thanks.  I'm always happy to answer questions.

You don't need to put forward a formal proposal, just a sketch of what you want to do.
As I understand it (and I may not) the complaint here is that a program may sometimes create a large number of goroutines, which can consume a lot of memory, and you want some mechanism to make those goroutines go away and thus reclaim the memory.  To be clear, if that number of goroutines is required again, memory use will go up again.  So all we are talking about here is some way to discard unused goroutines.  Right?
If that is the problem then the solution is going to be something along the lines of having the sysmon function periodically look at the sched.gfree list, and decide to release some of the goroutines on that list.  Then we will need to make sure that when we release a goroutine, we also free its stack.

Yes, the idea is to discard unused goroutines. I will try to find some time and start looking at it.

this is still an issue, is there any status on it?

@sambacha The status is unchanged.


Test 943110-4 from coreruleset is not passing

It's failing go-ftw tests. It requires more research.
- test_title: 943110-4
    desc: Session Fixation Attack (943110) from old modsec regressions
    stages:
      - stage:
          input:
            dest_addr: <IP_ADDRESS>
            headers:
              Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
              Accept-Encoding: gzip, deflate
              Accept-Language: zh-sg
              Content-Type: application/x-www-form-urlencoded
              Host: localhost
              Referer: http://localhost/test
              Keep-Alive: '300'
              Proxy-Connection: keep-alive
              User-Agent: OWASP ModSecurity Core Rule Set
            method: GET
            port: 80
            uri: /login.php?jsessionid=74B0CB414BD77D17B5680A6386EF1666
            version: HTTP/1.1
          output:
            no_log_contains: id "943110"

Added to temporary ignored tests in https://github.com/corazawaf/coraza/pull/166


Images from private gcp artifact registry can not be accessed using Workload Identity

What steps did you take and what happened:
setup the workload identity to be used by the default service account used by the trivy-operator. I see the SA mapped to the google SA correctly but still images are not scanned
What did you expect to happen:
I expected private images from the private OCI artifacts to be scanned and vulnerability reports to be scanned
Anything else you would like to add:
I can confirm workload identity is working :
This is another container I spun up with the same SA used in trivy operator to test the connectivity :
root@workload-identity-test:/# curl -H "Metadata-Flavor: Google" http://<IP_ADDRESS>/computeMetadata/v1/instance/service-accounts/default/email
trivy-operator-service-account@staging.iam.gserviceaccount.comroot@workload-identity-test:/#

Environment:

Trivy-Operator version (use trivy-operator version):
0.6.1
Kubernetes version (use kubectl version): v1.24.1
OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc):
gke  v1.22.10-gke.600

@rsharma222 thanks for reporting on this issue .
can you pls add logs with error if exist ?

Following is the error:
 {"level":"error","ts":1661244205.1321182,"logger":"reconciler.vulnerabilityreport","msg":"Scan job container","job":"monitoring/scan-vulnerabilityreport-6f58fdcc8d","container":"load-tests","status.reason":"Error","status.message":"2022-08-23T08:43:22.341Z\t\u001b[31mFATAL\u001b[0m\timage scan error: scan error: unable to initialize a scanner: unable to initialize a docker scanner: 4 errors occurred:\n\t* unable to inspect the image (europe-docker.pkg.dev/management1/oci/load-tests:latest): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\n\t* unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory\n\t* containerd socket not found: /run/containerd/containerd.sock\n\t* GET https://europe-docker.pkg.dev/v2/token?scope=repository%3Amanagement1c0c88c4%2Foci%2Fload-tests%3Apull&service=europe-docker.pkg.dev: DENIED: Permission \"artifactregistry.repositories.downloadArtifacts\" denied on resource \"projects/management1c0c88c4/locations/europe/repositories/oci\" (or it may not exist)\n\n\n","stacktrace":"github.com/aquasecurity/trivy-operator/pkg/vulnerabilityreport.(*WorkloadController).reconcileJobs.func1\n\t/home/runner/work/trivy-operator/trivy-operator/pkg/vulnerabilityreport/controller.go:381\nsigs.k8s.io/controller-runtime/pkg/reconcile.Func.Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/reconcile/reconcile.go:102\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:234"}

Closing the issue, Its working with the workload identity

@rsharma222  Did you have to do anything specific for it to work? Asking in case some other user go through the same problem.

Hi @josedonizetti,
No not really, There was an issue with my workload identity config. Once that was fixed it worked smoothly.
Renuka

@rsharma222 please updated us with the finding on how you make it work so we could updated our docs for the community


Add default JS resources

Loads default scripts for all snippets. One use case is needing to
load fonts through a service like Typekit where JS loading is the only
option. Needed for loading font in general section (under font and typography).
Note: quick and dirty solution. Could use refactoring.

Hi, thanks for this, really needed feature.
In the meanwhile, is there any way to manually achieve it? Typekit script keep being removed, no matter if I place it in the head or before the closing body of template.html

@yumyo Take a look at https://github.com/devbridge/Styleguide/pull/150/commits/ecb9cf542efaf79d4684e00af9f32abbcb592a3f to see how I was able to do it. The changes are pretty simple to implement.

Thanks, works smoothly


Check for file annotation on more than just the first line

Fixes: https://github.com/rubyatscale/code_ownership/issues/21
Check every line at the beginning of the file starting with a '#' for the @team annotation.
The current version of code_ownership does now allow for Ruby "magic" comments, like # frozen_string_literal: true which should be on the very first line of a Ruby file, and code_ownership also wants its annotation to exist on that first line.
To fix that, I updated the file annotation checker to start at the top of the Ruby file, and for each line starting with a #, we check it for the team annotation. As soon as a line does not begin with #, we stop checking for the annotation.
This is now allowed:
# frozen_string_literal: true
# @team My Team

class Blah
end

This is also allowed:
# Some other comment
# another comment goes here
# @team My Team

class Blah
end

Closing without merging. See comments on #21


Create an inverseBoolFlag

What type of PR is this?
This is a new feature for handling IsSet of a BoolFlag by introducing an inverseFlag alongside it.

feature

What this PR does / why we need it:
I made it here when trying to implement flags where the following commands are valid with a flag --local
$ tau  local is not set, thus we prompt the user
$ tau --local  local is set as true
$ tau --local=false  local is set as false
I decided on an alternative where I take a flag, say local
$ tau --local  local is set as true
$ tau --no-local  local is set as false
Which issue(s) this PR fixes:
Somewhat Fixes #424
Testing
I simply tested the basic IsSet, value and an error with:

TestBoolWithInverse
Basic  for testing the basic functionality
Action for testing the running of the provided BoolFlag's ActionFunc
EnvVars for testing positive and negative environment variables being set
WithPrefix for confirming the InversePrefix value is being used as expected
An example: ExampleNewBoolWithInverse

Release Notes
BoolWithInverseFlag is a new flag struct to handle IsSet of a BoolFlag by introducing an inverseFlag alongside it

TODO
Coverage
Options handling:

Negative Description
Negative suffix || ~prefix~
Negative FilePath
~- Negative Destination && Count~
Negative Usage

There are likely things I did not take into account which represent how a normal flag is expected to function.

@skelouse Can you add more tests for to exercise new interface ?

@skelouse Can you add more tests for to exercise new interface ?

Added more tests and removed the interface so that it acts, and can be used as any other flag type.

Need to fix flag.Names() being called before cli is instantiated.
This can be done be checking whether negative flag is still nil.  If so create the inverse names prior to instantiation and cache them.

@skelouse Also main is the default v3 branch now no need for v3-dev-main

Seems the action CLI may be broken.

Good to go.  Swapped in place for my original BoolWithInverse interface, and ran e2e tests on current project.


Add stepping pipeline (test tool) and fix issue #1191

This PR adds the stepping pipeline as a module in the test suite and uses it to check that the changefeed produces updates as expected.

Add MultipipesStepper
Fix #1191
Make Bigchain class accept backlog_reassign_delay=0 (it was not making distinction between 0 and None previously)

Fixes #1191

Given that you've fixed:

Fix #1191
Make Bigchain class accept backlog_reassign_delay=0 (it was not making distinction between 0 and None previously)

It might be nice to pull out the stepper from this PR so that it only gets reviewed in #1199.

Codecov Report

Merging #1193 into master will decrease coverage by -8.59%.
The diff coverage is 75%.

@@            Coverage Diff             @@
##           master    #1193      +/-   ##
==========================================
- Coverage   96.92%   88.34%   -8.59%
==========================================
  Files          49       49
  Lines        2279     2282       +3
==========================================
- Hits         2209     2016     -193
- Misses         70      266     +196

Continue to review full report at Codecov.

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


Examples: Add Graal Import usage examples

Write examples illustrating the usage of the new vlog4j-graal module.

[x] add an example showing the import of Graal objects
[ ] add an example showing the import of a .dlp file

Has any work been started on this? If so, please commit.


fix typos

https://github.com/microsoft/terminal/issues/14670
code comments and markdown

@microsoft-github-policy-service agree

noticed this looking at the patch
the fix would be
find a deserializer
$ ed -s terminal/src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp <<<'193,194p'
    //   * If json is an object, we'll attempt to retrieve the action name from
    //     its "action" property, and we'll use that name to fine a deserializer
$

presuming the second commit is correct this would be ready to merge

spell checking expect list

solely everytime
but thereon see comment in linked to ticket


ubuntu: improve success message

should be your {kind} has been deployed successfully

fixed
Branch
development_update_ubuntu_succ_message
Commit_id
07ee20e91a6d178f5989105919051a0242b15236

Commit_ID 8c032153405fd6307137b3024a313c25babbe6d1, Branch development


SpringLiquibase should not resolve Classloader URLs twice

Liquibase Version:
3.10.3
Liquibase Integration & Version:
spring boot
Description
The classpath scanning takes some time:

liquibase.integration.spring.SpringLiquibase.SpringResourceOpener#init calls liquibase.resource.AbstractResourceAccessor#init which scans the classpath. After that it resolves all resources using Spring, which also scans multilple times.
Maybe just doing one scan using classpath*:/ would be sufficient to resolve all root paths.
Steps To Reproduce
Starting an example spring boot web app with liquibase.
┆Issue is synchronized with this Jira Bug by Unito

Thanks @dewa-actico for writing up this issue.  We will add it to the list of issues we process.  4.x changed the way we process classpath files and we are also in the process of changing the internals of the command infrastructure.


Update composer/class-map-generator to 1.5 to support phpstan 2.0

Currently, this package requires ["composer/class-map-generator": "^1.0"] (https://github.com/barryvdh/laravel-ide-helper/blob/4d2728c4f05ae7514e8a4761a2a8bcfaf8f55654/composer.json#L26). This version does not allow phpstan 2.0.
Two weeks ago composer/class-map-generator was updated to allow the new version of phpstan in this commit: https://github.com/composer/class-map-generator/commit/4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915. Therefore it would be nice if the package version could be updated here so all packages that depend on the ide-helper also can upgrade to phpstan 2.0.

That is in the require-dev section, so it wouldn't matter. Also 1.5 is supported with our requirement of  "composer/class-map-generator": "^1.0",


delete-only-pre-release-versions throws Error: query for oldest version failed.

If there are too many steps in a workflow then it throws an error.
Run<EMAIL_ADDRESS>  with:
    package-name: Package.Name
    min-versions-to-keep: 10
    delete-only-pre-release-versions: true
    num-old-versions-to-delete: 1
    ignore-versions: ^$
    token: ***
(node:1585) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Error: query for oldest version failed. verify input parameters are correct

I have 50 packages and noticed that the first five or so always seemed to run successfully, even when I changed the order in which packages were deleted. I have one step per package.
As a work around, I split the workflow into ten separate workflows, with five steps in each one. They all run successfully when the number of steps/packages is limited to a few per workflow.

Hey @codan-prices I am unable to repro this on my side. Can you specify what is the rough amount of versions present in the packages?

Hey @codan-prices I am unable to repro this on my side. Can you specify what is the rough amount of versions present in the packages?

Sorry, totally missed your question. The number of versions varies for each package but it's a large number. Picked one at random and it has 30 versions per page, and 40 pages. So 1200+ per package. That's after it runs and cleans up prerelease pacakges.

This issue seems to be resolved in v5 so closing this issue


AttributeError

Hi,
I'm running in circles after I had to recover my system from a crash from the main drive. I was able to control the lights nicely via dirigera. But now I get the following error after running a simple script to check the state of my lamps

Traceback (most recent call last):
File "getLights.py", line 20, in
print(lamp.is_on)
File "/usr/local/lib/python3.7/dist-packages/pydantic/main.py", line 761, in getattr
raise AttributeError(f'{type(self).name!r} object has no attribute {item!r}')
AttributeError: 'Light' object has no attribute 'is_on'

My script:
getLights.py
Probably / hopefully something simple. I've tried to reinstall python3 and dirigera, but same result. I'm running Python 3.7.3, that's still supported as far as I understand?
Thanks for you help!

I could reproduce the problem on another system with Python 3.9.2
When I try to get a list of attributes it will only give me default attributes of a list object.
for i in lights.getmembers(lights):
# Ignores anything starting with underscore
# (that is, private and protected attributes)
if not i[0].startswith('_'):
   # Ignores methods
   if not inspect.ismethod(i[1]):
      print(i)

I had to add ".attributes." to the code:
`if lamp.attributes.light_level and lamp.attributes.is_on:

see last comment


Cannot use custom namespace for my Cake app

The plugin's controller ./vendor/uafrica/oauth-server/src/Controller/OAuthController.php has use App\Controller\AppController; hardcoded which does not allow for a different namespace other than App\.
My workaround was to create a ./src/Controller/UafricaAppController.php:
namespace App\Controller;

class AppController extends \MyCustomNamespace\Controller\AppController
{
    //
}

and load it from composer.json with:
    "autoload": {
        "psr-4": {
            "MyCustomNamespace\\": "src"
        },
        "files": ["src/Controller/UafricaAppController.php"]
    },

We are aware of this, but unfortunately, php doesn't allow us to extend a class based on an expression. All plugins that I'm aware of with controllers do the same thing.
In our own internal use, we do the same workaround as you've got (We also don't use the default namespace)

Understood, thanks!

Hi, can I suggest reopening this? I too find it weird to expect \App\Controller\AppController to exist. My workaround was this line in bootstrap.php:
class_alias('MyCustomNamespace\Controller\MyAppController', 'App\Controller\AppController');

Maybe the AppController class can be specified in a config this way? And if it's not, just use default Controller class.


Any idea how to improve the performance when handling large ontologies?

Do you have any sample ontology in mind? I'm trying to wrap my head around this problem so it'd be useful to have some sample models for testing.

you may try with this ontology: http://bioportal.bioontology.org/ontologies/NCBITAXON

The main problem is that ontospy attempts to build the entire ontology model in memory, and that takes time if there are many classes and properties to correlated.
I've tried using threads, but with no real performance improvements as the main tasks (extract classes, properties, concepts etc..) tend to be reliant on each other.
For very large ontologies maybe it's more indicated to use a triplestore. Otherwise I'm kind of out of ideas here..

You may want to take look of https://pythonhosted.org/Owlready2/  It seems to having better performance on large ontologies.

Thanks! Looks like they use an ad-hoc back end, maybe that's it. Will look more into it

It's also not too difficult to load an ontology into Apache Fuseki Jena.  The main issue is the non-Python dependency (Fuseki), but once the store is running it's easy to use rdflib to mediate querying.


Compose intent does not include newlines

Steps to Reproduce

Open Compose intent with a text containing newlines. For example: https://bsky.app/intent/compose?text=hello

world
The composer opens, but the text says "hello world"

Attachments

What platform(s) does this occur on?
Web (Desktop)
Device Info
Firefox 131.0.3 on macOS 13.7 Ventura
What version of the app are you using?
Build version: 1.93.0; Bundle info: 5f449e3 (prod); Bundle date: 24111700; Platform: web
Additional Information
I am adding support for Bluesky to my sharing buttons (see https://github.com/kytta/shareon/issues/128), and I want the text in the composer to include some text and a URL with a blank line in-between. I am not sure if this is a supported/expected use case at all :)

Related to #6133, might be fixed by #6138

🤦♂ I was so sure that this hadn't been reported before! Gotta step up my GitHub searching game :S Thanks for the heads-up!

No worries! :)


Some doodad rotations wrong

Rotation for only some doodads seem wrong still. Not sure what's up here, will need further investigatoring.
In-game:

Imported:

In this image only the cart on the right seems to be rotated wrongly, rest are fine. Screen taken on retail Azeroth_32_32.

Everything looks fine from the current version. Assuming this was fixed at some point. Closing this issue until further report.


Splash Screen/Preloader Update

Reference
Modifications (w.r.t the reference):

The color of the vector should correspond to the theme of the website
The text doc2pen should be below the vector

Hello, I would like to work on this issue but I have a doubt. We are supposed to add the same vector image given in reference in the splash screen right?

No. You are expected to modify the colors

Yeah. I would like to work on this issue. Can you assign it to me?

@pallavi-1812 Any updates?

No, I am getting errors in setting up the project. It's fine if you want to assign it to someone else.

I want to work on this issue.

can you assign me under lgm soc

please

it will be helpful

Please don't spam with multiple comments

@nik464 do you wan to take this up?


Releasing the DreamLIP model

Hi,
Great work! Are you planning to release the final trained model and would it be compatible with huggingface transformers / open_clip?
Thanks!

Hello, we plan to upload the pretrained weight of VIT-B/16 and VIT-B/32 pretrained in CC3M, CC12M, YFCC15M, and merged-30M. These pretrained models are compatible with open_clip.
Best
Kecheng

Great work @zkcys001!
Do you have expected timeline on when the models will be released?
Thanks!

We will release the code, pre-trained model and CC12M dataset in this week (before 7.15)


How to better track homestudy complete date.

When family enters that they are homestudied when creating/updating profile, it does not prompt for date and defaults to today's date. Under homestudy details it asks for date, but this field does not auto record in back end and would need to be entered manually.  Can homestudy completed date be one that is entered into admin UI automatically and trumps today's date.

resolved as part of #406


Using native price estimator

Fixes #1615
It's time to actually create a new estimator hierarchy for native price estimation.
Because we now have a component specialized to cache native prices, it no longer makes that much sense to cache all the base estimators so CachingPriceEstimator and its metrics code can be dropped.
Dropping the CachingPriceEstimator means that it's now very straight forward to instantiate a price estimator for each passed price estimator type.
Except for dropping the cache the original price estimator hierarchy didn't change:
Sanitized(Competition(Vec<Instrumented(BaseEstimator)>))
The new native price estimation hierarchy is slightly different:
Cache(NativePrice(Sanitized(Competition(Vec<Instrumented(BaseEstimator)>))))
Which base estimators get instantiated for each estimator hierarchy can be configured with CLI arguments.
--price-estimators and --native-price-estimators.
We now also spawn a background task which maintains the native price cache. Right now only 3 parameters make sense for the particular maintenance strategy from which 2 can be configured by CLI arguments:

how long prices get cache (--native-price-cache-max-age-secs)
how many prices to update per maintenance cycle (--native-price-cache-max-update-size)
how often to trigger a maintenance cycle (currently hard coded to 1/second)

Test Plan
Manual test

Codecov Report

Merging #1635 (ccc7319) into main (7cb7380) will decrease coverage by 0.05%.
The diff coverage is 1.06%.

@@            Coverage Diff             @@
##             main    #1635      +/-   ##
==========================================
- Coverage   66.60%   66.55%   -0.06%
==========================================
  Files         173      172       -1
  Lines       33979    33861     -118
==========================================
- Hits        22632    22535      -97
+ Misses      11347    11326      -21


TypeError: Cannot read properties of undefined (reading 'features')

Description
After playing around with this package. I created two products with two prices and zero features. I cannot load the project due to an error.
error - TypeError: Cannot read properties of undefined (reading 'features')
    at file:///Users/jamesperkins/Development/stripe-no-webhooks/node_modules/use-stripe-subscription/dist/use-stripe-subscription.modern.js:1:1115

It seems this line causes the issue:
 const products = new Array(
    configurations.data[0].features.subscription_update.products.length
  );

minimal repro based upon the original demo
https://github.com/perkinsjr/stripe-no-webhooks

This might be because you haven't set your billing portal "configuration":

After Products and Prices are configured, developers should configure their Customer portal settings. The settings here are how use-stripe-subscription determines which Products and Prices users can purchase in a self-serve manner. For security reasons, useSubscription() only returns products that are listed in the "Products" section of this page.

If this turns out to be it, let us know how we can document it better!


Shaper fails on VLAN interfaces

Describe the bug
Traffic shapers fail when applied to an interface assigned to a VLAN. Same traffic shaper works when applied to a non VLAN interface. ipfw fails to match
opnsense router
em0 : wan
re0: access port - vlan 20
re1: trunk to switch
re2: trunk to switch
re1.vlan20 - interface off re1
To Reproduce

create rule, shaping traffic 10Mup/10M down to/from MYNET & WAN.

60001   0     0 queue 10004 ip from any to any xmit em0 recv re0
60002   0     0 queue 10005 ip from any to any xmit re0 recv em0

assign MYNET interface to re0
bandwidth test -  see 10M/10M
assign MYNET interface to RE1.VLAN20

60001   0     0 queue 10004 ip from any to any xmit em0 recv re1_vlan20
60002   0     0 queue 10005 ip from any to any xmit re1_vlan20 recv em0

repeat test
see full bandwidth up/down

OPNsense 20.1.9-i386
FreeBSD 11.2-RELEASE-p20-HBSD
OpenSSL 1.1.1g 21 Apr 2020
Expected behavior
traffic shaped correctly

@dlasher Did you fix this?
I think disabling shared forwarding resolved it for me - I could sort of get it to work with it on, by using interface 1 and interface 2 with the appropriate direction, but any subnet matching failed - and there were problems with the upload shaping - disabling Shared Forwarding, I think has resolved it for me with VLANs.
I still do need to try re-enabling and then rebooting, as sometimes shaping didn't always work correctly until a reboot was performed.


Fix duplicate symbols static-linking failure by renaming symbols

_swift_stdlib_XX symbols defined in _CUnicode module are also defined in runtime library as hidden visibility.
It works in linking as a shared library, but it doesn't when statically linking with lld, which resolves lib_StringProcessing.a's _swift_stdlib_getScript and loads UnicodeScalarProps.c.o, then loads libswiftCore.a's UnicodeScalarProps.cpp.o for other _swift_stdlib_XX symbols that are not defined in UnicodeScalarProps.c.o.
This patch tries to fix the failure by renaming those symbols in _CUnicode module.
XFAILing test has been added by https://github.com/apple/swift/pull/59556, and will be un-XFAILed by https://github.com/apple/swift/pull/59562

@Azoy can you look at this?

@swift-ci please test

Thanks!


Artifact Sheet Titles overlap image and theme symbol (safari)

In Safari, artifact sheet titles overlap image and sometimes theme symbols at top right

@a-murry I made a small change that may fix this, mind checking on it when you can?


fix: DS Projects permission mgmt tests

During the execution of the different QGs for 2.9 version, we've detected that some of the DS Project permission management tests were failing due to some modifications in the UI.
This PR fixes the following tests:

ODS-2201: Verify User Can Make Their Owned DS Project Accessible To Other Users
ODS-2202: Verify User Can Modify And Revoke Access To DS Projects From Other Users
ODS-2208: Verify User Can Assign Access Permissions To User Groups

Test results:

Followup of #1333


Is the new build process ready for production?

I see that the UX is being moved to rails assets but is this new build process ready for production yet? I have hosted the Jellyfish application using nginx + passenger in production environment.
I am not able to see the login page and there are no errors in the firebug console too. All the assets are loaded correctly. No errors in /var/log/nginx/error.log either.
Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Set secret_key_base for production in secrets.yml
RAILS_ENV=production rake assets:precompile
Add touch index.css.erb and index.js.erb to app/assets/views/site path.
Add index method to skip_before_action :verify_authenticity_token, if: :json_request?, only: [:create, :index, :acs] in application_controller.
Give the necessary permissions for nginx to serve static files.

Context
I am hosting the Jellyfish application using nginx + passenger in production environment.
Your Environment

Version used: Jellyfish develop branch version
Browser Name and version: Firefox 38.7.0
Operating System and version (desktop): Cent OS 7

Hello,
It looks like you are using the develop branch, and I would not suggest running that in production.  can you please try using the stable master branch?


Allow canceling commits in the Source Control view

I searched for "cancel commit" and "cancel commit progress" to find no related issues.
I would like to request that the Source Control pane in VS Code gets a button allowing the user to cancel a commit that is being created.
Typically, commit creation is very fast, however, in cases where pre-commit hooks are used and their runtime is in seconds or minutes, the user might find themselves in a situation where they press the Commit button only to realize they did not meet all the commit criteria the pre-commit hooks check and they already know the hooks will eventually fail before they are able to fix their mistake and re-try the commit, however they are forced to wait until the pre-commit hooks fail and only then they can try again.
The SCM pane UI is disabled while the pre-commit hooks are running.
I would like to suggest there be a button that kills the backing Git process which is running the hooks are allows the user to terminate the checks interactively. The button should not appear if the commit process takes say 5 seconds or less to not flash the UI needlessly. It should only appear in cases where the commit hooks take a long enough time for it to be worth the effort to manually cancel the hooks instead of just waiting them out.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Markdown link styling and loosing links with sub/superscript

There is an issue with link styling using standard bold or italics.
When styling is inline it doesn't seem to affect the link. But when rendered as a template - it works.
It's an incosistent behavior, and I believe it would be best if links could benefit from standard markdown styling.
On top I've also checked some extended options (superscript/subscript), and while they work for text (yeah!), they are not handled for links (links get rendered as plain text).
See the screenshot below:

Same visual story: marking task as done invokes a strikethrough. The links stay unaffected by this formatting change. (Not sure if it’s near the original issue in the code wise sense)


:lipstick: make modal pretty on dark mode

Fixes #113, I didn't find code blocks in evm.codes so I asked AI for recommandations for a good color palette that fit with native tailwind CSS colors. Result seems good to me, feel free to challenge
Light

Dark

I need to rebase and merge conflicts, will do after lunch


EventQuerySet.unpublished_conditional makes annotating events sometimes wrong

Any event with tag "cancelled" will sort-of appear twice in results for Django, therefore making annotation's result double, however finally there will be only single event in the query set.
More details:

https://github.com/swcarpentry/amy/pull/1127#discussion_r95062085
https://github.com/swcarpentry/amy/pull/1127/commits/0fe717ec78b6fb223065edf871dd60c6807fe8e0

@pbanaszkiewicz could you provide an example when it gives wrong result (for example in the production data)?

@chrismedrela this: https://amy.software-carpentry.org/workshops/event/2016-07-14-jackson/
You need to get production database and run this annotation and compare num_instructors with event.task_set.instructors.count().


17465 qgis main page web development

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Expect Object from getGrants

describe('grantList', async () => {

  var grantList = [
    { role: 'admin', resource: 'video', action: 'create:any', attributes: ['*'] }
  ];

  it('should initialize ac from grantList', async () => {
    var ac = new AccessControl(grantList)
    let grants = ac.getGrants()
    console.log(grants)
    })
})

Outputs:
[ { role: 'admin',
resource: 'video',
action: 'create:any',
attributes: [ '*' ] } ]

I am expecting an object, like in the tests:
https://github.com/onury/accesscontrol/blob/master/lib/AccessControl.js#L130
When i mix my approach:
describe('grantList', async () => {
    var grantList = [
        { role: 'admin', resource: 'video', action: 'create:any', attributes: ['*'] }
    ];

    it('should initialize ac from grantList', async () => {
        var ac = new AccessControl(grantList)
        ac
        .grant('user')
        .readAny(['profile', 'video'], ['', '!id', '!password'])
        .createOwn(['profile', 'video'])
        .deleteOwn(['video']);
        // logging underlying grants model
        console.log(ac.getGrants());
    })
})

I get this mixd output:
[ { role: 'admin',
    resource: 'video',
    action: 'create:any',
    attributes: [ '*' ] },
  user: { profile: { 'read:any': [Array], 'create:own': [Array] },
    video:
     { 'read:any': [Array],
       'create:own': [Array],
       'delete:own': [Array] } } ]

I guess I am expecting the types to be the same.
Really, I'd love to export as a grantList or an Object, depending on the situation.

Nice catch. Thanks.
The constructor takes the grants parameter as is. This is a bug. It should be processed like the .setGrants(obj) method does.
I'll fix this shortly but if this is too urgent pls use .setGrants() instead of the constructor for now.
Option to export grants as an object or array was already in todo list. I'll see if it'll make its way to this release.

wow, thanks for the quick reply!
Your solution works :)
Before using setGrants I was seeing:
TypeError: Cannot read property '$extend' of undefined

when checking permissions like so:
let permission = ac.can('admin').createAny('video')

I'm trying to create an equivalence between your library and an Ethereum Smart contract, I imagine I will have many more questions :)

You're welcome. I don't have too much knowledge about Ethereum though.
v1.5.2 is released with a fix.
I need time for adding support for exporting grants as a flat list. This is a bit tricky bec. of hierarchical role inheritance.
Closing this. Pls re-open or create a new issue if needed.
cheers.


Implementing DeepCopy and DeepCopyInto interface for VEX

This implementation will help those who want to implement VEX objects under Kubernetes API

so far lgtm can you please rebase and fix the lints?


Reset pw is not working AT ALL

Going through the reset password flow the url for showing the form is returning a 404 (e.g. /reset-password/form/mytoken)

on it

fixed with 0.9.3


CHAOS-5103 Connect to infra via proxy

Steps to connect chaos infra and enterprise ChaosHub via proxy

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6620f1552398ffd9cdf34b54--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6620f1fbfb585930ea42461c--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6620f7917b10263f90002430--harness-developer.netlify.app


Support IntelliJ IDEA version 2023.3

From version IntelliJ IDEA 2023.3 DummyMapper is not compatible.
Please change for support new IDEA versions this very usefull plugin.

Will be published in 2 business days


ENH: Better complex support for Evoked and SourceEstimate

Reference issue
Example: Fixes #8139
What does this implement/fix?
Raises an error when complex VolSourceEstimate.data is saved to formats other .h5
Allows for write_evokeds and read_evokeds writing and reading complex data
Additional information
I haven't changed test_evoked.py since I did not know whether any of the datasets had complex data to test it on

CircleCI says
changes/latest.inc:17: WARNING: Unknown target name: "lau møller andersen".
changes/latest.inc:19: WARNING: Unknown target name: "lau møller andersen".

make sure you have a matching name link in names.inc

My pleasure - fun helping out

what's the significance of the failed codecov/patch test?

you can ignore codecov

Thanks @ualsbombe !

Thanks @ualsbombe !

Thank you - it was fun

come have fun with us more often :)

I will - it wasn't as hard as I feared :)


#195 Add a test case

Resolving issue #195
$attrs xslt variable on which we test and filter already takes attributes in skeleton that:

are not static (so the problem in #156 can not happen)
in skeleton ops/op text content already has the fully qualified name when it comes to other classes static fields

Added a test case to ensure this.

This pull request #399 is assigned to @fanifieiev/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @paulodamaso/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job

@fanifieiev ping

@fanifieiev ping

@fanifieiev ping

@HDouss Sorry, but I do not think I can review this PR.
I have no idea what this test for and what it does.
I will likely refuse this review.

@0crat refuse

@0crat refuse (here)

@fanifieiev The user @fanifieiev/z resigned from #399, please stop working. Reason for job resignation: Order was cancelled

Tasks refusal is discouraged (job refused in 29 hours), see §6: -10 point(s) just awarded to @fanifieiev/z

@paulodamaso/z everybody who has role REV is banned at #399; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@paulodamaso ping

@HDouss Thank you!

@rultor merge

@rultor merge

@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@hdouss @paulodamaso Oops, I failed. You can see the full log here (spent 2min)
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export 'MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'
+ MAVEN_OPTS='-XX:MaxPermSize=256m -Xmx1g'
+ export 'JAVA_OPTS=-XX:MaxPermSize=256m -Xmx1g'
+ JAVA_OPTS='-XX:MaxPermSize=256m -Xmx1g'
+ export head=git@github.com:yegor256/jpeek.git
+ head=git@github.com:yegor256/jpeek.git
+ export pull_id=399
+ pull_id=399
+ export fork=git@github.com:HDouss/jpeek.git
+ fork=git@github.com:HDouss/jpeek.git
+ export fork_branch=#195
+ fork_branch='#195'
+ export head_branch=master
+ head_branch=master
+ export 'pull_title=#195 Add a test case'
+ pull_title='#195 Add a test case'
+ export author=paulodamaso
+ author=paulodamaso
+ sudo -i gem install pdd -v 0.20.5
Fetching pdd-0.20.5.gem
Fetching nokogiri-1.10.3.gem
Fetching mini_portile2-2.4.0.gem
Fetching slop-4.6.1.gem
Fetching rainbow-3.0.0.gem
Successfully installed mini_portile2-2.4.0
Building native extensions. This could take a while...
Successfully installed nokogiri-1.10.3
Successfully installed rainbow-3.0.0
Successfully installed slop-4.6.1
Successfully installed pdd-0.20.5
Parsing documentation for mini_portile2-2.4.0
Installing ri documentation for mini_portile2-2.4.0
Parsing documentation for nokogiri-1.10.3
Installing ri documentation for nokogiri-1.10.3
Parsing documentation for rainbow-3.0.0
Installing ri documentation for rainbow-3.0.0
Parsing documentation for slop-4.6.1
Installing ri documentation for slop-4.6.1
Parsing documentation for pdd-0.20.5
Installing ri documentation for pdd-0.20.5
Done installing documentation for mini_portile2, nokogiri, rainbow, slop, pdd after 3 seconds
5 gems installed
+ sudo -i gem install xcop
Fetching xcop-0.6.gem
Fetching differ-0.1.2.gem
Successfully installed differ-0.1.2
Successfully installed xcop-0.6
Parsing documentation for differ-0.1.2
Installing ri documentation for differ-0.1.2
Parsing documentation for xcop-0.6
Installing ri documentation for xcop-0.6
Done installing documentation for differ, xcop after 0 seconds
2 gems installed
+ pdd -f /dev/null
/home/r/script.sh: line 9: pdd: command not found
container 6af94ac30a7304a026d9bf0a49dbc088edb31aa3e9e77785b48c667150ca47c1 is dead
Sun Mar  1 04:12:04 CET 2020

Job gh:yegor256/jpeek#399 is not assigned, can't get performer

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @paulodamaso/z


Preprocessor: ensure expansion_locs of trimmed tokens are freed.

Fixes #159

Awesome, we now have zero known memory leaks/crashes!


How to install a package from github repo?

Hello,
Today my doom-emacs day! I am just figuring out how to use it. I am trying to install some packages which is not in MELPA packages. I put the line below inside packages.el file.

(package! another-package :recipe (:fetcher github :repo "madsdk/yasnippets-latex"))

But I am getting the error below:
Looking for packages to install...
Installing another-package
  FATAL ERROR: (error Failed to checkout ‘another-package’: ‘No matching file(s) found in /home/ofenerci/.doom-emacs/.local/packages/quelpa/build/another-package/: (*.el *.el.in dir *.info *.texi *.texinfo doc/dir doc/*.info doc/*.texi doc/*.texinfo (:exclude .dir-locals.el test.el tests.el *-test.el *-tests.el))’)
  Run again with the -d flag for detail

I think the error is related with my extra line of code. I remove the line, the error goes away!

By default, quelpa will only grab {package-name}.el from the specified repo. To include other files, like the snippets/ subdirectory, you must specify :files:
(package! another-package
  :recipe (:fetcher github :repo "madsdk/yasnippets-latex" :files ("*.el" "snippets/"))

However, I took a peek at madsdk/yasnippets-latex and noticed there is no yasnippets-latex.el file, which may cause problems. Quelpa may not be able to install a package that lacks an elisp file (and subsequently, a package header with the needed package metadata). If that's the case, you'll have no choice but to clone it yourself and either symlink snippets to ~/.doom.d/snippets/latex-mode, or add the path to snippets to yas-snippet-dirs:
;; in ~/.doom.d/config.el
(after! yasnippet
  (add-to-list 'yas-snippet-dirs "path/to/yasnippets-latex/snippets"))

``

I'll consider this issue resolved. Let me know if that isn't so and I will reopen the issue. Feel free to follow up here in any case.


Where to find the dependencies for armnn/tests?

I want to do experiment with armnn/tests. But when I add "-DBUILD_TESTS=1" flag to build the tests, cmake error occurs:
CMake Error at tests/CMakeLists.txt:4 (include_directories):
include_directories given empty-string as include directory.
The 4th line actually is: "include_directories(SYSTEM "${THIRD_PARTY_INCLUDE_DIRS}")"
I think this error is related with what the readme said: "
The armnn/tests directory contains tests used during Arm NN development. Many of them depend on third-party IP, model protobufs and image files not distributed with Arm NN. The dependencies of some of the tests are available freely on the Internet, for those who wish to experiment."
Am I right? If so, could anyone tell me where to get those dependencies?
Thanks a lot!
Best Regards

Hi zengzengsun,
the THIRD_PARTY_INCLUDE_DIRS should be set by line 12 of the root CMakeList.txt file to be "set(THIRD_PARTY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/third-party)"
Where are you building this from? Do you have a third-party directory in your root director?
Best regards,
Mike

@MikeJKelly
Thank you very much, Mike~
I updated arm-nn to latest one and the problem is resolved.
I want to test the tflite models with arm-nn like using "TfLiteMnasNet-Armnn".
Do you know where I can download the models like "mnasnet_1.3_224.tflite" and related test data?

Hi @zengzengsun, the TFLite Mnasnet model can be found https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/guide/hosted_models.md. You can use any test image for the categories mentioned in the TfLiteMnasNet-Armnn.cpp.
I hope this helps. I'm closing this as the original question has been answered, please open a new one if you require further help.
Thanks,
Surabhi


Update instead of overwriting sdkVersion in graph_session.py

Would you kindly let me know what exactly needs to be done?
I would love to work on this.

@rajatdiptabiswas thank you for your interest!
What we are doing currently, overwrites sdkVersion if any exists. What we want to do is append to the value of sdkVersion

Hello @jobala
Thanks for the clarification!
Should I try converting the values to a list and append the new value into the list?
Or should I append to the current value using commas (or any such delimiter) to make it a list of comma-separated values?

@rajatdiptabiswas you should append the current value  using commas.

Hi @jobala!
From what I understood, the sdkVersion key-value pair should now be something like
{ 'sdkVersion' : 'graph-python-SDK_VERSION_1,graph-python-SDK_VERSION_2,graph-python-SDK_VERSION_3,' }
where SDK_VERSION_X is the actual version number in SDK_VERSION.
Is it okay to have a trailing comma or should I handle those cases too?
As for testing, should I get sdkVersion from requests.headers, split it with , and just check whether the last item is 'graph-python-SDK_VERSION' or not?

The syntax for the SdkVersion header is here: https://github.com/microsoftgraph/msgraph-sdk-design/blob/master/middleware/TelemetryHandler.md#remarks
New values should be pre-pended to the beginning of the header value just as in User-Agent header.

I have made the changes mentioned and have written tests as well.
I am new to writing tests, so kindly let me know if everything looks good.
Thanks in advance!


Agile Octopus current rate not updating

I am on octopus agile and while the list of attributes for the current rate contain all of the information the rate just stays the same and  never updates

Sorry to hear you're having issues. Do you have any logs in your HA instance that might indicate why this is happening. I also assume that you've changed the name of the sensor (as what is displayed is not the default name) and that you've shown the electricity current rate sensor?

Same issue here. I noticed this in the logs:
2023-06-01 09:00:25.717 ERROR (MainThread) [custom_components.octopus_energy.api_client] Failed to send request (https://octopus.energy/api/v1/tracker/E-1R-AGILE-FLEX-22-11-25-A/daily/past/1/0): 400; {"non_field_errors": ["Invalid tariff type."]}

There's also a lot more of
2023-06-03 13:30:12.266 ERROR (MainThread) [custom_components.octopus_energy.api_client] Octopus Energy server error (https://api.octopus.energy/v1/products/AGILE-FLEX-22-11-25/electricity-tariffs/E-1R-AGILE-FLEX-22-11-25-A/standard-unit-rates?period_from=2023-06-01T23:00:00Z&period_to=2023-06-02T23:00:00Z): 502;
<title>502 Bad Gateway</title>

502 Bad Gateway

nginx

logged lately. I've seen them from time to time but the last few days there's a lot of it. I don't know if this would affect fetching the tariff info so thought I'd mention just in case.

The server errors reported by OE do not help this situation. I've released a new version which should improve the retrieving of data and make it more recoverable in the event of failures. This is available in v7.4.2.
However @richardproctor90 reported that the correct up-to-date rates were available in the attributes of the sensor, but the sensor itself wasn't reflecting this

That looks to have solved my issue; thanks!

Hi @BottlecapDave . Not sure if the cause is the same as Richard, but my agile rates are not updating either (nor in attributes of the sensor). I have Home Mini and the Octopus dashboard is correct. I see this in the log:
This error originated from a custom integration.
This error originated from a custom integration.
Logger: custom_components.octopus_energy.coordinators.electricity_rates
Source: helpers/debounce.py:67
Integration: Octopus Energy (documentation, issues)
First occurred: 24 June 2023 at 16:12:06 (20 occurrences)
Last logged: 12:22:42
Debouncer call ignored as shutdown has been requested.

Hi @zav13r  - That error is related to background updates when your HA instance shuts down/restarts. I don't believe there is anything I can do for this, but it should not effect the updating of your rates. If you turn on debugging, let your instance run for at least a day and then disable debugging and post the results here then I might be able to assist further with what's happening.

I'm guessing also by the fact you're saying the state nor attributes are updating that the value in rates (indicating all prices) are all in the past for current rate sensor and that the value of rate (the current price) is also in the past?

I'm guessing also by the fact you're saying the state nor attributes are updating that the value in rates (indicating all prices) are all in the past for current rate sensor and that the value of rate (the current price) is also in the past?

That is correct, yes. In my case, it is possible there is just a delay. Home Mini only recently received and added so I'll give it a few days and add here if the problem persists, in case it is related to OP issue.

I'm guessing also by the fact you're saying the state nor attributes are updating that the value in rates (indicating all prices) are all in the past for current rate sensor and that the value of rate (the current price) is also in the past?

Interestingly, the previous accumulation sensors show the correct rates for the previous period, but all three of my current sensors show unknown, after reinstalling the integration. No data showing after 24 hours. Octopus dashboard shows all stats correctly.
I have debugging enabled now so once I figure out what to do with that, I can upload some logs!

Still seeing these too (no HA restarts or shutdowns):
This error originated from a custom integration.
Logger: custom_components.octopus_energy.coordinators.electricity_rates
Source: helpers/debounce.py:67
Integration: Octopus Energy (documentation, issues)
First occurred: 24 June 2023 at 16:12:06 (44 occurrences)
Last logged: 19:38:24
Debouncer call ignored as shutdown has been requested.


Error

Hi
I am attempting to run the example (https://github.com/mdeloof/statig/tree/main/examples/macro/basic) as an independent project and receiving this error . Am I missing anything?
Compiling machine v0.1.0 (/Users/chetanconikee/pgithub/machine)
error[E0599]: no method named `uninitialized_state_machine` found for struct `Blinky` in the current scope
  --> src/main.rs:40:43
   |
7  | pub struct Blinky {
   | ----------------- method `uninitialized_state_machine` not found for this struct
...
40 |     let state_machine = Blinky::default().uninitialized_state_machine();
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Blinky`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `machine` due to previous error

Resolved ..


Scene darker in build

Hello! I was just testing your URP port, and I really like the effort you put into this.
Low settings of amplify occlusion look a lot better, less noise.
However it seems like builds are darker overall when using amplify occlusion. (Left one is the URP default SSAO)
As seen in the attached picture.

Have you played with the settings? Such artifact is usually caused by small depth bias. Not sure if it looks different in Editor vs Build

Hey, so I've taken another stab at trying other settings and tinkering. And I've found the culprit.
Apparently if you have a toggled off render feature of SSAO in the Universal Renderer Data it causes this issue.
Looking like this:

Removing it from the list solves the issue fortunately.
I will close the issue as its a bug with Unity's SSAO.