[SPARK-31710][SQL] Fail casting numeric to timestamp by default

What changes were proposed in this pull request?
we fail casting from numeric to timestamp by default.
Why are the changes needed?
casting from numeric to timestamp is not a  non-standard,meanwhile it may generate different result between spark and other systems,for example hive
Does this PR introduce any user-facing change?
Yes,user cannot cast numeric to timestamp directly,user have to use the following function to achieve the same effect:TIMESTAMP_SECONDS/TIMESTAMP_MILLIS/TIMESTAMP_MICROS
How was this patch tested?
unit test added

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@cloud-fan @bart-samwel  @MaxGekk  Could you please help me review it ?

ok to test

Test build #122896 has started for PR 28593 at commit 6c1ffef.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27539/
Test PASSed.

Test build #122896 has finished for PR 28593 at commit 6c1ffef.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122896/
Test FAILed.

Test build #122903 has started for PR 28593 at commit 3a20aa6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27546/
Test PASSed.

Test build #122903 has finished for PR 28593 at commit 3a20aa6.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122903/
Test FAILed.

Test build #122906 has started for PR 28593 at commit 4577fa8.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27549/
Test PASSed.

Test build #122906 has finished for PR 28593 at commit 4577fa8.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122906/
Test FAILed.

Test build #122909 has started for PR 28593 at commit a39067d.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27552/
Test PASSed.

Test build #122909 has finished for PR 28593 at commit a39067d.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122909/
Test FAILed.

Test build #122910 has started for PR 28593 at commit 7f0ba76.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27553/
Test PASSed.

Test build #122910 has finished for PR 28593 at commit 7f0ba76.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/122910/
Test FAILed.

Let me close this for now.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

OK to test

ok to test

Test build #123148 has started for PR 28593 at commit d99cc30.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27779/
Test PASSed.

Test build #123149 has started for PR 28593 at commit d99cc30.

Test build #123149 has finished for PR 28593 at commit d99cc30.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123149/
Test FAILed.

Test build #123148 has finished for PR 28593 at commit d99cc30.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123148/
Test FAILed.

thanks @maropu for your review, we wanted to make  the suggestion more clear to our user, so we add more error messages to TypeCheckFailure,both are fine for me, we will also inform our user about the changes publicly @cloud-fan  @MaxGekk @HyukjinKwon  how do your think?

Test build #123159 has started for PR 28593 at commit 0a1a6a5.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27788/
Test PASSed.

Test build #123159 has finished for PR 28593 at commit 0a1a6a5.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123159/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27795/
Test PASSed.

Test build #123167 has started for PR 28593 at commit bae99b1.

can we also add an item in docs/sql-migration-guide.md?

Test build #123167 has finished for PR 28593 at commit bae99b1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123167/
Test FAILed.

sure,@cloud-fan ,docs have been added, it seems there are failing in  generating docs test,Could you please help review ? @cloud-fan

Test build #123180 has started for PR 28593 at commit 39da7be.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27808/
Test PASSed.

Test build #123180 has finished for PR 28593 at commit 39da7be.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123180/
Test FAILed.

these are legitimate test failures. Can you update the test, or set the legacy config in these tests?

Thanks @cloud-fan, i will update the test cases and doc the guide into 3.1

Test build #123206 has started for PR 28593 at commit c5c82c3.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27832/
Test PASSed.

Merged build finished. Test PASSed.

Test build #123207 has started for PR 28593 at commit 39e8e30.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27833/
Test PASSed.

Test build #123207 has finished for PR 28593 at commit 39e8e30.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123207/
Test FAILed.

Test build #123206 has finished for PR 28593 at commit c5c82c3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123206/
Test FAILed.

Build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27849/
Test PASSed.

Test build #123226 has started for PR 28593 at commit fd3efa2.

Test build #123228 has started for PR 28593 at commit 69198c6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27851/
Test PASSed.

Test build #123226 has finished for PR 28593 at commit fd3efa2.

This patch fails Spark unit tests.
This patch does not merge cleanly.
This patch adds no public classes.

Build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123226/
Test FAILed.

Test build #123228 has finished for PR 28593 at commit 69198c6.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123228/
Test FAILed.

retest this please

Test build #123261 has started for PR 28593 at commit 852d730.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27883/
Test PASSed.

Test build #123261 has finished for PR 28593 at commit 852d730.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123261/
Test FAILed.

Test build #123266 has started for PR 28593 at commit 2e55be3.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27888/
Test PASSed.

Test build #123266 has finished for PR 28593 at commit 2e55be3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123266/
Test FAILed.

Test build #123277 has started for PR 28593 at commit 7637256.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27899/
Test PASSed.

Test build #123279 has started for PR 28593 at commit 87cada7.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27902/
Test PASSed.

Test build #123277 has finished for PR 28593 at commit 7637256.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123277/
Test FAILed.

Test build #123279 has finished for PR 28593 at commit 87cada7.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123279/
Test FAILed.

Test build #123288 has started for PR 28593 at commit 13ae816.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27910/
Test PASSed.

Test build #123288 has finished for PR 28593 at commit 13ae816.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123288/
Test FAILed.

Test build #123289 has started for PR 28593 at commit 4abd8d3.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27911/
Test PASSed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123289/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27914/
Test PASSed.

Test build #123292 has started for PR 28593 at commit b13316f.

Test build #123292 has finished for PR 28593 at commit b13316f.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123292/
Test FAILed.

Test build #123302 has started for PR 28593 at commit 50cc0cf.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27924/
Test PASSed.

Test build #123302 has finished for PR 28593 at commit 50cc0cf.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123302/
Test FAILed.

Test build #123303 has started for PR 28593 at commit 22638e4.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27925/
Test PASSed.

Merged build finished. Test PASSed.

Test build #123303 has finished for PR 28593 at commit 22638e4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123303/
Test FAILed.

@GuoPhilipse It seems you wrongly merged unnecessary commits to this PR. Could you solve it first?

Test build #123316 has started for PR 28593 at commit b1dda01.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27938/
Test PASSed.

thanks @maropu, i will check it

