problems

when i run  python deploy-to-lambda.py
2017-01-02 23:04:00:INFO:botocore.credentials: Found credentials in shared credentials file: ~/.aws/credentials
2017-01-02 23:04:00:ERROR:lambda_deploy: Missing AWS Role
2017-01-02 23:04:00:ERROR:lambda_deploy: Invalid arguments.
my .env file is:
KODI_ADDRESS = mykodiaddress
KODI_PORT =8080
KODI_USERNAME = myusername
KODI_PASSWORD = mypassword
LAMBDA_ENV_VARS = KODI_SCHEME,KODI_ADDRESS,KODI_PORT,KODI_SUBPATH,KODI_USERNAME,KODI_PASSWORD,SKILL_APPID,SKILL_TZ
[default]region = eu-west-1
AWS_DEFAULT_REGION = eu-west-1
LAMBDA_TIMEOUT = 60
LAMBDA_MEMORY_SIZE = 128
LAMBDA_HANDLER = wsgi.lambda_handler
AWS_ACCESS_KEY_ID = myaccesskey
AWS_SECRET_ACCESS_KEY = mysecretkey
LAMBDA_ROLE = my role
can anyone help?

Did you make sure your AWS user has Lambda permissions?

yeah i just re created another user and removed the old one in IAM management console i created a new user and granted full access to lambda in premissions and entered the details in the .env file  but still have the same issue when running deploy command

Are you pasting in the ARN for your user on the LAMBDA_ROLE option?

yeah iv pasted the LAMBDA_ROLE = arn:aws:iam::xxxxxxxxxxxx:role/lambda into the .env file

Try and use your user ARN instead of the role one.

It also looks like the .env file is not being read correctly and lambda-deploy is reading the aws-cli credentials instead.
In your first post you pasted your .env file as:
KODI_ADDRESS = mykodiaddress
KODI_PORT =8080
KODI_USERNAME = myusername
KODI_PASSWORD = mypassword
LAMBDA_ENV_VARS = KODI_SCHEME,KODI_ADDRESS,KODI_PORT,KODI_SUBPATH,KODI_USERNAME,KODI_PASSWORD,SKILL_APPID,SKILL_TZ
[default]region = eu-west-1
AWS_DEFAULT_REGION = eu-west-1
LAMBDA_TIMEOUT = 60
LAMBDA_MEMORY_SIZE = 128
LAMBDA_HANDLER = wsgi.lambda_handler

AWS_ACCESS_KEY_ID = myaccesskey
AWS_SECRET_ACCESS_KEY = mysecretkey
LAMBDA_ROLE = my role

Not sure if it was just a mistake when you copied and pasted it but [default]region = eu-west-1 shouldn't be there.

i changed the value of the LAMBDA_ROLE to the user ARN and the deploy runs but i now have  a different error
botocore.exceptions.ClientError: An error occurred (InvalidSignatureException) when calling the CreateFunction operation: Signature expired: 20170104T142232Z is now earlier than 20170104T142539Z (20170104T143039Z - 5 min.)
iv pasted the command line here:
C:\Users\Blair\Downloads\kodi-alexa-master>C:\Python27\Scripts\lambda-deploy.exe deploy
2017-01-04 14:22:08:INFO:botocore.credentials: Found credentials in environment variables.
2017-01-04 14:22:09:INFO:lambda_deploy: Packaging lambda kodi-alexa-master
2017-01-04 14:22:09:WARNING:lambda_deploy: A .env file exists in your Lambda directory - be careful that it does not contain any secrets you don't want uploaded to AWS!
2017-01-04 14:22:09:WARNING:lambda_deploy: Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead (see documentation for more information)
2017-01-04 14:22:09:WARNING:lambda_deploy: Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead (see documentation for more information)
Collecting requests (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 1))
Using cached requests-2.12.4-py2.py3-none-any.whl
Collecting gunicorn (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 2))
Using cached gunicorn-19.6.0-py2.py3-none-any.whl
Collecting yaep (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 3))
Using cached yaep-0.0.6-py2-none-any.whl
Collecting pycountry (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 4))
Using cached pycountry-17.1.2.tar.gz
Collecting pytz (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 5))
Using cached pytz-2016.10-py2.py3-none-any.whl
Collecting fuzzywuzzy (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 6))
Using cached fuzzywuzzy-0.14.0-py2.py3-none-any.whl
Installing collected packages: requests, gunicorn, yaep, pycountry, pytz, fuzzywuzzy
Running setup.py install for pycountry ... done
Successfully installed fuzzywuzzy-0.14.0 gunicorn-19.6.0 pycountry-17.1.2 pytz-2016.10 requests-2.12.4 yaep-0.0.6
Starting new HTTPS connection (1): lambda.eu-west-1.amazonaws.com
Adding new kodi-alexa-master lambda
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\lambda-deploy.exe_main.py", line 9, in
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 376, in main
method()
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 215, in deploy
Publish=True
File "c:\python27\lib\site-packages\botocore\client.py", line 251, in _api_call
return self._make_api_call(operation_name, kwargs)
File "c:\python27\lib\site-packages\botocore\client.py", line 537, in _make_api_call
raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidSignatureException) when calling the CreateFunction operation: Signature expired: 20170104T142232Z is now earlier than 20170104T142539Z (20170104T143039Z - 5 min.)

Sounds like the same issue as this one: #69.
Looks like you just need to change your system clock to match.

iv changed the system clock to match and get another error
C:\Users\Blair\Downloads\kodi-alexa-master>C:\Python27\Scripts\lambda-deploy.exe deploy
2017-01-04 19:22:11:INFO:botocore.credentials: Found credentials in environment variables.
2017-01-04 19:22:11:INFO:lambda_deploy: Packaging lambda kodi-alexa-master
2017-01-04 19:22:11:WARNING:lambda_deploy: A .env file exists in your Lambda directory - be careful that it does not contain any secrets you don't want uploaded to AWS!
2017-01-04 19:22:11:WARNING:lambda_deploy: Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead (see documentation for more information)
Collecting requests (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 1))
Using cached requests-2.12.4-py2.py3-none-any.whl
Collecting gunicorn (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 2))
Using cached gunicorn-19.6.0-py2.py3-none-any.whl
Collecting yaep (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 3))
Using cached yaep-0.0.6-py2-none-any.whl
Collecting pycountry (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 4))
Using cached pycountry-17.1.2.tar.gz
Collecting pytz (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 5))
Using cached pytz-2016.10-py2.py3-none-any.whl
Collecting fuzzywuzzy (from -r C:\Users\Blair\Downloads\kodi-alexa-master\requirements.txt (line 6))
Using cached fuzzywuzzy-0.14.0-py2.py3-none-any.whl
Installing collected packages: requests, gunicorn, yaep, pycountry, pytz, fuzzywuzzy
Running setup.py install for pycountry ... done
Successfully installed fuzzywuzzy-0.14.0 gunicorn-19.6.0 pycountry-17.1.2 pytz-2016.10 requests-2.12.4 yaep-0.0.6
Starting new HTTPS connection (1): lambda.eu-west-1.amazonaws.com
Adding new kodi-alexa-master lambda
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\lambda-deploy.exe_main.py", line 9, in
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 376, in main
method()
File "c:\python27\lib\site-packages\lambda_deploy\lambda_deploy.py", line 215, in deploy
Publish=True
File "c:\python27\lib\site-packages\botocore\client.py", line 251, in _api_call
return self._make_api_call(operation_name, kwargs)
File "c:\python27\lib\site-packages\botocore\client.py", line 537, in make_api_call
raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the CreateFunction operation: 1 validation error detected: Value 'arn:aws:iam::627098885616:user/blair' at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-/]+


Unit test coverage

I have a private branch that has 100% test coverage on the MailChimp class.
This was achieved by extracting the curl specific request handling code into its own class which could be stubbed out to allow canned http responses to be returned so the majority of the tests can run without requiring access to the live Mailchimp servers.
It has fallen a few commits behind the master but if you think this would be a useful addition I can resolve the conflicts and submit a PR.

My hesitation is that a big draw of this library for many of its users is the simplicity. You can literally just grab the Mailchimp.php file and included it in a page and start using it. We added a second class with the batch operations, but that tends to be a more advanced use-case anyway.
Maintaining that simplicity and portability involves trade-offs in terms of clean architecture, which is always causes me pause for thought. It's a tricky line to walk.

One option might be to go down the path of having a stand-alone single file version of the library with all the classes compiled down to a single file.

I understand that being able to copy the single Mailchimp.php file around is a positive.
I don't think there is any problem with having multiple PHP classes within a single source file. Particularly when they are not intended to be instantiated separately.
When I get a chance I'll submit a PR and we can see how it looks.

Closing for now. Feel free to reopen if it becomes relevant again.


Open links in a new tab

Opening links uses the current window and moves away from the Shiny app.
Links to files and such would be better if open in a new tab or window so don't lose progress in the Shiny app.

Hyperlinks add “target = “_blank””.

Issue resolved in v<IP_ADDRESS>62


Compute kSortKeyViewNumBits automatically.

