Trying to use SuggestedValues from GlobalList gives error TF201067 when loading WIT to TFS2017.3

Trying to use SuggestedValues from GlobalList gives error TF201067 when loading WIT to TFS2017.3
If I have the ListItem values for SuggestedValues under the Field definition in the WIT, it works.
However, when I move the same ListItem values under a GlobalList definition and try to use that GlobalList from the same Field definition, then WIT import fails and gives unrelated error message: "TF201067: You do not have permission to modify the work item type or field. You must have permission to modify work item types and fields in each team project where they are used. If you have the necessary permissions, your work item metadata cache may be out of date. Refresh any cached metadata and try the operation again."
Definitely, the error message is unrelated, because if I immediately move the ListItem values back to the SuggestedValues under the Field definition in the WIT, it works without issues.
It is important to be able to define the SuggestedValues as a GlobalList.
Microsoft Visual Studio Team Foundation Server
Version 15.117.27024.0
  <FIELD name="XYZ" refname="VMS.ADLM.XYZ" type="PlainText">
    <SUGGESTEDVALUES expanditems="true">
      <LISTITEM value="XA" />
      <LISTITEM value="XB" />
      <LISTITEM value="XC" />
      <LISTITEM value="XD" />
    </SUGGESTEDVALUES>
  </FIELD>

C:\Projects\1-VMS\Non-Production\ADLM\Dev\WorkItemTypes>ImportWIT2tfs-2017sb.bat ADLMDEV Requirement.xml'
Fri 03/02/2018  9:06:23.22
The work item type import has completed.
Fri 03/02/2018  9:06:31.12
  <FIELD name="XYZ" refname="VMS.ADLM.XYZ" type="PlainText">
    <SUGGESTEDVALUES expanditems="true">
      <GLOBALLIST name="VMS.ADLM.XYZvalues" />
    </SUGGESTEDVALUES>
  </FIELD>

C:\Projects\1-VMS\Non-Production\ADLM\Dev\WorkItemTypes>ImportWIT2tfs-2017sb.bat ADLMDEV Requirement.xml
Fri 03/02/2018  9:08:20.05
TF201067: You do not have permission to modify the work item type or field. You must have permission to modify work item types and fields in each team project where they are used. If you have the necessary permissions, your work item metadata cache may be out of date. Refresh any cached metadata and try the operation again.
Fri 03/02/2018  9:08:23.07

This may be better served by using the Rest Multi Value Extension in combination with these rest apis


TG.Transform

TG.transform().offset(x,y).rotate(degrees).zoom(level)

Added .flipH(true) and .flipV(true).
It thought also flip(true,false) but I think it's easier to understand using different functions


Create meta.json

closing pull request. reason: please submit meta.json from pr#801 and inscriptions.json from pr#800 together, as pull request for correct directory /collections/_phinking/
thank you


pse "AssertionError: Failed to parse __RequestVerificationToken"

PSE is failing with ""AssertionError: Failed to parse __RequestVerificationToken""
Linux ip-172-30-3-187 5.10.0-20-cloud-arm64 #1 SMP Debian 5.10.158-2 (2022-12-13) aarch64 GNU/Linux
(.venv) admin@ip-172-30-3-187:~/opower$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
(.venv) admin@ip-172-30-3-187:~/opower$ python -V
Python 3.9.2
(.venv) admin@ip-172-30-3-187:~/opower$ python src/demo.py --verbose --utility pse --username murasakijou
Password:
Traceback (most recent call last):
File "/home/admin/opower/src/demo.py", line 162, in
asyncio.run(_main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/admin/opower/src/demo.py", line 80, in _main
await opower.async_login()
File "/home/admin/opower/src/opower/opower.py", line 202, in async_login
self.access_token = await self.utility.async_login(
File "/home/admin/opower/src/opower/utilities/pse.py", line 96, in async_login
assert (
AssertionError: Failed to parse __RequestVerificationToken
I would post more logs if I knew how.  I did set
DEBUG_LOG_RESPONSE = True

Your exception confirms it's the 2nd login at https://github.com/tronikos/opower/blob/main/src/demo.py#L78-L80 that causes this.
Can you try adding the following code at the very beginning of async_login right after this line at https://github.com/tronikos/opower/blob/main/src/opower/utilities/pse.py#L86 ?
        session.cookie_jar.clear(
            lambda cookie: cookie["domain"] == "www.pse.com"
        )

I added this line in the code. Just pull the latest changes and try again.

I'll do that.  I was looking at the chrome console last night, trying to figure this out, and noticed that the verification token was already in the cookies. Wouldn't it be better (fewer round trips) to look for the request token in the cookies if its not in the html, and use that?  But I will try this.

It worked! It now shows consumption!
The "readResolution": "QUARTER_HOUR" if that makes a difference
And it's not showing the dollar costs. I'll open a other issue for that.
Thank you

thanks for fixing this @tronikos. apologies for not hopping onto it


https

Apologies if this has been covered somewhere already but I can't find anything in the docs, issues or even the Nitro code.
Is it possible yet to secure a local site via Nitro?

@RyanRoberts we have #10 to cover this, but it is not very clear as to "what" that means in the title. I'm going to update that tickets title and that will be the best place to keep track.

Thanks. I swear I searched for "https" 🤔


Avoid resetting databases for all environments, use Rails.env instead.

As discussed here are my changes that make it possible to run two engine (app) instances in parallel, ie. specs and a server.
In relation to https://github.com/pat/combustion/issues/82
Hope it can be merged as is, if not I can make changes accordingly.

I'm going to shift conversation about this from #82 over to here, so it's a bit more closely tied with any further code changes.
I want to summarise where this is all at to help clarify the situation. Currently: all databases listed in the internal Combustion app's database.yml are reset. With this PR: only non-standard databases plus the current database will be reset. Whichever of development, test and production aren't being used are left untouched.
The current behaviour was added by @artofhuman in #77 as part of allowing multiple databases and potentially running tests against each of them within a single test suite run - allowing different database adapters (PostgreSQL, MySQL, SQLite, etc) within a single context. I'm not sure how common this approach is (in my own gems that use Combustion, I instead use an environment variable to determine the database adapter - thus, running the suite for each adapter separately) - it feels like an edge case?
@wintersolutions from the points you've made in #82, I understand that you use the development environment for your internal Combustion app, as well as the test environment as per the standard approach. Using the development environment also feels like an edge case - this is not to say either of you are doing anything wrong, it's just that neither approach is (to my knowledge) how Combustion is regularly used.
So, where does this all leave us?
If I merge this PR, then we get a setup that works for @wintersolutions' approach, and maintains @artofhuman's as well (provided only non-standard environment names are used for additional adapters).
As for alternatives? I guess I'd lean towards a single database reset per run, rather than presuming all databases should be reset and should be required for a test suite… but that's removing existing functionality, and I'm not thrilled about that. It also breaks things for @artofhuman, which isn't nice.
I haven't thought of any other nice ways to handle this. So it may be that merging this and acknowledging the limitations of the approach is the best way to go… yes, it may not work if someone wants to use other environments (e.g. staging) treated as separate to test, but I feel the odds of such a situation are pretty miniscule.
… so, I think I've talked myself through understanding this PR, the broader context, and being happy to merge it. @artofhuman: would appreciate your input if you have the time, and @wintersolutions if any of this doesn't sound quite right, do let me know!

You expressed exactly my side of the argument about this PR. I'd be glad if @artofhuman is fine with the changes too and I'll welcome the merge if possible.

Going to keep the ball rolling and merge this in. @artofhuman: if you have thoughts at any point, feel free to chime in :)

Just released v0.9.0 which includes this PR :)

@pat thanks a lot for taking the time and releasing it!

yep, this is helpful to me too. I like to keep a console open in which I can play with stuff, including the stuff I've defined in the spec/internal, and keeping it open in a 'development' environment is good so I can run tests without it interfering. Glad to see it was already solved just before I needed it!


How should authentication through config.ini.php be used on Heroku?

I'm running rss-bridge on a heroku instance, but since I've change the list of available bridges, I had to do deployments through my git fork. Doing so, I cannot hard-code my user and pass inside the config file, as it would be accessible by everyone. So I thought about using heroku config vars (which you can set from command-line or dashboard) and read them at run-time.
Off I went with the following idea, in the config.ini.php
[authentication]
enable = true
; vars already defined in my heroku instance
username = "<?php getenv('AUTH_USER') ?>"
password = "<?php getenv('AUTH_PSW') ?>"

But it didn't work..  Also tried with $_ENV but same.
In the end, I managed to get authentication working through the .htaccess file, but I'm not big fan of this.
Is this method not supposed to work for Heroku instances?

Is this method not supposed to work for Heroku instances?

RSS-Bridge reads config.ini.php as plaintext file. It does not execute it.
Also it is supposed, that config.ini.php would have this in its first line.
; <?php exit; ?> DO NOT REMOVE THIS LINE

So, it won't allow to execute any php code below this line. Without this line, any user can query config.ini.php and he will have values for username and password.

In the end, I managed to get authentication working through the .htaccess file, but I'm not big fan of this.

That is good solution.
If you still need to read user and password from environment variables, you need to change this for example:
https://github.com/RSS-Bridge/rss-bridge/blob/76c38332ee877986f13bd64fc34b4228ee8fccec/lib/Authentication.php#L72-L82

I feel it's quite a pity that the config file cannot be used for setups like mine.
Would it make sense to change the auth logic in such a way so that the env vars are read if a certain value is set in the config file? Some like
config.ini.php
[authentication]
enable = true
from_env = true

And in Authentication.php

 	if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
 		if(Configuration::getConfig('authentication', 'from_env')
 			&& getenv('AUTH_PSW') === $_SERVER['PHP_AUTH_PW'] && getenv('AUTH_USER') === $_SERVER['PHP_AUTH_USER']) {
 			return true;
 		} else {
 			error_log('[RSS-Bridge] Failed authentication attempt from ' . $_SERVER['REMOTE_ADDR']);
 		}
 	}
 	return false;

From what I understand, doing something like this would allow using config.ini.php also in Heroku setups

Would it make sense to change the auth logic in such a way so that the env vars are read if a certain value is set in the config file?

That makes sense. I would suggest RSSBRIDGE_$(SECTION_NAME)_$(VAR_NAME) to solve more global task like reading config data from environment variables instead of config.ini.php itself.


Add: Setup Nginx SSL with minio server

I use minio server as docker container together with nginx-proxy container. All works fine when using non SSL connection, but with SSL a simple: mc ls configname does not work.
For example, I get a:
mc:  Unable to list folder. The provided 'x-amz-content-sha256' header does not match what was computed.
On the other hand, when i provide a bucket name like in:
mc ls /bucket
i get results. It seems that the auth header is not correct for some reason. Is there anything that would be needed in the headers to be passed to the server when using Nginx in SSL mode, proxying HTTP to minio? An example for "Setup Nginx SSL with minio server" would be very much appreciated.

Here is a document on configuring nginx proxy  https://docs.minio.io/docs/setup-nginx-proxy-with-minio . Also can you paste you

nginx version
minio server version
mc version

??

Hello @schenkp this should be fixed via https://github.com/minio/cookbook/commit/ab021efc108ac9f8812212396e06ab53ec058bc2  Please confirm so that we can close this. Thanks again. 👍

