pythonPackages.twisted: 20.3.0 -> 21.7.0

Motivation for this change

Bring over a year of Twisted improvements into Nixpkgs
Provide better type hints for Twisted APIs
Provide minimum version required to run latest development version of GridSync (not in nixpkgs yet)

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[X] Fits CONTRIBUTING.md.

This breaks thrift because it tries to build its own python 2.7 version of twisted, and:
builder for '/nix/store/a2knnv0ma7nj5sairyn3y5n32apyinlk-python2.7-Twisted-21.7.0.drv' failed with exit code 1; last 10 log lines:
  configuring
  no configure script, doing nothing
  building
  Executing setuptoolsBuildPhase
  Traceback (most recent call last):
    File "nix_run_setup", line 8, in <module>
      exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
    File "setup.py", line 10, in <module>
      import pathlib
  ImportError: No module named pathlib

Seems 20.3.0 was the last 2.7-supporting release.

Also breaks python3Packages.txtorcon

python3Packages.klein was already broken but now the tests fail earlier with:
builder for '/nix/store/kh4q0m6gwq0p0bvb3wmrn4hn6v5gds92-python3.9-klein-17.10.0.drv' failed with exit code 1; last 10 log lines:
      raise excValue.with_traceback(excTraceback)
    File "/nix/store/ivyddgcrkm01y46s9wg1mrhgmshb87hv-python3.9-klein-17.10.0/lib/python3.9/site-packages/klein/test/test_resource.py", line 13, in <module>
      from twisted.python.compat import _PY3, unicode
  builtins.ImportError: cannot import name '_PY3' from 'twisted.python.compat' (unknown location)

  klein.test.test_resource
  -------------------------------------------------------------------------------
  Ran 27 tests in 0.044s

  FAILED (errors=2, successes=25)

Also breaks python3Packages.txtorcon, tests failing with e.g.:
>           result.addSkip(self, skipReason)
E           TypeError: Skipped expected string as 'msg' parameter, got 'bool' instead.
E           Perhaps you meant to use a mark?

/nix/store/73djff0qryqiv6djqysjwylkqwlvmsp3-python3.9-Twisted-21.7.0/lib/python3.9/site-packages/twisted/trial/_synctest.py:1024: TypeError

Upstream is working on a fix for this - https://github.com/meejah/txtorcon/pull/351
But also they told me that txtorcon test suite is not typically run with pytest but with trial.
So is the right thing to do to wait for a txtorcon fix to be released, then upgrade txtorcon, then upgrade twisted?

This breaks thrift because that tries to build its own python 2.7 version of twisted, and:
builder for '/nix/store/a2knnv0ma7nj5sairyn3y5n32apyinlk-python2.7-Twisted-21.7.0.drv' failed with exit code 1; last 10 log lines:
  configuring
  no configure script, doing nothing
  building
  Executing setuptoolsBuildPhase
  Traceback (most recent call last):
    File "nix_run_setup", line 8, in <module>
      exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
    File "setup.py", line 10, in <module>
      import pathlib
  ImportError: No module named pathlib

Seems 20.3.0 was the last 2.7-supporting release.

What is generally done about this in nixpkgs?  Is there a way to diverge the version in python2Packages vs python3Packages?

python3Packages.klein was already broken but now the tests fail earlier with:
builder for '/nix/store/kh4q0m6gwq0p0bvb3wmrn4hn6v5gds92-python3.9-klein-17.10.0.drv' failed with exit code 1; last 10 log lines:
      raise excValue.with_traceback(excTraceback)
    File "/nix/store/ivyddgcrkm01y46s9wg1mrhgmshb87hv-python3.9-klein-17.10.0/lib/python3.9/site-packages/klein/test/test_resource.py", line 13, in <module>
      from twisted.python.compat import _PY3, unicode
  builtins.ImportError: cannot import name '_PY3' from 'twisted.python.compat' (unknown location)

  klein.test.test_resource
  -------------------------------------------------------------------------------
  Ran 27 tests in 0.044s

  FAILED (errors=2, successes=25)

Okay.  I have a branch that upgrades klein, too, to deal with this.  It needs https://github.com/NixOS/nixpkgs/pull/132944 first though.

This breaks thrift because that tries to build its own python 2.7 version of twisted, and:

How has an internet-facing apache project not migrated off of python2 after 18months of it being EoL?

What is generally done about this in nixpkgs? Is there a way to diverge the version in python2Packages vs python3Packages?

python2.7 is EOL. If it isn't used by nixops then we can safely disable it for older versions.

Upstream is working on a fix for this - meejah/txtorcon#351
But also they told me that txtorcon test suite is not typically run with pytest but with trial.

So is the right thing to do to wait for a txtorcon fix to be released, then upgrade txtorcon, then upgrade twisted?
Or just mark it broken for now or pull in the patch. Python packages is so big we can't wait for everything and Twisted seems to be more important.

txtorcon has reverse dependencies, such as magic-wormhole which seems to get quite a lot of use.
An alternative is to apply https://github.com/meejah/txtorcon/pull/351 (that would be https://github.com/meejah/txtorcon/commit/94ca067373e10bd1af3a27b9f4a5cf0dc958d803) to txtorcon until they come up with a release. Note how that looks like a big patch until you notice most of it is stuff to do with their own CI and we could probably use fetchpatch to filter it down to just the test/test_util.py and txtorcon/torinfo.py changes.

But also they told me that txtorcon test suite is not typically run with pytest but with trial.

Then let's migrate that to trial.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 132900 run on x86_64-linux 1

9 packages marked as broken and skipped:

pypi2nix
python38Packages.optuna
python38Packages.pymatgen-lammps
python38Packages.skein
python39Packages.optuna
python39Packages.pymatgen-lammps
python39Packages.skein
thrift-0_10
tribler

51 packages failed to build and already failed to build on hydra master:

apache-airflow: log was empty
aws-sam-cli: log was empty
cq-editor: log was empty
home-assistant: log was empty
python38Packages.apache-airflow: log was empty
python38Packages.asdf: log was empty
python38Packages.carbon: log was empty
python38Packages.graphite-web: log was empty
python38Packages.ipydatawidgets: log was empty
python38Packages.jupyterlab: log was empty
python38Packages.jupyterlab-git: log was empty
python38Packages.jupyterlab_server: log was empty
python38Packages.jupytext: log was empty
python38Packages.klein: log was empty
python38Packages.nbdime: log was empty
python38Packages.openapi-core: log was empty
python38Packages.pathy: log was empty
python38Packages.robotframework-selenium2library: log was empty
python38Packages.robotframework-seleniumlibrary: log was empty
python38Packages.robotframework-tools: log was empty
python38Packages.spacy: log was empty
python38Packages.spacy-transformers: log was empty
python38Packages.sunpy: log was empty
python38Packages.textacy: log was empty
python38Packages.tokenizers: log was empty
python38Packages.transformers: log was empty
python39Packages.apache-airflow: log was empty
python39Packages.asdf: log was empty
python39Packages.carbon: log was empty
python39Packages.google-cloud-bigquery: log was empty
python39Packages.graphite-web: log was empty
python39Packages.ipydatawidgets: log was empty
python39Packages.jupyterlab: log was empty
python39Packages.jupyterlab-git: log was empty
python39Packages.jupyterlab_server: log was empty
python39Packages.jupytext: log was empty
python39Packages.klein: log was empty
python39Packages.nbdime: log was empty
python39Packages.openapi-core: log was empty
python39Packages.pathy: log was empty
python39Packages.robotframework-selenium2library: log was empty
python39Packages.robotframework-seleniumlibrary: log was empty
python39Packages.robotframework-tools: log was empty
python39Packages.spacy: log was empty
python39Packages.spacy-transformers: log was empty
python39Packages.sunpy: log was empty
python39Packages.textacy: log was empty
python39Packages.tokenizers: log was empty
python39Packages.transformers: log was empty
theharvester: log was empty
tts: log was empty

31 packages failed to build and are new build failures:

arrow-cpp: log was empty
deluge-1_x: log was empty
gnome-keysign: log was empty
magic-wormhole: log was empty
(python39Packages.magic-wormhole): log was empty
python38Packages.catboost: log was empty
python38Packages.datasets: log was empty
python38Packages.google-cloud-bigquery: log was empty
python38Packages.intake: log was empty
python38Packages.magic-wormhole: log was empty
python38Packages.pyarrow: log was empty
python38Packages.qiskit: log was empty
python38Packages.qiskit-aqua: log was empty
python38Packages.snowflake-connector-python: log was empty
python38Packages.snowflake-sqlalchemy: log was empty
python38Packages.txtorcon: log was empty
python39Packages.batchspawner: log was empty
python39Packages.datasets: log was empty
python39Packages.dockerspawner: log was empty
python39Packages.intake: log was empty
python39Packages.jupyterhub: log was empty
python39Packages.jupyterhub-ldapauthenticator: log was empty
python39Packages.jupyterhub-systemdspawner: log was empty
python39Packages.jupyterhub-tmpauthenticator: log was empty
python39Packages.oauthenticator: log was empty
python39Packages.pyarrow: log was empty
python39Packages.snowflake-connector-python: log was empty
python39Packages.snowflake-sqlalchemy: log was empty
python39Packages.txtorcon: log was empty
tahoe-lafs: log was empty
thrift: log was empty

375 packages built:

