Behavior change for INSTALL_K3S_SKIP_DOWNLOAD in install.sh

Originally reported by sauerborn-git in https://github.com/k3s-io/k3s/pull/6126

Describe the bug:

A behavior change was introduced with: https://github.com/k3s-io/k3s/pull/6003/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fL486-R486
A change was necessary to get install tests working on PR checks, but "this" particular way of doing it has proved confusing to users. A new way which does not affect the original SKIP_DOWNLOAD functionality is required.
Steps To Reproduce:

Installed K3s:

Executing install with INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_BIN_DIR=/usr/bin files/install.sh on an offline environment, I get the following error with the latest version:
"stderr": "Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was\n14: curl#6 - \"Could not resolve host: mirrorlist.centos.org; Name or service not known\"\n\n\n One of the configured repositories failed (Unknown),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\n\n     1. Contact the upstream for the repository and get them to fix the problem.\n\n     2. Reconfigure the baseurl/etc. for the repository, to point to a working\n        upstream. This is most often useful if you are using a newer\n        distribution release than is supported by the repository (and the\n        packages for the previous distribution release still work).\n\n     3. Run the command with the repository temporarily disabled\n            yum --disablerepo=<repoid> ...\n\n     4. Disable the repository permanently, so yum won't use it by default. Yum\n        will then just ignore the repository until you permanently enable it\n        again or use --enablerepo for temporary usage:\n\n            yum-config-manager --disable <repoid>\n        or\n            subscription-manager repos --disable=<repoid>\n\n     5. Configure the failing repository to be skipped, if it is unavailable.\n        Note that yum will try to contact the repo. when it runs most commands,\n        so will have to try and fail each time (and thus. yum will be be much\n        slower). If it is a very temporary problem though, this is often a nice\n        compromise:\n\n            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true\n\nCannot find a valid baseurl for repo: base/7/x86_64",
"stderr_lines": [
    "Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was",
    "14: curl#6 - \"Could not resolve host: mirrorlist.centos.org; Name or service not known\"",
    "",
    "",
    " One of the configured repositories failed (Unknown),",
    " and yum doesn't have enough cached data to continue. At this point the only",
    " safe thing yum can do is fail.  Contact the upstream for the repository and get them to fix the problem.",
    "",
    "     2. Reconfigure the baseurl/etc. for the repository, to point to a working",
    "        upstream. This is most often useful if you are using a newer",
    "        distribution release than is supported by the repository (and the",
    "        packages for the previous distribution release still work).",
    "",
    "     3. Run the command with the repository temporarily disabled",
    "            yum --disablerepo=<repoid> ...",
    "",
    "     4. Disable the repository permanently, so yum won't use it by default. Yum",
    "        will then just ignore the repository until you permanently enable it",
    "        again or use --enablerepo for temporary usage:",
    "",
    "            yum-config-manager --disable <repoid>",
    "        or",
    "            subscription-manager repos --disable=<repoid>",
    "",
    "     5. Configure the failing repository to be skipped, if it is unavailable.",
    "        Note that yum will try to contact the repo. when it runs most commands,",
    "        so will have to try and fail each time (and thus. yum will be be much",
    "        slower). If it is a very temporary problem though, this is often a nice",
    "        compromise:",
    "",
    "            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true",
    "",
    "Cannot find a valid baseurl for repo: base/7/x86_64"

Expected behavior:

K3s should not attempt to download anything when SKIP_DOWNLOAD=true
Actual behavior:

It will attempt to download SELINUX RPMS
Workaround
Until this is resolved, a workaround exists:
INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_BIN_DIR=/usr/bin files/install.sh

Additional context / logs:

Validated using latest install script
Environment Details

Infrastructure

[x] Cloud (AWS)
[ ] Hosted

Node(s) CPU architecture, OS, and Version:

$ uname -a && cat /etc/os-release
Linux ip-172-31-42-181.us-east-2.compute.internal 4.18.0-372.9.1.el8.x86_64 #1 SMP Fri Apr 15 22:12:19 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"

Cluster Configuration:

1 server
Config.yaml:

N/A
Additional files

N/A
Testing Steps

Bring up an airgap node
Bring up a non-airgap (bastion) node
On the bastion node, download the required files:

k3s binary from v1.24.4+k3s1: wget https://github.com/k3s-io/k3s/releases/download/v1.24.4%2Bk3s1/k3s
Install.sh from get.k3s.io: wget -O new-install.sh https://get.k3s.io/
(for replication) install.sh from previous release: wget https://raw.githubusercontent.com/k3s-io/k3s/v1.25.0%2Bk3s1/install.sh

Copy the files to the airgap node and move the k3s binary to the bin dir
Attempt to install k3s: INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_BIN_DIR=/usr/bin ./install.sh

Replication Results:

RPM download is not skipped

$ INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_BIN_DIR=/usr/bin ./install.sh
[INFO]  Skipping k3s download and verify
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Rancher K3s Common (stable)                                                                                0.0  B/s |   0  B     02:00
Errors during downloading metadata for repository 'rancher-k3s-common-stable':
  - Curl error (28): Timeout was reached for https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/repodata/repomd.xml [Connection timed out after 30000 milliseconds]
Error: Failed to download metadata for repo 'rancher-k3s-common-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Validation Results:

RPM download is skipped:

$ INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_BIN_DIR=/usr/bin ./new-install.sh
[INFO]  Skipping k3s download and verify
[INFO]  Skipping installation of SELinux RPM
[ERROR]  Failed to find the k3s-selinux policy, please install:
    dnf install -y container-selinux
    dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm


'import type' -> swallows 'type' and breaks import

So, tried running js-import-sort against our large code base, and this happened:
 -import type {
 -  NavigationSceneRendererProps
 -} from 'react-native/Libraries/NavigationExperimental/NavigationTypeDefinition';
 +import { NavigationSceneRendererProps } from 'react-native/Libraries/NavigationExperimental/NavigationTypeDefinition';

Notice that import type becomes import. Can you support import type as well ?

Sorry this took a while to get to, I've released v1.1.0 which should allow for flow support now.
Thanks for reporting this!

@amwam thanks, works like a charm, will be using it!


Ordering the records by results of scalar functions throws an exception

CrateDB version: 2.3.2
JVM version: {"version": "1.8.0_131", "vm_name": "OpenJDK 64-Bit Server VM", "vm_vendor": "Oracle Corporation", "vm_version": "25.131-b11"}
OS version / environment description:  {"name": "Linux", "arch": "amd64", "version": "3.16.0-4-amd64", "available_processors": 4}
Problem description:
Ordering the records by results of scalar functions throws an exception when the query includes [at least] a join and the field used in the scalar function:

belongs to the primary table of the query, not to the joined one
is not part of the join conditions

Stacktrace:
SQLActionException[SQLParseException: Couldn't create executionContexts from
NodeOperations: [2=>NodeOp{ phase{id=2/collect, nodes=[l1UKqZLMTAmPb1wwza7VLg, zMvdSFr0QDSDCHTYclem6Q], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=5, downstreamInputId=1}, 6=>NodeOp{ phase{id=6/fetchPhase, nodes=[l1UKqZLMTAmPb1wwza7VLg, zMvdSFr0QDSDCHTYclem6Q]}, downstreamNodes=[], downstreamPhase=2147483647, downstreamInputId=0}, 1=>NodeOp{ phase{id=1/mergeOnHandler, nodes=[l1UKqZLMTAmPb1wwza7VLg], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=5, downstreamInputId=0}, 0=>NodeOp{ phase{id=0/collect, nodes=[l1UKqZLMTAmPb1wwza7VLg, zMvdSFr0QDSDCHTYclem6Q], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=1, downstreamInputId=0}]
Leafs: [NestedLoopPhase{executionPhaseId=5, name=nested-loop, joinType=INNER, joinCondition=IC{4, string} = IC{1, string}, outputTypes=[string, string, string, string], jobId=8ba755b1-9662-40e3-9232-214593789fb6, executionNodes=[l1UKqZLMTAmPb1wwza7VLg]}]
target-sources: [1=>[0], 5=>[1, 2]]
original-error: UnsupportedOperationException: Can't handle Symbol name]

Steps to reproduce:
I highlighted the differences from one query to another and other relevant parts of the queries. Didn't include the actual results to avoid making this description way too long :).
cr> create table a (id string primary key, name string not null);
cr> create table b (id string primary key, name string not null, a_id string not null);
cr> insert into a (id, name) values ('a_id_1', 'a_name_1'), ('a_id_2', 'a_name_2');
cr> insert into b (id, name, a_id) values ('b_id_1', 'b_name_1', 'a_id_2'), ('b_id_2', 'b_name_2', 'a_id_1');

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from a a_** inner join b b_ on a_.id = b_.a_id order by **lower(a_.name)** desc limit 10;
SELECT 2 rows in set (0.005 sec)

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from a a_** inner join b b_ on a_.id = b_.a_id order by **lower(b_.name)** desc limit 10;
SELECT 2 rows in set (0.002 sec)

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from b b_** inner join a a_ on a_.id = b_.a_id order by **lower(a_.name)** desc limit 10;
SELECT 2 rows in set (0.003 sec)

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from b b_** inner join a a_ on a_.id = b_.a_id order by **b_.name** desc limit 10;
SELECT 2 rows in set (0.004 sec)

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from b b_** inner join a a_ on a_.id = b_.a_id order by **lower(b_.name)** desc limit 10;
SQLActionException[SQLParseException: Couldn't create executionContexts from
NodeOperations: [2=>NodeOp{ phase{id=2/collect, nodes=[TTBqmqGhRs6oFKmtdN1OHg, l1UKqZLMTAmPb1wwza7VLg], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=5, downstreamInputId=1}, 1=>NodeOp{ phase{id=1/mergeOnHandler, nodes=[l1UKqZLMTAmPb1wwza7VLg], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=5, downstreamInputId=0}, 6=>NodeOp{ phase{id=6/fetchPhase, nodes=[TTBqmqGhRs6oFKmtdN1OHg, l1UKqZLMTAmPb1wwza7VLg]}, downstreamNodes=[], downstreamPhase=2147483647, downstreamInputId=0}, 0=>NodeOp{ phase{id=0/collect, nodes=[TTBqmqGhRs6oFKmtdN1OHg, l1UKqZLMTAmPb1wwza7VLg], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=1, downstreamInputId=0}]
Leafs: [NestedLoopPhase{executionPhaseId=5, name=nested-loop, joinType=INNER, joinCondition=IC{4, string} = IC{1, string}, outputTypes=[string, string, string, string], jobId=2bf3ff9b-a527-4b24-b7b9-6c09f7426160, executionNodes=[l1UKqZLMTAmPb1wwza7VLg]}]
target-sources: [1=>[0], 5=>[1, 2]]
original-error: UnsupportedOperationException: Can't handle Symbol name]

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from b b_** inner join a a_ on **(a_.id = b_.a_id AND b_.name is not null)** order by **lower(b_.name)** desc limit 10;
SELECT 2 rows in set (0.004 sec)

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from b b_** inner join a a_ on **(a_.id = b_.a_id AND b_.name is not null)** order by **lower(b_.name)**;
SELECT 2 rows in set (0.038 sec)

cr> select a_.id as a_id, a_.name as a_name, b_.id as b_id, b_.name as b_name **from b b_** inner join a a_ on **a_.id = b_.a_id** order by **lower(b_.name)**;
SQLActionException[SQLParseException: Couldn't create executionContexts from
NodeOperations: [2=>NodeOp{ phase{id=2/collect, nodes=[l1UKqZLMTAmPb1wwza7VLg, zMvdSFr0QDSDCHTYclem6Q], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=5, downstreamInputId=1}, 6=>NodeOp{ phase{id=6/fetchPhase, nodes=[l1UKqZLMTAmPb1wwza7VLg, zMvdSFr0QDSDCHTYclem6Q]}, downstreamNodes=[], downstreamPhase=2147483647, downstreamInputId=0}, 1=>NodeOp{ phase{id=1/mergeOnHandler, nodes=[l1UKqZLMTAmPb1wwza7VLg], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=5, downstreamInputId=0}, 0=>NodeOp{ phase{id=0/collect, nodes=[l1UKqZLMTAmPb1wwza7VLg, zMvdSFr0QDSDCHTYclem6Q], dist=BROADCAST}, downstreamNodes=[l1UKqZLMTAmPb1wwza7VLg], downstreamPhase=1, downstreamInputId=0}]
Leafs: [NestedLoopPhase{executionPhaseId=5, name=nested-loop, joinType=INNER, joinCondition=IC{4, string} = IC{1, string}, outputTypes=[string, string, string, string], jobId=8ba755b1-9662-40e3-9232-214593789fb6, executionNodes=[l1UKqZLMTAmPb1wwza7VLg]}]
target-sources: [1=>[0], 5=>[1, 2]]
original-error: UnsupportedOperationException: Can't handle Symbol name]

Hi @vladcrisan13 thanks for reporting. We're going to have a look.

Hi @vladcrisan13
Sorry for not giving any update over the last few days. The problem is a bit tricky to track down. We have some clues already and hope we can provide a fix soon.
Thanks for your patience.

We've a fix for this (https://github.com/crate/crate/pull/6988) which will be part of the next 2.3 hotfix release.
Thanks again for reporting the issue.


Are custom predicates supported?

It is not clear from the documentation whether custom predicates are supported and if so, how to create/use them.

Well you can just pass in a function instead of a predefined predicate. If you look at the docs on predicate you will find several examples: https://prayerslayer.gitbooks.io/js-spec/content/specs.html
You are correct though that this fact isn't clearly stated as it is mixed in with the "Predefined Specs" section examples.

Actually this is spelled out at the start: https://prayerslayer.gitbooks.io/js-spec/content/concepts.html

I stand corrected, thank you.


Change cursor from bigint to string

Working on the upcoming support for tasks backed by custom enumerators surfaced the need for non-numeric cursors.
For instance, one might have a task that iterates over resources backed by some API providing its own opaque string cursor, which would be impossible to serialize to a bigint column.
As such, this changes the maintenance_tasks_runs.cursor column to be a string. For this to work, we must deserialize the cursor back to an integer in the Array and CSV collection cases, while the ActiveRecord case is handled transparently.
⚠ Before Merging

[ ] Ensure we've added any relevant documentation or migration guide

What happens if the DB is migrated while tasks are running using the old version of the gem?

~Should we publish an intermediate forward compatible version of the gem including only the .to_i change, so this is a non-issue? (#340)~

Should consumers consider using an LHM version of the migration?

We have to investigate a bit more what it means to update the column. We may need a more involved migration with an additional column depending on how it goes.
We've started looking quickly, and with mysql, it seems like a task may be able to continue running just fine through the migration, but not be paused/resumed, and if it's paused before, it can't be resumed. (There may be an issue with timeouts during the lock for the schema change, I haven't investigated that well, but if the query timeout is longer than the duration of the schema change it should be ok.)
We need to build a full understanding of how it will behave in production so that we can re-evaluate the approach or simply document it well (maybe they need to have no running tasks for example).
To test you need to run the production environment, and see how it behaves to interruptions/pauses with the old code (i.e. old schema loaded in ActiveRecord) and between old and new code.
Also the migration should be mostly optional as long as you don't use string cursors, it could be delayed after they ship the new version of the gem.

Is there anything we could do to help land this PR?


Slow performance

Hello all,
Recently I discovered this Snowflake backend for Django so let me thank you the effort because it's something I've been waiting for months.
The reason of this issue is because I've been playing with it and I experience slow performance. I would like to know if others are facing similar issues and if there are any recommended solutions or workarounds.
I did two tests with the following environments:
python                     3.11.3
Django                     4.2.7
django-snowflake           4.2b1

and
python                     3.10.4
Django                     4.2.1
django-snowflake           4.2b1

In both cases I followed the same steps, I created a fresh new conda enviroment and I configured the Django admin-site to use an small table (10 records) where to perform CRUD operations. Every operation takes around 10 seconds. It doesn't matter if I list all the records of the table or if I try to update a single record... it always takes 9s, 10s, 11s approximately.
Another comparison that I did was using snowflake-sqlalchemy package, against the same table, and there I didn't have any performance issue.
I would appreciate any guidance or recommendation.
Thanks in advance

Hi Daniel, please let me know if you have any further profiling data or suggestions. Thanks.

I also find Snowflake too slow as an app backend but as a data warehouse it is excellent and works with django for background ETL tasks.
With native connection pooling in Django 5.1, are there plans to allow this in django-snowflake? I presume it will help speed it up slightly


Added modify community functionality

Description
This PR allows the creator of a community to modify the title, description, and rules of said community
This PR includes the following proposed change(s):

Creation of EditCommunityModal.jsx
Added settings button to CommunityPage.jsx
Added editCommunity redux action

Requires
Add 'Requires Attention' label if appropriate.

[ ] Requires an update to the .env file
[ ] Requires adding a file listed in the .gitignore
[ ] Requires an opinion or answer to a question, see comments.
[ ] Requires other attention, see below.

If there are any requirements for the developer to make after this PR is merged please list them here.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
For pull requests that are not just a simple fix, please check that the branch works on your local machine.

[x] Tested by Zach.
[ ] Tested by Brandon.
[ ] Tested by Brady.

Does the change impact or break the Docker build?

[ ] Yes
[x] No

If Yes: Has Docker been updated accordingly?

[ ] Yes
[ ] No

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes
[ ] If attention is required by the developer such as updating the .env file, these requirements have been listed.

I noticed an issue with changing the community name. All posts in the community use the community title as a reference which needs to be changed in the backend. I'll create a bug ticket for myself and get this fixed.

I noticed an issue with changing the community name. All posts in the community use the community title as a reference which needs to be changed in the backend. I'll create a bug ticket for myself and get this fixed.

I fixed the issue with HWP-408 and once merged, can be tested with these changes. Otherwise seems like everything is working.


Recipe foods

:dart: Acheived in this PR

In this PR we code together and we added the User table and installed and configured the authentication with devise.

[x] run rails g model recipe_food quantity:integer food:references recipe:references
[x] modify model if necessary
[x] User can add and delete ingredients from recipe

:speech_balloon: Feel free to shoot me a message in the pull request if you have any questions.
Thank you for your time!

:wave:  Hey @amare1990
Thanks a lot for your time reviewing my PR :rocket:


Who can help me? How should I set up the proxy?

"I really want to use this SDK package and don't want to implement the API interface myself anymore. I'm begging the experts, please teach me how to set up the proxy. Thank you."
this's my code

var Proxy = "http://<IP_ADDRESS>:7890"

func main() {
	test2(SetProxy())
}

func test2(c *http.Client) {
	ctx := context.Background()
	// Access your API key as an environment variable (see "Set up your API key" above)
	client, err := genai.NewClient(ctx, option.WithHTTPClient(c), option.WithAPIKey("AIzaSyBMwViEE"))
	if err != nil {
		log.Fatal(err)
	}
	defer client.Close()

	// For text-only input, use the gemini-pro model
	model := client.GenerativeModel("gemini-pro")
	resp, err := model.GenerateContent(ctx, genai.Text("你好"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(resp)
}

// SetAiClientSteam 设置ai 代理
func SetProxy() *http.Client {
	var transport *http.Transport
	if Proxy != "" {
		proxyURL, err := url.Parse(Proxy)
		if err != nil {
			fmt.Println("出现错误:" + err.Error())
			return nil
		}
		transport = &http.Transport{
			Proxy: http.ProxyURL(proxyURL),
			TLSClientConfig: &tls.Config{
				InsecureSkipVerify: true,
			},
		}
	} else {
		transport = &http.Transport{
			TLSClientConfig: &tls.Config{
				InsecureSkipVerify: true,
			},
		}
	}
	client := &http.Client{Transport: transport}
	return client
}

the response is
2023/12/17 21:19:52 googleapi: Error 403: Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API. exit status 1
and i can get response by postman (use proxy)

This is a duplicate of #17
Please use that issue for this topic - no need to create new ones. If you have additional information, add it in #17


add specs and validations

Added specs and validations for user
Added specs and validations for posts
Added specs for likes
Added specs for comments

Thank you.


Capital letter doesn't show the accent in "E" letter.

Hi,
Capital letter doesn't show the accent in "E" letter. Should be "É"
See the video:
https://github.com/PrimalHQ/primal-android-app/assets/1178856/8556c274-9d5a-47f1-b908-aa64d7c362a3

I can't reproduce it. What device are you using please?

I can't reproduce it. What device are you using please?

Xiaomi Redmi Note 9s.
Obs. The accent doesn't appear when writing a note, but I can see the same note with accent in other nostr clients.

It could still be a bug in the primal input field for your device. Let me see if I can reproduce it!


Best rspec version for Rails 5

Can the maintainers clarify what the recommended version of rspec for Rails 5 would be right now? It seems to be 3.5.0.beta1, but I noticed that just putting "rspec" in Gemfile will give you a much older released version which was non-specific about its actionpack requirements.

Rails 5 is only supported by 3.5.0.beta1 and above (this includes master)

Thanks!


Term merge: FMN hydrolase activity & FMN phosphatase activity

id: GO:0090711
name: FMN hydrolase activity
namespace: molecular_function
def: "Catalysis of the reaction: FMN + H2O = riboflavin + phosphate." [EC:<IP_ADDRESS>, PMID:16183635]
is_a: GO:0016791 ! phosphatase activity
created_by: tb
creation_date: 2016-10-21T16:27:34Z
id: GO:0103027
name: FMN phosphatase activity
namespace: molecular_function
def: "Catalysis of the reaction: FMN + H2O = riboflavin + hydrogenphosphate." [EC:3.1.3.-, GOC:pz]
xref: MetaCyc:RXN0-5187
is_a: GO:0016791 ! phosphatase activity
Merged term should be:
name: FMN hydrolase activity
namespace: molecular_function
def: "Catalysis of the reaction: FMN + H2O = phosphate + riboflavin." [RHEA:35587, PMID:16183635]
xref: EC:<IP_ADDRESS>
xref: RHEA:35587
xref: MetaCyc:RXN0-5187
is_a: GO:0016791 ! phosphatase activity

Thanks!


Update reproducible comparing tests with centos:7

Update reproducible comparing tests with centos:7
Fix #3687

https://ci.adoptium.net/view/Test_grinder/job/Grinder/9326/

@sophia-guo linter failures to start with.

The code changes look good to me, though I am wondering why there are these differences that cause the test to fail:
23:30:14  Comparing ...
23:30:14  diff -r jdk-22+36/release compare.1/jdk-22+36/release
23:30:14  11,13d10
23:30:14  < BUILD_SOURCE="git:e95140bf52915bda6c5ff271538789ed9a55162b"
23:30:14  < BUILD_SOURCE_REPO="https://github.com/adoptium/temurin-build.git"
23:30:14  < SOURCE_REPO="https://github.com/adoptium/jdk22.git"
23:30:14  Differences found..., logged in: reprotest.diff

My query does not stop us from merging this PR.

The code changes look good to me, though I am wondering why there are these differences that cause the test to fail:
23:30:14  Comparing ...
23:30:14  diff -r jdk-22+36/release compare.1/jdk-22+36/release
23:30:14  11,13d10
23:30:14  < BUILD_SOURCE="git:e95140bf52915bda6c5ff271538789ed9a55162b"
23:30:14  < BUILD_SOURCE_REPO="https://github.com/adoptium/temurin-build.git"
23:30:14  < SOURCE_REPO="https://github.com/adoptium/jdk22.git"
23:30:14  Differences found..., logged in: reprotest.diff

My query does not stop us from merging this PR.

@sophia-guo I think since this is a reproducible build comparison, the version of temurin-build repo being used should not differ, it would imply the 2nd build is built with a different version of the build scripts...? Do you know why that may be the case?

https://github.com/adoptium/temurin-build/pull/3739#issuecomment-2038423300

I'm not sure if those differences are expected. Was confirmed that those should be cleaned. https://github.com/adoptium/temurin-build/issues/3687#issuecomment-2034828779
@andrew-m-leonard so we shouldn't clean those information? To be clear the reproduced JDK release file doesn't have any of those build repo information at all.
release.txt

#3739 (comment)

I'm not sure if those differences are expected. Was confirmed that those should be cleaned. #3687 (comment)
@andrew-m-leonard so we shouldn't clean those information? To be clear the reproduced JDK release file doesn't have any of those build repo information at all.
release.txt

Hmm, that would imply it's built differently than the original

If build is unstable that means there are difference. The reproduced jdk tar file is also archived. https://ci.adoptium.net/view/Test_grinder/job/Grinder/9364/


added floyd warshall algorithm code

Added Floyd Warshall Algorithm Code in Python folder.

@balvinderz : It would be great if you can add the description along with the issue number.
Feel free to use our contribution guidelines (https://github.com/fnplus/interview-techdev-guide/blob/master/CONTRIBUTING.md#how-to-contribute-an-implementation-code) for reference

Okay ,I will do it after some hours :)


Fix error appear for a second when create a task for new member

Details

Error appear for a second when create a task for new member
Fixed Issues

$ https://github.com/Expensify/App/issues/19203
PROPOSAL: https://github.com/Expensify/App/issues/19203#issuecomment-1567195609
Tests

Login with any Expensifail account
Go to FAB > Assign Task > Enter title and description and navigate to next page
Click on Assignee and enter a new account which is not used anywhere yet
Verify that the assignee is added immediately and no error appears

[x] Verify that no errors appear in the JS console

Offline tests

Same above
QA Steps

Login with any Expensifail account
Go to FAB > Assign Task > Enter title and description and navigate to next page
Click on Assignee and enter a new account which is not used anywhere yet
Verify that the assignee is added immediately and no error appears

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
Screencast from 25-05-2023 18:03:57.webm

Mobile Web - Chrome
https://github.com/Expensify/App/assets/129500732/0e864276-ccd3-4de4-8492-e1de9964da1d

Mobile Web - Safari
https://github.com/Expensify/App/assets/129500732/14465dc2-f429-49eb-a810-7eadd2f353a0

Desktop
https://github.com/Expensify/App/assets/129500732/a735defb-c783-4806-b3bc-0552eb3dae4b

iOS
https://github.com/Expensify/App/assets/129500732/8e4c16e7-0e80-4e62-9645-fca6d531ebc4

Android
https://github.com/Expensify/App/assets/129500732/c29bf4ac-4fe2-4a4e-9782-3c5b152c037d

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.21-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Initial implementation

Resolves #1
Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[x] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[x] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[ ] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@ForestEckhardt its been a bit so I forgot some context- could you remind me why it's preferable to check the runtimeconfig.json for existing and for runtime versions during build, rather than using its existence as detection criteria?

@sophiewigmore We check it at build because this buildpack will now run after dotnet-publish and we want to pull the version of the framework from the runtimeconfig if at all possible with is generated during publish. Therefore we have to check after the during build.

Ahhh yes, thank you

@fg-j After our short investigation is appears that the DOTNET_ROOT needs to be set for FDEs I will make a commit shortly.

@ForestEckhardt @fg-j I'm surprised that DOTNET_ROOT needs to be set if the runtime is already on the PATH. Could you give a bit more context about why that is Forest?

@sophiewigmore It have to do with how FDE works. Because we are not invoking the dotnet cli the FDE is like trying to look in a default install location which we have not installed the installation in. Because of that the warning message given tells us we need to specify the DOTNET_ROOT if we are in the non-default location.
However because of our restructure we can get away with using the default directive instead of the override directive which is the preferred option.

@ForestEckhardt thank you! that makes sense

@fg-j are you able to re-test with the changes here since you have the re-architecture spike pulled already? Assuming that works now, this PR looks good to me


Create a Reusable Service

Tutorials: https://developers.sap.com/tutorials/cp-cap-java-reusable-service.html
Step 6: Configure CAP application to use SQLite database
application.yaml code- line 7:
spring.datasource.initialization-mode is deprecated.
Replace it with sprint.sql.init.mode

Hi @priyankagupta0194,
Thanks. I will need to talk to the dev colleagues about this. Please give me some time to get back to you.
Best regards,
Iwona


Integration With Serilog

I watched the video on .NET Conf, and I really like it, I had a question (and if the answer is no, then I would like to make it a request)
Does WatchDog integrate with Serilog?
So if I have Serilog already, can I put WatchDog on top of it, and all the logs go to the sink that Serilog specifies
Actually, I think if WatchDog uses the .NET Logging API then It will integrate with Serilog well
Thank you

Thank you, the package doesnt currently support a direct implementation for sinking logs to Serilog, how ever WatchDog works seamlessly with the .Net ILogger interface. You can refer to the docs to see how you can achieve that.

@HakamFostok I could not get this to work.
What if we created a Sink to sink logs to WatchLogger?
We could publish to NuGet as Serilog.Sinks.WatchDog.


Service Principal Association With Resources

[Enter feedback here]
Hi Team,
Is there a way to find associated resources with a Service Principal?
We're getting several support requests where customer isn't aware where a Service Principal is in use. Please let me know if we have something regarding it.
Please get in touch with me pigaur@microsoft,com.
Regards,
Piyush Gaur

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

ID: a3f84bdc-9ed0-eb85-f3af-9711e8083a95
Version Independent ID: 03a47d06-5fbf-4764-0882-99cd8bd41110
Content: Use Azure service principals with Azure CLI
Content Source: docs-ref-conceptual/create-an-azure-service-principal-azure-cli.md
Service: azure-cli
GitHub Login: @dbradish-microsoft
Microsoft Alias: dbradish

@blessedwithsins Thanks for the question! We're investigating this and will get back to you shortly.

@blessedwithsins That's an interesting question!
As such, resources themselves are not associated to Service Principals (SPs), but the operations performed by SPs are, i.e., when any CUD-like action is performed, it is recorded in the Administrative category under Azure Activity Logs.
For example:
The "Event Initiated by" column in the screenshot below shows the name of the Service Principal/user that had performed the operation:

However, AFAIK, SP sign-in actions are not being recorded as of today. Here is the related feature request on the User Voice Forum.
Hope this helps!

@blessedwithsins We will now proceed to close this thread as resolved, but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.
Also, on a side note, I'd like to let you know that this channel (the azure-docs-cli repository) is only for driving improvements related to the Azure CLI documentation. The best place for specific answers about implementations is going to be the Microsoft Q&A platform. We actively look through posts in the forums, and will do our best to get you going in the right direction.

@blessedwithsins, Thank you for reaching Azure CLI team.
The way @BhargaviAnnadevara-MSFT provided is great for checking Activity Logs which contains the operations initiated by a Service Principal.
As for (static) permissions, you may also use az role assignment list to check the permissions the Service Principal has.
For example, first create a Service Principal and assign it the contributor permission to the selected subscription with az ad sp create-for-rbac:
> az ad sp create-for-rbac
Creating a role assignment under the scope of "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590"
  Retrying role assignment creation: 1/36
{
  "appId": "fe2806ed-379d-43b9-88cc-d23368a87de0",
  "displayName": "azure-cli-2020-08-07-03-23-18",
  "name": "http://azure-cli-2020-08-07-03-23-18",
  "password": "xxx",
  "tenant": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"
}

Then you may list the permission with az role assignment list:
> az role assignment list --assignee fe2806ed-379d-43b9-88cc-d23368a87de0 --all
[
  {
    "canDelegate": null,
    "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Authorization/roleAssignments/a7d71d52-c222-4e2f-8ee3-a8ebbfbd8305",
    "name": "a7d71d52-c222-4e2f-8ee3-a8ebbfbd8305",
    "principalId": "9ec9777a-d786-409e-91c4-da25125576e4",
    "principalName": "http://azure-cli-2020-08-07-03-23-18",
    "principalType": "ServicePrincipal",
    "roleDefinitionId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
    "roleDefinitionName": "Contributor",
    "scope": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590",
    "type": "Microsoft.Authorization/roleAssignments"
  }
]

If you have need any help regarding these commands, please don't hesitate to reply here to let us know.

@jiasli Thank you for sharing the information. However, I were looking more information on how to get a list of resources associated with a Service Principal via Command Line or Azure Portal.
Activity Log details will capture if action is performed via a Service Principal. If it's performed by a person having Owner/Contributor access, it logs the activity with your credential, not for Service Principal.
as @BhargaviAnnadevara-MSFT mentioned earlier, I will register the issue with Azure AD team if they can get something for me.


Custom ROM?

Since the WSA provided is an edited version of the already-provided WSA by Microsoft, and is stored in a regular disk image, wouldn't it be technically possible to port a version of a custom ROM, such as LineageOS for WSA?

Theoretically, but what's the significance?

@MlgmXyysd
Theoretically, but what's the significance?

Adding new features and being able to customize the way android works. I think it would probably add a fun way to customize WSA for ROM makers.

Theoretically, but what's the significance?

Signature spoofing for MicroG is one

DO IT YOURSELF
---Original---
From: @.>
Date: Sun, Jul 30, 2023 07:26 AM
To: @.>;
Cc: "Jaida<EMAIL_ADDRESS>Subject: Re: [WSA-Community/WSAGAScript] Custom ROM? (Issue #141)
Theoretically, but what's the significance?
Signature spoofing for MicroG is one
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

DO IT YOURSELF
…
---Original--- From: @.> Date: Sun, Jul 30, 2023 07:26 AM To: @.>; Cc: "Jaida<EMAIL_ADDRESS>Subject: Re: [WSA-Community/WSAGAScript] Custom ROM? (Issue #141) Theoretically, but what's the significance? Signature spoofing for MicroG is one — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

howwww??

DO IT YOURSELF
…
---Original--- From: @.> Date: Sun, Jul 30, 2023 07:26 AM To: @.>; Cc: "Jaida<EMAIL_ADDRESS>Subject: Re: [WSA-Community/WSAGAScript] Custom ROM? (Issue #141) Theoretically, but what's the significance? Signature spoofing for MicroG is one — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Explain what you mean by this

DO IT YOURSELF
…
---Original--- From: @.> Date: Sun, Jul 30, 2023 07:26 AM To: @.>; Cc: "Jaida<EMAIL_ADDRESS>Subject: Re: [WSA-Community/WSAGAScript] Custom ROM? (Issue #141) Theoretically, but what's the significance? Signature spoofing for MicroG is one — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

How do I do it myself? You still haven't told us how to do such a simple thing?

Theoretically, but what's the significance?

Significance: WSA is shutting down 👇
https://9to5google.com/2024/03/05/windows-11-android-apps-2/
Android 14 was supposed to release for it, and I was waiting for it to release to debug some apps, but now that is not an option.

Theoretically, but what's the significance?

Significance: WSA is shutting down 👇 https://9to5google.com/2024/03/05/windows-11-android-apps-2/
Android 14 was supposed to release for it, and I was waiting for it to release to debug some apps, but now that is not an option.

Might be able to indefinitely continue using it with WSA installers.

Theoretically, but what's the significance?

Significance: WSA is shutting down 👇 https://9to5google.com/2024/03/05/windows-11-android-apps-2/
Android 14 was supposed to release for it, and I was waiting for it to release to debug some apps, but now that is not an option.

Might be able to indefinitely continue using it with WSA installers.

True, but that means that the feature will be there, yes but no more Android OS updates would be released.


Added [audit] prefix to log messages on document delete.

Coverage decreased (-0.03%) to 93.094% when pulling c1756a64efd016f22b12b22d8d759178a8bfade0 on PlamenDoychev:master into 1f58fe92727974c97607f5310424c4e5a16a099a on cloudfoundry-incubator:master.

Coverage decreased (-0.3%) to 92.797% when pulling c1756a64efd016f22b12b22d8d759178a8bfade0 on PlamenDoychev:master into 1f58fe92727974c97607f5310424c4e5a16a099a on cloudfoundry-incubator:master.


Zero/Zero W inconsistent

As the driver currently is, we couldn't get the Zero (or the W, could be one or the other) to work with DMA transfers, but the other worked just fine. This severely hampers our battery life and CPU usage and were wondering if you'd ever make a work around for the one that doesn't work or if we have to research and get it working ourselves.
At this point we think it's probably less an issue of hardware and more about some kind of driver that uses specific DMA channels (more than likely the WiFi/BT).

Try explicitly passing -DPI_ZERO=ON to CMake, does that help? CMake tries to autodetect the board, but perhaps the revision is different. On my Pi Zero W, I get
pi@raspberrypi_zero:~/code/fbcp-ili9341/build_hx8357d $ cmake ..
-- Doing a Release build
-- Board revision: 9000c1
-- Targeting Raspberry Pi Zero (W)
-- Scaling source image to view. If the HDMI resolution does not match the SPI display resolution, this will produce blurriness. Match the HDMI display resolution with the SPI resolution in /boot/config.txt to get crisp pixel perfect rendering, or alternatively pass -DDISPLAY_CROPPED_INSTEAD_OF_SCALING=ON to crop instead of scale if you want to view the center of the screen pixel perfect when HDMI and SPI resolutions do not match.
-- Preserving aspect ratio when scaling source image to the SPI display, introducing letterboxing/pillarboxing if HDMI and SPI aspect ratios are different (Pass -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON to stretch HDMI to cover full screen if you do not care about aspect ratio)
-- SPI_BUS_CLOCK_DIVISOR set to 8. Try setting this to a higher value (must be an even number) if this causes problems. Display update speed = core_freq/divisor. (on Pi3B, by default core_freq=400)
-- USE_DMA_TRANSFERS enabled, this improves performance. Try running CMake with -DUSE_DMA_TRANSFERS=OFF it this causes problems, or try adjusting the DMA channels to use with -DDMA_TX_CHANNEL=<num> -DDMA_RX_CHANNEL=<num>.
-- Targeting Adafruit 3.5 inch PiTFT with HX8357D
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/code/fbcp-ili9341/build_hx8357d

See " Targeting Raspberry Pi Zero (W)" above. Perhaps this line is not kicking in the autodetection? https://github.com/juj/fbcp-ili9341/blob/master/CMakeLists.txt#L24
If that line does get printed for both, then it's possible that there's a DMA channel conflict, in which case try changing the channel numbers.

I was passing -DPI_ZERO explicitly every time I tried (since I thought it was always required). I will try a few times more with different Zeroes and see what happens.

So I built twice, once with and once without -DPI_ZERO=ON, both with DMA on. They compiled fine but the Zero W returned the following:
bcm_host_get_peripheral_address: 0x20000000, bcm_host_get_peripheral_size: 33554432, bcm_host_get_sdram_address: 0x40000000 BCM core speed: current: 400000000hz, max turbo: 400000000hz. SPI CDIV: 6, SPI max frequency: 66666667hz Allocated DMA channel 5 Allocated DMA channel 1 Enabling DMA channels Tx:5 and Rx:1 DMA hardware register file is at ptr: 0xb4b29000, using DMA TX channel: 5 and DMA RX channel: 1 DMA hardware TX channel register file is at ptr: 0xb4b29500, DMA RX channel register file is at ptr: 0xb4b29100 DMA channel 0 has peripheral map 0 (is lite channel: 0, currently active: 0, current control block: (nil)) DMA channel 1 has peripheral map 0 (is lite channel: 0, currently active: 0, current control block: (nil)) DMA channel 2 has peripheral map 0 (is lite channel: 0, currently active: 0, current control block: (nil)) DMA channel 3 has peripheral map 0 (is lite channel: 0, currently active: 0, current control block: (nil)) DMA channel 4 has peripheral map 0 (is lite channel: 0, currently active: 0, current control block: (nil)) DMA channel 5 has peripheral map 11 (is lite channel: 0, currently active: 0, current control block: (nil)) DMA channel 6 has peripheral map 13 (is lite channel: 0, currently active: 1, current control block: (nil)) DMA channel 7 has peripheral map 0 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 8 has peripheral map 13 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 9 has peripheral map 6 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 10 has peripheral map 7 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 11 has peripheral map 0 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 12 has peripheral map 0 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 13 has peripheral map 0 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA channel 14 has peripheral map 0 (is lite channel: 1, currently active: 0, current control block: (nil)) DMA TX channel 5 was assigned another peripheral map 11! DMA TX channel was assigned another peripheral map!
Luckily I was able to get it to work by changing the TX channel to 4 like so:
cmake -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DFREEPLAYTECH_WAVESHARE32B=ON -DSTATISTICS=0 -DDMA_TX_CHANNEL=4 ..


utilities is not defined in after_prepare

Hi,
there is an error during cordova compilation due a reference error in after_prepare.js
   While preparing Cordova project for platform iOS:
   ReferenceError: utilities is not defined
   at module.exports
/XXXX/cordova-build/plugins/cordova-plugin-sign-in-with-apple/scripts/after_prepare.js:12:42

It seems that utilities is undefined.

I'd changed a hook in 6757fda1ae86d68e347e981e0fe1b24e42c17128.
Can you confirm that it has been resolved?

Yes it is @keiya, I tested it, too.
But can you please push a new version for NPM?
Because when I install your plugin via cordova plugin add cordova-plugin-sign-in-with-apple it's using version 0.0.2 and I'm getting this utilities is undefined error.
When I install it via cordova plugin add https://githu b.com/twogate/cordova-plugin-sign-in-with-apple.git it's working fine. (because of master branch)
Thanks in Advance! 👍

I've pushed current version to npm. thanks!


notebook.scrolling.revealCellBehavior jumps back to original cell

Version: 1.83.0-insider
Commit: 8ecf5453e8e8f98cca0f9a661d3a6457d8a0e703
Date: 2023-09-26T05:34:22.077Z
Electron: 25.8.2
ElectronBuildId: 23977753
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.14.0-1048-oem
Also tested on the Mac
Testing #194069

create a cell contains the following content

import time
for i in range(20):
    time.sleep(.5)
    print(i)

add a cell behind it
set "notebook.scrolling.revealCellBehavior": "first"
run cell with shift + enter
the cell behind it is revealed (first line, as configured✅ )
but shortly after the editor scroll back to the first cell with the output

Revealing the next cell but jumping back doesn't make much sense. Not sure what's the user expectation of Shift+Enter.
Should revealing to the next cell wait for the evaluation to complete? Or should output never be revealed?

Interestingly, with "notebook.scrolling.revealCellBehavior": "fullCell" the no revealing of output happens

this looks like https://github.com/microsoft/vscode/issues/193231
the current context based scrolling in default can behave pretty strangly


Typo in displaying property type for successful add property command

When an add property command is successfully executed, there is a typo in the success message for Property type.
In the image above, other fields such as "Phone: 98765432;",  "Location: Clementi;" differ from the Property type as it shows "Property typeHDB" (lack of colon and whitespace).
To reproduce:

Open ABCLI
Switch to property mode using switch p
Input a valid add command, e.g. add n/John Doe p/98765432 l/Clementi a/450000 t/HDB
Check the success message

Also change format of Location -> Address


WiP - Embedded Scripts

This patch includes an script manager ($ rexray scripts) embedded in the REX-Ray CLI with the ability to install embedded scripts as well as scripts from GitHub, a Gist, or a URL.
Additionally, this PR includes the patch that introduces the FlexVol REX-Ray plug-in script which can be managed with the $ rexray flexrex command.

Current coverage is 7.50% (diff: 1.16%)

Merging #669 into release/0.6.4 will decrease coverage by 0.68%

@@           release/0.6.4      #669   diff @@
==============================================
  Files                 19        20     +1
  Lines               2308      2557   +249
  Methods                0         0
  Messages               0         0
  Branches               0         0
==============================================
+ Hits                 189       192     +3
- Misses              2104      2348   +244
- Partials              15        17     +2

Powered by Codecov. Last update d44cd66...03517e5

Hi @codenrhoden,
The purpose of the separate flexrex command is just making it first-class. Installing it will create a symlink to the main scripts area noted in the scripts manager.


get the latest version of minikube from releases

https://github.com/kubernetes/minikube/releases
https://github.com/medyagh/setup-minikube/blob/5a9a7104d7322fa40424de8855c84685e89cefd7/src/main.ts#L7

you are currently hard-coded on 1.10 :(

thanks for the issue, I just merged the PR that allows configing it


[Improvement]: Update the connector to fix the daily build failures

Connector Name
module/microsoft-onedrive (MS OneDrive)
Suggested improvement
$subject
Related issues
I am trying to do [...] but [...]

This issue was fixed by the following PRs. Hence closing this issue
https://github.com/ballerina-platform/module-ballerinax-microsoft.onedrive/pull/60
https://github.com/ballerina-platform/module-ballerinax-microsoft.onedrive/pull/61


feat: add docker-compose workflow

📝 Description
Closes https://github.com/anchore/syft/issues/1042. Only difference between this and the grype version https://github.com/anchore/grype/pull/783 is that Syft requires install git and zip.
Syft uses symlinks in its tests for syft/syft/source, but those fail because Docker resolves the links due to the mounted volume in compose ref here. Could use some guidance/advice or if we just want to add this to the README as a point of failure

I'm going to close this pr and issue. I don't see a fix for the symlink issue or the fact that certain files exact size is checked, but on Windows this will be off by a few bytes due to the change in line endings. If I have a better idea for how to support this, I'll make a new pr


remove deprecated log.request.decision flag

Remove deprecated log.request.decision flag. We now use --request.logging-config to set logging decisions

[ ] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

Verification

@saswatamcode Can you help with the merge? The test fail is not related to the changes though


feat: DEVHAS-337: Add a new test scenarios for private repos with devfiles

Description
Repo to test: https://github.com/redhat-appstudio-qe/private-quarkus-devfile-sample.git.
Issue ticket number and link
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/test all

/retest

@flacatus any updates on this?

https://issues.redhat.com/browse/RHTAPBUGS-833
created bug here

https://issues.redhat.com/browse/RHTAPBUGS-833 created bug here

@flacatus Can I have access to https://github.com/redhat-appstudio-qe/private-quarkus-devfile-sample.git to see what kind of repo it is, for the bug.
I also noticed that there is no Token Secret passed with Component.. Is it somehow being passed? We need it for accessing private repo.

/retest

/test all

/retest

/test all

/approved

/approve


Revert "Remove package image dependency"

Reverts flutter/flutter#74763
This caused a devicelab failure I bisected to this commit.
2021-01-27T19:08:48.481103: stdout: [  +36 ms] "flutter drive" took 19,439ms.
2021-01-27T19:08:48.484283: stderr: [   +3 ms] Test file not found: /Users/flutter/.cocoon/flutter/dev/integration_tests/ui/test_driver/screenshot_test.dart

integration_ui_ios_screenshot_19f6e54_3.log
To reproduce:
$ cd dev/integration_tests/ui
$ flutter drive -v -t lib/screenshot.dart

or run the test directly:
$ cd dev/devicelab
$ dart bin/run.dart -t integration_ui_ios_screenshot

Aha, so it is used. I couldn't find where it was used before.

Aha, so it is used. I couldn't find where it was used before.

(RSLGTM)

(RSLGTM)


docs: update README.md

PR Description
Fixes # (issue number)
Summary
learing -> learning
Motivation and Context
Explain the reasoning behind the changes and provide relevant context for a better understanding of the modifications.
Dependencies
Enumerate any new dependencies necessary for implementing these changes.
Type of Change
Specify the appropriate type of change and remove irrelevant options.

Documentation update

Testing Procedure
Please describe the testing process undertaken to validate these changes.

Thank you for the PR. This issue is resolved, so I'll close this.


feat: explore using larger GitHub runner for the chart testing workflow

Currently we get issues with workflows timing out like here. As the umbrella chart will grow with dependencies this can be an issue that needs to be addressed somehow. I would suggest looking into the implementation of larger GitHub runners as  they were made available for eclipse-tractusx if I recall correctly. Let's discuss this here and in the next sync meeting.

The problem wasn't related to limited resources. Large GitHub runners are not in the scope any longer for the umbrella chart. We might explore this at a later time, until closing this issue.


python311Packages.simple-websocket: 0.9.0 -> 0.10.1

Diff: https://github.com/miguelgrinberg/simple-websocket/compare/refs/tags/v0.9.0...v0.10.1
Changelog: https://github.com/miguelgrinberg/simple-websocket/blob/0.10.1/CHANGES.md
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 256631 run on x86_64-linux 1

4 packages built:

python310Packages.simple-websocket
python310Packages.simple-websocket.dist
python311Packages.simple-websocket
python311Packages.simple-websocket.dist


Sample

Add sample usage, and a couple bug fixes.

Hm, I may not want to have the aars packaged in. Should just have script do that. FIX IT SELF, FIX IT.

Or... No, okay, for now they stay in.


warning before leaving page / remove step

In my opinion it would be nice to have a confirmation action (popup, alert message, etc) from the user when he click on the cross to remove a step or leave the page without saving.

Agreed, do it!

Looks to be a pretty simple implementation here for reference:
https://stackoverflow.com/questions/32841757/detecting-user-leaving-page-with-react-router


LeafletJS integration

LeafletJS needs to be be connected to the book instances and their hand-overs.

Proof-of-concept implemented.


Feature request: switch to enable no-rollback for troubleshooting

When creating a pcluster, if post_install_script fails,  headnode creation will cause the pcluster stack to rollback. Need to be able to enable no-rollback to keep the headnode for troubleshooting.

@jxuamazon  -- thanks for the feature request. Support for disabling rollback on cluster creation has been added in PR #112 .


Polymer 2.0 compatibility

Hello @bennypowers ,
Thank so much you for giving support for polymer 2. I reviewed code and functionality, there is one small issue with suggestion text and autocomplete when tab key was pressed. For example Try giving India in the country name, and press tab without any click it is selecting British Indian Ocean Territory as country, this might problem when users in hurry, wants to complete country by just hitting tab and proceed with next filed in the form. It would be nice if we solve this issue, which will also improvise user experience.
Thanks.

Merging Pull request to add support for polymer 2.x version


Feature: Dask

Fix #292

Glad to see this.  Please feel welcome to reach out to dask developers if you have questions.

https://github.com/dask/distributed/issues/new
https://gitter.im/dask/dask

Thanks! We will definitely reach out with any questions. Also, feel free to suggest any features/improvements you'd like to see with aztk.


Link to classMap and styleMap directives does not work

open https://lit-element.polymer-project.org/guide/styles#external-stylesheet
and click on classMap or styleMap does not work.

These specific links were eliminated in the recent update to the Styles page (#826).


Create Blog "How to find a job in SPE"

Thanks @jowens for suggesting a blog post about how to find a job in software performance engineering. If it fits with your vision, I could do substantial work on this, starting by calling CSAIL Alliances (who broker most relationships between our lab and industry) and also talking with industry partners that we've already interviewed (e.g., Schlumberger, Microsoft, NASDAQ, Citadel, Arrow Electronics, etc.).

Fully support this. Suggested the title is "So you want to find a job in performance engineering: collected thoughts from industry" with a target of students. Woo!


td-agent v4.5.0

@kenhys Can you please review CHANGELOG.md lightly?

I've decide to release this May 8th.


Create Global Sysman API to collect GPU dump (logs)

As L0 Syman is admin and it should have flexible to provide an API for end user to give GPU dump/crashlog and collect debug information/ logs. In a scenario like in multi GPU connected platform, if one of GPU goes hung and user would like to diagnosis for hung or get gpu dump logs will help to analysis purpose.
This might implement at spec 2.0 level and Sysman has to completely de-link from L0 core and this API should work without zeInit() as zeInit has limitation of require device handle and which may not be possible in case of GPU hung. Sysman use PCI BDF info and access to sysfs directly ang get the detailed log in the new API (which could be global API)

@sanilkumar0 please see above

@saik-intel

this API should work without zeInit() as zeInit has limitation of require device handle and which may not be possible in case of GPU hung

we already have that, with zesInit.

IMHO there should be also an error counter for GPU OOM issues, potentially also for other issues.
It should be a counter that is provided by kernel, because parsing logs is not robust.  Logparsing has much more overhead, events can be lost, when (kernel) log buffer overflows etc.

@bmyates   the requirement is while workload running on multi card gpu, if one of GPU goes hung or bad, it might not possible to attach GDB in such case, without attaching GDB, will L0 debug can provide this crash dump ? this requirement is without L0 init and without attatching GDB

@saik-intel

this API should work without zeInit() as zeInit has limitation of require device handle and which may not be possible in case of GPU hung

we already have that, with zesInit.

@jandres742   I Mean without zeInit/zesInit , without initializing L0, need to get the dump/log

@saik-intel if you dont even need zeInit or zesInit, does it even belong to the L0 API? or could it be just a complete separate tool?

@bmyates the requirement is while workload running on multi card gpu, if one of GPU goes hung or bad, it might not possible to attach GDB in such case, without attaching GDB, will L0 debug can provide this crash dump ? this requirement is without L0 init and without attatching GDB

L0 debug allows attaching, interrupting hung threads, and gives access to memory space and registers
What data do you want included in the gpu dump? Is it some data not already available through l0 debug?

@bmyates even with debug, you need to have an L0 device and L0 driver . What @saik-intel is looking here is something like zeGetDmesg() that would give you dmesg logs (and other kind of logs), even w/o having a driver or device initialized.

IMHO there should be also an error counter for GPU OOM issues, potentially also for other issues.
It should be a counter that is provided by kernel, because parsing logs is not robust. Logparsing has much more overhead, events can be lost, when (kernel) log buffer overflows etc.

=> https://github.com/oneapi-src/level-zero-spec/issues/86


Caddy: Caddyfile input is not formatted

Describe the bug
Caddy fails building & starting, citing:
> Error: /nix/store/h97ybha4a6yryrpa1pcb9lgxyv6bad6w-Caddyfile:1: Caddyfile input is not formatted
Steps To Reproduce
Steps to reproduce the behavior:

Build and start caddy

Expected behavior
Build & Startup doesn't fail
Screenshots

Content of the file

Additional context
Reverting to an older version works:

Metadata
$ nix-shell -p nix-info --run "nix-info -m"
these 2 paths will be fetched (0.01 MiB download, 0.11 MiB unpacked):
  /nix/store/1dqwviwjk1ncjrqgnfk1gx67i6fg9xz2-DarwinTools-1
  /nix/store/cdg9xx3p8s2bl3gsfg0yycq6d5r6b0gb-nix-info
copying path '/nix/store/1dqwviwjk1ncjrqgnfk1gx67i6fg9xz2-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/cdg9xx3p8s2bl3gsfg0yycq6d5r6b0gb-nix-info' from 'https://cache.nixos.org'...
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.3.0, macOS 13.2`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.13.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Likely fixed by https://github.com/NixOS/nixpkgs/pull/215369

Error does not appear anymore, after updating to newest versions

Being the author of #215369, could I have done something differently, so this wouldn't have happened?
That error was would I would describe as pretty self-contained.
It was introduced in that PR and fixed in another commit in the very same PR. (the final commit dates were just 5 minutes apart (due to a lot of rebasing)).

@halictuz that is a different issue.
Similar, yes, but the context differs.
OP ran into an error of the nixos module (which is used by the package tests).
You on the other hand, are encountering a runtime warning, not an error.
Please refer to the official cli documentation at https://caddyserver.com/docs/command-line#caddy-fmt
You want to use caddy fmt --overwrite
Your issue is not specific to v2.6.3


change: bump max sockets in lwip Kconfig (IDFGH-12906)

Addresses #3840
Tested under ESP32S3, running 50 tasks, each with a client, and a server listening to one client, totalizing 150 sockets/files open, forwarding data from PPP to Ethernet and vice versa.
Reasoning for 255 total sockets/files is VFS local_fd_t being a uint8_t.
Since FD_SETSIZE is defined at tool level, a CMakeLists user definition is needed in cases above 64 (the default value).

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

Done.

I'll agree this is a cool PR, but how do we handle FD_SETSIZE? Is it possible to define this generically when socket count exceeds the declared limit (61) before requiring an override?
Also what about the case of other VFS usages that are not sockets? Can that be confirmed as still working when using 61 sockets (as example)?

I agree it would be ideal that Kconfig itself defined FD_SETSIZE,  but I don't know enough about Kconfig to make it happen.
Also, I spotted a off-by-one error, local_fd_t supports 256 files, not 255 as previously stated. This add one to the theoretical maximum allowed FD_SETSIZE and CONFIG_LWIP_MAX_SOCKETS.
About testing

Hardware:

Chip is ESP32-S3 (QFN56) (revision v0.2)

Features: WiFi, BLE, Embedded PSRAM 2MB (AP_3v3)
Crystal is 40MHz

PSRAM being used for configuration data only.

Firmware:

Configurations used in every scenario:
CONFIG_LWIP_MAX_ACTIVE_TCP=255
CONFIG_LWIP_MAX_LISTENING_TCP=255
Running a Port Forwarder from PPP to Ethernet.
FS used for files is littlefs.

First scenario
FD_SETSIZE=64 (tool default)
CONFIG_LWIP_MAX_SOCKETS=61
Results:

Simultaneously opened 61 listening sockets successfully, trying to accept a connection fails, as expected.
Simultaneously opened 21 listening sockets, 20 accepted clients, and 20 sockets connected as a client successfully. Trying to accept the 21st client fails, as expected.
Since FD_SETSIZE=64 and CONFIG_LWIP_MAX_SOCKETS=61, that leaves room for 3 "regular" FDs, used by stdout, stdin and stderr, trying to open a file via littlefs fails, as expected.

Second scenario
FD_SETSIZE=64
CONFIG_LWIP_MAX_SOCKETS=32
Results:

Simultaneously opened 16 files, 8 listening sockets, 8 accepted clients, and 8 sockets connected as a client successfully.

Third scenario
FD_SETSIZE=256
CONFIG_LWIP_MAX_SOCKETS=253
Results:

Simultaneously opened 50 listening sockets, 50 accepted clients, and 50 sockets connected as a client successfully. Hardware RAM limitations prevents opening more sockets.
Since FD_SETSIZE=256 and CONFIG_LWIP_MAX_SOCKETS=253, that leaves room for 3 "regular" FDs, used by stdout, stdin and stderr, trying to open a file via littlefs fails, as expected.

Fourth scenario
FD_SETSIZE=256
CONFIG_LWIP_MAX_SOCKETS=200
Results:

Simultaneously opened 25 files, 25 listening sockets, 25 accepted clients, and 25 sockets connected as a client successfully. Hardware RAM is the limit.

Further optimizations on port forwarder firmware would allow bigger numbers, but I think this is enough for now.

Hi @rdgoprslv thanks for the contribution. The changes were merged in 48295d3

Any chance of a back port to 5.3?


WSDL sample

First thanks for taking the time to share your SOAP library. I'm struggling a bit to get the mapping between my js and the wsdl. I'm looking at the soap.listen samples provided on npm and github, and it would really help if you had a simple working sample of perhaps if you could provide the wsdl for the sample (myservice.wsdl).
Thanks
Mikael

Checkout the tests for server examples.  I believe that's what you're after.  If you find something that's not in the README, please issue a PR to get your example included.  Thanks!

+1, do I have to write the wsdl from scratch? Is there a generator out there?
I googled for 30min+ and did not find anything besides soapUi (which is not working on my Mac) and tremendously expensive enterprise software.


can not reproduce snapshot ensemble

I have tried the SE method several times but cannot reproduce it.
Below are the reproduction results of SE applying the maxentropy acquisition function.
I haven't modified any config files or other code.
Also I wonder Table 1 in the paper, 'DE at the final episode' result is same as 'ens acc'?

Before SWA 0.319 1.990 0.196
Episode 1 num_models: 5 -- max eval acc: 35.60, test acc: 33.15
model_0 test accuracy: 30.17% model_1 test accuracy: 31.53% model_2 test accuracy: 31.09% model_3 test accuracy: 33.09% model_4 test accuracy: 34.69%
ens acc: 34.75, mean acc: 32.11
Before SWA 0.383 2.083 0.278
Episode 2 num_models: 5 -- max eval acc: 42.20, test acc: 37.72
model_0 test accuracy: 40.65% model_1 test accuracy: 40.73% model_2 test accuracy: 40.16% model_3 test accuracy: 39.58% model_4 test accuracy: 37.38%
ens acc: 42.16, mean acc: 39.70
Before SWA 0.451 1.830 0.249
Episode 3 num_models: 5 -- max eval acc: 53.40, test acc: 49.29
model_0 test accuracy: 48.92% model_1 test accuracy: 17.72% model_2 test accuracy: 50.52% model_3 test accuracy: 50.62% model_4 test accuracy: 17.23%
ens acc: 47.23, mean acc: 37.00
Before SWA 0.435 1.895 0.274
Episode 4 num_models: 5 -- max eval acc: 56.60, test acc: 53.00
model_0 test accuracy: 51.07% model_1 test accuracy: 42.14% model_2 test accuracy: 52.83% model_3 test accuracy: 50.60% model_4 test accuracy: 51.09%
ens acc: 55.21, mean acc: 49.55
Before SWA 0.562 1.344 0.145
Episode 5 num_models: 5 -- max eval acc: 62.80, test acc: 61.88
model_0 test accuracy: 54.95% model_1 test accuracy: 52.80% model_2 test accuracy: 51.67% model_3 test accuracy: 61.21% model_4 test accuracy: 43.83%
ens acc: 61.91, mean acc: 52.89
Before SWA 0.576 1.284 0.105
Episode 6 num_models: 5 -- max eval acc: 64.20, test acc: 64.00
model_0 test accuracy: 41.49% model_1 test accuracy: 53.28% model_2 test accuracy: 61.31% model_3 test accuracy: 61.69% model_4 test accuracy: 56.28%
ens acc: 64.60, mean acc: 54.81
Before SWA 0.498 1.673 0.238
Episode 7 num_models: 5 -- max eval acc: 60.80, test acc: 63.57
model_0 test accuracy: 50.48% model_1 test accuracy: 53.26% model_2 test accuracy: 32.01% model_3 test accuracy: 59.14% model_4 test accuracy: 53.27%
ens acc: 62.22, mean acc: 49.63
Before SWA 0.556 1.448 0.170
Episode 8 num_models: 5 -- max eval acc: 60.80, test acc: 70.98
model_0 test accuracy: 20.22% model_1 test accuracy: 59.47% model_2 test accuracy: 60.10% model_3 test accuracy: 56.27% model_4 test accuracy: 63.02%
ens acc: 68.13, mean acc: 51.82
Before SWA 0.489 1.753 0.250
Episode 9 num_models: 5 -- max eval acc: 64.60, test acc: 74.96
model_0 test accuracy: 58.13% model_1 test accuracy: 58.42% model_2 test accuracy: 61.01% model_3 test accuracy: 61.25% model_4 test accuracy: 60.08%
ens acc: 70.70, mean acc: 59.78
Before SWA 0.454 2.085 0.310
Episode 10 num_models: 5 -- max eval acc: 61.20, test acc: 72.86
model_0 test accuracy: 52.16% model_1 test accuracy: 51.13% model_2 test accuracy: 55.79% model_3 test accuracy: 57.12% model_4 test accuracy: 61.02%
ens acc: 68.43, mean acc: 55.44
Before SWA 0.540 1.551 0.217
Episode 11 num_models: 5 -- max eval acc: 60.40, test acc: 73.67
model_0 test accuracy: 60.16% model_1 test accuracy: 52.73% model_2 test accuracy: 58.61% model_3 test accuracy: 58.09% model_4 test accuracy: 59.18%
ens acc: 68.75, mean acc: 57.75
Before SWA 0.593 1.350 0.174
Episode 12 num_models: 5 -- max eval acc: 66.20, test acc: 77.59
model_0 test accuracy: 62.23% model_1 test accuracy: 61.37% model_2 test accuracy: 58.18% model_3 test accuracy: 63.58% model_4 test accuracy: 62.04%
ens acc: 72.37, mean acc: 61.48
Before SWA 0.594 1.408 0.191
Episode 13 num_models: 5 -- max eval acc: 67.40, test acc: 78.78
model_0 test accuracy: 57.97% model_1 test accuracy: 56.17% model_2 test accuracy: 64.93% model_3 test accuracy: 63.59% model_4 test accuracy: 61.30%
ens acc: 73.23, mean acc: 60.79
Before SWA 0.608 1.333 0.169
Episode 14 num_models: 5 -- max eval acc: 70.20, test acc: 80.49
model_0 test accuracy: 68.08% model_1 test accuracy: 56.76% model_2 test accuracy: 64.01% model_3 test accuracy: 63.36% model_4 test accuracy: 66.73%
ens acc: 76.79, mean acc: 63.79
Before SWA 0.612 1.335 0.184
Episode 15 num_models: 5 -- max eval acc: 69.20, test acc: 81.86
model_0 test accuracy: 60.53% model_1 test accuracy: 61.63% model_2 test accuracy: 63.45% model_3 test accuracy: 68.01% model_4 test accuracy: 65.90%
ens acc: 76.15, mean acc: 63.90
Before SWA 0.650 1.176 0.147
Episode 16 num_models: 5 -- max eval acc: 70.40, test acc: 82.81
model_0 test accuracy: 67.36% model_1 test accuracy: 66.95% model_2 test accuracy: 64.89% model_3 test accuracy: 67.66% model_4 test accuracy: 68.88%
ens acc: 79.13, mean acc: 67.15
Before SWA 0.672 1.053 0.125
Episode 17 num_models: 5 -- max eval acc: 71.00, test acc: 83.91
model_0 test accuracy: 64.46% model_1 test accuracy: 66.32% model_2 test accuracy: 68.62% model_3 test accuracy: 65.99% model_4 test accuracy: 70.04%
ens acc: 77.79, mean acc: 67.09
Before SWA 0.597 1.439 0.216
Episode 18 num_models: 5 -- max eval acc: 73.60, test acc: 84.93
model_0 test accuracy: 69.62% model_1 test accuracy: 70.47% model_2 test accuracy: 68.63% model_3 test accuracy: 65.17% model_4 test accuracy: 67.21%
ens acc: 80.40, mean acc: 68.22
Before SWA 0.692 0.994 0.113
Episode 19 num_models: 5 -- max eval acc: 75.40, test acc: 85.09
model_0 test accuracy: 66.88% model_1 test accuracy: 68.20% model_2 test accuracy: 69.52% model_3 test accuracy: 69.78% model_4 test accuracy: 71.86%
ens acc: 81.33, mean acc: 69.25
Before SWA 0.589 1.486 0.210
Episode 20 num_models: 5 -- max eval acc: 74.40, test acc: 86.23
model_0 test accuracy: 71.40% model_1 test accuracy: 68.54% model_2 test accuracy: 71.38% model_3 test accuracy: 68.60% model_4 test accuracy: 68.02%
ens acc: 82.00, mean acc: 69.59
Before SWA 0.675 1.114 0.151
Episode 21 num_models: 5 -- max eval acc: 73.60, test acc: 86.40
model_0 test accuracy: 70.47% model_1 test accuracy: 64.42% model_2 test accuracy: 72.41% model_3 test accuracy: 60.67% model_4 test accuracy: 67.00%
ens acc: 81.10, mean acc: 66.99
Before SWA 0.720 0.892 0.101
Episode 22 num_models: 5 -- max eval acc: 75.00, test acc: 87.08
model_0 test accuracy: 71.12% model_1 test accuracy: 70.54% model_2 test accuracy: 73.33% model_3 test accuracy: 71.64% model_4 test accuracy: 71.30%
ens acc: 82.85, mean acc: 71.59
Before SWA 0.697 0.975 0.121
Episode 23 num_models: 5 -- max eval acc: 74.00, test acc: 87.31
model_0 test accuracy: 71.39% model_1 test accuracy: 65.91% model_2 test accuracy: 70.73% model_3 test accuracy: 68.48% model_4 test accuracy: 71.07%
ens acc: 80.63, mean acc: 69.52
Before SWA 0.735 0.831 0.077
Episode 24 num_models: 5 -- max eval acc: 76.60, test acc: 88.21
model_0 test accuracy: 72.81% model_1 test accuracy: 69.62% model_2 test accuracy: 73.12% model_3 test accuracy: 74.81% model_4 test accuracy: 73.01%
ens acc: 84.65, mean acc: 72.67
Before SWA 0.710 0.917 0.096
Episode 25 num_models: 5 -- max eval acc: 78.60, test acc: 88.40
model_0 test accuracy: 73.07% model_1 test accuracy: 76.46% model_2 test accuracy: 71.14% model_3 test accuracy: 77.80% model_4 test accuracy: 72.12%
ens acc: 84.28, mean acc: 74.12

Thank you for asking questions on our paper and the code.
ens acc are not the reported figures of "DE at the final episode" in the paper. The reported figures are the results of re-training an ensemble of five members with those acquired samples.
For SE to work well in the context of AL, we observed that the diversity of predictions is important. Therefore, for experiments on CIFAR-10 dataset, we increased the learning rate while gathering snapshots as explained in the Algorithm 1 and Appendix. Therefore, the accuracy of each snapshot might be lower, which may not be suitable for true performance evaluation.
You can get the results in the paper by training a new model, or an ensemble of models with labeled samples after the AL process. For re-training, we basically used the same hyperparameters as ones used in the active learning process.
As we highly emphasized in the section 3.2 by saying "what really matters is the accuracy after the final episode," we disentangled (or at least tried to disentangle) the quality of acquired examples from the training method for evaluation. If you manage to select good examples to be labeled, the performance of a model trained with them should be higher regardless of training methods (a single model, DE, or even SWA) or hyperparameters, which is one of the reasons we decided to include DE results in the tables.
Feel free to ask me if you have more questions.

As you commented, I retrained the DE model from scratch with data from the SE method and it is now reproducible.
thank you!


Game(with the BaseGame Template) Crashes when  togglling the WorldEditor from the GUIEditor

Hey Guys, When I tested the  BaseGame template I came across an issue that the game kept crashing when i hit the World Editor button in the GUIEditor. I think this issue may be a bug from somewhere in scripts and I'd like to demonstrate how to reproduce the issue:
Platform: windows8
Executable: game compiled with BaseGame Template without anythings else. Release Version.
Steps:

Run the game
Hit the "Launch World Editor" button in the main menu to open the WorldEditor
Hit the "Open the GUIEditor" button in the toolbar from the WorldEditor to toggle GUIEditor
In the GUIEditor hit the "WorldEditor" button in the toolbar to toggle back to the WorldEditor
the whole game crashed after step 4.

P.S.
Game does not crash in following cases:

“Launch GUI Editor”(in the main menu)  -> “WorldEditor”(in the GUIEditor's toolbar) .
Game started by the torsion IDE never crashes.

console.log may help.

-------------------------- 10/6/2017 -- 17:12:14 -----
Processor Init:
   Unknown x86 Compatible, ~2.60 Ghz
   HT detected
   MP detected [8 cores, 16 logical, 1 physical]

Math Init:
   Installing Standard C extensions
   Installing Assembly extensions

Initializing platform...
Input Init:

Done
SFXALProvider - No valid devices found!
DebugDrawer Enabled!
GFX Init:
   Null device found
   Direct 3D (version 11.x) device found
   OpenGL device found

Console trace disabled.
C:/Users/Administrator/Documents

--------- Parsing Arguments ---------
Attempting to create GFX device: AMD Radeon (TM) R9 370 Series (D3D11) []
Device created, setting adapter and enumerating modes
Hardware occlusion query detected: Yes
WMIVideoInfo: DxDiag initialized
Initializing GFXCardProfiler (Direct3D11)
   o Chipset : 'AMD'
   o Card    : 'AMD Radeon (TM) R9 370 Series'
   o Version : ''
   o VRAM    : 4074 MB
   - Scanning card capabilities...
GFXCardProfiler (Direct3D11) - Setting capability 'maxTextureWidth' to 16384.
GFXCardProfiler (Direct3D11) - Setting capability 'maxTextureHeight' to 16384.
GFXCardProfiler (Direct3D11) - Setting capability 'maxTextureSize' to 16384.
   - Loading card profiles...
      - No card profile core/gfxprofile/Direct3D11.cs exists
      - No card profile core/gfxprofile/Direct3D11.AMD.cs exists
      - No card profile core/gfxprofile/Direct3D11.AMD.AMDRadeonTMR9370Series.cs exists
      - No card profile core/gfxprofile/Direct3D11.AMD.AMDRadeonTMR9370Series..cs exists
--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--AA TypeXLevel : 4
--------------

sfxStartup...
SFXSystem::createDevice - created Null device 'SFX Null Device'
   Provider: Null
   Device: SFX Null Device
   Hardware: No
   Max Buffers: 16

UDP initialized on ipv4 IP:<IP_ADDRESS>:56604
--------------------------------------------------------------------------------
Module Manager: Started scanning 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data'...
Module Manager: Registering: 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/clientServer/ClientServer.module' [ ID='ClientServer', VersionId='1', BuildId='0', Description='Default module for the game.' ].
Module Manager: Registering: 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/ui/UI.module' [ ID='UI', VersionId='1', BuildId='0', Description='Module that implements the menus for the game.' ].
Module Manager: Finished scanning 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data'.
--------------------------------------------------------------------------------
Module Manager: Loading group 'Game':
Module Manager: Group 'Game' and its dependencies is comprised of the following '2' module(s):
> module Id 'ClientServer' at version Id '1':
> module Id 'UI' at version Id '1':
--------------------------------------------------------------------------------
Module Manager: Loading group 'Game' : module Id 'ClientServer' at version Id '1' in group 'Game' using the script file 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/clientServer/ClientServer.cs'.

--------- Initializing Directory: scripts ---------

--------- Initializing T3DBaseGame: Server Scripts ---------
C:/Users/Administrator/Documents

--------- Initializing T3DBaseGame: Client Scripts ---------
C:/Users/Administrator/Documents
--------------------------------------------------------------------------------
Module Manager: Loading group 'Game' : module Id 'UI' at version Id '1' in group 'Game' using the script file 'C:/Users/Administrator/Documents/GitHub/Torque3D/My Projects/T3DBaseGame/game/data/ui/UI.cs'.
--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--AA TypeXLevel : 4
--------------
--------------------------------------------------------------------------------
Module Manager: Finish loading '2' module(s) for group 'Game'.
--------------------------------------------------------------------------------

Initializing Lighting Systems
C:/Users/Administrator/Documents
--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--AA TypeXLevel : 4
--------------
Engine initialized...
Window focus status changed: focus: 1
AntiAliasing has been disabled; it is not compatible with AdvancedLighting.
Window focus status changed: focus: 0
  Using background sleep time: 200
Window focus status changed: focus: 1
 % - Initializing Tools
Missing file: tools/gui/postFxManager.gui!
 % - Initializing Tools Base
 % - Initializing Base Editor
 % - Initializing World Editor
 % - Initializing Sketch Tool
 - Initializing Datablock Editor
 % - Initializing Debugger
 % - Initializing Decal Editor
 % - Initializing Forest Editor
 % - Initializing Gui Editor
 % - Initializing Material Editor
 % - Initializing Mesh Road Editor
 % - Initializing Mission Area Editor
 % - Initializing Navigation Editor
SimObject::linkNamespaces -- Namespace linkage already in place NavEditorConsoleListener
 % - Initializing Particle Editor
 % - Initializing Physics Tools
 % - Initializing River Editor
 - Initializing Road and Path Editor
 % - Initializing Shape Editor
C:/Users/Administrator/Documents
Exporting server prefs...
*** LOADING MISSION: tools/levels/BlankRoom.mis
*** Stage 1 load
*** Stage 2 load
*** Mission loaded
Connect request from: IP:<IP_ADDRESS>
Connection established 19984
CADD: 19985 local
*** Sending mission load to client: tools/levels/BlankRoom.mis
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
onServerMessage:
Mapping string: MsgLoadInfo to index: 2
onServerMessage:
Mapping string: MsgLoadDescripition to index: 3
onServerMessage:
Mapping string: MsgLoadInfoDone to index: 4
onServerMessage:
Mapping string: MissionStartPhase1 to index: 5
*** New Mission: tools/levels/BlankRoom.mis
*** Phase 1: Download Datablocks & Targets
% - PostFX Manager - Executing tools/levels/BlankRoom.postfxpreset.cs
% - PostFX Manager - Applying from preset
HDR FORMAT: GFXFormatR16G16B16A16F
% - PostFX Manager - PostFX enabled
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2 to index: 6
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
[Material::mapMaterial] - Cannot map unnamed Material
[Material::mapMaterial] - Cannot map unnamed Material
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 7
Client Replication Startup has Happened!
fxFoliageReplicator - replicated client foliage for 0 objects
*** Phase 3: Mission Lighting
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
Set::add: Object "" doesn't exist
Mapping string: MissionStart to index: 8
*** Initial Control Object
data/clientServer/scripts/client/connectionToServer.cs (47): Unable to find object: 'PlayGui' attempting to call function 'getId'
GuiCanvas::setContent - Invalid control specified')
Could not create a description for binding: +
Could not create a description for binding: +
tools/worldEditor/scripts/EditorGui.ed.cs (545): Unable to find object: 'moveMap' attempting to call function 'push'
Time spent in toggleEditor() : 1.316 s
*** Control Object Changed
data/clientServer/scripts/client/connectionToServer.cs (58): Unable to find function resetCurrentFOV
data/clientServer/scripts/client/connectionToServer.cs (60): Unable to find function turnOffZoom
GuiCanvas::setContent - Invalid control specified')
Time spent in toggleEditor() : 0.003 s
tools/worldEditor/scripts/menus.ed.cs (393): Unable to find object: '20018' attempting to call function 'removeFromCanvas'
tools/worldEditor/scripts/EditorGui.ed.cs (864): Unable to find object: '20018' attempting to call function 'remove'
tools/worldEditor/scripts/EditorGui.ed.cs (574): Unable to find object: 'moveMap' attempting to call function 'pop'
tools/worldEditor/scripts/EditorGui.ed.cs (545): Unable to find object: 'moveMap' attempting to call function 'push'
tools/worldEditor/scripts/EditorGui.ed.cs (840): Unable to find object: '20018' attempting to call function 'insert'
tools/worldEditor/scripts/undoManager.ed.cs (52): Unable to find object: '0' attempting to call function 'setItemName'
tools/worldEditor/scripts/undoManager.ed.cs (53): Unable to find object: '0' attempting to call function 'setItemName'
tools/worldEditor/scripts/undoManager.ed.cs (55): Unable to find object: '0' attempting to call function 'enableItem'
tools/worldEditor/scripts/undoManager.ed.cs (56): Unable to find object: '0' attempting to call function 'enableItem'
GFXTextureManager::_lookupTexture: Cached texture tools/worldEditor/images/lockedHandle has a different profile flag
GFXTextureManager::_lookupTexture: Cached texture tools/worldEditor/images/lockedHandle has a different profile flag
tools/worldEditor/scripts/EditorGui.ed.cs (864): Unable to find object: '20018' attempting to call function 'remove'
tools/worldEditor/scripts/EditorGui.ed.cs (574): Unable to find object: 'moveMap' attempting to call function 'pop'
tools/worldEditor/scripts/EditorGui.ed.cs (545): Unable to find object: 'moveMap' attempting to call function 'push'

Thanks for the check on this! I believe this was corrected in the full template, but may have been missed for the fix.
I'll go through and double-check this.


Failed to extract download URL

Container today stopped working when trying to restart. Error log is below. Looks like it can't extract the URL from MSFT's download page. I have not debugged it any further yet.
And thanks for maintaining this docker file, it has been working great for me to run a small, private server on GKE for the past months.
--- snip ---
DEBU[0000] Using /data to match uid and gid
DEBU[0000] Resolved UID=0 from match path
DEBU[0000] Resolved GID=0 from match path
Failed to extract download URL 'null' from https://www.minecraft.net/en-us/download/server/bedrock/

Nevermind. Seemed to have been a temporary issue and the server came up a few minutes later.


Add missing test guards

[x] iree_lit_test is missing filtering
[x] runtime/src/iree/runtime/testdata isn't really testonly data, it is used by a sample and should be moved into that sample directly

@benvanik
Much more below the surface than I expected. Thanks for the thorough pointers. This was an attempt to side-step a build issue in an alternative build path I was wanting to workout but now I'm thinking I'll just not side-step.
But if there's some maintenance/chore work to be done here I'm happy to do that too. I.e., I'll let @ScottTodd weigh in and then you guys can tell me what should survive and I'll get it done.

Agreed that we should let the rules themselves do the filtering when possible. That also works with bazel_to_cmake so a bazel cc_test turns into a CMake iree_cc_test that automatically filters with no need for explicit if(NOT IREE_BUILD_TESTS) checks. There is some similar filtering applied for non-test targets (like test data or test library helpers) with the testonly tag: https://bazel.build/reference/be/common-definitions#:~:text=incompatible target skipping.-,testonly,-Boolean%3B nonconfigurable
Looks like this did uncover two real issues to fix

iree_test_test is missing filter
runtime/src/iree/runtime/testdata isn't really testonly data, it is used by a sample and should be moved into that sample directly

cool! sounds like some nice fixes - would be great to have a CI build config with samples/tests disabled to help catch some of these issues too!

Okay I reverted my first n00b commit and add the early return in iree_lit_test. I'll get to moving testdata soon.

neato - sorry that you peered into the darkness and were met with a colorful rainbow ;P

@ScottTodd @benvanik I believe I have done the right things but I have not verified (because bazel...). Can you kick the tests again (or give me contrib access...).

@ScottTodd @benvanik I believe I have done the right things but I have not verified (because bazel...). Can you kick the tests again (or give me contrib access...).

Approved workflows and sent an invite to iree-org and the iree-triage team.

Approved workflows and sent an invite to iree-org and the iree-triage team.

Cool thanks. I'll figure out the fails tomorrow.

@ScottTodd I think I got it now?

Yep, looks good now! I think we can dismiss Ben's "requested changes" review and merge now.

cool! sounds like some nice fixes - would be great to have a CI build config with samples/tests disabled to help catch some of these issues too!

BTW I put some thoughts about a CI build on https://github.com/iree-org/iree/issues/17136#issuecomment-2145579825