Test build #123316 has finished for PR 28593 at commit b1dda01.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class DateFunctionsSuite extends QueryTest with SharedSparkSession with BeforeAndAfter
class ExpressionInfoSuite extends SparkFunSuite with SharedSparkSession with BeforeAndAfter
        withClue(s\"Function '$
class FlatMapGroupsWithStateSuite extends StateStoreMetricsTest with BeforeAndAfter
class StreamingAggregationSuite extends StateStoreMetricsTest with Assertions with BeforeAndAfter
   implicit class RichStreamExecution(query: StreamExecution)
class StreamingDeduplicationSuite extends StateStoreMetricsTest with BeforeAndAfter
class HiveUDFSuite extends QueryTest with TestHiveSingleton with SQLTestUtils with BeforeAndAfter

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123316/
Test FAILed.

Test build #123320 has started for PR 28593 at commit 38f0e76.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27942/
Test PASSed.

Test build #123320 has finished for PR 28593 at commit 38f0e76.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123320/
Test FAILed.

Test build #123328 has started for PR 28593 at commit e478c90.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27950/
Test PASSed.

Test build #123328 has finished for PR 28593 at commit e478c90.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123328/
Test FAILed.

Test build #123331 has started for PR 28593 at commit 7348917.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27952/
Test PASSed.

Test build #123331 has finished for PR 28593 at commit 7348917.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123331/
Test FAILed.

retest this please

Test build #123341 has started for PR 28593 at commit 7348917.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27962/
Test PASSed.

Test build #123341 has finished for PR 28593 at commit 7348917.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123341/
Test FAILed.

I am confusing about the result of  Test build #123341,it shows fails PySpark unit tests.,but no failed test cases can be seen from the report.Could you please help me check on that ?@maropu  @cloud-fan

You need to check the Console Output directly;
**********************************************************************
File<EMAIL_ADDRESS>line 524, in pyspark.sql.dataframe.DataFrame.withWatermark
Failed example:
    sdf.select('name', sdf.time.cast('timestamp')).withWatermark('time', '10 minutes')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib64/pypy-2.5.1/lib-python/2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest pyspark.sql.dataframe.DataFrame.withWatermark[0]>", line 1, in <module>
        sdf.select('name', sdf.time.cast('timestamp')).withWatermark('time', '10 minutes')
      File<EMAIL_ADDRESS>line 1408, in select
        jdf = self._jdf.select(self._jcols(*cols))
      File<EMAIL_ADDRESS>line 1305, in __call__
        answer, self.gateway_client, self.target_id, self.name)
      File<EMAIL_ADDRESS>line 102, in deco
        raise converted
    AnalysisException: cannot resolve 'CAST(`time` AS TIMESTAMP)' due to data type mismatch: cannot cast bigint to timestamp,you can enable the casting by setting spark.sql.legacy.allowCastNumericToTimestamp to true,but we strongly recommand using function TIMESTAMP_SECONDS/TIMESTAMP_MILLIS/TIMESTAMP_MICROS instead.;;
    'Project [name#24, unresolvedalias(cast(time#25L as timestamp), None)]
    +- LogicalRDD [name#24, time#25L], false

**********************************************************************
   1 of   1 in pyspark.sql.dataframe.DataFrame.withWatermark
***Test Failed*** 1 failures.

Thanks maropu, will check it

Test build #123363 has started for PR 28593 at commit e50e5cb.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27983/
Test PASSed.

Test build #123363 has finished for PR 28593 at commit e50e5cb.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123363/
Test FAILed.

Test build #123379 has started for PR 28593 at commit 2344e1f.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27998/
Test PASSed.

Test build #123379 has finished for PR 28593 at commit 2344e1f.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123379/
Test FAILed.

@cloud-fan
ParseToDate use the cast long to timestamp to realize the function, i am not sure if it is the best design , but it is a remind point if we really want to do sth on on dependent  function.
`case class ParseToDate(left: Expression, format: Option[Expression], child: Expression)
extends RuntimeReplaceable {
def this(left: Expression, format: Expression) {
this(left, Option(format),
Cast(Cast(UnixTimestamp(left, format), TimestampType), DateType))
}
def this(left: Expression) = {
// backwards compatibility
this(left, None, Cast(left, DateType))
}`
But, to be honest, it seems the change really affect too many modules in spark, we plan to change the code directly, after we migrate ,we tell our user to use the above three functions.Thanks @cloud-fan, @HyukjinKwon @maropu @MaxGekk @bart-samwel for your warmly ,patient and relevant reviews,i really got a lot from your reviews and points.
it is also my first time contributing to spark ,so the test flow is not so familiar ,thanks for your kindly points .
Thanks again for you  time!

You can change Cast(Cast(UnixTimestamp(left, format), TimestampType), DateType)) to Cast(SecondsToTimestamp(UnixTimestamp(left, format)), DateType))

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28058/
Test PASSed.

Test build #123441 has started for PR 28593 at commit 5f138af.

Test build #123441 has finished for PR 28593 at commit 5f138af.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123441/
Test PASSed.

Thanks @cloud-fan, Test cases have passed.

Test build #123573 has started for PR 28593 at commit 9cf87e8.

Test build #123573 has finished for PR 28593 at commit 9cf87e8.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123573/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28196/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28197/
Test PASSed.

Test build #123574 has finished for PR 28593 at commit cb21d5d.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123574/
Test FAILed.

Test build #123576 has started for PR 28593 at commit 726371c.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28199/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123576/
Test FAILed.

Test build #123583 has started for PR 28593 at commit 8ed4fc4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28207/
Test PASSed.

Test build #123583 has finished for PR 28593 at commit 8ed4fc4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123583/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28208/
Test PASSed.

Test build #123584 has started for PR 28593 at commit 96c197c.

Test build #123584 has finished for PR 28593 at commit 96c197c.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123584/
Test FAILed.

Test build #123586 has started for PR 28593 at commit 3d1819d.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28210/
Test PASSed.

Merged build finished. Test PASSed.

Test build #123586 has finished for PR 28593 at commit 3d1819d.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123586/
Test FAILed.

Test build #123588 has started for PR 28593 at commit be88f01.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28212/
Test PASSed.

Test build #123588 has finished for PR 28593 at commit be88f01.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123588/
Test FAILed.

Test build #123594 has started for PR 28593 at commit e14c4f9.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28218/
Test PASSed.

Test build #123596 has started for PR 28593 at commit 7ad82da.

Merged build finished. Test PASSed.


what would happenned when pooled memory's remaining size is not enough

PooledByteBufAllocator.newDirectBuffer(initialCapacity, maxCapacity)
if the remaining size of memory pool is below initialCapacity, what would happend when i call the method?
it will blocked the caller until the memory pool 's remaining size turns ok, or throw an oom?
does it mean  i need to keep a atomlong variable to calculate all the bytebufs i have allocated and
the sum size must below off-heap's size to avoid the oom?

in my idea:

throw OOM
you can read codes in class: DirectArena  method: allocateDirect

how to avoid the OOM is just like java, if you get an OOM error,
first you should check your code, maybe it has memory leak problem
second you must add the memory size use -Dio.netty.maxDirectMemory

it throws.


Promote if branches that don't have else stmts

Title

@calebmkim are we planning to merge this?

Yeah; I might want to add a parameter flag about promoting if statements though. Unless you think it should be separate PRs.

Do you mean a flag that sets the threshold for upgrading imbalanced branches or a flag to promote them at all? If we have the former, we don't need another flag I think.

This will be affected by #1827

@calebmkim ready to merge?

Yep (I meant to do this last week after tests passed but forgot)


Styles not rendered on the server

I've noticed styles are not rendered on the server and are only rendered once the client app starts, causing a brief flash of unstyled content. When I looked at build/assets.json, the css key was missing after running yarn start, but is present after running yarn build. If it's intentional to extract the styles only for a production build, I'm trying to understand how the styles can be rendered prior to the client app starting and preventing the FOUC.

This only happens during development. There is no FOUC when run in production. If this is problematic, I suggest extending razzle to use extract text webpack plugin to pull out style sheets during dev just as they are pulled in razzle-build. I am not sure that HMR will work the way you expect if you make this change

I am using styled components(CSSinJS) for my styling and am facing this problem in production too.

@corydeppen Hello. Have you solved this problem?


Solr Result Json Parser Needed!!

It seems, for now SolrNet supports only the XML Parser and since we can send query as wt=json, we like to have Json Parser on Results. Is there any way we can achieve this ?

Hi, what exactly do you need from a JSON response that isn't present in XML responses?

Size of Json Payload is less than XML Payload - We are getting huge number of records. We tested out that Json is faster than XML

I am facing the same issue and I looked into overriding the QueryExecutor. It would make sense, but I can't generate the QueryResult mainly because the CollationResult has an internal constructor.

Hi Mausch,
I am facing solr error when trying to run query against solr database.
below is the error.
System.ArgumentException: 'Could not convert value 'System.Collections.ArrayList' to property 'Content' of document type ETP.Library.Solr.SolrObjectHeader'

In the Content we are storing json converted string to solr datadabse.Previously it used to work.No it is stopped dont know what is the reason and how to avoid this error.Please help me

@sunilkumarpkd that's unrelated to this issue.


Show clearer bones and joints

It would be great to be able to see the nodes/rig with names to help debugging animations

Is this sufficient to close this issue:


Coverflow-Effect not working with Swiper-Element and Safari

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/49s6c3
Bug description
The Example of the Coverflow-Effect is not working in Safari on both mobile and desktop.
https://swiperjs.com/demos#effect-coverflow
Expected Behavior
I expected it to work like the Core-Version of swiper:
https://codesandbox.io/s/p3f7rh
Actual Behavior
The Slides don't get tilted and the images are flat and stretched.
Swiper version
11.0.2
Platform/Target and Browser Versions
Safari 16.4
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

https://swiperjs.com/blog/slide-slots-in-v10-1-0


Refactoring

This project is in dire need of refactoring.
Roadmap:

[x]  Imports and Reference registry (remove globals)
[x]  Merge recursions of annotation
[x]  Specify Plugin Interface

Documentation is still missing. But interface should now be consistent


[Scan] Is possible to stop all tests when first UITest fails?