alot (python39Packages.alot)
anki
ankisyncd
ansible (ansible_2_11 ,python39Packages.ansible-core)
ansible-lint (python39Packages.ansible-lint)
ansible_2_10 (python39Packages.ansible-base)
apio
arion
awscli2
blocksat-cli (python39Packages.blocksat-cli)
borgmatic
buildbot (python39Packages.buildbot)
buildbot-full (python39Packages.buildbot-full)
buildbot-ui (python39Packages.buildbot-ui)
buildbot-worker (python39Packages.buildbot-worker)
bump2version
check-esxi-hardware
cloud-custodian
cloud-init
cyclonedx-python
deeptools
deluge (deluge-2_x)
docker-compose
dt-schema
expliot
flexget
giara
gns3-gui
gns3-server
grab-site
haskellPackages.nvfetcher
hydrus
ihaskell
inkcut
inkscape-extensions.inkcut
jupyter
matrix-commander
matrix-synapse
matrix-synapse-plugins.matrix-synapse-ldap3
matrix-synapse-plugins.matrix-synapse-mjolnir-antispam
matrix-synapse-plugins.matrix-synapse-pam
matrix-synapse-plugins.matrix-synapse-shared-secret-auth
mirage-im
mnemosyne
nbstripout
nvchecker (python39Packages.nvchecker)
nvfetcher
opsdroid
pantalaimon
powerdns-admin
privacyidea
python38Packages.APScheduler
python38Packages.Nikola
python38Packages.Pweave
python38Packages.alot
python38Packages.altair
python38Packages.ansible-base
python38Packages.ansible-core
python38Packages.ansible-kernel
python38Packages.ansible-lint
python38Packages.apispec
python38Packages.autobahn
python38Packages.aws-sam-translator
python38Packages.batchspawner
python38Packages.blocksat-cli
python38Packages.bravado-core
python38Packages.buildbot
python38Packages.buildbot-full
python38Packages.buildbot-ui
python38Packages.buildbot-worker
python38Packages.cassandra-driver
python38Packages.castepxbin
python38Packages.celery
python38Packages.cfn-lint
python38Packages.channels
python38Packages.channels-redis
python38Packages.chart-studio
python38Packages.connexion
python38Packages.cufflinks
python38Packages.cve-bin-tool
python38Packages.daphne
python38Packages.dash
python38Packages.datashader
python38Packages.django-raster
python38Packages.django-simple-captcha
python38Packages.djmail
python38Packages.dockerspawner
python38Packages.flask-appbuilder
python38Packages.flask-restplus
python38Packages.flask-restx
python38Packages.flower
python38Packages.foolscap
python38Packages.gensim
python38Packages.geoip2
python38Packages.graphite_api
python38Packages.holoviews
python38Packages.hvplot
python38Packages.influxgraph
python38Packages.ipympl
python38Packages.ipyvue
python38Packages.ipyvuetify
python38Packages.ipywidgets
python38Packages.jsonmerge
python38Packages.jsonschema
python38Packages.jupyter
python38Packages.jupyter-sphinx
python38Packages.jupyter-telemetry
python38Packages.jupyter_server
python38Packages.jupyterhub
python38Packages.jupyterhub-ldapauthenticator
python38Packages.jupyterhub-systemdspawner
python38Packages.jupyterhub-tmpauthenticator
python38Packages.jupyterlab_launcher
python38Packages.kmapper
python38Packages.labgrid
python38Packages.ldaptor
python38Packages.lightparam
python38Packages.livelossplot
python38Packages.magic-wormhole-mailbox-server
python38Packages.magic-wormhole-transit-relay
python38Packages.matrix-nio
python38Packages.mocket
python38Packages.modeled
python38Packages.moretools
python38Packages.moto
python38Packages.nbclassic
python38Packages.nbclient
python38Packages.nbconflux
python38Packages.nbconvert
python38Packages.nbformat
python38Packages.nbmerge
python38Packages.nbsmoke
python38Packages.nbsphinx
python38Packages.nbval
python38Packages.nix-kernel
python38Packages.notebook
python38Packages.notedown
python38Packages.nvchecker
python38Packages.oauthenticator
python38Packages.onnx
python38Packages.openapi-schema-validator
python38Packages.openapi-spec-validator
python38Packages.openerz-api
python38Packages.papermill
python38Packages.phik
python38Packages.pika
python38Packages.pika-pool
python38Packages.plotly
python38Packages.pook
python38Packages.prance
python38Packages.praw
python38Packages.prawcore
python38Packages.pyee
python38Packages.pykwalify
python38Packages.pymatgen
python38Packages.pymodbus
python38Packages.pyppeteer
python38Packages.python-telegram-bot
python38Packages.pyutil
python38Packages.pywbem
python38Packages.qiskit-aer
python38Packages.qiskit-ibmq-provider
python38Packages.qiskit-ignis
python38Packages.qiskit-terra
python38Packages.qreactor
python38Packages.rachiopy
python38Packages.robomachine
python38Packages.robotframework
python38Packages.robotframework-databaselibrary
python38Packages.robotframework-requests
python38Packages.robotframework-sshlibrary
python38Packages.robotstatuschecker
python38Packages.robotsuite
python38Packages.scikit-tda
python38Packages.scrapy
python38Packages.scrapy-deltafetch
python38Packages.scrapy-fake-useragent
python38Packages.scrapy-splash
python38Packages.setuptoolsTrial
python38Packages.smart-open
python38Packages.sopel
python38Packages.sphinxcontrib-openapi
python38Packages.spyder
python38Packages.structlog
python38Packages.stytra
python38Packages.sumo
python38Packages.swagger-spec-validator
python38Packages.synergy
python38Packages.tensorboardx
python38Packages.testfixtures
python38Packages.towncrier
python38Packages.treq
python38Packages.ttp
python38Packages.twisted
python38Packages.txaio
python38Packages.txamqp
python38Packages.txdbus
python38Packages.txgithub
python38Packages.txredisapi
python38Packages.txrequests
python38Packages.vega
python38Packages.vncdo
python38Packages.warlock
python38Packages.webthing
python38Packages.west
python38Packages.widgetsnbextension
python38Packages.zetup
python38Packages.zfec
python38Packages.zigpy-znp
python39Packages.APScheduler
python39Packages.Nikola
python39Packages.Pweave
python39Packages.altair
python39Packages.ansible-kernel
python39Packages.apispec
python39Packages.autobahn
python39Packages.aws-sam-translator
python39Packages.bravado-core
python39Packages.cassandra-driver
python39Packages.castepxbin
python39Packages.catboost
python39Packages.celery
python39Packages.cfn-lint
python39Packages.channels
python39Packages.channels-redis
python39Packages.chart-studio
python39Packages.connexion
python39Packages.cufflinks
python39Packages.cve-bin-tool
python39Packages.daphne
python39Packages.dash
python39Packages.datashader
python39Packages.django-raster
python39Packages.django-simple-captcha
python39Packages.djmail
python39Packages.flask-appbuilder
python39Packages.flask-restplus
python39Packages.flask-restx
python39Packages.flower
python39Packages.foolscap
python39Packages.gensim
python39Packages.geoip2
python39Packages.graphite_api
python39Packages.holoviews
python39Packages.hvplot
python39Packages.influxgraph
python39Packages.ipympl
python39Packages.ipyvue
python39Packages.ipyvuetify
python39Packages.ipywidgets
python39Packages.jsonmerge
python39Packages.jsonschema
python39Packages.jupyter
python39Packages.jupyter-sphinx
python39Packages.jupyter-telemetry
python39Packages.jupyter_server
python39Packages.jupyterlab_launcher
python39Packages.kmapper
python39Packages.labgrid
python39Packages.ldaptor
python39Packages.lightparam
python39Packages.livelossplot
python39Packages.magic-wormhole-mailbox-server
python39Packages.magic-wormhole-transit-relay
python39Packages.matrix-nio
python39Packages.mocket
python39Packages.modeled
python39Packages.moretools
python39Packages.moto
python39Packages.nbclassic
python39Packages.nbclient
python39Packages.nbconflux
python39Packages.nbconvert
python39Packages.nbformat
python39Packages.nbmerge
python39Packages.nbsmoke
python39Packages.nbsphinx
python39Packages.nbval
python39Packages.nix-kernel
python39Packages.notebook
python39Packages.notedown
python39Packages.onnx
python39Packages.openapi-schema-validator
python39Packages.openapi-spec-validator
python39Packages.openerz-api
python39Packages.papermill
python39Packages.phik
python39Packages.pika
python39Packages.pika-pool
python39Packages.plotly
python39Packages.pook
python39Packages.prance
python39Packages.praw
python39Packages.prawcore
python39Packages.pyee
python39Packages.pykwalify
python39Packages.pymatgen
python39Packages.pymodbus
python39Packages.pyppeteer
python39Packages.python-telegram-bot
python39Packages.pyutil
python39Packages.pywbem
python39Packages.qiskit
python39Packages.qiskit-aer
python39Packages.qiskit-aqua
python39Packages.qiskit-ibmq-provider
python39Packages.qiskit-ignis
python39Packages.qiskit-terra
python39Packages.qreactor
python39Packages.rachiopy
python39Packages.robomachine
python39Packages.robotframework
python39Packages.robotframework-databaselibrary
python39Packages.robotframework-requests
python39Packages.robotframework-sshlibrary
python39Packages.robotstatuschecker
python39Packages.robotsuite
python39Packages.scikit-tda
python39Packages.scrapy
python39Packages.scrapy-deltafetch
python39Packages.scrapy-fake-useragent
python39Packages.scrapy-splash
python39Packages.setuptoolsTrial
python39Packages.smart-open
python39Packages.sopel
python39Packages.sphinxcontrib-openapi
python39Packages.structlog
python39Packages.stytra
python39Packages.sumo
python39Packages.swagger-spec-validator
python39Packages.synergy
python39Packages.tensorboardx
python39Packages.testfixtures
python39Packages.towncrier
python39Packages.treq
ttp (python39Packages.ttp)
python39Packages.twisted
python39Packages.txaio
python39Packages.txamqp
python39Packages.txdbus
python39Packages.txgithub
python39Packages.txredisapi
python39Packages.txrequests
python39Packages.vega
vncdo (python39Packages.vncdo)
python39Packages.warlock
python39Packages.webthing
python39Packages.west
python39Packages.widgetsnbextension
python39Packages.zetup
python39Packages.zfec
python39Packages.zigpy-znp
qmk
rmview
sage
sageWithDoc
snakemake
sourcehut.buildsrht
sourcehut.coresrht
sourcehut.dispatchsrht
sourcehut.gitsrht
sourcehut.hgsrht
sourcehut.hubsrht
sourcehut.listssrht
sourcehut.mansrht
sourcehut.metasrht
sourcehut.pastesrht
sourcehut.todosrht
streamlit
syncplay
tinyprog
urlwatch
vorta
weechatScripts.weechat-matrix
whipper

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 132900 run on x86_64-linux 1

17 packages marked as broken and skipped:

pypi2nix
python38Packages.optuna
python38Packages.pathy
python38Packages.pymatgen-lammps
python38Packages.skein
python38Packages.spacy
python38Packages.spacy-transformers
python38Packages.textacy
python39Packages.optuna
python39Packages.pathy
python39Packages.pymatgen-lammps
python39Packages.skein
python39Packages.spacy
python39Packages.spacy-transformers
python39Packages.textacy
thrift-0_10
tribler

27 packages failed to build and already failed to build on hydra master:

apache-airflow: log was empty
cq-editor: log was empty
paperless-ng: log was empty
python38Packages.apache-airflow: log was empty
python38Packages.carbon: log was empty
python38Packages.datashader: log was empty
python38Packages.graphite-web: log was empty
python38Packages.ipydatawidgets: log was empty
python38Packages.jupyterlab-git: log was empty
python38Packages.nbdime: log was empty
python38Packages.robotframework-selenium2library: log was empty
python38Packages.robotframework-seleniumlibrary: log was empty
python38Packages.robotframework-tools: log was empty
python38Packages.tokenizers: log was empty
python38Packages.transformers: log was empty
python39Packages.apache-airflow: log was empty
python39Packages.carbon: log was empty
python39Packages.graphite-web: log was empty
python39Packages.ipydatawidgets: log was empty
python39Packages.jupyterlab-git: log was empty
python39Packages.nbdime: log was empty
python39Packages.robotframework-selenium2library: log was empty
python39Packages.robotframework-seleniumlibrary: log was empty
python39Packages.robotframework-tools: log was empty
python39Packages.tokenizers: log was empty
python39Packages.transformers: log was empty
theharvester: log was empty

423 packages built:

alot (python39Packages.alot)
anki
ankisyncd
ansible (ansible_2_11 ,python39Packages.ansible-core)
ansible-lint (python39Packages.ansible-lint)
ansible_2_10 (python39Packages.ansible-base)
apio
arion
arrow-cpp
aws-sam-cli
awscli2
blocksat-cli (python39Packages.blocksat-cli)
borgmatic
buildbot (python39Packages.buildbot)
buildbot-full (python39Packages.buildbot-full)
buildbot-ui (python39Packages.buildbot-ui)
buildbot-worker (python39Packages.buildbot-worker)
bump2version
check-esxi-hardware
cloud-custodian
cloud-init
cyclonedx-python
deeptools
deluge (deluge-2_x)
docker-compose
dt-schema
expliot
flexget
giara
gnome-keysign
gns3-gui
gns3-server
grab-site
haskellPackages.nvfetcher
home-assistant
hydrus
ihaskell
inkcut
inkscape-extensions.inkcut
jupyter
magic-wormhole (python39Packages.magic-wormhole)
matrix-commander
matrix-synapse
matrix-synapse-plugins.matrix-synapse-ldap3
matrix-synapse-plugins.matrix-synapse-mjolnir-antispam
matrix-synapse-plugins.matrix-synapse-pam
matrix-synapse-plugins.matrix-synapse-shared-secret-auth
mirage-im
mnemosyne
nbstripout
nvchecker (python39Packages.nvchecker)
nvfetcher
opsdroid
pantalaimon
powerdns-admin
privacyidea
python38Packages.APScheduler
python38Packages.Nikola
python38Packages.Pweave
python38Packages.alot
python38Packages.altair
python38Packages.ansible-base
python38Packages.ansible-core
python38Packages.ansible-kernel
python38Packages.ansible-lint
python38Packages.apispec
python38Packages.asdf
python38Packages.autobahn
python38Packages.aws-sam-translator
python38Packages.batchspawner
python38Packages.blocksat-cli
python38Packages.bravado-core
python38Packages.buildbot
python38Packages.buildbot-full
python38Packages.buildbot-ui
python38Packages.buildbot-worker
python38Packages.cassandra-driver
python38Packages.castepxbin
python38Packages.catboost
python38Packages.celery
python38Packages.cfn-lint
python38Packages.channels
python38Packages.channels-redis
python38Packages.chart-studio
python38Packages.connexion
python38Packages.cufflinks
python38Packages.cve-bin-tool
python38Packages.daphne
python38Packages.dash
python38Packages.datasets
python38Packages.django-raster
python38Packages.django-simple-captcha
python38Packages.djmail
python38Packages.dockerspawner
python38Packages.flask-appbuilder
python38Packages.flask-restplus
python38Packages.flask-restx
python38Packages.flower
python38Packages.foolscap
python38Packages.gensim
python38Packages.geoip2
python38Packages.google-cloud-bigquery
python38Packages.graphite_api
python38Packages.holoviews
python38Packages.hvplot
python38Packages.influxgraph
python38Packages.intake
python38Packages.ipympl
python38Packages.ipyvue
python38Packages.ipyvuetify
python38Packages.ipywidgets
python38Packages.jsonmerge
python38Packages.jsonschema
python38Packages.jupyter
python38Packages.jupyter-sphinx
python38Packages.jupyter-telemetry
python38Packages.jupyter_server
python38Packages.jupyterhub
python38Packages.jupyterhub-ldapauthenticator
python38Packages.jupyterhub-systemdspawner
python38Packages.jupyterhub-tmpauthenticator
python38Packages.jupyterlab
python38Packages.jupyterlab_launcher
python38Packages.jupyterlab_server
python38Packages.jupytext
python38Packages.klein
python38Packages.kmapper
python38Packages.labgrid
python38Packages.ldaptor
python38Packages.lightparam
python38Packages.livelossplot
python38Packages.magic-wormhole
python38Packages.magic-wormhole-mailbox-server
python38Packages.magic-wormhole-transit-relay
python38Packages.matrix-nio
python38Packages.mocket
python38Packages.modeled
python38Packages.moretools
python38Packages.moto
python38Packages.nbclassic
python38Packages.nbclient
python38Packages.nbconflux
python38Packages.nbconvert
python38Packages.nbformat
python38Packages.nbmerge
python38Packages.nbsmoke
python38Packages.nbsphinx
python38Packages.nbval
python38Packages.nix-kernel
python38Packages.notebook
python38Packages.notedown
python38Packages.nvchecker
python38Packages.oauthenticator
python38Packages.onnx
python38Packages.openapi-core
python38Packages.openapi-schema-validator
python38Packages.openapi-spec-validator
python38Packages.openerz-api
python38Packages.papermill
python38Packages.phik
python38Packages.pika
python38Packages.pika-pool
python38Packages.plotly
python38Packages.pook
python38Packages.prance
python38Packages.praw
python38Packages.prawcore
python38Packages.pyarrow
python38Packages.pyee
python38Packages.pykwalify
python38Packages.pymatgen
python38Packages.pymodbus
python38Packages.pyppeteer
python38Packages.python-telegram-bot
python38Packages.pyutil
python38Packages.pywbem
python38Packages.qiskit
python38Packages.qiskit-aer
python38Packages.qiskit-aqua
python38Packages.qiskit-ibmq-provider
python38Packages.qiskit-ignis
python38Packages.qiskit-terra
python38Packages.qreactor
python38Packages.rachiopy
python38Packages.robomachine
python38Packages.robotframework
python38Packages.robotframework-databaselibrary
python38Packages.robotframework-requests
python38Packages.robotframework-sshlibrary
python38Packages.robotstatuschecker
python38Packages.robotsuite
python38Packages.scikit-tda
python38Packages.scrapy
python38Packages.scrapy-deltafetch
python38Packages.scrapy-fake-useragent
python38Packages.scrapy-splash
python38Packages.setuptoolsTrial
python38Packages.slack-sdk
python38Packages.smart-open
python38Packages.snowflake-connector-python
python38Packages.snowflake-sqlalchemy
python38Packages.sopel
python38Packages.sphinxcontrib-openapi
python38Packages.spyder
python38Packages.structlog
python38Packages.stytra
python38Packages.sumo
python38Packages.sunpy
python38Packages.swagger-spec-validator
python38Packages.synergy
python38Packages.tensorboardx
python38Packages.testfixtures
python38Packages.towncrier
python38Packages.treq
python38Packages.ttp
python38Packages.tubes
python38Packages.twisted
python38Packages.txaio
python38Packages.txamqp
python38Packages.txdbus
python38Packages.txgithub
python38Packages.txredisapi
python38Packages.txrequests
python38Packages.txtorcon
python38Packages.vega
python38Packages.vncdo
python38Packages.warlock
python38Packages.webthing
python38Packages.west
python38Packages.widgetsnbextension
python38Packages.zetup
python38Packages.zfec
python38Packages.zigpy-znp
python39Packages.APScheduler
python39Packages.Nikola
python39Packages.Pweave
python39Packages.altair
python39Packages.ansible-kernel
python39Packages.apispec
python39Packages.asdf
python39Packages.autobahn
python39Packages.aws-sam-translator
python39Packages.batchspawner
python39Packages.bravado-core
python39Packages.cassandra-driver
python39Packages.castepxbin
python39Packages.catboost
python39Packages.celery
python39Packages.cfn-lint
python39Packages.channels
python39Packages.channels-redis
python39Packages.chart-studio
python39Packages.connexion
python39Packages.cufflinks
python39Packages.cve-bin-tool
python39Packages.daphne
python39Packages.dash
python39Packages.datasets
python39Packages.datashader
python39Packages.django-raster
python39Packages.django-simple-captcha
python39Packages.djmail
python39Packages.dockerspawner
python39Packages.flask-appbuilder
python39Packages.flask-restplus
python39Packages.flask-restx
python39Packages.flower
python39Packages.foolscap
python39Packages.gensim
python39Packages.geoip2
python39Packages.google-cloud-bigquery
python39Packages.graphite_api
python39Packages.holoviews
python39Packages.hvplot
python39Packages.influxgraph
python39Packages.intake
python39Packages.ipympl
python39Packages.ipyvue
python39Packages.ipyvuetify
python39Packages.ipywidgets
python39Packages.jsonmerge
python39Packages.jsonschema
python39Packages.jupyter
python39Packages.jupyter-sphinx
python39Packages.jupyter-telemetry
python39Packages.jupyter_server
python39Packages.jupyterhub
python39Packages.jupyterhub-ldapauthenticator
python39Packages.jupyterhub-systemdspawner
python39Packages.jupyterhub-tmpauthenticator
python39Packages.jupyterlab
python39Packages.jupyterlab_launcher
python39Packages.jupyterlab_server
python39Packages.jupytext
python39Packages.klein
python39Packages.kmapper
python39Packages.labgrid
python39Packages.ldaptor
python39Packages.lightparam
python39Packages.livelossplot
python39Packages.magic-wormhole-mailbox-server
python39Packages.magic-wormhole-transit-relay
python39Packages.matrix-nio
python39Packages.mocket
python39Packages.modeled
python39Packages.moretools
python39Packages.moto
python39Packages.nbclassic
python39Packages.nbclient
python39Packages.nbconflux
python39Packages.nbconvert
python39Packages.nbformat
python39Packages.nbmerge
python39Packages.nbsmoke
python39Packages.nbsphinx
python39Packages.nbval
python39Packages.nix-kernel
python39Packages.notebook
python39Packages.notedown
python39Packages.oauthenticator
python39Packages.onnx
python39Packages.openapi-core
python39Packages.openapi-schema-validator
python39Packages.openapi-spec-validator
python39Packages.openerz-api
python39Packages.papermill
python39Packages.phik
python39Packages.pika
python39Packages.pika-pool
python39Packages.plotly
python39Packages.pook
python39Packages.prance
python39Packages.praw
python39Packages.prawcore
python39Packages.pyarrow
python39Packages.pyee
python39Packages.pykwalify
python39Packages.pymatgen
python39Packages.pymodbus
python39Packages.pyppeteer
python39Packages.python-telegram-bot
python39Packages.pyutil
python39Packages.pywbem
python39Packages.qiskit
python39Packages.qiskit-aer
python39Packages.qiskit-aqua
python39Packages.qiskit-ibmq-provider
python39Packages.qiskit-ignis
python39Packages.qiskit-terra
python39Packages.qreactor
python39Packages.rachiopy
python39Packages.robomachine
python39Packages.robotframework
python39Packages.robotframework-databaselibrary
python39Packages.robotframework-requests
python39Packages.robotframework-sshlibrary
python39Packages.robotstatuschecker
python39Packages.robotsuite
python39Packages.scikit-tda
python39Packages.scrapy
python39Packages.scrapy-deltafetch
python39Packages.scrapy-fake-useragent
python39Packages.scrapy-splash
python39Packages.setuptoolsTrial
python39Packages.slack-sdk
python39Packages.smart-open
python39Packages.snowflake-connector-python
python39Packages.snowflake-sqlalchemy
python39Packages.sopel
python39Packages.sphinxcontrib-openapi
python39Packages.structlog
python39Packages.stytra
python39Packages.sumo
python39Packages.sunpy
python39Packages.swagger-spec-validator
python39Packages.synergy
python39Packages.tensorboardx
python39Packages.testfixtures
python39Packages.towncrier
python39Packages.treq
ttp (python39Packages.ttp)
python39Packages.tubes
python39Packages.twisted
python39Packages.txaio
python39Packages.txamqp
python39Packages.txdbus
python39Packages.txgithub
python39Packages.txredisapi
python39Packages.txrequests
python39Packages.txtorcon
python39Packages.vega
vncdo (python39Packages.vncdo)
python39Packages.warlock
python39Packages.webthing
python39Packages.west
python39Packages.widgetsnbextension
python39Packages.zetup
python39Packages.zfec
python39Packages.zigpy-znp
qmk
rmview
snakemake
sourcehut.buildsrht
sourcehut.coresrht
sourcehut.dispatchsrht
sourcehut.gitsrht
sourcehut.hgsrht
sourcehut.hubsrht
sourcehut.listssrht
sourcehut.mansrht
sourcehut.metasrht
sourcehut.pastesrht
sourcehut.todosrht
streamlit
syncplay
tahoe-lafs
thrift
tinyprog
tts
urlwatch
vorta
weechatScripts.weechat-matrix
whipper

@exarkun please resolve the merge conflict...

@exarkun please resolve the merge conflict...

:disappointed:


Add immutability support to streams configs

At current, running a benthos in streams mode allows any changes to running configs without authentication via API.  This can be prevented by turning off the HTTP server, but that comes with a lot of disadvantages.  A CLI flag to set e.g. static streams configs as immutable during runtime would allow the HTTP server to continue doing its mundane work. :)
My read through the streams API docs suggest disabling all verbs other than GET should be sufficient.

