message
stringlengths
13
484
diff
stringlengths
38
4.63k
Run ceph-ansible using tripleo-ansible-inventory Remove the generate inventory task and instead use the same inventory of the calling playbook which should now contain the inventory groups ceph-ansible expects as per the depends-on patch. Depends-On:
@@ -414,31 +414,14 @@ outputs: - "{{playbook_dir}}/ceph-ansible/group_vars" - "{{playbook_dir}}/ceph-ansible/host_vars" - "{{playbook_dir}}/ceph-ansible/fetch_dir" - - name: generate inventory - copy: + - name: symbolic link to tripleo inventory from ceph-ansible work directory + # If we call ceph-ansible with the same...
Use setdefault instead of get with a default Use a dict for constructing the force:org:create command
@@ -932,7 +932,7 @@ class ScratchOrgConfig(OrgConfig): @property def days(self): - return self.config.get('days', 7) + return self.config.setdefault('days', 7) @property def expired(self): @@ -957,27 +957,18 @@ class ScratchOrgConfig(OrgConfig): if not self.scratch_org_type: self.config['scratch_org_type'] = 'workspace...
CV GUI: set IR defaults based on command line options (they seem to be auto-applied: callback called on start)
@@ -481,9 +481,9 @@ class Demo: irDrivers = self._device.getIrDrivers() if irDrivers: print('IR drivers detected on OAK-D Pro:', [f'{d[0]} on bus {d[1]}' for d in irDrivers]) - Trackbars.createTrackbar('IR Laser Dot Projector [mA]', queueName, 0, 1200, 0, + Trackbars.createTrackbar('IR Laser Dot Projector [mA]', queueN...
Improve tests Tests didn't abide by one of the validation conditions for shadow forms. That is, they didn't include ever action in the source form.
@@ -33,6 +33,14 @@ class ShadowFormSuiteTest(SimpleTestCase, TestXmlMixin): self.shadow_form = self.factory.new_shadow_form(self.advanced_module) self.shadow_form.shadow_parent_form_id = self.form0.unique_id + # Shadow form load_update_case actions should contain all case tags from the parent + self.shadow_form.extra_a...
feat: separate namescope added to optimizer. Optimizer variables excluded from save/load methods
@@ -52,14 +52,19 @@ class TFModel(NNModel, metaclass=TfModelMeta): # Check presence of the model files if tf.train.checkpoint_exists(path): print('[loading model from {}]'.format(path), file=sys.stderr) - saver = tf.train.Saver() + # Exclude optimizer variables from saved variables + var_list = [var for var in tf.train...
Metadata API: add exception tests Add missing tests testing raising documented exceptions for "Metadata.sign()", "Metadata.to_file()" and "Metadata.from_file()".
@@ -13,6 +13,7 @@ import shutil import sys import tempfile import unittest +from copy import copy from datetime import datetime, timedelta from typing import Any, ClassVar, Dict @@ -126,6 +127,16 @@ class TestMetadata(unittest.TestCase): os.remove(bad_metadata_path) + def test_md_read_write_file_exceptions(self) -> Non...
STY: fixed import order Fixed the order of imports.
@@ -9,9 +9,9 @@ for the pysat data directory structure. from pysat.utils._core import available_instruments from pysat.utils._core import display_available_instruments from pysat.utils._core import display_instrument_stats +from pysat.utils._core import get_mapped_value from pysat.utils._core import generate_instrument...
Also fix Hero shelves/modules cta_urls that start with EXTERNAL_SITE_URL * Also fix Hero shelves/modules cta_urls that start with EXTERNAL_SITE_URL In the admin, SITE_URL is different from EXTERNAL_SITE_URL, let's fix both. * Fix tests
@@ -244,7 +244,9 @@ class CTACheckMixin: # Avoid locale & app prefixes in URLs for SecondaryHero/Module for our # own URLs: addons-frontend will automatically add the right ones # according to current context when displaying them. - if self.cta_url.startswith(('/', settings.SITE_URL)): + if self.cta_url.startswith( + (...
Expose transform method in preparation for http endpoint Move the version check as the transform method can be called independently.
@@ -22,16 +22,17 @@ class SpecFactory(object): fiaas_version = app_config.get(u"version", 1) self._fiaas_counter.labels(fiaas_version).inc() LOG.info("Attempting to create app_spec for %s from fiaas.yml version %s", name, fiaas_version) - if fiaas_version not in self._supported_versions: - raise InvalidConfiguration("R...
[PR updated per review comments [skip appveyor] [skip travis] Moved section on Python requirement to top; changed description of "side effects" in -c mode.
@@ -109,6 +109,15 @@ and a database of information about previous builds so details do not have to be recalculated each run. </para> +<para>&scons; requires Python 3.5 or later to run; +there should be no other dependencies or requirements. +<emphasis> +Support for Python 3.5 is deprecated since +&SCons; 4.2 and will b...
Add ec pool support Modified tests/rbd_system.py
@@ -22,7 +22,11 @@ def run(**kw): config = kw.get('config') script_name = config.get('test_name') timeout = config.get('timeout', 1800) - command = 'sudo python ~/' + test_folder + '/ceph-qe-scripts/rbd/system/' + script_name + if config.get('ec-pool-k-m', None): + ec_pool_arg = ' --ec-pool-k-m ' + config.get('ec-pool-...
Bugfix multipart form parsing field storage usage The previous version would add FieldStorage objects, rather than the value of the FieldStorage object into the form data. It also corrects the unnecessary and hack looking value extraction.
@@ -177,8 +177,8 @@ class Request(BaseRequestWebsocket, JSONMixin): for key in field_storage: # type: ignore field_storage_key = field_storage[key] if isinstance(field_storage_key, list): - for value in field_storage_key: - self._form.add(key, value) + for item in field_storage_key: + self._form.add(key, item.value) el...
osclient: Pass endpoint_type in kw_args to client Heatclient expects a value for endpoint_type from kw_args or it uses None. Rally.osclient does not pass endpoint_type to the heatclient. To rectify this, the endpoint_type variable is explicitly placed in kw_args and kw_args passed to the Heat client constructor.
@@ -388,12 +388,17 @@ class Heat(OSClient): """Return heat client.""" from heatclient import client as heat + kw_args = {} + if self.credential.endpoint_type: + kw_args["endpoint_type"] = self.credential.endpoint_type + client = heat.Client( self.choose_version(version), session=self.keystone.get_session()[0], # Remove...
Ignore facter error when fetching repo Even though a repo is set with skip_if_unavailable=True, Facter logs "Error:..." and then "Ignoring repositories...". We need to add this regexp to ignored list. Note: if repo should not be skipped if unavailable, dnf would have raised error before Facter run.
@@ -43,7 +43,10 @@ re_ignore = re.compile( 'yum.*?install swift-plugin-s3|' # facter gives a weird NM error when it's disabled, due to # https://tickets.puppetlabs.com/browse/FACT-697 - 'NetworkManager is not running' + 'NetworkManager is not running|' + # facter logs Error even though the repository is set to be skipp...
Add description to policies in migrate_server.py blueprint policy-docs
# License for the specific language governing permissions and limitations # under the License. -from oslo_policy import policy - from nova.policies import base @@ -22,12 +20,26 @@ POLICY_ROOT = 'os_compute_api:os-migrate-server:%s' migrate_server_policies = [ - policy.RuleDefault( - name=POLICY_ROOT % 'migrate', - chec...
Limit test to single domain to avoid breaking on tests that don't clean up properly
@@ -469,11 +469,14 @@ class TestAggregations(ElasticTestMixin, SimpleTestCase): @es_test class TestDateHistogram(SimpleTestCase): + domain = str(uuid.uuid4()) + @classmethod def setUpClass(cls): super().setUpClass() forms = [{ '_id': str(uuid.uuid4()), + 'domain': cls.domain, 'received_on': datetime.fromisoformat(d), }...
Make dials.apply_mask apply the mask ImageBool ...in addition to simply setting a reference to the mask filename. This change will only come to have any meaning once dials.apply_mask is reformatted according to the DIALS functional interface boilerplate.
from __future__ import absolute_import, division, print_function +import cPickle as pickle + +from dxtbx.format.image import ImageBool from iotbx.phil import parse help_message = """ @@ -97,7 +100,10 @@ def run(self): for i, imageset in enumerate(imagesets): # Set the lookup + with open(params.input.mask[i]) as f: + ma...
fix(config_flow): display claimspicker_message correctly Closes
@@ -292,10 +292,12 @@ class AlexaMediaFlowHandler(config_entries.ConfigFlow): "claimspicker_required" in login.status and login.status["claimspicker_required"] ): - message = "> {0}".format( - login.status["error_message"] if "error_message" in login.status else "" + error_message = "> {0}".format( + login.status["erro...
Update 4.2 swift version Uses the swift version that ships with Xcode 10 Beta 3.
@@ -68,9 +68,9 @@ supported_configs = { }, '4.2': { 'version': 'Apple Swift version 4.2 ' - '(swiftlang-1000.0.16.9 clang-1000.10.25.3)\n' + '(swiftlang-1000.0.25.1 clang-1000.10.28.1)\n' 'Target: x86_64-apple-darwin17.7.0\n', - 'description': 'Xcode 10 Beta 2 (contains Swift 4.2)', + 'description': 'Xcode 10 Beta 3 (c...
ops: Fix documentation of OpsAccess States what's OpsAccess is used for and fixes the parameter's types.
@@ -58,13 +58,14 @@ class OpsAccessible(basic.Symbol): class OpsAccess(basic.Basic, sympy.Basic): """ - OPS access + A single OPS access. The stencil of a given base (generated by to_ops_stencil) is the + union of all its accesses. Parameters ---------- base : OpsAccessible Symbol to access - indices: list of tuples of...
llvm, tests/predator-prey: Enable per-node compiled run Controller is compiled as one node so this i almost as fast as LLVMRun.
@@ -133,7 +133,7 @@ def test_simplified_greedy_agent_random(benchmark, mode): pytest.param([a / 10.0 for a in range(0, 101)]), ], ids=lambda x: len(x)) def test_predator_prey(benchmark, mode, samples): - if len(samples) > 10 and mode not in {"LLVMRun", "Python-PTX"}: + if len(samples) > 10 and mode not in {"LLVM", "LLV...
Theme/Scheme: Add builtin color completions This commit adds all the `--...ish` like colors to the variable completions. The completions are implemented in the color_scheme_dev.py to create consistent results with all the locally defined variables and to work around an issue of the sublime-completions file format, whic...
@@ -32,6 +32,20 @@ SCHEME_TEMPLATE = """\ ], }""".replace(" ", "\t") +VARIABLES = [ + ("--background\tbuiltin color", "--background"), + ("--foreground\tbuiltin color", "--foreground"), + ("--accent\tbuiltin color", "--accent"), + ("--bluish\tbuiltin color", "--bluish"), + ("--cyanish\tbuiltin color", "--cyanish"), + (...
don't define api_version variable for whole api.py file because reo/api.py now has Resources defined for versions 1 and 2
@@ -50,7 +50,6 @@ from django.core.exceptions import ValidationError from celery import group, chain log = logging.getLogger(__name__) -api_version = "version 1.0.0" saveToDb = True @@ -99,6 +98,7 @@ class Job(ModelResource): return self.get_object_list(bundle.request) def obj_create(self, bundle, **kwargs): + api_vers...
Optimization: Enable "void" C type * This avoids storing values before releasing them, as forces optimization to handle unused values perfectly.
@@ -22,8 +22,6 @@ only statement. """ -from nuitka import Options - from .CodeHelpers import generateExpressionCode from .ErrorCodes import getReleaseCode @@ -37,20 +35,11 @@ def generateExpressionOnlyCode(statement, emit, context): def getStatementOnlyCode(value, emit, context): - # TODO: Introduce "void" as a C type,...
issue Revert "ci: update to Ansible 2.8.3" This reverts commit
@@ -36,25 +36,25 @@ matrix: include: # Debops tests. - # 2.8.3; 3.6 -> 2.7 + # 2.8.0; 3.6 -> 2.7 - python: "3.6" - env: MODE=debops_common VER=2.8.3 + env: MODE=debops_common VER=2.8.0 # 2.4.6.0; 2.7 -> 2.7 - python: "2.7" env: MODE=debops_common VER=2.4.6.0 # Sanity check against vanilla Ansible. One job suffices. - p...
Fixed client-side errors, like data type validation, not displaying. Also removed server-error-message class, which wasn't doing anything, and removed the bolding from the new UI.
<ul data-bind="foreach: erroredQuestions"> <li> <a href="#" data-bind="click: navigateTo, html: caption_markdown() || caption()"></a> - <span class="error-message server-error-message" data-bind=" - visible: serverError, - text: serverError - "></span> - <span class="error-message server-error-message" data-bind=" - if...
py3/tools: Remove a tuple function parameter PEP 3113 removed this feature.
@@ -255,12 +255,13 @@ class Reindenter: return line # Line-eater for tokenize. - def tokeneater(self, type, token, (sline, scol), end, line, + def tokeneater(self, type, token, sline_and_scol, end, line, INDENT=tokenize.INDENT, DEDENT=tokenize.DEDENT, NEWLINE=tokenize.NEWLINE, COMMENT=tokenize.COMMENT, NL=tokenize.NL):...
(fix) Changes OMS connector missing order behaviour on cancellation The connector now logs the order as not found with the order tracker if this message is received on cancellation request.
@@ -205,9 +205,7 @@ class OMSExchange(ExchangePyBase): cancel_success = False if cancel_result.get(CONSTANTS.ERROR_CODE_FIELD): if cancel_result[CONSTANTS.ERROR_CODE_FIELD] == CONSTANTS.RESOURCE_NOT_FOUND_ERR_CODE: - self._order_not_found_on_cancel_record[order_id] += 1 - if self._order_not_found_on_cancel_record[order...
Optimization: Faster exception dropping * Avoid getting using thread state twice, on Python3 this can be slower. * Also avoid reading current exception type again, we already know it's set.
@@ -556,12 +556,24 @@ NUITKA_MAY_BE_UNUSED static inline void ADD_EXCEPTION_CONTEXT(PyObject **excepti */ NUITKA_MAY_BE_UNUSED static bool CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED(void) { - PyObject *error = GET_ERROR_OCCURRED(); + PyThreadState *tstate = PyThreadState_GET(); - if (error == NULL) { + if (tstate->curexc_...
library.Field class rename to FilterField update library.LibrarySection.filterFields() usage
@@ -479,7 +479,7 @@ class LibrarySection(PlexObject): for meta in data.iter('Meta'): for metaType in meta.iter('Type'): if not mediaType or metaType.attrib.get('type') == mediaType: - fields = self.findItems(metaType, Field) + fields = self.findItems(metaType, FilterField) for field in fields: field._initpath = metaTyp...
util: testing: consoletest: commands: run_command(): Kill process group Caused issues with InnerSource swportal nodejs http-server which liked to hang around and keep unittest alive
@@ -14,6 +14,7 @@ import asyncio import pathlib import inspect import tempfile +import platform import functools import contextlib import subprocess @@ -361,7 +362,9 @@ def pipes(cmd): async def stop_daemon(proc): - # Send ctrl-c to daemon if running + if platform.system() != "Windows": + # Kill the whole process group...
configuration/plugin_cache: Add target names as allowed plugin configs Allow setting of device configuration by specifying target name.
@@ -80,6 +80,7 @@ class PluginCache(object): raise RuntimeError(msg.format(source)) if (not self.loader.has_plugin(plugin_name) and + plugin_name not in self.targets and plugin_name not in GENERIC_CONFIGS): msg = 'configuration provided for unknown plugin "{}"' raise ConfigError(msg.format(plugin_name))
Update generic.txt No ```POST``` to identify malware explicitly, hence -- ```generic.txt```
@@ -3642,3 +3642,12 @@ http://176.10.118.191 # Reference: https://www.virustotal.com/gui/domain/yourdocument.biz/relations yourdocument.biz + +# Reference: https://twitter.com/takerk734/status/1135955547310632960 + +http://95.213.217.139 +http://54.36.218.96 +maidcafeyoyo.fun +simbaooshi.space +summerch.xyz +wagenstead...
Add PacemakerNetwork definition This gives us the 'pacemaker_node_ips' hiera key on all nodes, which will be needed because pcs 0.10 needs to specify the ip addresses of the cluster when setting up a pcmk2.0 cluster based on knet-corosync.
@@ -99,6 +99,7 @@ parameters: MistralApiNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }} ZaqarApiNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }} DockerRegistryNetwork: ctlplane + PacemakerNetwork: {{ _service_nets.get('internal_api', 'ctlplane') }} PacemakerRemoteNetwork: {{ _service_nets.get('...
Swap two lines in a build file Swap the order of two lines in a build file to silent the warning of transforming oss code into google internal codebase.
@@ -57,8 +57,8 @@ tfx_py_proto_library( srcs = ["local_deployment_config.proto"], deps = [ ":executable_spec_py_pb2", - ":platform_config_py_pb2", ":metadata_py_pb2", + ":platform_config_py_pb2", "@com_github_google_ml_metadata//ml_metadata/proto:metadata_store_py_pb2", ], )
Fix two mistakes of method description Fix two mistakes of method description in processor.py
@@ -22,8 +22,8 @@ def main(): service.prepare_service() # NOTE(mc): This import is done here to ensure that the prepare_service() - # fonction is called before any cfg option. By importing the orchestrator - # file, the utils one is imported too, and then some cfg option are read + # function is called before any cfg o...
purge-container: get *all* osds id Adding `--all` to the `systemctl list-units` command in order to get *all* osds id on the node (including stoppped osds). Otherwise, it will purge the cluster but there will be leftover after that. Closes:
- name: get all the running osds shell: | - systemctl list-units | grep 'loaded[[:space:]]\+active' | grep -oE "ceph-osd@([0-9]+).service" + systemctl list-units --all | grep -oE "ceph-osd@([0-9]+).service" register: osd_units ignore_errors: true
Update ConfigurationForm.html to allow blank s3_unload_location Currently, the form gives a validation failure if the unrequired System Tables S3 Unload Location form field isn't filled in.
@@ -61,6 +61,10 @@ $('#config-form').parsley().on('field:validated', function() { if (config['kms_auth_context'] == "") { delete config['kms_auth_context']; } + if (config['s3_unload_location'] == "") { + delete config['s3_unload_location']; + } + config['comprows'] = -1; config['ignore_errors'] = true; @@ -131,7 +135,...
plot labels and vlines in every LogPlotter.apply_commands() call fixes not plotting labels and vlines when show_legends was False
@@ -120,8 +120,8 @@ class LogPlotter(Struct): yminor_locator = AutoLocator() self.ax[ig].yaxis.set_minor_locator(yminor_locator) - if self.show_legends: for ig, ax in enumerate(self.ax): + if self.show_legends: try: ax.legend() except:
Enhancement to Resize Augmentation Added antialiasing option to Resize augmentation similar to Resize in geometry.transforms.
@@ -18,6 +18,7 @@ class Resize(GeometricAugmentationBase2D): side: Which side to resize, if size is only of type int. resample: Resampling mode. align_corners: interpolation flag. + antialias: if True, then image will be filtered with Gaussian before downscaling. No effect for upscaling. keepdim: whether to keep the ou...
Fixes formatting Minor formatting Markdown formatting.
@@ -74,7 +74,7 @@ We've created this [tutorial](/tutorial) to build a basic Slack app in less than --- -Slack provide a Web API that gives you the ability to build applications that interact with Slack in a variety of ways. This Development Kit is a module based wrapper that makes interaction with that API easier. We h...
Fix test repo schedules Test Plan: buildkite Reviewers: sashank
@@ -158,6 +158,8 @@ def long_running_pipeline_celery(): def define_demo_execution_repo(): + from .schedules import define_schedules + return RepositoryDefinition( name='demo_execution_repo', pipeline_dict={ @@ -165,4 +167,5 @@ def define_demo_execution_repo(): 'long_running_pipeline_celery': define_long_running_pipelin...
update esmya text small tweaks
-Hello! +Hello, This is an important safety update about {{ org_name }} from OpenPrescribing. Last night the MHRA issued a safety alert and advised that patients taking Esmya (ulipristal acetate) for uterine fibroids should STOP their treatment IMMEDIATELY. @@ -6,7 +6,7 @@ We have identified that your organisation has ...
SetExpression Doc : prefer 'difference' over 'ANDNOT' and also prefer British english over American english.
@@ -22,13 +22,13 @@ A B C B C D C D E E The following operators are currently supported ```eval_rst -=================== ==================================== -Operator Behavior -=================== ==================================== -\| OR, unites two sets -& AND, intersects two sets -\- ANDNOT, removes elements from...
test: add Node.js 6 on Windows to Travis CI Test the oldest supported Node version on Windows. PR-URL:
@@ -10,7 +10,13 @@ matrix: osx_image: xcode10.2 language: shell # 'language: python' is not yet supported on macOS before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew install npm - - name: "Python 2.7 on Windows" + - name: "Node.js 6 & Python 2.7 on Windows" + os: windows + language: node_js + node_js: 6 # node + env: PATH=...
help docs: Fix a wrong link in create-a-stream doc Discussion:
# Create a stream By default, all users other than guests can create streams. Administrators can -[restrict the ability to create a stream](/help/stream-permissions) to specific +[restrict the ability to create a stream](/help/configure-who-can-create-streams) to specific [roles](/help/roles-and-permissions). If you ar...
Fix default branch Git now uses the branch that the cache was checked out to, rather than master, by default. This then follows the selection of 'default branch' as understood by github
@@ -1278,12 +1278,23 @@ class Repo(object): with self.cache_lock_held(url): shutil.copytree(cache, path) + # + # If no revision was specified, use the branch associated with the cache. In the + # github case this will be the default branch (IOTBTOOL-279) + # + if not rev: + with cd(cache): + branch = scm.getbranch() + ...
Add debug flag to helm integration suite Summary: So we can see the rendered templates when debugging errors Test Plan: integration Reviewers: max
@@ -191,6 +191,7 @@ def _helm_chart_helper(namespace, should_cleanup, helm_config, helm_install_name "install", "--namespace", namespace, + "--debug", "-f", "-", "dagster", @@ -203,8 +204,8 @@ def _helm_chart_helper(namespace, should_cleanup, helm_config, helm_install_name helm_cmd, stdin=subprocess.PIPE, stdout=subpro...
Forbid using `qubit` as the type of the loop variable There currently are no defined semantics for "assigning" to a qubit outside of subroutines, and making this change in the context of the for-loop is too much. If this is to be allowed, it should be part of a larger discussion.
@@ -210,9 +210,9 @@ iterations of the loop ``body``. ``values`` can be: and ``stop`` is an ``int[16]``, the values to be assigned will all be of type ``int[16]``. -- a value of type ``qubit[n]`` or ``bit[n]``, or the target of a - ``let`` statement. The corresponding scalar type of the loop variable is - ``qubit`` or `...
Contributing steps updated Minor phrasing updates to match Github format changes.
@@ -20,10 +20,10 @@ To generate the HTML files from markdown in the `/source` directory: 1. Sign the Contributor License Agreement (see instructions in the next section). 3. On the Mattermost Documentation page that you want to edit, click the GitHub icon on the upper right corner that says "Edit". -4. Click "Edit this...
Workshop tags: add reading & parsing split "latlng" into ("lat", "lng") This fixes
@@ -52,7 +52,8 @@ NUM_TRIES = 100 ALLOWED_METADATA_NAMES = [ 'slug', 'startdate', 'enddate', 'country', 'venue', 'address', - 'latlng', 'language', 'eventbrite', 'instructor', 'helper', 'contact', + 'latlng', 'lat', 'lng', 'language', 'eventbrite', 'instructor', 'helper', + 'contact', ] @@ -651,7 +652,7 @@ def find_met...
[cleanup] Instantiate GeneratorFactory for commons site Part 4 detached from
@@ -200,7 +200,8 @@ def main(*args): # Process global args and prepare generator args parser local_args = pywikibot.handle_args(args) - genFactory = pagegenerators.GeneratorFactory() + site = pywikibot.Site('commons', 'commons') + genFactory = pagegenerators.GeneratorFactory(site=site) for arg in local_args: if arg == ...
Fix a typo Fix a typo in parsing boolean values
@@ -277,7 +277,7 @@ class BoolParamType(ParamType): if isinstance(value, bool): return bool(value) value = value.lower() - if value in ('true', 't,' '1', 'yes', 'y'): + if value in ('true', 't', '1', 'yes', 'y'): return True elif value in ('false', 'f', '0', 'no', 'n'): return False
Improve log messages The origin is now precisely printed without the need to explicitly specify it.
@@ -103,7 +103,11 @@ def log(message, level="INFO", origin=None, prefix=""): # originname = origin.bl_idname #else: # originname = origin - originname = inspect.stack()[1][1].split('addons/')[-1] + ' - ' + inspect.stack()[1][3] + #originname = inspect.stack()[1][1].split('addons/')[-1] + ' - ' + inspect.stack()[1][3] +...
Forbid implicit envs for all properties in EnvSpec TN:
@@ -240,7 +240,7 @@ class EnvSpec(object): expr, AbstractNodeData.PREFIX_INTERNAL, name=names.Name('_{}_{}'.format(name, next(self.PROPERTY_COUNT))), - public=False, type=type, has_implicit_env=True + public=False, type=type ) result.append(p) return p
Remove redundant code in QosServiceDriverManager I don't see notification_api [1] is used anywhere and it duplicate with push_api[2]. So this patch-set removed it. [1]https://github.com/openstack/neutron/blob/master/neutron/services/qos/drivers/manager.py#L41 [2]https://github.com/openstack/neutron/blob/master/neutron/...
@@ -38,7 +38,6 @@ class QosServiceDriverManager(object): def __init__(self): self._drivers = [] - self.notification_api = resources_rpc.ResourcesPushRpcApi() self.rpc_notifications_required = False rpc_registry.provide(self._get_qos_policy_cb, resources.QOS_POLICY) # notify any registered QoS driver that we're ready, t...
Update writing_NXdata.rst The interpretation attribute is duly documented by NeXus.
@@ -154,8 +154,7 @@ a *frame number*. .. note:: - This additional attribute is not mentionned in the official NXdata - specification. + This attribute is documented in the official NeXus `description <https://manual.nexusformat.org/nxdl_desc.html>`_ Writing NXdata with h5py
Update arrayeditor.py to correct deprecated numpy operator Changed numpy boolean subract operator '-' to np.logical_xor. As suggested in the numpy deprec warning. Tested locally with no error originally described in
@@ -266,7 +266,7 @@ def data(self, index, role=Qt.DisplayRole): elif role == Qt.BackgroundColorRole and self.bgcolor_enabled \ and value is not np.ma.masked: hue = self.hue0+\ - self.dhue*(self.vmax-self.color_func(value)) \ + self.dhue*(np.logical_xor(self.vmax,self.color_func(value))) \ /(self.vmax-self.vmin) hue = f...
Add disk icon Can't seem to set the icon of the .dmg itself, but this sets thee icon while it's mounted
@@ -37,7 +37,7 @@ class macos(app): def install_icon(self): shutil.copyfile( "%s.icns" % self.icon, - self.icon_install_path + os.path.join(self.resource_dir, '%s.icns' % self.distribution.get_name()) ) for tag, doctype in self.document_types.items(): @@ -74,6 +74,7 @@ class macos(app): settings = {'files': [self.app_l...
Fix split multi hts fixes
@@ -2044,7 +2044,7 @@ def split_multi_hts(ds, keep_star=False, left_aligned=False): ds.entry_schema, hl.hts_entry_schema )) - sm = SplitMulti(ds) + sm = SplitMulti(ds, keep_star=keep_star, left_aligned=left_aligned) pl = hl.or_missing( hl.is_defined(ds.PL), (hl.range(0, 3).map(lambda i: hl.min((hl.range(0, hl.triangle(...
settings: Link organization settings users to user cards. This makes it easier to browse details on users and bots when interacting with them in the settings interface. While the original issue was about just the bots panel, this is clearly useful for all users. Fixes:
<tr class="user_row{{#unless is_active}} deactivated_user{{/unless}}" data-user-id="{{user_id}}"> <td> - <span class="user_name" >{{full_name}} {{#if is_current_user}}<span class="my_user_status">{{t '(you)' }}</span>{{/if}}</span> + <span class="user_name" > + <a data-user-id="{{user_id}}" class="view_user_profile" ta...
ICTCG1Controller zha update Use same mapping definitions as z2m for ON/OFF functions Use medium speed right turn for Light.ON to mimic native behaviour of directly bound controller
@@ -178,10 +178,10 @@ class ICTCG1Controller(LightController): return { "move_1_70": Light.HOLD_BRIGHTNESS_DOWN, "move_1_195": Light.HOLD_BRIGHTNESS_DOWN, - "move_to_level_with_on_off_0_1": Light.OFF, + "move_to_level_with_on_off_0_1": "rotate_left_quick", "move_with_on_off_0_70": Light.HOLD_BRIGHTNESS_UP, - "move_with...
Upgrade django-watchman to 0.15.0 Adds respect for the WATCHMAN_DISABLE_APM setting
@@ -468,9 +468,9 @@ django-allow-cidr==0.3.0 \ netaddr==0.7.19 \ --hash=sha256:56b3558bd71f3f6999e4c52e349f38660e54a7a8a9943335f73dfc96883e08ca \ --hash=sha256:38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd -django-watchman==0.14.0 \ - --hash=sha256:0e953c27b8f4c07dcb96712ea4a304de085cf44e7829a33c6e12...
Downgrade pub/sub emulator version in CI. For
@@ -25,7 +25,7 @@ RUN apt-get update && \ google-cloud-sdk-app-engine-python \ google-cloud-sdk-app-engine-python-extras \ google-cloud-sdk-datastore-emulator \ - google-cloud-sdk-pubsub-emulator \ + google-cloud-sdk-pubsub-emulator=312.0.0-0 \ liblzma-dev \ nodejs \ openjdk-8-jdk
docs: Remove 'specify property field type' part from new feature tutorial. This commit removes the part which mentions specifying the property field type in new feauture tutorial as it is no longer required to specify the type.
@@ -540,26 +540,6 @@ in. For example in this case of `mandatory_topics` it will lie in better to discuss it in the [community](https://chat.zulip.org/) before implementing it.* -When defining the property, you'll also need to specify the property -field type (i.e. whether it's a `bool`, `integer` or `text`). - -``` dif...
Upgrade Travis operating system to Ubuntu 18.04 Ubuntu 18.04 "Bionic" doesn't support Py3.5 as a testing environment, but comes with newer SQLite version, so we no longer have any issues with the tests...
-dist: xenial +dist: bionic sudo: required language: python @@ -6,7 +6,8 @@ language: python cache: pip python: - - 3.5 + # After upgrading to Ubuntu 18.04 we lost ability to test against Py3.5 + # - 3.5 - 3.6 - 3.7
Bugfix default to the map's strict slashes setting Rather than each url rule specifying it must be treated as strict slashes this instead defers to the map's setting. This in turn allows a user to globally override the strict slashes setting by changing the map's value.
@@ -533,7 +533,7 @@ class Quart(PackageStatic): *, provide_automatic_options: Optional[bool] = None, is_websocket: bool = False, - strict_slashes: bool = True, + strict_slashes: Optional[bool] = None, merge_slashes: Optional[bool] = None, ) -> None: """Add a route/url rule to the application.
Fix db bug in ExportInstructorLocationsView For each airport that this view returns, the list of instructors should be ordered. SQLite3 sorts by id by default, but it's different on PostgreSQL, resulting in some tests failing on the latter db.
import datetime from itertools import accumulate -from django.db.models import Count, Sum, Case, F, When, Value, IntegerField, Min +from django.db.models import ( + Count, + Sum, + Case, + F, + When, + Value, + IntegerField, + Min, + Prefetch, +) from rest_framework import viewsets from rest_framework.decorators import...
Update TheCatAPI link Direct link to API documentation
@@ -65,7 +65,7 @@ Please note a passing build status indicates all listed APIs are available since API | Description | Auth | HTTPS | CORS | |---|---|---|---|---| | [Cat Facts](https://alexwohlbruck.github.io/cat-facts/) | Daily cat facts | No | Yes | No | -| [Cats](https://thecatapi.com/docs.html) | Pictures of cats f...
Add SQL-native implementation for run step stats Summary: Depends on D2399 Test Plan: BK Reviewers: sashank
from abc import abstractmethod +from collections import defaultdict import six import sqlalchemy as db from dagster.core.errors import DagsterEventLogInvalidForRun from dagster.core.events import DagsterEventType from dagster.core.events.log import EventRecord +from dagster.core.execution.stats import RunStepKeyStatsSn...
Update wq example to work with current libraries: uproot4 -> uproot awkward1 -> awkward drop flatten and nano options register behaviors within process method.
# Sample processor class given in the Coffea manual. ############################################################### -import uproot4 +import uproot from coffea.nanoevents import NanoEventsFactory, BaseSchema # https://github.com/scikit-hep/uproot4/issues/122 -uproot4.open.defaults["xrootd_handler"] = uproot4.source.xro...
Fixed bug in TFMultiStepMetric where all metrics were recorded with same name. The bug only occurs when plotting the TFMultiStepMetrics against an auxiliary step_metric, not when plotting against the train_step.
@@ -226,7 +226,17 @@ class TFMultiMetricStepMetric(TFStepMetric): # Skip plotting the metrics against itself. if self.name == step_metric.name: continue - step_tag = '{}vs_{}/{}'.format(prefix, step_metric.name, self.name) + + # The default metric name is the `single_metric_name` followed by the + # index. + metric_nam...
Test TzinfoParser against full timezone database Closes: crsmithdev/arrow#657
@@ -6,14 +6,22 @@ import os import time from datetime import datetime +import pytz from chai import Chai from dateutil import tz +from dateutil.zoneinfo import get_zonefile_instance from arrow import parser from arrow.constants import MAX_TIMESTAMP_US from arrow.parser import DateTimeParser, ParserError, ParserMatchErr...
Arch LInux installation guild Related
@@ -24,6 +24,8 @@ OR Install manim via the git repository with venv:: $ source bin/activate $ pip3 install -r requirement.txt +For Arch Linux users, install python-manimlib_:sup:`AUR` package. + To use manim in virtual environment you need to activate the environment with the ``activate`` binary by doing ``source bin/a...
svtplay: for some reason they presented the m3u8 file as mpd fixes:
@@ -111,11 +111,11 @@ class Svtplay(Service, MetadataThumbMixin): query = parse_qs(urlparse(i["url"]).query) if "alt" in query and len(query["alt"]) > 0: alt = self.http.get(query["alt"][0]) - if i["format"][:3] == "hls": + if i["url"].find(".m3u8") > 0: streams = hlsparse(self.config, self.http.request("get", i["url"]...
fix github actions for forked PRs Summary: Pull Request resolved: I was trying to be too clever with GITHUB_HEAD_REF... Test Plan: Imported from OSS
@@ -24,9 +24,11 @@ jobs: # We are on master, just set the SHA from our current location echo ::set-output name=commit_sha::${GITHUB_SHA} else - # We are on a PR, we need to check out PR branch - git checkout ${GITHUB_HEAD_REF} - echo ::set-output name=commit_sha::$(git rev-parse ${GITHUB_HEAD_REF}) + # We are on a PR, ...
fire: Remove periods from config documentation The period is already accounted for in the decorator
@@ -55,24 +55,24 @@ STANDARD_CONFIG_INFO_DICT = { "validation": [True, False], "definition": ( "Should lines starting with a templating placeholder" - " such as `{{blah}}` have their indentation linted." + " such as `{{blah}}` have their indentation linted" ), }, "select_clause_trailing_comma": { "validation": ["forbid...
Update changelog Fixed double colons in recent 3.0 entries
========= Changelog ========= +* :feature:`547` Add support for specifying ``--non-interactive`` as an + environment variable. * :release:`3.0.0 <2019-11-18>` -* :feature:`336`: When a client certificate is indicated, all password +* :feature:`336` When a client certificate is indicated, all password processing is disa...
optimisations to threads start connection thread during `Monitor.start` perform initial download in download_thread
@@ -1570,6 +1570,11 @@ def download_worker(sync, syncing, running, connected, queue_downloading): syncing.wait() # if not running, wait until resumed try: + + if not sync.last_cursor: + # run the initial Dropbox download + sync.get_remote_dropbox() + else: # wait for remote changes (times out after 120 secs) has_change...
Add send/recv multipart message test with polling Summary: I ended up writing this UT while debugging with pirateninja. Having more UTs is better so sending out this diff.
@@ -342,6 +342,48 @@ TEST(ZmqEventLoopTest, scheduleTimeoutApi) { EXPECT_FALSE(evl.isRunning()); } +TEST(ZmqEventLoopTest, sendRecvMultipart) { + Context context; + ZmqEventLoop evl; + const SocketUrl socketUrl{"inproc://server_url"}; + + Socket<ZMQ_REP, ZMQ_SERVER> serverSock{context}; + serverSock.bind(socketUrl).val...
Fix handling of gin file in grid_search Previously, for gin config, only an empty config file was writen to root directory and the jobs cannot run.
@@ -389,6 +389,11 @@ def launch_snapshot_gridsearch(): # write the current conf file as # ``<root_dir>/alf_config.py`` or ``<root_dir>/configured.gin`` + conf_file = common.get_conf_file() + if conf_file.endswith('.gin'): + # for gin, we need to parse it first. Otherwise, configured.gin will be + # empty + common.parse...
Mark Adorable Avatars as HTTPS capable While their main website returns the wrong certificate, the actual API does support HTTPS
@@ -118,7 +118,7 @@ For information on contributing to this project, please see the [contributing gu | API | Description | Auth | HTTPS | Link | |---|---|---|---|---| -| Adorable Avatars | Generate random cartoon avatars | No | No | [Go!](http://avatars.adorable.io) | +| Adorable Avatars | Generate random cartoon avata...
Database Table Creation Modification Summary: Modified: fbcode/fbjava/fb-spark-applications/rl/dqn-preprocessing/src/main/scala/com/facebook/spark/rl/MultiStepTimeline.scala To have a similar table creation process as: fbcode/fbjava/fb-spark-applications/rl/dqn-preprocessing/src/main/scala/com/facebook/spark/rl/Timelin...
@@ -128,16 +128,15 @@ object MultiStepTimeline { Helper.getDataTypes(sqlContext, config.inputTableName, List("action"))("action") log.info("action column data type:" + s"${actionDataType}") assert(Set("string", "map<bigint,double>").contains(actionDataType)) - val actionDiscrete = actionDataType == "string" var sortAct...
Update DEV_SETUP.md Updated some mac install information for python3.6 and virtualenvwrapper
@@ -61,6 +61,10 @@ Save those backups to somewhere you'll be able to access from the new environmen $ sudo python get-pip.py $ sudo pip install virtualenvwrapper --ignore-installed six +- For downloading Python 3.6 consider: + 1. Using [pyenv](https://github.com/pyenv/pyenv-installer) + 2. Using homebrew with this [bre...
Conveyor: fix exception in submitter. Closes TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType'
@@ -1598,7 +1598,8 @@ def create_missing_replicas_and_requests( creation_successful = False existing_request = get_request_by_did(rws.scope, rws.name, rws.dest_rse.id, session=session) - if datetime.datetime.utcnow() - CONCURRENT_SUBMISSION_TOLERATION_DELAY < existing_request['requested_at']: + if existing_request['req...
[hail] Wrap AbstractRVDSpec.read failure to log the path The exception message will now have the metadata path to more easily assist in diagnosing issues.
@@ -42,10 +42,14 @@ object AbstractRVDSpec { new ETypeSerializer def read(fs: FS, path: String): AbstractRVDSpec = { + try { val metadataFile = path + "/metadata.json.gz" using(fs.open(metadataFile)) { in => JsonMethods.parse(in) } .transformField { case ("orvdType", value) => ("rvdType", value) } // ugh .extract[Abstr...
Change Locust website url to https update README with http urls
## Links -* Website: <a href="http://locust.io">locust.io</a> -* Documentation: <a href="http://docs.locust.io">docs.locust.io</a> +* Website: <a href="https://locust.io">locust.io</a> +* Documentation: <a href="https://docs.locust.io">docs.locust.io</a> * Support/Questions: [Slack signup](https://slack.locust.io/) ## ...
Code block: remove truncate function No longer used anywhere.
@@ -99,17 +99,3 @@ def is_repl_code(content: str, threshold: int = 3) -> bool: return True return False - - -def truncate(content: str, max_chars: int = 204, max_lines: int = 10) -> str: - """Return `content` truncated to be at most `max_chars` or `max_lines` in length.""" - current_length = 0 - lines_walked = 0 - - fo...
fopen: Workaround bad buffering for binary mode A lot of code assumes Python 2.x behavior for buffering, in which 1 is a special value meaning line buffered. Python 3 makes this value unusable, so fallback to the default buffering size, and report these calls to be fixed. Fixes:
@@ -382,6 +382,11 @@ def fopen(*args, **kwargs): if not binary and not kwargs.get("newline", None): kwargs["newline"] = "" + # Workaround callers with bad buffering setting for binary files + if kwargs.get("buffering", -1) == 1 and 'b' in kwargs.get("mode", ""): + log.debug("Bad buffering specified for '%s'", args[0], ...
Remove dead test code We're not longer supporting Debian 8, so this skip will never be hit.
@@ -3,15 +3,8 @@ tests for host state """ -import salt.utils.platform from tests.support.case import ModuleCase -HAS_LSB_RELEASE = True -try: - import lsb_release -except ImportError: - HAS_LSB_RELEASE = False - class CompileTest(ModuleCase): """ @@ -31,13 +24,6 @@ class CompileTest(ModuleCase): Test when we have an er...
Make table lock optional when adding products This should probably be called "allow_exclusive_lock" (or similar) to avoid being specific to DBs, but it's named this way in the other add() methods already, so consistency wins.
@@ -275,10 +275,15 @@ class ProductResource(object): return DatasetType(metadata_type, definition) - def add(self, type_): + def add(self, type_, allow_table_lock=False): """ Add a Product. + :param allow_table_lock: + Allow an exclusive lock to be taken on the table while creating the indexes. + This will halt other u...
Commit quantile output format. Now quantiles are a dict with quantile-name -> values.
@@ -178,9 +178,12 @@ class Forecast: result["mean"] = self.mean.tolist() if OutputType.quantiles in config.output_types: - result["quantiles"] = [ - self.quantile(q).tolist() for q in config.quantiles - ] + quantiles = map(Quantile.parse, config.quantiles) + + result["quantiles"] = { + quantile.name: self.quantile(quan...
If there is only a single image in the shoebox then set the z centroid as image + 0.5. Previously, as this was calculated as an intensity weighted centroid it would result in small deviations around 1e-7 from 0.5 which resulted in strange output in spot finding for a single image. Fixes
@@ -329,6 +329,9 @@ namespace dials { namespace model { try { Centroider centroid(data.const_ref(), foreground_mask); result = extract_centroid_object(centroid, offset); + if (bbox[5] == bbox[4] + 1) { + result.px.position[2] = bbox[4] + 0.5; + } } catch (dials::error) { double xmid = (bbox[1] + bbox[0]) / 2.0; double ...
Update wmts100capabilities.xml In WMTS 1.0.0 it is ows:Keywords not ows:KeywordList What a mess.
<ows:Title>{{service.title}}</ows:Title> <ows:Abstract>{{service.abstract}}</ows:Abstract> {{if service.keyword_list and len(service.keyword_list) > 0}} - <ows:KeywordList> + <ows:Keywords> {{for list in service.keyword_list}} {{py: kw=bunch(default='', **list)}} {{for keyword in kw.keywords}} <ows:Keyword{{if kw.vocab...
fix: remove old and duplicated test cases in tests.cli.main Remove old and duplicated test cases in tests.cli.main which were replaced with newer test cases in tests.cli.test_*.
@@ -49,45 +49,6 @@ class RunTestWithTmpdir(RunTestBase): shutil.rmtree(str(self.tmpdir)) -class Test_10(RunTestBase): - infile = tests.common.respath('00-cnf.json') - - def test_10_show_usage(self): - self.run_and_check_exit_code(["--help"]) - - def test_20_wo_args(self): - self.run_and_check_exit_code(_not=True) - - d...
fix min and max values for exported and imported trade values remove explicit creation of DataSubjectArray pass country list for exports/imports during annotation for DP metadata
"outputs": [], "source": [ "domain_client = sy.login(\n", - " url=\"localhost:80\",#auto_detect_domain_host_ip(),\n", + " url=\"localhost:8081\",#auto_detect_domain_host_ip(),\n", " email=\"info@openmined.org\",\n", " password=\"changethis\"\n", ")" "cell_type": "code", "execution_count": null, "id": "c9f4f75f-a4b6-433...
nfs: remove legacy task This fact is never used, let's remove the task.
--- -- name: set_fact container_exec_cmd_nfs - set_fact: - container_exec_cmd_nfs: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_facts']['hostname'] }}" - when: containerized_deployment | bool - - name: create rgw nfs user "{{ ceph_nfs_rgw_user }}" radosgw_user: name: "{{ ceph_nf...
Adds error checking for import_EGAP registration_metadata ## Purpose Adds error handling for registration metadata for EGAP Registrations ## Changes * Adds checks for what should be the `egap_registration_date` and the `egap_embargo_public_date` on the import_EGAP script
@@ -198,14 +198,24 @@ def main(guid, creator_username): draft_registration_metadata = draft_registration.registration_metadata # Retrieve EGAP registration date and potential embargo go-public date + if draft_registration_metadata.get('q4'): egap_registration_date_string = draft_registration_metadata['q4']['value'] - e...
Fix incomlete display stp instance command in Huawei.VRP.get_spanning_tree HG-- branch : feature/microservices
@@ -26,6 +26,8 @@ class Script(BaseScript): status} """ cli_stp = self.cli("display stp brief") + if self.rx_stp_disabled.search(cli_stp): + return None ports = {} # instance -> port -> attributes for R in cli_stp.splitlines()[1:]: if not R.strip(): @@ -103,10 +105,8 @@ class Script(BaseScript): r"(?P<designated_bridge...
avoid multiple conversions from mired to kelvin and vice versa Avoid triple conversion while comparing against min / max color temperature when a new value is set.
@@ -36,6 +36,8 @@ DEFAULT_BRIGHTNESS = 255 DEFAULT_COLOR_TEMPERATURE = 333 # 3000 K DEFAULT_MIN_MIREDS = 166 # 6000 K DEFAULT_MAX_MIREDS = 370 # 2700 K +DEFAULT_MIN_KELVIN = 2700 +DEFAULT_MAX_KELVIN = 6000 DEPENDENCIES = ['xknx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ @@ -187,6 +189,24 @@ class KNXLight(Light): if ...