Issue Description
Basically what I need is to stop the UITests when the first one fails. I'm using Jenkins with Fastlane Scan. (It's not a Bug)
I have the option to continue after failure disabled (but it only prevents this specific test to continue):
override func setUp() {
...
    continueAfterFailure = false
...
}

My scan file contains the option to "fail_build" true.
But it keeps running even when the first on fails.
Is it even possible using a Scanfile or another option, I couldn't find it on scan docs?
Thanks in advance.

Ok, thanks anyway.


Add candle CudaDevice and MetalDevice to avoid creating a new unique device each time

Checklist

[x] Confirmed that run-checks all script has been executed.

Related Issues/PRs
Flagged by a discord user: https://discord.com/channels/1038839012602941528/1091796857996451942/1286409544280576110
The candle device handling is clumsy. Turns out, every time you create a new device struct for the same device index, a new unique identifier is created - meaning that both structs (to represent the same device) are not equal.
The original issue flagged a problem for metal device due to this inequality, but in my tests the behavior leads to an insane training time with CUDA (ETA > 2hrs).
This is because the tensor.to_device(device) method in Candle actually transfers the data via the CPU for CUDA devices that are different. A terrible side effect of using different unique identifiers to represent the same device index.
Changes
The CandleDevice enum now captures the underlying device structs to avoid creating a new one with a unique identifier each time.
To keep the API simple (and similar to the previous usage), I've added creation methods for Cuda and Metal variants:
// Create a Cuda device from its index
let device = CandleDevice::cuda(0);
// Create a Metal device from its index
let device = CandleDevice::metal(0);

Also had to remove the Copy implementation because the candle devices do not implement it.
Testing
Tested (locally) the mnist example with a new candle feature flag to use the candle backend. The training now completes in approx. 3-4 minutes.

Discord user here - this fixed https://github.com/huggingface/candle/issues/2484


Have you ever tried ST3D on PointPillars?

I am trying to add another roi head to predict iou for pointpillars(just like second-iou). But when I do pretraining, I found that the performance is bad. Do you have any suggestions for changing the pointpillars structure?
Here is part of my config file.
  BACKBONE_2D:
    NAME: BaseBEVBackbone
    LAYER_NUMS: [3, 5, 5]
    LAYER_STRIDES: [2, 2, 2]
    NUM_FILTERS: [64, 128, 256]
    UPSAMPLE_STRIDES: [1, 2, 4]
    NUM_UPSAMPLE_FILTERS: [128, 128, 128]  # #torch.Size([1, 128*3, H, W])

and
  ROI_HEAD:
    NAME: SECONDHead
    CLASS_AGNOSTIC: True

    SHARED_FC: [256, 256]
    IOU_FC: [256, 256]
    DP_RATIO: 0.3

    NMS_CONFIG:
      TRAIN:
        NMS_TYPE: nms_gpu
        MULTI_CLASSES_NMS: False
        NMS_PRE_MAXSIZE: 9000
        NMS_POST_MAXSIZE: 512
        NMS_THRESH: 0.8
      TEST:
        NMS_TYPE: nms_gpu
        MULTI_CLASSES_NMS: False
        NMS_PRE_MAXSIZE: 1024
        NMS_POST_MAXSIZE: 100
        NMS_THRESH: 0.7

    ROI_GRID_POOL:
      GRID_SIZE: 7
      IN_CHANNEL: 384
      DOWNSAMPLE_RATIO: 8
      ...

@MaxDumbledore Were you able to improve results using PointPillars? I'm doing something similar on PointPillars. Would love to know your results.


Bazel build being run for non-Bazel projects, causing errors

In here
https://github.com/CycloneDX/cdxgen/blob/master/index.js#L1899-L1902
 const bazelFiles = getAllFiles(
    path,
    `${options.multiProject ? "**/" : ""}BUILD*`,
    options,
  );

Seems to be matching build.gradle files, and so it tries to run bazel build //...
I get the error message
ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file).
See documentation at https://bazel.build/concepts/build-ref#workspace

1. Check if bazel is installed and available in PATH.
2. Try building your app with bazel prior to invoking cdxgen

I think the getAllFiles should be changed, or it should be looking for Bazel WORKSPACE files instead.
This can be replicated by just cloning this repo, and adding an empty build.gradle file in the root of this repo and running
$ touch build.gradle; CDXGEN_DEBUG_MODE=DEBUG npm exec -- cdxgen . --fail-on-error

Executing 'mvn -fn org.cyclonedx:cyclonedx-maven-plugin:2.8.0:makeAggregateBom -DoutputName=bom -DincludeTestScope=true -q' in /Users/mcdong/work/cdxgen/test
Executing gradle --console plain --build-cache properties in .
Executing gradle --console plain --build-cache dependencies in .
Obtained 25 from this gradle project. De-duping this list ...
Executing bazel build //... in /Users/mcdong/cdxgen
 INFO: not looking for project directory .bazelwrc because of error looking up project directory error="couldn't find WORKSPACE file"
WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file).
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file).
See documentation at https://bazel.build/concepts/build-ref#workspace

1. Check if bazel is installed and available in PATH.
2. Try building your app with bazel prior to invoking cdxgen

@MCDong Great find! Could you send a PR to limit the search to only BUILD and BUILD.bazel? Wondering if we should also introduce a parameter to make it case-sensitive.

Heya :) I have to go through legal approval at my company to submit PRs for an open source project that we use internally (yay bureaucracy) so if you guys have the bandwidth to do it, I'd appreciate it, but otherwise it'll probably take like a week to get the legal approvals to do a PR, which I can do if needed.
But also I think it should look for these files to cover the bases

WORKSPACE - since that defines a Bazel project (and also WORKSPACE.bazel), and only at the root directory of the project
MODULE.bazel - as an alternative to WORKSPACE in newer versions of Bazel

As the error suggests we can only run Bazel build commands from "below a directory having a WORKSPACE file" so even just looking for BUILD and BUILD.bazel will still result in failures.

Thanks @MCDong for trying. I would still suggest to continue trying to become a contributor to have a more active role in the project. I will keep researching about your suggestion to use workspace and modules and share another PR. Thank you for sharing!


Fix bot crash on telegram egghatch

Fixes a crash when telegram_handler tries to send an egg hatched notification.

Don't merge this yet. There's still a problem with egg_hatch events. Working on it.

Sure...

Should be ok to merge now @solderzzc

👍


logOff method

Hello,
Is there any event emitted after you call client.logOff() method to know when it is logged off? I've listened to 'disconnected' event, but nothing happens there on logging off ;)

No, but I would like to add this.


swarm takes 90 seconds or more to flag node down

In Swarm 1.0.0 it may take 90 seconds or more to flag a node down. In a swarm set up with 2 nodes 'vm2' and 'vm3'. When docker daemon on vm2 was shutdown, 'docker run’ commands to swarm failed for around 90 seconds until swarm ‘flag engine as dead’. During that time requests to swarm got refused. In these 2 node setup it has about 50% chance to report the issue.
dchen@vm3:~/go/src/github.com/docker/swarm$ docker -H <IP_ADDRESS>:2375 info
Containers: 37
Images: 7
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 2
 vm2: <IP_ADDRESS>:4444
  └ Containers: 18
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 4.053 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.19.0-25-generic, operatingsystem=Ubuntu 14.04.3 LTS, storagedriver=aufs
 vm3: <IP_ADDRESS>:4444
  └ Containers: 19
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 4.053 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=3.19.0-25-generic, operatingsystem=Ubuntu 14.04.3 LTS, storagedriver=aufs
CPUs: 2
Total Memory: 8.106 GiB
Name: vm3

