mvn site not generating results directories

With mvn site I'm getting below error,
[INFO] Generating "Allure" report    --- allure-maven-plugin:2.2
[INFO] Report Version: 1.4.16
[INFO] Results Pattern: /allure-results
[INFO] Found [0] results directories by pattern [/allure-results]
[INFO] Found [0] plugins
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.412 s
[INFO] Finished at: 2016-03-08T17:50:09+05:30
[INFO] Final Memory: 12M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:si
te (default-site) on project Ancestry_STAGE_maven: Error during page generation:
Error rendering Maven report: Can't find any results directories by pattern [**
/allure-results] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
And below is Report generating snippet in the pom.xml
<reporting>
        <excludeDefaults>true</excludeDefaults>
        <plugins>
            <plugin>
                <groupId>ru.yandex.qatools.allure</groupId>
                <artifactId>allure-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <outputDirectory>${basedir}/target/allure-reports/</outputDirectory>
                    <allureResultsDirectory>${basedir}/target/allure-results</allureResultsDirectory>
                </configuration>
            </plugin>

        </plugins>

        <outputDirectory>${basedir}/site</outputDirectory>
    </reporting>

@maheshbedampeta Allure results are generated during $ mvn test phase.

@vania-pooh I'm unable to generate the Allure results during $mvn test phase also. Please help me out in getting the results

@maheshbedampeta which test framework are you using? You need to add respective Allure adapter dependency to pom.xml.

@vania-pooh I'm using TestNG framework. Yes infact I've added following adapter dependency to pom.xml.
<dependency>
			<groupId>ru.yandex.qatools.allure</groupId>
			<artifactId>allure-testng-adaptor</artifactId>
			<version>1.4.16</version>
			<exclusions>
				<exclusion>
					<groupId>junit</groupId>
					<artifactId>junit</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

@maheshbedampeta at least you need to upgrade allure-maven-plugin to 2.5. Since 2.3 the plugin configuration was changed, so see the docs http://wiki.qatools.ru/display/AL/Allure+Maven+Plugin

@baev Hey thanks very much for the update. With the change you mentioned I can see the console with Build Success message with couple of warning messages as below.
[WARNING] Results directory for module  not found.
[WARNING] Allure report was skipped because there is no results directories found.
As a result I'm not able to see any content in the report

@maheshbedampeta could you please specify your project structure? Does target/allure-resutls folder exists in your tests module? What version of testNg are you use?

@baev @vania-pooh Hey guys thanks for helping me out. I was using poor version of testng. I've updated it to latest and reporting is working great now.

You are welcome

@baev and @vania-pooh  I am getting the same error my testNG and allure-maven-plugin version is latest but I am not able to generate allure html report.
My POM is:

<allure.version>1.4.16</allure.version>
<aspectj.version>1.8.5</aspectj.version>

org.testng
testng
<IP_ADDRESS>

ru.yandex.qatools.allure
allure-testng-adaptor
1.4.16

junit
junit

	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-chrome-driver</artifactId>
		<version>2.53.1</version>
	</dependency>
	<dependency>
		<groupId>org.seleniumhq.selenium</groupId>
		<artifactId>selenium-java</artifactId>
		<version>2.53.1</version>
	</dependency>
	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi-ooxml-schemas</artifactId>
		<version>3.15</version>
	</dependency>
	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi-ooxml</artifactId>
		<version>3.15</version>
	</dependency>
	<dependency>
		<groupId>org.apache.xmlbeans</groupId>
		<artifactId>xmlbeans</artifactId>
		<version>2.6.0</version>
	</dependency>
	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi</artifactId>
		<version>3.15</version>
	</dependency>
</dependencies>
<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-plugin</artifactId>
			<version>2.19.1</version>
			<configuration>
				<testFailureIgnore>true</testFailureIgnore>
				<argLine>
					-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
				</argLine>
				<suiteXmlFiles>
					<suiteXmlFile>testng.xml</suiteXmlFile>
				</suiteXmlFiles>
				<configuration>
					<webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>
				</configuration>
			</configuration>
			<dependencies>
				<dependency>
					<groupId>org.aspectj</groupId>
					<artifactId>aspectjweaver</artifactId>
					<version>${aspectj.version}</version>
				</dependency>
			</dependencies>
		</plugin>

		<plugin>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.1</version>
			<configuration>
				<source>1.8</source>
				<target>1.8</target>
				<fork>true</fork>
				<executable>C:\Program Files\Java\jdk1.8.0_65\bin\javac</executable>
			</configuration>
		</plugin>
	</plugins>
</build>
<reporting>
	<excludeDefaults>true</excludeDefaults>
	<plugins>
		<plugin>
			<groupId>ru.yandex.qatools.allure</groupId>
			<artifactId>allure-maven-plugin</artifactId>
			<version>2.5</version>
			<configuration>
				<resultsDirectory>allure-results</resultsDirectory>
				<reportDirectory>allure-report</reportDirectory>
			</configuration>
		</plugin>
	</plugins>
	<outputDirectory>${basedir}/site</outputDirectory>
</reporting>

getting below error:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.812 s
[INFO] Finished at: 2016-10-26T02:49:11+05:30
[INFO] Final Memory: 30M/379M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project netlok: Error during page generation: Error rendering Maven report: Could not generate the report: 'other' is different type of Path -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