Compute kSortKeyViewNumBits automatically via log2(BGFX_CONFIG_MAX_VIEWS), so that we could change BGFX_CONFIG_MAX_VIEWS to be above 2^10 = 1024 without changing the bgfx source code..
One possible problem with this approach is running out of bits, so maybe we could assert for that, I am not sure where to do it and how many bits we can use though.
Using bx::uint32_cntlz because bx::log2 is not constexpr.
Tested on linux opengl2.1 with BGFX_CONFIG_MAX_VIEWS=4096, seems to work.

Technically there is 28 bits free for view in sort key. But 12 bits should be plenty for sane usage.


chore: kernel API type translations

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 3074a933ce6201bb68e81ec74d1457fa4ed0cadc
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: bd946b065d825cfb5c18c87b3ea7c04df7951e81
Result: FAILED
Build Logs (available for 30 days)

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

Pending https://github.com/aws/jsii/pull/1996

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 5169f0ffbc150419b81cbf4e80d8a7f727d3b1b1
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: f87ccb23535bcccd457ce68d2ee9ad63ffee1c62
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: af7b28e19f7ea9ca882519e1662651f63bfa33ad
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: af7b28e19f7ea9ca882519e1662651f63bfa33ad
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: af7b28e19f7ea9ca882519e1662651f63bfa33ad
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: af7b28e19f7ea9ca882519e1662651f63bfa33ad
Result: FAILED
Build Logs (available for 30 days)

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: ff17d2a59c6dca85bdfa5fc1d42d86f7188527ad
Result: FAILED
Build Logs (available for 30 days)

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


Do not catch ReleaseEndOfLifeException

get_environment_information now initializes lspci tool which can trigger EOL exception but it will not be raised again later because the tool won't be initialized again. This fix re-raises the exception.

@squirrelsc Did we decide against this mitigation strategy? Should I close this PR?
Do we have tasks created for more long term mitigation of failures in get_environment_info?

@squirrelsc Did we decide against this mitigation strategy? Should I close this PR?
Do we have tasks created for more long term mitigation of failures in get_environment_info?

Yes, please close this PR. @LiliDeng Please make sure the unsupported distro exception doesn't depend on get_env_info.


AMBARI-23804 : Refine AMS HBase region splitting calculation based on UUID work.

What changes were proposed in this pull request?

Implement collector side region splits for UUID based tables
Refactor compaction policy and durability settings for metric tables.
Replaced MD5 with Murmur3 Hash as the default UUID generation technique.
Config cleanup.

How was this patch tested?
Manually tested.
mvn clean install.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2207/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2208/
Test FAILed.
Test FAILured.

Unrelated test failure
Failed tests: FAIL: test_configure_secure (test_metadata_server.TestMetadataServer)

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2228/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2230/
Test PASSed.


chore(test): upgrade Karma

This change also removes space/enter key handling code in search toolbar, because that never runs as <button>'s click event handler takes care of the user gesture.
Another note is that the newer Karma/Jasmine combination makes test execution order random by default. I tried to fix the tests depending on execution order, but turned that off to avoid flaky test results in Travis.
Fixes #1159.
Changelog
New

--random option for gulp test:unit, to enable random test execution order

Changed

Upgraded Karma/Jasmine, both to v3
Fixed tests that depend on test execution order

Removed

Enter/space handling code in search toolbar, which never runs as <button>'s click event handler takes care of the user gesture

Testing / Reviewing
Testing should make sure our unit tests as well as search toolbar are not broken.

seeing this when I run `yarn test`

@alisonjoseph Thank you for reporting - The log indicates that some tests were failed, but cannot see what test they were. What were they?

Sorry, didn't scroll up before. Looks like Test number input is failing for me

Thanks @alisonjoseph! Added an attempt to fix the test.


.github/workflows/update-terraform-providers.yml: disable

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

https://registry.terraform.io/terms
You may download providers, modules, policy libraries and/or other Services or Content from this website solely for use with, or in support of, HashiCorp Terraform. You may download or copy the Content (and other items displayed on the Services for download) for personal non-commercial use only, provided that you maintain all copyright and other notices contained in such Content. You shall not store any significant portion of any Content in any form.

@zimbatm I think we need to change the provider packaging/scripts so it doesn't use the registry. I'll look at doing that but until it's done I want to turn off the auto updates. I plan to merge this before the next update run in ~13 hours.

We're doing this as a non-profit, and specifically to use with Terraform. It seems to be in line with what they are asking.

Even if we are okay now I don't want to have to keep checking if they've changed their terms again. I think we'll end up having to change how we handle these providers eventually, may as well do it before it becomes an issue.

Isn't the trigger set to on: push by default?
This workflow runs for every push since this PR was merged.🙃
https://github.com/NixOS/nixpkgs/actions/workflows/update-terraform-providers.yml

Sorry, fixed in https://github.com/NixOS/nixpkgs/pull/252674


Avoid dangling symlinks in git-init

fixes https://github.com/tektoncd/catalog/issues/531
Changes
When the following conditions are met:

the feature flag disable-home-env-overwrite is "true"
the container user is root
no git / ssh secret is attached to a taskrun service account
user is running new-ish version of catalog git-clone task with git-init v0.15.2+

git-init will error out in the git-clone task because we create a circular symlink
from /root/.ssh to itself and then try to look up /root/.ssh/known_hosts.
This commit adds a check to avoid this from happening:
If the user's $HOME/.ssh directory doesn't exist or if they aren't able to access it
for any reason, then we don't try to create a symlink to it at all since we can trust that
the user is incapable of utilizing the credential.
This commit also expands an existing check to see if the $HOME/.ssh directory is
the same as the user's home directory + '.ssh'.  This was originally only checked if
the user was nonroot, but now this is also checked if the user is root too.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[x] Commit messages follow commit message best practices
[x] Release notes block has been filled in or deleted (only if no user facing changes)

Release Notes
Fixed a bug in `git-init` that allowed a circular symlink to be created from `/root/.ssh` to itself if no SSH credentials are present in the service account and the `disable-home-env-overwrite` flag is set to `"true"`.

/kind bug

/lgtm

Updated to use filepath package when joining path strings together, and to filepath.Clean directory names when comparing them to each other.

/lgtm

@vdemeester I think so, but curious to hear what others think.

OK, I think that's enough time to solicit feedback from anyone else.  Let's indeed cherry-pick this into 0.17.
/label needs-cherry-pick


Change mount.quobyte path from /bin to /usr/bin

mount.quobyte used to be under /bin and it is moved to /usr/bin
but the change is not made in kubernetes files leading to client
crash on kubernetes. This patch fixes the path issue.

Client Docker manifest file for 2.6
https://quay.io/repository/quobyte/quobyte-client/manifest/sha256:8dc7eb664e9dd99cb54e876eec504c846a7ba54ed5d54b5efcfaf74dda7ae9ba


Favorites - Initial setup

An idea, if the user does not have any favorites, can we present the list of repositories and possibility to select favorites, instead of showing a random repository in the green field:

and perhaps use the same space for the tutorial/description on how to add favorites

I'd say that if there are no favs and no 'show_repo_id', then it would mean that the user is completely new and maybe show him something. But missing favs alone is not enough to trigger imho. Maybe I don't care about favs and choose them from complete list.
Tutorials is a good idea. I was also thinking to embed some documentation into UI. But no concrete solution. I was thinking about some kind of downloading it from Wiki (assuming github is accessible) so that there are no or almost no text in-code, but some external help-ids.

ok, lets see how it works out


Fix appending of random directory within find() method

At #506 we've seen that when using the HTTPFileSystem's find method, it appears that the method would randomly add one of the found directories to the returned files listing. This is due to conflicting variable naming here:
https://github.com/intake/filesystem_spec/blob/a5bb95155b450ec2443872a45a4a58ce90748297/fsspec/spec.py#L430-L437
To fix this I renamed resulting path from self.walk() to path_. See here:
https://github.com/earthobservations/filesystem_spec/blob/e3956827181393b30a57ab6d11ede52931a4dec8/fsspec/spec.py#L430-L437

Thanks for finding this!
I expect this didn't show up with existing tests of find because, unlike the HTTP case, we can filter out directories easily, right? It would be nice to have a test for HTTP that would have shown the failure, but is now fixed after this change.

Fixes #506

Dear Martin,
I added two tests for the FTP and HTTP filesystem querying the Debian repo at [1]. As you can see from the test

the url which was queried is included in HTTPs result while for FTP this one is missing
for the case of HTTP this one has found the additional filter hrefs at this directory
the FTP method returns the relative paths

I propose that the FTP method is aligned with the one from HTTP by adding the base url to the found files thus returning the full filepath. Would you agree on this point?
[1] https://ftp.fau.de/debian-cd/current/amd64/log/success/

I propose that the FTP method is aligned with the one from HTTP by adding the base url to the found files thus returning the full filepath. Would you agree on this point?

