[WIP] Make paket build on a clean windows

Install Windows 10 Pro from ISO
install git
clone paket
run build.cmd

Notes:

msbuild is provided by 'RoslynTools.MSBuild'
ReferenceAssemblies are currently checked-in. I need to either find a nuget package, or create one myself. (I had planned to use 'RoslynTools.ReferenceAssemblies', but that doesn't contain the ones for 4.5)
~MSBuild doesn't seem to support Directory.build.props in combination with old-sdk projects? I had wanted to use that to set FrameworkPathOverride, but it didn't work until I manually modified all fsprojs~ Only the first Directory.Build.props is used, and there was already one in /src/. Also, Directory.build.targets does not yet work: https://github.com/Microsoft/msbuild/issues/1721
there is something funky with referencing portable stuff, I had to disable the FsCheck tests, or I would get the following errors:

2>C:\source\Paket\tests\Paket.Tests\Resolver\PropertyTestGenerators.fs(13,3): error FS0074: The type referenced through 'System.IDisposable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime'. [C:\source\Paket\tests\Paket.Tests\Paket.Tests.fsproj]

2>C:\source\Paket\tests\Paket.Tests\Resolver\PropertyTestGenerators.fs(125,5): error FS0074: The type referenced through 'System.Type' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime'. [C:\source\Paket\tests\Paket.Tests\Paket.Tests.fsproj]

what binaries do you mean? ;D

The tool dotnet-mergenupkg was compiled against netcore1.0, so we need the netcore1.0.x runtime to execute it ...
The issue is that Fake only allows the installation of a single runtime, I tried installing two after each other but the second deleted the first.

Hi @enricosada, do you think it would be possible to update dotnet-mergenupkg and provide a netcoreapp2.0 binary?
Otherwise usage in the Sdk 2.x is a bit clumsy, because I still need to install the 1.0.x runtime in parallel somehow.

what a bunch of crap:

Oh yeah ;)

well, one issue was that ubuntu 17.x still references some ancient 4.x mono ...

does paket not use caching on unix?
Maybe I'm wrong ,but it seems to download everything every time

wait - paket now finished successfully???????
I only had to start the build script 20 times!

Mono? It's short for "Mondays..."
Am 26.08.2017 6:12 nachm. schrieb "Matthias Dittrich" <
<EMAIL_ADDRESS>
Oh yeah ;)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/2664#issuecomment-325142417,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNF7tVkZB690l4jhPKSqCxaYsd36tks5scEP-gaJpZM4PDIgM
.

Well, if we don't find a global cache we fallback to some local directory. Maybe that is what you are seeing?

Idk, I was probably confused. Each time I started it, it downloaded some, then failed. But each time it probably got a little bit further...
You may want to mute this thread, i will probably rage a bit until I either have this fixed, or given up ;)

Some of the integration tests also run -f
Am 26.08.2017 6:21 nachm. schrieb "Lukas Rieger"<EMAIL_ADDRESS>
Idk, I was probably confused. Each time I started it, it downloaded some,
then failed. But each time it probably got a little bit further...
You may want to mute this thread, i will probably rage a bit until I
either have this fixed, or given up ;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/2664#issuecomment-325143292,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNMcoe6ZZ52njOZ6airOfqufNwo38ks5scEYIgaJpZM4PDIgM
.

good news: I got it to use the msbuild from the package.
bad news: it crashes hard on startup

Ready from my side, as soon as AppVeyor and at least one travis leg are green

I'd love to see a bit less "WIP"-Dependencies but overall that's a good step forward.

The version numbers are arbitrary. If it makes you feel better I can push a 1.0 right now ;D
If you want, we can also change to a "non-branded" package that is owned by you guys or the fsfoundation.
"0x53A.ReferenceAssemblies.Paket" was just so that I could get started.
Similar, I forked dotnet-mergenupkg to dotnet-0x53A-mergenupkg so that I could work on this now, we can wait with actually pulling this until enrico has updated his original package to netcoreapp2.0.

Note that it's not a blocker for me :). I trust you to cleanup eventually. That's why approved the changes ;)

There wasn't any real need for this PR, I mostly wanted to test this out so I can also move my work solution to this model. So it is up to you whether we pull it now and clean up later, or wait a bit.

The version numbers are arbitrary

Welcome to netcore ecosystem ;-)

Note: I would like to add an actual CI leg for this, but afaik AppVeyor does not provide "clean" windows machines, so I don't know of a way to test this.

Maybe with travis a minimalistic netcore only build?

Maybe with travis a minimalistic netcore only build?

On linux, I still rely on the system-installed msbuild because the one from RoslynTools.MSBuild crashes hard

"dotnet msbuild" could work. I mean there is a bit of work to do to make this happen but it's not too unrealistic as paket/fake are basically ported. I think the only thing I know is that the netcore version of paket cannot push for some reason

Officially, the dotnet cli does NOT support build old-sdk projects.

then we need to update sooner or later anyway, because I really want to get rid of mono. We can still have tests and stuff working with mono but the core stuff will probably move soon :)