@koolhead: yes, this works when using non SSL.
In my setup I configured nginx for HTTPS proxy to but minio server with HTTP. What i have seen is that minio-go.v2 does not sign and leaves shaHeader with UNSIGNED-PAYLOAD for X-Amz-Content-Sha256 when using secure. Minio server then complains with mc: Unable to list folder. The provided 'x-amz-content-sha256' header does not match what was computed.
So i looked into minio-go-v2 to see what happens with the X-Amz-Content-Sha256, and I changed the "if !c.secure" line into "if c.secure":
// newRequest - instantiate a new HTTP request for a given method.
func (c Client) newRequest(method string, metadata requestMetadata) (req *http.Request, err error) {
// Set sha256 sum only for non anonymous credentials.
if !c.anonymous {
	// set sha256 sum for signature calculation only with
	// signature version '4'.
	if c.signature.isV4() {
		shaHeader := "UNSIGNED-PAYLOAD"

=>			if c.secure {  // was if ! c.secure
			if metadata.contentSHA256Bytes == nil {
				shaHeader = hex.EncodeToString(sum256([]byte{}))
			} else {
				shaHeader = hex.EncodeToString(metadata.contentSHA256Bytes)
			}
		}
		req.Header.Set("X-Amz-Content-Sha256", shaHeader)
	}
}

With that NGINX HTTPS proxy to minio server HTTP works, but also MC to MINIO (both HTTP) works.

@koolhead: yes, thank you, this works

Thanks @schenkp


VM warning message not shown in Service Tab

Description
VM warning message not shown in Service Tab.
To Reproduce

Start service
Start an action which will fail
An dialog

Expected behavior
Add a Warning in the General Service info subtab displaying the error message
Details

Affected Component: Sunstone
Version: 6.0 and 6.0.1

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

@tinova PR to approve:

Code: https://github.com/OpenNebula/one-ee/pull/1176
Docs: https://github.com/OpenNebula/docs/pull/1819


Update node 17

I needed to merge in main, which I couldn't do b/c #862 didn't give me edit rights. So here's a replacement PR :)

@allcontributors please add @alizahid for code

Coverage increased (+4.1%) to 80.881% when pulling fc8c07c667029e44a29e34289c4fcc8fe17e91d6 on update-node-17 into ed76d54941b3533326d252063aada8284cc5f08a on main.

@Skn0tt When will this be released? Is there a milestone or schedule you're working on?

Hey @alizahid! Sorry for letting you wait for this so long. Released with https://github.com/quirrel-dev/quirrel/releases/tag/v1.8.0!


Problem running specific spaces tests on local

I have problems running some spaces tests on local. They would fail with a strange error msg like:
Failed step: Then for user "Alice" the JSON response should contain space called "Quota1%" and match
Can not find a matching value for an argument `$fileName` of the method `SpacesContext::forUserTheJSONDataOfTheResponseShouldMatch()`.

The problem occurs on tests that use the method
	 * @Then /^for user "([^"]*)" the JSON response of space project should match$/
	 * @Then /^for user "([^"]*)" the JSON response should contain space called "([^"]*)" and match$/
	 * @Then /^for user "([^"]*)" the JSON response should contain space called "([^"]*)" (?:owned by|granted to) "([^"]*)" (?:with description file|with space image) "([^"]*)" and match$/

There are a lot of tests that use this, for example: apiSpaces/uploadSpaces.feature:77
I need help here. What makes this method so special? Does it need some extension to be installed?
cc @ScharfViktor @individual-it

@kobergj i could not reproduce the above error. I tried making different combination to make the failure but the step is actually found all the time i run the step.


Preference to show workspace owner in status bar (and command palette)

What would you like to be added:
Option in Preferences to add workspace "owner" prefix.
Example (if option enabled and workspace is owned by "GKE-Sync"):

Closing in favour of #2383


Tools: http requests

Description
Adds tools for http requests via requests lib. Includes GET, PATCH, POST, PUT, DELETE.

Raw HTTP requests enable a generic way to interact with the web. Most useful with services that don't offer an OpenAPI compliant interface.

Changes

adds individual component definitions for GET, PATCH, POST, PUT, DELETE.

How Tested

[ ] new unittests

TODOs

[ ] Components can be added to agents but don't appear to work yet. Some conflicting initialization of auth info when used with OpenAIFunctionAgent

File "/var/app/ix/agents/process.py", line 66, in chat_with_ai
    return await chain.arun(callbacks=[handler], **extra_kwargs, **user_input)
File "/var/app/langchain/libs/langchain/langchain/chains/base.py", line 557, in arun
    await self.acall(
File "/var/app/langchain/libs/langchain/langchain/chains/base.py", line 350, in acall
    raise e
File "/var/app/langchain/libs/langchain/langchain/chains/base.py", line 344, in acall
    await self._acall(inputs, run_manager=run_manager)
File "/var/app/langchain/libs/langchain/langchain/agents/agent.py", line 1085, in _acall
    next_step_output = await self._atake_next_step(
File "/var/app/langchain/libs/langchain/langchain/agents/agent.py", line 1011, in _atake_next_step
    result = await asyncio.gather(
File "/var/app/langchain/libs/langchain/langchain/agents/agent.py", line 989, in _aperform_agent_action
    observation = await tool.arun(
File "/var/app/langchain/libs/langchain/langchain/tools/base.py", line 434, in arun
    raise e
File "/var/app/langchain/libs/langchain/langchain/tools/base.py", line 406, in arun
    await self._arun(*tool_args, run_manager=run_manager, **tool_kwargs)
File "/var/app/langchain/libs/langchain/langchain/tools/requests/tool.py", line 50, in _arun
    return await self.requests_wrapper.aget(_clean_url(url))
File "/var/app/langchain/libs/langchain/langchain/utilities/requests.py", line 161, in aget
    async with self.requests.aget(url, **kwargs) as response:
File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
File "/var/app/langchain/libs/langchain/langchain/utilities/requests.py", line 75, in aget
    async with self._arequest("GET", url, auth=self.auth, **kwargs) as response:
File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
File "/var/app/langchain/libs/langchain/langchain/utilities/requests.py", line 60, in _arequest
    async with session.request(

Likely won't merge these.  Will replace with versions based on httpx if needed.


ModuleNotFoundError: No Module Named 'ai_image_gen'

Describe the bug
As part of participating in #3988. I wanted to tryout the Reflex framework and a  ModeuleNotFoundError was raised when trying to "ai_image_gen" project templete.
I guess this is a bug or maybe i am missing something
To Reproduce
Steps to reproduce the behavior:

on the CLI run the following commands:

poetry run reflex init and select the ai_image_gen template number
poetry run reflex run

Screenshots

Specifics (please complete the following information):

Python Version: >3.9
OS: Windows

@Celnet-hub  Did you ever solve this? Getting the same error with the dashboard template


Forecasting: consume locally served model

Description
This PR adds functionality to consume a locally served forecasting model provided that an environment variable RAI_MODEL_SERVING_PORT with the corresponding port is set. Unittests are also part of the PR.
Note: this can later be extended to work for other types of models (not just forecasting), but that is currently out of scope.
Checklist

[ ] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[ ] Documentation was updated if it was needed.

Codecov Report

Merging #2319 (99ff588) into main (ff48382) will increase coverage by 2.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2319      +/-   ##
==========================================
+ Coverage   88.52%   90.66%   +2.13%
==========================================
  Files         133       59      -74
  Lines        7584     2324    -5260
==========================================
- Hits         6714     2107    -4607
+ Misses        870      217     -653

Flag
Coverage Δ

unittests
90.66% <100.00%> (+2.13%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

.../raiutils/data_processing/data_processing_utils.py
93.90% <100.00%> (ø)

... and 74 files with indirect coverage changes


SN1-311 & SN1-284: add blocking call for miner response collection + increasing p

OOM issues resolved and validated on testnet

Ran it on testnet, all looking good to merge. Here is the runid: x07hfjzu


exp/services/recoverysigner: add account registration endpoint

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[ ] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[ ] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
Add account registration endpoint.
Why
Accounts will need to register with the recovery signer to be able to recover their account.
Merging
This PR should be merged to master after #2267 and contains changes from that PR that will disappear from this PR when that PR is merged. I'll move this PR out of draft state after that PR is merged.
Known limitations
N/A

👀


only in test env

For my point of view, white bread must be executed only in a test environment. So I have change the readme to reflect that.

Hey @gagalago I often use this tool (and equivalents in other languages) as part of my development workflow so I don't think it should just be used in test only.
Is there any problem this caused you having it available as :dev? If so, there might be a better solution we can come up with.

No, there is no problem with that.
If you want, I can change my pull request to explain how to execute white bread in test without adding MIX_ENV=test at the beginning of every command. So that everyone can choose to add, or not, this line preferred_cli_env: ["white_bread.run": :test].
This sounds better for you ?

@gagalago 👍 I like this.


[ENHANCEMENT] Update monitoring and logging with new addon template generation

Is your enhancement related to a problem? Please describe.

Addon versions and image tags are defined in addon.
Describe the solution you'd like

Update monitoring and logging with new addon template generation
Describe alternatives you've considered

Additional context

tasks:

[x] Addon PR: https://github.com/harvester/addons/pull/4
[x] Set addon versions https://github.com/harvester/harvester-installer/pull/783
[ ] Rancher monitoring and rancher-logging chart patch and the rest

https://github.com/harvester/harvester/issues/4937

This issue does not require test plan. It is mainly related to source code re-placement.
The remaining task  move Rancher monitoring and rancher-logging chart patch files and the rest  will be done on v1.5.0


Release management is manual.

Implement it with AppVeyor. CI is CD for master and develop, just like UnitySetup. This is blocked by making the repo public because AppVeyor only works for free on public repos.

This was fixed in #5


added uart-communication.md

Added documentation section:

UART Communication

Can you squash the commits into one change?

I squashed and merged.


TensorBoard callback improvements

This PR modifies the TensorBoard callback to:

Log histograms for all trainable & non-trainable weights; not just .W and .b
Tries to provide good names for the weights even when they're not named well
Generates image summaries for weights (behind a parameter since the value is questionable)

Thanks, LGTM


fixes ned1313/terraform-azuread-github_oidc#8

Updated to use the lightweight azuread_application_registration resource

@animal77 Can you also update the README to reflect the updated resource listing? After that I'll merge it and it will be part of the 2.0.0 release.


pypy has old version

I noticed that the version on pypy is from 2015, and doesn't contain the fix for the warning:
ExtDeprecationWarning: Importing flask.ext.restful.fields is deprecated, use flask_restful.fields instead.
Would it be possible please to upload a newer version?
Thanks!

@sobolevn ping :)

@rantav Do you know who could help with that? Thanks!

Any update ?


Add sticky footer to documentation

Sticky footer is amazingly easy in pure.css, per https://github.com/yahoo/pure/issues/387
It took me some googling to find this very helpful code.
If you google http://www.google.com/search?q=sticky+footer+site%3Apurecss.io   ... you'll get no matches.
I suggest sticky footer implementation be added to the website.

Agreed. It's quite a common thing to do (sticky footers), so adding the little bit of code to docs would likely help a lot of folks.

+1

Updated the marketing layout example with a sticky footer.


FlattenSequence/distance(from:to:) untrapping Int.min

This patch makes it so FlattenSequence/distance(from:to:) can return Int.min without trapping. The (#71648) version traps Int.min because 0...Int.max ~= count. I have double-checked, however, and Range/distance(from:to:) (etc.) can return Int.min without trapping:
(Int.min ..< Int.max).distance(from: 0, to: Int.min) // Int.min

I don't believe there are stdlib tests for this, as those would have been too slow before, but perhaps I could add some. But, I haven't yet had time to look at StdlibUnittest.

I've checked some more and not all Range/distance(from:to:) allow Int.min:
let range: Range<UInt> = 0 ..< UInt.max/2 + 1
print(range.distance(from: range.endIndex, to: range.startIndex + 1)) // Int.min + 1
print(range.distance(from: range.endIndex, to: range.startIndex + 0)) // Int.min + 0 💥

But, it also looks like that might be fixed by (#71387):
https://github.com/apple/swift/blob/0b5de0652be95f0dd8a4c2ff04c523a6117086c8/stdlib/public/core/Range.swift#L255-L258

@glessard can you please test and benchmark this? :pray:
I've untrapped Int.min and added some stdlib tests.

@swift-ci please test

@swift-ci please benchmark

TODO: The new test cases need availability checks (see #71981).
The Int.min and Int.max distance assertions need availability checks because the implementation before (#71648) would count the distance by iterating from one index to the other, taking forever.

Hm. I'm looking for FlattenDistanceFromToTests in the logs, but I can't find it. I also can't find any other test/stdlib tests. Have I misunderstood something? For what it's worth, FlattenDistanceFromToTests was made similar to StaticBigIntTests.

I believe I have added appropriate availability checks in the most recent commit.

@swift-ci please benchmark

@swift-ci please test

Performance (x86_64): -O

Regression
OLD
NEW
DELTA
RATIO

FlattenListLoop
1021.0
1637.0
+60.3%
0.62x (?)

FlattenListFlatMap
3659.0
4528.0
+23.7%
0.81x (?)

String.replaceSubrange.String
9.556
11.22
+17.4%
0.85x (?)

StringBuilderSmallReservingCapacity
238.6
269.0
+12.7%
0.89x (?)

StringDistance.characters.ascii
2891.0
3245.0
+12.2%
0.89x (?)

StringBuilder
232.5
259.286
+11.5%
0.90x (?)

BridgeString.find.native.longNonASCII
418.75
457.0
+9.1%
0.92x (?)

NSStringConversion.InlineBuffer.UTF8
650.0
707.5
+8.8%
0.92x (?)

Improvement
OLD
NEW
DELTA
RATIO

EqualStringSubstring
31.265
22.84
-26.9%
1.37x

LessSubstringSubstring
30.889
23.767
-23.1%
1.30x

EqualSubstringString
30.92
23.818
-23.0%
1.30x

LessSubstringSubstringGenericComparable
31.027
23.939
-22.8%
1.30x (?)

EqualSubstringSubstring
31.032
23.961
-22.8%
1.30x

EqualSubstringSubstringGenericEquatable
31.12
24.061
-22.7%
1.29x (?)

Data.hash.Medium
30.929
24.303
-21.4%
1.27x (?)

UTF8Decode_InitFromData
173.818
141.714
-18.5%
1.23x (?)

UTF8Decode_InitFromBytes
180.182
147.75
-18.0%
1.22x (?)

UTF8Decode_InitFromCustom_contiguous
172.6
141.923
-17.8%
1.22x

UTF8Decode_InitDecoding
169.167
140.583
-16.9%
1.20x

UTF8Decode_InitFromCustom_noncontiguous
211.444
181.091
-14.4%
1.17x (?)

StringComparison_longSharedPrefix
242.6
208.778
-13.9%
1.16x (?)

String.replaceSubrange.RepChar
1574.0
1426.0
-9.4%
1.10x (?)

FindString.Loop1.Substring
335.0
308.571
-7.9%
1.09x (?)

Breadcrumbs.UTF16ToIdx.longASCII
42.491
39.328
-7.4%
1.08x (?)

CStringLongNonAscii
154.917
144.462
-6.7%
1.07x (?)

Code size: -O

Regression
OLD
NEW
DELTA
RATIO

FlattenDistanceFromTo.o
10793
11321
+4.9%
0.95x

Performance (x86_64): -Osize

Regression
OLD
NEW
DELTA
RATIO

String.replaceSubrange.String
9.646
11.218
+16.3%
0.86x (?)

StringSwitch
225.25
258.857
+14.9%
0.87x (?)

FlattenDistanceFromTo.Array.Array.08.08
68.952
78.895
+14.4%
0.87x

ObjectiveCBridgeStringHash
66.333
74.143
+11.8%
0.89x (?)

NSStringConversion.InlineBuffer.UTF8
638.5
709.0
+11.0%
0.90x (?)

FlattenDistanceFromTo.Array.String.08.08
2210.0
2441.0
+10.5%
0.91x (?)

ConvertFloatingPoint.MockFloat64ToInt64
493.6
542.5
+9.9%
0.91x (?)

FlattenDistanceFromTo.Array.Array.08.04
28.212
30.611
+8.5%
0.92x (?)

Data.hash.Empty
52.261
56.636
+8.4%
0.92x (?)

FlattenDistanceFromTo.Array.Array.04x08
14.87
15.992
+7.5%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

EqualSubstringSubstring
30.259
23.156
-23.5%
1.31x (?)

EqualSubstringSubstringGenericEquatable
30.258
23.159
-23.5%
1.31x

EqualStringSubstring
30.259
23.167
-23.4%
1.31x (?)

LessSubstringSubstring
31.581
24.282
-23.1%
1.30x

EqualSubstringString
31.25
24.156
-22.7%
1.29x (?)

LessSubstringSubstringGenericComparable
31.031
24.375
-21.4%
1.27x

Data.hash.Medium
30.267
24.297
-19.7%
1.25x (?)

UTF8Decode_InitFromBytes
178.3
144.75
-18.8%
1.23x

UTF8Decode_InitFromCustom_contiguous
172.214
140.154
-18.6%
1.23x (?)

UTF8Decode_InitDecoding
169.364
139.182
-17.8%
1.22x

UTF8Decode_InitFromData
174.182
146.75
-15.7%
1.19x (?)

StringComparison_longSharedPrefix
240.1
204.6
-14.8%
1.17x (?)

String.replaceSubrange.RepChar
1582.0
1386.0
-12.4%
1.14x (?)

Breadcrumbs.UTF16ToIdx.longASCII
43.583
39.32
-9.8%
1.11x (?)

StringHashing_slowerPrenormal
252.321
234.688
-7.0%
1.08x (?)

CStringLongNonAscii
153.769
143.615
-6.6%
1.07x (?)

Code size: -Osize
Performance (x86_64): -Onone

Regression
OLD
NEW
DELTA
RATIO

ArrayAppendGenericStructs
1432.5
1795.0
+25.3%
0.80x (?)

String.replaceSubrange.String
11.137
12.531
+12.5%
0.89x (?)

ObjectiveCBridgeStringHash
67.706
74.5
+10.0%
0.91x (?)

BridgeString.find.native.longNonASCII
418.0
456.5
+9.2%
0.92x (?)

StringHasSuffixAscii
4875.0
5320.0
+9.1%
0.92x (?)

StringBuilderWithLongSubstring
1885.0
2031.25
+7.8%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

FlattenDistanceFromTo.Array.Array.04x08
2032.0
1509.0
-25.7%
1.35x (?)

FlattenDistanceFromTo.Array.Array.08.08
10012.0
7575.0
-24.3%
1.32x

FlattenDistanceFromTo.Array.Array.04.04
525.333
399.5
-24.0%
1.31x

FlattenDistanceFromTo.Array.Array.08.04
2559.0
1956.0
-23.6%
1.31x

FlattenDistanceFromTo.Array.String.04.04
549.0
425.25
-22.5%
1.29x (?)

EqualSubstringSubstring
35.844
27.923
-22.1%
1.28x (?)

EqualStringSubstring
35.857
27.955
-22.0%
1.28x

EqualSubstringSubstringGenericEquatable
34.235
26.906
-21.4%
1.27x

LessSubstringSubstringGenericComparable
33.44
26.394
-21.1%
1.27x (?)

EqualSubstringString
36.161
28.625
-20.8%
1.26x (?)

FlattenDistanceFromTo.Array.String.08.04
2706.0
2147.0
-20.7%
1.26x (?)

FlattenDistanceFromTo.Array.String.04.08
2226.0
1770.0
-20.5%
1.26x (?)

LessSubstringSubstring
35.172
28.5
-19.0%
1.23x

UTF8Decode_InitFromData
174.111
143.167
-17.8%
1.22x

FlattenDistanceFromTo.Array.String.08.08
11470.0
9468.0
-17.5%
1.21x

UTF8Decode_InitFromBytes
178.167
147.5
-17.2%
1.21x (?)

Data.hash.Medium
34.25
28.48
-16.8%
1.20x (?)

UTF8Decode_InitFromCustom_contiguous
181.0
151.417
-16.3%
1.20x

UTF8Decode_InitDecoding
177.0
148.75
-16.0%
1.19x (?)

String.replaceSubrange.RepChar
1579.0
1391.0
-11.9%
1.14x (?)

Set.isSubset.Seq.Box25
1252.0
1152.5
-7.9%
1.09x (?)

Code size: -swiftlibs

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac mini
  Model Identifier: Macmini8,1
  Processor Name: 6-Core Intel Core i7
  Processor Speed: 3.2 GHz
  Number of Processors: 1
  Total Number of Cores: 6
  L2 Cache (per Core): 256 KB
  L3 Cache: 12 MB
  Memory: 32 GB

I think I can fix the -Osize performance regression with some patience on your part.
I see at least two improvement opportunities:

move the first region inside the if-else check (same predicate)
use the positive distance in the last region (as done in the middle)

I've performed some preliminary measurements, and it's ~10% faster on my machine.

@swift-ci please benchmark

@swift-ci please test

Performance (x86_64): -O

Regression
OLD
NEW
DELTA
RATIO

StringWithCString2
0.0
0.001
+100.0%
0.50x (?)

FlattenListFlatMap
2658.0
4323.0
+62.6%
0.61x (?)

ArrayAppendGenericStructs
1425.0
1770.0
+24.2%
0.81x (?)

FlattenListLoop
1406.0
1627.0
+15.7%
0.86x (?)

Improvement
OLD
NEW
DELTA
RATIO

String.replaceSubrange.RepChar
1569.0
1372.0
-12.6%
1.14x (?)

Code size: -O

Regression
OLD
NEW
DELTA
RATIO

FlattenDistanceFromTo.o
10793
11561
+7.1%
0.93x

Performance (x86_64): -Osize

Regression
OLD
NEW
DELTA
RATIO

Data.hash.Medium
28.083
30.258
+7.7%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

String.replaceSubrange.RepChar
1597.0
1401.0
-12.3%
1.14x (?)

Code size: -Osize

Regression
OLD
NEW
DELTA
RATIO

FlattenDistanceFromTo.o
10165
10398
+2.3%
0.98x

Performance (x86_64): -Onone

Regression
OLD
NEW
DELTA
RATIO

IndexPath.Max
275.286
328.333
+19.3%
0.84x (?)

Set.isStrictSubset.Seq.Int100
2758.0
3078.0
+11.6%
0.90x (?)

CharIteration_chinese_unicodeScalars
91880.0
100320.0
+9.2%
0.92x (?)

Set.isStrictSubset.Seq.Int50
1408.0
1536.0
+9.1%
0.92x (?)

Set.isStrictSubset.Seq.Int25
719.667
783.0
+8.8%
0.92x (?)

Improvement
OLD
NEW
DELTA
RATIO

FlattenDistanceFromTo.Array.Array.04x08
2054.0
1513.0
-26.3%
1.36x

FlattenDistanceFromTo.Array.Array.04.04
531.333
394.5
-25.8%
1.35x

FlattenDistanceFromTo.Array.String.04.08
2056.0
1533.0
-25.4%
1.34x

FlattenDistanceFromTo.Array.String.04.04
524.667
395.75
-24.6%
1.33x (?)

FlattenDistanceFromTo.Array.String.08.08
10156.0
7715.0
-24.0%
1.32x

FlattenDistanceFromTo.Array.String.08.04
2544.0
1945.0
-23.5%
1.31x (?)

FlattenDistanceFromTo.Array.Array.08.08
9941.0
7631.0
-23.2%
1.30x

FlattenDistanceFromTo.Array.Array.08.04
2534.0
1958.0
-22.7%
1.29x (?)

StringWithCString2
0.007
0.006
-12.5%
1.14x (?)

String.replaceSubrange.RepChar
1597.0
1401.0
-12.3%
1.14x (?)

ArrayAppendAscii
12444.0
11509.0
-7.5%
1.08x (?)

Code size: -swiftlibs

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac mini
  Model Identifier: Macmini8,1
  Processor Name: 6-Core Intel Core i7
  Processor Speed: 3.2 GHz
  Number of Processors: 1
  Total Number of Cores: 6
  L2 Cache (per Core): 256 KB
  L3 Cache: 12 MB
  Memory: 32 GB

It appears the last commit closed the performance gap. It also added some code size, but perhaps that's OK?

I don't remember the context for this pull request - other than wanting to un-trap the Int.min case. I also don't think there are any public benchmarks targeting this method besides the ones I added in my earlier contributions - so I might have been referring to the "FlattenDistanceFromTo" regression a few comments up.

#71648
#71786

Thanks!

@oscbyspro Thanks for this! Sorry for the long delay.


Hello, how do I use a web link instead of an image in a file to display thumbnails

Hello, how do I use a web link instead of an image in a file to display thumbnails

Not supported at the moment in Hugo. You can use custom HTML within the MD files - aka an img tag


Error: Unable to acces jarfile | Macbook M2 Max

Hi all,
I would like to download the Entralinked emulator. However, when I want to open it, nothing happens and with a command in Terminal I get the error in the picture. Is it possible that this software does not run on mac and only on windows? I have installed all the latest updates of Java and also of Mac OS. Can someone help me with this?
Thanks in advance!

Terminal cannot magically detect where the file is, so you must first navigate to the directory the file is in.
If you've extracted the ZIP file to your desktop you should be able to do something like cd ~/Desktop/entralinked
and then java -jar entralinked.jar


Bug/Crash possibility in src/components/code-line.component.js

Looking through the code came across this line:
https://github.com/gitpoint/git-point/blob/e81f301eb5a6574b9c7f6bafe15c40d81ad34a87/src/components/code-line.component.js#L79
if filename is undefined or null this would cause a crash. Wondering if this should be:
const language = (filename || '').split('.').pop();

Yeah, I just saw this issue testing flow in our project, do you want open a pull request to fix it? 😄

@D40661195 can do

Yeah, I just saw this issue testing flow in our project, do you want open a pull request to fix it? 😄

Sorry, I've posted with a wrong user hahah that's my personal account


Use spring boot 2.3.1, can not register successfully

Question
when i change spring boot 2.2.2, can register successfully

can you provide details info？ and why not this？

can not get the ServiceBean,but can access the dubbo interface successfully

Hi, does this question still exist? If there is still a problem, please resubmit the issue.


Update Documentation

Closes https://github.com/paritytech/substrate/issues/2159
Updates:
Balances

Switch to relative links
Update examples to reflect current usage after https://github.com/paritytech/substrate/pull/2048

Contract

Style, formatting, misspellings

Staking

Added links so that it renders on rust stable
Enforced max line length of 120 characters

Sudo & System

Made common sections consistent with other modules

Timestamp

Made common sections consistent with other modules
Updated relative links

Fixed review comments with the exception of Trie/AccountId naming.
Have changed "To use it in your module..." to "To use it in your runtime..." for modules except the System module, as I think it applies more to modules than runtimes. Correct?


Kotlin / Wasm build fixes

Since the broken build is holding up merging some other PRs from landing, i'll merge this for Alex and he can fix the nits in a follow up.

Thank Ray!


Add async and state validation middlewares

Removed redux thunk and replaced with our own built-in async middleware
Added redux state type validation middleware

Please remove the state validation and then I will merge!


installtion instructions are not clear

From where do I get the dll file?

check github releases section.


ERR_FS_FILE_TOO_LARGE Error

Brief Issue Summary
Compiling a large unreal project and getting this:
[rollbar] Unhandled exception: Unhandled Promise rejection: build RangeError [ERR_FS_FILE_TOO_LARGE]: File size<PHONE_NUMBER>) is greater than 2 GB {}
Looks to be an issue with linking the resulting binary as the compile is complete.
CMake Tools Diagnostics
{
  "os": "win32",
  "vscodeVersion": "1.66.2",
  "cmtVersion": "1.10.5",
  "configurations": [
    {
      "folder": "e:\\Project\\Game",
      "cmakeVersion": "3.21.1",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": false,
      "compilers": {
        "C": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe",
        "CXX": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug"
    ],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 271,
    "executablesCount": 1,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log
[build]
[build] ..Completed
[build] Completed target pre-build steps
[build] Target is up to date
[build] Total execution time: 2.90 seconds
[build] Build finished with exit code 0
[rollbar] Unhandled exception: Unhandled Promise rejection: build RangeError [ERR_FS_FILE_TOO_LARGE]: File size<PHONE_NUMBER>) is greater than 2 GB {}

Additional Information
Works fine if you run the generated cmake command in a command window outside VS Code.

it looks like your build is succeeding, can you please confirm that the build succeeds?
Right after the build finishes, we operate on compile_commands.json if it is generated. do you have a compile_commands.json file in your build folder? if yes, how big is it?


Fix/make gen auth token for discord sync

closes : #1253

Does this change not require test case update ?

Does this change not require test case update ?

Sorry I forgot to push it.


Fatal exception: Reply already submitted

Hey guys, Samsung Galaxy J5 user on Android 9 show me the following crash in crashlytics when using this plugin. If you Google the issue, your find this issue, which says:
If you are a plugin author and are seeing (or getting reports of) this message, you should audit your code to make sure you are never calling a Result response method more than once. If you find that your logic is correct, and have multiple in-flight method channel requests at the same time, that would be where this issue would be relevant.
Fatal Exception: java.lang.IllegalStateException: Reply already submitted
       at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:155)
       at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:238)
       at com.bruno.native_admob_flutter.NativeAdmobFlutterPlugin$onMethodCall$1.onInitializationComplete(NativeAdmobFlutterPlugin.java:49)
       at com.google.android.gms.internal.ads.zzzs.zza(zzzs.java:172)
       at com.google.android.gms.internal.ads.zzzu.run(zzzu.java:4)
       at android.os.Handler.handleCallback(Handler.java:873)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at com.google.android.gms.internal.ads.zzdxi.zzb(zzdxi.java:7)
       at com.google.android.gms.internal.ads.zzdxi.dispatchMessage(zzdxi.java:5)
       at android.os.Looper.loop(Looper.java:216)
       at android.app.ActivityThread.main(ActivityThread.java:7266)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

Thanks for your help!

I have never seen this issue. I made sure that result is not called more than once in every function
Can you reproduce it locally?

It seems to be happening a lot lately with several plugins.

I have never seen this issue. I made sure that result is not called more than once in every function
Can you reproduce it locally?

Very weird. I haven't tried to reproduce it yet, but never saw it before either. Maybe a flutter issue?

I have this issue on:

Redmi Note 4 (Android 7.0)
Xperia Z3 (Android 6.0.1)
HUAWEI P9 lite mini (Android 7.0)
Galaxy A5(2016) (Android 7.0)
Galaxy S5 (Android 6.0.1)
....

Fatal Exception: java.lang.IllegalStateException: Reply already submitted      at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java)      at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java)      at com.bruno.native_admob_flutter.NativeAdmobFlutterPlugin$onMethodCall$1.onInitializationComplete(NativeAdmobFlutterPlugin.java)
I only use interstitial ads in my app.

I can't reproduce it locally.
It seems, from the logs, that it's caused when initializing:
https://github.com/bdlukaa/native_admob_flutter/blob/master/android/src/main/kotlin/com/bruno/native_admob_flutter/NativeAdmobFlutterPlugin.kt#L49

Maybe It happened due to the ad. I use the device as a Firebase report but still can not reproduce it. Strange


FEM & ParFUM libraries suffer from several poor coding practicies

Original issue: https://charm.cs.illinois.edu/redmine/issues/306

Malloc and new are intermingled here for various local tempories.  There is no apparent reason for malloc being used for some int arrays while new is used for others.  Using cppcheck I disentangled erroneous frees of new alloced memory and visa-versa.  However, if these libraries are renovated for some new production application use, they should be cleaned up to use memory sensibly, strip out dead code, and generally go through a comprehensive overhaul.

Original date: 2018-04-29 22:55:34

I think these libraries are currently more likely to be deprecated/removed than to receive time spent on code cleanup.


Tearsheet does not render properly with a prefix.

The tearsheet does not render properly, it does not appear to be applying the prefix to some parts of the CSS

[x] V2
[ ] V1??

What package(s) are you using?

[x] Carbon for IBM Products (or Carbon for IBM Cloud & Cognitive)
[ ] Legacy/CDAI
[ ] Legacy/Security

Detailed description
Using a prefix with @carbon/ibm-products tearsheet appears to update the DOM correctly but not the CSS.
This example here demonstrates the issue https://codesandbox.io/p/sandbox/black-hill-j3xms8?file=%2Fsrc%2FExample%2FExample.jsx%3A11%2C39
NOTE: We should probably have stories that apply a prefix.

So the user was trying this as per our examples
$pkg-prefix: "tst";
@use "@carbon/ibm-products/scss/components/Tearsheet";

However this does not appear to work in V11

See prefix example:  https://codesandbox.io/p/sandbox/github/carbon-design-system/ibm-products/tree/main/examples/carbon-for-ibm-products/prefix-example?file=%2Fsrc%2Findex.scss
See without prefix: https://codesandbox.io/p/sandbox/github/carbon-design-system/ibm-products/tree/main/examples/carbon-for-ibm-products/AboutModal?file=%2Fsrc%2FExample%2FExample.jsx%3A1%2C1

Workaround 1 instead of Tearsheet import
@use "@carbon/ibm-products/scss/index" with (
  $pkg-prefix: "tst"
);

Workaround 2 importing only Tearsheet
@use "@carbon/ibm-products/scss/config" with (
  $pkg-prefix: "tst"
);
@use "@carbon/ibm-products/scss/components/Tearsheet";

NOTE: This does not work as the tearsheet scss does not forward package-settings. Each component should forward settings if to be used like this.
@use "@carbon/ibm-products/scss/components/Tearsheet" with (
  $pkg-prefix: "tst"
);


Release ORC 2.0.1

[x] GitHub Action CI Check.

https://github.com/apache/orc/actions/workflows/build_and_test.yml?query=branch%3Abranch-2.0

Java

17.0.10+7
21.0.2+13

C++

GNU 10.2.1
GNU 11.4.0
GNU 11.4.1
GNU 12.2.0
GNU 12.3.1
GNU 13.2.0
Clang 11.0.0
AppleClang <IP_ADDRESS>00029
AppleClang <IP_ADDRESS>00040
MSVC 19.29.30154.0

Ubuntu 20.04.6 and 22.04.4
MacOS 12.7.3 and 13.6.4 (Intel)
MacOS 14.2.1 (Apple Silicon)
Microsoft Windows Server 2019 (C++)
Docker Tests (Debian 11 and 12, Ubuntu 24, Fedora 37, Oracle Linux 9)

[x] Apache Spark 4.0.0 Integration Test with 2.0.1-SNAPSHOT
[x] Vote Tag Creation
[x] Upload RC0 Vote Artifacts
[x] Upload to ASF Maven Central
[x] Send RC0 Vote Email
[x] Apache Spark 4.0.0 Integration Integration Test with RC0
[x] Send RC0 Vote Result
[x] Publish to Apache Download
[ ] Release Tag Creation
[ ] Publish to Maven Central
[ ] Create next milestone
[ ] Register 2.0.1 to https://reporter.apache.org/addrelease.html?orc

There were a few links pointing to 2.0.0, I fixed them.


Repeated prompt using fish shell with two line prompt theme

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: macOS 10.12.3
Hyper.app version: <IP_ADDRESS>8
Link of a Gist with the contents of your .hyper.js:
Relevant information from devtools (CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere):
The issue is reproducible in vanilla Hyper.app:

Issue
Repeated prompt using fish shell with two line prompt theme when first opened. But works fine when opening a new tab. I tried several other prompt themes. It seems the problem only exist with prompt with more than two lines. And there is no problem with iTerm2.
Using Pure installed by Fisherman. Fish shell settings are default. Other plugins are pure, getopts, z, bass, transfer.

I have the same setup and problem. It definitely seems like a Hyper problem. I cannot reproduce it using this setup in Terminal.app.

Hey there, please try again with the new Hyper v2 release and open a new issue if the problem stills exists. Thank you!


Fine Tuning

How to fine tune your model?
I don't have sufficient data to retrain your model from scratch.
I want to fine tune your model on my data which has only two classes ?

can you tell me 2 qheations?
1.In the Installation  part ,what is the relation between " Install the attached caffe branch, " and "caffe-cedn-dev folder" .
2. caffe-cedn-dev/examples folder ,I download the code ,but I dot have the examples folder.

@moh3th1 i think the auther use the pre-trained vgg net. So maybe you need to fine-tune your vgg net first, its easy to fine-tune use caffe.


[AIRFLOW-XXX] Reorder Airflow Users

Make sure you have checked all steps below.
Jira

[x] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-XXX
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[x] Here are some details about my PR, including screenshots of any UI changes:

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[x] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[x] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
All the public functions and the classes in the PR contain docstrings that explain what it does

Code Quality

[x] Passes flake8

Codecov Report

Merging #4410 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4410   +/-   ##
=======================================
  Coverage   78.44%   78.44%
=======================================
  Files         204      204
  Lines       16436    16436
=======================================
  Hits        12894    12894
  Misses       3542     3542

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 ecc88a5...b845643. Read the comment docs.


[Add]

Site URL
https://youtu.be/X48VuDVv0do?si=VUaShrqe0PuMrfl4
Description of the above provided site
This link contains a comprehensive and beginner-friendly resource for Kubernetes by a well-known tutor Nana.
Category
DevOps
Sub Category
Kubernetes
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am participating in Hacktoberfest 2023

You've been assigned @rover07! :) Now, I will reopen the PR you created for this issue


Switch to OpenJDK 8

Testing to see if this fixes the build.

Submitted as https://github.com/google/closure-compiler/commit/5208c3c4bc60722230a4b353040d24f8fd9d932d


Fix editing in allergens alert screen (closes #4133)

Fix editing in allergens alert screen
Related issues

#4133

Screenshots
https://drive.google.com/file/d/1lw_1sepfjiuCkEbCzXrZ8ewablqjOZCS/view?usp=sharing

@naivekook any chance it might solve #4120 ?

@teolemon don't think so, looks like 4120 is about database migration

@naivekook what do you think about moving data to a new ViewModel?

@VaiTon my intention was just to fix the issue in this PR
But I'm all for moving the logic to viewmodel

@naivekook would you prefer that we first merge this or that we merge the viewmodel version?

@VaiTon sounds good!


Zero out illegal moves

I loaded a self-play sgf with 130 moves and ran "genmove b" to print the sum of policy of legal moves which was ~0.98 meaning 2% of policy mass is on illegal moves (looking at that board I suspect these are occupied coords not self-capturing moves)
I think a human explanation for the current behavior would be "a dynamic c_puct that values policy less as more stones are filled on the board" which is interesting (and maybe something we should test) but not what the paper suggests.
I'm running 100 games right now comparing current (default) behavior and new zeroing behavior.
Do you think I should use -inject-noise to better assess how that flag will interact with this change or should I not add that extra noise to the eval games?
In DM's literature I found
Alpha Go paper: "A final softmax layer outputs a probability distribution over all legal moves a"
AlphaGoZero paper: "In addition, the player is provided with the set of legal moves in each position"

this is a real broken test at the moment, fyi.

/retest

Updated with tests, ready for a new look.


🏗 Implement ShowListCardComponent

Render the ShowListCard component on the search results page. I think we will want a toggle button this switches between Card and ListCard. This can be placed in the top right corner of the search results screen. Make this change to any other screen that makes sense. The only one that comes to mind right now is Discover. The developer will need to make some calls on how it is rendered (1 vs 2 column, etc.).
Resources
https://mui.com/material-ui/react-toggle-button/

Closed by #480


rules_oci requires glibc 2.18 (meaning unsupported on centos7)

👋  I am adopting rules_oci and things have been pretty smooth so far - thanks for the great lib!
Hit a snag with trying to build mutli arch images on our CI infra (centos 7)
ERROR: /__w/go/go/cmd/importcontent/BUILD.bazel:27:13: OCI Index //cmd/importcontent:image failed: (Exit 1): image_index_image.sh failed: error executing command (from target //cmd/importcontent:image)
  (cd /opt/shared-cache/.cache/bazel/_bazel_builder/3767c05a92e6c3d7c269247b8fbf442d/sandbox/processwrapper-sandbox/618/execroot/tanium_go && \
  exec env - \
  bazel-out/k8-fastbuild/bin/cmd/importcontent/image_index_image.sh '--output=bazel-out/k8-fastbuild/bin/cmd/importcontent/image' '--image=bazel-out/k8-fastbuild/bin/cmd/importcontent/image-amd64' '--blob=blobs/sha256/25f70b52f660a6bb7784fb73c34b875b6cfc3d053cf6d92380a4f1b777264b99' '--blob=blobs/sha256/31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3' '--blob=blobs/sha256/6a9d1a69663262eea46d6eb1286ffaba5dcbdab9e09eca99025cd9962e06eb01' '--blob=blobs/sha256/c340abd20dc2a9c5c5992c84d487397f36bdcb67df9c8719b15ad7562b7a5452' '--image=bazel-out/k8-fastbuild/bin/cmd/importcontent/image-arm64' '--blob=blobs/sha256/5d69c6259ad474c85fe494d43dfa2a305652e3eca6abec12bc43dc3c7389f3be' '--blob=blobs/sha256/8c6d1654570f041603f4cef49c320c8f6f3e401324913009d92a19132cbf1ac0' '--blob=blobs/sha256/9ecaec1e770e0da14fdf9931fcadaf49983510ca96a85495094e578b352fb842' '--blob=blobs/sha256/ecab716249a8da0c58f03e33fd97cdda9a5f48b929e1b3f7f7ed05dc84bbc5ec')
# Configuration: e684c6d9e49ad0bf1dd3333f92918bf82c03047c447d68eea1427676b3b144de
# Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/coreutils_linux_amd64/coreutils: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by external/coreutils_linux_amd64/coreutils)

https://github.com/bazel-contrib/rules_oci/pull/57 introduced uutils/coreutils via https://github.com/aspect-build/bazel-lib/pull/332
I am aware that centos7 is wildly old and should no longer be used, but we have to keep support for glibc 2.17 for awhile longer.

Hm, I agree that you should be able to do that, but I don't think we'd want to downgrade our coreutils binary to link against older glibc. Can you use Bazel's toolchain registration to override it? You should be able to register some other program first with @aspect_bazel_lib//lib:coreutils_toolchain_type BEFORE initializing rules_oci dependencies, such that Bazel will select your tool that acts like coreutils.

👍 Thanks for the rec. Will give that a try. Cool with closing this.
For any future travelers still building on glibc 2.17 like me - i'm sorry.
Current (hacky) approach I am taking is patching the image_index.sh file to drop the hermetic coreutils bin.
http_archive(
    name = "rules_oci",
    patch_args = ["-p1"],
    patches = [
        "//build/bazel/third_party_patches:rules_oci-image-index-sh.patch",
    ],
    sha256 = "176e601d21d1151efd88b6b027a24e782493c5d623d8c6211c7767f306d655c8",
    strip_prefix = "rules_oci-1.2.0",
    url = "https://github.com/bazel-contrib/rules_oci/releases/download/v1.2.0/rules_oci-v1.2.0.tar.gz",
)

# rules_oci-image-index-sh.patch
From a7087c54b099306788ce3a6deba2af69ecdddd50 Mon Sep 17 00:00:00 2001
From: Connor Hindley<EMAIL_ADDRESS>Date: Wed, 12 Jul 2023 17:55:20 -0600
Subject: [PATCH] fix: Remove coreutils from image_index.sh.tpl

Rely on non hermetic wc and shasum
---
 oci/private/image_index.sh.tpl | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/oci/private/image_index.sh.tpl b/oci/private/image_index.sh.tpl
index 2d81586..f69aa29 100644
--- a/oci/private/image_index.sh.tpl
+++ b/oci/private/image_index.sh.tpl
@@ -2,13 +2,12 @@
 set -o pipefail -o errexit -o nounset

 readonly YQ="{{yq_path}}"
-readonly COREUTILS="{{coreutils_path}}"

 # Only crete the directory if it doesn't already exist.
 # Otherwise we may attempt to modify permissions of an existing directory.
 # See https://github.com/bazel-contrib/rules_oci/pull/271
 function mkdirp() {
-    test -d "$1" || "${COREUTILS}" mkdir -p "$1"
+    test -d "$1" || mkdir -p "$1"
 }

 function add_image() {
@@ -35,7 +34,7 @@ function copy_blob() {
     local blob_image_relative_path="$3"
     local dest_path="${output_path}/${blob_image_relative_path}"
     mkdirp "$(dirname "${dest_path}")"
-    "${COREUTILS}" cat "${image_path}/${blob_image_relative_path}" > "${dest_path}"
+    cat "${image_path}/${blob_image_relative_path}" > "${dest_path}"
 }

 function create_oci_layout() {
@@ -60,9 +59,9 @@ for ARG in "$@"; do
 done

-export checksum=$("${COREUTILS}" sha256sum "${OUTPUT}/manifest_list.json" | "${COREUTILS}" cut -f 1 -d " ")
-export size=$("${COREUTILS}" wc -c < "${OUTPUT}/manifest_list.json")
+export checksum=$(shasum -a 256 "${OUTPUT}/manifest_list.json" | cut -f 1 -d " ")
+export size=$(wc -c < "${OUTPUT}/manifest_list.json")

 "${YQ}" --inplace --output-format=json '.manifests += [{"mediaType": "application/vnd.oci.image.index.v1+json", "size": env(size), "digest": "sha256:" + env(checksum)}]' "$OUTPUT/index.json"

-"${COREUTILS}" mv "${OUTPUT}/manifest_list.json" "$OUTPUT/blobs/sha256/${checksum}"
+mv "${OUTPUT}/manifest_list.json" "$OUTPUT/blobs/sha256/${checksum}"
--
2.37.0

final annoying note: that script was not able to be patched until this commit: https://github.com/bazel-contrib/rules_oci/commit/e1b09b325c7f80daa6ae1b24d1099db3864a64f6 due to this annoying bazel bug: https://github.com/bazelbuild/bazel/issues/17376

Thank you for documenting that for others to discover 🙏🏻


python.pkgs.irc: 14.2.2 -> 16.4

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
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 nox --run "nox-review wip"
[x] 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)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build python.pkgs.irc python3.pkgs.irc

Success on x86_64-linux (full log)
Attempted: python.pkgs.irc, python3.pkgs.irc
Partial log (click to expand)
Successfully installed irc-16.4
/build/irc-16.4
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4/lib
patching script interpreter paths in /nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4
checking for references to /build in /nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4...
/nix/store/y4l47vbkjspkbaly56b8nvrdmns4nwxc-python2.7-irc-16.4
/nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4

Success on aarch64-linux (full log)
Attempted: python.pkgs.irc, python3.pkgs.irc
Partial log (click to expand)
Successfully installed irc-16.4
/build/irc-16.4
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4/lib
patching script interpreter paths in /nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4
checking for references to /build in /nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4...
/nix/store/4svqmqcf9fy6grgmm1qyg2inbg9g17f0-python2.7-irc-16.4
/nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4

Success on x86_64-darwin (full log)
Attempted: python.pkgs.irc, python3.pkgs.irc
Partial log (click to expand)
Requirement already satisfied: inflect in /nix/store/a31wsn7slj0zb5m96ng3kx0042ghwp8v-python3.6-inflect-1.0.0/lib/python3.6/site-packages (from jaraco.itertools>=1.8->irc==16.4) (1.0.0)
Installing collected packages: irc
Successfully installed irc-16.4
/private/tmp/nix-build-python3.6-irc-16.4.drv-0/irc-16.4
post-installation fixup
strip is /nix/store/df6k4mgdjxciy0f637lryp7c9ln7n1m3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/ca6gcyazil3zcxd5nbsif6rr6fmhdg8h-python3.6-irc-16.4/lib
patching script interpreter paths in /nix/store/ca6gcyazil3zcxd5nbsif6rr6fmhdg8h-python3.6-irc-16.4
/nix/store/3p3xmk2nwb9814fnzyhlanjidqcg7vyh-python2.7-irc-16.4
/nix/store/ca6gcyazil3zcxd5nbsif6rr6fmhdg8h-python3.6-irc-16.4

@GrahamcOfBorg build errbot python27Packages.inflect python27Packages.irc python27Packages.jaraco_classes python27Packages.jaraco_collections python27Packages.jaraco_itertools python27Packages.ja
raco_logging python27Packages.jaraco_stream python27Packages.jaraco_text python27Packages.jinja2_pluralize python36Packages.diff_cover python36Packages.inflect python36Packages.irc python36Packages.jaraco_classes
 python36Packages.jaraco_collections python36Packages.jaraco_itertools python36Packages.jaraco_logging python36Packages.jaraco_stream python36Packages.jaraco_text python36Packages.jinja2_pluralize

@GrahamcOfBorg build errbot python27Packages.inflect python27Packages.irc python27Packages.jaraco_classes python27Packages.jaraco_collections python27Packages.jaraco_itertools python27Packages.jaraco_logging python27Packages.jaraco_stream python27Packages.jaraco_text python27Packages.jinja2_pluralize python36Packages.diff_cover python36Packages.inflect python36Packages.irc python36Packages.jaraco_classes python36Packages.jaraco_collections python36Packages.jaraco_itertools python36Packages.jaraco_logging python36Packages.jaraco_stream python36Packages.jaraco_text python36Packages.jinja2_pluralize

Success on x86_64-darwin (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools
The following builds were skipped because they don't evaluate on x86_64-darwin: python27Packages.ja
Partial log (click to expand)
strip is /nix/store/df6k4mgdjxciy0f637lryp7c9ln7n1m3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/67dd9azib0jr0g722504nr84ylcq9npy-errbot-5.2.0/lib  /nix/store/67dd9azib0jr0g722504nr84ylcq9npy-errbot-5.2.0/bin
patching script interpreter paths in /nix/store/67dd9azib0jr0g722504nr84ylcq9npy-errbot-5.2.0
wrapping `/nix/store/67dd9azib0jr0g722504nr84ylcq9npy-errbot-5.2.0/bin/errbot'...
/nix/store/67dd9azib0jr0g722504nr84ylcq9npy-errbot-5.2.0
/nix/store/3xw3l83a5hhpqj7vcmmg06d54l1qf4cw-python2.7-inflect-1.0.0
/nix/store/3p3xmk2nwb9814fnzyhlanjidqcg7vyh-python2.7-irc-16.4
/nix/store/fjw5wq98g1nj9kw31pmz2ndxdyg0znvs-python2.7-jaraco.classes-1.5
/nix/store/6bjq2qi50an39ig5c5swmf3c7cpfnsmc-python2.7-jaraco.collections-1.5.3
/nix/store/aa3v536y6f2d7x982fsj3z0a01zkf3gp-python2.7-jaraco.itertools-2.4

Success on aarch64-linux (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools
The following builds were skipped because they don't evaluate on aarch64-linux: python27Packages.ja
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/x6axjgqrb7vqr9gkz5sn47h6chq7bcaz-errbot-5.2.0/lib  /nix/store/x6axjgqrb7vqr9gkz5sn47h6chq7bcaz-errbot-5.2.0/bin
patching script interpreter paths in /nix/store/x6axjgqrb7vqr9gkz5sn47h6chq7bcaz-errbot-5.2.0
checking for references to /build in /nix/store/x6axjgqrb7vqr9gkz5sn47h6chq7bcaz-errbot-5.2.0...
wrapping `/nix/store/x6axjgqrb7vqr9gkz5sn47h6chq7bcaz-errbot-5.2.0/bin/errbot'...
/nix/store/x6axjgqrb7vqr9gkz5sn47h6chq7bcaz-errbot-5.2.0
/nix/store/76r635a8njwrz1i3ba493vhyja9nvwlr-python2.7-inflect-1.0.0
/nix/store/4svqmqcf9fy6grgmm1qyg2inbg9g17f0-python2.7-irc-16.4
/nix/store/5xs61b2pdn6nn4j3jwmp9j0c8sfbz8bk-python2.7-jaraco.classes-1.5
/nix/store/ssc9b4k97cli0rqadfvbw8rwaqc29d04-python2.7-jaraco.collections-1.5.3
/nix/store/iqfg9s9px2d2bdjay6k460rd96dxdgw8-python2.7-jaraco.itertools-2.4

Success on x86_64-linux (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools
The following builds were skipped because they don't evaluate on x86_64-linux: python27Packages.ja
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/lfwrbas9sdrnadkyrsywb0g94xp2mjpv-errbot-5.2.0/lib  /nix/store/lfwrbas9sdrnadkyrsywb0g94xp2mjpv-errbot-5.2.0/bin
patching script interpreter paths in /nix/store/lfwrbas9sdrnadkyrsywb0g94xp2mjpv-errbot-5.2.0
checking for references to /build in /nix/store/lfwrbas9sdrnadkyrsywb0g94xp2mjpv-errbot-5.2.0...
wrapping `/nix/store/lfwrbas9sdrnadkyrsywb0g94xp2mjpv-errbot-5.2.0/bin/errbot'...
/nix/store/lfwrbas9sdrnadkyrsywb0g94xp2mjpv-errbot-5.2.0
/nix/store/6anwg1j9ay3aiypszhxg468z3cmd1x85-python2.7-inflect-1.0.0
/nix/store/y4l47vbkjspkbaly56b8nvrdmns4nwxc-python2.7-irc-16.4
/nix/store/67psa9g2b9abkywnqrsigh7wr0jxm6n0-python2.7-jaraco.classes-1.5
/nix/store/g8y405kvb8p3agblpy8a19vvvx3q50k5-python2.7-jaraco.collections-1.5.3
/nix/store/d2ip3svqq9ilwk981zal55s1f18lkx9r-python2.7-jaraco.itertools-2.4

Success on x86_64-darwin (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools, python27Packages.jaraco_logging, python27Packages.jaraco_stream, python27Packages.jaraco_text, python27Packages.jinja2_pluralize, python36Packages.diff_cover, python36Packages.inflect, python36Packages.irc, python36Packages.jaraco_classes, python36Packages.jaraco_collections, python36Packages.jaraco_itertools, python36Packages.jaraco_logging, python36Packages.jaraco_stream, python36Packages.jaraco_text, python36Packages.jinja2_pluralize
Partial log (click to expand)
/nix/store/hpp2gb8bcsfv4v33qz7j1bdl5lkrb1f5-python3.6-diff_cover-1.0.2
/nix/store/a31wsn7slj0zb5m96ng3kx0042ghwp8v-python3.6-inflect-1.0.0
/nix/store/ca6gcyazil3zcxd5nbsif6rr6fmhdg8h-python3.6-irc-16.4
/nix/store/2fxh1a4nrnkpsxmn0xhwiijs79kyxkjk-python3.6-jaraco.classes-1.5
/nix/store/7s9y1h3w0j2swkps41s344f85l0wfk2p-python3.6-jaraco.collections-1.5.3
/nix/store/m7j1ik5zk78wlk5lk5qki31hw02g3iq4-python3.6-jaraco.itertools-2.4
/nix/store/3ir5gq7qhl3r4hy0xx19dfgg0icv50zf-python3.6-jaraco.logging-1.5.2
/nix/store/w33klnwdh582hqnzcs4z1raqzaiymnsk-python3.6-jaraco.stream-1.2
/nix/store/y23wx5am7babk0r16npjq8liaair5amv-python3.6-jaraco.text-1.10.1
/nix/store/n0b9ldard0q76cm367q4h7my8g17dnrp-python3.6-jinja2_pluralize-0.3.0

Success on x86_64-darwin (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools, python27Packages.jaraco_logging, python27Packages.jaraco_stream, python27Packages.jaraco_text, python27Packages.jinja2_pluralize, python36Packages.diff_cover, python36Packages.inflect, python36Packages.irc, python36Packages.jaraco_classes, python36Packages.jaraco_collections, python36Packages.jaraco_itertools, python36Packages.jaraco_logging, python36Packages.jaraco_stream, python36Packages.jaraco_text, python36Packages.jinja2_pluralize
Partial log (click to expand)
/nix/store/hpp2gb8bcsfv4v33qz7j1bdl5lkrb1f5-python3.6-diff_cover-1.0.2
/nix/store/a31wsn7slj0zb5m96ng3kx0042ghwp8v-python3.6-inflect-1.0.0
/nix/store/ca6gcyazil3zcxd5nbsif6rr6fmhdg8h-python3.6-irc-16.4
/nix/store/2fxh1a4nrnkpsxmn0xhwiijs79kyxkjk-python3.6-jaraco.classes-1.5
/nix/store/7s9y1h3w0j2swkps41s344f85l0wfk2p-python3.6-jaraco.collections-1.5.3
/nix/store/m7j1ik5zk78wlk5lk5qki31hw02g3iq4-python3.6-jaraco.itertools-2.4
/nix/store/3ir5gq7qhl3r4hy0xx19dfgg0icv50zf-python3.6-jaraco.logging-1.5.2
/nix/store/w33klnwdh582hqnzcs4z1raqzaiymnsk-python3.6-jaraco.stream-1.2
/nix/store/y23wx5am7babk0r16npjq8liaair5amv-python3.6-jaraco.text-1.10.1
/nix/store/n0b9ldard0q76cm367q4h7my8g17dnrp-python3.6-jinja2_pluralize-0.3.0

Success on x86_64-linux (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools, python27Packages.jaraco_logging, python27Packages.jaraco_stream, python27Packages.jaraco_text, python27Packages.jinja2_pluralize, python36Packages.diff_cover, python36Packages.inflect, python36Packages.irc, python36Packages.jaraco_classes, python36Packages.jaraco_collections, python36Packages.jaraco_itertools, python36Packages.jaraco_logging, python36Packages.jaraco_stream, python36Packages.jaraco_text, python36Packages.jinja2_pluralize
Partial log (click to expand)
/nix/store/va9ww13am40nnwdryndgndfi3grw2kax-python3.6-diff_cover-1.0.2
/nix/store/23vhikml9n4ljpziyml66v4zlsbkj6g9-python3.6-inflect-1.0.0
/nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4
/nix/store/a9xqwr1dj9l9prf9bicxlmbqak6y1225-python3.6-jaraco.classes-1.5
/nix/store/0zw3caky49bb9v2cvnrxbxylwckwvzkz-python3.6-jaraco.collections-1.5.3
/nix/store/jijpjz6g902dcw1cs0jdic040lbfz3zn-python3.6-jaraco.itertools-2.4
/nix/store/44nar3xrdr2xqzfh9scv7yv5hvgqkcrb-python3.6-jaraco.logging-1.5.2
/nix/store/slnkas15mia93ahkyzbvy9g700m04dy8-python3.6-jaraco.stream-1.2
/nix/store/5k5qigay3hi7hai9ssix77d91f544scp-python3.6-jaraco.text-1.10.1
/nix/store/d5rm0g37f55yphwd8mwc5b7gr08yxgqh-python3.6-jinja2_pluralize-0.3.0

Success on aarch64-linux (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools, python27Packages.jaraco_logging, python27Packages.jaraco_stream, python27Packages.jaraco_text, python27Packages.jinja2_pluralize, python36Packages.diff_cover, python36Packages.inflect, python36Packages.irc, python36Packages.jaraco_classes, python36Packages.jaraco_collections, python36Packages.jaraco_itertools, python36Packages.jaraco_logging, python36Packages.jaraco_stream, python36Packages.jaraco_text, python36Packages.jinja2_pluralize
Partial log (click to expand)
/nix/store/rpgikr3qyanha22jpbm6xcyh7y2dkw5g-python3.6-diff_cover-1.0.2
/nix/store/65rrsnlr1gq60fbkyrb3wpyzw9hy5kyp-python3.6-inflect-1.0.0
/nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4
/nix/store/p5dv4awfd9wxncz7bcfj4w9l55fm7zgq-python3.6-jaraco.classes-1.5
/nix/store/ls07p2yl183wz9vrsb3csaf78fmyajzs-python3.6-jaraco.collections-1.5.3
/nix/store/lw6lp15ggfs5f9gm0d08jydbrsqf1yid-python3.6-jaraco.itertools-2.4
/nix/store/6asjhph55w85sq3221w7cwqq5x3mnq2x-python3.6-jaraco.logging-1.5.2
/nix/store/73cldayzpwjcgmcgn7zpv4mm23ygaxfv-python3.6-jaraco.stream-1.2
/nix/store/v7qgcaxz0n3f7ww8f6qw56n11k6ahqyn-python3.6-jaraco.text-1.10.1
/nix/store/5lvf7lydm2mpl3zri1dacky3a28vim6q-python3.6-jinja2_pluralize-0.3.0

Success on aarch64-linux (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools, python27Packages.jaraco_logging, python27Packages.jaraco_stream, python27Packages.jaraco_text, python27Packages.jinja2_pluralize, python36Packages.diff_cover, python36Packages.inflect, python36Packages.irc, python36Packages.jaraco_classes, python36Packages.jaraco_collections, python36Packages.jaraco_itertools, python36Packages.jaraco_logging, python36Packages.jaraco_stream, python36Packages.jaraco_text, python36Packages.jinja2_pluralize
Partial log (click to expand)
/nix/store/rpgikr3qyanha22jpbm6xcyh7y2dkw5g-python3.6-diff_cover-1.0.2
/nix/store/65rrsnlr1gq60fbkyrb3wpyzw9hy5kyp-python3.6-inflect-1.0.0
/nix/store/3cszviqbi1l2zcq3f0invkmyvy9g69vd-python3.6-irc-16.4
/nix/store/p5dv4awfd9wxncz7bcfj4w9l55fm7zgq-python3.6-jaraco.classes-1.5
/nix/store/ls07p2yl183wz9vrsb3csaf78fmyajzs-python3.6-jaraco.collections-1.5.3
/nix/store/lw6lp15ggfs5f9gm0d08jydbrsqf1yid-python3.6-jaraco.itertools-2.4
/nix/store/6asjhph55w85sq3221w7cwqq5x3mnq2x-python3.6-jaraco.logging-1.5.2
/nix/store/73cldayzpwjcgmcgn7zpv4mm23ygaxfv-python3.6-jaraco.stream-1.2
/nix/store/v7qgcaxz0n3f7ww8f6qw56n11k6ahqyn-python3.6-jaraco.text-1.10.1
/nix/store/5lvf7lydm2mpl3zri1dacky3a28vim6q-python3.6-jinja2_pluralize-0.3.0

Success on x86_64-linux (full log)
Attempted: errbot, python27Packages.inflect, python27Packages.irc, python27Packages.jaraco_classes, python27Packages.jaraco_collections, python27Packages.jaraco_itertools, python27Packages.jaraco_logging, python27Packages.jaraco_stream, python27Packages.jaraco_text, python27Packages.jinja2_pluralize, python36Packages.diff_cover, python36Packages.inflect, python36Packages.irc, python36Packages.jaraco_classes, python36Packages.jaraco_collections, python36Packages.jaraco_itertools, python36Packages.jaraco_logging, python36Packages.jaraco_stream, python36Packages.jaraco_text, python36Packages.jinja2_pluralize
Partial log (click to expand)
/nix/store/va9ww13am40nnwdryndgndfi3grw2kax-python3.6-diff_cover-1.0.2
/nix/store/23vhikml9n4ljpziyml66v4zlsbkj6g9-python3.6-inflect-1.0.0
/nix/store/ibq3fg1asdxgnqbqs5zb2wfznh16qc09-python3.6-irc-16.4
/nix/store/a9xqwr1dj9l9prf9bicxlmbqak6y1225-python3.6-jaraco.classes-1.5
/nix/store/0zw3caky49bb9v2cvnrxbxylwckwvzkz-python3.6-jaraco.collections-1.5.3
/nix/store/jijpjz6g902dcw1cs0jdic040lbfz3zn-python3.6-jaraco.itertools-2.4
/nix/store/44nar3xrdr2xqzfh9scv7yv5hvgqkcrb-python3.6-jaraco.logging-1.5.2
/nix/store/slnkas15mia93ahkyzbvy9g700m04dy8-python3.6-jaraco.stream-1.2
/nix/store/5k5qigay3hi7hai9ssix77d91f544scp-python3.6-jaraco.text-1.10.1
/nix/store/d5rm0g37f55yphwd8mwc5b7gr08yxgqh-python3.6-jinja2_pluralize-0.3.0


action-setup V2 issue: ERR_PNPM_META_FETCH_FAIL

Recently when running pnpm/action-setup@v2 in GitHub CI I got this error:
GET https://registry.npmjs.org/pnpm: Value of "this" must be of type URLSearchParams

Using node-version 20
It happens during self-install, seems to be a connection problem
It started about one day ago

I have also faced the same issue.

Can confirm this started some time between now and 17:00 UTC yesterday, when it was working fine. I suspect NPM have put out an update which broke it, perhaps relating to the deprecation warning for registry.npmjs.org:
» curl -I https://registry.npmjs.org
HTTP/2 200
date: Thu, 04 Jul 2024 06:13:03 GMT
content-type: application/json
cf-ray: 89dcf7980d501bc4-MAD
cf-cache-status: DYNAMIC
npm-notice: This endpoint is deprecated. Use https://replicate.npmjs.com instead.
server: cloudflare

updated  pnpm/action-setup@v2 =>  pnpm/action-setup@v4 fix the issue

Duplicate of #135.
The proposed "fix" is a work around and method of going forward provided GitHub workflows can be readily updated and approved. But it does not resolve stuck / failing workflow runs, many of which cannot be triggered again without additional code updates via merge or rebase of each one to pull in the use of the updated workflow action version.

Fixed in 2.4.1 https://github.com/pnpm/action-setup/releases/tag/v2.4.1


Why does the DecoderWithAttention still need encoded captions in forwarding when validating

Thanks for your work first! learned a lot.
In the forward function of DecoderWithAttention, I see at each output turn, the LSTMcell need an embedded encoded_captions, which is a supervised input. This can be understand in training, but in validating process, the place of the real embedded encoded caption should not be taken by the predicted caption last turn?
I don't know where the problem is?
h, c = self.decode_step(
torch.cat([embeddings[:batch_size_t, t, :], attention_weighted_encoding], dim=1),
(h[:batch_size_t], c[:batch_size_t]))  # (batch_size_t, decoder_dim)

I guess this is only for evaluation. If you check their code caption.py for inference, they used the embedding generated by the model in inference time only instead.
The validation evaluation is only used to be compared with the one in training time and select a model.


Support default deny with external Prometheus

Currently there is no support for a default deny setup, if using an external Prometheus.
This can be achieved by adding the ability to set extraIngress and extraEgress.
There is already a PR open #183 to support extraEgress, but only if using an internal Prometheus.

As long as it's not a breaking change I don't think there would be any objections to a PR for it.


bug: inputs/NativeFormControl props fix

Describe the bug
Remove props value, and spread props.

set default fullWidth as true

Closing as done.


Upgrade base image to alpine:3.4

The new alpine:3.4 base image should fix the issue with dns resolving not being able to use search-attribute in the etc/resolv.conf as described for example in https://github.com/gliderlabs/docker-alpine/issues/8. This would allow using this image as base for containers in Docker Cloud and on Kubernetes that rely on this functionality for the service discovery to work.

https://github.com/docker-library/python/commit/0610d9ccc2dc8ad4ab6038f775e7a28cadf12114 :+1:


Add the SyncArgs option and --sync-args flag

Currently there is no option to add arguments to the helm upgrade command without adding them to helm diff too.
This PR aims to solve this problem.
My usecase:
I would like to add the --labels flag to all helm upgrade invocations.
If I use --args, the diff fails because the --labels flag is unknown for the diff command.

@inteon please update index.md.

@yxxhero I updated the file as requested.

@inteon why not add this flag into sync comand?

I added the flag.

@inteon OOPS. unit test failed.

@inteon OOPS. unit test failed.

Sorry, typo

Thanks!


Easier traversal to Variant

Can we find the IDs of the variants owned by a classification somehow?
.get_variant_by_name() Seems to return many more rows than KlassVariant...
Does this need to better documented as well?
Example code
import klass

nus_til_kltrinn = klass.KlassVariant(2788)
print(nus_til_kltrinn)

nus = klass.KlassClassification(36)
print(nus)

search = nus.get_variant_by_name("Klassetrinn", from_date="2024-01-01")
print(search)

search.data

search.data.drop_duplicates()

nus_til_kltrinn.data

klass.requests.klass_requests.variant("36", "Klassetrinn", "2024-01-01")

Its possible to get versions from the classification, and variants from the version.
So it should be able to do the same type of traversal as Codes. Where we have a method below Classification that traverses "through" Version to get to Variant.
def get_latest_variant_by_name(classification_id, variant_name: str) -> klass.KlassVariant:
    classification = klass.KlassClassification(classification_id)
    version_ids = {x["version_id"]: x["name"] for x in classification.versions[::-1]}
    newest_version_id = list(nus_version_ids.keys())[0]
    variants = classification.get_version(newest_version_id).variants_simple()
    results = {}
    for k, v in variants.items():
        if variant_name.lower() in v.lower():
            results[k] = v
    if len(results) > 1:
        raise ValueError("Variant_name maybe not specific enough, getting multiple results.")
    if len(results) == 0:
        return None
    return klass.KlassVariant(list(results.keys())[0])
nus_til_klassetrinn = get_latest_variant_by_name(36, "Klassetrinn")


fixed initializer

Hello, author,
First of all, thank you very much for your work! The training parameters are randomly initialized in your code. But now, I need a fixed initialization, what should I do?

I'm not sure what exactly your use case is, and I'm also not sure if there is an elegant way to do that. One hacky approach that should definitely work though is by changing the line https://github.com/shchur/gnn-benchmark/blob/master/gnnbench/run_single_job.py#L123 to
tf.set_random_seed(123)

Thanks for your reply, In your code,  two experiments can't get the same result under the same parameter setting. so I think it is caused by different initialization. I used the method you said, but I still can't get the same result. I want to get the same experimental result under the same parameter setting. can you help me?

Can you please describe what exactly is the experiment that you are trying to do? What are the commands that you are running, and in what cases do you expect to get the same output from the model?

I run your code(one split, one initialization ) on GCN model in Cora dataset twice, I used the default parameters. I can be sure that the data split and parameter setting are the same between the two experiments, But I got different result. If I want to get the same result, what should I do?

This is not really the use case that we had in mind for this framework, but it should be possible to get it done.
Can you list the commands that you are running & paste the contents of all the YAML config file that you are using?
There are a few things that might be at play here:

TensorFlow behavior on GPU might not be deterministic. However, this should only lead to very minor changes in performance, and it should still be possible to get the same initialization for the weight matrices.
If you say num_inits: 2 in your YAML config file, the model will be run twice using two different initializations. Even though the random seed is fixed, the model will actually call sess.run(init_op) twice, which will produce two different initializations. A simple example: even if you have a fixed random seed, if you call np.random.rand() twice in one script, you will get two different numbers. However, if you rerun the script, the first value that you get will always be the same.

The proper way to achieve the behavior that you want is by setting num_inits: 1, and adding the same experiment to the DB twice using create_jobs.py.
One way to find the source of the problem, you can try calling tf.trainable_variables(), evaluating them right after the initialization using sess.run() and saving them to disk using np.save().
You should add this code here. Then you can inspect the matrices saved to the disk. If they are the same in both cases, it means that your different results are due-to non-determinism of TensorFlow. If the weight matrices are different, it means that the TF random seed is not set properly and we can look into it further.


Rules COM812,PT014 cause autofix error

Ruff 0.0.287 (latest changes from main branch)
ruff  *.py --select COM812,PT014 --no-cache --fix

file content(at least simple cpython script shows that this is valid python file):
import pytest
@pytest.mark.parametrize(
    "pole", [0.8, 0.8 * np.exp(1j * np.pi / 4), 1.2, 1.2 * np.exp(1j * np.pi / 4)]
)
def test_streaming_match_full():
    N = 50

error
/home/rafal/test/tmp_folder/1832972.py:3:84: PT014 Duplicate of test case at index 2 in<EMAIL_ADDRESS>/home/rafal/test/tmp_folder/1832972.py:3:89: PT014 Duplicate of test case at index 3 in<EMAIL_ADDRESS>/home/rafal/test/tmp_folder/1832972.py:3:118: COM812 Trailing comma missing
Found 3 errors.

error: Autofix introduced a syntax error. Reverting all changes.

This indicates a bug in `ruff`. If you could open an issue at:

    https://github.com/astral-sh/ruff/issues/new?title=%5BAutofix%20error%5D

...quoting the contents of `/home/rafal/test/tmp_folder/1832972.py`, the rule codes COM812, PT014, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!

python_compressed.zip

No longer cause problem


Resolve SharePoint Groups

Hi all,
Using this directive, I can look up people, but it doesn't appear to resolve groups. Am I missing something?
Thanks,
K.

I was. In the sp-peoplepicker.js file, there is a clear option to change to resolve groups (PrincipalType)


[SPARK-45304][BUILD] Remove test classloader workaround for SBT build

What changes were proposed in this pull request?
This PR proposes to remove the workaround for JDK 8 in SBT build, see https://github.com/apache/spark/pull/30198
Why are the changes needed?
We don't need this with JDK 11+ anymore, see https://github.com/apache/spark/pull/30198.
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
CI
Was this patch authored or co-authored using generative AI tooling?
No.

This one I am pretty sure as it reverts my own PR :-). I am going to merge this when the tests pass - it's a clean revert.

Merged to master.


Fix subscription query maximum number of results

Contains a critical fix for rest hook subscriptions.  It currently only searches the default max number of results which is 10.  This occurs in two locations:

When the server starts up it reads in all active subscriptions
When evaluating subscription criteria
We need to set the limit higher, in this case 10000, but a higher number can be used.

Contains an enhancement to validate the subscription criteria before performing an update or delete.  This will prevent the FHIR server from making subscription queries it cannot parse.  If there is an error in the criteria, a bad input return code is returned before the server saves a subscription.
Also removed some unneeded web.xml file templates.

Coverage decreased (-0.02%) to 76.814% when pulling 0b578e3b0bf63dfa2d2c4253a0a519fa954b903d on validate-subscription-criteria into 79378772b7df26219659343bbfc4c58d3a8a792e on master.


tox: Dropping py26 testenv

Dropping the tox py26 env as tests are failing with:
  prefix = urljoin(prefix, "{}/".format(CUR_API_VERSION))
ValueError: zero length field name in format

Current output of running tox:
  docs: commands succeeded
  flake8: commands succeeded
  ERROR:   py26: commands failed
  py27: commands succeeded
  py34: commands succeeded
  py35: commands succeeded
  py36: commands succeeded

Fixes: https://github.com/ansible/tower-cli/issues/604

Coverage increased (+0.1%) to 63.827% when pulling 10e2845ddd3e5d8cc9269960878c7da140a4d23c on Spredzy:drop_py26_tox_env into 2c115877a36238b94fb8af1ff32915ebaf868e60 on ansible:master.

We stopped running these in Travis a while ago https://github.com/ansible/tower-cli/pull/365, but we kept it as part of the tox config for running locally, but given nearly a year since that time, I agree it's high-time to remove that as well.


pylance could not recognize variables in nested lambda

Environment data

Language Server version: <IP_ADDRESS>
OS and version: macOS 10.15.7
Python version (& distribution if applicable, e.g. Anaconda): 3.8.2

Expected behaviour
map(lambda a: map(lambda b: a + b, a), ["a"])

a is defined here, by the outer-most lambda, being used by the inner lambda. No error should be reported.
Actual behaviour
Pylance reports: Undefined variable: 'a' Python(undefined-variable)
Logs

> /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.2.521830307-dev/pythonFiles/pyvsc-run-isolated.py flake8 --config=/Users/james/Downloads/programmation/automation/.flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Downloads/programmation/test/test.py
cwd: ~/Downloads/programmation/test
> /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.2.521830307-dev/pythonFiles/pyvsc-run-isolated.py flake8 --config=/Users/james/Downloads/programmation/automation/.flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Downloads/programmation/test/test.py
cwd: ~/Downloads/programmation/test
> /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.2.521830307-dev/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --show-column-numbers --config-file=/Users/james/Downloads/programmation/automation/mypy.ini ~/Downloads/programmation/test/test.py
cwd: ~/Downloads/programmation/test
> /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.2.521830307-dev/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --show-column-numbers --config-file=/Users/james/Downloads/programmation/automation/mypy.ini ~/Downloads/programmation/test/test.py
cwd: ~/Downloads/programmation/test
> /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.2.521830307-dev/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/Downloads/programmation/test -s
cwd: ~/Downloads/programmation/test
> /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.2.521830307-dev/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/Downloads/programmation/test -s
cwd: ~/Downloads/programmation/test
##########Linting Output - mypy##########
Success: no issues found in 1 source file
##########Linting Output - flake8##########

Code Snippet / Additional information

map(lambda a: map(lambda b: a + b, a), ["a"])

That error isn't coming from Pylance. You can tell because the error message says Python(undefined-variable) rather than Pylance(reportUndefinedVariable). I'm not sure which extension is generating this. Do you have pylint enabled perhaps?

That's MPLS. I think your languageServer setting is set to "Microsoft", not "Pylance".

Sorry, my bad. I thought I was using Pylance (picked Pylance in the setting, but it gets reset to Microsoft for some reason). Pylance did not report any error on this code. Closing this now.


Temporary folder is created both in /tmp and in my project's directory in WSL

Summary
It is probably caused by some extenral dependency that creates the temp files, but I'm reporting it here as I don't know what exactly is causing it.
When I run vite (or pnpm start in the repro repo below), generally everything works fine, but a new folder is created in the main project directory, named more or less \\wsl.localhost\Ubuntu-20.04\tmp\tmp-web-ext--26812-4hebg9Fx5Dr7 (notice the backslashes). Interestingly, a folder with exactly the same name is created in /tmp directory in the Linux file system.
If I remove it, nothing really breaks, the extension and hot reloading is working fine in the browser, but when I'm making changes it gets recreated. This is super annoying as this folder is not removed automatically when I close Vite and another one gets created after the restart. For now I gitignored it but it's really annoying and it shouldn't happen.
I'm quite certain this only happens on WSL so if you don't have it set up it's going to be difficult to reproduce. But I'm obviously willing to help out with debugging, just need some pointers on what might be causing it.
Reproduction
https://github.com/paolostyle/vite-web-ext-repro
Focus mostly on vite.config.ts, the rest I think is mostly irrelevant. Chrome runs from WSL so that might also potentially be the cause (?)
Environment
Likely critically important information that is not visible below - I'm running Ubuntu under WSL on Windows 11.
  System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 5800HS with Radeon Graphics
    Memory: 2.51 GB / 7.47 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.17.0/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
    pnpm: 9.12.3 - ~/.nvm/versions/node/v20.17.0/bin/pnpm
    bun: 1.1.29 - ~/.bun/bin/bun
  Browsers:
    Chrome: 131.0.6778.69

What version of web-ext-run is installed?

0.2.2 it seems.
FWIW I found out that WXT exists and migrated to that, though in any case this should probably be fixed.

I spent some time debugging and it seems like it's not an issue with web-ext-run or even web-ext but rather with chrome-launcher. See this issue: https://github.com/GoogleChrome/chrome-launcher/issues/334. The workaround described there does solve the issue, so I can create a PR to  web-ext-run if you'd be interested. This change makes a bunch of tests fail though so I'd have to look into it, or optionally we could just add this flag only when in WSL using something like is-wsl. On the other hand WXT makes me install the extension manually (perhaps we could try to solve it, at least partially?), so this would only be useful for this Vite plugin.
Overall ideally this issue would be fixed in chrome-launcher but I feel like this is going to be a huge rabbit hole. I won't even attempt to fix it upstream in web-ext because I don't think it supports WSL very well anyway and they probably just want to have it fixed in chrome-launcher.
Let me know what do you think about this.
As for the GH issue itself - agreed, if you can move this issue there (I'm not sure if it's possible but I think it is) that would be great.

On the other hand WXT makes me install the extension manually (perhaps we could try to solve it, at least partially?)

Oh yeah, after writing this plugin and seeing how many people were running into problems with WSL, I disabled auto-opening the browser in WXT. My recommendation would be to not use WSL with the plugin, use CMD/Powershell instead. There are more issues than just this one with WSL support, that's why I recommend not using it.
And I agree that this should be fixed in chrome-launcher.


Split into two OPAM packages to support installation without libffi.

Pinning now requires OPAM 1.2.1.


Virus Total Integration

In the current design, mod authors can specify download links for mods containing .dll, .exe and other executable files.
I think it needs a "Check on Virus Total" button that can be clicked after downloading, but before installing the mod and any of its dependencies.

Yes we'll probably need to figure out some type of protection
On Tue, Jul 19, 2022 at 3:48 AM Albeoris @.***> wrote:

In the current design, mod authors can specify download links for mods
containing .dll, .exe and other executable files.
I think it needs a "Check on Virus Total" button that can be clicked after
downloading, but before installing the mod and any of its dependencies.
—
Reply to this email directly, view it on GitHub
https://github.com/KiameV/ffprModManager/issues/20, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGILGUVBLJVQ75QB5T4BGADVUZ2VFANCNFSM537KPWMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>