I don't think I do. In the case of FTP, the host/port are arguments to the class, so each set of arguments is an independent file-system with a set of paths within it (which may depend on the specific user info given) and a single persistent connection. Conversely, HTTP sees the internet as a single filesystem, and makes new connections for every access. Although it's true that you can phrase a unique FTP path like "ftp://user:pass@host:port/path", this is for convenience only. Obviously for a case like this, where you have FTP-on-HTTP, the distinction is blurred.

for the case of HTTP this one has found the additional filter hrefs at this directory

I suppose this is OK, though one wonders what these things are, and whether they are likely to stay the same in the future.

Ah, those hrefs are new sorted views of the same directory. There is no way to know that they are not new content.
Ready to merge now?

Fixes https://github.com/dask/s3fs/issues/393

Yes, ready.

Yes, ready.


add talk at Cloud Native GBG

The list here is out of sync with https://github.com/fluxcd/flux2#community


Add rule to disallow implicit optional with autofix

Summary
Add rule to disallow implicit optional with autofix.
Currently, I've added it under RUF category.
Test Plan
cargo test
resolves: #1983

Skimming through the ecosystem checks, questions and limitations:

Type aliases could result in false positive:
from typing import Optional

Some: Optional[int]

def foo(arg: Some = None):
	pass

Should we ignore for typing.Any ?
from typing import Any

def foo(arg: Any = None):
	pass

Aliases seem like an annoying false positive :/

Should we ignore for typing.Any

Any includes None so I would think so.

Any includes None so I would think so.

Thanks, that makes sense and what mypy does as well :)

(Taking a look...)


fix(tauri) do not use template literals and fix entry for IE

What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] New Binding Issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes. Issue #___
[x] No

The PR fulfills these requirements:

[x] It's submitted to the dev branch and not the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

This is the initial fix for #448


HBASE-26025 Add a flag to mark if the IOError can be solved by retry in thrift IOError

https://issues.apache.org/jira/browse/HBASE-26025

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 33s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
4m  7s
branch-2 passed

+1 :green_heart:
compile
1m  3s
branch-2 passed

+1 :green_heart:
checkstyle
0m 44s
branch-2 passed

+1 :green_heart:
spotbugs
1m 34s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m 46s
the patch passed

+1 :green_heart:
compile
0m 59s
the patch passed

+1 :green_heart:
javac
0m 59s
the patch passed

+1 :green_heart:
checkstyle
0m 42s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
hadoopcheck
13m 31s
Patch does not cause any errors with Hadoop 3.1.2 3.2.1.

+1 :green_heart:
spotbugs
1m 46s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 14s
The patch does not generate ASF License warnings.

38m 27s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/3416

Optional Tests
dupname asflicense javac spotbugs hadoopcheck hbaseanti checkstyle compile

uname
Linux 548b15fd0d00 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 669ff7be82

Default Java
AdoptOpenJDK-1.8.0_282-b08

Max. process+thread count
86 (vs. ulimit of 12500)

modules
C: hbase-thrift U: hbase-thrift

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/console

versions
git=2.17.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 16s
Docker mode activated.

-0 :warning:
yetus
0m  6s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
4m  4s
branch-2 passed

+1 :green_heart:
compile
0m 32s
branch-2 passed

+1 :green_heart:
shadedjars
6m 36s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 35s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m 42s
the patch passed

+1 :green_heart:
compile
0m 31s
the patch passed

+1 :green_heart:
javac
0m 31s
the patch passed

+1 :green_heart:
shadedjars
6m 40s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 35s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
9m 37s
hbase-thrift in the patch passed.

35m 27s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/3416

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 976da836abdb 4.15.0-142-generic #146-Ubuntu SMP Tue Apr 13 01:11:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 669ff7be82

Default Java
AdoptOpenJDK-1.8.0_282-b08

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/testReport/

Max. process+thread count
1464 (vs. ulimit of 12500)

modules
C: hbase-thrift U: hbase-thrift

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/console

versions
git=2.17.1 maven=3.6.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
3m 56s
Docker mode activated.

-0 :warning:
yetus
0m  7s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
5m 55s
branch-2 passed

+1 :green_heart:
compile
0m 51s
branch-2 passed

+1 :green_heart:
shadedjars
9m 13s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m  7s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
5m 20s
the patch passed

+1 :green_heart:
compile
0m 46s
the patch passed

+1 :green_heart:
javac
0m 46s
the patch passed

+1 :green_heart:
shadedjars
9m  4s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 59s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
7m 23s
hbase-thrift in the patch passed.

45m 59s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/3416

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 19770e7baf2b 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 669ff7be82

Default Java
AdoptOpenJDK-11.0.10+9

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/testReport/

Max. process+thread count
2276 (vs. ulimit of 12500)

modules
C: hbase-thrift U: hbase-thrift

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3416/1/console

versions
git=2.17.1 maven=3.6.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.


Vitest is encountering failures specifically related to the botframework-webchat module.

Is it an issue related to Adaptive Cards?
No
Is this an accessibility issue?
No
What version of Web Chat are you using?
Latest production
Which distribution are you using Web Chat from?
NPM
Which hosting environment does this issue primarily affect?
Web apps
Which browsers and platforms do the issue happened?
Browser: Edge (latest)
Which area does this issue affect?
Others or unrelated
What is the public URL for the website?
No response
Please describe the bug
Error Message:
The failure is manifested with the following error:
Error: require() of ES Module C:\office\bot-work\Skynet\TeamsDevOpsPortal\node_modules\mdast-util-from-markdown\dev\index.js
from
C:\office\bot-work\Skynet\TeamsDevOpsPortal\node_modules\botframework-webchat-component\lib\Attachment\Text\private\LinkDefinitions.js not supported.

Instead change the require of index.js in C:\office\bot-work\Skynet\TeamsDevOpsPortal\node_modules\botframework-webchat-component\lib\Attachment\Text\private\LinkDefinitions.js
to a dynamic import() which is available in all CommonJS modules.

Versions:

vite: 5.0.11
vitest: 1.2.1
node: 18.2.0
typescript: 5.3.3
react: 18.2.0
botframework-webchat: 4.16.0

Investigation:
Upon investigation, it has been identified that an internal dependency named mdast-util-from-markdown is exclusively ESM (ECMAScript Module) compatible. This incompatibility prevents direct consumption of the main botframework-webchat module in the latest Node.js environments where tests are executed.
Proposed Solution:
The recommended approach for consumers of mdast-util-from-markdown should adhere to the following guidelines:
Refer to the installation instructions provided in the documentation of the module:
Installation Guidelines
Additionally, consumers can consult the example provided in the GitHub Gist by sindresorhus for further clarity on usage:
Usage Example
Note: Resolving this issue according to the proposed solution is expected to rectify the failing Vitest scenarios for the botframework-webchat module.
Do you see any errors in console log?
Error: require() of ES Module C:\office\bot-work\Skynet\TeamsDevOpsPortal\node_modules\mdast-util-from-markdown\dev\index.js from C:\office\bot-work\Skynet\TeamsDevOpsPortal\node_modules\botframework-webchat-component\lib\Attachment\Text\private\LinkDefinitions.js not supported.
Instead change the require of index.js in C:\office\bot-work\Skynet\TeamsDevOpsPortal\node_modules\botframework-webchat-component\lib\Attachment\Text\private\LinkDefinitions.js to a dynamic import() which is available in all CommonJS modules.

How to reproduce the issue?
Run tests using vitest consuming botframework-webchat npm package.
What do you expect?
Already propsed the solution above.
What actually happened?
Vitests start failing.
Do you have any screenshots or recordings to repro the issue?
NO
Adaptive Card JSON
No response
Additional context
No response

I was able to recreate this problem. It looks like Vitest even whith preconfigured happy-dom environment is trying to import the CommonJS compatible version of botframework-webchat, which isn't fully supported by Vitest.
I think we should be using the browser version for the test runs since it is dedeicated for environments like these where WebChat is usually used. This way, we can avoid any compatibility issues with CommonJS modules.
As the starting point check out this example: https://stackblitz.com/~/github.com/OEvgeny/botframework-webchat-vitest-demo?view=editor
It should be possible to further improve it to allign with how importing botframework-webchat module is done in your code.

This issue has been open for a while now and even has a possible fix. Any idea if there is likely to be any movement on it?

@justin-mellor we have other workloads for now, it's hard to tell when we'll be able to ship ESM builds for the WebChat.
Meanwhile there are ways to unblock testing with Vitest as shown in my previous message.

We are going to ship ESM real soon. 😉
https://github.com/microsoft/BotFramework-WebChat/pull/5148

@OEvgeny The latest version of webchat 4.18.0 now does not work even with your workaround. Your stackblitz errors with
Error: Missing "./dist/webchat.js" specifier in "botframework-webchat" package
Do you have any suggestions?

Thanks for pointing out @justin-mellor. I spent some time trying to make latest Web Chat and Vitest to work together. From Vitest docs, it seems this should work, but it really doesn't: https://stackblitz.com/~/github.com/OEvgeny/botframework-webchat-vitest-demo?file=package.json
Vitest uses NodeJS resolution algorithm in contrast to Vite, so we have to add problematic packages to deps.optimizer.web.include which should convert them to ESM, but it doesn't really happen which looks like a Vitest bug to me.