I m  using below Pom.xml but I m not able to get th ereport I am getting below warning
[INFO] configuring report plugin ru.yandex.qatools.allure:allure-maven-plugin:2.5
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version.
[INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version.
[INFO] Generating "Allure" report    --- allure-maven-plugin:2.5
[INFO] Generate Allure report (aggregate) with version 1.5.2
[INFO] Generate Allure report to target/site/allure-report
[WARNING] Results directory for module Sample not found.
[WARNING] Allure report was skipped because there is no results directories found.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.864 s

4.0.0
ru.yandex.allure
Sample
1.0-SNAPSHOT

<allure.version>1.5.2</allure.version>
<allure.maven.version>2.5</allure.maven.version>

<allure.results_pattern>allure-results</allure.results_pattern>

ru.yandex.qatools.allure
allure-report-face
${allure.version}
war

org.eclipse.jetty
jetty-maven-plugin
9.2.10.v20150310

target/site/allure-maven-plugin
stop
2299

true

ru.yandex.qatools.allure
allure-maven-plugin
${allure.maven.version}

${allure.results_pattern}
target/site/allure-results
target/site/allure-report
${basedir}/site

Can anyone please help me with this

4.0.0
ru.yandex.allure
Sample
1.0-SNAPSHOT

<allure.version>1.5.2</allure.version>
<allure.maven.version>2.5</allure.maven.version>

<allure.results_pattern>allure-results</allure.results_pattern>

ru.yandex.qatools.allure
allure-report-face
${allure.version}
war

org.eclipse.jetty
jetty-maven-plugin
9.2.10.v20150310

target/site/allure-maven-plugin
stop
2299

true

ru.yandex.qatools.allure
allure-maven-plugin
${allure.maven.version}

${allure.results_pattern}
target/site/allure-results
target/site/allure-report
${basedir}/site

[WARNING] Allure report was skipped because there is no results directories found.

Do you have XML files in target/allure-results. Need to attach respective adapter for get it.

https://github.com/allure-framework/allure1/issues/949

Now I am getting below consol message but with this empty result screenshot:
[INFO] --- maven-site-plugin:3.3:site (default-site) @ Sample ---
[INFO] configuring report plugin ru.yandex.qatools.allure:allure-maven-plugin:2.5
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version.
[INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version.
[INFO] Generating "Allure" report    --- allure-maven-plugin:2.5
[INFO] Generate Allure report (aggregate) with version 1.5.2
[INFO] Generate Allure report to C:\Sample\target\site/allure-maven-plugin
[INFO] Found results directory C:\Sample\target\allure-results
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.105 s
[INFO] Finished at: 2017-04-04T13:01:01+02:00
[INFO] Final Memory: 33M/356M

I have attached my project structure along woth pom.xml changes i did

you need to serve the report due to security policy (an example using jetty maven plugin)

@baev  I did not get you exactly, Could you please explain it little bit bcz I am totally new to this allure report

report is generated successfully but it using ajax to fetch report data. Due to security issues browser deny ajax requests to file system, so you need to serve the report using web server first.
An example, you can install allure-commandline and use command allure open path/to/report/directory or jetty maven plugin (see https://github.com/allure-examples/allure-junit-example as an example)
The related FAQ section: https://github.com/allure-framework/allure1/wiki/FAQ-and-Troubleshooting#i-see-nothing-when-opening-the-report-page-in-my-browser--access-denied-message

I am not able to invoke screenshot for failure scenario:
this is my project structure:

hooks.js:
var Cucumber = require('cucumber');
var fs = require('fs');
var conf = require('../conf').config;
var reporter = require('cucumber-html-reporter');
var report = require('cucumber-html-report');
var hooks = function () {
"use strict";
var jsonReports = process.cwd() + '/reports/json';
var htmlReports = process.cwd() + '/reports/html';
var targetJson = jsonReports + '/cucumber_report.json';
var outputDir = './target/allure-results';
this.registerHandler('BeforeFeature', { timeout: 10 * 1000 }, function (event) {
    return browser.get(conf.baseUrl);

});

this.After('Successfully Applied Hooks', function (scenario) {
if (scenario.isFailed()) {
browser.takeScreenshot().then(function (base64png) {
var decodedImage = new Buffer(base64png, 'base64').toString('binary');
scenario.attach(decodedImage, 'image/png');
callback();
}, function (err) {
return callback(err);
});
}else{
callback();
}
});

var cucumberReportOptions = {
    source: targetJson,
    dest: htmlReports,
    name: 'cucumber_report.html',
    title: 'Cucumber Report'

}
var cucumberReporteroptions = {
    theme: 'bootstrap',
    jsonFile: jsonReports + '/cucumber_report.json',
    output: htmlReports + '/cucumber_reporter.html',
    reportSuiteAsScenarios: true
};

var JsonFormatter = Cucumber.Listener.JsonFormatter();
JsonFormatter.log = function (string) {
    if (!fs.existsSync(jsonReports)) {
        fs.mkdirSync(jsonReports);
    }
    try {
        fs.writeFileSync(targetJson, string);
        reporter.generate(cucumberReporteroptions);  //invoke cucumber-html-reporter
        report.create(cucumberReportOptions).then(function () {  //invoke cucumber-html-report
        // creating two reports(optional) here, cucumber-html-report gives directory already exists as cucumber-html-reporter already creates the html dir!
        // suggestion- use either one of the reports based on your needs
            console.log('cucumber_report.html created successfully!');
        }).catch(function (err) {
            if (err) {
                console.error(err);
            }
        });
    }
    catch (err) {
        if (err) {
            console.log('Failed to save cucumber test results to json file.');
            console.log(err);
        }
    }
};
this.registerListener(JsonFormatter);

}
module.exports = hooks;
reporter.js:
var reporter = require('cucumberjs-allure-reporter');
var fs = require('fs');
var xmlReports = process.cwd() + '/reports/xml';
var createXmlDir = function () {
if (!fs.existsSync(xmlReports)) {
fs.mkdir(xmlReports);
}
} ();
reporter.config(
{
targetDir: './target/allure-results'
}
);
module.exports = reporter;
Could you please help to sort it out.

Hi, I have multiple xml files in allure-results since I am doing parallel execution. But in site folder, I am getting only one report. How can I get information about both the threads

@fdPoornima , can you share your pom.xml and the folder structure of generated reports site


stats: engine layer change for cardinality

Description: Engine layer change for cardinality
Risk Level: Medium
Testing: Unit test
Signed-off-by: Jingwei Hao<EMAIL_ADDRESS>

Can we somehow leverage the bridging we do for headers, which is also a set of key, value pairs?


[pwm] V2.5 TODOs

Description
TODOs defined in PWM Effort Scoping
./dv/env/pwm_env_cov.sv:208:	//regwen_cg = new(); // TODO stage V2S
./dv/cov/pwm_cov_if.sv:14:  // TODO Add coverage points if needed
Estimate 0d (coverage related TODOs covered by existing issues)

Deprioritizing so that we can focus on more important blocks.
CC @moidx

Marking as a triage priority. I believe this is really a V3 issue and probably doesn't need to be in the M5 milestone.

Moving to M7 accordingly.

One of the TODO items listed in the issue has been removed (from pwm_env_cov.sv:208; removed by commit 24b60d571f31403af1b1725ca0954ec6417d23c3).
The remaining item is a place-holder that mentions the opportunity to add coverpoint to pwm_cov_if.sv. Honestly, we should probably do this! But it shouldn't be hard: I think we're probably exercising the block sensibly already. Estimate: 2 days.

Oh! And it's even easier: we have functional coverage sensibly defined in pwm_env_cov.sv. The cleanup will just be removing the unneeded interface. Estimate: 1 day.


bcc 0.10.0 can't be built in Arch Linux now

some distros already packaging clang 10 (checked fedora and arch) no longer
ship all the individual libclang*.so component libraries.
Instead, clang from 9.0 onwards provides a new lib, libclang-cpp.so, which
includes everything we need.

ref commit: https://github.com/iovisor/bcc/commit/1599c2ef8206988d5df7eeadc3c5138c006ac245#diff-af3b638bc2a3e6c650974192a53c7291

This is a BCC dependency not procmon.


DOC-2567 DB Console proxy to any node

Addresses: DOC-2567

Expanded Ryan's DOC-2821 to also address v21.2 (backported in #76694): re-used his copy as base.

Expanded above to also introduce ?remote_node_id= and to mention that this setting is also reused for Profiling UI section.

Added new Proxy DB Console section to ui_overview for both v22.1 and v21.2 to detail two methods for proxying: Advanced Debug > Web server, and ?remote_node_id=.
To keep sensical ordering of subheadings, created new Console security considerations heading to house two security subheadings and be able to retain Access to DB Console is a function statement.

Note: This PR omits the third proxy option of manually setting a cookie, as that is likely not useful to end users who have the above two methods in place already (i.e. likely no one will manually set a cookie when they can just use http://localhost:8080/?remote_node_id=2 directly to do so). Please override if you feel otherwise!
Note to DOCS: I've created DOC-4697 to match "Access DB Console Access" to style guide separately.
v22.1/ui-debug-pages.md | v21.2/ui-debug-pages.md | v22.1/ui-overview.md | v21.2/ui-overview.md

This change is

Thanks @dhartunian ! Your --http-advertise-addr flag appears to need a docs jira ticket. I've created DOC-5134 to add documentation for this flag. Made your other change, and will send this docs review. TYFR!

TYFRs both! Great advice; much appreciated.


Connect to sql server 2000 ?

Hi, exist a way to modify TDS Version ?
Thank u

There is only support for Tds 5.0 that is used with SAP/Sybase ASE at this point. What version of TDS does Sql Server 2000 use?
You are welcome to create a pull request for this functionality.

@nordseth  sql server 2000 use tds version 7.1 ,thank u for the invitation


basic_parser_v1 and parser_v1 should have interfaces that throw

e.g. write

On second thought, maybe not.


add simple twitch auth documentation

I never did a Twitch integration. So I added a simple markdown file to help other developers creating the twitch credentials, without digging trough the Twitch documentation.

Thanks!


Add README for ofs

          We should add some basic README for `ofs` project and mention that ofs doesn't support windows yet.

Originally posted by @Xuanwo in https://github.com/apache/opendal/issues/4334#issuecomment-1987296299

cc @ho-229 would you like to take a look?

I prefer to add s3 and fs backend first


I went and did that & implemented this in 3a811e5e1633a463a7c4995db63ee6d206c495f9, so I'll close this one now. Thanks for the submission, though.


 The switches are acting in a reversed state.

Change state in Blynk app


Python3?

Please update to python 3 already it’s been long enough 😂

I thought it moved to gitlabs but it doesn't work there either

Yeah, IDK what they're doing.


Multiple multi-level eager loads ignore all but last load command

In this situation, I have a table, with a child table, which in turn has multiple children.  I want to eager load all of these.  The test case:
CREATE SCHEMA test_schema;

CREATE TABLE test_schema.parents (
    id BIGSERIAL PRIMARY KEY,
    name TEXT
);

CREATE TABLE test_schema.children (
    id BIGSERIAL PRIMARY KEY,
    parent_id BIGINT REFERENCES test_schema.parents(id),
    name TEXT
);

CREATE TABLE test_schema.third (
    id BIGSERIAL PRIMARY KEY,
    children_id BIGINT REFERENCES test_schema.children(id),
    name TEXT
);

CREATE TABLE test_schema.another (
    id BIGSERIAL PRIMARY KEY,
    children_id BIGINT REFERENCES test_schema.children(id),
    name TEXT
);

INSERT INTO test_schema.parents (name) values ('P1');
INSERT INTO test_schema.parents (name) values ('P2');
INSERT INTO test_schema.children (parent_id, name) values ((select id from test_schema.parents where name = 'P1'), 'C11');
INSERT INTO test_schema.children (parent_id, name) values ((select id from test_schema.parents where name = 'P2'), 'C21');
INSERT INTO test_schema.children (parent_id, name) values ((select id from test_schema.parents where name = 'P2'), 'C22');
INSERT INTO test_schema.third (children_id, name) values ((select id from test_schema.children where name = 'C21'), 'T211');
INSERT INTO test_schema.third (children_id, name) values ((select id from test_schema.children where name = 'C21'), 'T212');
INSERT INTO test_schema.another (children_id, name) values ((select id from test_schema.children where name = 'C21'), 'A211');

Generate models, and then run:
package main

import (
	"database/sql"
	"fmt"

	"github.com/jseriff/sqltest/models"
	_ "github.com/lib/pq"
	"github.com/vattle/sqlboiler/boil"
	"github.com/vattle/sqlboiler/queries/qm"
)

func main() {
	db, _ := sql.Open("postgres", "postgres://...?options=+-c+search_path%%3Dtest_schema")

	boil.DebugMode = true

	parents, _ := models.Parents(db,
		qm.Load("Children.Thirds"),
		qm.Load("Children.Anothers"),
	).All()
}

The debug output generated here is:
SELECT * FROM "test_schema"."parents";
[]
select * from "test_schema"."children" where "parent_id" in ($1,$2)
[1 2]
select * from "test_schema"."another" where "children_id" in ($1,$2,$3)
[1 2 3]

Notice, that "another" is queried, but "thirds" is not.  If you switch the order of the qm.Load calls, you will find the opposite is true.

@jseriff This has a simple workaround. Setter problems on our end:
    parents, _ := models.Parents(db,
        qm.Load("Children.Thirds"),
        qm.Load("Children.Anothers"),
    ).All()

This code should work as expected. Thanks for all these bugs btw!

(Also fixed in master)

In testing this (in conjunction with #51), I ran into some strange behavior, which made this difficult to verify.
If you modify the example code above, and use only the following set of insert statements:
INSERT INTO test_schema.parents (name) values ('P1');
INSERT INTO test_schema.parents (name) values ('P2');
INSERT INTO test_schema.children (parent_id, name) values ((select id from test_schema.parents where name = 'P1'), 'C11');

the query now returns the following error:
ERROR: models: failed to assign all query results to Parent slice: failed to collect loaded Children: relationship struct was nil

in addition, I found that for the nested collections, the R struct is null if no children are found (similar to #51), but for the "children" level in the example.
I attempted to dump everything loaded by adding the following to the end of the sample program:
	for i := range parents {
		fmt.Printf("parents[%d].R: %v\n", i, parents[i].R)
		for j := range parents[i].R.Children {
			fmt.Printf("parents[%d].R.Children[%d].R: %v\n", i, j, parents[i].R.Children[j].R)
			for k := range parents[i].R.Children[j].R.Thirds {
				fmt.Printf("\t\tparents[%d].R.Children[%d].R.Thirds[%d]: %v\n", i, j, k, parents[i].R.Children[j].R.Thirds[k])
			}
			for k := range parents[i].R.Children[j].R.Anothers {
				fmt.Printf("\t\tparents[%d].R.Children[%d].R.Anothers[%d]: %v\n", i, j, k, parents[i].R.Children[j].R.Anothers[k])
			}
		}
	}

but it fails because parents[0].R.Children[0].R is nil.  This is an example of a case where testing for a nil R could become quickly tedious.

Hey @jseriff. I'm actually not seeing this on head of develop.
I used your schema above but removed all insert statements except for these:
INSERT INTO test_schema.parents (name) values ('P1');
INSERT INTO test_schema.parents (name) values ('P2');
INSERT INTO test_schema.children (parent_id, name) values ((select id from test_schema.parents where name = 'P1'), 'C11');

package main

import (
	"database/sql"
	"fmt"

	_ "github.com/lib/pq"
	"github.com/vattle/sqlboiler/boil"
	"github.com/vattle/sqlboiler/models"
	"github.com/vattle/sqlboiler/queries/qm"
)

func main() {
	db, _ := sql.Open("postgres", "dbname=issue user=vats password=vats sslmode=disable")

	boil.DebugMode = true

	parents, err := models.Parents(db,
		//qm.Load("Children.Thirds"), // Tried both splitting and not splitting these
		qm.Load("Children.Thirds", "Children.Anothers"),
	).All()
	if err != nil {
		fmt.Println(err)
	}

	for i := range parents {
		fmt.Printf("parents[%d].R: %v\n", i, parents[i].R)
		for j := range parents[i].R.Children {
			fmt.Printf("parents[%d].R.Children[%d].R: %v\n", i, j, parents[i].R.Children[j].R)
			for k := range parents[i].R.Children[j].R.Thirds {
				fmt.Printf("\t\tparents[%d].R.Children[%d].R.Thirds[%d]: %v\n", i, j, k, parents[i].R.Children[j].R.Thirds[k])
			}
			for k := range parents[i].R.Children[j].R.Anothers {
				fmt.Printf("\t\tparents[%d].R.Children[%d].R.Anothers[%d]: %v\n", i, j, k, parents[i].R.Children[j].R.Anothers[k])
			}
		}
	}
}

SELECT * FROM "test_schema"."parents";
[]
select * from "test_schema"."children" where "parent_id" in ($1,$2)
[1 2]
select * from "test_schema"."third" where "children_id" in ($1)
[1]
select * from "test_schema"."another" where "children_id" in ($1)
[1]

parents[0].R: &{[0xc4200151c0]}
parents[0].R.Children[0].R: &{<nil> [] []}
parents[1].R: &{[]}

And as for the R being nil, I thought I had fixed that too. As you can see, there is no "R" that is nil.
The R struct change actually requires regenerating your models. Are you sure you regenerated them?

Sorry - I got lazy here, and didnt regenerate the models when verifying.  This is fixed, thanks!.

https://github.com/vattle/sqlboiler/releases :)


Box fails to restart after joining the domain and renaming

My box joins the domain and renames the PC, but fails to restart and apply those changes.
At this moment, I am forcing a restart with vagrant up; vagrant reload
My configurations are pretty barebone too:
  config.vm.provision :windows_domain do |domain|
    domain.domain        = tst.example.org
    domain.computer_name = devappvd-071
    domain.username      = my_username
    domain.password      = my_password
  end

The error I am receiving (it is too long to paste here)

Thanks for the bug report. Off the top of my head, nothing comes to mind unfortunately.
Is this always consistent for you? Have you been able to manually perform the join - rename - restart dance?

This does occur consistently for me, and for other Mac (Sierra) and Windows (10) devices too. I was able to manually perform the join - rename - restart via
$ vagrant provision; vagrant reload

Essentially, I just force the reboot so it'll finish joining the domain and renaming.

Unless I can reproduce locally unfortunately I can't make a patch. A PR would be most welcome if you're up for it.

Thanks @jwhitesoe, as mentioned above, would happily accept a PR for this :)

My first experience with vagrant what-so-ever, but if you can give me some hints on how to get your code in a debuggable state (or even to build it for my local vagrant) I'd gladly look at some changes.
I think the powershell is working on the rename, but somehow getting stuck in the retry loop still.  The rename definitely occurs, so it shouldnt be retrying at all -- just rebooting.!
VERBOSE: Performing the operation "Join in domain 'XXXX.com'" on target "vagrant-10".
HasSucceeded ComputerName

True         vagrant-10
WARNING: The changes will take effect after you restart the computer vagrant-10.
VERBOSE: Performing the operation "Rename-Computer" on target "vagrant-10".
Rename failed, Retrying in 5 seconds...
VERBOSE: Performing the operation "Rename-Computer" on target "vagrant-10".
Rename failed, Retrying in 5 seconds...
VERBOSE: Performing the operation "Rename-Computer" on target "vagrant-10".
Rename failed, Retrying in 5 seconds...
VERBOSE: Performing the operation "Rename-Computer" on target "vagrant-10".
Rename failed, Retrying in 5 seconds...
VERBOSE: Performing the operation "Rename-Computer" on target "vagrant-10".
Rename failed, Retrying in 5 seconds...
VERBOSE: Performing the operation "Rename-Computer" on target "vagrant-10".
Rename failed the maximum number of 5 times.
$completed = $false
while ( -not $completed) {
try {
Rename-Computer <%= options_rename[:parameters] %> -Verbose -Force -ErrorAction Stop
$completed = $true
} catch {
if ($retrycount -ge 5) {
Write-Host ("Rename failed the maximum number of $retrycount times.")
throw
} else {
Write-Host ("Rename failed, Retrying in 5 seconds...")
Start-sleep -s 5
$retrycount++
}
}
}

$completed = $false 	while ( -not $completed) { 		try { 			Rename-Computer <%= options_rename[:parameters] %> -Verbose -Force -ErrorAction Stop 			$completed = $true 		} catch { 			if ($retrycount -ge 5) { 				Write-Host ("Rename failed the maximum number of $retrycount times.") 				throw 			} else { 				Write-Host ("Rename failed, Retrying in 5 seconds...") 				Start-sleep -s 5 				$retrycount++ 			} 		} 	}

How can I set the DNS address?

How can I set the DNS address?

I get this: Computer 'vagrant-10' failed to join domain 'tecnologia.poderjudicial.gub.uy' from its current
workgroup 'WORKGROUP' with following error message: The specified domain either does not exist or could not be contacted.  FullyQualifiedErrorId : FailToJoinDomainFromWorkgroup,Microsoft.PowerShell.Commands.AddComputerCommand

The best way to debug this is to attempt the rename yourself via logging into a PC and then seeing if you can do the domain rename via the UI.
If this works, then attempt using PoSH.


Added connected_components.cpp to graph

Description of Change
Added an algorithm that can find connected components in a graph. Also added sample test cases with the source code.

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[ ] Sort by alphabetical order
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:

Failing tests next to ❌ below... https://github.com/TheAlgorithms/C-Plus-Plus/pull/745/checks?check_run_id=658449548#step:9:46


Move the family scanners logic into a separate repo (reuse of infra between kubeclarity and vmclarity)

In order to untangle VMClarity and KubeClarity, improve maintainability, and make the OpenClarity multi-scanner CLI reusable we should move the CLI components to a separate repo and reorganise them.
The repo should be called ""
The components that should move from KubeClarity are:

shared/pkg/job_manager
shared/pkg/scanner
shared/pkg/analyzer
shared/pkg/converter
shared/pkg/config
shared/pkg/utils/cyclonedx_helper
shared/pkg/utils/trivy
shared/pkg/utils/image_helper
shared/pkg/utils/sbom
shared/pkg/utils/vulnerabiity
shared/pkg/utils/input.go

The components that should move from VMClarity are:

pkg/shared/families

The code once moved it should be reorganised to ensure that its a cohesive package, some examples are:

the code in kubeclarity/pkg/analyzer should be moved into pkg/families/sbom and aligned with the other families
the code in kubeclarity/pkg/scanner should be moved into pkg/families/vulnerabilities and aligned with the other families
the code in shared/pkg/config/trivy.go should be split into pkg/families/sbom/trivy/config.go and pkg/families/vulnerabilties/trivy/config.go

After the move is performed the code that has been moved should be removed from KubeClarity and VMClarity, and the new repo should be used as a golang library to replace it.
Outside of this task some enhancements should be done to all the code that is now unified:

Add context support all the way from the family manager to the scanners
Refactor the job_manager to make it responsible for running the scanner in go routines, instead of the scanners themselves.

These should be opened and issues on the new repo.

cc: @edwarnicke

@adamtagscherer @Tehsmash please add detailed description of what should be done here.

The new destination repo https://github.com/openclarity/scanner-families has been created

The dependency between KubaClarity and VMClarity had been removed so this ticket can be closed.


Stream does not play on the web

Hello :
My stream encoder is like this ：

Video encoder : H264-MPEG-4 AVC

Audio encoder : MPEG AAC

Sampling Rate：48000

console like this:

Can you organize access to your stream?


Add an "in" operator to GraphQL.

Much like "eq" and "neq", the "in" operator is available for all
scalars.
Fixes #3443

Cherry-picked to 1.2


Property setAgent does not exist on type Resource$Projects in v2.d.ts and v2beta1.d.ts

Environment details

OS: Windows 10
Node.js version: v10.13.0
npm version: googleapis - 59.0.0
@google-cloud/dialogflow version: 3.2.0

Steps to reproduce

import googleapis, initialize an oAuth2Client with tokens, and initialize dialogflow
import { google } from 'googleapis'
const oAuth2Client = new google.auth.OAuth2(clientId, clientSecret, 'postMessage)'
oAuth2Client.setCredentials(tokens)
const dialogflow = google.dialogflow({ auth: oAuth2Client, version 'v2' })

trying to call the setAgent method creates a Typescript error that setAgent does not exist
const createdAgentResponse = await dialogflow.projects.setAgent({ params })

Looks like issue #413 was created nearly one year ago and resolved, but after updating my googleapis package, I'm still running in to this error with both the v2 and v2beta1 Dialogflow versions.
Thanks!

@MatthewPorter31 I will look into it.

@MatthewPorter31 The snippet you provided doesn't show the best way to construct a Dialogflow client:
const dialogflow = require('@google-cloud/dialogflow');
const sessionClient = new dialogflow.SessionsClient();

I will close this issue for now. Please reopen if necessary.


which command is for download images in current markdown note?

I am confused by the command 1 and 2 in blow image, what's the difference between of these two commands?
in addition, what if I just want to download images or media files for the current markdown note? which command should I chose?

best regards
Francis H

Hey, Francis. Just updated the readme. Read it carefully. Closing this.


Exec tachikoma update<PHONE_NUMBER>3108

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io Announcement: 2015-06-28 Updated permissions - Tachikoma.io

Can one of the admins verify this patch?

ok


GINE implementation

Hi, I checked the result of the paper in table1 and It seems there you are putting the GINE in that table but the existing code in the repo is just for the GIN implementation without edge information. I changed the GINConv to GINEConv but I couldn't reproduce the result of table one. could you please put the code for the GINE results with the corresponding config file in the repo?

Hi,
I have pushed the code for exactly this experiment: https://github.com/cptq/SignNet-BasisNet/tree/main/GINESignNetPyG.
As mentioned in our Appendix "the GINE implementation is based on the PyTorch Geometric implementation (Fey &
Lenssen, 2019)." Our implementation of GINE that we use for the Alchemy experiments was already previously available here and is quite similar: https://github.com/cptq/SignNet-BasisNet/tree/main/Alchemy.
Let me know if there are any issues.


Add OnlyIf method for throw assertions

I often have the issue that I want to assert in a test, that an exception was only thrown when a certain condition applies.
Currently I have to introduce an if/else clause, e.g.
if (expectMatch)
{
    await Assert.That(sut).ThrowsNothing();
}
else
{
    await Assert.That(sut).ThrowsException().WithMessageMatching(expectedExpression);
}

This PR adds an OnlyIf method to the ThrowsException class, so that this can be simplified to
await Assert.That(sut).ThrowsException().WithMessageMatching(expectedExpression).OnlyIf(!expectMatch);

The OnlyIf will check the predicate, and if it is true it will ensure, that the exception was thrown as specified. If it is false, it will instead ensure, that no exception was thrown.

Wondering if this could/should be available for any condition

Wondering if this could/should be available for any condition

I am not sure, I understand your question.
Currently this method would be available for all assertions, that an exception was thrown. Is this too much?


Fix nameservers on centos node images

I totally missed that the node images didn't use the same script when I changed the cloud init. This should fix it.
The reason I didn't add these commands in the user-data, is that cloud-init itself is making network modifications, like disabling NetworkManager DNS. So instead of hoping that it goes in the correct order I think it is better like this.

/test-integration-metal3-dev-tools-centos

/test-integration-metal3-dev-tools-centos

/test-integration-metal3-dev-tools-centos


Setting viewer.fitSelection() with dynamically created SVG

So my svg is dynamically created and I have no way of knowing its bounding box until I actually draw it off the DOM. It is usually the case that my svg is much larger than the width and height set on both the ReactSVGPanZoom and inner svg tags. So my logic is as follows:
class MyComp extends Component {
	constructor(props) {
		super(props);
		this.state = {
			boundingBox: {},
		};
	}
  	componentWillMount(){
  		//1// calculate the svg size and set the state.boundingBox
  	}
  	componentDidMount() {
  		//2// since the refs can only be access in componentDidMount(),
                // here I set the viewer window
  		this.viewer.fitSelection(minX,minY,maxX,maxY)
  	}
  	render() {
		return (
			<ReactSVGPanZoom
			width={1500}
			height={500}
			ref={viewer => this.viewer = viewer}
			>
				<svg
				width={1500}
				height={500}
				>
					{/* SOME DYNAMIC SVG*/}
				</svg>
			</ReactSVGPanZoom>
		);
  	}
}

fitSelection() works perfectly. The only problem is that I am invoking it in componentDidMount() and not earlier. By that time, my large dynamic SVG has already been drawn on the smaller inner svg. When fitSelection() zooms in the window, my dynamic SVG is cropped.
Things I tried:

fitToViewer() also works well, but it fits the entire "cropped" SVG again.
Setting viewBox on the inner svg. This works well, only if I get rid of ReactSVGPanZoom as it seems to be overridden in this case.

Is there anyway to set a prop similar to viewBox on ReactSVGPanZoom that comes active when the component is instantiated as oppose to after it mounts (as in fitSelection() or fitToViewer() ) ?

I think that the problem was caused by static width and height that you are providing.
Did you try to dynamically set width and height?
<ReactSVGPanZoom
	width={this.state.width}
	height={this.state.height}
	ref={viewer => this.viewer = viewer}
>

Moreover to handle some specific cases I suggest to use the controlled component, introducing value and onChange props and manually handle this.state.value with the func https://github.com/chrvadala/react-svg-pan-zoom/blob/master/src/features/zoom.js#L26
this.setState({value: fitSelection(minX,minY,maxX,maxY)})

<ReactSVGPanZoom
	width={this.state.width}
	height={this.state.height}
        value={this.state.value}
        onChange={value => this.update(value)}
	ref={viewer => this.viewer = viewer}
>

However, could you post a jsfiddle that shows the issue? You could start from here https://jsfiddle.net/chrvadala/f67qyfsd/

I added in AutoSizer in the mix. I can confirm that it works by passing width and height from AutoSizer to ReactSVGPanZoom and the nested svg.
In this fiddle, I have a massive 5000x5000 rectangle being drawn on a much smaller svg. fitSelection() takes care of setting the viewport. It seems I had nested svg tags without size props -  that was messing up everything. Thanks!


SVG (PNG, JPEG) ... picture format export support?

Sometimes I need to export the content not as a json string but as a picture. The PNG and JPEG are natively supported and it is easy to export canvas to this format. But what about any vector format such as SVG?

Hi @tomkey71,
that would be incredibly difficult to implement (however, you're free to do so and thank you very much if you actually do, it would be a nice and useful feature to have). You'd basically have to reimplement the whole rendering to get a vector image out of it (everything just spits pixels to the canvas at the moment).

Just wanted to mention this discussion in the old vis repo and some potentially helpful resources.
So there are projects trying to enable vector image creation (svg, pdf) with canvas API. With them, an export to these formats can be done by creating a mock temporary ctx and calling redraw on it. (https://github.com/justinharrell/vis-svg/blob/master/svg-export.html#L113)
See

https://github.com/justinharrell/vis-svg

https://github.com/gliffy/canvas2svg

https://github.com/joshua-gould/canvas2pdf

They may well be immature and lack support for some APIs though.

Both the linked libraries seem pretty dead to me (canvas2svg has no commits since 2017, canvas2pdf will be commit free for a year next week).

Both the linked libraries seem pretty dead to me (canvas2svg has no commits since 2017, canvas2pdf will be commit free for a year next week).

Very true. I guess it is also very relevant to the rate of change in the format standards and canvas APIs, all of which I'm not familiar with.
However, yesterday I successfully exported my network (generated with R's visNetwork) to PDF using the code from https://github.com/justinharrell/vis-svg/blob/master/svg-export.html, so I hope this can be of help to someone in need.

Would love this feature

Seems to be a good alternative as well for better sharing in standard PDF format.

@wtianyi Hi. Can you share your R code for exporting svg? I cannot handle well with svg-export code.


Red circle overlaid in converted video

Great tool! I love it.
I'm seeing a red circle (occasionally flashing white) in the bottom right corner of my exports, though. I don't see any way to remove this. Is this intentional? Can I not have this added somehow?

That happens when you use the -m, --mark-frames option (it marks interpolated frames with a red dot). Make sure it's not set.

Thanks so much!


Fix casing issues with EncodedValue

DNM just yet unless you're confident, I'm going to test this on my local Rojo to see if that fixes my issue.

Ok, that fixed NumberSequence, but ColorSequence has a separate issue with it that I'm going to fix.


[FIX] [BE] [ANCHOR: PYTHON] [Blog Dislike] Show Total Dislikes a Blog Has When New Blog Dislike Is Added

User Story:
I want to see the updated total number of dislikes immediately after I dislike a blog post,
so that I can instantly see the impact of my interaction and understand how others are reacting to the content.
Description:
Enhance the current blog dislike feature to return the updated total number of dislikes whenever a new BlogDislike is added. This will enable the frontend to display the current dislike count in real-time after a user interacts with the blog post, providing immediate feedback and improving user engagement.
Requirements:

Modify the existing BlogDislike endpoint to include the updated total number of dislikes in the response after a new dislike is added.
Ensure that the query retrieving the total dislikes is optimized, especially for blog posts with a high volume of interactions.
The dislike count should be consistent and accurate across different users and sessions.
Implement appropriate error handling to ensure that any issues during the dislike addition process do not disrupt the retrieval of the total dislike count.

Acceptance Criteria:

After a user adds a dislike to a blog post, the API response should include the total number of dislikes for that post.
The dislike count should be updated in real-time, allowing the frontend to reflect the latest data immediately.
The system should efficiently retrieve the updated dislike count without negatively affecting response times, even for blogs with high interaction volumes.
The total dislike count should accurately reflect the current number of dislikes at the moment of the latest interaction.
The dislike count should be consistent across different sessions and users.
The system should handle any errors during the dislike addition process gracefully and return appropriate error messages without disrupting the overall functionality.

Expected Outcome:

When a user adds a new dislike to a blog post, the API will return the total number of dislikes for that post.
The frontend will update the UI to reflect the new dislike count immediately, providing users with real-time feedback on their interaction.
Users will see the impact of their dislike action instantly, which may encourage further engagement with the content.
The system will maintain accurate and consistent dislike counts, improving user trust and satisfaction with the platform.
Performance optimizations will ensure that high interaction volumes do not degrade the user experience.

https://www.loom.com/share/4734ee3303684799bc3534b468013b2a

I'm working on this currently


Revert "ci(ti-community/test-infra): fix lint jobs"

Reverts ti-community-infra/configs#766

/merge


bind: address already in use. But port havn't be used.

It doesn't work fine to me.
My envs:

debian 11
v2ray-plugin v1.3.1
shadosocks-rust v1.14.3

Here is my shadowsocks config. /etc/shadowsocks/4.json
{
    "server": "<IP_ADDRESS>",
    "server_port": 10014,
    "mode": "tcp_only",
    "password": "this@is@new@shit",
    "method": "chacha20-ietf-poly1305",
    "workers": 16,
    "plugin": "v2ray-plugin",
    "plugin-opts": "server"
}

Here is the trace llogs.  It seems that the 35801 is a random port, so it's not used.
$ ssserver  --config /etc/shadowsocks/4.json
2022-04-20T16:28:51.313478-04:00 INFO  shadowsocks server 1.14.3 build 2022-04-19T03:44:16.480197342+00:00
2022-04-20T16:28:51.317043571-04:00 INFO  shadowsocks tcp server listening on <IP_ADDRESS>:35801, inbound address <IP_ADDRESS>:10014
2022/04/20 16:28:51 V2Ray 4.23.2 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.3 linux/amd64)
2022/04/20 16:28:51 A unified platform for anti-censorship.
2022/04/20 16:28:51 failed to start server: v2ray.com/core/app/proxyman/inbound: failed to listen TCP on 35801 > v2ray.com/core/transport/internet: failed to listen on address: <IP_ADDRESS>:35801 > listen tcp <IP_ADDRESS>:35801: bind: address already in use
2022-04-20T16:28:51.454009179-04:00 ERROR plugin exited with status: exit status: 1
server aborted with server exited unexpectedly

plugin-opts => plugin_opts

啊！确实是 plugin_opts , 看我这老花眼。  @liujunhui74  非常感谢。


Migrate to Java 8

I'd love to migrate to java 8 but somebody may still use jdk 7 for production.
End of Java 7 Public Updates is April 2015
If somebody is using Java 7, please give rise a voice!

Someone is still using Java 6 , BTW
E.g. Gavin, (@GLitchfield) https://github.com/barchart/fixio/ (https://github.com/barchart/fixio/commit/27605f3b5cc27dccf272feebed8ca9e68e39ef0b)

You could have versions for example and make 1.0.x be Java 6, 1.1.x Java 7 and 2.x for Java 8 so that you can port back fixes and functionalities, though to be honest migrating from Java 6 to Java 7 shouldn't be straight forward, even having your projects still configured for Java 6 but use Java 7 VM to run them.

Master has migrated to java8
Java 7 and java 6 branches created (with limited support)


Memory Pool

This PR implement strategy-1 mentioned in #29 . Memory usage of example r-fcn can be reduced from 2G to 500MB on CPU context and from 1.8G to 600M on GPU context (with CUDNN).
Some works still need to be done.

impl a small object pool to hold data shapes, which usually < 128 bytes.
test on fully convolution network, current pool strategy borrow memory to blob only if requested memory size >= half of real memory size. This may cause memory issue when using fully convolution network.

Improve the memory usage also speed up network forward. Example r-fcn speed up ~100ms on my GTX 960.

current memory pool is not friend to network who's size varies during every forward. This includes fully convolution network and network uses different batch size. Red line indicts the total memory allocate on the pool, Blue line represents the memory network really uses. The pattern is kind of stable, maybe some simple strategy can handle this situation.

This is the biggest disadvantage of dynamic memory plan, the memory may not be fully utilized but this simple strategy is easy to implement and does well on most situation. I think static memory plan can handle this problem very well but it's hard to implement and will modifies codebase much.

repeatly run example R-FCN network.

merge it PR for now, more memory analyse will be open in another PR.

"test on fully convolution network, current pool strategy borrow memory to blob only if requested memory size >= half of real memory size. This may cause memory issue when using fully convolution network."  Could you show an example about this issue?

@liyancas view the analyse above. The first graph is from networks which take input with various size (including batch size, height and width). The second is from a network running repeatedly on the same input data.
Currently, there's an API I add that can clear memory pool. Calling this API after every inference can solve the memory problem.


dry for parameter handling

with https://github.com/qooxdoo/qooxdoo-compiler/pull/462 we get a builder pattern for command line arguments.
We should use this for all commands

This is done, isn't it, @hkollmann by merging builders selectively.


Python Stream Tutorial: Incorrect syntax for Argument Names

Describe the bug
Hello!
In the python tutorial for streams it uses a library called rstream.  When passing in the arguments for creating a stream, the argument key used is incorrect and will result in a precondition failed error if the stream exists or it will create a stream with no arguments as they are not parsed correctly.

(when stream is already created and trying to create stream using python rstream using the argument name "MaxLengthBytes")
2024-07-29 08:24:33.650000+12:00 [info] <0.30378.0> Error while creating <<"hello-python-stream">> stream, inequivalent arg 'x-max-length-bytes' for queue 'hello-python-stream' in vhost '/': received none but current is the value '50000000' of type 'long'

The correct syntax is in kebab case and is described in this closed issue
So the correct syntax for "MaxLengthBytes" is "max-length-bytes".

Reproduction steps

Follow the python tutorial for creating a python stream
Run the program to create the stream
Using the rabbitmq-management platform, inspect the stream for the MaxLengthBytes argument and value
Confirm that in the rabbitmq management platform the MaxLengthBytes argument and value are not set

Expected behavior

Follow the python tutorial for creating a python stream
Rename the MaxLengthBytes argument name to max-length-bytes
Run the program to create the stream
Confirm that in the rabbitmq management platform that the x-max-length-bytes argument has a value and is set

Additional context
Thank you!

@cameron-mooreca please submit a PR. The website is open source and uses Docusaurus for its toolchain (see the README).


Publish Unit Test Results

Uses https://github.com/marketplace/actions/publish-unit-test-results#running-as-a-composite-action

There's a few alternative actions out there as well, such as:

https://github.com/marketplace/actions/test-reporter
https://github.com/marketplace/actions/junit-report-action
Chose this one as at appears able to aggregate across matrix builds.

Another alternative might be to look at Gradle Enterprise Scans, possibly.


Using integer or boolean string vars in env does not convert to string

What happened?
Defining an integer or boolean variable using the following syntax

name: GATEWAY_MAIL_PORT
source: env
default: "2525"

And referencing it in the env part

name: MAIL_PORT
value: "${GATEWAY_MAIL_PORT}"

Gives the following error
cannot patch "api-gateway" with kind Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found 2, error found in #10 byte of ...|,"value":2525}
devspace render gives the following output

name: MAIL_PORT
value: 2525

What did you expect to happen instead?
That the variable would be converted and inserted as a string
devspace render should output

name: MAIL_PORT
value: "2525"

How can we reproduce the bug? (as minimally and precisely as possible)
Local Environment:

DevSpace Version: 4.11.1
Operating System:  mac
Deployment method: helm

Kubernetes Cluster:

Cloud Provider: google
Kubernetes Version: 1.15

Anything else we need to know?
Seems to be a common error, and solved via help pipe quote
https://helm.sh/docs/howto/charts_tips_and_tricks/#quote-strings-dont-quote-integers

/kind bug

@rosen91 thanks for reporting this issue! Yes seems like a bug, I'll fix this as soon as possible

Seems that this has regressed in devspace version 6.1.1?
I have in container env:
- name: MAX_SEND_INTERVAL
  value: "${MAX_SEND_INTERVAL}"

And in vars:
  MAX_SEND_INTERVAL:
    source: env

Render shows me:
            - name: MAX_SEND_INTERVAL
              value: 600

which does not deploy.

@shaunc  It looks like the original fix was to add the option to force a string using $!{MAX_SEND_INTERVAL}. Can you try that and report back?


Algorithm not set in agent.properties, when adding a new KVM hosts

CloudStack agent, software load balancing logic
how it works / supposed to work
When having the global setting as follows (IP values are an example, to show 2 IP addresses for 2 mgmt hosts)... :

host=<IP_ADDRESS>,<IP_ADDRESS>
indirect.agent.lb.algorithm=roundrobin (or static)
indirect.agent.lb.check.interval = xxx (different then zero)

... the behaviour we are achieving here is that the list of mgmt servers is randomised due to using "roundrobin" (or set always in the same order as it appears in the "host" value if we set "static) - before getting sent to all connected agents (so some agents will have "x.x.x..144,x.x.x.118@roundrobin" while some will have "x.x.x.118,x.x.x.144@roundrobin" in their agent.properties file)
The presence of  "@roundrobin" or "@static" in the agent.properties is needed for the agent background task to run - a task which says "ok, this is "@static" or "@roundrobin", i.e. NOT "@shuffle" - so I'm going to read the value of the  indirect.agent.lb.check.interval and then check each indirect.agent.lb.check.interval seconds whether some of the prefered mshost (which died previously) is up again and will failback (reconnect again) to the first mshost from the list of mshosts in the agent.properties.
If the algorithm is "shuffle" or if it's missing from the agent.properties, then the task will assume "shuffle" and this means it will internally set indirect.agent.lb.check.interval=0, and thus will NEVER try to reconnect to the first mshost from the list of mshosts in the agent.properties - so if the first mshost dies, agent will always connect to the next one, but when the first mshost is back again, the agent will NOT reconnect to the first one, since the algorithm is "shuffle" or missing inside the agent.properties.
BUG
When adding a new KVM hosts, while having the global setting as described above, the new host will only have a list of mshosts, withOUT the algorithm, in its agent.properties. This means if the first mshost is down, agent will reconnect (fail-over) to the second mshost from the list, but when the first server is back online, it will NOT reconnect (fail-back) to the first mshost, even though the global settings (indirect.agent.lb.check.interval = xxx) says it should do so.
Not a critical bug, but creates inconsistency in agent "fail-back" behaviour between the existing and freshly added KVM hosts.
Workaround: change the host list once, change it back to what it was before ("host" setting) and everything will be properly propagated to all connected agents (including those freshly added KVM hosts)
Solution
"simply" send the algorithm together with the host list when configuring cloudstack-agent on the KVM side

@andrijapanicsb I notice #3491 has been merged into 4.14 by Daan.
Could you please test with latest master ?

will do, but don't think we touched the issue due to specific of how it works. thx

@andrijapanicsb cc @DaanHoogland is this still a bug on 4.14/master?

ping @andrijapanicsb , can we close on comment, or do we need to test again?

I tested with <IP_ADDRESS>-SNAPSHOT. this issue still exist
(1) indirect.agent.lb.algorithm to roundrobin, in agent.properties
host=<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>@roundrobin
(2) put host to maintenance
(3 remove the host and re-add it
host=<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>

cc @nvazquez can you comment?
@Spaceman1984 can you look into this next? Thnx

@rhtyd @Spaceman1984 create a pr for this issue #4335

Thanks @weizhouapache, I have reviewed your PR and looks good


Added MSPeekCollectionViewDelegateImplementation to UI

Project URL
https://github.com/MaherKSantina/MSPeekCollectionViewDelegateImplementation/tree/master
Category
UI
Description
Current design trends require complex designs which allow horizontal scrolling inside vertical scrolling. So to show the users that they can scroll vertically, a peeking item should be shown on the side. This library does exactly that.
I wrote this library because there's no pod that does this simple feature. Also, other libraries require me to inherit from a UICollectionViewController, which doesn't give alot of freedom if I'm inheriting from other View Controllers.
Why it should be included to awesome-ios (optional)
I haven't found any other project that does this functionality in an easy configurable/customizable manner. This motivated me to create one and I would like it to be included in this list so that others can use it too and contribute to it.
Checklist

[x] Only one project/change is in this pull request
[x] Has unit tests, integration tests or UI tests
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 4 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

@MaherKSantina Please move to Table View / Collection View category.


Legally distinct gravity gun

If someone finds a good sprite I'll make it an actual item.
Requires https://github.com/space-wizards/RobustToolbox/pull/2814 because I couldn't make the distancejoint feel nice.

If someone finds a good sprite I'll make it an actual item.
Requires space-wizards/RobustToolbox#2814 because I couldn't make the distancejoint feel nice.

how much of a complete hl knockoff can i make the sprite?


Enable one-line installation and smooth onboarding experience

Now users can try out HNC by saying kubectl apply -f <some single file>.

/assign @adrianludwin

/lgtm
/approve
/ok-to-test

No worries, I spoke to Laetitia about it and she'll look at a way to
combine them.
On Thu, Nov 7, 2019 at 12:30 PM Ryan Bezdicek<EMAIL_ADDRESS>wrote:

@rjbez17 commented on this pull request.
In incubator/hnc/Makefile
https://github.com/kubernetes-sigs/multi-tenancy/pull/236#discussion_r343778961
:

+###################### RELEASE ACTIONS #########################

+# Generate release YAML that can easily install HNC via kubectl apply -f
+release: manifests

mkdir -p releases

kustomize build config/default > releases/manifests.yaml

That’s totally my fault then, I should have caught that. I’ll open a PR to
fix it
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-sigs/multi-tenancy/pull/236?email_source=notifications&email_token=AE43PZCANSE3CQTUJL7HYETQSRGCVA5CNFSM4JJ4GESKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCKX4XYI#discussion_r343778961,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE43PZBSA4XV3ECHXHMEWIDQSRGCVANCNFSM4JJ4GESA
.


documentation on how to add UPI node to running cluster (post-install)

I could not find any documentation to add another node (master/worker/custom mcp) to a running cluster, e.g. after initial installation.
Where can I find it?

That sounds like a good suggestion for openshift-docs.
In general you'd simply start a new machine and use worker.ign as an ignition source, same way its done during initial installation

You might be able to pull what you need out of some docs that I've been writing for folks that I work with.  https://github.com/cgruver/okd4-upi-lab-setup
As long as you still have the worker ignition file in place, it's just a matter of booting a new worker with FCOS pointed at that file.
The tutorial I am working on, sets things up for iPXE boot.  That makes it CRAZY easy to add a worker.  The docs will shortly be updated for folks who are using dhcpd and tftp on a linux OS rather than an OpenWRT router. But, all of the pieces that you need are in there.
You will have to monitor the install and approve the CSR.  Otherwise it is pretty automatic.
oc get csr
Watch for "Pending" CSRs, and approve them:
oc get csr -ojson | jq -r '.items[] | select(.status == {} ) | .metadata.name' | xargs oc adm certificate approve

https://docs.okd.io/latest/machine_management/user_infra/adding-bare-metal-compute-user-infra.html


[PE-D][Tester A] rename tag not working as expected

does not work as expected

Labels: type.FunctionalityBug severity.High
original: LJXSean/ped#7

Pending PR #436


emacsWithPackages uses dependencies from wrong package set

When I use the emacs package counsel-projectile from emacs.melpaPackages it
includes the dependency counsel from emacs.melpaStablePackages.
Here's my minimal exampel:
emacs1.nix
{ system ? builtins.currentSystem }:

let
  pkgs = import <nixpkgs> { inherit system; };
  emacsWithPackages = with pkgs; (emacsPackagesNgGen emacs).emacsWithPackages;
in
  emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
    counsel-projectile
  ]))

After building with nix-build emacs1.nix, starting it with result/bin/emacs -Q
and running package-initialize inside the started emacs I show the version of
counsel and get the following result: counsel-0.8.0.
That is the wrong version of counsel, it should be counsel-20170219.2346.
If I only install counsel in my wrapped emacs:
emacs2.nix
{ system ? builtins.currentSystem }:

let
  pkgs = import <nixpkgs> { inherit system; };
  emacsWithPackages = with pkgs; (emacsPackagesNgGen emacs).emacsWithPackages;
in
  emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
    counsel
  ]))

After building with nix-build emacs2.nix, starting it with result/bin/emacs -Q
and running package-initialize inside the started emacs I show the version of
counsel and get the following result: counsel-20170219.2346.
So there is something that goes wrong when counsel is installed as a
dependency of counsel-projectile. It seems the it is using counsel from
melpa-stable-generated.nix and not melpa-generated.nix.
My environment
$ nixos-version
17.03.1458.057f89b934 (Gorilla)
$ nix-env --version
nix-env (Nix) 1.11.11

Additional information
Here's how counsel is defined in melpa-generated.nix:
    counsel = callPackage ({ emacs, fetchFromGitHub, fetchurl, lib, melpaBuild, swiper }:
    melpaBuild {
        pname = "counsel";
        version = "20170219.2346";
        src = fetchFromGitHub {
          owner = "abo-abo";
          repo = "swiper";
          rev = "950545ba0e0bde6b4662aa769f60ac3c768ffeb2";
          sha256 = "0mq1id9xv4rn13y95n98pyywgrll2yb69v1cqacq8rq7my08awsq";
        };
        recipeFile = fetchurl {
          url = "https://raw.githubusercontent.com/milkypostman/melpa/06c50f32b8d603db0d70e77907e36862cd66b811/recipes/counsel";
          sha256 = "0y8cb2q4mqvzan5n8ws5pjpm7bkjcghg5q19mzc3gqrq9vrvyzi6";
          name = "counsel";
        };
        packageRequires = [ emacs swiper ];
        meta = {
          homepage = "https://melpa.org/#/counsel";
          license = lib.licenses.free;
        };
      }) {};

Here's how counsel is defined in melpa-stable-generated.nix:
    counsel = callPackage ({ emacs, fetchFromGitHub, fetchurl, lib, melpaBuild, swiper }:
    melpaBuild {
        pname = "counsel";
        version = "0.8.0";
        src = fetchFromGitHub {
          owner = "abo-abo";
          repo = "swiper";
          rev = "c24a3728538dd7d11de9f141b3ad1d8e0996c330";
          sha256 = "19vfj01x7b8f7wyx7m51z00la2r7jcwzv0n06srkvcls0wm5s1h3";
        };
        recipeFile = fetchurl {
          url = "https://raw.githubusercontent.com/milkypostman/melpa/06c50f32b8d603db0d70e77907e36862cd66b811/recipes/counsel";
          sha256 = "0y8cb2q4mqvzan5n8ws5pjpm7bkjcghg5q19mzc3gqrq9vrvyzi6";
          name = "counsel";
        };
        packageRequires = [ emacs swiper ];
        meta = {
          homepage = "https://melpa.org/#/counsel";
          license = lib.licenses.free;
        };
      }) {};

Perhaps @ttuegel will correct me, but unless you specifically specify that a package should come from a particular source, packages from melpa-stable take precedence over packages from melpa, and the only relationship between packages is based on the name---so you will always get the melpa-stable version (if there is one).
If you want the unstable counsel package, list it alongside counsel-projectile so it, too, will specifically be pulled from melpa.

@mdorman thanks for the tip!
I tried adding counsel as a separate dependency:
emacs3.nix
{ system ? builtins.currentSystem }:

let
  pkgs = import <nixpkgs> { inherit system; };
  emacsWithPackages = with pkgs; (emacsPackagesNgGen emacs).emacsWithPackages;
in
  emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
    counsel
    counsel-projectile
  ]))