I've added a flag for it https://github.com/Jeffail/benthos/commit/d6f26ad83e4e437565aa1c93bc6133673a836fde to disable all the streams mode endpoints.


Additional functionality needed

[x] function to easily get name (and fall back to default)
[x] convert to jobspec from simple set of parameters (akin to what we do in rainbow)
[x] validation provided with schema from library
[x] serialization methods (to/from string and to/from yaml or json)

Closed with #3


Fix all problems from PHPStan

All things fixed, even broken greg.php 👍
@acobster Please help me in the last one:
 ------ -----------------------------------------------------------
  Line   src/api.php
 ------ -----------------------------------------------------------
  122    Cannot call method to_array() on array<int, Timber\Post>.
  127    Cannot call method to_array() on array<int, Timber\Post>.
 ------ -----------------------------------------------------------

BTW Tests were moved from test to tests - so CI may brake, please the other PR #1

Unfortunately the return type for Timber::get_posts() is still annotated as array|bool|null, but should be \Timber\PostCollectionInterface|false. That will be addressed upstream in https://github.com/timber/timber/issues/1863 relatively soon, so let's leave this open until then.

Okay!!

Cannot call method to_array() on array|true.

Still seems to be already an array thus not possible to call that method on it.

I think it's complaining because of the Timber type annotation array|bool|null. false and null are precluded by the ternary:
return $posts ? $posts->to_array() : [];

...but PHPStan still considers it possible it will return true. That's why we need to update Timber.

I see!!
So /** @var \Timber\PostCollectionInterface|false $post */

Here is the Anti-Problem Laser Gun 🔫
https://twitter.com/szepeviktor/status/1324135927975940096
Now it is very easy to resolve these kind of problems.


Added implementation of decorators in Python

Please fill in this pull request template before submitting
1. This pull request resolves #109
2. Description
Tutorial for Implementation of Decorators in Python with a use case.
3. Fill in checklist by marking [x]

[x] I've read the CONTRIBUTING.md
[x] I was assigned to this issue
[x] My code is formatted using required linting
[x] I've run my code locally and checked it works

@amulyavarshney We have a lot of PRs to review today so we'll mark as hacktoberfest-accepted for now. Will fully review later and request for changes if needed. Thanks!

@funbeedev Please Review my PR and add it to Hackoctoberfest contribution.

@funbeedev it is still not accepted.

@amulyavarshney Missed that. Accepted now :)

Thank you for your contribution @amulyavarshney ! 🎉


New Tag

A new tag called <cursive> uses a font called Pacifico. I added it to the CSS, updated the minified, and added it to the HTML.
Thanks to Google Fonts

If you like it then Merge it. Make sure your dependencies are up to date (no conflicting commits)

Nice


using ansible-lint to resolve collection dependencies fails  in latest  ansible

Issue Type

Bug report

Molecule and Ansible details
Semie working config
ansible 2.10.9
  config file = /Users/H217689/kp/ansible/kp_devops/test/ansible.cfg
  configured module search path = ['/Users/H217689/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/H217689/kp/ansible/kp_devops/test/local_venv/lib/python3.9/site-packages/ansible
  executable location = /Users/H217689/kp/ansible/kp_devops/test/local_venv/bin/ansible
  python version = 3.9.5 (default, May  4 2021, 03:36:27) [Clang 12.0.0 (clang-1<IP_ADDRESS>)]
molecule 3.3.0 using python 3.9
    ansible:2.10.9
    delegated:3.3.0 from molecule
    docker:0.2.4 from molecule_docker
    podman:0.3.0 from molecule_podman
    vagrant:0.6.3 from molecule_vagrant

Not Working Config:
ansible [core 2.11.1]
  config file = /Users/H217689/kp/ansible/kp_devops/test/ansible.cfg
  configured module search path = ['/Users/H217689/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/H217689/.kp_devops/kp_devops_venv/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/H217689/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/H217689/.kp_devops/kp_devops_venv/bin/ansible
  python version = 3.9.5 (default, May  4 2021, 03:36:27) [Clang 12.0.0 (clang-1<IP_ADDRESS>)]
  jinja version = 3.0.1
  libyaml = True
molecule 3.3.2 using python 3.9
    ansible:2.11.1
    delegated:3.3.2 from molecule
    docker:0.2.4 from molecule_docker
    podman:0.3.0 from molecule_podman
    vagrant:0.6.3 from molecule_vagrant

Molecule installation method (one of):

pip

Ansible installation method (one of):

pip

Detail any linters or test runners used:
Ansible lint
Desired Behavior
FYI the solution of using ansible-lint does not work with the latest release of ansible. I converted my requirements to remove version pinning to force working on the latest and not get behind... famous last words.
The desired result should be a cache folder somewhere on the machine that contains the current collection and a converge.yml that loads it.
the requirements.txt fails to produce a .chace folder with the current collection.
ansible
docker
molecule
molecule-docker
molecule-podman
molecule-vagrant
python-vagrant
pytest
pytest-testinfra
yamllint
flake8
the requirements.txt that produces a .chace folder with the current collection.
ansible==3.4.0
docker==5.0.0
molecule==3.3.0
molecule-docker==0.2.4
molecule-podman==0.3.0
molecule-vagrant==0.6.3
pytest==6.2.4
pytest-testinfra==6.3.0
python-vagrant==0.5.15
yamllint==1.26.1
flake8==3.9.2
Actual Behaviour
The current version (N) produces no cache folder that I can find that holds the current collection.
The N-1 version of ansible produces a cache folder but I cant not get converge.yml to load the collection and use it.
Side Issue is that I can not get the converge.yml to recognize the current collection even with the old version of ansible-lint...
I have set the collections path in every way possible and the code is in the path, but the converge playbook does not see it.
molecule.yml
provisioner:
name: ansible
config_options:
defaults:
timeout: 30
system_warinings: false
collections_paths: .cache/collections
env:
ANSIBLE_COLLECTIONS_PATH: .cache/collections.
per this link
https://docs.ansible.com/ansible/latest/user_guide/collections_using.html
converge trials...
converge.yml1

import_playbook: devops.test.site

converge.yml2

name: Converge
hosts: all
collections:

devops.test

import_playbook: devops.test.site

converge.yml3

name: Converge
hosts: all
collections:

devops.test

import_playbook: devops.test.site.yml

I also tried the run with several collection cache path locations....
DEBUG: SHELL REPLAY:
ANSIBLE_COLLECTIONS_PATH=.cache/collections ANSIBLE_CONFIG=/Users/H217689/.cache/molecule/test/default/ansible.cfg ANSIBLE_FILTER_PLUGINS=/Users/H217689/kp/ansible/kp_devops/test/local_venv/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/filter:/Users/H217689/.cache/molecule/test/default/plugins/filter:/Users/H217689/kp/ansible/kp_devops/test/plugins/filter:/Users/H217689/.ansible/plugins/filter:/usr/share/ansible/plugins/filter ANSIBLE_FORCE_COLOR=1 ANSIBLE_LIBRARY=/Users/H217689/kp/ansible/kp_devops/test/local_venv/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/modules:/Users/H217689/kp/ansible/kp_devops/test/local_venv/lib/python3.9/site-packages/molecule_vagrant/modules:/Users/H217689/.cache/molecule/test/default/library:/Users/H217689/kp/ansible/kp_devops/test/library:/Users/H217689/.ansible/plugins/modules:/usr/share/ansible/plugins/modules ANSIBLE_ROLES_PATH=/Users/H217689/.cache/molecule/test/default/roles:/Users/H217689/kp/ansible/kp_devops:/Users/H217689/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles MOLECULE_DEBUG=True MOLECULE_DEPENDENCY_NAME=galaxy MOLECULE_DRIVER_NAME=vagrant MOLECULE_ENV_FILE=/Users/H217689/kp/ansible/kp_devops/test/.env.yml MOLECULE_EPHEMERAL_DIRECTORY=/Users/H217689/.cache/molecule/test/default MOLECULE_FILE=/Users/H217689/.cache/molecule/test/default/molecule.yml MOLECULE_INSTANCE_CONFIG=/Users/H217689/.cache/molecule/test/default/instance_config.yml MOLECULE_INVENTORY_FILE=/Users/H217689/.cache/molecule/test/default/inventory/ansible_inventory.yml MOLECULE_PROJECT_DIRECTORY=/Users/H217689/kp/ansible/kp_devops/test MOLECULE_PROVISIONER_NAME=ansible MOLECULE_SCENARIO_DIRECTORY=/Users/H217689/kp/ansible/kp_devops/test/molecule/default MOLECULE_SCENARIO_NAME=default MOLECULE_STATE_FILE=/Users/H217689/.cache/molecule/test/default/state.yml MOLECULE_VERIFIER_NAME=ansible MOLECULE_VERIFIER_TEST_DIRECTORY=/Users/H217689/kp/ansible/kp_devops/test/molecule/default/tests
COMMAND: ansible-playbook --diff --inventory /Users/H217689/.cache/molecule/test/default/inventory --skip-tags molecule-notest,notest /Users/H217689/kp/ansible/kp_devops/test/molecule/default/converge.yml
ERROR! Unable to retrieve file contents
Could not find or access '/Users/H217689/kp/ansible/kp_devops/test/molecule/default/kp_devops.test.site' on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option
CRITICAL Ansible return code was 1, command was: ansible-playbook --diff --inventory /Users/H217689/.cache/molecule/test/default/inventory --skip-tags molecule-notest,notest /Users/H217689/kp/ansible/kp_devops/test/molecule/default/converge.yml

Remove ANSIBLE_COLLECTIONS_PATH from your molecule file and it should work fine with latest ansible-lint. We now use ~/.cache/... with hashed directory names for caching collections. I suspect that this variable disables our custom cache use.
If you run the linter in verbose mode you should see exactly where it does build the cache. Same logic is used by molecule itself (it reused the same code from the linter).

Now I seen you reported the bug against 3.3.0 when latest version is 3.3.3. Please report bugs only on latest versions.

I upgraded and tested and the new ansible lint directory is not in the collections paths for the converge phase of the code but is in the roles I added the detail to the bug you closed if you would like to re open if I'm still not missing something ha!
@ssbarnea

Sorry had to many tickets open I had added this response to the wrong ticket....

@tadeboro  I think this is still an issue can you let @ssbarnea  know I think I got to chatty messing up tickets... he might not have seen the new update :)

If you notice each of the env configurations are different and result in different running environments for each step. I am working to see if this is the issue or if there is a bigger issue with ansible also.
Either way the code should all use the same env configuration code so that it is consistent....


Move cluster roles and system namespace to new role

This should be done after kubeconfig is set for admin and
before network plugins are up.

ci check this

CI is acting weird. I'll open a new pr


apply.sh not being able to find directory

basically, when trying to use apply.sh it just wants to breakdown and its making me break down

Did you solve the problem? I am facing the same issue.


Feature/more precise dragging

:tada: This PR is included in version 1.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: improve make fetch step

removed unnecessary lines of code
improved with one line that finds all templates with 'crb' or 'rb' and replaces the namespace with ' {{ .Release.namesapce }}'
add templates which were missed in previous PR

@msvticket


Missing bias in DCGAN notebook in conv()

Hi,
In the function conv() in DCGAN notebook, when defining the conv_layer, by default you create a conv_layer with no bias no matter with or without batch norm. I think you should put that conv_layer in if-else statement so that we have the bias in the conv_layer when we don't use batch norm.
if batch_norm: conv_layer = ...**bias=False** else **bias=True**

In this case, best practice is to have bias set to False for the convolutional layers as well. This choice was informed by the original paper and example implementation within the PyTorch repo: https://github.com/pytorch/examples/blob/master/dcgan/main.py


Dumping out current environment?

Hey there!
Love boris, it makes PHP development and exploration of a codebase an absolute dream. The one thing I feel like that its missing is a feature that may not even be possible to implement, but I thought I'd ask regardless.
How difficult would it be to be able to export/dump the PHP that has been typed into the REPL? Say, function definitions and the like? Not necessarily expressions per se (although to be honest, even just a straight "transcript" dump would be brilliant), but function, class and method definitions that have been typed in.
Perhaps even a way of defining "This is a new session for this environment, start recording what I'm doing" and the "End that session and export the code out to a PHP file". The reason I'd love something like that is it would enable true interactive development through the REPL itself, rather close to how Lisp REPLs are implemented.
I'm going to take a poke through Boris' code and have a look at whether it'd be possible anyway, but I thought I'd ask!

Hey Josh, thanks for the question. Sorry about the wait.
Boris currently keeps track of all the commands you've entered into a ~/.boris_history file. You could possibly grab your last few typed commands from there. Maybe not quite what you're looking for—but might be ok.
I know iPython has some great features similar to what you mentioned:
http://ipython.org/ipython-doc/rel-0.10.2/html/interactive/tutorial.html#source-code-handling-tips
.. I think these kinds of features could be good additions to boris. Would you be keen to have a go at contributing? :)