yes, it would be great to move paket itself to netcoreapp, maybe even standalone so the dotnet runtime does not need to be installed.
Do you know what the status of the linker is? Single-file standalone would be awesome.

I would be so happy already if stuff would be working, so I didn't think about a linker yet ;)
But yeah it would be awesome.

AWESOME!!!!


Control the kernel injection with new argument. And compare the outputs only on rank 0

Setting "--use_kernel" as "False" to disable kernel injection when running on CPUs;

The original code will infer the baseline on the same pipeline for several times when enabling multiple accelerators. But actually, there only needs to calculate once on rank 0 and compare with ds results.

@tjruwase Please take time to review the PR. Thanks!

@tjruwase Hi! Is there any problem with this PR? If so, we can talk to solve this, if not, please take time to move forward. Thanks a lot!

@tjruwase Hi! Is there any problem with this PR? If so, we can talk to solve this, if not, please take time to move forward. Thanks a lot!

@foin6, sorry for the delay. We will review asap.

Hi, @tjruwase @lekurile ! Thanks for your comments, I've solved the issues, please review.

Hi, @tjruwase ! Sorry for bothering, but it has been 2 days since my newest submission, please take time to move forward. It's important to me. Appreciate!


Domain activation is Failed - [BRIEF DESCRIPTION]

App Id: d8uyhyzk7k7q4
Region: us-east-1
Step: Domain activation
Status: Failed
Issue/question
I previously successfully configured my custom domain name to an amplify website. I deleted the website and wanted to use my domain name for another website.
Error message
Error message: One or more of the CNAMEs you provided are already associated with a different resource.
Additional information
Tried various trouble shooting messages in the AWS doc, waiting 6 hours but still no luck.

Hi @haohao1331 , do you know the previous appId which you configured custom domain before?

Hi @haohao1331 , do you know the previous appId which you configured custom domain before?

Sorry I didn't record that, is it possible to provide you the domain name and then somehow unhook all the CNAMES? Thanks!