But it doesn't change anything, I still get the same result as in my example emacs1.nix when only counsel-projectile is added.

I tried to override the counsel-projectile package specifically:
emacs4.nix
{ system ? builtins.currentSystem }:

let
  pkgs = import <nixpkgs> { inherit system; };
  emacsWithPackages = with pkgs; (emacsPackagesNgGen emacs).emacsWithPackages;
in
  emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
    counsel
    (counsel-projectile.override {
      inherit counsel;
      inherit projectile;
    })
  ]))

That helped me get counsel from melpaPackages instead of melpaStablePackages, but now ivy that counsel uses is the wrong version (taken from melpaStablePackages).
Since overriding the whole dependency tree manually to use the right package set is not viable, what are my options? Can I somehow say that all packages in melpaPackages should only use dependencies from melpaPackages?
Would really appreciate some input from @ttuegel or @mdorman since I'm at loss what my next step should be. Thank you!

This isn't specific to counsel-projetile - I have noticed that a number of other packages also pull in the wrong dependencies causing emacs to add both stable and unstable versions to the load path which obviously gives a range of fun to troubleshoot errors when the wrong version is being loaded.

Ironically this makes makes letting nix handle the emacs config less deterministic than plan use-package. @ttuegel, anything I can provide to help get to the bottom of this?