487: Interpret null signature as signature without parameters (Support Visual VM)

Changes

:bug: Tolerate Visual VM calling operations without parameters
/kind

/kind bug
Fixes #487
Release Note

Fixes bug that made calling methods with no parameters fail with Visual VM over Jolokia connections.

Can't really judge on this but on a first sight looks good.
Would you mind to add an entry to src/changes/changes.xml for this fix ?

Looks like the build error on openjdk9 is a technical problem extracting the JVM itself. Request a re-run?


As apart from python language, c++ is most widely used in cse applications, also this language is easily understandable by students (as they are familair with C), so can i contribute by implementing important visualizer sorting algorithm in c++ or JAVA

Describe your idea
How it could be implemented (optional)
Are you up to do it?

I am not looking for sorting algorithms in other languages because it would no be possible to visualize them with this pygame program. But I appreciate your intention :)


Add tags and other fields to the output event

Are you guys open for adding different fields to the output event like tags or ipaddress incase of EC2 namespace?

+1

Yes, this could be used to add the name of the instance?
Currently we have to create a if instanceid = "xxxx" then add field name = "yyyy"
The info is already available in describe instance result from aws:
"Tags": [
{
"Value": "testing",
"Key": "Name"
},
{
"Value": "Yes",
"Key": "Monitoring"
}
],


docker-compose: The server does not support SSL connections

with
version: '3.8'

services:
  admin:
    image: 'gorules/brms'
    ports:
      - '9080:80'
    depends_on:
      - pg-database
    environment:
      DB_HOST: pg-database
      DB_PORT: 5432
      DB_USER: my-user
      DB_PASSWORD: my-password
      DB_NAME: test-db
      LICENSE_KEY: 'my-license-key' # Obtain it from https://portal.gorules.io

  pg-database:
    image: 'postgres'
    environment:
      POSTGRES_USER: my-user
      POSTGRES_PASSWORD: my-password
      POSTGRES_DB: test-db
    ports:
      - '5432:5432'