Hi @haohao1331 , could you please send an email to<EMAIL_ADDRESS><EMAIL_ADDRESS>, include the link of the issue(https://github.com/aws-amplify/amplify-console/issues/723)? We will help you from there!

Hi @haohao1331 , we just disassociated your domain. It would take some time to be updated. If you still face the issue after 6 hours, please let us know!

Hi @haohao1331 , You domain should be able to associate with you current distribution now. Closing the ticket, if you face the same issue, please feel free to reopen the ticket.


Collection throws ValidationError when using slug pages

Link to reproduction
No response
Payload Version
3.0.0-beta.67
Node Version
v20.14.0
Next.js Version
15.0.0-rc.0
Describe the Bug
The Pages collection that comes with the fresh install of Payload v3 throws a ValidationError when adding a second item in the CMS. It seems to be trying to validate the action, but I find it weird since I'm already logged in to the CMS.
My other collections work just fine. I've even tried everything from commenting out all imports and all fields, even duplicating the collection with the same fields, and worked, tried to deploy the collection to production, and it also worked just fine there.
I eventually discovered this only happens if I set the collection slug to pages. Other slug values such as webpage, sitepage make adding items to the collection work.
The error only happens to slug pages
Is this intended, or am I missing something here?
Reproduction Steps
Consider the following Page collection:
import { CollectionConfig } from "payload";
const Pages: CollectionConfig = {
  slug: "pages",
  labels: {
    singular: "Page",
    plural: "Pages",
  },
  admin: {
    useAsTitle: "name",
    defaultColumns: ["name", "id"],
  },
  fields: [
    {
      label: "Page Title",
      name: "name",
      type: "text",
    },
  ],
};
export default Pages;

Add first Page, everything runs as expected

Add second record, throws a Validation error

Adapters and Plugins
No response

@makunoia That validation error mentioning "email" tells me that this collection was at one point auth enabled and you have ghost content in your database.
Using something like Beekeeper Studio or Mongo Compass can you connect to your database and inspect it for either content items that arent listed in Payload or for fields on existing items that shouldn't be there?
I bet this will fix your issue but let me know if it doesnt.


Could you please provide more details regarding the azure firewall performance in the official documentation ?

Could you please provide more details regarding the azure firewall performance in the official documentation?
Edited: Added doc metadata.

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

ID: 6bba1b4d-cf65-c0a2-9bb6-4ff7896f0a15
Version Independent ID: 7ab0db77-e78d-de58-369f-641782327264
Content: Azure Firewall FAQ
Content Source: articles/firewall/firewall-faq.md
Service: firewall
GitHub Login: @vhorne
Microsoft Alias: victorh

@JennyLJY, Thanks for leveraging Azure docs feedback channel to raise this question.
Kindly see this document 'Monitor Azure Firewall logs and metrics' for more details.
You may interested to check the Azure: SLA for Azure Firewall document.
As mentioned in the doc:
"We guarantee that Azure Firewall will be available at least 99.95% of the time, when deployed within a single Availability Zone."
"We guarantee that Azure Firewall will be available at least 99.99% of the time, when deployed within two or more Availability Zones in the same Azure region."
If you wish to see the performance counters for the Azure Firewall, you can monitor Azure Firewall using firewall logs. You can also use activity logs to audit operations on Azure Firewall resources. Using metrics, you can view performance counters in the portal.
You can also connect to your storage account and retrieve the JSON log entries for access and performance logs. After you download the JSON files, you can convert them to CSV and view them in Excel, Power BI, or any other data-visualization tool.
Hope this helps! In case you have more questions, to better assist you, please do share more details about your requirement.

@AjayKumar-MSFT Thanks for your reply here.
Actually I have several questions regarding the scaling up.
Per description here, we will scale the azure firewall once the average cpu usage is above 60%. Could you please let me know what is the frequency for collecting the cpu usage?
https://docs.microsoft.com/en-us/azure/firewall/firewall-faq#how-long-does-it-take-for-azure-firewall-to-scale-out
Also, how we distribute the workloads to different cpus?

@JennyLJY, Thanks for sharing the document URL and adding info. I'm assign this thread to SME in the area to assist you further.

@JennyLJY , I discussed your query with the Azure Firewall Product Group team and they mentioned that the Azure Firewall uses various internal components to auto scale and load balance the traffic and they are all handled in the backend architecture. It is not published externally as backend logic may change in future depending upon the demand and requirement. All the features and functionalities are taken care of automatically and it does not affect/impact the customer setup.
If you are facing any particular issue, please do let us know and we can look into it further.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


completeness.json is invalid

because of one comma too many. This makes the linker.completeness_chart() call fail (in Splink 3.7.2, maybe also other versions).
https://github.com/moj-analytical-services/splink/blob/74b9778bfa4752337734237f0f4abf84046ea8b9/splink/files/chart_defs/completeness.json#L81

Closed by #1143


Add basic support for std::function

This adds a basic support for std::function, allowing to instantiate it in Cython, and to pass function pointers and functors to functions and classes that receive std::function.
Some things are missing, such as allowing to call the std::function::operator() from Cython (couldn't find a generic way), but this is already very useful for interfacing with code that expects std::function parameters.

I'm getting /home/travis/build/cython/cython/tests/run/cpp_function_lib.h:23:5: error: ‘function’ in namespace ‘std’ does not name a type on Travis. Is there a way to enforce using C++11 for some tests?

The new tests are passing, but there seems to be other unrelated failures (master is broken too, but I rebased on the last stable commit, and it also seems broken).

Nice.
Rather than change all tests, it's better to annotate the test itself as requiring a certain level of support (see how this is done at https://github.com/cython/cython/blob/master/tests/run/cpp_smart_ptr.pyx).
Yes, the tests look unrelated.

@robertwb Thanks, I've changed it as you suggested

I don't know why there are failures now :(

I don't think it's your changes that make the tests fail. This is the build from the last commit on master when I'm typing this: https://travis-ci.org/cython/cython/builds/195024517
@robertwb, looks like cpp is generally broken on Python 3 now. The failure is this:
======================================================================
ERROR: runTest (__main__.CythonRunTestCase)
compiling (cpp) and running cpp_template_functions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 995, in run
    ext_so_path = self.runCompileTest()
  File "runtests.py", line 705, in runCompileTest
    self.test_directory, self.expect_errors, self.annotate)
  File "runtests.py", line 930, in compile
    self.assertEquals(None, unexpected_error)
AssertionError: None != '114:23: Compiler crash in AnalyseExpressionsTransform'

Tests passed at https://travis-ci.org/cython/cython/builds/254755666?utm_source=github_status&utm_medium=notification

With the exception of python-3.7-dev and pypy tests, all tests are passing


kots CLI: kots install with --license-file hangs after "Creating base" with no feedback

 k kots install my-kots-app --license-file ~/Desktop/path/to/license.yaml

Output gets to here and then just hangs for minutes
Enter the namespace to deploy to: my-kots-app

  • Pulling upstream ✓
  • Creating base ✓

I'm guessing this is starting datastores, apis, etc but we lose all the regular kubectl kots install output.
Update after several minutes I get this:
  • Creating base ✓
  • Creating midstream ✓
  • Creating downstream "this-cluster" ✓
  • Deploying Admin Console
    • Creating namespace ✓
    • Waiting for datastore to be ready ✓
Enter a new password to be used for the Admin Console:

@dexhorthy currently in KOTS, when you pass a licensefile arg in the CLI, it does the render (pull, create base, etc) all in the CLI.  There's no missing output, but the actions that normally take place in kotsadm are relocated to take place in the cli output. This can be slow to render if there are many helm charts ,etc.  It's always going to be slower to render than the normal workflow which simply creates the admin console in the cluster.
I don't think what we are doing here is right, I'm describing how it works today after looking at the code.
We should explore if there's a way to pass the license file in and keep the workflow the same, but repurpose this CLI flag as an automation flag instead of a big-fork-in-execution flag

@marccampbell for very large apps, I'm wondering if we need to start thinking of a way to dedupe elements in the tar stream. For example, if my 20MB helm chart tar.gz is totally unchanged, maybe we can eliminate it from the tar stream somehow.
I think this is getting off topic, I can open a separate issue for that conversation.

I'm not sure if this is the same but I'm also running into issues with --license-file:
$ kubectl kots install cd4pe/unstable --license-file license.yaml
Enter the namespace to deploy to: cd4pe

  • Pulling upstream ✓
  • Creating base ✓
  • Creating midstream ✓
  • Creating downstream "this-cluster" ✓
  • Deploying Admin Console
    • Creating namespace ✓
    • Waiting for datastore to be ready ✓
Enter a new password to be used for the Admin Console: ••••••••••
  • Waiting for Admin Console to be ready ✓
Application name: kotsadm042477586
  • Uploading local application to Admin Console ✗
Error: failed to unmarshal response: invalid character '<' looking for beginning of value

The same seems to work fine if I omit --license-file and use the same file in the console workflow.

@MikaelSmith I think that might be a separate issue -- would you mind opening a second one.
Update for everyone else: the long hanging while creating the base is mostly, as noted, due to the very large app being used (lots of YAML).

Filed as #455.


Could you release new version?

Hello,
The current version was released 3 years ago. It is too old, Could you release new version? Thanks

@taodongl , we stop doing release at this point. You'd have to build from the master branch and be aware since last release there were major changes made, see: https://www.mojito.global//docs/guides/install-springboot2/


Intellisense appears after typing an open or close brace and autoselects "Action"

This causes subsequent return presses on the keyboard to insert the text "Action" instead of moving to a new line.

@agocke, are you still seeing this problem? I've been unable to reproduce it.

@DustinCampbell I think this was a bad interaction between extensions. I'll try and repro and re-open if I find anything.

thanks! No rush here. The idea that two extensions were interacting badly sounds like a good theory to me.


fix(test): I found that 2.30 failed with the latest Chrome (62), but …

…2.33 was successful

@ldimaggi fabric8/fabric8-ui:SNAPSHOT-PR-2304-1 is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-2304-fabric8-planner.badger.fabric8.io

@ldimaggi fabric8/fabric8-ui:SNAPSHOT-PR-2304-3 is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-2304-fabric8-planner.badger.fabric8.io


Podman binary not found results in a panic

Discussed in https://github.com/orgs/arcalot/discussions/1

Originally posted by lmilbaum March  3, 2023
I use MacOS box.
Created config.yaml file:
deployer:
  type: docker

Run the command:
./arcaflow -input input.yaml -config ./config.yaml
Output:
panic: podman binary not found in $PATH, please provide it in configuration

goroutine 1 [running]:
go.flow.arcalot.io/podmandeployer.podmanGetDefaultPath(...)
        /Users/lmilbaum/go/pkg/mod/go.flow.arcalot.io/podmandeployer@v0.2.0/schema.go:18
go.flow.arcalot.io/podmandeployer.init()
        /Users/lmilbaum/go/pkg/mod/go.flow.arcalot.io/podmandeployer@v0.2.0/schema.go:68 +0x3dcc
```</div>

Useful info:
https://github.com/arcalot/arcaflow-engine-deployer-podman/blob/main/factory.go#L30
It should also check its parameters.

I have opened a PR #8 to address this. I have some feedback to address but will continue to work through this.

PR #8 has been merged.


Feature/790/113 executor instrument

What this PR changes/adds

Added Executor instrumentation to the state machine loops, and a few other places.
Changed loop from an endless busy loop to a task that reenqueues itself

Why it does that
Running one executor task per loop execution allows metrics on loop execution time. In Prometheus:

Further notes
Renamed and moved NullExecutorInstrumentation class to make it more accessible to modules, and align it with the NullVaultExtension class.
Linked Issue(s)
Closes #113
Checklist

[x] added appropriate tests?
[x] performed checkstyle check locally?
[x] added/updated copyright headers?
[x] documented public classes/methods?
[x] added/updated relevant documentation?
[x] added relevant details to the changelog? (skip with label no-changelog)
[x] formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

Codecov Report

Merging #159 (658d871) into feature/790-executor-instrument (2ce5cb2) will decrease coverage by 0.03%.
The diff coverage is 66.00%.

:exclamation: Current head 658d871 differs from pull request most recent head bd7a799. Consider uploading reports for the commit bd7a799 to get more accurate results

@@                          Coverage Diff                          @@
##             feature/790-executor-instrument     #159      +/-   ##
=====================================================================
- Coverage                              60.07%   60.03%   -0.04%
  Complexity                              2261     2261
=====================================================================
  Files                                    607      607
  Lines                                  13071    13093      +22
  Branches                                 912      913       +1
=====================================================================
+ Hits                                    7853     7861       +8
- Misses                                  4792     4805      +13
- Partials                                 426      427       +1

Impacted Files
Coverage Δ

...dataspaceconnector/core/CoreServicesExtension.java
0.00% <0.00%> (ø)

...ceconnector/contract/ContractServiceExtension.java
0.00% <0.00%> (ø)

...connector/transfer/core/CoreTransferExtension.java
0.00% <0.00%> (ø)

...connector/dataplane/api/DataPlaneApiExtension.java
0.00% <0.00%> (ø)

...nector/spi/system/NullExecutorInstrumentation.java
0.00% <0.00%> (ø)

...iation/ProviderContractNegotiationManagerImpl.java
64.80% <60.00%> (-0.26%)
:arrow_down:

...sfer/core/transfer/TransferProcessManagerImpl.java
44.25% <60.00%> (+0.09%)
:arrow_up:

...iation/ConsumerContractNegotiationManagerImpl.java
61.19% <71.42%> (-0.03%)
:arrow_down:

...aceconnector/common/statemachine/StateMachine.java
85.18% <86.95%> (-2.82%)
:arrow_down:

.../api/transfer/DataPlanePublicApiRequestFilter.java
93.84% <100.00%> (ø)

... and 1 more

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 2ce5cb2...bd7a799. Read the comment docs.

Do we also want to add instrumentation for executor service in DPF extensions/data-plane/data-plane-spi/src/main/java/org/eclipse/dataspaceconnector/dataplane/spi/pipeline/ParallelSink.java ?


Obey vscode's "file.exclude" settings

If I've got vscode set to ignore *.pyc files, autofilename should not suggest .pyc files

OK!


Mock metadata aggregation server

Context

The specification for the new metadata aggregation server is captured in the following swagger document:
https://gist.github.com/KtorZ/4ee1bf8136c91f2d4c36ed850023cab6
Decision

In order to test the aggregation server, we'll need to setup a mock HTTP server that satisfies this specification.
Acceptance Criteria

Development

[ ] Create a simple servant application that "mocks" the swagger specification ==> #1614

QA

The mock server is property tested checking that:
a) It returns valid responses that satisfy the swagger schema mentioned above
b) Returns both positive and negative responses (404), but does it deterministically (same pool id, same response always) so that we can use it to test correct behavior.

see property here: https://github.com/input-output-hk/cardano-wallet/blob/master/lib/core/test/unit/Cardano/Pool/MetadataSpec.hs#L117-L137
The relevant bits of the schema were written directly using the Swagger DSL in Haskell:
https://github.com/input-output-hk/cardano-wallet/blob/master/lib/core/test/unit/Cardano/Pool/MetadataSpec.hs#L262-L290

LGTM.


Odd frame around active link in Firefox

Environment

Minimal Mistakes version: 4.16.3
Ruby gem or remote theme version: 2.4.0
Jekyll version: 3.8.5
Git repository URL: N/A
GitHub Pages hosted (if yes provide URL to site): no
Operating system: Gentoo Linux

Expected behavior

I'm seeing an odd behavior around links in Firefox 66.0.5 (Linux 64-bit version). I can't reproduce it with Chrome. Under certain circumstances, a thick frame is drawn around the last clicked on link or one being hovered on. It feels like a race condition of sorts.
While I noticed it with my own installation, it isn't my specific issue as I'm seeing the same even when browsing your https://mmistakes.github.io/minimal-mistakes/
Here's a screenshot:

Steps to reproduce the behavior

With my regular Firefox profile, it's enough if I click on a link ("Quick-Start Guide" in the above screenshot), wait for the new page to load, and then press the browser's back button. The link is displayed underlined, and when I move the mouse around, it turns into the frame visible in the above screenshot. Clicking on any inactive area of the page clears it up.
With a fresh Firefox profile, it does not happen that way. I found that I need to enable in "Preferences", under "Privacy & Security", "Content Blocking" -- switch from "Standard" to "Custom" and "Trackers" to "In all windows". Then it starts behaving as described above. Even without changing any preferences, I can reproduce this effect by hovering over a link, pressing the right mouse button to bring up the context menu, and moving the mouse away -- the frame shows up.
Other

This box is a :focus state. It is included for accessibility reasons to indicate what link (or button) you are currently focused on. It is useful for those users who tab through a page so they know what link they're currently on to interact with it.
If you remove that state it's impossible to tell. You can certainly remove it by customizing the CSS, but I wouldn't advise that if you care about making your site more accessible.


Fresh Docker-Compose Local Execution Fails

Tried to get Superset up and running on my local macOS machine with docker-compose based on the docs (https://superset.apache.org/installation.html#start-with-docker) and it fails to authenticate to the backend Postgres database and therefore won't start.
Expected results
I expect that when I run docker-compose up after a fresh pull of the repo, it would run and allow me to access SuperSet locally
Actual results
Fails with the following error:
docker-compose up
Starting incubator-superset_db_1    ... done
Starting incubator-superset_redis_1 ... done
Starting incubator-superset_superset-node_1   ... done
Starting incubator-superset_superset-init_1   ... done
Starting incubator-superset_superset_1        ... done
Starting incubator-superset_superset-worker_1 ... done
Attaching to incubator-superset_redis_1, incubator-superset_db_1, incubator-superset_superset-init_1, incubator-superset_superset-node_1, incubator-superset_superset_1, incubator-superset_superset-worker_1
db_1               |
db_1               | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1               |
redis_1            | 1:C 21 Dec 03:13:02.783 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1            |                 _._
redis_1            |            _.-``__ ''-._
redis_1            |       _.-``    `.  `_.  ''-._           Redis 3.2.12 (00000000/0) 64 bit
redis_1            |   .-`` .-```.  ```\/    _.,_ ''-._
redis_1            |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1            |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1            |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1            |   `-._    `-._  `-./  _.-'    _.-'
redis_1            |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1            |  |    `-._`-._        _.-'_.-'    |           http://redis.io
redis_1            |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1            |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1            |  |    `-._`-._        _.-'_.-'    |
redis_1            |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1            |       `-._    `-.__.-'    _.-'
redis_1            |           `-._        _.-'
redis_1            |               `-.__.-'
redis_1            |
redis_1            | 1:M 21 Dec 03:13:02.785 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1            | 1:M 21 Dec 03:13:02.785 # Server started, Redis version 3.2.12
redis_1            | 1:M 21 Dec 03:13:02.785 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1            | 1:M 21 Dec 03:13:02.785 * DB loaded from disk: 0.000 seconds
redis_1            | 1:M 21 Dec 03:13:02.785 * The server is now ready to accept connections on port 6379
db_1               | 2019-12-21 03:13:03.007 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
db_1               | 2019-12-21 03:13:03.007 UTC [1] LOG:  listening on IPv6 address "::", port 5432
superset-init_1    |
superset-init_1    | ######################################################################
superset-init_1    |
superset-init_1    |
superset-init_1    | Init Step 1/4 [Starting] -- Setting up admin user
superset-init_1    |
superset-init_1    |
superset-init_1    | ######################################################################
superset-init_1    |
db_1               | 2019-12-21 03:13:03.013 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1               | 2019-12-21 03:13:03.038 UTC [26] LOG:  database system was shut down at 2019-12-21 03:12:45 UTC
db_1               | 2019-12-21 03:13:03.055 UTC [1] LOG:  database system is ready to accept connections
superset_1         |  * Serving Flask app "superset.app:create_app()" (lazy loading)
superset_1         |  * Environment: development
superset_1         |  * Debug mode: on
superset_1         |  * Running on http://<IP_ADDRESS>:8088/ (Press CTRL+C to quit)
superset_1         |  * Restarting with stat
superset-worker_1  | INFO:root:logging was configured successfully
db_1               | 2019-12-21 03:13:07.524 UTC [33] FATAL:  password authentication failed for user "superset"
db_1               | 2019-12-21 03:13:07.524 UTC [33] DETAIL:  Role "superset" does not exist.
db_1               | 	Connection matched pg_hba.conf line 95: "host all all all md5"
superset-worker_1  | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL:  password authentication failed for user "superset"
superset-worker_1  |
superset-worker_1  | (Background on this error at: http://sqlalche.me/e/e3q8)
superset-worker_1  | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_1         | INFO:root:logging was configured successfully
db_1               | 2019-12-21 03:13:08.053 UTC [34] FATAL:  password authentication failed for user "superset"
db_1               | 2019-12-21 03:13:08.053 UTC [34] DETAIL:  Role "superset" does not exist.
db_1               | 	Connection matched pg_hba.conf line 95: "host all all all md5"
superset_1         | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL:  password authentication failed for user "superset"
superset_1         |
superset_1         | (Background on this error at: http://sqlalche.me/e/e3q8)
superset-init_1    | INFO:root:logging was configured successfully
db_1               | 2019-12-21 03:13:08.292 UTC [35] FATAL:  password authentication failed for user "superset"
db_1               | 2019-12-21 03:13:08.292 UTC [35] DETAIL:  Role "superset" does not exist.
db_1               | 	Connection matched pg_hba.conf line 95: "host all all all md5"
superset-init_1    | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL:  password authentication failed for user "superset"
superset-init_1    |
superset-init_1    | (Background on this error at: http://sqlalche.me/e/e3q8)
superset-init_1    | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_1         |  * Debugger is active!
superset_1         |  * Debugger PIN: 215-042-490
incubator-superset_superset-init_1 exited with code 1
superset_1         | INFO:root:logging was configured successfully
db_1               | 2019-12-21 03:13:10.122 UTC [36] FATAL:  password authentication failed for user "superset"
db_1               | 2019-12-21 03:13:10.122 UTC [36] DETAIL:  Role "superset" does not exist.
db_1               | 	Connection matched pg_hba.conf line 95: "host all all all md5"
superset_1         | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL:  password authentication failed for user "superset"
superset_1         |
superset_1         | (Background on this error at: http://sqlalche.me/e/e3q8)
Killing incubator-superset_superset-node_1    ... done
Killing incubator-superset_superset-worker_1  ... done
Killing incubator-superset_superset_1         ... done
Killing incubator-superset_db_1               ... done
Killing incubator-superset_redis_1            ... done

Screenshots
N/A
How to reproduce the bug
git clone https://github.com/apache/incubator-superset/
cd incubator-superset
docker-compose up
Environment
(please complete the following information):

superset version: Unknown, running in docker. Git commit is commit 36c6f4ca3adfb237e1a4931563b782a4d7e7932a
python version: Docker Compose
node.js version: Docker Compose
npm version: Docker Compose

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[x ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x ] I have reproduced the issue with at least the latest released version of superset.
[ x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
N/A

+1 same issue here

I have found a temporary workaround:
Modify docker/.env, change:
# database engine specific environment variables
# change the below if you prefers another database engine
DATABASE_PORT=5432
DATABASE_DIALECT=postgresql
POSTGRES_DB=${DATABASE_DB}
POSTGRES_USER=${DATABASE_USER}
POSTGRES_PASSWORD=${DATABASE_PASSWORD}

to
# database engine specific environment variables
# change the below if you prefers another database engine
DATABASE_PORT=5432
DATABASE_DIALECT=postgresql
POSTGRES_DB=superset
POSTGRES_USER=superset
POSTGRES_PASSWORD=superset

Looks like the variables do not properly work in this situation. Beware: You also have to manually delete the db_home docker volume for the changes to have any effect.

Thank you for reporting. I can replicate the issue. Created a temporary fix, tried to retain the variable indirection but it does not seem possible.

I do not think this is an issue. If you use docker-compose.yml file, you should at least look into what you are using in there, what are the parameters expected.

Fixed with #8882


fix crash with mobkit.make_sound in 5.3-dev

MT 5.3 checks types of values in SimpleSoundSpec tables in minetest.sound_play. This breaks mobkit's feature of passing ranges in sound definitions in mobkit.make_sound, resulting in a crash with a message like this:
AsyncErr: ServerThread::run Lua: Invalid field "gain" (expected number got table).
To recreate this crash, install Markov Macaws on MT 5.3 dev-cb9a44e (a slightly older build like sfan5's most recent one might also work) and the current mobkit master. Then spawn a parrot using /spawnentity markov_macaws:macaw. Then wait a little for the parrot to try to make a sound.
This PR fixes this issue by always passing a string as SimpleSoundSpec and leaving the other stuff to the sound parameter table.

Seems to be working with stable versions. Thanks.


neschan.cpp Adding inline to make_argb

With the inline tag, instead of calling a function (which is a bit slower), the compiler will simply copy the code of the function to gain more speed.

@SimonNitzsche Thanks for contributing! Hopefully compiler can make the right choice to inline it but adding the hint is more clear. Thanks!


Networking string size error

I just draw a general curve of not much length, I got this error -
[2020:12:02 10:56:28][NETWORKING][ERROR]java.io.UTFDataFormatException: encoded string too long: 940897 bytes
@sravand123

@sravand123 please open PR


Reducing webpack file (index.js) size for loading

I wanted reduce webpack file size using code splitting, now my webpack file (index.js) size is around 5 MB.
As i tried using lazy loading , code splitting but still my file size is same.

Can you please clarify the issue..
thanks
Tony

When we build webpack , the file (index.js) size is around 5 MB because i am loading every module in the initial page load. So i wanted to reduce this 5 MB to around 1 MB.

@poojaparasharam could you please clarify what steps have been taken to introduce code splitting?
@tony-shannon 5 Mb is the size of the build that has been already reduced (initially it was around 9 Mb) and we did not do code splitting within the Angular version. We have code splitting in the React version though.

Sorry for late reply.
In webpack entry point, index and vendor JS files are used for code splitting. index.js file is loading all  components and vendor.js is loading third party packages(angular packages). when i build application, index file size is 4.8 MB ,and vendor file size 638 KB.
Now my requirement is to reduce index file size,because it's taking time to load application initially.
And one more help is needed, when i initially load application i want to load only patients list component , and if require or if we click on any patient then only load all modules component(vitals component, compliant component , etc),how can i achieve this in angularJS.
Please do needful help. Thank you.

@poojaparasharam Do you have any ideas as to how to make any of these improvements yourself?
This is an open source project... so its about give as well as take  :o)


Added .newWindow to open new window however keeping .blank as well

I keeped the .blank for as you said it a prior art for html to use blank and it might break some code. I do feel that it would be useful as I did not realise and took me awhile to find this, and other web site builder seam to use open in new window for their links

Thank you!


Some hyperlinks of the documentation are broken

In https://hbrouwer.github.io/dfs-tools/dfs_sentences.html:

(e.g., using dfs_localist_word_vectors/2)

And

See also

dfs_maps_sentence_onto_semantics/4

Thanks Martin, fixed these and a couple of other broken cross-references.


nginx + modsec not starting with base_rules

modsecurity.conf :
include owasp-modsecurity-crs-master/base_rules/*.conf;
include owasp-modsecurity-crs-master/modsecurity_crs_10_setup.conf;
    location / {
            ModSecurityEnabled on;
            ModSecurityConfig /opt/nginx/conf/modsecurity.conf;
            proxy_pass http://localhost:8080;
            proxy_read_timeout 180s;
            }

/opt/nginx/sbin/nginx -V
nginx version: nginx/1.7.9
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
configure arguments: --add-module=../ModSecurity/nginx/modsecurity --prefix=/opt/nginx
Starting nginx: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /opt/nginx/conf/owasp-modsecurity-crs-master/base_rules/modsecurity_crs_21_protocol_anomalies.conf:109

First you should likely include setup.conf before the rules. Also try downloading the latest rules from git. See if this helps.

! changed the ordering of the ordering of the includes in modsecurity.conf :
include owasp-modsecurity-crs-master/modsecurity_crs_10_setup.conf;
include owasp-modsecurity-crs-master/base_rules/*.conf;
and downloaded the latest rules from:
https://github.com/SpiderLabs/owasp-modsecurity-crs/archive/master.zip
but I am still getting:
/sbin/service nginx start
Starting nginx: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /opt/nginx/conf/owasp-modsecurity-crs-master/modsecurity_crs_10_setup.conf:436
[FAILED]
thanks for your help.

Hi @anners did you managed to get it working?

No, I didn't get it working. I am using Apache instead of nginx.
On Mon, May 4, 2015 at 11:16 AM, Felipe Zimmerle<EMAIL_ADDRESS>wrote:

Hi @anners https://github.com/anners did you managed to get it working?
—
Reply to this email directly or view it on GitHub
https://github.com/SpiderLabs/ModSecurity/issues/862#issuecomment-98802513
.

FYR.
# nginx conf
server {
    ModSecurityEnabled on;
    ModSecurityConfig /etc/nginx/modsec_includes.conf;
}

# /etc/nginx/modsec_includes.conf
include /etc/nginx/owasp-modsecurity-crs/modsecurity.conf
include /etc/nginx/owasp-modsecurity-crs/crs-setup.conf
include /etc/nginx/owasp-modsecurity-crs/rules/*.conf

you should NOT include the configuration of modsecurity in nginx.

Related to this issue.. I've built nginx v1.15 with Libmodsecurity v3.0 and Modsecurity-nginx connector. When I include the OWASP CRS config files, I get the error below. I've tried changing the order of imports, nothing changes.
How I include the owasp crs:
http {
include       mime.types;
include       /usr/local/nginx/conf/owasp-modsecurity-crs/crs-setup.conf;
include       /usr/local/nginx/conf/owasp-modsecurity-crs/rules/*.conf;
Error:
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /usr/local/nginx/conf/owasp-modsecurity-crs/crs-setup.conf:5


UI feature: badge with link

Codecov Report

Merging #459 (213a3ef) into master (04b8701) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #459   +/-   ##
=========================================
  Coverage     91.96%   91.97%
  Complexity      256      256
=========================================
  Files            40       40
  Lines           809      810    +1
=========================================
+ Hits            744      745    +1
  Misses           65       65

Impacted Files
Coverage Δ
Complexity Δ

src/Service/SnippetGenerator.php
100.00% <100.00%> (ø)
11.00 <0.00> (ø)

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 04b8701...213a3ef. Read the comment docs.


Improve performance

By not using replace we could improve performance to somewhere around 25µs.  Currently the parse performance is around 140µs:
use std::time::{Instant};
use edn_rs;
use std::str::FromStr;

fn main() {
    let edn = edn_str();

    let start = Instant::now();
    let value = edn_rs::Edn::from_str(&edn);
    let duration = start.elapsed();

    if value.is_ok() {
        println!("Time elapsed in edn_rs::from_str is: {:?}", duration);

        let start_nav = Instant::now();
        let role = value.unwrap()[":associates"][0][":role"].clone();
        let duration_nav = start_nav.elapsed();

        println!("Time elapsed to navigate to role_0 \"{}\": {:?}", role, duration_nav);
    } else {
        println!("Parse failed. Duration {:?}", duration);
    }
}

fn edn_str() -> String {
    "{
        :type :human
        :first-name \"bench\"
        :last-name \"mark\"
        :age 13
        :version 0.13
        :associates [
            {
                :name :julia
                :role :adm
            }
            {
                :name :otavio
                :role :contributor
            }
            {
                :name :juxt
                :role :great-ideas
            }
        ]
    }".to_string()
}

@otaviopace

I will probably use parser combinators https://github.com/Geal/nom

Considering bench tool Criterion we got:
Benchmarking parse: Collecting 100 samples in estimated 5.1256 s (172k iteration                                                                                parse                   time:   [29.361 us 29.447 us 29.541 us]
Found 7 outliers among 100 measurements (7.00%)
  2 (2.00%) low mild
  5 (5.00%) high severe

which can be improved to 5~7us

Current benchmark is around 13us:
https://github.com/naomijub/edn-rs/pull/40