@peterhoeg What do you mean "plain use-package"? Isn't nix and use-package orthogonal?

@vyp I meant package-install (comment updated). package-install will honor archive priorities. See package-archive-priorities.

I'm taking the liberty of roping in @the-kenny, @peti, @mdorman, @oxij and @vyp who as emacs users may have something to add.

I follow this thread (actually, any thread that mentions "emacs") but I
still don't understand which semantics you want in the end.

Do you want to have packages prefer deps from the same set when
possible?

Do you want another set of expressions like melpaPackagesPreferSelf
that will do the above?

Do you want the above, but only for some packages?

The latter can be done today with emacs-packages.nix. Just override
the package in question there and get happy. The second option will need
some boiler-plate, but should be easy enough to do. The first option
needs consensus.

As it is right now, I have several packages that are duplicated from both stable and regular melpa which breaks things.
The way I see it, there are two options:

Always install dependencies from the same set but don't pull in an older package. Examples:

Package A in melpa depends on package B..
Package C in stable also depends on package B.
Package B should only be pulled in once and it should be the one from Melpa.

Support priorities the same way that emacs (or rather package-install) does so the user can explicitly choose priorities.

Both of your options have very non-nix semantics. From nix point of view
in both cases you want buildEnv to override package deps when the same
package gets two versions.
This is impossible. Example