❯ docker compose logs admin
test-gorules-admin-1  | {"level":50,"time":1701542183664,"pid":1,"hostname":"dd89ea76ebce","name":"system","err":{"type":"Error","message":"connect ECONNREFUSED <IP_ADDRESS>:5432","stack":"Error: connect ECONNREFUSED <IP_ADDRESS>:5432\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)","errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"<IP_ADDRESS>","port":5432},"msg":"application startup error"}
test-gorules-admin-1  | {"level":50,"time":1701542237643,"pid":1,"hostname":"dd89ea76ebce","name":"system","err":{"type":"Error","message":"The server does not support SSL connections","stack":"Error: The server does not support SSL connections\n    at Socket.<anonymous> (/app/node_modules/.pnpm/pg@8.11.2/node_modules/pg/lib/connection.js:77:37)\n    at Object.onceWrapper (node:events:632:26)\n    at Socket.emit (node:events:517:28)\n    at addChunk (node:internal/streams/readable:335:12)\n    at readableAddChunk (node:internal/streams/readable:308:9)\n    at Readable.push (node:internal/streams/readable:245:10)\n    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)"},"msg":"application startup error"}
test-gorules-admin-1  | {"level":50,"time":1701542311228,"pid":1,"hostname":"dd89ea76ebce","name":"system","err":{"type":"Error","message":"The server does not support SSL connections","stack":"Error: The server does not support SSL connections\n    at Socket.<anonymous> (/app/node_modules/.pnpm/pg@8.11.2/node_modules/pg/lib/connection.js:77:37)\n    at Object.onceWrapper (node:events:632:26)\n    at Socket.emit (node:events:517:28)\n    at addChunk (node:internal/streams/readable:335:12)\n    at readableAddChunk (node:internal/streams/readable:308:9)\n    at Readable.push (node:internal/streams/readable:245:10)\n    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)"},"msg":"application startup error"}

I'm a beginner here, but I'm evaluating the adoption of BRMS in our collection strategies (renegotiation proposals, basically). I resolved this point by changing the image (preexisting in the case of postgreSQL) to handle the SSL connection.
Remember, in addition to correctly making the .key/.cer files available, you will still need to adjust the permission rights (postgres:root and 600). I tried to automate these internal configurations to the container with .sh (I'll attach it together), but I didn't have much success - so I ran it manually and restarted it.
Note that I also create the bank that the gorules need.
I'm using a self-signed certificate, so the environment variable is important - DB_REJECT_UNAUTHORIZED: false
Hope this helps.
docker-compose.yml.txt
init.sh.txt

Apologies for any confusion caused and thank you for bringing this matter to our attention.
I have updated the documentation on Docker Hub: https://hub.docker.com/r/gorules/brms. The environment variable you are after in the latest version is DB_SSL_DISABLED = true. Please note that you should be using proper SSL configuration outside of local environment.
Please let me know if the above solves the issue for you.
We will be updating our documentation in the upcoming week to reflect the app state, and we'll provide some clarity on new things that have been cooking in the background:

Helm charts for easy deployment to K8s - https://artifacthub.io/packages/helm/gorules/gorules-brms
Open source https://editor.gorules.io/
New node type - Switch node (check out sneak peek below 👇)

If you have 5 minutes after evaluating we'd love your thoughts, feedback or ideas regarding any cool features you're looking for https://github.com/gorules/zen/discussions/categories/ideas.


Different language version is used from what's selected for unfinished solution

I had an unfinished solution in an older version of Rust (not sure if it was 1.33 or 1.25). When I reopened it, the selector showed 1.36, but the tests were executed in some older version until I reselected 1.36, then everything worked correctly.
A couple of days ago I had the same issue with Elixir. There was only 1.9 in the UI, but the tests were executed in an older version, I think 1.2 because chunk_every didn't work. When I reselected 1.9, everything worked.

This should be fixed now.

It happened again. After opening an old unfinished solution, by switching from Ruby "2.5.0" (which actually is 2.5.4) to "3.0.0" I got 2.3.6. After reloading the page it became 3.0.0.


Retry after unauthorized errors

Signed-off-by: Kevin Earls<EMAIL_ADDRESS>

I'm no longer able to reproduce this, it may have been caused by a problem with the cluster I was testing on.


Update base URL for UM API Directory in env_blank.json

This PR adds /um to the end of the UM API Directory, which is needed to successfully make requests using the umich_api library. The PR aims to resolve issue #63.
Resolves #63.

I committed this change to my 65-mivideo branch in my fork:

https://github.com/lsloan/course-inventory/commit/c2ca60342e932c499dde52139614a3ba06ee3d81

I don't really think we should have this specific version in the env_blank here, though this new URL is correct.

@jonespm, can you elaborate on why you don't think this should be provided here? Is there a security concern, or do you just want to not assume UM is using this? The API Directory URL is weird enough that I think this is useful to contributors, unless there is some concern I'm not aware of.

I guess it's fine, I didn't think this URL was super public but it is coming up in some Google results.

I think I screwed up this simple change trying to resolve conflicts from Github UI :/

@jonespm, although you commented, no approval was given.  I'm not sure whether you approve or disapprove of this change from what you wrote, so I tagged you for review again.

Who's assigned to merge this PR?


HTML

HTML
User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
so that I can easily find and read information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see 4 boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

With the feature/html-code PR, I generated the different sections necessary to store my notes for the HTML, CSS, Git, and JS associated notes.


2.0 fails to load

Using this metalsmith.json
{
  "source": "src",
  "destination": "out",
  "plugins": {
    "metalsmith-less": true
  }
}

and the newest version of Metalsmith, running the metalsmith command yields to following error: failed to require plugin "metalsmith-less".
Downgrading to<EMAIL_ADDRESS>solves the problem.

What's happening is metalsmith-less is throwing because true is an invalid input. The Metalsmith executable swallows this exception and prints the above error.
This is maybe a bug. In the meantime, this should work:
"metalsmith-less": {}

Thanks! That did work.


Not working on Kali Linux (Running on a RPI 2W) "SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?"

[!] This Tool Must Run As ROOT [!]
[>] Press ENTER to Install Hacktronian, CTRL+C to Abort.
[✔] Checking directories...
[!] A Directory hacktronian Was Found.. Do You Want To Replace It ? [y/n]:
y
[✔] Installing ...
Cloning into '/usr/share/doc/hacktronian'...
remote: Enumerating objects: 190, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 190 (delta 4), reused 10 (delta 0), pack-reused 175
Receiving objects: 100% (190/190), 199.08 KiB | 227.00 KiB/s, done.
Resolving deltas: 100% (103/103), done.
[✔] Successfuly Installed !!! [✔]
[✔]========================================================================[✔]
[✔] ✔✔✔ All Is Done!! you can execute tool by typing hacktronian !! ✔✔✔ [✔]
[✔]========================================================================[✔]
┌──(root㉿kali-raspberry-pi-zero-2-w)-[/home/kali/hacktronian]
└─# hacktronian
File "/usr/share/doc/hacktronian/hacktronian.py", line 82
print """
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

I have the same issue exactly 😞

edit install.sh from python to python2

i have also the same issue what can i solved it please help me

Send screenshots of ur code
Le mar. 21 nov. 2023, 12:30, Idresq @.***> a écrit :

i have also the same issue what can i solved it please help me
—
Reply to this email directly, view it on GitHub
https://github.com/thehackingsage/hacktronian/issues/36#issuecomment-1820741685,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5FFXSJDEWYU3H6QI5AVUN3YFSGHFAVCNFSM6AAAAAATORZVA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRQG42DCNRYGU
.
You are receiving this because you commented.Message ID:
@.***>

same issue is occuring with me. Im on LXDE for linux and its posting same code.


aquamarine crate fails to build since vendorCargoDeps gained overrides

Describe the bug
The aquamarine crate bundles some extra files in a doc/js folder which seem to get filtered out, resulting in a build failure when the Rust tries to include it. This used to work up till 27025ab71bdca30e7ed0a16c88fd74c5970fc7f5
Build log: https://gist.github.com/msfjarvis/7b2c6235c592f92a197aa437c7e0b771
Reproduction
This repo reproduces the bug when running nix flake check https://github.com/msfjarvis/linkleaner/tree/779f427c16e0be406b460437cadba9d72ef2d543

Thank you for the report and the reproduction @msfjarvis! Should be fixed with https://github.com/ipetkov/crane/pull/619 :smile:

Was able to confirm locally that the PR does fix the issue, thanks for the speedy fixes as always!


Going back deletes data

When match scouting, it's relatively common to want to go to a previous section to edit a response. However, values are not loaded when going back, making such editing difficult (since the scout must remember all of the other data).
It should be noted, though, that being able to clear data is convenient during demos, so adding a clear button may be useful once going back doesn't clear the data.

Do you think it would be a good idea to have the clear button at the bottom of all templates, or maybe even have it as a component that you can choose to include in the templates?

I'd say always having it at the bottom makes more sense.

just did a few more tests apparently the data does not in fact clear when hitting the clear button because the view is not triggered to recompose, currently figuring out how to make that happen

one thing to note however, is that if you hit the button then go to the next match stage and back, the data is cleared (don't worry the data does not clear if you go between match stages and don't press the button)

partially fixed, clear button can be added as a separate issue if it is needed in the future but for now, to get a viable product for week 4 it will not be included. the issue of going back deleting data has been solved


OpenMesh

The Fedora 38 version of this library (8.1) seems to be outdated compared to the O3DE bundled version (6.3).


[Bug]: Recent and multiple caddy changes in Docker breaks appsmith

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Appsmith automatically updated to the latest version using the autoupdate and appsmith docker stack goes into a restart loop.
The UI is not accessible at all.
Here are the relevant logs - seems related to caddy port bindings
2023-12-13 22:57:43,161 INFO exited: editor (exit status 1; not expected)
2023-12-13 22:57:43,164 INFO spawned: 'editor' with pid 191447
2023-12-13 22:57:43,169 INFO success: editor entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
editor stdout | Load environment configuration
editor stdout |
editor stdout | /tmp/appsmith/www /opt/appsmith
editor stdout |
editor stdout | /opt/appsmith
editor stdout |
editor stderr | {"level":"info","ts":1702508264.1925185,"msg":"using provided configuration","config_file":"/tmp/appsmith/Caddyfile","config_adapter":""}
editor stderr |
editor stderr | Error: couldn't determine admin API address: adapting config using caddyfile: server listening on [:80] is HTTP, but attempts to configure TLS connection policies
editor stderr |
editor stderr | {"level":"info","ts":1702508264.4619856,"msg":"using provided configuration","config_file":"/tmp/appsmith/Caddyfile","config_adapter":""}
editor stderr |
editor stderr | Error: adapting config using caddyfile: server listening on [:80] is HTTP, but attempts to configure TLS connection policies
editor stderr |
2023-12-13 22:57:45,477 INFO exited: editor (exit status 1; not expected)
2023-12-13 22:57:45,494 INFO spawned: 'editor' with pid 191497
2023-12-13 22:57:45,547 INFO success: editor entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Steps To Reproduce
Just autoupdate or manually update docker version to latest version or even a couple of versions back.
Public Sample App
No response
Environment
Production
Issue video log
No response
Version
Self Hosted v1.9.56

I even downgraded to v1.9.50 - the UI showed up but Appsmith keeps crashing and restarting.
Note - I do NOT exclusively use this server for Appsmith and instead have another caddy container getting the SSL certs etc.
It is the simplest caddy config which just proxies Appsmith
https://appsmith.mydomain.com {
reverse_proxy http://host.docker.internal:8080
}
The name host.docker.internal is just the docker host defined in docker-compose.yml as
extra_hosts:
- "host.docker.internal:host-gateway"
This arrangement has been working for a year plus but now the recent changes have broken it all.
Thanks

Facing this same issue. The latest release is not showing anything on the UI

Hey @mewhomaker, sorry for the trouble faced here. From what I see, I think you have APPSMITH_CUSTOM_DOMAIN set in your configuration. If yes, can you please comment it out and restart Appsmith?
As a user of Caddy already, you can probably tell that Caddy's handling of TLS is quite stable and smooth. This was the reason we switched from NGINX to Caddy. However, in our previous NGINX stack, we had a fallback where if cert provisioning fails, we fallback to HTTP. Looks like Caddy is not doing that fallback correctly. I'm working on bringing that fallback with Caddy as well, and that fix is going through QA now.
If you have a separate reverse-proxy in front of Appsmith, like Caddy, or NGINX ,or anything else, you don't need the APPSMITH_CUSTOM_DOMAIN set.

@sharat87 Thanks for checking into this.
As of now Appsmith is still down.
APPSMITH_CUSTOM_DOMAIN is not set - any other suggestions - we are dead in the water for over 24 hours now.

Thanks for your help

Update - I have added all kinds of values to APPSMITH_CUSTOM_DOMAIN  like

appsmith.mydomain.com:80
appsmith.mydomain.com:443
Left it blank
Nothing works

@sharat87 - Where can I modify the caddy file (my past experience with caddy and docker took days to nail down so I would suggest reverting the change for now as getting it fully right for all scenarios will take time
Thank you

Hey @mewhomaker, sorry for the trouble. Can we get on a call to troubleshoot. Let me know a time you'll be available and we'll get on a call. Or find some time at https://cal.com/shrismith/i29596. Either is fine.

Thank you @mewhomaker for the conversation. I've identified the edge case causing your instance's Caddy to not come up. I'll pick this up first thing tomorrow.
Reg. backend going into a crash loop, as discussed, please scale your server with higher capacity and try again. The minimum we recommend for running just Appsmith and nothing else is 2 vCPUs and 4GB of memory. Since you have other services also running, please consider scaling up.
If you still have trouble on the new server as well, please feel free to book another time on the same link above. I'll keep that link and this issue open for the time being.
Thanks again, and happy holidays!

Thanks for confirming @mewhomaker. I'll close this issue in that case. Please reach out again if you face any trouble.


add github actions for golangci-lint

Add a github action to run the linter.
Fixes #65
For now, this is run on your fork: https://github.com/kannon92/instaslice-operator/actions/runs/10832209179/job/30055983387.

/hold
Want to see if github actions would work.

/hold cancel

/cc @asm582

/retest

/hold
Local testing shows a bug.

/hold cancel

Do we know why the build is failing on this PR?

Do we know why the build is failing on this PR?

Logs - https://console.redhat.com/application-pipeline/workspaces/dynamicacceleratorsl/applications/dynamicacceleratorslicer/pipelineruns/instaslice-operator-controller-on-pull-request-9mks6/logs?task=build-images

/lgtm

/hold until all comments are reviewed

/lgtm

/unhold


⚠ Bofrost.lu has degraded performance

In 8a9e73b, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2037 ms

Resolved: Bofrost.lu performance has improved in 86e7a6b after 8 minutes.


cmake version issue and build erros for minzip-ng

First issue is CheckSourceCompiles not found by inlcude in CMakeLists.txt of minizip-ng
Can be fixed by installing latest version of cmake
See related Issue
Minzip Issue 720
Second issue is with minizip-ng version 4.0
It seems there is a argument error within the 4.0 source / building from 3.0.10 works
See issue:
Build error on Ubuntu 20.04

Thanks for the echo! We fork the latest minizip code so this will break things. I will update it to fetch a specific commit instead.

Should be fixed with https://github.com/RationAI/xopat-docker/commit/ff37cb6cab2fdae29751565b0fbff74823e79fc8. Thanks again.


Add Web Payments

https://www.w3.org/TR/payment-request/
https://www.w3.org/TR/payment-method-id/
https://www.w3.org/TR/payment-method-basic-card/

+1
Added in Chrome 53 for Android, now in beta: http://blog.chromium.org/2016/08/chrome-53-beta-shadow-dom.html "with support for more platforms coming soon"

Now available at http://caniuse.com/#feat=payment-request


Breaking bug-fixes in CFE for Dart 2.1

A number of situations that are defined to be compile-time errors by the spec were not adequately checked in Dart 2.0. Most known cases have been, or will be, implemented for Dart 2.1. Any such newly implemented compile-time error that was detected by neither the analyzer nor the CFE in 2.0 is a breaking bug-fix.
This issue aims to track our overall process of integrating and rolling out the known breaking bug-fixes.
Some breaking bug-fixes (e.g. https://github.com/dart-lang/sdk/issues/33022) have already been re-classified as warnings, as specified in https://github.com/dart-lang/sdk/issues/34349. Our known breaking bug-fixes which have not been re-classified are:

Interface checks and mixin overrides (https://github.com/dart-lang/sdk/issues/32014 and https://github.com/dart-lang/sdk/issues/34235).  These checks are necessary for soundness, so they can probably not be re-classified. At the same time, the risk of existing code breaking because of these checks is high, as these override relationships can sometimes be quite subtle. A violation has already been found (and fixed) in dartdoc.
Relaxed generic interface conflict check (https://github.com/dart-lang/sdk/issues/34574). This was a work-around for existing super mixin code in Flutter. The flutter code has been fixed. This change is probably safe.
Type arguments after named constructor with implicit new (https://github.com/dart-lang/sdk/issues/34403). Making this a warning would be sound (as it is just unsupported syntax), but doing so will hinder future implementation of the feature, as discussed in the issue.
Redirection from const to non-const constructor (https://github.com/dart-lang/sdk/issues/34161). Unlikely to occur in existing code, as such a situation would probably fail either in the back-end or at runtime.
FutureOr in an implements clause (https://github.com/dart-lang/sdk/issues/33744). Very unlikely to occur in existing code.
Setter with the same name as the enclosing class (https://github.com/dart-lang/sdk/issues/34225). Unlikely, but also harmless to re-classify.
Import prefix hidden by class member (https://github.com/dart-lang/sdk/issues/34498).

Action items:

[x] Decide which (if any) of these errors should be re-classified as warnings, and add them to the list in https://github.com/dart-lang/sdk/issues/34349.
[x] Decide how to go about rolling these changes (in particular the first in the list) into internal code. Maybe we want to test it before landing the change (compiling all the code should suffice). Maybe we want to land the checks as warnings first, then up them to errors after fixing existing code.
[x] Fix all existing internal code.
[x] Assess impact on external code.
[x] Land the remaining fixes.
[ ] Describe all of these changes in the release notes for 2.1.
[x] Mail flutter-dev, dart-misc, and dart-announce with breaking fix announcement.

@kmillikin given our timeline, is this still viable?

I'm sorry, I didn't understand the status of #34498.  It's not caught by the CFE or the Analyzer, for different reasons.
It looks like we'll ship Dart 2.1 without fixing the issue in the front end unless the language team wants to elevate the priority for it.

Correction: https://github.com/dart-lang/sdk/issues/33022 will not be breaking whatever we do, since it was detected by the analyzer (as a warning) in 2.0.

Any further updates here?

Fixes have landed for all 8 issues mentioned in the list. Only communication remains.
I can write a description of each change with examples. That could then go in the release notes and on the mailing lists with an appropriate introduction.
As mentioned, there is a corner case of https://github.com/dart-lang/sdk/issues/33308 (related to generic typedefs) which is also breaking. I will include that on the list of descriptions.

"It is a compile-time error if a class named C declares a member with
basename C." (10)
Dart 2.0 lacked this check for setters, allowing this code:
class A {
  set A(int x) {}
}

Issue link: https://github.com/dart-lang/sdk/issues/34225

"When const? is const, it is a compile-time error if the redirectee
is not a constant constructor." (10.6.1)
Dart 2.0 allowed a constant constructor to redirect to a non-constant
constructor, like this:
class A {
  const A.foo() : this(); // Redirecting to A()
  A() {}
}

Issue link: https://github.com/dart-lang/sdk/issues/34161

"Let C be a concrete class whose interface has an accessible member m named
id. It is a compile-time error if C does not have a concrete member m0
named id which is a correct override of m, unless C has a concrete method
named noSuchMethod which is different from the one in the built-in class
Object, and C does not have a concrete member named id." (10.8.1)
Dart 2.0 missed this check in some cases. So for instance, this code would be
allowed:
class A {
  num get thing => 2.0;
}

abstract class B implements A {
  int get thing;
}

class C extends A with B {} // 'thing' from 'A' is not a valid override of 'thing' from 'B'.

main() {
  print(new C().thing.isEven); // Expects an int but gets a double.
}

Issue link: https://github.com/dart-lang/sdk/issues/32014

"It is a compile-time error if an element in the type list of the implements
clause of a class C is type FutureOr<T> for any T." (10.9)
Dart 2.0 did not perform this check, allowing code like:
class A implements FutureOr<Object> {}

Issue link: https://github.com/dart-lang/sdk/issues/33744

"It is a compile-time error if a class C has two superinterfaces that are
different instantiations of the same generic class." (10.9)
Dart 2.0 contained a temporary relaxation of this rule that would allow two
instantiations of the same generic class if one was a subtype of the other.
For instance, this code would be accepted:
class I<T> {}

class A {}

class B extends A {}

class X implements I<B> {}

class Y extends X implements I<A> {} // Y implements both I<A> and I<B>

Issue link: https://github.com/dart-lang/sdk/issues/34574

"Let K be a class declaration with the same constructors, superclass and
interfaces as C, and the instance members declared by M
(respectively M1, . . . , Mk). It is a compile-time error if the
declaration of K would cause a compile-time error." (12.1)
Dart 2.0 did not check whether members of a mixin were correct overrides
of the corresponding member of the superclass in a mixin application. This
would allow code such as:
class A {
  int get thing => 2;
}

class B {
  num get thing => 2.0;
}

class C extends A with B {} // 'thing' from 'B' is not a valid override of 'thing' from 'A'.

main() {
  A a = new C();
  print(a.thing.isEven); // Expects an int but gets a double.
}

Issue link: https://github.com/dart-lang/sdk/issues/34235

"Consider a generic type alias declaration G named F with formal type
parameter declarations X1 extends B1, . . . , Xm extends Bm, and right hand
side T, and the parameterized type S of the form F<T1, . . . , Tl>.
It is a compile-time error if S is not well-bounded." (14)
Dart 2.0 was missing this well-bounded check, allowing this code:
class A<X extends int> {}

typedef F<Y extends int> = A<Y> Function();

F<num> f = null;

Issue link: https://github.com/dart-lang/sdk/issues/33308

Dart 2.0 allowed the type arguments for an instance creation of a generic class
using a named constructor to be placed after the constructor name when the
optional new keyword was omitted.
class A<T> {
  A.foo() {}
}

main() {
  A.foo<String>(); // Incorrect syntax, was accepted in 2.0
  A<String>.foo(); // Correct syntax
}

Issue link: https://github.com/dart-lang/sdk/issues/34403

Dart 2.0 allowed a type to use a prefix even if that prefix was shadowed by
a declaration.
import 'dart:core';
import 'dart:core' as core;

class A {
  core.List get core => null; // core refers to the field, not the prefix
}

Issue link: https://github.com/dart-lang/sdk/issues/34498

Indeed it seems the 2.0 analyzer caught https://github.com/dart-lang/sdk/issues/34574. It also catches the specific example I wrote for https://github.com/dart-lang/sdk/issues/34235, but it did miss some mixin overrides, as described in https://github.com/dart-lang/sdk/issues/34317. I will write a better example for https://github.com/dart-lang/sdk/issues/34235 which is also missed by the 2.0 analyzer.

"Let K be a class declaration with the same constructors, superclass and interfaces as C, and the instance members declared by M (respectively M1, . . . , Mk). It is a compile-time error if the
declaration of K would cause a compile-time error." (12.1)
Dart 2.0 did not always check whether members of a mixin were correct overrides of the corresponding member of the superclass in a mixin application. This would allow code such as:
class A {
  num get thing => 2.0;
}

class M1 {
  int get thing => 2;
}

class B = A with M1;

class M2 {
  num get thing => 2.0;
}

class C extends B with M2 {} // 'thing' from 'M2' not a valid override.

main() {
  M1 a = new C();
  print(a.thing.isEven); // Expects an int but gets a double.
}

Issue link: https://github.com/dart-lang/sdk/issues/34235

Replaces the corresponding section for https://github.com/dart-lang/sdk/issues/34235. Only https://github.com/dart-lang/sdk/issues/34574 goes away.

@munificent Are you handling the CHANGELOG for these?

Yup, I made a note to include the stuff in this issue. @askeksa-google, if you want, you can put this directly in the CHANGELOG file too.
In general, any time anyone lands a change in the SDK that is breaking or significantly impacts users, that CL should also add a description to the CHANGELOG. We can go back and condense stuff in the CHANGELOG later, but it's important that it gets written down at least once so that we know to include it at all.

@askeksa-google Thanks very much for the writeup.
I've posted a summary to dart-misc and flutter-dev.

@munificent Once the CHANGELOG entry lands can you close this out?

You got it!

Any ETA on the CHANGELOG, @munificent ?

https://github.com/dart-lang/sdk/issues/32014 and https://github.com/dart-lang/sdk/issues/34235 (with the old example) were mentioned in the CHANGELOG when they were committed. The change is here: https://dart-review.googlesource.com/c/sdk/+/77741

I've been out sick, but I'll try to get to it today.

CL out: https://dart-review.googlesource.com/c/sdk/+/82361

Looks like @munificent changelog changes landed. @askeksa-google anything else we need here?

Closing it since I think this was just waiting on the CHANGELOG. @askeksa-google, feel free to re-open if you think there's more to do.


Bump rocksdb to v8.9.1

Full release notes - https://github.com/facebook/rocksdb/releases/tag/v8.9.1
Bug fixed

Avoid destroying the periodic task scheduler's default timer in order to prevent static destruction order issues
Fixed a crash or assertion failure bug in experimental new HyperClockCache
Fix a race between flush error recovery and db destruction that can lead to db crashing
Fixed some bugs in the index builder/reader path for user-defined timestamps in Memtable only feature

New features

Added rocksdb_ratelimiter_create_auto_tuned API to create an auto-tuned GenericRateLimiter
Add GetEntity() and PutEntity() API implementation for Attribute Group support
Add new Cache APIs GetSecondaryCacheCapacity() and GetSecondaryCachePinnedUsage() to return the configured capacity, and cache reservation charged to the secondary cache.
During off-peak hours defined by daily_offpeak_time_utc, the compaction picker will select a larger number of files for periodic compaction
Deleting stale files upon recovery are delegated to SstFileManger if available so they can be rate limited.
When WAL_ttl_seconds > 0, we now process archived WALs for deletion at least every WAL_ttl_seconds / 2 seconds.

Seems rocksdb_ratelimiter_create_auto_tuned is just a C API to create an auto-tuned GenericRateLimiter , which not high related to us..


Change location of gravity / black hole effect

Is it possible to make a specific point the center of gravitational pull?
eg. when I select/click a shape I want to make all the other shapes become attracted to that shape almost like it has become a black hole. The closest example I can think of is the bridge if it was possible to turn the bridge mechanic off and on manually.

Sure, you can just disable the built in gravity and then use Body.applyForce at the position you'd like.
But there's also a plugin for this! Check out matter-attractors.

Sure, you can just disable the built in gravity and then use Body.applyForce at the position you'd like.
But there's also a plugin for this! Check out matter-attractors.

@liabru Look at you! You're doing great things my friend.

Hi @jacksonkr, were you able to implement this? How, and can you help me out with same? Immediate help would be appreciated, thanks!!

@arjuaman I vaguely remember doing exactly what was mentioned, disabling global gravity then applying force to individual objects toward the black hole's position. Ultimately it's been too long and I have no idea where that prototype is. Best of luck!


The version of TVM used in fast-depth and model transformation pipline

Does  mobilenet-nnconv5dw-skipadd-pruned.pth.tar has been optimized or compiled by Specific version of TVM?
For deploying, when i use TVM0.6, there will be an error with the function "get_nums_output", i have checked that in TVM0.6 and there's an extra function "get_nums_output". But when i use TVM0.4, error occurs:
"Operator {} not implemented.".format(op_name)) NotImplementedError: Operator Upsample not implemented.
Probably these all due to TVM version.
In addition,i use the pipeline to deploy:
mobilenet-nnconv5dw-skipadd-pruned.pth.tar-->onnx model-->TVM deploy model
Is there any advice to model transformation?

Hi @MRinel,
We used a version of TVM that was between v0.4 and v0.5. To get the specific version of TVM used in our pipeline, please do:
git clone --recursive https://github.com/dmlc/tvm
cd tvm
git reset --hard ab4946c8b80da510a5a518dca066d8159473345f
git submodule update --init

You could then proceed with building TVM as specified here.
Operators are defined in tvm/nnvm/python/nnvm/frontend/onnx.py. You can search that file for class Upsample(OnnxOpConverter). In older versions of TVM, the Upsample operator had not yet been implemented, which may explain why you are seeing a NotImplementedError. In the version specified above, this operator had been added.
For our work, we modified this operator slightly to:
class Upsample(OnnxOpConverter):
    """ Operator converter for Upsample (nearest mode).
    """

    @classmethod
    def _impl_v7(cls, inputs, attr, params):
        scales = attr.get('scales')
        #assert len(scales) == 4 and scales[0] == 1.0 and scales[1] == 1.0 and scales[2] == scales[3]
        mode = attr.get('mode')
        if mode == b'nearest':
            method = "NEAREST_NEIGHBOR"
        elif mode == b'bilinear':
            method = "BILINEAR"
        else:
            raise ValueError("Invalid ONNX upsample mode: {}".format(mode))
        return _sym.upsampling(inputs[0], scale=2, method=method, layout='NCHW')

After modifying this file, you would need to rerun the Python package installation.
Yes, the pipeline we used was mobilenet-nnconv5dw-skipadd-pruned.pth.tar --> onnx model --> compile/deploy with TVM. We performed auto-tuning for CPU and GPU backends using AutoTVM.


Implement add NUSMods feature

Issue
Issue number - #76
PR type
Implement user story MVP

Apologies, made PR to wrong repo


doc: Added access.log to gitignore

LGTM

@codydaig Just so I understand.. The access.log file was being generated from the application, and added to the gh-pages branch? I guess I don't understand the correlation between what is added to the gh-pages from master.

@mleanos Any files that arn't checked into git in the master get left behind when you change branches. So when you change branches from master to gh-pages the newly created access.log gets transfered and since we don't want it committed to the gh-pages branch either, we have to add it to the .gitignore in the gh-pages branch. Does that make sense?

Yes, completely. I've never checked out the gh-pages branch, so I wasn't thinking of it in terms of switching branches back & forth.
Is there a way to make it easier to manage .gitignore between the two branches? It may not be a big deal since there aren't many cases where a file is created in master that won't be tracked by Git.
Also, you may want to add *.log & logs/ to this gitignore. Other log files, and the logs directory may be generated as well.

@mleanos Does the meanjs app create those anywhere?

@codydaig No, but a user may when running the application locally. Depending on their Logger settings.
If you look here, https://github.com/meanjs/mean/blob/master/.gitignore#L30, you'll see that these settings are present; *.log & logs/ have been in the gitignore for quite some time.


Can we build and run Anakin with MKLDNN on CPU for CNN models?

We have use MKLDNN in our latest code, but no mkldnn op will be use for runing model. We will use our JIT code. MKLDNN OP will be used in next code


viostor: 4Kn disk corruption after DISCARD/UNMAP

4Kn virtio disks (virtio block device). After TRIM in Windows 10, disk becomes corrupted or Unavailable with message E: is not accessible. Data error (cyclic redundancy check).
The reason of issue  - LBA sectors in guest virtio driver considered as 4K (in case of 4K emulated disk) and passed in discard operation w/o any translation, but VIRTIO b1.1 standard considers sectors as 512-byte units. That leads to discarding wrong data space in emulated disks.

Hi Vitaliy,
I already asked our QE to reproduce it
( https://bugzilla.redhat.com/show_bug.cgi?id=1890810#c1 )
But it will be nice if you can confirm that the problem is reproducible on qemu and
provide us with qemu command line.
Thanks,
Vadim.

Hi, Vadim.
We saw it with bhyve hypervisor. I am not sure about qemu. Can qemu emulate 4Kn drives ?

Vitaliy Gusev

On 23 Oct 2020, at 03:22, Vadim Rozenfeld<EMAIL_ADDRESS>wrote:
Hi Vitaliy,
I already asked our QE to reproduce it
( https://bugzilla.redhat.com/show_bug.cgi?id=1890810#c1 https://bugzilla.redhat.com/show_bug.cgi?id=1890810#c1 )
But it will be nice if you can confirm that the problem is reproducible on qemu and
provide us with qemu command line.
Thanks,
Vadim.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/virtio-win/kvm-guest-drivers-windows/issues/513#issuecomment-714833034, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUSBG5CDFTA6GLQCPCK2TSMDEDJANCNFSM4S3WRT6A.

Sure.
See https://bugzilla.redhat.com/show_bug.cgi?id=1410964 for example.

Ok. Will try to setup it and reproduce. I guess behaviour should be the same.

Vitaliy Gusev

On 23 Oct 2020, at 09:59, Vadim Rozenfeld<EMAIL_ADDRESS>wrote:
Sure.
See https://bugzilla.redhat.com/show_bug.cgi?id=1410964 https://bugzilla.redhat.com/show_bug.cgi?id=1410964 for example.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/virtio-win/kvm-guest-drivers-windows/issues/513#issuecomment-715013981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUSBALWWZY7XWCEBDGEIDSMESVVANCNFSM4S3WRT6A.

Vadim,
I reproduced corruption on Qemu, with both “raw” and “qcow2” formats.
To speedup corruption just run command in PowerShell (Replace F with your drive name) :
 Optimize-Volume -DriveLetter F -ReTrim -Verbose

Wait for 20-30 seconds and reboot VM.
Please ensure system supporting TRIM for that drive:
C:\>fsutil fsinfo sectorInfo F:

It should show "Trim Supported” and "LogicalBytesPerSector :  4096"
I added “discard=unmap”  to the qemu’s drive option, but it seems as default value:
 -drive file=./disk2.img,format=raw,if=none,id=drive-virtio-disk2,discard=unmap

Result for “raw” format:  VM OS saw Drive F totally corrupted, i.e. “Not Initialized”.
For “qcow2” format result was less dramatic (maybe because data blocks haven’t been really unmapped and were alive), but VM OS saw corruption too.

Vitaliy Gusev

On 23 Oct 2020, at 10:29, Vitaliy Gusev<EMAIL_ADDRESS>wrote:
Ok. Will try to setup it and reproduce. I guess behaviour should be the same.

Vitaliy Gusev

On 23 Oct 2020, at 09:59, Vadim Rozenfeld<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Sure.
See https://bugzilla.redhat.com/show_bug.cgi?id=1410964 https://bugzilla.redhat.com/show_bug.cgi?id=1410964 for example.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/virtio-win/kvm-guest-drivers-windows/issues/513#issuecomment-715013981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUSBALWWZY7XWCEBDGEIDSMESVVANCNFSM4S3WRT6A.

I run qemu on MacOS. For Linux option for drive probably should have “cache=none” or “cache=“directsync”.

Vitaliy Gusev

On 24 Oct 2020, at 15:47, Vitaliy Gusev<EMAIL_ADDRESS>wrote:
Vadim,
I reproduced corruption on Qemu, with both “raw” and “qcow2” formats.
To speedup corruption just run command in PowerShell (Replace F with your drive name) :
 Optimize-Volume -DriveLetter F -ReTrim -Verbose

Wait for 20-30 seconds and reboot VM.
Please ensure system supporting TRIM for that drive:
C:\>fsutil fsinfo sectorInfo F:

It should show "Trim Supported” and "LogicalBytesPerSector :  4096"
I added “discard=unmap”  to the qemu’s drive option, but it seems as default value:
 -drive file=./disk2.img,format=raw,if=none,id=drive-virtio-disk2,discard=unmap

Result for “raw” format:  VM OS saw Drive F totally corrupted, i.e. “Not Initialized”.
For “qcow2” format result was less dramatic (maybe because data blocks haven’t been really unmapped and were alive), but VM OS saw corruption too.

Vitaliy Gusev

On 23 Oct 2020, at 10:29, Vitaliy Gusev<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Ok. Will try to setup it and reproduce. I guess behaviour should be the same.

Vitaliy Gusev

On 23 Oct 2020, at 09:59, Vadim Rozenfeld<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Sure.
See https://bugzilla.redhat.com/show_bug.cgi?id=1410964 https://bugzilla.redhat.com/show_bug.cgi?id=1410964 for example.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/virtio-win/kvm-guest-drivers-windows/issues/513#issuecomment-715013981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUSBALWWZY7XWCEBDGEIDSMESVVANCNFSM4S3WRT6A.

@vrozenfe Can we close this issues?

Fixed


Set Delegate=yes for cgroup transient units

We need to do this as we are managing some of the cgroups ourselves.
Signed-off-by: Mrunal Patel<EMAIL_ADDRESS>

:+1:

@rhatdan @runcom PTAL

:+1:

@derekwaynecarr FYI for groups


Remove unnecessary deps from glide.yaml

glide.yaml has a Google compute dependency left over from when
the GCE driver was in rexray instead of libstorage. Remove it.
Remove the section for driver dependencies, which only contained a
goscaleio entry. This dependency is also handled by libstorage at
this time.

Codecov Report

Merging #726 into release/0.8.0 will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           release/0.8.0    #726   +/-   ##
=============================================
  Coverage           7.43%   7.43%
=============================================
  Files                 21      21
  Lines               2581    2581
=============================================
  Hits                 192     192
  Misses              2372    2372
  Partials              17      17

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 2fad356...75082ef. Read the comment docs.


Make ASN1 spec more spec-like

Current specs are unit-test-ish.  Make those more spec-ish.

465e3a2b4cb9f590466839668077b6a428624629


Seemingly no functionality

It seems like nothing is working.
I am on a Xiaomi Phone with Android 11 and OpenKeychain installed.
I installed the app from F-Droid, disabled the power-saving, and selected OpenKeychain as the provider. The checkbox at the very top to activate the service is checked. My pgp key is unlocked.
When I go into any app and select some encrypted text nothing happens. I am not sure what is supposed to happen, but I don't get a notification and no popup.
Maybe I am still missing something?

Hello, Lightdm.
First, thanks for using my app. I was pleasantly surprised about the fact that someone is still using this app since it was not updated for a few years.
When the app is running, a foreground notification should be displayed in the notification centre. But since it isn't, I suspect something is broken related to the foreground service.
Unfortunately, since I'm not using this app currently on a daily basis, and since I don't have a Xiaomi device to test, it will be difficult for me to resolve this problem.
Also, since most device vendors are limiting the app's background functionality, I doubt it would be really useful and plausible to rewrite this app to make it work with more recent Android versions.
If there are enough demands, I will, of course, consider other options.
Again, thank you for trying out my app, and I'm sorry to be not able to help you with this matter.


Add embedded config file with options to jmusicbot

Description of changes

Change jmusicbot to use an embedded config that will be generated at runtime from inside-nix options instead of requiring outside-nix work from the user to create an manage the config file before the service can function.
stateDir is now a relative path which is used to store serversettings.json

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

What would you suggest I change the commit messages to? I'm struggling to really figure out what's expected in them. I can rebase after I know that though

What would you suggest I change the commit messages to? I'm struggling to really figure out what's expected in them. I can rebase after I know that though

Perhaps nixos/jmusicbot: refactor config handling

Which dropdown? I'm sorry for the difficulties, haven't done this in a while. Would this eliminate the merge commit as well?

Which dropdown?

The one next to "This branch is out-of-date with the base branch". There is a small arrow to the right of "Update branch". I think the easiest fix right now would be git pull && git reset --hard HEAD~ && git rebase origin/master in your local nixpkgs clone (assuming you have https://github.com/NixOS/nixpkgs as remote origin).

Hopefully that should resolve the issue. Thanks.

can we get this merged? i rebased it again to work with the current main branch. it should be good to use

There are merge conflicts again, please fix. (Sorry for the late response, there are a lot of open PRs)


docs(pipelines): KFP V2 visualization doc. Partial: kubeflow/pipelines#5666

Partial: https://github.com/kubeflow/pipelines/issues/5666
Note: Missing HTML/Markdown visualization doc.
Question: Should we specify SDK and backend version for using new visualization approach?

I think we have the version statement in v2 sdk docs, so it's probably not required here.

/lgtm

/approve
consider adding an OWNERS file for https://github.com/kubeflow/website/tree/master/content/en/docs/images/pipelines? so that I won't be the only person that can approve this


InitialRouteName not working for TabNavigator inside StackNavigator after update to beta.13

Current Behavior

I set initialRouteName in TabNavigator, but always load in first tab

const Tab = TabNavigator(
    {
        homeTab: {
            screen: Home,
            navigationOptions: {
                tabBarIcon: ({ tintColor }) => (
                    <Icon name={'home'} style={{ color: tintColor }} />
                )
            }
        },
        profileTab: {
            screen: Profile,
            navigationOptions: {
                tabBarIcon: ({ tintColor }) => (
                    <Icon name={'user'} style={{ color: tintColor }} />
                )
            }
        }
    }, {
        initialRouteName: 'profileTab',
        tabBarComponent: TabBarBottom,
        tabBarOptions: {
            activeTintColor: '#05b0ba',
            inactiveTintColor: '#a7a9ac',
            activeBackgroundColor: '#fff',
            inactiveBackgroundColor: '#fff',
            showIcon: true,
            showLabel: false,
            tabStyle: {
                ...shadow.tab,
                backgroundColor: '#fff'
            }
        }
    }
);

Expected Behavior

Render in initialRouteName when is setted.

Your Environment

software
version

react-navigation
1.0.0-beta.13

react-native
0.45.1

node
8.5.0

yarn
1.0.2

+1

Can you put together a running demo?

I can confirm that something is different with this in beta 13, i switched back to beta 11, and now everything is working as should. But to me, it didn't actually want to load first screen in configuration, with initialRouteName or without...
welcome: { screen: WelcomeScreen },
auth: { screen: AuthScreen },
main: {
screen: TabNavigator({
...
In version beta11, it was automatically loading welcome screen, but in version 13 it started initially to go to main screen, even if I explicitly said initialRouteName:"welcome".

For me It's working even in beta 13. Initially I thought its not but there was a mistake from my side while setting up 'initialRouteName' value.

I create a new fresh demo and everything works fine, but above project has Redux and Redux Saga.
I will try to put the Redux configuration to see if it will continue working or not. Then I'll close this issue or I'll put the repo url here.

It's totally weird but now it's working and I don't know why. Thank you all.

same as beta 21

same as beta 27