dchen@vm3:~/go/src/github.com/docker/swarm$ ./swarm manage <IP_ADDRESS>:4444,<IP_ADDRESS>:4444
INFO[0000] Listening for HTTP                            addr=<IP_ADDRESS>:2375 proto=tcp
INFO[0000] Registered Engine vm3 at <IP_ADDRESS>:4444
INFO[0000] Registered Engine vm2 at <IP_ADDRESS>:4444
ERRO[3135] HTTP error: Post http://<IP_ADDRESS>:4444/v1.15/containers/create: dial tcp <IP_ADDRESS>:4444: getsockopt: connection refused  status=500
ERRO[3146] HTTP error: Post http://<IP_ADDRESS>:4444/v1.15/containers/create: dial tcp <IP_ADDRESS>:4444: getsockopt: connection refused  status=500
ERRO[3148] HTTP error: Post http://<IP_ADDRESS>:4444/v1.15/containers/create: dial tcp <IP_ADDRESS>:4444: getsockopt: connection refused  status=500
ERRO[3151] HTTP error: Post http://<IP_ADDRESS>:4444/v1.15/containers/create: dial tcp <IP_ADDRESS>:4444: getsockopt: connection refused  status=500
ERRO[3153] HTTP error: Post http://<IP_ADDRESS>:4444/v1.15/containers/create: dial tcp <IP_ADDRESS>:4444: getsockopt: connection refused  status=500
ERRO[3231] Flagging engine as dead. Updated state failed 3 times: Get http://<IP_ADDRESS>:4444/v1.15/containers/json?all=1&size=0: dial tcp <IP_ADDRESS>:4444: getsockopt: connection refused  id=S5HB:3CIV:DUKT:N2AP:UTA2:FNAZ:SYOJ:MXWY:UJCJ:D5YC:G3HJ:7TKO name=vm2
ERRO[3271] Flagging engine as dead.  Thus in a setup of two nodes, the scheduler will continually pick node2 even though it's down but still not flagged as dead. The result is that all the requests are going to fail for 90 seconds.
The fact that there are only two nodes exacerbate the problem.
Se we should evict the node from any scheduling decision as soon as we see a connection failure to an Engine.

There are two solutions:

Either we say it's the default behavior to wait for the node being flagged as dead during the refresh loop. In this case it's only a problem when you have a small number of nodes.