Package A in melpa depends on package B.
Package C in stable also depends on package B.

but both A and C refer to some files (e.g. a binary) in their respective
versions of B by /nix/store path. Do you expect buildEnv to patch
A and C to refer to the single version of B?
The only reasonable way to fix such a case is to override it by hand and
make nix rebuild the expression.
That said, I think that if we switch to "package from the same set
first" approach and make emacsWithPackages fail when it has two
versions of the same package, we might end up with a better overall
usability (users will need to do less overrides) than now.
This is the second or third issue on the subject. I think that going
"same set" will remove the element of surprise that prompts opening of
these issues.

Do you have an example of the manual override for use as a temporary workaround?

if we switch to "package from the same set first" approach and make emacsWithPackages fail when it has two versions of the same package

👍

Do you have an example of the manual override for use as a temporary workaround?

put into the package declaration block in emacs-packages.nix:
evil-org = (melpaPackages self).evil-org.override {
  org = (elpaPackages self).org;
};

Seems to work.

if we switch to "package from the same set first" approach and make emacsWithPackages fail when it has two versions of the same package

👍

Let's wait and see what @ttuegel has to say about this.

I'm not sure I understand what is wanted here, because several people have chimed in with what seem to be disparate goals. So, I'm going to address the original poster and explain what is going on and how we might solve it.
The original problem is that the following installs the stable version of counsel as a dependency of counsel-projectile:
emacsWithPackages (epkgs: (with epkgs.melpaPackages; [ counsel-projectile ]))