Thanks for looking at this @OEvgeny . I also tried all those vitest options to no avail. I will raise this as an issue against vitest and see what they say.

Hi @OEvgeny the vitest team suggested mocking the call which has worked for me. I don't need to test the component, just my code.


Fix multiselect field rendering in record editor

The branch name here is wrong. The pr title is correct


Load OGGs from file system

Meowww this is related to: https://github.com/godotengine/godot/issues/61091
Now we are able to load and play OGGs from anywhere on file system:
var path = "/Users/oguzhan/Projects/3DAudioVisualization/assets/audio/Dubmood - Chicago Chiphop.ogg"
var stream = AudioStreamOggVorbis.from_filesystem(path);
$AudioStreamPlayer.stream = stream
$AudioStreamPlayer.play(0)

Fixes https://github.com/godotengine/godot/issues/61091

Out of curiosity, can you check if this can be done with MP3 as well?

Nit: remove commented out 'private' but otherwise lgtm for audio.
On Fri, Nov 11, 2022 at 12:11 PM Hugo Locurcio @.***>
wrote:

Out of curiosity, can you check if this can be done with MP3 as well?
—
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/pull/68540#issuecomment-1312155794,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOY2653IWU6BFHKOS2WPYDWH2R65ANCNFSM6AAAAAAR54KNBE
.
You are receiving this because your review was requested.Message ID:
@.***>

ResourceImporterOggVorbis does not appear to be available outside of the editor (tools build), this will not work in exported projects.
If that is intended, you should wrap the additions in #ifdef TOOLS_ENABLED.

ResourceImporterOggVorbis does not appear to be available outside of the editor (tools build), this will not work in exported projects.
If that is intended, you should wrap the additions in #ifdef TOOLS_ENABLED.

A method similar to Image's load_png_from_buffer() should be implemented for run-time WAV/OGG/MP3 loading. See https://github.com/godotengine/godot/pull/47389.

Out of curiosity, can you check if this can be done with MP3 as well?

Okiii I will look

ResourceImporterOggVorbis does not appear to be available outside of the editor (tools build), this will not work in exported projects.
If that is intended, you should wrap the additions in #ifdef TOOLS_ENABLED.

Okiiii

It would be a bit misleading if we only had this available in editor builds
because of a tools preprocessor check imo. I had forgotten about the
importer being conditionally compiled. I think the right move is probably
to do what calinou suggested.
On Fri, Nov 11, 2022 at 2:57 PM Oğuzhan Eroğlu @.***>
wrote:

Out of curiosity, can you check if this can be done with MP3 as well?
Okiii I will look
ResourceImporterOggVorbis does not appear to be available outside of the
editor (tools build), this will not work in exported projects.
If that is intended, you should wrap the additions in #ifdef TOOLS_ENABLED
.
Okiiii
—
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/pull/68540#issuecomment-1312250460,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOY2657LQJ5AA6E4QVCAJTWH3FL7ANCNFSM6AAAAAAR54KNBE
.
You are receiving this because your review was requested.Message ID:
@.***>

@rohanrhu  the PR broke. Are you going to update it?
I encountered this issue today and it would be nice to have it resolved. (having such function for WAV would be nice too, because loading them is not possible either (unless something changed))

@rohanrhu the PR broke. Are you going to update it? I encountered this issue today and it would be nice to have it resolved. (having such function for WAV would be nice too, because loading them is not possible either (unless something changed))

Sureee I will loooook