Downside (let's say bug even): You have N/M chances to be blocked for the time of the refresh loop if the node that is down is the one picked by the strategy for the next request

Either we flag as unhealthy as soon as a Create request of some sort (Container, Network, whatever using the scheduling) fails. In this case the incriminated node is not accessible and marked as unhealthy until the next refresh loop.

Downside: The network can behave erratically and if failing often the node will be virtually disabled but still listed.
The fix is super straightforward (tested the second behavior and I think this is more acceptable than the first one).
Let me know what you think @docker/swarm-maintainers :cocktail:

@dongluochen @abronan @vieux: That's the work I started with #1276, basically, instead of selecting one node to run the container, we get a list of nodes.
They idea is that we can try on one of the nodes (the first one, since they are ranked by priority) and if it doesn't work, we move on to the second one.
Also related to this, which we should probably push by 1.0 is: the number of retries as well as the duration should be configurable.

Oh forgot about this change. Indeed sounds like we just need to continue on that path and select the next one on the list :+1:

#1276 sounds great! If we have a short list of nodes, swarm manager can also 'ping' them to select healthy ones before containers are scheduled. It may reduce failure attempts to provide a better user experience. One failure case for that is swarm manager itself is under network partition that it cannot reach the majority of nodes. That problem should be handled by election/monitoring.

Closed by #1600.


move the jeweler gem tasks to the rakefile

Generate a proper gemspec with no external dependencies. This enables Bundler to use git versions of this gem.

thanks but I'm no longer using jeweler so that's not gonna be merged in

Could you at least merge the gemspec change since currently there is no way to install git versins of this gem using bundler.


Differentiate cartoon images from real human faces.

Differentiate cartoon images from real human faces.
add in cartoony folder

@akshitagupta15june
I would like to work on this issue kindly assign me this

Ok

should I create a new folder in the main repo ?

add your folder inside this https://github.com/akshitagupta15june/Face-X/tree/master/Cartoonify-Image

kk... thank you

can u help me a bit ? like how to approach this

i will give some resources to get started here are some research papers that you can read https://www.researchgate.net/publication/280978603_Distinguishing_Cartoons_Images_from_Real-Life_Images

like if we give some images of people as input along with a cartoon image then we have to differentiate

kk i'll go through it ..... thank you

Hello, I would like to work on this issue.

ok assigning you

Hi , I would like to work on this issue , I think a GAN discriminator model will perform well on this

Multiple participants can work on this issue so no need of assigning

I am a GSSOC22 participant, I would like to work on this!

you can work on it

Nice

yes yes @shireenchand you can work on it! I am assigning you


Add comment to cached_property decorator.

This line is doing something very clever but also quite odd and not necessarily obvious at first glance, so it deserves a comment.

How about making it a docstring as I amended?

Ah yes, nice!

Thanks @timgraham 🌻


DATA ISSUE: Mark as deleted FL orgs

While we explore more systematic ways for duplicate facilities/ orgs to be marked as deleted, we have received multiple requests from Florida to have a couple of duplicate or erroneous sites removed from the weekly report they receive.
This ticket is to manually mark as deleted the following sites.

All MedFast Urgent Care sites

The sites in the image below (email forwarded to Zedd and Tim as it wouldn't paste well here)

Please let @mlighdc know when this is completed so that she can communicate back with the health team in Florida.

As reference, the Report Stream team sends an automated report to states each week. This report pulls from the SimpleReport database and has, to date, simply pulled from the "state" column. Ming will update the automation to remove sites that are Identity verified = FALSE and Marked as Deleted = TRUE going forward. We hope this will alleviate state confusion. We should at some point do a manual effort as a team to "mark as deleted"/ archive orgs/ facilities that are truly deleted so that other states are getting the best data as well.

Thanks @emmastephenson. I missed this ticket when I did my search. @tim-skylight, would it be possible to have an ETA for Florida. They have raised this several times and it is an issue in their workflow. Thanks!


Add a new backup state pulled

To differentiate the backup that is ready to be used, add a new state Ready.

Completed state means the backup creation is finished but hasn't be synced from the remote backup target.
Ready state means the backup is sync from the remote backup target and ready to be used.

https://github.com/longhorn/longhorn/issues/2912
Signed-off-by: JenTing Hsiao<EMAIL_ADDRESS>

@jenting please also update the CRD manifests at https://github.com/longhorn/longhorn/tree/v1.2.0


make test results in Test: arrays02 -> ERROR!

Steps to reproduce the issue
Doing the following three steps does not work having already got iverilog as well:
  git clone https://github.com/YosysHQ/yosys
  cd yosys
  make test

[user7@ yosys]$ which iverilog
~/software/iverilog/bin/iverilog
[user7@ yosys]$ which iverilog

[user7@ yosys]$ iverilog -V
Icarus Verilog version 11.0 (devel) (s20150603-853-g4466a19)

Copyright 1998-2020 Stephen Williams

[user7@ yosys]$ git status
# On branch master
nothing to commit, working directory clean
[user7@ yosys]$ date
Wed Sep 23 07:23:48 PDT 2020
[user7@ yosys]$ git pull
Already up-to-date.
[user7@ yosys]$ date
Wed Sep 23 07:24:09 PDT 2020
[user7@ yosys]$ make test
.
.
.
[100%] Building share/sf2/cells_map.v
[100%] Building share/sf2/cells_sim.v
cd tests/simple && bash run-test.sh ""
make[1]: Entering directory `/home/user7/software/yosys/tests/simple'
+ gcc -Wall -o /home/user7/software/yosys/tests/tools/cmp_tbdata /home/user7/software/yosys/tests/tools/cmp_tbdata.c
Test: arrays02 -> ERROR!
Note: Make sure that 'iverilog' is an up-to-date git checkout of Icarus Verilog.
make[1]: *** [arrays02.sv] Error 1
make[1]: Leaving directory `/home/user7/software/yosys/tests/simple'
make: *** [test] Error 2

Provide instructions for reproducing the issue. Make sure to include
all necessary source files. (You can simply drag&drop a .zip file into
the issue editor.)
Also, make sure that the issue is actually reproducible in current git
master of Yosys.
See https://stackoverflow.com/help/mcve for some information on how to
create a Minimal, Complete, and Verifiable example (MCVE).
Please do not waste our time with issues that lack sufficient information
to reproduce the issue easily. We will simply close those issues.
Contact https://www.symbioticeda.com/ if you need commercial support for Yosys.
Expected behavior
Not sure what it should be

Please describe the behavior you would have expected from the tool.
Actual behavior
[100%] Building share/sf2/cells_map.v
[100%] Building share/sf2/cells_sim.v
cd tests/simple && bash run-test.sh ""
make[1]: Entering directory `/home/user7/software/yosys/tests/simple'
+ gcc -Wall -o /home/user7/software/yosys/tests/tools/cmp_tbdata /home/user7/software/yosys/tests/tools/cmp_tbdata.c
Test: arrays02 -> ERROR!
Note: Make sure that 'iverilog' is an up-to-date git checkout of Icarus Verilog.
make[1]: *** [arrays02.sv] Error 1
make[1]: Leaving directory `/home/user7/software/yosys/tests/simple'
make: *** [test] Error 2

Please describe how the behavior you see differs from the expected behavior.

I have encountered this error before and it only happens occasionally immediately after building yosys. If I just run make test again, it passes the second time. Unfortunately I've never been able to reproduce it reliably enough to figure out what causes it.
Do you get the error every time?

Also, to help debug this, can you show the contents of yosys/tests/simple/arrays02.log and yosys/tests/simple/arrays02.out (as a zip)?

I just ran into this issue; running
make test
a second time didn't fix it.
arrays02.out.zip
It appears the only file in arrays02.out for me is "arrays02_ref.sv"; I'm incl
arrays02.out.zip
uding it inline as well because it is short:
module uut_arrays02(clock, we, addr, wr_data, rd_data);

input clock, we;
input [3:0] addr, wr_data;
output [3:0] rd_data;
reg [3:0] rd_data;

reg [3:0] memory [16];

always @(posedge clock) begin
	if (we)
		memory[addr] <= wr_data;
	rd_data <= memory[addr];
end

endmodule

I have had similar problems, here is my logfile
arrays02.log


Use recwarn everywhere

...instead of custom fixture. Also assert that no warnings are left over
after the test.

@ThiefMaster @davidism Please review.

Interesting, we're getting a ResourceWarning somewhere.


datepicker ng-model doesn't support a string anymore

I'm using moment to format dates, as a result, the dates become strings. This seem to work just fine when I upgraded from 0.14 to 1.0.0. I kept upgrading the library and I noticed that with 1.1.1 the calendar doesn't work anymore. I did some digging and the calendar works up to 1.0.3 with the ng-model being a string. I'm using AngularJS 1.4.9, bootstrap UI 1.1.0 and moment 2.11.1. I reviewed the changelog and I don't see any change that would have caused this behavior. Attached is the plunkr so you can check the results. The calendar works correctly if you just assign a ng-model with the value of new Date() instead of using the string.
https://plnkr.co/edit/pqBK0omSm2Mdt86ov4WS?p=preview

@tribicito, please extend us the courtesy of reading the project documentation (including CHANGELOG - paying particular attention to the breaking changes sections within each version) as well as searching both open and closed issues before opening a new one.  Thanks.  People have reported this issue numerous times.
The ability to support strings was removed in 0.13.2 and was erroneously added back in recently due a rogue PR and was correctly re-removed in 1.1.0.  Either way, the API docs for datepicker state that a Javascript Date object must be used.


Document how to represent a formulary

Document how to represent Formulary items in FHIR, including:

How to use Medication vs. MedicationKnowledge
Relevant ontologies (RXNorm, NDC)
How to represent drug-drug interactions

Saw this in weekly planning, moving it to Ready to Start.

From DaVinci
http://hl7.org/fhir/us/davinci-drug-formulary/STU1.0.1/

The DaVinci formulary is a good place to start, and was the basis for our initial implementations. More pointers in this doc:
https://docs.google.com/document/d/1gVWX4hScBSV-cVr41VhCSoFxj1Uzm2A4Uuh3-KSuVro/edit

More pointers in this doc:
https://docs.google.com/document/d/1gVWX4hScBSV-cVr41VhCSoFxj1Uzm2A4Uuh3-KSuVro/edit

User Request: https://medplum.slack.com/archives/C057GEVQCRE/p1689644935921579?thread_ts=1689644935.921579&cid=C057GEVQCRE

#2537


is collapsible suppose to support basic slide in/out animation?

I'd assume so by looking at its props..
                <Collapsible                     collapsed={!this.props.selected}                     duration={5000}                     onAnimationEnd={() => console.log("animation ended")}                 >                     <Text>                         {item.description}                     </Text>                 </Collapsible>
it simply hide/show child element without animating, onAnimationEnd is not fired.
I am using Expo v 42 which uses react native v0.63.
Can anyone verify if it's suppose to support basic animation?

note: defining easing did not work either


SPGo no longer working

Since the latest update, I can't seem to use SPGo anymore. It doesn't seem to register in Code properly anymore. If I try to configure a new workspace I get the below. For existing projects, none of the commands are working. I've tried this in latest versions of Code and Code Insiders on both macOS and Windows but see same issue.
I've tried reloading the extension as well as removing and reinstalling but to no avail. Any ideas what I can do to get this working again? It's an amazing extension and I feel lost without it!

Hello @JonMillerUK -
I'm going to try to reproduce this locally. In the meantime, can you see if there are any errors reported in the output window for spgo? It sounds like the extension is not initializing properly, but any additional details you can provide would help me resolve this quickly.
Thanks,
Chris

@JonMillerUK - Can you also verify that you SPGo.json file is properly formatted and without error? I have found that VSCode will prevent SPGo from loading and registering any commands when there is a format error with the JSON data.
You can use a tool like JSONLint to validate your config file.
Thanks,
Chris

Thanks for reply.
Nothing is being reported at all in the Output window and the JSON is ok. I am seeing this error even if I try to setup a new workspace - as you say, it doesn't seem to initialise the extension.
I have a different Win10 machine which tried updated version of the extension on and that still works - only difference there is that VS Code isn't the latest version.

The VSCode version may be the key here! Both VSCode and TypeScript were rev'd recently and I know I spent about 2 hours trying to sort out dependencies and transient package errors in my local environment. I suspect that this is the root cause of your errors (and probably other's who have not reported this).
I'm going to build SPGo 1.2.1 against VSCode 1.20 and TypeScript 2.7.2 and make sure that all the dependencies are playing nice. I expect to release this update today, so bear with me!
Thanks,
Chris

That's awesome. Thank you. I just found an old VM with VS code 1.18.0 and SPGo worked perfectly in there.
I then let it update to 1.20.0 and now doesn't work so does look like the versioning is the issue.
Thanks again - this extension is just awesome! I use it for everything. So nice to be able to do SP stuff natively on my Mac!

Hello @JonMillerUK
I've submitted SPGo 1.2.1 to the VSCode marketplace. This version is compiled against Typescript 2.7.2 and requires VSCode 1.20.0 or greater. Can you update and confirm that your issues are resolved?
Thanks,
Chris

Hi @sg-chrishasz, unfortunately it still isn't working for me. Did you manage to get 1.2.1 to work in VSCode 1.20.0?

Hi @sg-chrishasz same here - as soon as it works I'll try the German cloud connectivity :-)

hello everyone, today I received the same issue that @JonMillerUK had. I worked yesterday all day, but today any of commands did work, I tried uninstall and install again but nothing works current version is 1.2.1  just for know

Hello Everyone-
Sorry about the ongoing challenges. I created a new VM this morning and am able to reproduce the issue, but I have not yet found a root cause. I'm going to work on this today and get a fix out as soon as possible. I appreciate your patience with this (annoying) issue!
-Chris

Update- I have found the root cause of the issue: I have a packaging issue with one of my dependencies. In a recent update, it has been configured specifically as a dev dependency, but that prevents it from being packaged with SPGo when deploying. This is why it worked in my local environment and not when I packaged the extension for the marketplace.
I have contacted the package owner via GitHub and will update this issue when I hear back.
Note: the VSCode debugger (Help-> Toggle Developer tools) was instrumental in finding the root cause here. This was a lifesaver!
Thanks all, for your patience here!
-Chris

Hello Everyone-
I'm happy to say that with some help from the community (@koltyakov, @s-KaiNet), we have resolved the issue. The root cause was an error with how NPM treats transient dependencies in the most recent versions.
I have published SPGo 1.2.2 to the marketplace which should resolve this issue. Please test and reopen if there are any persistent issues.
Thank you all for your patience with this!
-Chris


#49973 Added the convex notch shape option.

Description
Added a convex option for the notch shape. (see pictures at the end of this message.)
Related Issues
#49973
Tests
This option is not yet tested. Feel free to add this. That would be nice. (Or I will do that soon.)
Checklist

[X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I signed the CLA.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I updated/added relevant documentation (doc comments with ///).
[ ] All existing and new tests are passing. (see Tests section above.)
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change

[X] No, no existing tests failed, so this is not a breaking change. (It's optional.)

Screenshots
Default notch shape (concave) without body extended.

Default notch shape (concave) with body extended.

New optional notch shape (convex) without body extended.

@Piinks Thanks for the review. Unfortunately I have currently no time for unit tests and CLA. Also I have currently problems to get Flutter repo run. (sample_catalog depends on intl 0.16.0 / 0.16.1 etc.) I'm new to Dart and Flutter and that's very time consuming right now. Sorry.
Feel free to complete this RP or create a new one. The important source code snippets are also in the issue #49973.


Update homebrew formula during release

Feature Description
When we cut a new release, we should automate sending a formula bump PR to homebrew.
For details, see: https://github.com/GoogleCloudPlatform/cloud-sql-proxy/issues/95#issuecomment-1702028455
Sample code
No response
Alternatives Considered
No response
Additional Details
No response

This is already supported.
See https://github.com/Homebrew/homebrew-core/blob/5bda287a196f4db6832cffdc3295b9f7cfaab06f/.github/workflows/autobump.yml#L294.


Dockerfile: Run on Python 3.11

https://docs.python.org/3.11/whatsnew/3.11.html

Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite.

Hi @cclauss this is interesting, thank you! As you may know we at PyUp maintain Safety CLI and Safety-db, and love meeting others in the Python community. I'd love to meet you and chat about your work and learn more about it! Shoot me an email at<EMAIL_ADDRESS>:)

I sent you an email as requested on 30 Jan 2023.
What is the status on this pull request and #435 ?


Install fails on make for sha3 with node 13.1.0

npm install @openzeppelin/cli fails with node 13.1.0.
Appears to be issue with<EMAIL_ADDRESS>which is a dependency of<EMAIL_ADDRESS>sha3.target.mk:113: recipe for target 'Release/obj.target/sha3/src/addon.o' failed
make: *** [Release/obj.target/sha3/src/addon.o] Error 1
make: Leaving directory '/mnt/c/Users/andre/Documents/projects/forum/pkr/node_modules/sha3/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/abcoathup/.nvm/versions/node/v13.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.4.0-18362-Microsoft
gyp ERR! command "/home/abcoathup/.nvm/versions/node/v13.1.0/bin/node" "/home/abcoathup/.nvm/versions/node/v13.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/c/Users/andre/Documents/projects/forum/pkr/node_modules/sha3
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/abcoathup/.npm/_logs/2019-11-21T06_26_59_440Z-debug.log

Thanks for the report. This is being tracked on https://github.com/ethereum/web3.js/issues/3181.

Working on 2.7.1


switch out jiffy for jsx

I was disappointed to see jiffy was used after I had read "100% Erlang" in the readme :). I'm not sure if you are open to this patch but I thought I'd try.
I'm also working on rebar3 support if you are interested. The blocker right now is getting the tests to run. rebar3 doesn't work by default with eunit tests in test/ like this. So I may just switch it to Common Test and see if you like that or not :). Or I'll be poking @talentdeficit to help me figur eout the eunit with rebar3.

I don't have any experience with jsx... How fast and stable is in relation to jiffy? Any case I will do some tests.
Of course interested in experimenting with rebar3 or Common Test...

Hi,
I have done some informal tests comparing jiffy and jsx. Jiffy is about 7 times faster decoding a medium size json. Both scale nearly linear with the number of cores in the machine.

Last version of nklib allows to use jiffy and jsx.


Make archive_access param being able to be both forced on or off.

Codecov Report

Merging #483 (81c11e7) into master (79108a3) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
- Coverage   71.35%   71.18%   -0.17%
==========================================
  Files         118      118
  Lines       10604    10608       +4
==========================================
- Hits         7566     7551      -15
- Misses       3038     3057      +19

Impacted Files
Coverage Δ

assemblyline/datastore/helper.py
32.22% <ø> (ø)

assemblyline/datastore/__init__.py
64.39% <100.00%> (ø)

assemblyline/datastore/stores/es_store.py
59.07% <100.00%> (+0.17%)
:arrow_up:

assemblyline/common/backupmanager.py
69.95% <0.00%> (-5.77%)
:arrow_down:

assemblyline/datasource/alert.py
84.61% <0.00%> (-3.85%)
:arrow_down:

assemblyline/odm/randomizer.py
93.42% <0.00%> (-1.76%)
:arrow_down:

Continue to review full report at Codecov.

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


Enable direct filtering of obs needing ids index

Passes params[:needs_id] from a hidden field added to the form if the form is rendered on the Obs Needing Ids index, only.
This param affects routing of the request, thru to the ObsController#index, which may call ObsIdentifyController#index if the param is present.
Work in progress.

Coverage: 93.49% (-0.01%) from 93.5% when pulling 226a78fc5bd1c0d5ad2c7a25833362fbb4b18106 on nimmo-filter-obs-needing-ids into 797c9b926242600c5f99eb2c82e669fd172734a2 on nimmo-observations-needing-identifications.


Small improvements

Please review each commit separately to understand each logical change.

/hold for rebase merge strategy

I'll reopen the PR once I fix the tests.


fix(deps): update icr.io/ext/logdna-agent docker tag to v3.9.2-20240517.5d5c02f76b134e40

This PR contains the following updates:

Package
Update
Change

icr.io/ext/logdna-agent
patch
3.9.2-20240501.3bcb6cf89eda58a3 -> 3.9.2-20240517.5d5c02f76b134e40

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.24.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add support for multiple LLM Models on different endpoints

We are starting to see more strategies mixing models between steps, the first step for us to start implementing this type of approach is letting users use different LLMs on different endpoints.

Duplicate issue


Can't retrieve chat logs field (Question, Answer, Score) from traces customDimensions field

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/forums/34192--general-feedback.

Hi can I ask why the query result not showing the question, answer and score when I used this query?
requests
| where url endswith "generateAnswer"
| project timestamp, id, url, resultCode, duration, performanceBucket
| parse kind = regex url with *"(?i)knowledgebases/"KbId"/generateAnswer"
| join kind= inner (
traces | extend id = operation_ParentId
) on id
| extend question = tostring(customDimensions['Question'])
| extend answer = tostring(customDimensions['Answer'])
| extend score = tostring(customDimensions['Score'])
| project timestamp, resultCode, duration, id, question, answer, score, performanceBucket,KbId

@glennolazo please create an issue linking the exact document you are following, or create a new question on Q&A. https://docs.microsoft.com/answers/topics/azure-active-directory.html?filter=unanswered


how to add empty container element in repsonse message for GET RPC

I'm using Netopeer2 0.3.75. I found a problem that when a container is empty, it won't be added into resoponse message for GET RPC.
grouping Key-Value-Pair {
    leaf key {
      type Custom-Key;
    }
    leaf value {
      type Custom-Value;
    }
  }

container custom-lists {
      list custom-list {
        key index;

        leaf index {
          type uint8;
        }

        container config {
             list entry {
                key key;
                uses Key-Value-Pair;
            }
         }

      }

    }

In above example yang definition, I have two different reulsts of GET response:
  <custom-lists>
      <custom-list>
        <index>1</index>
        <config>
          <entry>
            <key>test</key>
            <value>test1</value>
          </entry>
        </config>
      </custom-list>
      <custom-list>
        <index>2</index>
      </custom-list>
    </custom-lists>

You could find that in index 2, there is no <config>. Because there is no any entry in index 2.
So, could I change this behavior? I need <config/> in index 2 even there is no any entry.

Hi,
sorry, you cannot strictly change the behaviour and have <config/> in the data if there is no list entry. However, you can use the with-defaults parameter and specify one of the options that will suit you. We treat non-presence containers exactly as default values because they behave in the same way.
Also, that empty container should have no configuration meaning (as stated here), so it would be best for your application to not require this at all.
Regards,
Michal

@michalvasko
Thanks for your reply.
I tried to change second param of nc_server_reply_data in function op_get of file op_get_config.c,
NC_WD_ALL, NC_WD_ALL_TAG,NC_WD_EXPLICIT they all can not add <config/> .
And this with-defaults config in function server_init:
/* set with-defaults capability basic-mode */
nc_server_set_capab_withdefaults(NC_WD_EXPLICIT, NC_WD_ALL | NC_WD_ALL_TAG | NC_WD_TRIM | NC_WD_EXPLICIT);
Could help me about how to change the code to suit my requirement?

Hi,
how exactly are you working with the response? I was talking about netopeer2-cli, to set some defaults parameter for the get or get-config commands, that should work.
Regarding your modifications, the default value flag is a printing flag (as specified in libyang.h) meaning it should be set on the client side, all the default values (and empty containers) are already there (in the data tree), they are just skipped normally. Also, the function nc_server_set_capab_withdefaults simply sets the server capabilities so if you keep this line intact, the server will support all the default modes, no reason to change it.
Regards,
Michal

@michalvasko
I use NETCONc to be netconf client in my test. What I want is NETCONFc can receive empty container.
         container config {
             presence "for test";
             list entry {
                key key;
                uses Key-Value-Pair;
            }
         }

I also add presence statement in my yang definition, and try all four with-defaulf params in get and get-config on NETCONFc.  Still can not see empty containers in response message from netopeer server.

Hi,
I have tried installing a module with a presence container, I then created the container using edit-config with netopeer2-cli and after issuing get-config (no defaults parameter) I received the container. Meaning I cannot reproduce your problem (I am using devel version of sysrepo/netopeer2-server).
Now, I can help you further only if you provide a use-case with a problem I can easily reproduce with our applications. Otherwise, I can suggest you start netopeer2-server with parameter -c MSG and it will then print all the messages it sends to a NETCONF client. If you see the container is missing there, post the whole output here and it  may be enough to decide whether there is a bug and how to fix it.
Regards,
Michal

Thanks for your help @michalvasko
I will try debug and fix it myself.


[add feature]Article  page and enhance home page

i would like to add article page which contains roadmap and contain some ml knowledge and enhance home page.
please assign this to me under gssoc ext and hacktoberfest

for now we don't need this, we will look at this later, so i am closing this issue


[#76] [UI] Create smiley rating bar (Part 4)

Part of #76
What happened 👀
Create a smiley choser/rating bar.
Insight 📝

Single selection smiley on a pre-defined scale (counter).
Add emoji and state disabled/enabled accordingly.

Proof Of Work 📹

https://user-images.githubusercontent.com/13435717/125051585-4a09b600-e0cd-11eb-8a61-d1f554950acf.mp4

all updated 🙇  including the state accessibility refactor


visual studio for mac is deprecated, yet vscode instructions for anything related to maui on mac are poor :(

Type of issue
Outdated article
Description
As noted in the title, the docs here are poor here. I have spent hours trying to use vscode to create an ios app, and its painful.
Page URL
https://learn.microsoft.com/en-us/dotnet/maui/ios/device-provisioning/automatic-provisioning?view=net-maui-8.0&tabs=vs
Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/ios/device-provisioning/automatic-provisioning.md
Document Version Independent Id
136ca791-32b6-dc5b-7baa-771283e4ae55
Article author
@davidbritch
Metadata

ID: 136ca791-32b6-dc5b-7baa-771283e4ae55
Product: dotnet-mobile
Technology: dotnet-maui

Hi @thetownfool
I agree with your sentiments completely. But unfortunately, there are no plans to fully doc the VSCode plugin until it nears a stable v1 release, because there's so much churn in it. At the moment it's an early preview only, hence it's 0.X version number, and is far from fully featured.
I realise this isn't want you want to hear, but afraid it's the reality right now.


[Doc] add encrypt functions and update toc

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

BE Build Success

run starrocks_admit_test

@mergify backport branch-2.4

@mergify backport branch-2.3


restart to update vscode seems to break application if window.nativeTabs: true

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.66 and 1.67.0-insider
OS Version: MacOS 12.3.1 (21E258) ARM / M1 Pro build

Steps to Reproduce:

Open VSCode 1.66 or 1.67.0-insider
Execute the restart to update vscode command
Try starting VSCode, fails:

2022-04-11 17:09:05.444 Electron[63660:492138] *** Assertion failure in -[NSWindowStackController _enterWindow:intoFullScreenWithWindow:], NSWindowStackController.m:1019
[0411/170905.579932:ERROR:directory_reader_posix.cc(42)] opendir /Users/joep/Library/Application Support/Code - Insiders/Crashpad/attachments/2df90da8-95be-4637-9341-548bb3679860: No such file or directory (2)
[0411/170905.580019:WARNING:crash_report_exception_handler.cc(235)] UniversalExceptionRaise: (os/kern) failure (5)
[63668:0411/170905.582962:ERROR:child_thread_impl.cc(233)] Invalid PlatformChannel receive right

⋊> ~/.dotfiles on master ⨯ code-insiders --verbose                                                                                17:04:23
[main 2022-04-11T15:09:05.145Z] [File Watcher (node.js)] Request to start watching: /Users/joep/Library/Application Support/Code - Insiders/User (excludes: <none>, includes: <all>),/Users/joep/Library/Application Support/Code - Insiders/User/settings.json (excludes: <none>, includes: <all>)
[main 2022-04-11T15:09:05.160Z] Starting VS Code
[main 2022-04-11T15:09:05.160Z] from: /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app
[main 2022-04-11T15:09:05.160Z] args: {
  _: [],
  diff: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  'pre-release': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-gpu': false,
  'ms-enable-electron-run-as-node': false,
  telemetry: false,
  debugRenderer: false,
  'enable-smoke-test-driver': false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'skip-welcome': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'disable-keytar': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': '80794c27-6aa5-42a4-af8e-172c07cba041',
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  __sandbox: false,
  'no-proxy-server': false,
  'no-sandbox': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  'disable-dev-shm-usage': false,
  logsPath: '/Users/joep/Library/Application Support/Code - Insiders/logs/20220411T170905'
}
[main 2022-04-11T15:09:05.162Z] Resolving machine identifier...
[main 2022-04-11T15:09:05.162Z] Resolved machine identifier:<PHONE_NUMBER>60d81afd68c68fa0876e81bad5b82e2a9aa2f77b60e266c3dee5d7
[main 2022-04-11T15:09:05.163Z] Main->SharedProcess#connect
[main 2022-04-11T15:09:05.170Z] [File Watcher (node.js)] Started watching: '/Users/joep/Library/Application Support/Code - Insiders/User'
[main 2022-04-11T15:09:05.185Z] [File Watcher (node.js)] Started watching: '/Users/joep/Library/Application Support/Code - Insiders/User/settings.json'
[main 2022-04-11T15:09:05.205Z] StorageMainService: creating global storage
[main 2022-04-11T15:09:05.213Z] lifecycle (main): phase changed (value: 2)
[main 2022-04-11T15:09:05.214Z] windowsManager#open
[main 2022-04-11T15:09:05.214Z] windowsManager#open pathsToOpen [
  {
    backupPath: '/Users/joep/Library/Application Support/Code - Insiders/Backups/1649585676385',
    remoteAuthority: undefined
  },
  {
    workspace: { id: 'f224400ca952c8e37a5fca7bee9e9358', uri: [d] },
    type: 2,
    exists: true
  },
  {
    workspace: { id: 'a45a8b90d532e2eb210dc4fa6b1dd72e', uri: [d] },
    type: 2,
    exists: true
  },
  {
    workspace: { id: 'f224400ca952c8e37a5fca7bee9e9358', uri: [d] },
    type: 2,
    exists: true
  }
]
[main 2022-04-11T15:09:05.215Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: 'f224400ca952c8e37a5fca7bee9e9358', uri: [d] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2022-04-11T15:09:05.216Z] IPC Object URL: Registered new channel vscode:97d38397-fa40-486f-a245-c27d0d9523ef.
[main 2022-04-11T15:09:05.216Z] window#validateWindowState: validating window state on 2 display(s) { mode: 3, display: 3, width: 1024, height: 768, x: 164, y: 55 }
[main 2022-04-11T15:09:05.216Z] window#validateWindowState: restoring fullscreen to previous display
[main 2022-04-11T15:09:05.216Z] window#ctor: using window state { width: 1024, height: 768, mode: 3, x: 0, y: 0 }
[main 2022-04-11T15:09:05.330Z] window#load: attempt to load window (id: 1)
[main 2022-04-11T15:09:05.336Z] StorageMainService: creating workspace storage (f224400ca952c8e37a5fca7bee9e9358)
[main 2022-04-11T15:09:05.337Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: 'a45a8b90d532e2eb210dc4fa6b1dd72e', uri: [d] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2022-04-11T15:09:05.337Z] IPC Object URL: Registered new channel vscode:be559da6-6a96-454a-9edf-808190122772.
[main 2022-04-11T15:09:05.338Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, display: 3, width: 1024, height: 768, x: 448, y: 156 }
[main 2022-04-11T15:09:05.341Z] window#validateWindowState: multi-monitor working area { x: 0, y: 25, width: 1920, height: 994 }
[main 2022-04-11T15:09:05.342Z] window#ctor: using window state { mode: 1, display: 3, width: 1024, height: 768, x: 448, y: 156 }
[main 2022-04-11T15:09:05.434Z] window#load: attempt to load window (id: 2)
[main 2022-04-11T15:09:05.436Z] StorageMainService: creating workspace storage (a45a8b90d532e2eb210dc4fa6b1dd72e)
[main 2022-04-11T15:09:05.436Z] windowsManager#doOpenEmpty {
  restore: true,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: true
}
[main 2022-04-11T15:09:05.437Z] IPC Object URL: Registered new channel vscode:c92b95fc-3adc-4f8a-aeb2-937565f14d33.
[main 2022-04-11T15:09:05.437Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, display: 3, width: 1024, height: 768, x: 164, y: 55 }
[main 2022-04-11T15:09:05.437Z] window#validateWindowState: multi-monitor working area { x: 0, y: 25, width: 1920, height: 994 }
[main 2022-04-11T15:09:05.437Z] window#ctor: using window state { mode: 1, display: 3, width: 1024, height: 768, x: 164, y: 55 }
2022-04-11 17:09:05.444 Electron[63660:492138] *** Assertion failure in -[NSWindowStackController _enterWindow:intoFullScreenWithWindow:], NSWindowStackController.m:1019
[0411/170905.579932:ERROR:directory_reader_posix.cc(42)] opendir /Users/joep/Library/Application Support/Code - Insiders/Crashpad/attachments/2df90da8-95be-4637-9341-548bb3679860: No such file or directory (2)
[0411/170905.580019:WARNING:crash_report_exception_handler.cc(235)] UniversalExceptionRaise: (os/kern) failure (5)
[63668:0411/170905.582962:ERROR:child_thread_impl.cc(233)] Invalid PlatformChannel receive right

Things I tried

Since the Invalid PlatformChannel receive was mentioned in https://github.com/microsoft/vscode/issues/131018 , disable window.restoreFullscreen, did not work
Reinstall VSCode, did not work
Install VSCode insiders, which did work! But then I ran the same command there, and it broke that build, too...

EDIT: Setting window.nativeTabs: false fixed the issue. Pretty sure this is a duplicate of https://github.com/microsoft/vscode/issues/131018

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

@bpasero Thanks for the quick reply and yes, here you go!
29a786b4-ced6-4c2d-b518-b15ec8c4761f.dmp.zip

Thanks! I let Deepak take a look from here on.

Merging to https://github.com/microsoft/vscode/issues/131018


LG G4 - Android 6.0

Camera closing immediately after opening

Please follow the instructions for filing bug reports.

Build.MANUFACTURER == "LGE"
Build.PRODUCT == "p1_global_com"

This is what shows in the console everytime:
12-15 20:51:06.887 3688-4771/? E/CustomThreadFactory: UNCAUGHT in thread DataSyncServiceHelper-1
                                                      java.lang.IllegalStateException: could not connect to GoogleApiClient: ConnectionResult{statusCode=unknown status code 16, resolution=null}
                                                          at com.google.android.wearable.datatransfer.internal.DefaultPeerProvider.blockingConnect(DefaultPeerProvider.java:75)
                                                          at com.google.android.wearable.datatransfer.internal.DefaultPeerProvider.getConnectedPeers(DefaultPeerProvider.java:32)
                                                          at com.google.android.wearable.datatransfer.internal.DataSyncServiceHelper.processIntent(DataSyncServiceHelper.java:378)
                                                          at com.google.android.wearable.datatransfer.internal.DataSyncServiceHelper.access$000(DataSyncServiceHelper.java:50)
                                                          at com.google.android.wearable.datatransfer.internal.DataSyncServiceHelper$IntentProcessor.run(DataSyncServiceHelper.java:719)
                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                          at java.lang.Thread.run(Thread.java:818)
12-15 20:51:07.529 4130-5009/? E/DatabaseUtils: Writing exception to parcel
                                                java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=9189, uid=10110 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
                                                    at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:605)
                                                    at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:480)
                                                    at android.content.ContentProvider$Transport.query(ContentProvider.java:211)
                                                    at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
                                                    at android.os.Binder.execTransact(Binder.java:453)
