Change supported Windows OS version support table in docs to reference a .yaml file

This is a Feature Request
Update how https://kubernetes.io/docs/setup/production-environment/windows/intro-windows-in-kubernetes/#windows-os-version-support gets populated so we don't need to make PRs to kubernetes/website to update this tabel.
Comments

@neolit123 suggested keeping a .yaml file in one of the kubernets-sigs repo and pulling data from that.
/sig windows

If we keep that YAML file in another repo, is there a reason why that's better than keeping it in this repo? I'm imagining that maintenance would be fairly similar.
We can use Hugo data to make a shortcode that renders as the version support table. (My gut feeling is that maintaining a Markdown table is about as much effort, though).
If we use YAML and it's in this repo, we can do CI checks on changes to only allow valid updates.

I think it would be fine to keep it in this repo too.

two minor downsides that i see of using k/website are:

machine readable consumers of the YAML might wonder this file lives in the website repository.
requires approval from k/website owners for changes on this rather technical aspect maintained by SIG Windows (version additions).

We can use Hugo data to make a shortcode that renders as the version support table. (My gut feeling is that maintaining a Markdown table is about as much effort, though).

if this would be only for human readers a markdown file would suffice.
i have a wild guess that someone might want to know to automate their infrastructure provisioning (VMs) based on the k8s version.
for non-humans there has to be a minimal API here - e.g.:
- kubernetesVersion: 1.17
  windowsLTSVersions:
  - windows-server-2019
  windowsSACVersions:
  - windows-server-1809
- kubernetesVersion: 1.18
  windowsLTSVersions:
  - windows-server-2019
  windowsSACVersions:
  - windows-server-1809
  - windows-server-1903
  - windows-server-1909
...

my vote would be to have the file machine readable in something like:
https://sigs.k8s.io/sig-windows-tools/supported-versions/supported-versions.yaml
and import it on the k/website page with Hugo data.
if machine readable is too much at this stage, my vote would to have the file in:
https://sigs.k8s.io/sig-windows-tools/supported-versions/supported-versions.md


Helm chart bring your own config.toml

Is your feature request related to a problem? Please describe.
The config.yaml is hardcoded into the docker container. This is fine, but the helm chart needs a way to override this config file.
Describe the solution you'd like
Option to mount an externally provided config file. I think most options are available as environment variable overrides, but the athens process does not log its config. It's unclear what the current settings are from the combination of config file and env variable overrides.
Describe alternatives you've considered
A long list of helm values to override all settings inside the container. nginx does this https://github.com/helm/charts/tree/master/stable/nginx-ingress#configuration
Additional context

I came here to ask for the same feature. The problem with using environment variables in values.yaml is that you can't use templates with them. This is forcing me to use fixed resource names and YAML anchors. Being able to generate a custom config file with a template and have it mounted into the container would solve this problem.

I gave it a shot, but would love to get your feedback before publishing. Can you give it a try?
I figured that if you want to provide a full config.toml it should be a secret, as it contains passwords. If you want to provide a basic configuration in plain text (ConfigMap), you can still provide individual passwords through ENV from a secret.

@mxk or @drewwells : does my approach suit your needs? Have you had a chance to give it a try?


Card Detail - Show Preview Season Nicknames

I have a catalog of preview season nicknames, might as well include them :)
May need to have a toggle for where to display them.

Started implementing this here: https://github.com/crookedneighbor/shambleshark/commit/36cc8ade64662a20a111f7a99bc7067a0b75bda2

Started implementing this here: https://github.com/crookedneighbor/shambleshark/commit/36cc8ade64662a20a111f7a99bc7067a0b75bda2


[feature-request] enable push of the data to a remote server (git)

Story
As a normal user,
I want to sync over a private/public repo my time tracking data
for security reason and for share with the team.
Possible approach
You store the data under ~/.timetrace/ it'll be possible to:

add a command timetrace sync config, to guide the user in the configuration (git init, remote and first commit) of the data [some params can be: branch, subpath]
add a command timetrace sync pull to pull the data from the repo
add a command timetrace sync push to push the data to the repo
add a command timetrace sync strategy, to configure if sync on each closed record, or daily, ...

Advantage
In the future you can plan to offer a server side that allow a scrum master to overview the team

@aligator PTAL
Possible implementations:

As an timetrace extension (see #104)
As a command that configures a system CronJob


Add OnUpdate like OnComplete

Thank you for this Asset But please add OnUpdate to Update Parameter In Some Methods or Any Line of code .

Added an OnTick method to the GTween class. Will be available on the next version :)


Android fix for border radius hides last separator

After upgrading to 0.14.0, we noticed that the last separator in our SegmentedControls was no longer showing on Android.  iOS continues to work fine.
0.13.0:

0.14.0:

After some digging and debugging, what appears to be happening is that the addition of the borderRadius* properties to the right edge of the last option is also clipping the border on the left.
This appears to be caused by https://github.com/facebook/react-native/issues/11042.
As a result, it may be best to just wait for an upstream fix (https://github.com/facebook/react-native/pull/11706), but there may be some kind of workaround we could do here until that happens.
One idea I have is to apply the separator style properties to the right border of the next-to-last option, rather than the left border of the last option.  This is an ugly hack, but would work around the issue.

https://github.com/facebook/react-native/pull/11706 is already closed.
and I update react-native to 0.42.0, but the problem still exists ?

@wuxudong  fixed?

Setting containerBorderRadius to zero is a workaround if you don't mind having square buttons.


Bundle size is bigger than necessary due to ES6 imports

I am using react-router-dom and webpack 2 and it seems the tree shaking does not work well enough to remove unused modules.
I managed to fix it locally by changing the import style from
import { Router } from 'react-router'

to
import Router from 'react-router/Router'

everywhere.
Version
4.0.0
Is this something that would be interesting to do a PR on?

I don't know enough about tree shaking to give any real input on this, but I will mention that this is related to #4432.

The ES build with webpack 2.3 does not solve the issue. Only changing all the imports improved the situation since any import to react-router will bring in all the modules.

Are you sure you're using the ES build? It leaves import/exports untouched, so Webpack should be able to tree-shake it.
I'm thinking this is either some misconfiguration of webpack or babel.

Yes I am sure, see the attached image. The StaticRouter, Prompt and createMemoryHistory should be removed they stay there.
When I check the reason using the webpack stats analyser, the reason for those files being included is the index file of react-router.

These issues might be relevant.
https://github.com/webpack/webpack/issues/4080
https://github.com/mishoo/UglifyJS2/issues/1261
Also the image above was with using a babel plugin (babel-plugin-transform-imports) to do direct import otherwise the bundle looks like this. Nothing gets removed.

But are you sure it's using the es build that's included in the npm package? That's the key thing. What if you alias react-router to react-router/es?

I am sure (notice the 'es' folder above in the screenshots) and have tried the alias with the same result.
So I am pretty sure that the build is pointing to the ES build.
My question is whether a PR would be accepted with a change to fix this problem.

Sure, but what would be the appropriate change? AFAIK, we're doing the same thing on Redux and it works fine there.

The change would the react router dom export refer to direct import instead of importing the top level of react-router.
I have tried this locally and it did fixed it.

Would fixing this issue solve this you think? @ruiaraujo.
I've recently upgraded to webpack 3 and am trying to optimize my bundle with the new webpack.optimize.ModuleConcatenationPlugin().
# In my build command.
[35] ../node_modules/react-router-dom/es/index.js + 23 modules 41.6 kB {0} [built]
       ModuleConcatenation (inner): module is used with non-harmony imports from ...[list of my components importing { STUFF } from 'react-router'dom']

@chrisdl That is odd. You can try that branch in your local branch and report back.

@ruiaraujo im actually having some issues installing the PR locally. Is there a better way than using to your knowledge?
yarn add ReactTraining/react-router#5095/head

Do you know about babel-plugin-import?


Website problem

You website is blocked by my antivirus

Duplicate of https://github.com/Ionaru/easy-markdown-editor/issues/526


Improve warning message for clock sync issues

Just tested this.  Messages will now look like this:
Aug  3 11:56:28 vm043 EBLOG[2357]: [2017-08-03 11:56:24] engineblock.NOTICE: IssueInstant of SAML message from IdP "http://<IP_ADDRESS>/idp/saml2/idp/metadata.php" is in 179 seconds in the future; might indicate (local or remote) clock synchronization issues {"session_id":"cyhp2mAU,wljvRYRRuoNG-ODI84","request_id":"5982f347862dc"} []
Aug  3 11:57:24 vm043 EBLOG[1144]: [2017-08-03 11:57:23] engineblock.NOTICE: IssueInstant of SAML message from IdP "http://<IP_ADDRESS>/idp/saml2/idp/metadata.php" is in 49 seconds in the future; might indicate (local or remote) clock synchronization issues {"session_id":"zvxqV6JSp5OznyuLIbrZpO5oDh0","request_id":"5982f382d3502"} []

done


neon: Complete Implementations of all incomplete function families

Includes the functions from the following famillies (WIP) :

sub
shr_n
sra_n
fma_lane
dup_lane
neg
padd
pmax
pmin
qdmulh
rndn
qrdmulh
rshr_n
qrshrun_n

I added a custom function in the rshr_n family. I had not used the correct naming scheme for custom functions. I'm adding the corrections as a separate commit instead of doing a force push.
Changes simde_vrshrs_n_s32 to simde_x_rshrs_n_s32.
Removes native macros.


Updates for apiVersion v1

Updates for apiVersion v1 because earlier apiVersions have
been obsoleted.
Also cniVersion is changed to required to 0.2.0
Signed-off-by: Thomas F Herbert<EMAIL_ADDRESS>

Please merge pull request number #299 which fixes the kubeadm api versions instead of this one.


Feature cargo logs query

closes #223

Code cov is failing. Should I try to improve it? Also changed default behaviour of cargo logs, follow defaults to false now to match docker log command

It's normal to loose a bit of CodeCov dont worry about that!
You can try to improove it if you want. But we should create another issue for it i think

Do you want to update the dashboard/app aswell to apply these features once merged ?

Do you want to update the dashboard/app aswell to apply these features once merged ? It's kinda needed because we cannot output 20k file logs without make the ui laggy

sure


WIP: Warn if ICA was performed on potentially rank-deficient data

Reference issue
Closes #8313, #8316, #7727
What does this implement/fix?

Emits a warning if we have reason to believe ICA operated on rank-deficient data.
plus some small cleanups

Additional information
WIP because working on this PR exposed that the default for max_pca_components, currently n_channels, might not be the best choice. Lots of tests fail now because we get the new warning, typically:
E   RuntimeWarning: It is likely that we operated on rank-deficient data, which is known to be problematic. The estimated rank of the data is 363, which is smaller than the number of retained PCA components (366).
E
E   Rank-deficiency  can be caused through SSP projections or certain referencing schemes, e.g. an EEG average reference.It is STRONGLY advised to perform rank reduction using PCA prior to ICA in order to ensure proper operation of the ICA algorithm.
E
E   Since the rank of your data was estimated to be 363, we recommend instantiating the ICA object via:
E
E       ICA(..., max_pca_components=363)
E
E   (or using an even smaller number).

This is because currently, I calculate rank with SSP projectors applied, so the rank of the data would effectively be n_channels - len(info['projs']), which is obviously smaller than n_channels if there is any projection vectors stored.
Now this got me thinking, should the default of max_pca_components be changed from n_channels to n_channels - len(info['projs'])?
Applied SSP projectors leading to rank-deficient data and thereby screwing up ICA was exactly the problem @agramfort and I witnessed in the past.

@agramfort @larsoner @cbrnr
Would like to hear your thoughts on this

If #8326 becomes a success, we can also close this PR…

WIP because working on this PR exposed that the default for max_pca_components, currently n_channels, might not be the best choice. Lots of tests fail now because we get the new warning, typically:

Do we fit ICA on the data with projectors applied, or not? If it varies, then we can probably compute rank only taking into account projectors marked as "active" (i.e., applied to the data). I imagine most raw instances have not had the projectors applied, and hence shouldn't be counted when computing the rank.

Do we fit ICA on the data with projectors applied, or not?

I'm not sure, would need to step through the code. Does Raw/Epochs.get_data() apply projectors before returning the data?

Does Raw/Epochs.get_data() apply projectors before returning the data?

Only if apply_proj or proj=True was done, in which case active=True should be set in info['projs']. Hence why I think we need to make use of that property.
And you should be able to check this in a test that uses it just by doing a quick np.linalg.matrix_rank on the data, at least if it's MEG (or EEG) only.

Ok, sounds good!

@larsoner
I've added handling for projectors, but haven't extensively tested.
Also needed to add an option to include EOG channels in rank computation via compute_rank, similarly to how we handle ref_meg. Probably will need to do the same with ECG too…

Also needed to add an option to include EOG channels in rank computation via compute_rank, similarly to how we handle ref_meg. Probably will need to do the same with ECG too…

Why? If these channels are included in the ICA, they should be included in the rank calculation, no? We need the ICA to be stable, so if those channels are included in ICA they should affect the rank calculation.

Why? If these channels are included in the ICA, they should be included in the rank calculation, no? We need the ICA to be stable, so if those channels are included in ICA they should affect the rank calculation.

Yes, exactly. By default on master they are not included!
I discovered that bc ICA tests that do have an EOG channel started throwing a warning about rank deficiency, because only the M/EEG channels were considered by the rank calculation.
My current approach of adjusting _estimate_rank_meeg_signals is probably not the best idea, though, because EOG is clearly not M/EEG? Or is it?

@larsoner I've reverted the "EOG changes" so you can see for yourself what the problem was

I'm OK with issuing a warning if we detect rank deficiency. However, the rank needs to be computed on the same data that ICA uses (and not just by assuming certain types of channels). Furthermore, I have never used projectors, so I hope these do not interfere with ICA - if they do (e.g. if projectors are not only available but also active) we should also issue a warning.

I'm OK with issuing a warning if we detect rank deficiency. However, the rank needs to be computed on the same data that ICA uses (and not just by assuming certain types of channels).

Yes, this is precisely what we're / I'm  trying to achieve here :)

Furthermore, I have never used projectors, so I hope these do not interfere with ICA - if they do (e.g. if projectors are not only available but also active) we should also issue a warning.

If they're applied, each projector will reduce the rank of the data by 1.

If they're applied, each projector will reduce the rank of the data by 1.

Yes, but at least issue an info. I could imagine myself having applied projectors accidentally, or people might want to compute ICA with the original data even if they have projectors applied. That way, they can at least see what's going on.

Yes, but at least issue an info. I could imagine myself having applied projectors accidentally, or people might want to compute ICA with the original data even if they have projectors applied. That way, they can at least see what's going on.

You mean something like
INFO Performing ICA on data with rank X (Y channels, Z projectors applied).

?

Exactly!

@cbrnr Ok, that seems reasonable.
@larsoner
For your convenience, without the EOG-picking adjustments in compute_rank(), the following test fails (see CI logs: estimated rank is 4, but number of channels was 5 – 4 MEG + 1 EOG):
================================== FAILURES ===================================
__________________________ test_eog_channel[fastica] __________________________
mne\preprocessing\tests\test_ica.py:931: in test_eog_channel
    ica.fit(inst, picks=picks1)
<decorator-gen-384>:21: in fit
    ???
mne\preprocessing\ica.py:570: in fit
    warn(f'It is likely that we operated on rank-deficient data, '
mne\utils\_logging.py:348: in warn
    warnings.warn_explicit(
E   RuntimeWarning: It is likely that we operated on rank-deficient data, which is known to be problematic. The estimated rank of the data is 4, which is smaller than the number of retained PCA components (5).
E
E   Rank-deficiency  can be caused through SSP projections or certain referencing schemes, e.g. an EEG average reference. It is STRONGLY advised to perform rank reduction using PCA prior to ICA in order to ensure proper operation of the ICA procedure.
E
E   Since the rank of your data was estimated to be 4, we recommend instantiating the ICA object via:
E
E       ICA(..., max_pca_components=4)
E
E   (or using an even smaller number).

IIRC the only reason it's really named _estimate_rank_meeg_signals is because typically we only want data channels for noise cov + inversion. I don't see a problem with making it work for other channel types, too -- we just need to make sure our default scaling factors do something reasonable for EOG and ECG channels for example, and that we don't start accidentally returning EOG/ECG in places in the code that currently use that function. This should be fixable via some picking arguments of some sort.

Thanks @larsoner. Are you implying that EOG (and ECG, for that matter) are not data channels?
Sent from my iPad

On 2. Oct 2020, at 15:42, Eric Larson<EMAIL_ADDRESS>wrote:

IIRC the only reason it's really named _estimate_rank_meeg_signals is because typically we only want data channels for noise cov + inversion. I don't see a problem with making it work for other channel types, too -- we just need to make sure our default scaling factors do something reasonable for EOG and ECG channels for example, and that we don't start accidentally returning EOG/ECG in places in the code that currently use that function. This should be fixable via some picking arguments of some sort.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yes


Capturing surrendered enemies not possible even after merging fixes

Bug report
I already submitted it here: https://github.com/KillahPotatoes/KP-Liberation/issues/815
But I didn't fill the form correctly.
Basic Information
Mission version:
0.96.7
Map used:
Livonia
Mods used:
ace | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=463939057
ACE Compat - RHS Armed Forces of the Russian Federation | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=773131200
ACE Compat - RHS United States Armed Forces | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=773125288
ACE Compat - RHS: GREF | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=884966711
ACRE2 | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=751965892
CBA_A3 | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=450814997
JSRS SOUNDMOD | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=861133494
RHSAFRF | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=843425103
RHSGREF | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=843593391
RHSSAF | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=843632231
RHSUSAF | Steam | http://steamcommunity.com/sharedfiles/filedetails/?id=843577117
Dedicated or local game:
local game: Host can, others don't
dedicated: No one can do it
Source of the mission file (URL):
N/A yet
Individual Things
Did you edit anything within the mission files?
Yes
If yes, what did you edit exactly?
I merged:
https://github.com/KillahPotatoes/KP-Liberation/commit/a6fb990a9484e97147f6105bb7b31518748308f9
and
https://github.com/KillahPotatoes/KP-Liberation/commit/ee0124decaf9fd39984af24fb093f3b396b1d23b
to my local copy of liberation
Short Issue Description
The enemy joins our group after capturing him, but doesn't put the hands down or move, if the player doing isn't the host of the game.
Expected Behaviour
the captured soldier follows us
Steps to Reproduce the Issue
I tried to capture surrendering enemies a lot of times.
Screenshots, Serverlog or any other helpful Information
According to this page: https://ace3mod.com/wiki/framework/events-framework.html
"Event handlers in ACE3 are implemented through CBA’s Event System. They should be used to trigger or allow triggering of specific functionality."
the event "ace_captives_setSurrendered" should be called instead of the ace function directly.
Note: the "ace_captiveStatusChanged" is a different event, called by the function we talked about in previous ticket.
use
["ace_captives_setSurrendered",[_unit,true],_unit] call CBA_fnc_targetEvent;
and
["ace_captives_setSurrendered",[_unit,false],_unit] call CBA_fnc_targetEvent;
instead of
[_unit, true] call ACE_captives_fnc_setSurrendered;
and
[_unit, false] call ACE_captives_fnc_setSurrendered;
I don't want to create a Pull Request as my local git is a bit broken and I don't want to fix it for this ticket and I didn't need github for years.

The enemy joins our group after capturing him, but doesn't put the hands down or move

Well, that's a new perspective, of course. Good you used the template now.
We're also playing with ACE and when getting POWs we ziptie them, use the capture action and then we escort them via ACE. So not bothering with commanding them as group member.
So with your description the issue might be that due to joining your group, the AI is of course changing his locality and therefore the function call on the server won't do what it should be anymore, because the argument isn't local anymore. Sounds senseful and in that case it needs to be changed.
Will verify this issue on our weekly session this evening. 👍


OS.alert modal box not taking title string size into account on X11

Godot version:
3.0rc2 build fa56921. That said, this issue is much older than this.
OS/device including version:
Ubuntu Linux 17.10 64-bit.
Issue description:
OS.alert modal boxes don't appear to take into account the length of the title string when being created, thus appearing cut-off.
i.e.  - OS.alert ("Debug mode is ENABLED", "DEBUG BUILD")
This issue is X11 only.
Steps to reproduce:
Use OS.alert to create a modal box.

Wouldn't say it solves this, but #21382 does at least ameliorate this issue to being mostly non-relevant by offering other options for displaying alert boxes with X11, so closing it.


net-mgmt/net-snmp: Add support for agentx

Add boolean variable for AgentX support to model
Add to checkbox to General form.
Add agentx config to template.
Answers https://github.com/opnsense/plugins/issues/1200
(split out from multi-plugin patch previously submitted)

resync with upstream/master
bump version in Makefile
add changelog
Uncertain about forcing Migation/etc.

Merged, thanks!


Upgrade showing in upgrade list but actually no upgrade found

Brief description of your issue

Upgrade showing in upgrade list but actually no upgrade found
Steps to reproduce

winget upgrade

It shows a list
then try to upgrade one of them and no upgrade is found for some of them

Environment
[winget --info]
Windows Package Manager v1.0.11451
Windows: Windows.Desktop v10.0.19043.1023
Package: Microsoft.DesktopAppInstaller v1.11.11451.0

@albertopasqualetto the experimental store source does not provide the version for an available package. There is currently no way for the Windows Package Manager to know whether the package in the store is an upgrade or not.

Ok, thanks, but it behaves the same with all the apps in that list, for example Discord.

Yes, there are some improvements we need to make in the schema so we can have a better experience with upgrade. There are plenty of gaps between what Apps report in Add / Remove Programs and what we currently have in package manifests. I think if you search for "Discord" in the repository, you will see several users with similar problems and some work in progress to try and provide a work around until the schema changes are in place.

Ok, i got it, thanks for your support.

Thank you for taking the time to report this issue. In the amount of time the issue has been open, there have been several updates to the WinGet CLI which may have helped mitigate some of these concerns. I encourage you to try out the latest version of the CLI and see if your issue still persists.
Additional Notes:  The msstore source still does not provide the version for an available package. This is a known issue and potential solutions are still being evaluated.
Close with reason: Stale;


NOTE: new semistandard package adds new rules. Now this rules are ignored in the .eslintrc.json file, but the idea is to remove all this "off" rules and fix the ~400 lint bugs.

@CartoDB/frontend take look and share your thoughts pleaee 📊

I had the same thought at the beginning, but after checking the "new tendencies" I realized that now people is using .eslintrc with extension (JSON or YAML) (e.g. eslint, node).
I have checked that in eslint doc the file with extension has priority over the one without it: https://eslint.org/docs/user-guide/configuring#configuration-file-formats. We have also the opportunity to change to .eslintrc.yml... :P so let's listen the team thoughts!

Let's go with json then, it seems the official way.

 Use --force to continue.
 ** [out :: xxxxxx]
 ** [out :: xxxxxx]
 ** [out :: xxxxxx] Aborted due to warnings.
 ** [out :: xxxxxx]
    command finished in 160497ms

There is no git repo in staging, only rsync files. So I'm going to "OR" this command.

The build is working, so this should be good to go!

In production!

BOOM


Configure css-loader using an object so changing the config is easier.

Fixes #303.
I’ve tested it manually by adding …
	const { loader: cssLoader } =
		helpers.getLoadersByName(config, 'css-loader')[0];
	cssLoader.options.localIdentName = '[path][local]-[hash:base64:5]';

… to tests/subjects/custom-webpack/preact.config.js.
Does it make sense to add this to the test setup permanently? I would add a CSS file then to demonstrate it and update the snapshot. It would be a nice example / test for helpers.getLoadersByName as well. What do you think?

Just letting it run~ Nothing changed, but better safe than sorry 😉


Why can't I write data directly into running?

edit.xml:
    <edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
	<target>
		<candidate/>
	</target>
	<default-operation>merge</default-operation>
	<test-option>set</test-option>
	<config>
		<capable-switch  xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="create" xmlns="urn:onf:config:yang">
			<id>capable-switch-0</id>
			<logical-switches>
				<switch>
					<id>logic-switch-1</id>
					<datapath-id>11:11:11:11:11:11:11:11</datapath-id>
					<enabled>true</enabled>
					<controllers>
						<controller>
							<id>controller-0</id>
							<role>master</role>
							<ip-address><IP_ADDRESS></ip-address>
							<port>6633</port>
							<protocol>tcp</protocol>
						</controller>
					</controllers>
				</switch>
			</logical-switches>
		</capable-switch>
	</config>
</edit-config>

netopeer2-cli :
    user-rpc --content edit.xml

Errors encountered：
  ERROR
        type:     application
        tag:      operation-failed
        severity: error
        path:     /of-config-1.2:capable-switch/id
        message:  The node is not enabled in running datastore

How do I solve this problem?

mergesetcapable-switch-0logic-switch-111:11:11:11:11:11:11:11truecontroller-0master<IP_ADDRESS>33tcp

The format of XML seems to be wrong, but I'm all written in accordance with the protocol, so there should be no problem.

There seems to be something wrong with the XML format I submitted, but I'm all written in accordance with the protocol, so there should be no problem.

Hi,
it all seems fine and the error should be self-explaining if you read this. To fix this error you can run examples/application_example <module-name> with module-name being the name of the module with namespace urn:onf:config:yang. Why is briefly explained in the referenced doc.
Regards,
Michal


fix panic of concurrent map writes, when using in memory mode

Replaces #2179

Thanks for the contribution @kom0055 !


Binding fixes

This fixes a couple of issues with binding patterns introduced by preceding statements.
Fixes #1177
Also fixes this case: Playground
In this instance, aside from the issue with the binding variable not being generated inside the loop's scope, an additional bug was found that has apparently always existed where the local would be stripped off from the loop variable because it was falsely seen as being global in scope (because it was transformed before entering the loops body).

thank you tom!


EC number for "phospholipase C activity" (GO:0004629)

This term has EC:<IP_ADDRESS> and EC:<IP_ADDRESS> in the def line, but no EC xrefs.
EC:<IP_ADDRESS> is "Phospholipase C" but EC:<IP_ADDRESS> is "Phospholipase D".
So, looks like EC:<IP_ADDRESS> needs removing from the def line, and EC:<IP_ADDRESS> needs adding as an xref.

fixed.


Write a Kotlin program to find area of a cube

Description
Write a Kotlin program to find area of a cube
Area of cube = 6 × Side^2
Side : 2

Area : 24

How to contribute

Save the solution in program/FindAreaOfACube.kt file
Add FindAreaOfACube.kt file in find-area-of-a-cube folder

Hi, can I work on this?

Hey @gvadam
You can comment !assign on any good first issue you want to contribute to, to be auto-assigned
!assign

!assign


[Bug] [Seatunnel-web] Validation messages are wrong

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
In seatunnel-web input validation message are wrong. For example duplicate  datasoruce followign message is displayed.
"datasource [datasource [mysql_db-1] already exists] already exists"
Looks like message template is processed incorrectly. Same is the case with other input validaiton messages as well.
Also there is anothe problem for these known validation error message is logged. For duplicate name follwoing stack trace is getting logged.
2024-08-15 00:38:21.284 seatunnel host1 ERROR [qtp1500821480-73] [GlobalExceptionHandler.logError():84] - datasource [mysql_db-1] already exists org.apache.seatunnel.server.common.SeatunnelException: datasource [mysql_db-1] already exists         at org.apache.seatunnel.app.service.impl.DatasourceServiceImpl.createDatasource(DatasourceServiceImpl.java:109)         at org.apache.seatunnel.app.controller.SeatunnelDatasourceController.createDatasource(SeatunnelDatasourceController.java:121)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
SeaTunnel Version
seatunnel-web version 1.0.1
SeaTunnel Config
NA

Running Command
NA

Error Exception
2024-08-15 00:38:21.284 seatunnel rocky1 ERROR [qtp1500821480-73] [GlobalExceptionHandler.logError():84] - datasource [mysql_db-1] already exists
org.apache.seatunnel.server.common.SeatunnelException: datasource [mysql_db-1] already exists
        at org.apache.seatunnel.app.service.impl.DatasourceServiceImpl.createDatasource(DatasourceServiceImpl.java:109)
        at org.apache.seatunnel.app.controller.SeatunnelDatasourceController.createDatasource(SeatunnelDatasourceController.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Raised PR https://github.com/apache/seatunnel-web/pull/186

PR is merged https://github.com/apache/seatunnel-web/commit/f987ff385d8fe8c00a3e7631c93823e13ebfbd82


Postgres Governor returns incorrect wait time

As I understand it, the postgres governor is supposed to return a number of seconds that clients should wait, or -1 if processing should be paused entirely. This is intended to avoid problems related to transaction ID wraparound. The governor iterates through the databases (https://raw.githubusercontent.com/Senzing/governor-postgresql-transaction-id/main/senzing_governor.py), computes a wait time for each, and returns a wait time to the client. In our case the penultimate database is approaching xid wraparound so a a wait time of -1 is assigned to old_wait_time (https://raw.githubusercontent.com/Senzing/governor-postgresql-transaction-id/main/senzing_governor.py). The next db is not approaching xid wraparound, and because old_wait_time !=0 it sets old_wait_time to 0 (https://github.com/Senzing/governor-postgresql-transaction-id/blob/main/senzing_governor.py#L406), which is then returned to the client. Perhaps it was thought that the old_wait_time was computed for the same database (in which case it would be ok to reset it to 0)? In any case, the result is that the client is not told to wait when it should be. Is this a bug?

@glennjdea We've created a new 1.0.10 version that should correct the issue that you are seeing.  If it satisfies your concerns,  please close this issue.   If not, let us know what else is needed.

Hi @glennjdea !
I hope the fix worked for you.   If it did please close this issue.
We'll go ahead and close this issue in a week, if we don't hear back from you.

Hi @docktermj .  We're no longer using the postgres governor, so I haven't tested your fix but am very happy to close the issue.  Thanks for your help.


Deb package fields

Hi,
how to specify fields Priority,Section,Homepage,Installed-Size ?
Best regards

I don't think you can at this moment; but it makes for a nice feature request 😄

Fixed via #37


It no worky with the ign "Kelrocks"

API always returns profile is private at /player/basics/Kelrocks

Seems to be working.


Is Ydb platform ydb-rs-sdk stalled?

I posted a serious bug  3 days ago..
Nobody answered to it.
As  was written here 2 years ago:
If you know existed good migration tool - better add YDB support to it
But almost every in the rust world knows that this tool - sqlx .
And it was planned to Add support ydb to sqlx
2 years ago!!
And still nothing changed!
Ask your bosses:  will  users  have to wait for basic migration tools for 5, 10 or 20 years?
But users will lose interest in a so slowly developed sdk!
May be bosses can find enough developers for normal developing speed?
The unoficial one-man project alone did migrations, pools and many of these useful things:
YQL Query for data (like DML)
YQL Query for sheme (like DDL)
Connect over grpcs (with tls)
Connect over grpc (without tls) - not worked, unknown cause
Connection pool (with [deadpool](https://crates.io/crates/deadpool)) (feature pool)
Token authentication
Service account key authentication (feature auth-sa)
Metadata authentication
Query helpers (a lot of)
[sqlx](https://crates.io/crates/sqlx) integration - partially done (feature sqlx):

    Connection string
    connection
    binding parameters
    preparing statements
    transaction manager
    DML (data) operations
    DDL (scheme) operations
    primitive types (bool, i8, i32, i64, u8, u32, u64, f32, f64, Vec<u8>, String)
    date types (Date, Datetime, Timestamp, Interval)
    Decimal type
    connection pool balancing for discovery
    compile-time checked queries
    migrations
    multiple transaction modes
    log statements
    operation parameters

Why can't a commercial platform develop even at the same speed as one man writing for free in his free time?

Hello.
Thanks for your feedback. It is important for us.

I posted https://github.com/ydb-platform/ydb-rs-sdk/issues/180 3 days ago..
Nobody answered to it.

It isn't a bug. You can configure timeouts with standard tokio's way: use timeouts. I agree about examples can be better.
We are working on the SDK, for example we have added support of new auth type and coordination service some time ago.


table in list view is not fully responsive

For me the list view looks like this in a mobile browser (django-admin-bootstrapped 2.5.7, Django 1.8, Chrome 59):

The table is not properly sized to fit the width of the window.

Same here on Django 1.11.6


Torch build error

On MacOS Big Sur
Collecting torch
Downloading torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl (776.8 MB)
Killed
ERROR: Service 'web' failed to build : The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 137

I got the same error message.
After searching for "docker returned a non-zero code: 137", ERROR: Build process returned exit code 137 during Docker build on Tutum, it might be caused by docker out of the memory.
Simply scaling up the memory allocation setting in Docker > Preference > Memory fixes the problem.

I got the same error message.
After searching for "docker returned a non-zero code: 137", ERROR: Build process returned exit code 137 during Docker build on Tutum, it might be caused by docker out of the memory.
Simply scaling up the memory allocation setting in Docker > Preference > Memory fixes the problem.

Also maybe python 3.8. I had the same error and found that Big Sur needs 3.9
Sorry, busy with work. I will try to add the reference to this later. I had also seen the memory fix but haven't tried either possible solution.

Also maybe python 3.8. I had the same error and found that Big Sur needs 3.9
Sorry, busy with work. I will try to add the reference to this later. I had also seen the memory fix but haven't tried either possible solution.

I got the same error message.
After searching for "docker returned a non-zero code: 137", ERROR: Build process returned exit code 137 during Docker build on Tutum, it might be caused by docker out of the memory.
Simply scaling up the memory allocation setting in Docker > Preference > Memory fixes the problem.

Increased Docker memory to 5.0GB and build was successful. Thanks!

I got the same error message.
After searching for "docker returned a non-zero code: 137", ERROR: Build process returned exit code 137 during Docker build on Tutum, it might be caused by docker out of the memory.
Simply scaling up the memory allocation setting in Docker > Preference > Memory fixes the problem.

Increased Docker memory to 5.0GB and build was successful. Thanks!


Building both ios and android in a single fastlane run results in context clobbering

I have a private helper lane that accepts options, does some shared logic, and then calls out to aws_s3 with something that looks like:
  aws_s3(
    #...
    ipa: options[:ipa],
    apk: options[:apk],
    dsym: options[:dsym],
  )

This gets called multiple times in the course of one fastlane execution, but this causes issues if I'm building both ios and android in one execution, because ipa and apk get defaulted to Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] and Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] when passed in as nil, and I get an error telling me to pass ipa or apk, not both.
The solution for me was to add these lines of code before calling aws_s3
  # prevent fastlane from using stale values as default values
  Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] = nil
  Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = nil

Not sure what to suggest as a fix, but at the very least it seems if I'm explicitly passing in values as nil (rather than omitting them), they shouldn't be replaced with their default values.

I think this is a larger Fastlane issue with lane context...

Are you using separate platform blocks?


Update appveyor.yml

:x: Build LatLongNet-SDK-dotnet 1.0.210 failed (commit https://github.com/guibranco/LatLongNet-SDK-dotnet/commit/a7c2fb2fb2 by @guibranco)

:white_check_mark: Build LatLongNet-SDK-dotnet 1.0.212 completed (commit https://github.com/guibranco/LatLongNet-SDK-dotnet/commit/e21ddb578d by @guibranco)


Scrolling the contents of a tab left and right is nearly impossible

Code sample (tested on the PC simulator with display width 480 and height 320):
    lv_obj_t *tab = lv_tabview_create(lv_scr_act(), NULL);
    lv_obj_set_size(tab, LV_HOR_RES, LV_VER_RES);
    lv_obj_t *cont = lv_tabview_add_tab(tab, "Test");
    lv_tabview_add_tab(tab, "Test2");
    lv_obj_t *mbox = lv_mbox_create(cont, NULL);
    lv_obj_set_pos(mbox, 400, 300);

This one could be tough to fix. We need a way of distinguishing between the swiping on the tabview and the scrolling on the page.

(cc @kisvegabor)

It's because horizontal scrolling of the page is considered as swipe left/right.
In other words, tabview is not designed to support horizontal scrolling of the pages.
However, meanwhile lv_page_set_scroll_propagation is added to propagate the drag to the parent if the page can't be scrolled further. Probably tabview can be updated to use that mechanism.

I'll experiment with lv_page_set_scroll_propagation today.
Just so you know, I found this issue while testing lv_test_theme_1. Some of the widgets in that example are off the screen on a 480x272 screen like F746G-DISCO.

I've started working on it on the tabview_scroll branch. The initial code is in https://github.com/littlevgl/lvgl/commit/55ff48fdd65a349c4dbdfaed0b7eef630dfa98da, but still needs more improvement.
Can I modify the scroll propagation API to have an option for only propagating horizontal and/or vertical scrolling?

I decided to modify the API; if it's not suitable I can always revert it. Everything is in the tabview_scroll branch on both lvgl and lv_examples.
It's working a lot better now, but there's still a problem. In the PC simulator, if you drag right and then down in the top left corner of the tab content, there is a bug where the scrollable container inside the page scrolls too far. It's not easy to describe, but here's a screenshot to make it clearer:

Do you have any ideas? It's probably an issue with how I split the scroll propagation in lv_page.c, but I'm having trouble finding exactly what's wrong.

I've tested it and also seen some strange behavior.
I don't see why it was required to change the interface to support hor/ver scroll propagation. I'm asking because maybe it was introduced an issue. (Not use though because the v6.0 updates were affected this feature a lot)

@kisvegabor If I didn't change that, continuing to scroll down on the page would result in the tab content being shifted upwards (not desired behavior).
I'm going to look into it further now and see what I can do.

If I didn't change that, continuing to scroll down on the page would result in the tab content being shifted upwards (not desired behavior).

I see. It's really an issue in this case.
lv_test_tileview_1 which uses the scroll propagation very intensively seems working.
I've looked the tabviews signal function again and maybe found an easier way to achieve this. What if we check that the page is on the edge or not before setting hor_drag here:
https://github.com/littlevgl/lvgl/blob/dev-6.0/src/lv_objx/lv_tabview.c#L737-L741
Independently from this possible bug of scroll propagation should be examined.

@kisvegabor

why it was required to change the interface to support hor/ver scroll propagation. I'm asking because maybe it was introduced an issue.

I think you were right. I've been experimenting and it seems to be related to the fact that I'm trying to constrain the propagation to one axis, which is not how it was designed.

I've looked the tabviews signal function again and maybe found an easier way to achieve this. What if we check that the page is on the edge or not before setting hor_drag here.

Sounds much simpler. I'll try that!

The pull request is merged so I close this issue.


Linear extension for polynomial regression

Hey everyone,
Thank you for the awesome work with this project.
Here I propose a small change to LinearAnalysis to include x^i terms and allow for polynomial regression.
I currently use this as a separate layer in my own code, but I thought it would be a useful addition to AOG.
Thank you,
Federico

Thanks for the PR, just getting to take a look at it now. Could you maybe demonstrate visually what this is supposed to do? I'm not sure what the benefit of x^i terms would be in this context. And we'd need to add an illustrative example to the docs anyway.


User-aware relay address generator

Resolves #420
Description
Details of this feature are described in #420.
This PR make following changes:

Adds AllocatePacketConnForUser and AllocateConnForUser methods to RelayAddressGenerator interfaces

These methods deprecates AllocatePacketConn and AllocateConn respectively.

Changes to internal packages:

NewAllocation
ManagerConfig
CreateAllocation
authenticateRequest - to pass "username" to CreateAllocation method

Reference issue
Fixes #420

I hoped not to make breaking change but I have to touch the public interface, a breaking change is unavoidable.  I will make the change simpler.


string indices must be integers, not str argument of type 'NoneType' is not iterable

I am attempting to upload a payload to newrelic.  I get the error in the subject line.  Below is my payload.
{"components": [{"duration": 60, "metrics": {}, "guid": "com.marklogic", "name": "marklogic"}], "agent": {"host": "<IP_ADDRESS>", "version": "0.2.3", "pid": 1}}
Here are some of my variables
headers
{'Content-Type': 'application/json', 'X-License-Key': '0c48c80a186af49408b5958f453dcc78572cbb47', 'Accept': 'application/json'}
url
https://platform-api.newrelic.com/platform/v1/metrics
proxy
http://newrelicproxy.ecap.cciio:3128,https://newrelicproxy.ecap.cciio:3128
Code where it fails:
try:
return HTTPUtil.http_post(
scheme="https",
url="https://platform-api.newrelic.com/platform/v1/metrics",
headers={'Accept': 'application/json',
'Content-Type': 'application/json',
'X-License-Key': key},
payload=data,
proxy=proxy)
except Exception as e:
log.error("Problem accessing NewRelic Plugin API")
log.error(e)
pass

This appears to be a connection issue eg. newrelic plugin is not able to access the NewRelic Plugin API.
I think I see the issue eg. we are not marshalling supplied proxies into python dict format that request module requires.
Thanks for catching this I will fix and make a new release (tomorrow latest).

as a workaround you might be able to set proxies via env vars
export HTTP_PROXY="http://<IP_ADDRESS>:3128"
export HTTPS_PROXY="http://<IP_ADDRESS>:1080"

and have newrelic config blank.
then run the plugin.


How to be the best candidate for a job

Thoughts on resume building, cover letters
Being yourself vs upholding certain mannerisms
Business cards, networking
'Describe yourself in 140 characters or fewer' - what are some dos and don'ts - is this even a fair question?

I'll take this one - consistent with my writing thus far

@bradstimpson cool, I'll keep you in mind once this topic gets discussed.


Go: instrument mod version

We have a lot of code handling conditions around Go modules when they first were released. A lot has changes since then.
This will help us get a better understanding of what version of Go modules is being used by Dependabot users, so we can clean up our code.
A smoke test failure is expected since this adds a new call.

I'm a bit confused why the Updater spec is failing. It works locally when I run it directly.


Not found icon next to the Mastodon badge appears

Are you experiencing an issue with...
shields.io
🐞 Description
I followed the https://shields.io/badges/mastodon-follow page tutorial to add a Mastodon badge.
Everything looks fine but a "not found" badge appears next to the Mastodon one.
You can look at it at https://github.com/BgeeDB/bgee_pipeline/blob/develop/README.md
What does it mean? What is the problem?
🔗 Link to the badge
https://github.com/BgeeDB/bgee_pipeline/blob/develop/README.md
💡 Possible Solution
No response

You need to specify the domain param.
I think the correct URL for you would be https://img.shields.io/mastodon/follow/109308703977124988?domain=https%3A%2F%2Fgenomic.social
domain defaults to https://mastodon.social if not supplied.


WiP: Local reply mapper

As mentioned in #7537 I've created this PR to discuss solution. I haven't added json logs config in this PR because I want to do it as separate task.
Rest of the changes apart from api were created just to check if config is loaded properly(for my usage).
I would like to start implementation as soon as we create nice and resuable config.
I need some guidance where should I place feature related files. I thought about either new package common/local_reply or common/http but I'm open for suggestion.

/wait

/wait

Tagging @zyfjeff worked on similar thing previously https://github.com/envoyproxy/envoy/pull/6261

Ok. Thanks for feedback I'll try to come up with new proposition.

/wait

I've removed changes with matcher/rewrite and added formatter which reuse access_log code to create json format.  Configuration looks same as for  access logs. This is just a concept and I will be glad to hear your opinions.

/wait

/wait

/wait

/wait

/wait

/waiting

Do you think it is good time to start the implementation part or configuration requires some changes?

IMO this API looks very good and I think we can start on the implementation. I think there are more docs that are needed but we can cover that later as part of the main review. @htuch any further fundamental API comments?
/wait

@lukidzi @mattklein123 API proposal LGTM.


Read order affecting pandora map and compare results

When running pandora map or pandora compare the order of the reads in the samples can change the results. This happens even in the older codebase.
Next I show how to replicate this. I am working on commit https://github.com/rmcolq/pandora/commit/704cdfc32f9b98ccf534919ca13fe896b1d195d0 (before my changes to pandora index, just to be sure). Note that I am not changing anything on the code - here we just change the order of the reads in the input and we get different results.
1/ get input data
wget https://www.dropbox.com/s/2pwze8tugvrzdxg/input.zip?dl=1 -O input.zip
unzip input.zip

2/ run pandora map on toy_5000_mapped.fastq:
./pandora map -p toy_prg.fa -r toy_5000_mapped.fastq -o mapping_output --genotype --max_covg 100
3/ run pandora map on toy_5000_mapped.shuffled.fastq (same as toy_5000_mapped.fastq, but I just changed the order of the reads):
./pandora map -p toy_prg.fa -r toy_5000_mapped.shuffled.fastq -o mapping_output_shuffled --genotype --max_covg 100
4/ if you compare both .gfas, many differences will appear because the reads order is different. But if the graphs are isomorphic, then I think it is fine. The problem is that they are not isomorphic.
A graph has one more edge that the other. The first one has 6 edges:
awk '{print $1}' mapping_output/pandora.pangraph.gfa | sort | uniq -c
      1 H
      6 L
     10 S

The second one has 5 edges:
awk '{print $1}' mapping_output_shuffled/pandora.pangraph.gfa | sort | uniq -c
      1 H
      5 L
     10 S

In this toy example, it is a small difference, but in real datasets, the differences are larger.
Is this intended, or is this a sort of bug (i.e. the order of reads should not change the results)? This impacts in a possible bug I am having when working on map and compare.

This is a minor bug as it only affects the edges of the created pandora.pangraph.gfa, and it is only an "output" problem, i.e. the pandora.pangraph.gfa is indeed bugged, but it does not affect downstream analysis, genotyping, etc. Still a bug, but minor, low priority for this.

I would also add to this that the current subsetting is channel bias.
To elaborate: the fastq files output by the basecaller are grouped by channel, in 4000 reads/fastq. So when combining these files with something like cat the result is that if you read in the first n reads of the combined fastq you will get chunks of reads that are all from the same channel. As a result, we bias ourselves to certain channels.


Positive edge clock wave missing rising edge of clock when following high

The rising edge of a positive clock wave is replaced by the dashed line when following an 'h'. Example below:
{signal: [   {name: 'clk',  wave: 'hp...'}, ], }

After reviewing other bugs in more detail, I think this is the same issue as #162
https://github.com/drom/wavedrom/issues/162

The work-around for #162 is fairly simple:
{name: 'clk', wave: 'hpp...'},

should give the desired waveform without rendering issues, as shown below.
That said, @drom should clarify on the intentions of where p,P,n,N can be used. As per WaveJSON documentation, it appears that they can only be at the beginning of a wave string. But, I can see it being useful for cases like what you are describing. The issue comes in the form of inconsistency (if your code is valid WaveJSON) - while your sample has a 'hp' being rendered with a proper transition between h and p, hP is not
{signal: [
  {name: "clk_bug", wave: "hp...."},
  {name: 'clk', wave: 'hpp...'},
  {name: "clkP_bug", wave: "hP...."},
  {name: 'clkP', wave: 'hPP...'},
]}

renders the image below

I think hP should also have a transition similar to hp.
Supporting p,P,n, and N in sub-cycles is also not working unless we make modifications in gen-wave-brick.js - a file that hasn't been touched in 4 years.


Add "docker pulls" badge.

r? @jamesmunns
(rust_highfive has picked a reviewer for you, use r? to override)

bors r+


CarouselSlider Builder after added padEnds giving error

The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver_fixed_extent_list.dart': Failed assertion: line 270 pos 12: 'firstIndex == 0 || childScrollOffset(firstChild!)! - scrollOffset <= precisionErrorTolerance': is not true.

The following assertion was thrown during performLayout(): 'package:flutter/src/rendering/sliver_fixed_extent_list.dart': Failed assertion: line 270 pos 12: 'firstIndex == 0 || childScrollOffset(firstChild!)! - scrollOffset <= precisionErrorTolerance': is not true.


Fix anchors with unsupported characters

Fixes #26198 by replacing non alphanumeric characters in anchors by hyphens
Fixed by https://github.com/kubernetes-sigs/reference-docs/pull/204

/assign

/assign

Great job!  Pages look much better!
/lgtm
/approve

Great job!  Pages look much better!
/lgtm
/approve


File deployer failing silently.

The action status is green, but I get this in the logs:
Protocol: ftp
Synchronization: full
Local path: .

No files were ever uploaded, as far as I can find on the destination server.

Try setting debug input which will show verbose logs of FTP connection.

How is that accomplished?

https://github.com/milanmk/actions-file-deployer?tab=readme-ov-file#inputs

Thank you. The "No such file or directory" message might be important, but what file or directory was missing?
"workflow": ".github/workflows/main.yml"

/home/runner/work/temp/9be1ce95-d70c-4456-9ab8-dbe17b1b0512.sh: line 107: YwVn5qT7E\YJ*12cLGiJM?CQs3=PMBU5eP^??#i+7#z7oMzwY.bfh1mm2:e7+l,
remote-path: /home/wellnessfromfood/DeploymentTest1/,
debug: true,
remote-port: 22,
ssh-private-key: ,
proxy: false,
proxy-host: ,
proxy-port: 22,
proxy-forwarding-port: 1080,
proxy-user: ,
proxy-private-key: ,
local-path: .,
sync: delta,
sync-delta-excludes: ,
ssh-options: ,
ftp-options: ,
ftp-mirror-options: ,
ftp-post-sync-commands: ,
webhook: ,
artifacts:
}: No such file or directory
}___________________________________________________________________________________________________
Context: env
{}

Inputs:
{
remote-protocol: ftp,
remote-host: redacted,
remote-user: redacted,
remote-password: redacted
Error: Process completed with exit code 127.

I removed the trailing slash from the remote_path and the "No such file or directory" result isn't there anymore, but it's still failing with error code 127.
At least with debug enabled, the action status is showing as failed.

Please share the entire log for the workflow.

logs_22189326395.zip

logs_22189326395 (1).zip
This entry is interesting:
2024-03-28T06:13:43.7238868Z /home/runner/work/_temp/17d7fe26-4961-400a-9672-15f9a1bc5e92.sh: line 107: $'YwVn5qT7E\YJ*12cLGiJM?CQs3=PMBU5eP^??#i+7#z7oMzwY.bfh1mm2:e7+l,\n  remote-path: DeploymentTest1,\n  debug: true,\n  remote-port: 22,\n  ssh-private-key: ,\n  proxy: false,\n  proxy-host: ,\n  proxy-port: 22,\n  proxy-forwarding-port: 1080,\n  proxy-user: ,\n  proxy-private-key: ,\n  local-path: .,\n  sync: delta,\n  sync-delta-excludes: ,\n  ssh-options: ,\n  ftp-options: ,\n  ftp-mirror-options: ,\n  ftp-post-sync-commands: ,\n  webhook: ,\n  artifacts: \n}': command not found

2024-03-28T06:13:41.0139631Z Current runner version: '2.314.1'
2024-03-28T06:13:41.0162700Z ##[group]Operating System
2024-03-28T06:13:41.0163485Z Ubuntu
2024-03-28T06:13:41.0163828Z 22.04.4
2024-03-28T06:13:41.0164159Z LTS
2024-03-28T06:13:41.0164583Z ##[endgroup]
2024-03-28T06:13:41.0164993Z ##[group]Runner Image
2024-03-28T06:13:41.0165506Z Image: ubuntu-22.04
2024-03-28T06:13:41.0165883Z Version: 20240324.2.0
2024-03-28T06:13:41.0167173Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240324.2/images/ubuntu/Ubuntu2204-Readme.md
2024-03-28T06:13:41.0168729Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240324.2
2024-03-28T06:13:41.0169633Z ##[endgroup]
2024-03-28T06:13:41.0169999Z ##[group]Runner Image Provisioner
2024-03-28T06:13:41.0170552Z 2.0.361.1
2024-03-28T06:13:41.0170915Z ##[endgroup]
2024-03-28T06:13:41.0173050Z ##[group]GITHUB_TOKEN Permissions
2024-03-28T06:13:41.0174771Z Actions: write
2024-03-28T06:13:41.0175209Z Checks: write
2024-03-28T06:13:41.0175888Z Contents: write
2024-03-28T06:13:41.0176365Z Deployments: write
2024-03-28T06:13:41.0176878Z Discussions: write
2024-03-28T06:13:41.0177278Z Issues: write
2024-03-28T06:13:41.0177610Z Metadata: read
2024-03-28T06:13:41.0178078Z Packages: write
2024-03-28T06:13:41.0178458Z Pages: write
2024-03-28T06:13:41.0178848Z PullRequests: write
2024-03-28T06:13:41.0179319Z RepositoryProjects: write
2024-03-28T06:13:41.0179784Z SecurityEvents: write
2024-03-28T06:13:41.0180217Z Statuses: write
2024-03-28T06:13:41.0180703Z ##[endgroup]
2024-03-28T06:13:41.0183647Z Secret source: Actions
2024-03-28T06:13:41.0184277Z Prepare workflow directory
2024-03-28T06:13:41.0811020Z Prepare all required actions
2024-03-28T06:13:41.0984836Z Getting action download info
2024-03-28T06:13:41.2895003Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
2024-03-28T06:13:41.4232102Z Download action repository 'milanmk/actions-file-deployer@master' (SHA:c1baf767551098897cadabc77c520a9be30dc916)
2024-03-28T06:13:42.0041943Z Getting action download info
2024-03-28T06:13:42.1335175Z Download action repository 'actions/upload-artifact@v4' (SHA:5d5d22a31266ced268874388b861e4b58bb5c2f3)
2024-03-28T06:13:42.3011167Z Complete job name: main branch
2024-03-28T06:13:42.3890201Z ##[group]Run actions/checkout@v4
2024-03-28T06:13:42.3890687Z with:
2024-03-28T06:13:42.3891021Z   fetch-depth: 0
2024-03-28T06:13:42.3891568Z   repository: WellnessFromFood/WebSiteApplication
2024-03-28T06:13:42.3892262Z   token: ***
2024-03-28T06:13:42.3892639Z   ssh-strict: true
2024-03-28T06:13:42.3893053Z   persist-credentials: true
2024-03-28T06:13:42.3893444Z   clean: true
2024-03-28T06:13:42.3893809Z   sparse-checkout-cone-mode: true
2024-03-28T06:13:42.3894298Z   fetch-tags: false
2024-03-28T06:13:42.3894614Z   show-progress: true
2024-03-28T06:13:42.3895000Z   lfs: false
2024-03-28T06:13:42.3895388Z   submodules: false
2024-03-28T06:13:42.3895755Z   set-safe-directory: true
2024-03-28T06:13:42.3896102Z ##[endgroup]
2024-03-28T06:13:42.5895976Z Syncing repository: WellnessFromFood/WebSiteApplication
2024-03-28T06:13:42.5898994Z ##[group]Getting Git version info
2024-03-28T06:13:42.5912721Z Working directory is '/home/runner/work/WebSiteApplication/WebSiteApplication'
2024-03-28T06:13:42.5936168Z [command]/usr/bin/git version
2024-03-28T06:13:42.5968818Z git version 2.43.2
2024-03-28T06:13:42.5996412Z ##[endgroup]
2024-03-28T06:13:42.6026546Z Temporarily overriding HOME='/home/runner/work/temp/32715922-c1b0-423a-892a-eb480f560bc4' before making global git config changes
2024-03-28T06:13:42.6031377Z Adding repository directory to the temporary git global config as a safe directory
2024-03-28T06:13:42.6041678Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/WebSiteApplication/WebSiteApplication
2024-03-28T06:13:42.6092865Z Deleting the contents of '/home/runner/work/WebSiteApplication/WebSiteApplication'
2024-03-28T06:13:42.6115560Z ##[group]Initializing the repository
2024-03-28T06:13:42.6116680Z [command]/usr/bin/git init /home/runner/work/WebSiteApplication/WebSiteApplication
2024-03-28T06:13:42.6194551Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-03-28T06:13:42.6196430Z hint: is subject to change. To configure the initial branch name to use in all
2024-03-28T06:13:42.6198051Z hint: of your new repositories, which will suppress this warning, call:
2024-03-28T06:13:42.6202190Z hint:
2024-03-28T06:13:42.6203766Z hint: 	git config --global init.defaultBranch
2024-03-28T06:13:42.6254128Z hint:
2024-03-28T06:13:42.6255142Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-03-28T06:13:42.6256592Z hint: 'development'. The just-created branch can be renamed via this command:
2024-03-28T06:13:42.6257685Z hint:
2024-03-28T06:13:42.6258309Z hint: 	git branch -m
2024-03-28T06:13:42.6259156Z Initialized empty Git repository in /home/runner/work/WebSiteApplication/WebSiteApplication/.git/
2024-03-28T06:13:42.6260884Z [command]/usr/bin/git remote add origin https://github.com/WellnessFromFood/WebSiteApplication
2024-03-28T06:13:42.6279856Z ##[endgroup]
2024-03-28T06:13:42.6280873Z ##[group]Disabling automatic garbage collection
2024-03-28T06:13:42.6284580Z [command]/usr/bin/git config --local gc.auto 0
2024-03-28T06:13:42.6318315Z ##[endgroup]
2024-03-28T06:13:42.6319322Z ##[group]Setting up auth
2024-03-28T06:13:42.6322589Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2024-03-28T06:13:42.6357340Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-03-28T06:13:42.6671273Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2024-03-28T06:13:42.6708436Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-03-28T06:13:42.6946725Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-03-28T06:13:42.7011510Z ##[endgroup]
2024-03-28T06:13:42.7013136Z ##[group]Fetching the repository
2024-03-28T06:13:42.7024730Z [command]/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules origin +refs/heads/:refs/remotes/origin/ +refs/tags/:refs/tags/
2024-03-28T06:13:43.4954175Z From https://github.com/WellnessFromFood/WebSiteApplication
2024-03-28T06:13:43.4956306Z  * [new branch]      main       -> origin/main
2024-03-28T06:13:43.4983645Z [command]/usr/bin/git branch --list --remote origin/main
2024-03-28T06:13:43.5007953Z   origin/main
2024-03-28T06:13:43.5018259Z [command]/usr/bin/git rev-parse refs/remotes/origin/main
2024-03-28T06:13:43.5039560Z 2545556f7a857a8d4830cbf0a85459cac406dcdb
2024-03-28T06:13:43.5048048Z ##[endgroup]
2024-03-28T06:13:43.5049515Z ##[group]Determining the checkout info
2024-03-28T06:13:43.5051607Z ##[endgroup]
2024-03-28T06:13:43.5053067Z ##[group]Checking out the ref
2024-03-28T06:13:43.5055025Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-03-28T06:13:43.5941959Z Switched to a new branch 'main'
2024-03-28T06:13:43.5942839Z branch 'main' set up to track 'origin/main'.
2024-03-28T06:13:43.5944938Z ##[endgroup]
2024-03-28T06:13:43.5979802Z [command]/usr/bin/git log -1 --format='%H'
2024-03-28T06:13:43.6003321Z '2545556f7a857a8d4830cbf0a85459cac406dcdb'
2024-03-28T06:13:43.6488539Z ##[group]Run milanmk/actions-file-deployer@master
2024-03-28T06:13:43.6489190Z with:
2024-03-28T06:13:43.6489478Z   remote-protocol: ftp
2024-03-28T06:13:43.6489902Z   remote-host: <IP_ADDRESS>.host.secureserver.net
2024-03-28T06:13:43.6490523Z   remote-user<EMAIL_ADDRESS>2024-03-28T06:13:43.6491325Z   remote-password: ***
2024-03-28T06:13:43.6491673Z   remote-path: DeploymentTest1
2024-03-28T06:13:43.6492145Z   debug: true
2024-03-28T06:13:43.6492716Z   remote-port: 22
2024-03-28T06:13:43.6493153Z   proxy: false
2024-03-28T06:13:43.6493480Z   proxy-port: 22
2024-03-28T06:13:43.6493792Z   proxy-forwarding-port: 1080
2024-03-28T06:13:43.6494248Z   local-path: .
2024-03-28T06:13:43.6494567Z   sync: delta
2024-03-28T06:13:43.6496252Z ##[endgroup]
2024-03-28T06:13:43.6812867Z ##[group]Run echo "::group::Initialization"
2024-03-28T06:13:43.6814252Z echo "::group::Initialization"
2024-03-28T06:13:43.6814756Z
2024-03-28T06:13:43.6815219Z function show_hr() {
2024-03-28T06:13:43.6815724Z   printf '%.s' {1..100} && echo ""
2024-03-28T06:13:43.6816118Z }
2024-03-28T06:13:43.6816440Z
2024-03-28T06:13:43.6816821Z function send_webhook() {
2024-03-28T06:13:43.6817248Z   local status="$1"
2024-03-28T06:13:43.6817636Z   local post_data=$(jq --null-input \
2024-03-28T06:13:43.6818191Z   --arg timestamp date +%s \
2024-03-28T06:13:43.6818655Z   --arg status "${status}" \
2024-03-28T06:13:43.6819215Z   --arg repository "WellnessFromFood/WebSiteApplication" \
2024-03-28T06:13:43.6819873Z   --arg workflow "Deploy Files" \
2024-03-28T06:13:43.6820285Z   --arg job "deploy-main" \
2024-03-28T06:13:43.6820713Z   --arg run_id "8463238533" \
2024-03-28T06:13:43.6821228Z   --arg ref "refs/heads/main" \
2024-03-28T06:13:43.6821704Z   --arg event_name "workflow_dispatch" \
2024-03-28T06:13:43.6822141Z   --arg actor "jwdonahue" \
2024-03-28T06:13:43.6822634Z   --arg message "" \
2024-03-28T06:13:43.6823146Z   --arg revision "2545556f7a857a8d4830cbf0a85459cac406dcdb" \
2024-03-28T06:13:43.6824331Z   '{"timestamp": $timestamp, "status": $status, "repository": $repository, "workflow": $workflow, "job": $job, "run_id": $run_id, "ref": $ref, "event_name": $event_name, "actor": $actor, "message": $message, "revision": $revision}')
2024-03-28T06:13:43.6825463Z
2024-03-28T06:13:43.6826195Z   curl --data "${post_data}" --header "Content-Type: application/json" --max-time 30 --show-error --silent --user-agent "GitHub Workflow" ""
2024-03-28T06:13:43.6826979Z }
2024-03-28T06:13:43.6827350Z
2024-03-28T06:13:43.6827805Z [ "" != "" ] && echo "Webhook notification (start): $(send_webhook "start")"
2024-03-28T06:13:43.6828421Z
2024-03-28T06:13:43.6828709Z echo "Check repository"
2024-03-28T06:13:43.6829095Z
2024-03-28T06:13:43.6829698Z if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" != "true" ]; then
2024-03-28T06:13:43.6830578Z   echo "::error::Git repository not found. Please ensure you have a checkout step before this step."
2024-03-28T06:13:43.6831270Z   exit 1
2024-03-28T06:13:43.6831624Z fi
2024-03-28T06:13:43.6831930Z
2024-03-28T06:13:43.6832262Z echo "Initialize inputs"
2024-03-28T06:13:43.6832734Z
2024-03-28T06:13:43.6833072Z local_path_unslash=$(echo "." | sed 's:/$::')
2024-03-28T06:13:43.6833613Z local_path_slash="${local_path_unslash}/"
2024-03-28T06:13:43.6834124Z
2024-03-28T06:13:43.6834625Z remote_path_unslash=$(realpath --canonicalize-missing 'DeploymentTest1')
2024-03-28T06:13:43.6835261Z remote_path_slash="${remote_path_unslash}/"
2024-03-28T06:13:43.6835768Z
2024-03-28T06:13:43.6836698Z input_remote_password=""
2024-03-28T06:13:43.6837399Z if [ "" == "" ]; then
2024-03-28T06:13:43.6838019Z   input_remote_password="dummypassword"
2024-03-28T06:13:43.6838464Z fi
2024-03-28T06:13:43.6838835Z
2024-03-28T06:13:43.6839166Z input_proxy="false"
2024-03-28T06:13:43.6839491Z
2024-03-28T06:13:43.6839852Z proxy_cmd=""
2024-03-28T06:13:43.6840275Z if [ "${input_proxy}" == "true" ]; then
2024-03-28T06:13:43.6840928Z   proxy_cmd="proxychains"
2024-03-28T06:13:43.6841375Z fi
2024-03-28T06:13:43.6841683Z
2024-03-28T06:13:43.6841985Z input_sync=delta
2024-03-28T06:13:43.6842536Z if [ "workflow_dispatch" == "workflow_dispatch" ]; then
2024-03-28T06:13:43.6843017Z   input_sync=full
2024-03-28T06:13:43.6843375Z fi
2024-03-28T06:13:43.6843753Z
2024-03-28T06:13:43.6844067Z echo "Validate inputs"
2024-03-28T06:13:43.6844424Z
2024-03-28T06:13:43.6844877Z if [ "ftp" != "sftp" ] && [ "ftp" != "ftp" ]; then
2024-03-28T06:13:43.6845558Z   echo "::error::Invalid protocol: ftp. Valid protocols are 'ftp' and 'sftp'."
2024-03-28T06:13:43.6846169Z   exit 1
2024-03-28T06:13:43.6846550Z fi
2024-03-28T06:13:43.6847259Z
2024-03-28T06:13:43.6847732Z if [ "${input_sync}" != "delta" ] && [ "${input_sync}" != "full" ]; then
2024-03-28T06:13:43.6848614Z   echo "::error::Invalid synchronization: ${input_sync}. Valid types are 'delta' and 'full'." Skipping proxy connection."
2024-03-28T06:13:43.6893284Z   fi
2024-03-28T06:13:43.6893674Z fi
2024-03-28T06:13:43.6893937Z
2024-03-28T06:13:43.6894362Z echo "debug $([ "true" == "true" ] && echo "9" || echo "false")
2024-03-28T06:13:43.6895272Z set cmd:trace $([ "true" == "true" ] && echo "true" || echo "false")
2024-03-28T06:13:43.6895860Z set ftp:ssl-protect-data true
2024-03-28T06:13:43.6896266Z set ftp:sync-mode false
2024-03-28T06:13:43.6896741Z set log:enabled/xfer true
2024-03-28T06:13:43.6897183Z set log:file/xfer ~/transfer_log.txt
2024-03-28T06:13:43.6897717Z set log:show-time/xfer false
2024-03-28T06:13:43.6898138Z set mirror:overwrite true
2024-03-28T06:13:43.6898614Z set mirror:parallel-transfer-count 3
2024-03-28T06:13:43.6899317Z set mirror:set-permissions false
2024-03-28T06:13:43.6899722Z set net:max-retries 1
2024-03-28T06:13:43.6900131Z set net:persist-retries 0
2024-03-28T06:13:43.6900599Z set net:timeout 10
2024-03-28T06:13:43.6901002Z set sftp:auto-confirm true
2024-03-28T06:13:43.6901391Z set ssl:check-hostname false
2024-03-28T06:13:43.6901900Z set ssl:verify-certificate false
2024-03-28T06:13:43.6902356Z set xfer:parallel 3
2024-03-28T06:13:43.6902728Z " > ~/.lftprc
2024-03-28T06:13:43.6903211Z if [ "ftp" == "sftp" ] && [ "" != "" ]; then
2024-03-28T06:13:43.6903890Z   echo "set sftp:connect-program /usr/bin/ssh -a -x -i ~/ssh_private_key " >> ~/.lftprc
2024-03-28T06:13:43.6904524Z else
2024-03-28T06:13:43.6905080Z   echo "set sftp:connect-program /usr/bin/ssh -a -x " >> ~/.lftprc
2024-03-28T06:13:43.6905628Z fi
2024-03-28T06:13:43.6906371Z echo "open ftp://id_github_actions@wellnessfromfood.com@<IP_ADDRESS>.host.secureserver.net:22" >> ~/.lftprc
2024-03-28T06:13:43.6907105Z echo "File created: ~/.lftprc"
2024-03-28T06:13:43.6907566Z [ "true" == "true" ] && cat ~/.lftprc
2024-03-28T06:13:43.6908057Z
2024-03-28T06:13:43.6908391Z echo "::endgroup::"
2024-03-28T06:13:43.6908719Z
2024-03-28T06:13:43.6909077Z
2024-03-28T06:13:43.6909384Z
2024-03-28T06:13:43.6909731Z if [ "${input_proxy}" == "true" ]; then
2024-03-28T06:13:43.6910243Z   echo "::group::Setup proxy"
2024-03-28T06:13:43.6910647Z
2024-03-28T06:13:43.6910985Z   if [ "" != "" ] && [ "" != "" ]; then
2024-03-28T06:13:43.6911656Z     if ssh -A -D 1080 -f -N -p 22 -i ~/proxy_private_key @; then
2024-03-28T06:13:43.6912665Z       echo "Proxy connected" && show_hr && echo "Proxy IP address: $(${proxy_cmd} curl --max-time 10 --show-error --silent "http://checkip.amazonaws.com/")"
2024-03-28T06:13:43.6913492Z     else
2024-03-28T06:13:43.6914034Z       echo "::error::Proxy connection failed."
2024-03-28T06:13:43.6914492Z       exit 1
2024-03-28T06:13:43.6914849Z     fi
2024-03-28T06:13:43.6915234Z   else
2024-03-28T06:13:43.6915526Z     input_proxy="false"
2024-03-28T06:13:43.6916174Z     echo "::warning::Invalid input 'proxy-user', 'proxy-host'. Skipping proxy connection."
2024-03-28T06:13:43.6916865Z   fi
2024-03-28T06:13:43.6917172Z
2024-03-28T06:13:43.6917467Z   echo "::endgroup::"
2024-03-28T06:13:43.6917907Z fi
2024-03-28T06:13:43.6918221Z
2024-03-28T06:13:43.6918584Z
2024-03-28T06:13:43.6918841Z
2024-03-28T06:13:43.6919186Z echo "::group::Prepare files"
2024-03-28T06:13:43.6919650Z
2024-03-28T06:13:43.6919978Z echo "Event: workflow_dispatch
2024-03-28T06:13:43.6920785Z Revision: https://github.com/WellnessFromFood/WebSiteApplication/commit/2545556f7a857a8d4830cbf0a85459cac406dcdb
2024-03-28T06:13:43.6921660Z Committer: jwdonahue
2024-03-28T06:13:43.6922052Z Message: " && show_hr
2024-03-28T06:13:43.6922436Z
2024-03-28T06:13:43.6923565Z echo "2545556f7a857a8d4830cbf0a85459cac406dcdb" > "${local_path_slash}.deploy-revision" && echo "File created: ${local_path_slash}.deploy-revision" && cat "${local_path_slash}.deploy-revision" && show_hr
2024-03-28T06:13:43.6924637Z
2024-03-28T06:13:43.6924954Z if [ "${input_sync}" == "delta" ]; then
2024-03-28T06:13:43.6925537Z   touch ~/files_to_upload ~/files_to_delete
2024-03-28T06:13:43.6926074Z   git_depth=$(git rev-list --count --all)
2024-03-28T06:13:43.6926539Z   git_previous_commit=""
2024-03-28T06:13:43.6927216Z
2024-03-28T06:13:43.6927567Z   if [ "${git_depth}" -gt 1 ]; then
2024-03-28T06:13:43.6928223Z     if [ "workflow_dispatch" == "push" ]; then
2024-03-28T06:13:43.6928791Z       git_previous_commit=
2024-03-28T06:13:43.6929295Z     elif [ "workflow_dispatch" == "pull_request" ]; then
2024-03-28T06:13:43.6929792Z       git_previous_commit=
2024-03-28T06:13:43.6930372Z     elif [ "workflow_dispatch" == "workflow_dispatch" ]; then
2024-03-28T06:13:43.6931105Z       git_previous_commit=$(git rev-parse 2545556f7a857a8d4830cbf0a85459cac406dcdb^)
2024-03-28T06:13:43.6931786Z     else
2024-03-28T06:13:43.6932608Z       echo "::error::Event not supported for delta synchronization: workflow_dispatch. Supported events are 'push', 'pull_request' and 'workflow_dispatch'."
2024-03-28T06:13:43.6933457Z       exit 1
2024-03-28T06:13:43.6933874Z     fi
2024-03-28T06:13:43.6934188Z   else
2024-03-28T06:13:43.6935221Z     echo "::error::Commit history not found for delta synchronization. Please ensure you have 'fetch-depth: 0' option in checkout action. Please ignore if this is an initial commit or newly created branch."
2024-03-28T06:13:43.6936370Z     exit 1
2024-03-28T06:13:43.6936668Z   fi
2024-03-28T06:13:43.6936992Z
2024-03-28T06:13:43.6937784Z   echo "Previous Revision: https://github.com/WellnessFromFood/WebSiteApplication/commit/${git_previous_commit}" && show_hr
2024-03-28T06:13:43.6938577Z
2024-03-28T06:13:43.6939208Z   # ${proxy_cmd} lftp -c "set log:enabled/xfer false; get -O ~ "${remote_path_slash}.deploy-revision"; exit 0"
2024-03-28T06:13:43.6940177Z   # echo -n "Remote Revision: " && [ -f ~/.deploy-revision ] && cat ~/.deploy-revision || echo ""
2024-03-28T06:13:43.6940828Z   # show_hr
2024-03-28T06:13:43.6941161Z
2024-03-28T06:13:43.6941661Z   if git cat-file -t ${git_previous_commit} &>/dev/null; then
2024-03-28T06:13:43.6942721Z     git diff --diff-filter=ACMRT --name-only ${git_previous_commit}..2545556f7a857a8d4830cbf0a85459cac406dcdb -- ${local_path_unslash} ':!/.git'  > ~/files_to_upload
2024-03-28T06:13:43.6944140Z     git diff-tree --diff-filter=D --name-only -t ${git_previous_commit}..2545556f7a857a8d4830cbf0a85459cac406dcdb -- ${local_path_unslash} ':!/.git'  > ~/files_to_delete
2024-03-28T06:13:43.6945099Z
2024-03-28T06:13:43.6945819Z     sed --in-place --regexp-extended "s#(.)#realpath --canonicalize-missing --relative-to=$local_path_unslash \1#e" ~/files_to_upload
2024-03-28T06:13:43.6947052Z     sed --in-place --regexp-extended "s#(.)#realpath --canonicalize-missing --relative-to=$local_path_unslash \1#e" ~/files_to_delete
2024-03-28T06:13:43.6947837Z
2024-03-28T06:13:43.6948319Z     echo "File created: ~/files_to_upload" && cat ~/files_to_upload && show_hr
2024-03-28T06:13:43.6949107Z     echo "File created: ~/files_to_delete" && cat ~/files_to_delete && show_hr
2024-03-28T06:13:43.6949695Z
2024-03-28T06:13:43.6950016Z     if [ "" == "true" ]; then
2024-03-28T06:13:43.6950967Z       echo "Copy transfer artifacts" && mkdir ~/transfer_files && rsync --verbose --files-from=$HOME/files_to_upload ${local_path_slash} ~/transfer_files/
2024-03-28T06:13:43.6951841Z     fi
2024-03-28T06:13:43.6952121Z   else
2024-03-28T06:13:43.6953170Z     echo "::warning::Invalid base commit for delta synchronization: ${git_previous_commit}. Please ignore if this is an initial commit or newly created branch."

The 127 result indicates that bash could not find a command.


Leading subject autocorrect

PR updated. Autocorrect is tested against the rubocop codebase.
btw it doesn't leave empty line after the new subject location, as there is another cop for requiring the empty line

btw it doesn't leave empty line after the new subject location, as there is another cop for requiring the empty line

Good. It isn't the concern of this cop I agree

Another great cop, @Darhazer :smile:


Gelbooru ripper

Category
This change is exactly one of the following (please change [ ] to [x]) to indicate which:

[x] a new Ripper
[x] a refactoring

Description
Added a generic ripper for  booru sites, added support for xbooru and gelbooru, removed the x/gel booru rippers
Testing
Required verification:

[ ] I've verified that there are no regressions in mvn test (there are no new failures or errors).
[ ] I've verified that this change works as intended.

[ ] Downloads all relevant content.
[ ] Downloads content from multiple pages (as necessary or appropriate).
[ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content.

[ ] I've verified that this change did not break existing functionality (especially in the Ripper I modified).

Optional but recommended:

[ ] I've added a unit test to cover my change.

Coverage decreased (-0.1%) to 38.621% when pulling fd3b2c55987cf5cb0faf3901a727c02f39ef4880 on cyian-1756:gelbooruRipper into b902873fc2d4b37337ef143d59af2b5ae1830a13 on RipMeApp:master.


Load PeftModel in another PretrainedModel

System Info
torch                        2.0.1
transformers                 4.34.0
peft                         0.5.0
Who can help?
No response
Information

[ ] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder
[ ] My own task or dataset (give details below)

Reproduction
When I load PeftModel in my PretrainedModel, it will cause some question.
If I load PeftModel by this:
        peft_model_id = "llama2_all0.1_llama2-7B-hf_clip_lr0.0001_bs240_ip1536_op1664_ep3/checkpoint-39006"

        peft_config = PeftConfig.from_pretrained(peft_model_id)

        language_model = LlamaForCausalLM.from_pretrained(
            peft_config.base_model_name_or_path,
            load_in_8bit=True,
            device_map="auto",
            torch_dtype=torch.float16
        )

        language_model = PeftModel(language_model, peft_config)

The traceback is:
> Traceback (most recent call last):
  File "main_central_bllama.py", line 337, in <module>
    model = Blip2ForConditionalGeneration.from_pretrained("blip2llamaConfig", device_map="auto", torch_dtype=torch.float16)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/transformers/modeling_utils.py", line 3085, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
  File "/home/sqzhang/blip2Agent/modeling_blip_2.py", line 1608, in __init__
    language_model = PeftModel(language_model, peft_config)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/peft_model.py", line 111, in __init__
    self.base_model = PEFT_TYPE_TO_MODEL_MAPPING[peft_config.peft_type](
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/lora.py", line 274, in __init__
    super().__init__(model, config, adapter_name)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/tuners_utils.py", line 88, in __init__
    self.inject_adapter(self.model, adapter_name)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/tuners_utils.py", line 219, in inject_adapter
    self._create_and_replace(peft_config, adapter_name, target, target_name, parent, **optionnal_kwargs)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/lora.py", line 373, in _create_and_replace
    self._replace_module(parent, target_name, new_module, target)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/lora.py", line 378, in _replace_module
    new_module.weight = child.weight
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1632, in __setattr__
    self.register_parameter(name, value)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/accelerate/big_modeling.py", line 123, in register_empty_parameter
    module._parameters[name] = param_cls(module._parameters[name].to(device), **kwargs)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/bitsandbytes/nn/modules.py", line 288, in __new__
    return torch.Tensor._make_subclass(cls, data, requires_grad)
RuntimeError: Only Tensors of floating point and complex dtype can require gradients

Or if I load PeftModel by this:
        peft_model_id = "llama2_all0.1_llama2-7B-hf_clip_lr0.0001_bs240_ip1536_op1664_ep3/checkpoint-39006"

        peft_config = PeftConfig.from_pretrained(peft_model_id)

        language_model = LlamaForCausalLM.from_pretrained(
            peft_config.base_model_name_or_path,
            device_map="auto",
            torch_dtype=torch.float16
        )

        language_model = PeftModel(language_model, peft_config)

The Traceback is:
> Traceback (most recent call last):
  File "main_central_bllama.py", line 337, in <module>
    model = Blip2ForConditionalGeneration.from_pretrained("blip2llamaConfig", device_map="auto", torch_dtype=torch.float16)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/transformers/modeling_utils.py", line 3085, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
  File "/home/sqzhang/blip2Agent/modeling_blip_2.py", line 1608, in __init__
    language_model = PeftModel(language_model, peft_config)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/peft_model.py", line 111, in __init__
    self.base_model = PEFT_TYPE_TO_MODEL_MAPPING[peft_config.peft_type](
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/lora.py", line 274, in __init__
    super().__init__(model, config, adapter_name)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/tuners_utils.py", line 88, in __init__
    self.inject_adapter(self.model, adapter_name)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/tuners_utils.py", line 219, in inject_adapter
    self._create_and_replace(peft_config, adapter_name, target, target_name, parent, **optionnal_kwargs)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/lora.py", line 373, in _create_and_replace
    self._replace_module(parent, target_name, new_module, target)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/peft/tuners/lora.py", line 390, in _replace_module
    module.to(child.weight.device)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1145, in to
    return self._apply(convert)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
    module._apply(fn)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/torch/nn/modules/module.py", line 820, in _apply
    param_applied = fn(param)
  File "/home/sqzhang/anaconda3/envs/agent/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1143, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
NotImplementedError: Cannot copy out of meta tensor; no data!

Expected behavior
How can I load PeftModel in my PretrainedModel

Instead of calling PeftModel(...) directly, please always use get_peft_model. I'm not sure if this will solve your problem, but could you please give it a try?

Thanks for your advice! I had already tried this method and faced same question.
But now I have loaded the peft model by this:
`
_no_split_modules = ["LlamaDecoderLayer", "LlamaForCausalLM"]
def init(self, config: Config):
    peft_model_id = "llama2_all0.1_llama2-7B-hf_clip_lr0.0001_bs240_ip1536_op1664_ep3/checkpoint-39006"
    peft_config = PeftConfig.from_pretrained(peft_model_id)
    # Update _tied_weights_keys using the base model used.
    language_model = AutoModelForCausalLM.from_config(config.text_config)
    if language_model._tied_weights_keys is not None:
        self._tied_weights_keys = [f"language_model.{k}" for k in language_model._tied_weights_keys]
    language_model = PeftModel(language_model, peft_config)

    self.language_model = language_model

`

So is it working now with your fix?

So is it working now with your fix?

Yes. But I'm facing another question beacuse of the function init_post(). My peft model weights were initialized. So I'm looking for method to solve it. hahaha

I am currently running into the same error:
RuntimeError: only Tensors of floating point and complex dtype can require gradients

This happens when I try to set "requires_grad" on PEFT layers:
model = get_peft_model(model, peft_config)
model = prepare_model_for_kbit_training(model)
for name, param in model.named_parameters():
    if any(l in name.lower() for l in ["lora", "lokr", "ia3", "base_layer"]):
        param.requires_grad = True

If I remove these calls to "requires_grad", then the output of model.print_trainable_parameters() is 0.
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0,1]

  | Name  | Type                 | Params
-----------------------------------------------
0 | model | PeftModelForCausalLM | 75.7 M
-----------------------------------------------
0         Trainable params
75.7 M    Non-trainable params
75.7 M    Total params
302.890   Total estimated model params size (MB)

Of course, with 0 trainable parameters, my model fails to learn.
So, I'm not really sure what to do here. Quantized training does not work because of this error - and training (in general) doesn't work when "requires_grad" is False for PEFT layers.

@LuciferianInk What you're getting looks a bit strange. Could you provide more code to reproduce the issue?

Thanks, but I think I figured out the problem. I was able to upgrade to 0.6.2, and after doing so - I was able to completely remove that requires_grad stuff. It appears that prepare_model_for_kbit_training() does all of that for me, and I've been able to move forward in 4, 8 and 32 bit modes.

Nice, I believe the issue is solved! Feel free to re-open or open a new issue if you think it is not the case. BTW we also released PEFT 0.7.1


Inference_ram.py example using Tag2Text

Hello,
I am confused. It seems ithe nference_ram.py example is using
default='pretrained/tag2text_swin_14m.pth'
which is the same as the model used in the inferecen_tag2text.py.
Can someone clarify if this was not a typo?

Hello, the default input size is 384, and you can also specify the input size at will when model initialization.

Sorry and thanks for pointing out, yes, this is a typo. It should be pretrained/ram_swin_large_14m.pth.
Please follow the command in README, i.e.,
python inference_ram_openset.py \
    --image images/openset_example.jpg \
    --pretrained pretrained/ram_swin_large_14m.pth

We will correct it soon.


:curly_loop: Maintenance automation > Create PRs to self-maintain action :robot:

:grey_question: About
Actually the duckdb version runtime upgrade is manual **while   :duck: runs fast :sweat_smile: ** (see code frequency) :

:bulb: The idea
What we want is like a dependabot, which, once a day :

Check if the actions'vs version is the latest one
If not -> make a PR to upgrade it so we just have to review/release a new version

:nerd_face: Resources
The following script makes it possible to get the latest release without any additional dependency (I guess pyhton available on GH ubuntu), based on Gh API:
echo "☎ Get latest DuckDB release from duckdb/duckdb"
DUCKDB_VERSION=$(curl --silent -L \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/duckdb/duckdb/releases/latest |\
  python3 -c 'import json,sys;print(json.load(sys.stdin)["tag_name"])')
echo "$DUCKDB_VERSION"

:point_up: It's even easier shorter with jq :
DUCKDB_VERSION=$(curl --silent -L \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/duckdb/duckdb/releases/latest |\
  jq '.tag_name')
echo $DUCKDB_VERSION

:bulb:  ...maybe will you rather do it from js

1rst step, display warning message in logs :heavy_check_mark:

Check if the actions'vs version is the latest one

I guess you would like to write "Check if the DuckDB version is the latest one"  ?


Configuration

Is there a way to customize the configuration out of the box? Or would I have to fork and make changes?

Your best bet is to fork and make changes there.


Find cause when "PromptLayer had the following error: Expecting value: line 1 column 1 (char 0)"

I would like to know if there is a way to know what is the root cause of such error:
WARNING: While logging your request PromptLayer had the following error: Expecting value: line 1 column 1 (char 0)

It seems a malformed JSON, but without accessing or printing the output (maybe just an error due to a prompt that is too large, or other issue with openai).
Thank you in advance

Can you please send the request you are trying to log?

I'm sorry, I don't have the prompt I was using. I forgot what I was doing last week 😸
I was calling through langchain.

@jzone3 I've got the same now, and the cause is not due to promptlayer. But perhaps you could improve the error messaging, by showing at least the status code and the returned error.
For example, in my case it's the proxy at my organisation that suddenly blocked promptlayer.

@jzone3 I've opened a PR to try to mitigate this issue: https://github.com/MagnivOrg/prompt-layer-library/pull/46


[TACHYON-925] Reset mBlocks list before add new blocks in tachyon.master.InodeFile#setLength

https://tachyon.atlassian.net/browse/TACHYON-925…setLength()

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/4726/
Test PASSed.

@fanshiqing Could you resolve the conflicts please? I think this may already be reflected in the current master.


fixed #2788  resolve the bug #2788

@gaojun2048 @qiaozhanwei

Codecov Report

Merging #2789 into dev-1.3.0 will increase coverage by 0.16%.
The diff coverage is 60.00%.

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


Add unit test for PDC-709

Add unit test for PDC-709.
testing for SortedRouter.py

Merged as 2bf104ba73bb02fcd187cdfab4c6fae6fb7b30f4.


Expose stream level and flags

Expose stream level and flags for remuxing stream.

The CI build failure is not due to your changes, there is an issue with OS X builds

Closing this because of its age and lack of interest


readonly user and fixes in install

Will submit language edits to ROO separately.
All other content looks good. Consider approved after merging language edits