while this gives the latest unstable version of counsel:
emacsWithPackages (epkgs: (with epkgs.melpaPackages; [ counsel ]))

Why does this happen? epkgs is a single package set with consistent dependencies where stable versions are preferred where they exist. epkgs.melpaPackages is the set of unstable packages with dependencies resolved in epkgs. Others in this thread have alluded to the fact that this is fundamentally inconsistent, and that is true.
If we want to use the unstable version of some packages, we should override the set consistently,
let
  emacsPackages = (emacsPackagesNgGen emacs).overrideScope (super: self: {
    counsel = self.melpaPackages.counsel;
    counsel-projectile = self.melpaPackages.counsel;
  });
in
  emacsPackages.emacsWithPackages (epkgs: with epkgs; [ counsel-projectile counsel ])

This ensures that the packages seen by Emacs are a single consistent set.
This is not very ergonomic and we should discuss how to improve that. For example, we could remove the melpaPackages etc. sets because they should not be used. (Exception: if you are overriding a package that isn't a dependency.)

That said, I think that if we switch to "package from the same set first" approach and make emacsWithPackages fail when it has two versions of the same package, we might end up with a better overall usability (users will need to do less overrides) than now.

The fix-point construction I described above guarantees a consistent package set, so I don't understand what this would be good for.

That said, I think that if we switch to "package from the same set first" approach and make emacsWithPackages fail when it has two versions of the same package, we might end up with a better overall usability (users will need to do less overrides) than now.

The fix-point construction I described above guarantees a consistent package set, so I don't understand what this would be good for.

That's correct. My point, however, is that the current behavior

The original problem is that the following installs the stable version of counsel as a dependency of counsel-projectile:
emacsWithPackages (epkgs: (with epkgs.melpaPackages; [ counsel-projectile ]))

while this gives the latest unstable version of counsel:
emacsWithPackages (epkgs: (with epkgs.melpaPackages; [ counsel ]))

is too much of a surprise for new users of emacsPackagesNg set. E.g.
exactly the same issue was reported before: #12962 (I think there was
another not the same, but a similar one, but I couldn't find it within a
couple of minutes).
My point here:

Its too surprising.

This ensures that the packages seen by Emacs are a single consistent set.

Except when I override something on a per-package basis by hand without
constructing my own emacsPackages set first (as per your example).
My point here:

It's still easy to break emacsWithPackages with misconfiguration if
we don't check consistency in emacsWithPackages.

The rest of nixpkgs does overriding with overrides. Having a way to do
it another way can be useful (e.g. "use flags" are very useful,
despite being rejected from the official nixpkgs). Not properly
supporting overrides, however, is plain surprising.

I think there should be an option to simply write
emacsWithPackages (epkgs: [
  (epkgs.melpaPackages.evil-org.override { org = epkgs.elpaPackages.org; })
])

(when it doesn't break anything) instead of overriding the whole set.
Btw, we should check the packages were built with the correct emacs
version too. Just in case.

For example, we could remove the melpaPackages etc. sets because they should not be used. (Exception: if you are overriding a package that isn't a dependency.)

I fail to see how that would help with the above points.

The rest of nixpkgs does overriding with overrides. Having a way to do it another way can be useful (e.g. "use flags" are very useful, despite being rejected from the official nixpkgs). Not properly supporting overrides, however, is plain surprising.

The Haskell package sets in Nixpkgs have the same problem and use the same solution.

I fail to see how that would help with the above points.

It makes the bad override scenario in the original post impossible to construct.

I think there should be an option to simply write ... (when it doesn't break anything) instead of overriding the whole set.

I would be happy to merge that PR.

(@peterhoeg Forgot to reply to you but for reference, except for emacs itself, I don't use nix for emacs packages so I don't have much else to say about this.)

Thanks @vyp - I got it working - full config available here in case someone else stumbles over this:
https://gist.github.com/ad6870c1004a932368c3c69f3fe321ff
I guess this issue can be closed as "working as intended although not quite obvious for the casual user", @ttuegel ?

@peterhoeg Yes, that is how it is intended to work. I am a little surprised you need so many overrides! But, you also have quite a few packages installed in Emacs too, I guess.

The combination of essentially living in emacs and using spacemacs means a lot of packages...
I'll go ahead and close this and I've made a note to update the manual "RealSoonNow(tm)".

Thanks for the help everyone!
I settled on overriding specific packages and their dependencies, then I picked all packages from epkgs instead of a mix of specific package set (such as epkgs.melpaPackages). overrideScope was not available to me (I guess that it's something that was introduced after the 17.03 release), but override worked fine.
Here's what my full package selection looks like, in case someone else stumbles upon this thread and use NixOS 17.03:
  emacsPackages = (emacsPackagesNgGen emacs).override (super: self: {
    counsel            = self.melpaPackages.counsel;
    counsel-projectile = self.melpaPackages.counsel-projectile;
    google-c-style     = self.melpaPackages.google-c-style;
    hamlet-mode        = self.melpaPackages.hamlet-mode;
    ivy                = self.melpaPackages.ivy;
    ob-php             = self.melpaPackages.ob-php;
    ob-restclient      = self.melpaPackages.ob-restclient;
    php-mode           = self.melpaPackages.php-mode;
    projectile         = self.melpaPackages.projectile;
    restclient         = self.melpaPackages.restclient;
    swiper             = self.melpaPackages.swiper;
    undo-tree          = self.melpaPackages.undo-tree;
  });
  emacsP = emacsPackages.emacsWithPackages (epkgs: with epkgs; [
    ace-jump-mode
    counsel
    counsel-projectile
    diminish
    dockerfile-mode
    editorconfig
    elm-mode
    engine-mode
    ess
    evil
    evil-magit
    feature-mode
    go-mode
    google-c-style
    gotham-theme
    guide-key
    hamlet-mode
    haskell-mode
    htmlize
    lua-mode
    magit
    markdown-mode
    neotree
    nix-mode
    ob-php
    ob-restclient
    php-mode
    powerline
    projectile
    request
    restclient
    sass-mode
    terraform-mode
    undo-tree
    use-package
    web-mode
    xterm-color
    yaml-mode
    yasnippet
  ]);

There is an annoying emacsPackageOverrides option, which is a no-op now and probably should be removed to avoid confusion. I've even fixed it initially, before learning about overrideScope in this thread.


Revert "Pin Pytest 6.2.0"

Depends-On: https://github.com/ansible/ansible-zuul-jobs/pull/1401
This reverts commit 26604d4836aade226f60f07727776b4eb0c0b092.
pytest 7.1.1 has been released with a fix for the fixture problem.
See: https://github.com/pytest-dev/pytest/issues/9767

recheck

regate

regate


[Feature Request] Threshold events

I have a similar use case to #18 where I want to use interactable for a drawer, but in our case, the drawer pops in when you select a pin on a map, but goes completely off screen when you close it. The problem I'm running into is there is a couple second delay while the animation settles, before onSnap is received. I'm essentially destroying the interactable view after receiving the onSnap event, but if the user clicks another pin before the animation finishes, the component isn't actually destroyed and puts us in a weird state where the interactable is off screen, but our app thinks it's visible.
I was wondering if you would consider a pull request to add vertical/horizontal thresholds. Basically whenever the center point crosses the threshold(like near the bottom of the screen), fire a thresholdCrossed event, with a threshold id, similar to onSnap. I believe this would need to go in both the IntereactableView and the PhysicsAnimator. Does this sound right? Is there a simpler solution I'm missing? Thanks for the great library!

this is an important feature, I wanted to add it for a while. It has a lot of power because you could also change all the physics rules when a threshold is crossed (consider springs disappearing and appearing in other places when you move around, just by using setState).
what would the API look like?
I thought about using a declaration similar to frictionAreas, but it will be called something like alertAreas, and whenever the center enters an area, you will be notified with something like an onAlertArea event. The nice thing about areas is that they're very flexible. They can be a small square somewhere or half the screen (just giving left for example)

I see you self assigned this, but let me know if there's anything I can do to help. I definitely think alertAreas are more powerful than the thresholds I was suggesting.

@jschloer I implemented the alertAreas for iOS in this commit https://github.com/wix/react-native-interactable/commit/3660d635f52a5b59301ff2347990b9fab821e4f8
Take a look, there's an example too that prints these events to console
If you want to help, you can maybe port this to Android? please do your best to keep a direct port as possible with identical function names so maintainability is easier

Submitted as #33.

Merged by @rotemmiz so I'm closing, please reopen if I missed something


Allow for the styles .notable, .narrative, .quest, .advice to be used outside of journals

Would be nice to use in eg a character sheet's description or an item. It is currently restricted to journals only.

I was asked on Discord to post these examples:
The fvtt advice and fvtt quest format the same, putting the stuff in a box with an image on the left.

the quick brown fox

The fvtt narrative classes format it like read-aloud text.

Some description

The notable class goes on an <asside> tag, formatted like a callout box for a note or something.

Magnets

How do they work?


add addon emmet

HTML panel support shorthand #10

Seems it's very big, maybe we can set it up dynamically using import()

Do you mean module emmet-codemirror ?

yep

right this time?

Could you review again? 👀

Looking good! But where did you find the usage of emmet.setup(CodeMirror)?

OK, I got it.

I just looked at the addon_emmet source, and then found that the lack of some global variables, and then found the webpack version, and setup interface 😄  These days a holiday, I wish you have fun to have fun


Prevent focusing hidden/disabled elements

Closes https://github.com/primer/behaviors/issues/257
This PR attempts to address the issue where if an element is disabled or hidden after the focusZone function has ran, the focus trap no longer works. I've adjusted the mutation observer that watches for added or removed nodes within the focusZone container to now track the hidden and disabled attributes.
If either attribute is applied or removed, they will added/removed from the focus trap respectively.

Hey team! I was wondering if I could get a review on this PR? For context it's making sure that disabled or hidden elements are removed from the focus zone if they are disabled/hidden after it has been initiated. It'll also add the elements back if they are no longer disabled/hidden. This is primarily useful when using focus-zone outside of React.
@primer/engineer-reviewers


Some tests fail on systems where flock is emulated with fcntl

I wanted to report that on some systems (in my case Oracle Solaris), several tests won't pass because of incorrect test suite assumptions. When native flock() is available, locking works per file description and two locks in the same process can "fight" over the same thing. But on systems where fcntl.flock() is emulated using fcntl(), this doesn't work because standard fcntl is locking per process, and thus trying multiple locks in the same one will never fail.
It's basically the same as calling something like this on Linux:
import os
import struct
import fcntl

open_mode = os.O_RDWR | os.O_CREAT | os.O_TRUNC
fd = os.open("a", open_mode)
op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
fcntl.fcntl(fd, fcntl.F_SETLK, op)

fd = os.open("a", open_mode)
op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
fcntl.fcntl(fd, fcntl.F_SETLK, op)

it also won't fail (but replacing fcntl.fcntl(...) with fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) will result in the second one failing).
That said, between processes, it works as expected so this is just about the test suite.

I'm not sure if we can do anything about this. We don't support explicitly Oracle Solaris, but assuming we would is there some OS level functionality that would allow us to do so?

Unfortunately, I don't think so :( - I believe that, in a single process, the expectation is that mutex will be used instead. The only thing that comes to mind is to use IPC and named semaphores. That said, that has nothing to do with file locking and is well outside of the scope of this library.
I think there's nothing to worry about - I just wanted to report this for posterity. Also, it only affects UnixFileLock; SoftFileLock passes all tests. And since we are integrating filelock to use it with new virtualenv which seems to use these locks for inter-process locking (and that works as expected), it works for us.

Sounds good, thanks for the report.


How keep component Portal when redirect page?

Hi guys,
I have seen the example https://github.com/zeit/next.js/tree/canary/examples/with-portals
But, I want to keep component Modal when redirect to new page.
For example: After I successfully logined then A message will appear. Next, it redirects to /profile page. But at the time  The Message component has been unmounted.
Thanks in advance.

maybe you can use
setTimeout(Router.push(' /profile', ' /profile', { shallow: true }), 2000)

Thanks, @cuining,
But I'm don't understand your code how to help my problem.


sam validate command fails with EventBridgeRule

Description
Calling sam validate on a template that contains an EventBridgeRule definition fails.
Steps to reproduce
Execute sam validate using the following SAM template:
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: EventBridge test

Resources:

  EventBus:
    Type: AWS::Events::EventBus
    Properties:
      Name: MyEventBus

  EventAssignTrialLambda:
    Type: AWS::Serverless::Function
    Properties:
      MemorySize: 128
      Timeout: 10
      Runtime: nodejs12.x
      InlineCode: |
        exports.handler = async (event) => {
          console.log("event: " + JSON.stringify(event, null, 2));
          return "done";
        }
      Handler: events.lambda_handler
      Description: Processes the event
      Events:
        MyEvent:
          Type: EventBridgeRule
          Properties:
            EventBusName: MyEventBus
            Pattern:
              source:
                - MyEvent

Observed result
The following error is returned:
Template provided at '<dir>/eventbridge.yaml' was invalid SAM Template.
Error: [InvalidResourceException('EventAssignTrialLambda', 'Event with id [MyEvent] is invalid. Resource dict has missing or invalid value for key Type. Event Type is: EventBridgeRule.')] ('EventAssignTrialLambda', 'Event with id [MyEvent] is invalid. Resource dict has missing or invalid value for key Type. Event Type is: EventBridgeRule.')

Expected result
Validation should pass as this is a valid template that deploys successfully.
I guess the workaround for now is to either use the latest version of cfn-lint or define the EventBridge rule resource separately.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: MacOS 10.14.6
SAM 0.40.0
cfn-lint 0.27.4

It looks like this has been resolved in the latest release (0.41.0).
@sriram-mv, shall I close the issue?

Perfect, thanks for responding, will close this issue.


Implement a mock response for ListEvaluationResults

Summary
The following PR:

Provides a mock implementation of the ListEvaluationResults
Extends RuleEvaluationStatus to hold also info about the alerts (not being populated yet)

Fixes https://github.com/stacklok/minder/issues/2524
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[x] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[ ] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Sample output:
➜  minder git:(mockapi) ✗ ./bin/minder repo status | jq .
WARNING: Running against a test environment (<IP_ADDRESS>) and may not be stable
{
  "entities": [
    {
      "entity": {
        "type": "ENTITY_REPOSITORIES",
        "id": "stacklok/depot"
      },
      "profiles": [
        {
          "profile": "my-profile",
          "results": [
            {
              "profileId": "a4d5589b-cf5a-42ab-a940-15d2a8c5a3e1",
              "ruleId": "12d4c5e8-7a6e-4a50-afba-8883d9a45673",
              "entity": "repository",
              "status": "failure",
              "lastUpdated": "2024-03-08T00:21:19Z",
              "entityInfo": {
                "provider": "github",
                "repo_name": "depot",
                "repo_owner": "stacklok",
                "repository_id": "a2b6392d-3b4f-48a9-b641-dc9c595c3daf"
              },
              "details": "Security alerts are enabled for the repository.",
              "guidance": "Keep the security alerts feature enabled to stay informed about potential vulnerabilities.",
              "remediationStatus": "not available",
              "remediationLastUpdated": "2024-03-08T00:19:19Z",
              "ruleTypeName": "branch_protection_lock_branch",
              "ruleDescriptionName": "branch_protection_lock_branch",
              "alertStatus": "on",
              "alertLastUpdated": "2024-03-08T00:19:39Z",
              "alertMetadata": {
                "ghsa_id": "GHSA-1234-5678"
              }
            },
            {
              "profileId": "a4d5589b-cf5a-42ab-a940-15d2a8c5a3e1",
              "ruleId": "12d4c5e8-7a6e-4a50-afba-8883d9a45673",
              "entity": "repository",
              "status": "success",
              "lastUpdated": "2024-03-08T00:21:19Z",
              "entityInfo": {
                "provider": "github",
                "repo_name": "depot",
                "repo_owner": "stacklok",
                "repository_id": "a2b6392d-3b4f-48a9-b641-dc9c595c3daf"
              },
              "details": "Security alerts are enabled for the repository.",
              "guidance": "Keep the security alerts feature enabled to stay informed about potential vulnerabilities.",
              "remediationStatus": "not available",
              "remediationLastUpdated": "2024-03-08T00:19:19Z",
              "ruleTypeName": "branch_protection_lock_branch",
              "ruleDescriptionName": "branch_protection_lock_branch",
              "alertStatus": "off",
              "alertLastUpdated": "2024-03-08T00:19:39Z"
            }
          ]
        }
      ]
    },
    {
      "entity": {
        "type": "ENTITY_REPOSITORIES",
        "id": "stacklok/insight"
      },
      "profiles": [
        {
          "profile": "my-profile-2",
          "results": [
            {
              "profileId": "ebd3f978-f2b0-4cd9-a9de-2536a2414a37",
              "ruleId": "9984ecef-b8b9-41d4-8d02-748889d3aef2",
              "entity": "repository",
              "status": "failure",
              "lastUpdated": "2024-03-08T00:19:39Z",
              "entityInfo": {
                "provider": "github",
                "repo_name": "insight",
                "repo_owner": "stacklok",
                "repository_id": "9d3ef47a-3d6f-43f8-9a29-d9112fbc92f3"
              },
              "details": "denied",
              "guidance": "Configure branch protection rules to require code reviews before merging.",
              "remediationStatus": "pending",
              "remediationLastUpdated": "2024-03-08T00:17:59Z",
              "ruleTypeName": "artifact_signature",
              "ruleDescriptionName": "artifact_signature",
              "alertStatus": "off",
              "alertLastUpdated": "2024-03-08T00:18:19Z"
            }
          ]
        }
      ]
    },
    {
      "entity": {
        "type": "ENTITY_REPOSITORIES",
        "id": "stacklok/streamline"
      },
      "profiles": [
        {
          "profile": "my-profile-2",
          "results": [
            {
              "profileId": "c5bd9d1b-3d96-4a57-a5a0-3d6248c3b677",
              "ruleId": "2aaf7f8c-76c2-499e-b667-9a4d28b3c295",
              "entity": "repository",
              "status": "error",
              "lastUpdated": "2024-03-08T00:20:49Z",
              "entityInfo": {
                "provider": "github",
                "repo_name": "streamline",
                "repo_owner": "stacklok",
                "repository_id": "b3229c1e-6f2c-4b4b-9f58-5b690f2af6f9"
              },
              "details": "evaluation skipped: rule not applicable",
              "guidance": "Update dependencies to their latest versions to improve security and compatibility.",
              "remediationStatus": "skipped",
              "remediationLastUpdated": "2024-03-08T00:18:49Z",
              "ruleTypeName": "dependabot_configured",
              "ruleDescriptionName": "dependabot_configured",
              "alertStatus": "error",
              "alertLastUpdated": "2024-03-08T00:19:19Z"
            },
            {
              "profileId": "c5bd9d1b-3d96-4a57-a5a0-3d6248c3b677",
              "ruleId": "2aaf7f8c-76c2-499e-b667-9a4d28b3c295",
              "entity": "repository",
              "status": "failure",
              "lastUpdated": "2024-03-08T00:20:49Z",
              "entityInfo": {
                "provider": "github",
                "repo_name": "streamline",
                "repo_owner": "stacklok",
                "repository_id": "b3229c1e-6f2c-4b4b-9f58-5b690f2af6f9"
              },
              "details": "denied",
              "guidance": "Update dependencies to their latest versions to improve security and compatibility.",
              "remediationStatus": "skipped",
              "remediationLastUpdated": "2024-03-08T00:18:49Z",
              "ruleTypeName": "automatic_branch_deletion",
              "ruleDescriptionName": "automatic_branch_deletion",
              "alertStatus": "on",
              "alertLastUpdated": "2024-03-08T00:19:19Z",
              "alertMetadata": {
                "ghsa_id": "GHSA-1234-5678"
              }
            }
          ]
        }
      ]
    }
  ]
}

Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 39.262% (-0.4%) from 39.703%
when pulling 95675f00e15320c9fef0075030101457f55975d9 on rdimitrov:mockapi
into 04a80024d07ea82122a106962134e6d0afeff57a on stacklok:main.

          "status": "failure",

what does that mean?

with the alerts, how can I see the difference between Low, medium and high in the api response?

what does that mean?

That is the rule type evaluation result - whether the rule failed, passed, etc.

with the alerts, how can I see the difference between Low, medium and high in the api response?

Ah, good point, let me see if this is present somewhere 👍


Implement reordering of the hands

(Draw) hand cards should be able to be reordered manually.

Probably will not do the manual reordering as it would be too complicated and not that much used. If there will be big demand for this, I will reopen.


Pass dataProjection to down to preview

This PR a further prop dataProjection to Style and Rule that is passed toPreview component.
Please review.

LGTM, thanks!


Web Interface crashes on Pedal reconnection to amp

When the PGSparkLite Pedal reconnects to the amp after being disconnected, the PGSparkLite web interface is no longer reachable from a browser. The Pedal is still able to change presets and effects afterwards despite the web UI issues.
To recreate;
Switch on Spark Amp
Switch on PGSparkLite Pedal
Allow pedal to connect and display Preset 1
Change to Preset 2
Switch off Spark Amp
Wait for PGSparkLite Pedal to show 'Is Amp on?' message.
Switch Spark Amp back on
When connection is re-established the last used preset (2) will be shown though the amp has been reset to Preset 1.

This issue doesn't occur any more. Closing.


Add hddtemp sensor device even if unreachable.

Description:
Add hddtemp device sensors even if the host is currently unreachable.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] Tests have been added to verify that the new code works.

Looks good. Thanks for the contribution! 🎉


Improve creation of Timer.Context objects

The Codahale metrics library does not allow for the direct creation of Timer.Context objects returned by the Timer.time() method.  This led to the creation of hacky reflection code to work around it.  As a result, code coverage also suffered.
To fix, convince the Codahale folks to provide a public or protected constructor for the Context class.

Create pull request to Codahale metrics version 3.1: https://github.com/dropwizard/metrics/pull/891


Import of northwind_mysql.sql fails

15:45:16	CREATE TABLE customercustomerdemo (   CustomerID varchar(5) NOT NULL,   CustomerTypeID varchar(10) NOT NULL,   PRIMARY KEY (CustomerID,CustomerTypeID),   KEY FK_CustomerCustomerDemo (CustomerTypeID),   CONSTRAINT FK_CustomerCustomerDemo_Customers FOREIGN KEY (CustomerID) REFERENCES customers (CustomerID),   CONSTRAINT FK_CustomerCustomerDemo FOREIGN KEY (CustomerTypeID) REFERENCES customerdemographics (CustomerTypeID) ) ENGINE=InnoDB DEFAULT CHARSET=latin1	Error Code: 1215. Cannot add foreign key constraint	0.047 sec

Please report the application and version you were using.

I imported it from Sqlyog (notorious for failing in imports) and worked at first shot, thanks for your work

Thanks for your report @eleumik, I hope you find mywind useful.

Issue closed based on @eleumik report of successful import.