12-15 20:51:07.531 9189-9975/? E/iu.UploadsManager: Insufficient permissions to process media
                                                    java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=9189, uid=10110 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
                                                        at android.os.Parcel.readException(Parcel.java:1599)
                                                        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
                                                        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
                                                        at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
                                                        at android.content.ContentResolver.query(ContentResolver.java:498)
                                                        at android.content.ContentResolver.query(ContentResolver.java:441)
                                                        at ish.a(PG:110)
                                                        at com.google.android.libraries.social.autobackup.FingerprintScannerIntentService.onHandleIntent(PG:81)
                                                        at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
                                                        at android.os.Handler.dispatchMessage(Handler.java:102)
                                                        at android.os.Looper.loop(Looper.java:148)
                                                        at android.os.HandlerThread.run(HandlerThread.java:61)

Seems to have something to do with an embedded fingerprint scanner exposing itself as a camera?

Nothing in those stack traces pertain to this library. For example, there is no reference to com.commonsware.cwac.cam2 classes.
Also, please note that I still need:

the code necessary to reproduce the problem (this could be one of the demo apps, or it could be some demo project of yours that you publish)
the steps necessary, using that code and that hardware, to reproduce the problem

I know it doesn't say "cwac", it would be easier that way. But something is going on deeper in.
I'm testing with the demo app right now to see what happens.