Any progress on this? I desperately need that method :(

4.0 is in feature freeze, and this PR still needs rebasing (something wrong happened during rebase, which is why the diff appears to be soo large).

Closing as this can't be salvaged in the current form.

Will this ever make it to Godot 4? :(

Will this ever make it to Godot 4? :(

It needs to be salvaged by a contributor, but there is nobody with the knowledge to do so currently available.

Remaking this does not really require any knowledge, you just need to dig through 800+ commits and find the one added by this PR xd

Oh that's easy :3 /me grabs my tea.

Superseded by #78084.


Update major versions of Actions in README and workflows

Update the README to use the latest major versions of actions/checkout and the Actions in this repo.  Also update our workflows to use the latest major versions of various first-party Actions.
Merge / deployment checklist

[x] Confirm this change is backwards compatible with existing workflows.
[x] Confirm the readme has been updated if necessary.
[x] Confirm the changelog has been updated if necessary.

Thank you for the change!
A question just popped up in my mind.  Do we want these documentation changes in the v1 branch as well?  I can see arguments both ways...

Thank you for the change!
@henrymercer A question just popped up in my mind. Do we want these documentation changes in the v1 branch as well? I can see arguments both ways...

Good question.  For now I don’t think I see a good enough reason for the branches to diverge.  But very happy to reconsider.


Pull missing data

We are missing some critical data. Read more about what we are missing in #9.
This PR is supposed to do the following:

Find all GW sites with data for pcode = 72019 in either the UV or DV service.
When DV mean is not available, pull UV instead and average to a DV.
Don't bother for sites that don't have at least 3 years of data (#11)

This is MOSTLY working. I.e. we are successfully pulling and averaging UVs into DVs BUT I think there is something wrong in this logic still. I think something is off with the combine step and the data is being pulled just fine. How do I know? Keep reading ...
Did these changes fix things? Almost!
library(scipiper)
library(tidyverse)
library(sf)

proj_str <- scmake("proj_str")
usa_sf <- st_as_sf(maps::map('usa', fill = TRUE, plot = FALSE)) %>% st_transform(proj_str)
state_sf <- st_as_sf(maps::map('state', fill = TRUE, plot = FALSE)) %>% st_transform(proj_str)
site_info <- readRDS("0_historic/out/historic_gw_site_info.rds")

Let's look at the resulting data from pulling DV means & also UV but summarizing into DV means. This can be done by inspecting what sites are still included after pulling and saving all the UV and DV data into two CSVs. Then, I put them both on a plot where sites that used the DV service are salmon colored and sites that summarized data from the UV service into daily means are blue.
# UV ALONE
pulled_uv_data <- read_csv("0_historic/out/historic_gw_data_uv.csv")
sites_to_map_uv <- site_info %>% filter(site_no %in% unique(pulled_uv_data$site_no))

# DV ALONE
pulled_dv_data <- read_csv("0_historic/out/historic_gw_data_dv.csv")
sites_to_map_dv <- site_info %>% filter(site_no %in% unique(pulled_dv_data$site_no))

ggplot(usa_sf) +
  geom_sf(color = NA) +
  geom_sf(data = state_sf, color = "white") +
  geom_sf(data = st_transform(st_as_sf(sites_to_map_dv, coords = c("dec_long_va", "dec_lat_va"), crs = "+proj=longlat +datum=WGS84"), proj_str), color = "salmon") +
  geom_sf(data = st_transform(st_as_sf(sites_to_map_uv, coords = c("dec_long_va", "dec_lat_va"), crs = "+proj=longlat +datum=WGS84"), proj_str), color = "blue") +
  coord_sf() +
  theme_void()

Now, let's look at what sites we have after these two datasets have been combined into one massive daily groundwater CSV. This is where I see holes in the data and they appear to be exactly the sites that used UV to derive daily values.
# Now the combined data
combined_data <- read_csv("0_historic/out/historic_gw_data.csv")
sites_to_map_combined <- site_info %>% filter(site_no %in% unique(combined_data$site_no))

ggplot(usa_sf) +
  geom_sf(color = NA) +
  geom_sf(data = state_sf, color = "white") +
  geom_sf(data = st_transform(st_as_sf(sites_to_map_combined, coords = c("dec_long_va", "dec_lat_va"), crs = "+proj=longlat +datum=WGS84"), proj_str)) +
  coord_sf() +
  theme_void()

Now to figure out why that combine isn't working ...

After fixing the combine issue (it was a totally dumb mistake) ... we now have daily historic data (before the filtering of min years) that looks like this 👏
library(scipiper)
library(tidyverse)
library(sf)

proj_str <- scmake("proj_str")
usa_sf <- st_as_sf(maps::map('usa', fill = TRUE, plot = FALSE)) %>% st_transform(proj_str)
state_sf <- st_as_sf(maps::map('state', fill = TRUE, plot = FALSE)) %>% st_transform(proj_str)
site_info <- readRDS("0_historic/out/historic_gw_site_info.rds")
combined_data <- read_csv("0_historic/out/historic_gw_data.csv")
sites_to_map_combined <- site_info %>% filter(site_no %in% unique(combined_data$site_no))

ggplot(usa_sf) +
  geom_sf(color = NA) +
  geom_sf(data = state_sf, color = "white") +
  geom_sf(data = st_transform(st_as_sf(sites_to_map_combined, coords = c("dec_long_va", "dec_lat_va"), crs = "+proj=longlat +datum=WGS84"), proj_str)) +
  coord_sf() +
  theme_void()

Merging this but acknowledging the following shortcomings:

Still need to figure out what is happening in Kansas (I think there should be more sites than that)
Add a special thing for FL because they don't report GW using pcode == 72019
Adapt the fetching functions used in 1_fetch to follow similar patterns for manually deriving DV from UV values when DV mean is not available.


distribute desktop app

When we ./gradlew desktop:app:assembleDist, it will generate:

desktop/app/build/distributions/app-1.0-SNAPSHOT.tar
desktop/app/build/distributions/app-1.0-SNAPSHOT.zip

Extracting these, and running them, we do not see a .db file in its directory.

https://docs.gradle.org/current/userguide/java_library_distribution_plugin.html
seems like we already have access to this

https://docs.gradle.org/current/userguide/application_plugin.html#sec:the_distribution

Because we build this in GHA ubuntu-latest, it will crash on other OS:

Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing.

https://stackoverflow.com/a/70150484

Example releasing on:
- windows-latest
- macos-latest
- ubuntu-latest
https://github.com/JFormDesigner/markdown-writer-fx/blob/62bab275f8b32ced1aae80b64ff3389c7c4f5e8c/.github/workflows/release.yml#L13

Does https://github.com/semantic-release/semantic-release support pushing assets to the same tag from multiple jobs?

https://badass-jlink-plugin.beryx.org/releases/latest/


GSOC: Complete implementation of time and io module.

PROJECT INTRODUCTION
VOC currently lacks implementation of time and io module, for which CPython heavily depends on C Api’s. I think implementing these low-level modules is a crucial step in further expansion of voc functionality.
The success includes 100% implementation of time and 80% of io module.
PRE-GSOC INVOLVEMENTS
Here is a list of my PRs made so far (All merged) : -

#401: fix issue list comprehensions causes runtime crash
#400: fix issue#362 Setting instance attributes
#391: Implements some methods for dict
#379: Fix AttributeError for complex.real and complex.image
#371: Adds some method implementation for Complex type

DESIGN SPECIFICATIONS
TIME:
The time module have 26 functions to implement, which I have mainly classified in two groups - Easy (less likely to present problem) and Complex (more research required).
Complex (12 functions):-

time.daylight, time.altzone, etc. depend on DST timezone and quoting from python docs - "DST rules are magic (determined by local law) and can change from year to year. The C library has a table containing the local rules (often it is read from a system file for flexibility) and is the only source of True Wisdom in this respect."
So I need to find similar API in JAVA. Though I know this that Java has support for DST as       it is given in oracle docs. I think TimeZone Api, but not sure.

time.tzset is only available in unix, and resets the time-zone to the one specified in environment variable "TZ".

Some of the new methods added in Python3.3 specifically for unix like time.clock_getres(clk_id), time.clock_gettime(clk_id), etc. can return time for specific clockId.

CLOCK_HIGHRES, CLOCK_MONOTONIC_RAW etc. are hardware specific clock times, like for Solaris OS and Linux 2.6.28 and later respectively. Need to dig deeper for their Java Api’s.

Easy:-

Rest all the functions seems easy to implement.

IO:
This module is a big one and will consume major part of my gsoc time. The io in python is divided into three types:-

Text I/O
Binary I/O
Raw I/O

First I will implement TextIO. It requires minimum base implementation of IOBase, TextIOBase, RawIOBase, BufferedIOBase, TextIOWrapper, BytesIO and StringIO.

IOBase is mainly an abstract class and mainly have close(), closed, flush(), fileno(), isatty(), flush(), readable(), seek(), seekable, tell(), truncate(), writable(), writelines() raising UnSupportedOperation. Only methods implemented are readline() and readlines().

RawIOBase implements read() and readall(). It returns unsupported for readinto() and write(). TextIO in python is not thread safe. Since its implementation is usually for low level sequential bytes, java.nio.ByteBuffer would be better suited than streams and it is also non-blocking.

BufferedIOBase implements read() and readinto() of IOBase and adds a new abstract method - detach().

TextIOBase uses BufferedIOBase as underlying buffer and adds implementation to some functions of IOBase like read, readinto, detach, readline, seek, tell, write and add new ones like encoding, newlines. But mainly it is still a abstract class.

TextIOWrapper inherits from TextIOBase. It provides implementation for all IOBase abstract methods and adds one new line_buffering.

BytesIO inherits from BufferedIOBase and implement its methods. Apart from that it introduces three new methods -> getbuffer, getvalue, read1. The buffer here is nothing but byteArray.

StringIO is mainly a entry module for TextIO and inherits from TextIOWrapper. It’s just a wrapper on TextIOWrapper with just one method to implement getvalue and uses BytesIO as underlying in memory buffer.

Next I will proceed to the implementation of Binary I/O. It provides BytesIO(already implemented), BufferedReader, BufferedWriter, BufferedRandom, BufferedRWPair.

BufferedIOMixin is a mixin implementation of BufferedIOBase with an underlying raw stream. It is helper class for BufferedReader and Writer.

BufferedReader inherits from BufferedIOMixin. In addition to methods of BufferedIOBase it adds implementation for peak(size), read([size]), read1(size).

BufferedWriter inherits from BufferedIOMixin. In addition to methods of BufferedIOBase it adds implementation for flush(), write(b).

BufferedRWPair is just a wrapper for both reader and writer and implements all method of BufferedIOBase except detach.

BufferedRandom inherits from both BufferedReader and BufferedWriter and further supports seek() and tell(),

For implementation details of io module I will be following CPython’s _pyio.py module and of course python docs.
TIMELINE
May 4-May 30 (Community Bonding Period)

Participate in community discussions on Gitter, and other platforms
Delve into research of complex functions of time and io module.
Since I am already familiar with most of codebase, I will implement some functions of ByteArray which may be required for io module.

May 30-June 2 (Week 1)

Implement time.struct_time (tuple), as it will be holder for time value sequence returned by gmtime(), localtime(), etc.
Implement gmtime(), localtime(), asctime()
Implement, ctime(), mktime()

June 5-9 (Week 2)

Implement daylight(), altzone() [DST]
timezone, tzname

June 12-16 (Week 3)

Implement, strftime (will take time, as convert time tuple into formatted string)
Implement strptime (inverse of above)

June 19-23 (Week 4)

Implement clock_getres(clk_id), clock_gettime(clk_id), clock_setres(clk_id)
Implement perf_counter, process_time.
Hardware specific [Either can be done or not] -> CLOCK_HIGHRES, CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_PROCESS_CPUTIME_ID, CLOCK_REALTIME, CLOCK_THREAD_CPUTIME_ID

June 26-30 (Week 5)

Implement IOBase methods.
Implement RawIOBase and BufferedIOBase.

Phase 1 Evaluation due June 30
July 3-7 (Week 6)

Implement TextIOBase. (Will not take much time)
Start implementing TextIOWrapper. Functions implementing this week are, init, encoding, errors, line_buffering, buffer, seekable, readable, writable, flush, close, closed.

July 10-14 (Week 7)

Continue with TextIOWrapper. Rest of the functions will be implemented this week-> name, isatty, write, tell, truncate, detach, seek, read, readlines, new_lines.

July 17-21 (Week 8)

Implement BytesIO.
Functions are init, getvalue, getbuffer, close, read, read1, write, seek, truncate, readable, writeable, seekable.

July 24-28 (Week 9)

Finish StringIO by implementing -> init, getvalue, repr, encoding, detach.
Test and document TextIO.

Phase 2 Evaluation due July 28
July 31-August 4 (Week 10)

Implement BufferedIOMixin’s functions seek, tell, truncate, flush, close, detach, closed, isatty, repr, fileno.
Implement BufferedReader functions as many as possible -> init, readable, read, peek, read1, tell, seek.

August 7-11 (Week 11)

Complete BufferedReader implementation of the functions left.
Implement BufferedWriter -> init, writeable, write, truncate, flush, tell, seek

August 14-18 (Week 12)

Implement BufferedRWPair  and BufferedRandom.

August 21-29 (Final Week)

Write the pending docs or test if any.
Submit final work and mentor evaluation.

Wishlist: If work gets completed before time, also desired to be taken up post GSoC.

Implement FileIO.

Looking forward for feedbacks.

This is a fairly good breakdown of the work you're going to tackle from a Python perspective; however, you've given very little indication how this maps onto the underlying Java APIs. It's difficult to have confidence in your time estimates if you haven't given details of how you arrived at them. For example, if it turns out that Java's IO model (which is fairly complex) doesn't map well to Python's API, then saying you're going to finish X features in a week isn't especially meaningful.

@freakboy3742 Thanks for the feedback.
Yes, java.io is complex enough to be incorporated into python io. Though Java has alternate IO Api's java.nio which have support for bytes and byteArrays like python. It has been used in Jython3. I have gone thru that source and various parts of that code can be reused here.
Also, should I also add various snippets of code, if it's required. Thanks!!

Before you get too enthused about java.nio, you might want to check the support on Android. Android doesn't have a full nio implementation.

@freakboy3742 I will be mainly using java.nio.ByteBuffer and sometimes java.nio.CharBuffer or IntBuffer, and their implementation exists in Android.
https://developer.android.com/reference/java/nio/package-summary.html

@freakboy3742 Hi, I have updated the proposal with my info, as well as with the concerns raised by you. Could you please give a quick feedback about it (means any updates or any additions or deletions to be made, timeline concerns), since the date of submission is getting closer.
Thanks in Advance.

Unfortunately, this proposal wasn't accepted.


refactor(reactivity): extract isRef to shared

After the merge of #7306, I noticed that isRef is redeclared in shared because shared can't have dependencies (didn't thought about that during the reviewing, sorry!). However, reactivity has shared as a dependency.
I think it makes more sense to have a single implementation in shared (and re-export from reactivity) for better tree-shaking and maintainability

The core logic of isRef should live in @vue/reactivity. The duplication is ok.


fix for env variables in pre-alpha

This is the fix for #354

Is this the right fix? I don't think that the node should be replacing "-" with "_" when fetching secrets.
Say someone doesn't know about this rule, has deployed with Docker and in their config.json there is a security scheme that contains a "-", e.g. "finage-securityscheme". The node will then try to find a secret that looks like "finage_securityscheme" which won't exist (?)
I would say it should rather be validated in the validator. The deployer should throw an error if they try to deploy any secrets with a "-".  Something we output ourselves that is more readable than the AWS error.

Noted, I've changed to it showing an error message instead, so you can have a look.


Move velero to the 'mig-velero' namespace

To avoid clashing with existing velero installs, the Controller should work with velero installed in the 'mig-velero' namespace instead of 'velero' -- longer term, we expect to make this configurable, but it will be safer for now to separate migration backup/restore operations from existing velero uses in src or destination clusters.
Look here for possible things that need to change:

VeleroNamespace const defined

./pkg/apis/migration/v1alpha1/migplan_types.go

hard-coded ref to namespace (should probably change to use the const)

./pkg/apis/migration/v1alpha1/migstorage_types.go

namespace for local velero install when not using the operator

./hack/deploy/deploy_velero.sh
./hack/deploy/manifests/10-velero-crds.yaml
./hack/deploy/manifests/20-velero-deployment.yaml
./hack/deploy/manifests/30-restic-daemonset.yam
./hack/deploy/manifests/60-cloud-credentials.yaml

misc other references to the namespace (including in comments)

./config/samples/mig-storage-creds.yaml

The changes to pkg/apis are necessary for things to work with the already-installed velero in mig-velero. The hack and config locations should be changed for consistency -- in a dev environment, the scripts in hack are still used for velero setup.

Removing this from beta-blocker
Aligned to ga-blocker so we can re-evaluate, at this point in time we are not sure if this issue will be worked.
Velero may be ok in 'mig' namespace, expect we will learn more over testing cycle for GA


Support observability_config for Alloydb

Hi
seems that this option is missing
As per doc:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/alloydb_instance#observability_config
would be great to have a way to configure the parameters for the primary (and in a different var for the secondary) instance:
observability_config:

enabled
preserve_comments
track_wait_events
track_wait_event_types
max_query_string_length
record_application_tags
query_plans_per_minute
track_active_queries

Unfortunately I just realized this is still in beta, we will integrate it as soon as it gets promoted to the GA provider


docs: plugins and extension

Document the implementation of the mechanism to support different plugins and extensions.
Stil Needed: details about adding custom configuration code to instance.

Closed via https://github.com/inveniosoftware/docs-invenio-rdm/pull/13


TrackResource is null when ad is running

When an ad starts playing, the TrackResource in SpotifyLocalAPI.cs line 98 is null, thus crashing the application.
Also, in the previous version, there was the IsAdRunning() method. There's something similar in this version? or how can I check if there's an ad running?
Thanks!

Thanks!
I will propably fix it in the next days.
Regarding AD-Detection:
It was using the PlayEnabled, PrevEnabled and NextEnabled properties. While it worked most of the time, there were some issues: Sometimes you start up spotify and end up with an empty queue. This empty queue made all mentioned properties false and the API would detect it as an AD. Thats why I removed it. But, since you mentioned the empty TrackResource, maybe we could rely on that to detect it?

I was tying to detect it with the Tracktype (When playing an ad it will return the string "ad")
status.Track.TrackType
But no success yet

Hi,
Indeed the app crashes when an ad is playing.
The TrackType in the Track object will return the string "ad" - when an add is playing

This is fixed in d1f1923738ea48e9e74549fccb083e6037d03682
Also, you can now check if a Track is an Advert by running:
track.IsAd()

Great work Johnny will run some tests on this :facepunch:


Implement support for Subscriptions

Marking this as a non-pre-release issue. As I'm not too familiar with Subscriptions, I'd like to gather requirements first from others


Couldn't figure out how it runs in linux

does it run in wine in linux
how to find out its running in background
The script run completed but got no message
can you review it please

It is coded it that manner that it does not show any message when victim
runs it.
Evil file generated using technowlogger has the ability to become self
persistence by detecting OS and executing the persistence method
accordingly.
And yes it run's in wine in Linux,
as if you want to make keylogger for windows os from linux, then you have
to use wine as well as python of windows
Please run "installer_linux.sh" to configure it automatically
if you want to find the process id then it is too simple bro,
type "ps" in terminal and find process with the name of keylogger which you
named while creating keylogger.
How to remove Keylogger in Linux:
Open Autostart file with any text editor,
Autostart File Path: ~/.config/autostart/xinput.desktop
Remove these 5 lines:
[Desktop Entry]
Type=Application
X-GNOME-Autostart-enabled=true
Name=Xinput
Exec="destination_file_name"
Destination Path, where Keylogger is stored : ~/.config/xnput
Hope, this is helpful to you.
Please visit : Website https://www.technowlogy.tk
to know more about ethical hacking and free stuff
On Mon, Oct 28, 2019 at 9:06 AM Thomas Kunwar<EMAIL_ADDRESS>wrote:

does it run in wine in linux
how to find out its running in background
The script run completed but got no message
can you review it please
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Technowlogy-Pushpender/technowlogger/issues/2?email_source=notifications&email_token=ANORYISDWIYM4KPLJ66MATTQQZM3HA5CNFSM4JFVBZWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUU7CLQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANORYIQFZRL7K6B2BKONOE3QQZM3HANCNFSM4JFVBZWA
.

Hope your issue is sort out, if you face any other issue then let me know


fix(core): epoch key range calculation

Pull request checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[ ] Build (yarn build) was run locally and any changes were pushed
[ ] Lint (yarn lint --check) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Closes #262
What is the new behavior?
Does this introduce a breaking change?

[ ] Yes
[ ] No

Other information

Sorta, I think we should start testing with larger trees so these bugs are automatically caught


Actively change suggestion list result

Category

[X] Question
[ ] Bug
[ ] Enhancement

Expected or Desired Behavior
Hi All, I am working on a project that require to have a people picker contains all colleagues in my organization(>1000 ppl), I use the GraphHttpClient to get all user(v1.0/users) at first but it only return 100 record max.
Therefore, I tried to work on "onResolveSuggestions" attribute, when user input, then calls another function to add filter on Graph API call. I can see the new result in console.log, however, the suggestion list did not change, but when I try to delete all text in the picker and click elsewhere, then the suggestion list shown is the filtered result of last input.
My Question is: Is peoplepicker able to refresh the suggestion list after a new query return? or any suggestion to get all users in the beginning?
Thx

Hey @fanch2 did you ever got a resolution to this?
I'll close this issue as closed as there has been no activity here for a while. If you still need help, I encourage you to open a new issue and maybe we can all look at it with a fresh set of eyes.


Revert "Remove device mapping from shareWithAll memory"

This is not a request for review. This PR is created only to trigger a Jenkins build for further investigation.

Closing this PR as discussed with @ssahasra.


Entity Categories

Fixes #8.
I put the one that I think 100% are diagnostic:

I feel like the totals could also be diagnostic as well, but not sure.

Maybe all sensors except Capture should be diagnostics? Thats what I think when I read https://developers.home-assistant.io/blog/2021/10/26/config-entity What do you think?

Maybe all sensors except Capture should be diagnostics? Thats what I think when I read https://developers.home-assistant.io/blog/2021/10/26/config-entity What do you think?

Sure, I can do that.

Thanks!


Initial methodology details and structure

Description
Please include a summary of the change and which feature is added or issue is fixed. Please also include
relevant motivation and context. List any dependencies that are required for this change.
NOTE: If the PR is still a work in progress, and so is not ready to be merged, but needs to be pushed to
facilitate review, then add [WIP] in the title. Optionally add the labels work-in-progress and do-not-merge.
GitHub Issue
Please, if your PR is related with a GitHub issue, link here:

GitHub Issue Link

Checklist
Please review this checklist before to open the PR to improve the review process:

[x] The commit messages follow our guidelines
[x] I have performed a self-review of my own changes
[x] I have made corresponding changes to the documentation
[x] I have checked the documentation and corrected any misspellings

Other Information
Please add other information needed to facilitate the review process to the reviewers.

LGTM


Batch Delete does not work when query is built with FromSql

I am using FromSQL from Microsoft.EntityFrameworkCore.RelationalQueryableExtensions to generate an EF query.  When I do this, batch delete throws an error.  As long as I do not use FromSQL, batch delete works fine.  This is with Z.EntityFramework.Plus.EFCore 1.7.17.
`
using (var e = db.GetEntities())
{
var originalRecords = e.TestDatas.ToList();
                var recordToDelete = originalRecords.First();

                var param = new SqlParameter("@param1", recordToDelete.TestDataId);
                var query =
                e.TestDatas.FromSql($"select d.* from [ESUtilsTest].[TestData] d where d.[TestDataId] = @param1"
                , param);

                // this line correctly returns the result from the query
                var result = query.AsQueryable().ToList();

                // batch delete does not work with a query built with FromSql
                query.AsQueryable().Delete();

                // as long as I do not use FromSql, this works
                e.TestDatas.Where(d => d.TestDataId == recordToDelete.TestDataId)
                    .Delete();

                var modifiedRecords = e.TestDatas.ToList();

                AssertES.False(modifiedRecords.Any(r => r.TestDataId == recordToDelete.TestDataId)
                    , "Did not delete record");

            }

`
Stack trace from error:
No mapping exists from object type System.Object[] to a known managed provider native type.
at System.Data.SqlClient.MetaType.GetMetaTypeFromValue(Object value, Boolean inferLen, Boolean streamAllowed)
at System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc)
at System.Data.SqlClient.SqlCommand.BuildParamList(TdsParser parser, SqlParameterCollection parameters)
at System.Data.SqlClient.SqlCommand.BuildExecuteSql(CommandBehavior behavior, String commandText, SqlParameterCollection parameters, _SqlRPC& rpc)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at Z.EntityFramework.Plus.BatchDelete.Execute[T](IQueryable`1 query)

Hello @Coder3333 ,
The Batch Delete feature requires a LINQ Query. We cannot support FromSql as we are not certain of the Entity Type, of the column returned by the query, etc...
Unfortunately, there is no plan currently to support something like this.
Best Regards,
Jonathan

Hello @Coder3333 ,
This issue will be closed since it has been answered.
Feel free to reopen it if you feel otherwise.
Best Regards,
Jonathan


refactor how plugins call the build system when using the CLI

motivation: consolidate use of build operation construction which is important for cancellation support
changes:

use the general purpose function to create a build operation
small refactoring of how build plan is extracted after the build is complete

@abertelrud this is a breakout PR for a cleanup required by https://github.com/apple/swift-package-manager/pull/4173

@swift-ci please smoke test


Move method call out of loop.

I propose this change because the implementations of getHidden() (which was introduced in #7685) could be rather complicated, so we should not call it inside the loop.
Potential limitation: the method now gets called even if getArrayableRelations() returns an empty array.

Thanks

:+1:


Toggle stop playback at end of time selection causes Reaper stalling on some VSTs

When using "Xenakios/SWS: Toggle stop playback at end of time selection" reaper will freeze for 20-30sec before being functional again, issue replicable specifically with EW Play.
Issue does not happen on regular Reaper 'Stop' function.
The regular Reaper 'Stop' feature allows VST tail and reverb to still be calculated and played, and may be related to the issue.

Went to the bottom here in the code. It is a Reaper issue. Not SWS issue.


Does not work with SvelteKit 1.0.0-next.216

The error occurs in the browser console.
AccountHeader.svelte? [sm]:13 Uncaught (in promise) TypeError: Logotype is not a constructor
    at create_fragment (AccountHeader.svelte? [sm]:13)
    at init (index.mjs:1824)
    at new AccountHeader (AccountHeader.svelte? [sm]:36)
    at createProxiedComponent (svelte-hooks.js:266)
    at new ProxyComponent (proxy.js:239)
    at new Proxy<AccountHeader> (proxy.js:346)
    at create_fragment (index.svelte? [sm]:2)
    at init (index.mjs:1824)
    at new Account (index.svelte? [sm]:2)
    at createProxiedComponent (svelte-hooks.js:266)

I upgraded SvelteKit version from next.160, which worked without issues.

still not working, updated to latest -  sveltekit 1.0.0-next.326


feat: Enhance add fragment dialog with warning message

Feat for #1684.

Enhances the AddFragment.fragment.xml with a warning message.
Checks for active commands when opening the dialog.

Closed in favor of #1691.


Rename IntervalEventType to IntervalOpType

Rename IntervalEventType to IntervalOpType and unify with op strings.

seems sane to me -- though, is this value persisted anywhere? Would changing from an integer to a string break backcompat or cause snapshot sizes to increase

we already use the string forms in the persisted format (see the keys in the ops handler--that's where they're used).
this seems fine to me, though it'd be good to leave a warning that the types are used in persisted formats as well as eventing.


Error while generating the odata client

Describe the bug
While following this documentation: https://api.sap.com/api/SPA_Workflow_Inbox/cloud-sdk/JavaScript
Getting the below error, service-mapping.json error is fine, I can pass the path while calling the execute method, but I am note sure about the other error, related to typings. But note, it is working for me despite the errors. Just wanted to report and see if this will cause any issue.

To Reproduce
Following these steps:
same as in this documentation:
Used Versions:

node version via node -v v16.18.0
npm version via npm -v 9.1.2
SAP Cloud SDK version you used as dependency   "@sap-cloud-sdk/generator": "^2.14.0"

I solved using: npm install --save @types/triple-beam, I guess somewhere dependencies issue? Or am I doing something wrong?

Hi @mahesh0431
thanks for reporting. I see two issues here.
VALUE_IS_UNDEFINED
We know that our use of that constant is confusing and we will change this in version 3. Here is the PR that was already merged on the main branch and will be part of the version 3 release.
For the time being (until v3 is out), have you checked our documentation for how to deal with VALUE_IS_UNDEFINED?
Typescript compile errors
This seems to be a transitive dependency of the winston logger library we're using. You discovered an issue here, we have not been aware of this. Thanks for reporting.
Manually installing the types as you suggested is a good workaround for the time being, but we'll look into how to fix this properly.
Kind regards

Awesome!! It looks like the error is coming from today only, yesterday it was fine. About the "VALUE_IS_UNDEFINED
", yes I fixed using service mapping config. But the documentation is not so great I would say, as I spent some time to figure out what I need to pass.
One more thing, the error related to VALUE_IS_UNDEFINED is not giving any issues when I used the generated client as I can still pass the path in the code manually ("setCustomServicePath") and it works, I hope this is expected.

Hi @mahesh0431
I just tried to reproduce the typescript compiler issue again but now it seems to be working for me. I could reproduce it before.
Note:

I removed the package lock json to force npm to get the latest allowed dependency versions as of now
I did not apply the workaround to manually add @types/triple-beam to my dependencies

Can you test if it works for you again given above constraints?
Thanks,
Florian

I'll close this issue, as it worked.


Small cleanup to tracker initialization.

Remove recover related code.
Clean startup, no need to consider previously connected nodes.

cc @rongou


Apply a background image/blur to a video

Checklist

[x ] I've read the README
[x ] I've searched for existing GitHub issues

Hi all,
I have a question. Is it possible to make blurred video background (or image) then save a new video? Something like that:

Thank you for help.

MetalPetal has everything you need to render that effect. However, you'll have to find a way to segment the main subject from the background. One option here is to use VNGeneratePersonSegmentationRequest.

MetalPetal has everything you need to render that effect. However, you'll have to find a way to segment the main subject from the background. One option here is to use VNGeneratePersonSegmentationRequest.

Hi @YuAo Can I pay you to help me resolve this task?


Fix for migration error in timeseries resource type

@jbradberry Can you review this? The failed check shown here is the 'sax' parsing error.

@pkdash +1


Uncaught TypeError: Cannot read property 'add-to-env' of undefined

[Enter steps to reproduce below:]

...
...

Atom Version: 1.6.0
System: Mac OS X 10.11.3
Thrown From: seeing-is-believing package, v1.7.0
Stack Trace
Uncaught TypeError: Cannot read property 'add-to-env' of undefined
At /Users/avinashprassad/.atom/packages/seeing-is-believing/lib/seeing-is-believing.coffee:89

TypeError: Cannot read property 'add-to-env' of undefined
    at Object.module.exports.SeeingIsBelieving.getVars (/Users/avinashprassad/.atom/packages/seeing-is-believing/lib/seeing-is-believing.coffee:89:5)
    at Object.module.exports.SeeingIsBelieving.annotateDocument (/Users/avinashprassad/.atom/packages/seeing-is-believing/lib/seeing-is-believing.coffee:139:17)
    at atom-workspace.subscriptions.add.atom.commands.add.seeing-is-believing:annotate-document (/Users/avinashprassad/.atom/packages/seeing-is-believing/lib/seeing-is-believing.coffee:28:58)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:570:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:378:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands
 13x -6:06.9.0 core:move-right (atom-text-editor.editor.is-focused)
  2x -6:03.9.0 core:backspace (atom-text-editor.editor.is-focused)
 18x -5:59.6.0 core:move-left (atom-text-editor.editor.is-focused)
     -5:56.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -5:48.1.0 core:paste (atom-text-editor.editor.is-focused)
  8x -5:45 core:save (atom-text-editor.editor.is-focused)
     -5:39 core:delete (atom-text-editor.editor.is-focused)
  2x -5:26.6.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -5:25.9.0 core:move-right (atom-text-editor.editor.is-focused)
     -5:13.1.0 seeing-is-believing:annotate-magic-comments (atom-text-editor.editor.is-focused)
     -3:39 editor:newline (atom-text-editor.editor.is-focused)
     -3:37.6.0 core:paste (atom-text-editor.editor.is-focused)
  4x -3:35.7.0 core:save (atom-text-editor.editor.is-focused)
     -3:20.9.0 seeing-is-believing:annotate-document (atom-text-editor.editor.is-focused)
     -0:07.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:02.0 seeing-is-believing:annotate-document (atom-text-editor.editor.is-focused)

Config
{
  "core": {}
}

Installed Packages
# User
autocomplete-python, v1.7.2
autocomplete-ruby, v0.1.0
highlight-selected, v0.11.2
linter, v1.11.4
linter-ruby, v1.2.2
minimap, v4.21.0
minimap-highlight-selected, v4.4.0
pigments, v0.24.5
seeing-is-believing, v1.7.0

# Dev
No dev packages

this is my config file
"*":
core: {}
editor:
fontSize: 17
invisibles: {}
"exception-reporting":
userId: "d78c1c82-0729-5176-46ac-7c51a43fef45"
minimap:
plugins:
"highlight-selected": true
"highlight-selectedDecorationsZIndex": 0
welcome:
showOnStartup: false
"seeing-is-believing":
"ruby-command": "/Users/avinashprassad/.rvm/bin/sib_ruby"
"add-to-env":
SHELL: "/bin/bash"

I still have this issue with this


Move kubernetes APIs to the common dir

These can now be used by EM as well.
Create interfaces for working with HPO and EM in analyzer as part of loop dir
Move RunExperiment code to loop dir.
Signed-off-by: Dinakar Guniguntala<EMAIL_ADDRESS>

@bharathappali @chandrams Refactoring the analyzer code a little bit. Moving all kubernetes code to the common dir as this can be shared with EM as well. Lot of other minor changes. Will be merging this into mvp_demo


Creating shortcut for Sublime Merge

scoop update sublime-merge results in the following Move-Item error when creating a shortcut.
Updating` 'sublime-merge' (1065 -> 1070)
Uninstalling 'sublime-merge' (1065)
Removing shim for 'smerge'.
Unlinking ~\scoop\apps\sublime-merge\current
Installing 'sublime-merge' (1070) [64bit]
sublime_merge_build_1070_x64.zip (26.5 MB) [========================================================] 100%
Checking hash of sublime_merge_build_1070_x64.zip ... ok.
Extracting sublime_merge_build_1070_x64.zip ... done.
Linking ~\scoop\apps\sublime-merge\current => ~\scoop\apps\sublime-merge\1070
Creating shim for 'smerge'.
Creating shortcut for Sublime Merge (sublime_merge.exe)
Persisting Data
Move-Item : Cannot create a file when that file already exists.
At C:\Users\USSHMAH\scoop\apps\scoop\current\lib\install.ps1:1239 char:21
+                     Move-Item $source $target
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\USSHMA...ge\current\Data:DirectoryInfo) [Move-Item], IOE
   xception
    + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand

Cannot create a file when that file already exists.
'sublime-merge' (1070) was installed successfully!

It's not when creating shortcuts, but when persisting data.

Oops I guess the title of the issue needs to be changed.

This should be gone after #2897

Implemented


Failure duplicate mount point var/www/html

Bug description
Having a nextcloud image when trying to add second volume I get an error. I am trying to expose mounter external drive to the container but I get this error without further explanations.
Failure duplicate mount point: /var/www/html
Expected behavior
There is no error. Container is redeployed successfully and I am able to add second volume.
Portainer Logs
[i] mysqld already present, skipping creation
[i] MySQL directory already present, skipping creation
2022-03-30 17:53:55 0 [Note] /usr/bin/mysqld (server 10.6.4-MariaDB) starting as process 1 ...
2022-03-30 17:53:55 0 [Warning] You need to use --log-bin to make --binlog-format work.
2022-03-30 17:53:55 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-30 17:53:55 0 [Note] InnoDB: Number of pools: 1
2022-03-30 17:53:55 0 [Note] InnoDB: Using generic crc32 instructions
2022-03-30 17:53:55 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2022-03-30 17:53:55 0 [Note] InnoDB: Using Linux native AIO
2022-03-30 17:53:55 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2022-03-30 17:53:55 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-30 17:53:57 0 [Note] InnoDB: 128 rollback segments are active.
2022-03-30 17:53:57 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-30 17:53:57 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-30 17:53:57 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-03-30 17:53:57 0 [Note] InnoDB: 10.6.4 started; log sequence number 10283698; transaction id 11092
2022-03-30 17:53:57 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-03-30 17:53:57 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-30 17:53:57 0 [Note] Server socket created on IP: '<IP_ADDRESS>'.
2022-03-30 17:53:57 0 [Note] Server socket created on IP: '::'.
2022-03-30 17:53:57 0 [Warning] 'user' entry '@4d6b24bfffe6' ignored in --skip-name-resolve mode.
2022-03-30 17:53:58 0 [Warning] 'proxies_priv' entry '@% root@4d6b24bfffe6' ignored in --skip-name-resolve mode.
2022-03-30 17:53:58 0 [Note] /usr/bin/mysqld: ready for connections.
Version: '10.6.4-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
2022-03-30 17:54:00 0 [Note] InnoDB: Buffer pool(s) load completed at 220330 17:54:00

Steps to reproduce the issue:

Go to nextcloud container
Click on edit/redeploy
Scroll down to Volumes tab
Add second volume
Choose named volume or bind path
Click Submit
See error

Technical details:

Portainer version: 2.11.1
Docker version (managed by Portainer): no idea
Kubernetes version (managed by Portainer): no idea
Platform (windows/linux): linux/raspbian
Command used to start Portainer (docker run -p 9443:9443 portainer/portainer):
Browser: firefox
Use Case (delete as appropriate): Using Portainer at Home, Using Portainer in a Commercial setup: Using Portainer at Home
Have you reviewed our technical documentation and knowledge base? Kind of

Additional context
I am not sure how can I give you more information of the issues. Please give me more hints how to assisst you solving this problem.

I managed to resolve this. The issue resolves itself when editing container and the user deletes the default volume mappet to var/www/html and leave just the other volues. This is a bug and should be address, but for know this workaround works for me.

I have this same bug. I have a stack configured with nextcloud, and if I try to recreate the nextcloud container (just to update the image) without redeploying the entire stack, I get this error. I have to delete the old one, then redeploy the entire stack for it to work successfully.
I don't remotely understand what's going on though.

Same here.
I can reproduce this with any container from a stack with a named volume.
Only way is to redeploy the whole stack.
Any thoughts?
Issue is open since April 2022.

Same here. I can reproduce this with any container deployed from a stack with a named volume. Only way is to redeploy the whole stack.

Same thing here, I can only duplicate if I manually delete the volume mapping, then the new container will have the deleted volume mapping.
2.18.1 release still has the issue.

It may not be possible to operate in  “Container list”?
In the “Stack details” in the “Stacks”,Edit the docker compose file.The original "Volumes"(/var/www/html in the container) will not change, but the other files in the container will.


Establish a canonical caddy site/Caddyfile location

At the moment, Caddy docs don't recommend any particular location to store the site, leaving it up to the user's discretion. While this is fine for dev environments, for production sites a "canonical" location would be preferred, especially where Caddy is being run as a service.
I propose the following, where SITENAME is the name of the caddy site being served, and Caddyspec is a hypothetical file that gives Caddy a list of Caddyfiles to load:
/var/caddy-www/SITENAME # SITENAME root
/var/caddy-www/SITENAME/Caddyfile # Caddyfile for SITENAME
/var/caddy-www/Caddyspec # Caddyspec file containing the path /var/caddy-www/SITENAME/Caddyfile

for production sites a "canonical" location would be preferred

Can you explain why this is? The Caddyfile is intended to live by the site(s) it is serving, not in some system folder.

Alpine puts a global config to /etc/caddy/caddy.conf

Haven't heard back from @alfiepates in a couple months so I'm closing this for now.
I'm not sure I want the Caddy documentation to get into individual systems and recommended locations; in fact, the docs already say that the Caddyfile should live by the site you're serving -- this works very nicely in dev environments but I can see why you might want just "one" Caddyfile (you could use imports?) in production.
But maybe that discussion is not really a Caddy issue, more of a deployment/sysadmin question that belongs on the forum ("Production Use" category perhaps?) - feel free to continue this over there!


Defaults for top-level CRD's API specs

This small change will allow for the optional exclusion of the GlanceAPIInternal and GlanceAPIExternal fields in the top-level Glance CRD.  It simplifies the required Glance CR to deploy the basic service if the user is not interested in customizing the individual internal and external APIs.

Seems like a good idea to me. Thanks.