It happens with the demo too!
But then the camera opens - closes - and after 1 second - opens again, and then I can take a picture

{"api":23,"brand":"lge","build":"MRA58K","cpu":["arm64-v8a",""],"hardware":"p1","manufacturer":"LGE","model":"LG-H815","product":"p1_global_com","version":"6.0"}

Isn't it fun discovering new sh** on every single Android device?

    add(new Builder()
            .manufacturer("LGE")
            .product("p1_global_com")
            .supportsCameraTwo(false)
            .build());

Solved the problem.

I will still look into getting hardware for this, but this might wind up being addressed by #289. Thanks for the research!

Seems to be the same case with manufacturer=LGE, product=jagnm_global_com, which is the LG-G3

Seems to be the same case with manufacturer=LGE, product=jagnm_global_com, which is the LG-G3

@danielgindi I have moved that one to issue #299.

@danielgindi I have moved that one to issue #299.

Addressed in v0.7.3


Moore's voting algorithm

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
I want to write the Moore's voting algorithm for finding out the maximum element in O(log n) time complexity.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Instead of O(n^2) time complexity, reduce the time complexity of finding the element whose frequency occurs the maximum number of times to O(log n)
Do you want to work on it
Mention the one language you want to be assigned for this issue.
I would like to work in C++

@plazzy99 @raksha009 Please assign this issue to me

Hi,
I am a GSSOC'21 participant, I would like to solve this issue in python. Please assign it to me.

I would like to contribute to the above problem in java as I am a participant of GSSOC'21. Kindly assign this to me.