Contribute to Open Source. Search issue labels to find the right project for you!

addrConn/ClientConn cleanup

grpc/grpc-go

List of issues to be fixed: - Fix the behavior of addrConn with empty address list #1683 - return the underlying network error from ClientConn #1633 - Finer-grained locks or atomics for addrConn #1669 - Invoke hangs in client after server presents an incorrect certificate #1656

Updated 15/12/2017 00:38

ProcessNodeUpdate assumes ConfigMap (will break for multi-service Ingress).

F5Networks/k8s-bigip-ctlr

When Pool members are discovered in NodePort mode, we save the nodeport in the config’s metadata (function updatePoolMembersForNodeport). The problem with this is that for Ingress, there can be multiple nodeports (multi-service Ingress), so this value is ever-changing as pool members for each different node are found. This results in numerous unnecessary updates.

The hard part of this is WHY we save this nodeport. In ProcessNodeUpdate, this nodeport is used to repopulate a config’s pool members when a Node is updated. The only way this method can know about what nodeport to use is via the config’s metadata. A secondary issue in the ProcessNodeUpdate method is that it always assigns the updated members to the first Pool, not necessarily the pool that the members actually belong to.

(This is all due to ProcessNodeUpdate being written with only ConfigMaps in mind, not multi-service Ingress)

The Todo here: Find a way for ProcessNodeUpdate to properly configure updated members without needing to have a single nodeport in the config’s metadata, and configure the members on the correct pool. This will allow us to remove the single nodeport from the config’s metadata and prevent all these updates.

Updated 14/12/2017 19:56

Can connect to an identity which is bound to a participant that no longer exists

hyperledger/composer

Trying to use an ID after the participant it is bound to has been deleted throws an error. I would expect this interaction to stop here and the ID not to be used, however what actually happens is you use the ID and can’t do anything within the business network as a result.

It is possible to get out of this state by going back to the ID Registry and using a valid ID.

Steps to reproduce;

  1. Deploy and connect to a Business Network
  2. Create a participant
  3. Create a new ID using the participant you created in step 2.
  4. Go to the participant registry and delete the participant you created in step 2.
  5. Go to the ID registry and try to use the ID created in step 3. (This should throw an error: “The current identity is bound to a participant that does not exist”)
  6. Try to do anything within the Business Network.
Updated 14/12/2017 11:23

CI, bazel-slow-tests: failing on Docker/Fedora23

bazelbuild/bazel
[node=docker,shard=1] INFO: From Testing //src/test/docker:test_cc_configure-fedora23-opt:
[node=docker,shard=1] ==================== Test output for //src/test/docker:test_cc_configure-fedora23-opt:
[node=docker,shard=1] ### Image loading ###
[node=docker,shard=1] Executing 'src/test/docker/bazel_cc_configure-fedora23-opt'
[node=docker,shard=1] Skipping 427083f204adce5c59b635c1a87a47fcae3fdbc1592332ba0395f43a4fad054c, already loaded.
[node=docker,shard=1] Loading aff394ba5046c58c0635eeb6401cbe4fd0c99419e3580c2c57ff3c889476a23e...
[node=docker,shard=1] Loaded image: bazel/src/test/docker:bazel_cc_configure-fedora23-opt
[node=docker,shard=1] Tagging aff394ba5046c58c0635eeb6401cbe4fd0c99419e3580c2c57ff3c889476a23e as bazel/src/test/docker:bazel_cc_configure-fedora23-opt
[node=docker,shard=1] Building Bazel from scratch......
[node=docker,shard=1] Building Bazel with Bazel.
[node=docker,shard=1] .Loading: 
[node=docker,shard=1] 
Loading: 0 packages loaded
[node=docker,shard=1] 
WARNING: /tmp/bazel_KjdBv3Eq/out/external/bazel_tools/WORKSPACE:1: Workspace name in /tmp/bazel_KjdBv3Eq/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions
[node=docker,shard=1] Loading: 0 packages loaded
[node=docker,shard=1] 
Analyzing: target //src:bazel (1 packages loaded)
[node=docker,shard=1]     currently loading: @bazel_tools//tools/cpp
[node=docker,shard=1] 

Analyzing: target //src:bazel (4 packages loaded)
[node=docker,shard=1] 
Analyzing: target //src:bazel (4 packages loaded)
[node=docker,shard=1]     currently loading: @local_config_cc//
[node=docker,shard=1] 

Analyzing: target //src:bazel (5 packages loaded)
[node=docker,shard=1] 
Analyzing: target //src:bazel (32 packages loaded)
[node=docker,shard=1]     currently loading: src/main/java/com/google/devtools/build/lib ... (3 pack\
[node=docker,shard=1] ages)
[node=docker,shard=1] 


Analyzing: target //src:bazel (50 packages loaded)
[node=docker,shard=1]     currently loading: @com_google_protobuf// ... (2 packages)
[node=docker,shard=1] 

Analyzing: target //src:bazel (56 packages loaded)
[node=docker,shard=1]     currently loading: @bazel_tools//src
[node=docker,shard=1] 

Analyzing: target //src:bazel (62 packages loaded)
[node=docker,shard=1] 
Analyzing: target //src:bazel (107 packages loaded)
[node=docker,shard=1]     currently loading: src/main/java/com/google/devtools/common/options/proces\
[node=docker,shard=1] sor
[node=docker,shard=1] 


Analyzing: target //src:bazel (173 packages loaded)
[node=docker,shard=1] 
INFO: Analysed target //src:bazel (178 packages loaded).
[node=docker,shard=1] Building: no action
[node=docker,shard=1] 
INFO: Found 1 target...
[node=docker,shard=1] Building: no action
[node=docker,shard=1] 
[0 / 44] [-----] BazelWorkspaceStatusAction stable-status.txt
[node=docker,shard=1] 
[28 / 145] 2 actions, 1 running
[node=docker,shard=1]     //third_party/grpc:cpp_plugin; 0s local
[node=docker,shard=1]     [-----] //third_party/protobuf/3.4.0:protoc
[node=docker,shard=1] 


[35 / 201] 15 actions running
[node=docker,shard=1]     //third_party/protobuf/3.4.0:js_embed; 0s local
[node=docker,shard=1]     Compiling .../3.4.0/src/google/protobuf/extension_set.cc; 0s local
[node=docker,shard=1]     //third_party/protobuf/3.4.0:protobuf_lite; 0s local
[node=docker,shard=1]     //third_party/protobuf/3.4.0:protobuf_lite; 0s local
[node=docker,shard=1]     //third_party/protobuf/3.4.0:protobuf_lite; 0s local
[node=docker,shard=1]     //third_party/protobuf/3.4.0:protobuf_lite; 0s local
[node=docker,shard=1]     //third_party/protobuf/3.4.0:protobuf_lite; 0s local
[node=docker,shard=1]     //third_party/protobuf/3.4.0:protobuf_lite; 0s local ...
[node=docker,shard=1] 

...

[node=docker,shard=1] //src/test/docker:test_cc_configure-fedora23-opt                         FAILED in 133.8s
Updated 14/12/2017 10:21

Student module

srinikoganti/sams

Home-> Student-> Manage Students-> BABU MARKAPUDI-> Update Academic Details

When i’m updating the student academic details, i’m selecting the student Is Status is in-active state and updated, but in display it’s showing Active state and again i’m rechecking the updated details in updated academic info Is Status become Active state. is status_error is status1_erro is status2_error

Updated 14/12/2017 09:50

Student Module

srinikoganti/sams

In manage student section, while i’m updating the student basic info, sub caste drop down is not populated with items for the first time. If i’m changing the category then it will display all it’s related items.

subcaste_error

Updated 14/12/2017 09:36

JavaInfo should expose `transitive_full_compile_jars`

bazelbuild/bazel

For some JVM languages (kotlin), we need access to the transitive set of original “full” (non-ABI) jars. For example consider this code snippet that attempts to build a classpath:

    jars = depset()
    # Populate from (transitive, pretty please) java dependencies.  
    for dep in ctx.attr.java_deps:
        if java_common.provider in dep:
            info = dep[java_common.provider]
            # Here's what we have currently
            jars += info.full_compile_jars
            # Here's what we'd like to do
            jars += info.transitive_full_compile_jars

cc @iirina Thanks in advance for considering this!

https://github.com/pubref/rules_kotlin/issues/47

https://github.com/pubref/rules_kotlin/pull/41

Updated 14/12/2017 08:48

'pip.installed' is not available when running highstate

saltstack/salt

Description of Issue/Question

state file: pip.installed: - name: haproxyctl >= 0.5 - find_links: https://github.com/neurogeek/haproxyctl/archive/ - reload_modules: True This runs OK if I do salt minion1 state.apply haproxy But if I run salt minion1 state.highstate, I got an error Function: pip.installed Name: haproxyctl >= 0.5 Result: False Comment: State 'pip.installed' was not found in SLS 'haproxy' Reason: 'pip.installed' is not available. Changes: there’s also some errors in /var/log/salt/minion:

2017-12-14 11:50:25,478 [salt.state       ][ERROR   ][58945] Error encountered during module reload. Modules were not reloaded.
2017-12-14 11:50:41,427 [salt.loader      ][ERROR   ][58945] Failed to import states pip_state, this is due most likely to a syntax error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/salt/loader.py", line 1405, in _load_module
    mod = spec.loader.load_module()
  File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 823, in load_module
  File "<frozen importlib._bootstrap_external>", line 682, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.6/site-packages/salt/states/pip_state.py", line 36, in <module>
    import pip
  File "/usr/local/lib/python3.6/site-packages/pip/__init__.py", line 26, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "/usr/local/lib/python3.6/site-packages/pip/utils/__init__.py", line 23, in <module>
    from pip.locations import (
  File "/usr/local/lib/python3.6/site-packages/pip/locations.py", line 103, in <module>
    bin_user = os.path.join(user_site, 'bin')
  File "/usr/local/lib/python3.6/posixpath.py", line 78, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Setup

OS: FreeBSD 11.1 python: 3.6

Steps to Reproduce Issue

upgrade salt from py27-salt to py36-salt

Versions Report

Salt Version:
           Salt: 2017.7.2

Dependency Versions:
           cffi: 1.7.0
       cherrypy: Not Installed
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.7
   mysql-python: Not Installed
      pycparser: 2.10
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 3.6.3 (default, Dec  8 2017, 18:14:50)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 16.0.3
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.2
            ZMQ: 4.2.2

System Versions:
           dist:
         locale: US-ASCII
        machine: amd64
        release: 11.1-RELEASE-p1
         system: FreeBSD
        version: Not Installed
Updated 15/12/2017 00:27 2 Comments

Firewalld state cause horrid performance during saltrun.

saltstack/salt

Some of my formula will have firewalld rules in it like the following:

dokuwiki_fw:
    firewalld.service:
        - name: dokuwiki
        - ports:
            - 8002/tcp

dokuwiki_fw_rule:
    firewalld.present:
        - name: public
        - prune_services: False
        - services:
            - dokuwiki

Some subset of my nodes will have serveral firewalld states to run during an highstate run. Upon inspecting debug I realize the firewalld module is consuming a lot of time. It is inefficient.

E.G

consider the following formula test

doku_default_pw:
    file.managed:
        - name: /tmp/test
        - source: salt://test/testfile

test_fw:
    firewalld.service:
        - name: test
        - ports:
            - 8002/tcp

dokuwiki_fw_rule:
    firewalld.present:
        - name: public
        - prune_services: False
        - services:
            - test

When I run salt-call state.apply test on the minion it takes an average of 10s for a no change occurrence.

local:

Summary for local
------------
Succeeded: 9
Failed:    0
------------
Total states run:     9
Total run time:  12.718 s

When I commented out the firewall lines. it takes significantly less time to run the state.

local:

Summary for local
------------
Succeeded: 7
Failed:    0
------------
Total states run:     7
Total run time:   1.577 s
Updated 14/12/2017 20:34 1 Comments

Data pipeline tutorial issues

allenai/allennlp

While working through the data pipeline tutorial (http://allennlp.org/tutorials/data-pipeline), I noticed a couple of things:

  1. when installing allennlp v0.2.3 via pip (python 3.6.1), the tutorial fails, because at this point Dataset has no as_tensor_dict(..) method.

  2. in the second example, in print(vocab.get_index_to_token_vocabulary("tokens"), "\n") . print(vocab.get_index_to_token_vocabulary("chars"), "\n") “vocab” should be replaced with “word_and_char_vocab”

  3. there is a missing comma between “good” and “.” in line review2 = TextField(list(map(Token, ["This", "movie", "was", "quite", "slow", "but", "good" "."])), token_indexers={"tokens": SingleIdTokenIndexer()})

Updated 14/12/2017 18:41 6 Comments

State duration not always calculated

saltstack/salt

Description of Issue/Question

No duration key is added to the return dictionary in some situations resulting in output like:

ID: sysctl-reload-cmd 
Function: cmd.run 
Name: /sbin/sysctl -p 
Result: True 
Comment: State was not run because none of the onchanges reqs changed 
Changes:

This causes inconsistent output. It appears that the Duration key is only added in the call method, so any state that does not result in an execution of this method will not have this key added. This appears to be specific to states, not the corresponding modules.

Setup

Install the salt-minion to ensure this state doesn’t do anything, or execute this twice.

install_salt_again:
  pkg.installed:
    - name: salt-minion

restart_salt_minion:
  cmd.run:
    - name: service salt-minion restart
    - onchanges:
      - pkg: install_salt_again

Versions Report

Salt Version:
           Salt: 2017.7.2

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.5 (default, Aug  4 2017, 00:39:18)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4

System Versions:
           dist: centos 7.4.1708 Core
         locale: UTF-8
        machine: x86_64
        release: 3.10.0-693.5.2.el7.x86_64
         system: Linux
        version: CentOS Linux 7.4.1708 Core
Updated 14/12/2017 20:30 1 Comments

SEO for related, but not necessarily exact terms

dotnet/docs

I had an interesting discussion with a member of the F# Software Foundation who was looking to get started with F# on .NET Core using a mac. He typed the following into google:

  • “fsharp dotnet core”
  • “fsharp dotnet core new project”
  • “fsharp macos”

What he was ultimately looking for was this article: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/get-started-command-line

The article contains the following relevant things:

  • “ This article covers how you can get started with using F# on .NET Core.”
  • “ To begin, you must install the .NET Core SDK 1.0 or later. There is no need to uninstall a previous version of the .NET Core SDK, as it supports side-by-side installations.”
  • Mention of the dotnet commands, with examples, and “F#”
  • “Starting with .NET Core 2.0, you don’t have to run dotnet restore because it’s run implicitly by all commands, such as dotnet build and dotnet run, that require a restore to occur. It’s still a valid command in certain scenarios where doing an explicit restore makes sense, such as continuous integration builds in Visual Studio Team Services or in build systems that need to explicitly control the time at which the restore occurs.”

And yet, this article was not in his Google search results. I’m no expert in SEO, but I believe this article does a pretty good job about being discoverable. What could be improved? And what does this imply about other articles in the docs?

Updated 14/12/2017 01:06 3 Comments

Two way binding with nested properties doesn't update from parent to child

canjs/can-stache

<!– Please use the labels on the right to classify your issue as a bug, enhancement, or question.

If you’re filing a bug, please provide the following information: –>

How often can you reproduce it? <!– Use [x] to mark your choice. –>

  • [x] Always
  • [ ] Sometimes
  • [ ] Rarely
  • [ ] Unable
  • [ ] I didn’t try

<!– Please provide a detailed description of the issue. Include specific details to help us understand the problem. –>

Description:

If I set up a template to bind to a nested property on a component’s view model, the parent scope is updated, but if the parent scope changes, the component view model nested prop doesn’t get updated, instead it gets a new property obj.propName.

https://jsbin.com/furiquqepo/1/edit?html,js,output

<!– List the step-by-step process to reproduce the issue. –>

Steps to reproduce:

<script id="app-template" type="text/stache">

  <home-page textData.textValue:bind="textString" />

  <input value:bind="textString"/>

</script>

<script id="home-template" type="text/stache">
<h1>Home Page</h1>
<input value:bind="textData.textValue" />

</script>

<!– Describe what you expected to have happen after completing the steps above. –>

Expected results:

The component nested property should be updated, rather than getting a new one.

<!– Describe what actually happened after completing the steps above. –>

Actual results:

A new property with a . is created on the component vm.

<!– Include details about your environment. –>

Environment:

Software Version
can-stache version 3.14.2
Browser Chrome
Operating system Windows
Updated 14/12/2017 15:16 2 Comments

Auth0: fetch infos from user profile if access token is provided

mozilla/doorman

Currently (#55), we read profile info from the token, assuming it’s an ID token obtained by requesting profile/groups email scopes.

If an access token is provided, we could fetch those infos from the user infos endpoint instead.

  • [ ] Check if email and groups are present
  • [ ] Cache response locally using something like https://github.com/allegro/bigcache
  • [ ] Invalidate cache using Mozilla Change Integration Service
Updated 13/12/2017 23:34 1 Comments

Windows Registry module/state hangs forever.

saltstack/salt

Description of Issue/Question

When setting some values in the Windows registry on Windows 10, both the CLI and State modules hang forever with no return. When using a state, this prevents future states from running on the minion unless the original state is forcibly killed or concurrent is set to true.

Setup

screensaver.sls: salt MINION reg.set_value HKEY_LOCAL_MACHINE 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' 'InactivityTimeoutSecs' vdata=0 vtype=REG_DWORD or set_inactivity_limit: lgpo.set: - computer_policy: "Interactive logon: Machine inactivity limit": {{ sstimeout }} or HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System: reg.present: - vname: 'InactivityTimeoutSecs' - vtype: REG_DWORD - vdata: {{ sstimeout }} All of these set the same registry key (this key is present only on Windows 10). The execution actually succeeds – the key is set correctly – but salt never returns. On the CLI, it just hangs there forever. In a state execution, the entire state execution waits indefinitely, never moving on to other instructions and never returning a result.

Steps to Reproduce Issue

Run any of the operations above, then go make coffee, wait for the kids to graduate university, grow old with your spouse, die peacefully in bed at the age of 90, and leave a secret organization of warrior monks behind you to wait out the centuries, hoping to one day see the result. Ultimately, fail.

Versions Report

minion: ``` Salt Version: Salt: 2017.7.1

Dependency Versions:
           cffi: 1.10.0
       cherrypy: 10.2.1
       dateutil: 2.6.0
      docker-py: Not Installed
          gitdb: 2.0.2
      gitpython: 2.1.3
          ioflo: Not Installed
         Jinja2: 2.9.6
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.6
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: 2.17
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
   python-gnupg: 0.4.0
         PyYAML: 3.11
          PyZMQ: 16.0.2
           RAET: Not Installed
          smmap: 2.0.3
        timelib: 0.2.4
        Tornado: 4.5.1
            ZMQ: 4.1.6

System Versions:
           dist:   
         locale: cp1252
        machine: AMD64
        release: 10
         system: Windows
        version: 10 10.0.16299  Multiprocessor Free

master:

Salt Version: Salt: 2017.7.2

Dependency Versions: cffi: 1.10.0 cherrypy: 10.2.1 dateutil: 2.6.0 docker-py: Not Installed gitdb: 0.6.4 gitpython: 1.0.1 ioflo: Not Installed Jinja2: 2.8 libgit2: 0.24.0 libnacl: 1.4.5 M2Crypto: Not Installed Mako: 1.0.3 msgpack-pure: Not Installed msgpack-python: 0.4.6 mysql-python: Not Installed pycparser: 2.17 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: 0.24.0 Python: 2.7.12 (default, Nov 20 2017, 18:23:56) python-gnupg: Not Installed PyYAML: 3.11 PyZMQ: 15.2.0 RAET: Not Installed smmap: 0.9.0 timelib: Not Installed Tornado: 4.2.1 ZMQ: 4.1.4

System Versions: dist: Ubuntu 16.04 xenial locale: UTF-8 machine: x86_64 release: 4.4.0-64-generic system: Linux version: Ubuntu 16.04 xenial ```

Updated 15/12/2017 00:31 1 Comments

Data pipeline tutorial incorrectly describes vocab namespace issues

allenai/allennlp

Issue: The keys of the “token_indexers” dict passed to TextField aren’t used to create the vocabulary namespace (I’m not entirely sure that this is the intended behavior but the tutorial on http://allennlp.org/tutorials/data-pipeline suggests so). Instead the TokenIndexers internal namespace is used, which leads to the behavior as shown in the example code. The specified namespace is “some_namespace” but the index is stored under the namespace “tokens”, which is the default namespace for SingleIdTokenIndexer.

Example code: ``` from allennlp.data import Token from allennlp.data.fields import TextField from allennlp.data.token_indexers import SingleIdTokenIndexer from allennlp.data import Instance from allennlp.data import Dataset

from allennlp.data import Vocabulary

text_field = TextField(list(map(Token, [“Here”, “are”, “some”, “longer”, “words”, “.”])), token_indexers={“some_namespace”: SingleIdTokenIndexer()}) dataset = Dataset([Instance({“sentence”: text_field})])

vocab = Vocabulary.from_dataset(dataset) dataset.index_instances(vocab)

print(‘Namespaces:’, vocab._index_to_token) print(‘Namespace content:’, vocab.get_index_to_token_vocabulary(“some_namespace”)) ```

Output: Namespaces: defaultdict(None, {'tokens': {0: '@@PADDING@@', 1: '@@UNKNOWN@@', 2: 'Here', 3: 'are', 4: 'some', 5: 'longer', 6: 'words', 7: '.'}}) Namespace content: {0: '@@PADDING@@', 1: '@@UNKNOWN@@'}

Updated 13/12/2017 23:57 4 Comments

Windows, testing: make all tests work on Windows

bazelbuild/bazel

As of today, there are 282 tests that Bazel doesn’t run on Windows.

EDIT(2017-12-13 15:52 +0100): we need to consider tests that check the current platform too, e.g. in Java do things like OS.getCurrent() == OS.WINDOWS.

C:\work\bazel>bazel --output_user_root=c:\tmp2 query "tests(//...)-tests(//src:all_windows_tests)"
//tools/test:LcovMergerTest
//tools/jdk:proguard_whitelister_test
//tools/build_defs/pkg:path_test
//tools/build_defs/pkg:make_rpm_test
//tools/build_defs/pkg:build_test
//tools/build_defs/pkg:archive_test
//tools/build_defs/docker:rewrite_json_test
//tools/build_defs/docker:create_image_config_test
//tools/android:stubify_manifest_test
//tools/android:strip_resources_test
//tools/android:resource_extractor_test
//tools/android:merge_manifests_test
//tools/android:junction_test
//tools/android:incremental_install_test
//tools/android:build_split_manifest_test
//tools/android:build_incremental_dexmanifest_test
//tools/android:aar_resources_extractor_test
//tools/android:aar_native_libs_zip_creator_test
//tools/android:aar_embedded_jars_extractor_test
//third_party/protobuf/3.4.0:win32_test
//third_party/protobuf/3.4.0:py_wire_format_test
//third_party/protobuf/3.4.0:py_unknown_fields_test
//third_party/protobuf/3.4.0:py_text_format_test
//third_party/protobuf/3.4.0:py_text_encoding_test
//third_party/protobuf/3.4.0:py_symbol_database_test
//third_party/protobuf/3.4.0:py_service_reflection_test
//third_party/protobuf/3.4.0:py_reflection_test
//third_party/protobuf/3.4.0:py_proto_builder_test
//third_party/protobuf/3.4.0:py_message_test
//third_party/protobuf/3.4.0:py_message_factory_test
//third_party/protobuf/3.4.0:py_json_format_test
//third_party/protobuf/3.4.0:py_generator_test
//third_party/protobuf/3.4.0:py_descriptor_test
//third_party/protobuf/3.4.0:py_descriptor_pool_test
//third_party/protobuf/3.4.0:py_descriptor_database_test
//third_party/protobuf/3.4.0:protobuf_test
//third_party/ijar/test:zip_test
//third_party/ijar/test:ijar_test
//third_party/ijar/test:IjarTests
//src/tools/skylark/javatests/com/google/devtools/skylark/skylint:SkylintTests
//src/tools/singlejar:zlib_interface_test
//src/tools/singlejar:zip_headers_test
//src/tools/singlejar:zip64_test
//src/tools/singlejar:transient_bytes_test
//src/tools/singlejar:token_stream_test
//src/tools/singlejar:output_jar_simple_test
//src/tools/singlejar:output_jar_bash_test
//src/tools/singlejar:options_test
//src/tools/singlejar:input_jar_scan_ziptool_test
//src/tools/singlejar:input_jar_scan_jartool_test
//src/tools/singlejar:input_jar_preambled_test
//src/tools/singlejar:input_jar_empty_jar_test
//src/tools/singlejar:input_jar_bad_jar_test
//src/tools/singlejar:combiners_test
//src/test/skylark/skylint:skylint_test
//src/test/skylark:skylark_test_testdata/string_test_characters_sky
//src/test/skylark:skylark_test_testdata/string_splitlines_sky
//src/test/skylark:skylark_test_testdata/string_split_sky
//src/test/skylark:skylark_test_testdata/string_partition_sky
//src/test/skylark:skylark_test_testdata/string_format_sky
//src/test/skylark:skylark_test_testdata/min_max_sky
//src/test/skylark:skylark_test_testdata/list_slices_sky
//src/test/skylark:skylark_test_testdata/int_sky
//src/test/skylark:skylark_test_testdata/int_constructor_sky
//src/test/skylark:skylark_test_testdata/equality_sky
//src/test/skylark:skylark_test_testdata/and_or_not_sky
//src/test/skylark:skylark_test_testdata/all_any_sky
//src/test/skylark:question_regexp_1
//src/test/skylark:question_regexp
//src/test/skylark:question_content
//src/test/skylark:assert_tone_below_1
//src/test/shell/integration:ui_test
//src/test/shell/integration:test_test
//src/test/shell/integration:stub_finds_runfiles_test
//src/test/shell/integration:startup_options_test
//src/test/shell/integration:stamping_test
//src/test/shell/integration:skylark_flag_test
//src/test/shell/integration:runfiles_test
//src/test/shell/integration:run_test
//src/test/shell/integration:rc_options_test
//src/test/shell/integration:python_test
//src/test/shell/integration:progress_reporting_test
//src/test/shell/integration:process_wrapper_test
//src/test/shell/integration:outputs_test
//src/test/shell/integration:output_filter_test
//src/test/shell/integration:logging_test
//src/test/shell/integration:loading_phase_tests
//src/test/shell/integration:linux_sandbox_test
//src/test/shell/integration:linux_sandbox_network_test
//src/test/shell/integration:java_integration_test
//src/test/shell/integration:incompatible_changes_conflict_test
//src/test/shell/integration:force_delete_output_test
//src/test/shell/integration:experimental_ui_test
//src/test/shell/integration:execution_phase_tests
//src/test/shell/integration:discard_graph_edges_test
//src/test/shell/integration:discard_analysis_cache_test
//src/test/shell/integration:cpp_test
//src/test/shell/integration:configured_query_test
//src/test/shell/integration:client_sigint_test
//src/test/shell/integration:build_event_stream_test
//src/test/shell/integration:bazel_worker_test
//src/test/shell/integration:bazel_testjobs_test
//src/test/shell/integration:bazel_sandboxed_worker_test
//src/test/shell/integration:bazel_query_test
//src/test/shell/integration:bazel_javabase_test
//src/test/shell/integration:bazel_command_log_test
//src/test/shell/integration:action_env_test
//src/test/shell/bazel/apple:bazel_objc_test
//src/test/shell/bazel/apple:bazel_apple_test
//src/test/shell/bazel/android:proguard_integration_test
//src/test/shell/bazel/android:desugarer_integration_test
//src/test/shell/bazel/android:android_sdk_integration_test
//src/test/shell/bazel/android:android_ndk_integration_test
//src/test/shell/bazel/android:android_integration_test
//src/test/shell/bazel/android:aidl_integration_test
//src/test/shell/bazel/android:aar_integration_test
//src/test/shell/bazel:workspace_test
//src/test/shell/bazel:toolchain_test
//src/test/shell/bazel:srcs_test
//src/test/shell/bazel:skylark_repository_test
//src/test/shell/bazel:skylark_git_repository_test
//src/test/shell/bazel:runfiles_test
//src/test/shell/bazel:rule_test_test
//src/test/shell/bazel:remote_execution_test
//src/test/shell/bazel:remote_execution_sandboxing_test
//src/test/shell/bazel:remote_execution_rest_test
//src/test/shell/bazel:persistent_test_runner_test
//src/test/shell/bazel:maven_test
//src/test/shell/bazel:maven_skylark_test
//src/test/shell/bazel:location_test
//src/test/shell/bazel:local_repository_test_jdk8
//src/test/shell/bazel:local_repository_test
//src/test/shell/bazel:local_action_cache_test
//src/test/shell/bazel:java_launcher_test
//src/test/shell/bazel:help_test
//src/test/shell/bazel:git_repository_test
//src/test/shell/bazel:external_skylark_load_test
//src/test/shell/bazel:external_integration_test
//src/test/shell/bazel:external_correctness_test
//src/test/shell/bazel:execroot_test
//src/test/shell/bazel:empty_package_test
//src/test/shell/bazel:embedded_tools_deps_test
//src/test/shell/bazel:cross_repository_test
//src/test/shell/bazel:cpp_darwin_integration_test
//src/test/shell/bazel:client_test
//src/test/shell/bazel:cc_static_binary_test
//src/test/shell/bazel:cc_integration_test
//src/test/shell/bazel:build_files_test
//src/test/shell/bazel:bound_targets_test
//src/test/shell/bazel:bazel_workspace_status_test
//src/test/shell/bazel:bazel_with_jdk_test
//src/test/shell/bazel:bazel_tools_test
//src/test/shell/bazel:bazel_toolchain_test
//src/test/shell/bazel:bazel_test_test
//src/test/shell/bazel:bazel_sandboxing_test
//src/test/shell/bazel:bazel_sandboxing_cpp_test
//src/test/shell/bazel:bazel_rules_test
//src/test/shell/bazel:bazel_repository_cache_test
//src/test/shell/bazel:bazel_random_characters_test
//src/test/shell/bazel:bazel_localtest_test
//src/test/shell/bazel:bazel_java_test
//src/test/shell/bazel:bazel_experimental_ui_test
//src/test/shell/bazel:bazel_execute_testlog
//src/test/shell/bazel:bazel_example_test
//src/test/shell/bazel:bazel_docgen_test
//src/test/shell/bazel:bazel_determinism_test
//src/test/shell/bazel:bazel_coverage_test
//src/test/shell/bazel:bazel_build_event_stream_test
//src/test/shell:shell_utils_test
//src/test/shell:bashunit_test
//src/test/java/com/google/devtools/build/lib/rules/objc:ObjcRulesTests
//src/test/java/com/google/devtools/build/lib/rules/cpp:cpp-rules-tests
//src/test/java/com/google/devtools/build/lib/rules/android:AndroidInstrumentationTestTest
//src/test/java/com/google/devtools/build/lib/profiler/memory:AllocationTrackerTest
//src/test/java/com/google/devtools/build/lib/profiler/callcounts:CallcountsTest
//src/test/java/com/google/devtools/build/lib/bazel/repository/downloader:DownloaderTestSuite
//src/test/java/com/google/devtools/build/lib/bazel/repository:RepositoryTests
//src/test/java/com/google/devtools/build/lib:standalone-tests
//src/test/java/com/google/devtools/build/lib:shell_test
//src/test/java/com/google/devtools/build/lib:server_test
//src/test/java/com/google/devtools/build/lib:sandbox-tests
//src/test/java/com/google/devtools/build/lib:foundations_test
//src/test/java/com/google/devtools/build/lib:analysis_test
//src/test/java/com/google/devtools/build/android/desugar/runtime:ThrowableExtensionTestWithReuseDesugaringStrategy
//src/test/java/com/google/devtools/build/android/desugar/runtime:ThrowableExtensionTestWithNullDesugaringStrategy
//src/test/java/com/google/devtools/build/android/desugar/runtime:ThrowableExtensionTestWithMimicDesugaringStrategy
//src/test/java/com/google/devtools/build/android/desugar:testdata_sanity_test
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_twice_jar_test
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_java8_jar_test
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_jar_test
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_for_try_with_resources_test_twice
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_for_try_with_resources_test
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_for_disabling_try_with_resources_with_large_minsdkversion_test
//src/test/java/com/google/devtools/build/android/desugar:testdata_desugared_core_library_jar_test
//src/test/java/com/google/devtools/build/android/desugar:stateless_lambda_has_no_factory_method_test
//src/test/java/com/google/devtools/build/android/desugar:simple_method_reference_has_no_factory_method_test
//src/test/java/com/google/devtools/build/android/desugar:no_stubs_for_lambdas_in_implemented_interface
//src/test/java/com/google/devtools/build/android/desugar:jacoco_legacy_default_method_regression_test
//src/test/java/com/google/devtools/build/android/desugar:interface_has_method_bodies_removed
//src/test/java/com/google/devtools/build/android/desugar:initializer_of_functional_interface_should_not_execute
//src/test/java/com/google/devtools/build/android/desugar:inherited_abstract_method_gets_no_default_method_stub
//src/test/java/com/google/devtools/build/android/desugar:desugar_testdata_by_disabling_lambda_desugaring_test
//src/test/java/com/google/devtools/build/android/desugar:desugar_idempotency_test
//src/test/java/com/google/devtools/build/android/desugar:capture_lambda_has_no_factory_method_test
//src/test/java/com/google/devtools/build/android/desugar:TryWithResourcesRewriterUnitTestWithReuseStrategy
//src/test/java/com/google/devtools/build/android/desugar:TryWithResourcesRewriterUnitTestWithNullStrategy
//src/test/java/com/google/devtools/build/android/desugar:TryWithResourcesRewriterUnitTestWithMimicStrategy
//src/test/java/com/google/devtools/build/android/desugar:StackMapBugTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarTryWithResourcesFunctionalTestWithReuseStrategyTwice
//src/test/java/com/google/devtools/build/android/desugar:DesugarTryWithResourcesFunctionalTestWithReuseStrategy
//src/test/java/com/google/devtools/build/android/desugar:DesugarTryWithResourcesFunctionalTestWithNullStrategyTwice
//src/test/java/com/google/devtools/build/android/desugar:DesugarTryWithResourcesFunctionalTestWithNullStrategy
//src/test/java/com/google/devtools/build/android/desugar:DesugarTryWithResourcesFunctionalTestWithMimicStrategyTwice
//src/test/java/com/google/devtools/build/android/desugar:DesugarTryWithResourcesFunctionalTestWithMimicStrategy
//src/test/java/com/google/devtools/build/android/desugar:DesugarObjectsRequireNonNullTestForAndroidLintMode
//src/test/java/com/google/devtools/build/android/desugar:DesugarObjectsRequireNonNullTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarMainClassTestLambdaDirectoryIncorrectlySet
//src/test/java/com/google/devtools/build/android/desugar:DesugarMainClassTestLambdaDirectoryCorrectlySet
//src/test/java/com/google/devtools/build/android/desugar:DesugarLongCompareTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarLikeAndroidStudioFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarJava8LikeAndroidStudioFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarJava8FunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarIdempotencyFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTestWithMultipleInputs
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTestWithClasspathDirectory
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTestFromDirectoryToJar
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTestFromDirectoryToDirectory
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTestForSyntheticMethodsWithLambdaNames
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTestForConstantArgumentsInLambdas
//src/test/java/com/google/devtools/build/android/desugar:DesugarFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarDefaultMethodsIdempotencyFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarDefaultMethodsFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DesugarCoreLibraryFunctionalTest
//src/test/java/com/google/devtools/build/android/desugar:DefaultMethodClassFixerTest
//src/test/java/com/google/devtools/build/android/desugar:BytecodeTypeInferenceTest
//src/test/docker:test_cc_configure-ubuntu-16.04-opt
//src/test/docker:test_cc_configure-ubuntu-16.04-fastbuild
//src/test/docker:test_cc_configure-ubuntu-16.04-dbg
//src/test/docker:test_cc_configure-ubuntu-15.04-opt
//src/test/docker:test_cc_configure-ubuntu-15.04-fastbuild
//src/test/docker:test_cc_configure-ubuntu-15.04-dbg
//src/test/docker:test_cc_configure-fedora23-opt
//src/test/docker:test_cc_configure-fedora23-fastbuild
//src/test/docker:test_cc_configure-fedora23-dbg
//src/test/docker:test_cc_configure-debian-stretch-opt
//src/test/docker:test_cc_configure-debian-stretch-fastbuild
//src/test/docker:test_cc_configure-debian-stretch-dbg
//src/test/docker:test_cc_configure-centos6.7-opt
//src/test/docker:test_cc_configure-centos6.7-fastbuild
//src/test/docker:test_cc_configure-centos6.7-dbg
//src/java_tools/singlejar/javatests/com/google/devtools/build/zip:ZipTests
//src/java_tools/singlejar/javatests/com/google/devtools/build/singlejar:SingleJarTests
//src/java_tools/junitrunner/javatests/com/google/testing/junit/runner:utf8_test_log_test
//src/java_tools/junitrunner/javatests/com/google/testing/junit/runner:junit4_testbridge_integration_test
//src/java_tools/junitrunner/javatests/com/google/testing/junit/runner:deploy_jar_integration_test
//src/java_tools/junitrunner/javatests/com/google/testing/junit/runner:antxmlresultwriter_integration_test
//src/java_tools/junitrunner/javatests/com/google/testing/junit/runner:AllTests
//src/java_tools/junitrunner/javatests/com/google/testing/junit/junit4/runner:RegExTestCaseFilterTest
//src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac:TreePrunerTest
//src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac:ProcessorClasspathTest_bootclasspath
//src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac:JavacTurbineTest
//src/java_tools/buildjar/javatests/com/google/devtools/build/java/bazel:BazelJavaCompilerTest
//src/java_tools/buildjar/javatests/com/google/devtools/build/buildjar:VanillaJavaBuilderTest
//scripts/release:relnotes_test
//scripts/release:release_test
//scripts:bash_completion_test
//examples/shell:test
//examples/py_native:test
//examples/py_native:fail
//examples/java-skylark/src/test/java/com/example/myproject:pass
//examples/java-skylark/src/test/java/com/example/myproject:fail
//examples/java-native/src/test/java/com/example/myproject:sleep3
//examples/java-native/src/test/java/com/example/myproject:sleep2
//examples/java-native/src/test/java/com/example/myproject:sleep1
//examples/java-native/src/test/java/com/example/myproject:sleep0
//examples/java-native/src/test/java/com/example/myproject:resource-fail
//examples/java-native/src/test/java/com/example/myproject:hello
//examples/java-native/src/test/java/com/example/myproject:fail
//examples/java-native/src/test/java/com/example/myproject:custom_with_test_class
//examples/java-native/src/test/java/com/example/myproject:custom
//examples/cpp:hello-success_test
//examples/cpp:hello-fail_test

We need to make them all run on Windows and turn them on on CI, in order to have full test coverage on Windows.

Updated 14/12/2017 09:13 4 Comments

CI, TF_models_syntaxnet: failing with bazelrc read error

bazelbuild/bazel

https://ci.bazel.io/view/Dashboard/job/tf_models_syntaxnet/846/console

[variation=,node=ubuntu_16.04-x86_64] Running on ubuntu_16.04-x86_64-4 in /home/ci/workspace/tf_models_syntaxnet
...
[variation=,node=ubuntu_16.04-x86_64] [syntaxnet] Running shell script
[variation=,node=ubuntu_16.04-x86_64] + /home/ci/.bazel/latest/binary/bazel --bazelrc=/home/ci/workspace/tf_models_syntaxnet-variation=,node=ubuntu_16.04-x86_64/research/syntaxnet/bazel.bazelrc version
[variation=,node=ubuntu_16.04-x86_64] Unexpected error reading .blazerc file '/home/ci/workspace/tf_models_syntaxnet-variation=,node=ubuntu_16.04-x86_64/research/syntaxnet/tensorflow/.tf_configure.bazelrc'

I SSH’d into the machine and the file is there and can be read fine: $ ls -la /home/ci/workspace/tf_models_syntaxnet-variation=,node=ubuntu_16.04-x86_64/research/syntaxnet/bazel.bazelrc -rw-r--r-- 1 ci ci 528 Dec 12 02:30 /home/ci/workspace/tf_models_syntaxnet-variation=,node=ubuntu_16.04-x86_64/research/syntaxnet/bazel.bazelrc

The only thing I noticed is that the bazelrc file has no newline at the end, but I doubt that’d trip up blaze_util::ReadFile.

I suspect this failure is a flake.

Updated 13/12/2017 10:13

CI, TF serving: fails in C++ compilation -- resolved

bazelbuild/bazel

https://ci.bazel.io/view/Dashboard/job/TensorFlow_Serving/1232/consoleFull

[variation=,node=ubuntu_16.04-x86_64] ERROR: /home/ci/.cache/bazel/_bazel_ci/3381ddfdfa9da0588001825d9a3facc5/external/org_tensorflow/tensorflow/core/BUILD:577:1: Couldn't build file external/org_tensorflow/tensorflow/core/_objs/functional_ops_op_lib/external/org_tensorflow/tensorflow/core/ops/functional_ops.pic.o: C++ compilation of rule '@org_tensorflow//tensorflow/core:functional_ops_op_lib' failed (Exit 1): gcc failed: error executing command 
[variation=,node=ubuntu_16.04-x86_64]   (cd /home/ci/.cache/bazel/_bazel_ci/3381ddfdfa9da0588001825d9a3facc5/execroot/tf_serving && \
[variation=,node=ubuntu_16.04-x86_64]   exec env - \
[variation=,node=ubuntu_16.04-x86_64]     PATH=/home/ci/node/node-v6.9.1-linux-x64/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin \
[variation=,node=ubuntu_16.04-x86_64]     PWD=/proc/self/cwd \
[variation=,node=ubuntu_16.04-x86_64]     PYTHON_BIN_PATH=/usr/bin/python \
[variation=,node=ubuntu_16.04-x86_64]     PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages \
[variation=,node=ubuntu_16.04-x86_64]     TF_NEED_CUDA=0 \
[variation=,node=ubuntu_16.04-x86_64]     TF_NEED_OPENCL_SYCL=0 \
[variation=,node=ubuntu_16.04-x86_64]   /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK '-std=c++0x' -MD -MF bazel-out/k8-fastbuild/bin/external/org_tensorflow/tensorflow/core/_objs/functional_ops_op_lib/external/org_tensorflow/tensorflow/core/ops/functional_ops.pic.d '-frandom-seed=bazel-out/k8-fastbuild/bin/external/org_tensorflow/tensorflow/core/_objs/functional_ops_op_lib/external/org_tensorflow/tensorflow/core/ops/functional_ops.pic.o' -fPIC -DEIGEN_MPL2_ONLY -D__CLANG_SUPPORT_DYN_ANNOTATION__ -DTENSORFLOW_USE_JEMALLOC -DTENSORFLOW_USE_ABSL -DTF_USE_SNAPPY -iquote external/org_tensorflow -iquote bazel-out/k8-fastbuild/genfiles/external/org_tensorflow -iquote external/bazel_tools -iquote bazel-out/k8-fastbuild/genfiles/external/bazel_tools -iquote external/eigen_archive -iquote bazel-out/k8-fastbuild/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/k8-fastbuild/genfiles/external/local_config_sycl -iquote external/com_google_absl -iquote bazel-out/k8-fastbuild/genfiles/external/com_google_absl -iquote external/nsync -iquote bazel-out/k8-fastbuild/genfiles/external/nsync -iquote external/jemalloc -iquote bazel-out/k8-fastbuild/genfiles/external/jemalloc -iquote external/gif_archive -iquote bazel-out/k8-fastbuild/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/k8-fastbuild/genfiles/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/k8-fastbuild/genfiles/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/k8-fastbuild/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/k8-fastbuild/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/k8-fastbuild/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/k8-fastbuild/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/k8-fastbuild/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/k8-fastbuild/genfiles/external/zlib_archive -iquote external/snappy -iquote bazel-out/k8-fastbuild/genfiles/external/snappy -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/eigen_archive -isystem bazel-out/k8-fastbuild/genfiles/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/k8-fastbuild/genfiles/external/nsync/public -isystem external/jemalloc/include -isystem bazel-out/k8-fastbuild/genfiles/external/jemalloc/include -isystem external/gif_archive/lib -isystem bazel-out/k8-fastbuild/genfiles/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/k8-fastbuild/genfiles/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/k8-fastbuild/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/k8-fastbuild/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/k8-fastbuild/genfiles/external/zlib_archive -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions '-ftemplate-depth=900' -msse3 -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/org_tensorflow/tensorflow/core/ops/functional_ops.cc -o bazel-out/k8-fastbuild/bin/external/org_tensorflow/tensorflow/core/_objs/functional_ops_op_lib/external/org_tensorflow/tensorflow/core/ops/functional_ops.pic.o)
[variation=,node=ubuntu_16.04-x86_64] In file included from external/org_tensorflow/tensorflow/core/framework/allocator.h:23:0,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/tensor.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/attr_value_util.h:24,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/node_def_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/shape_inference.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/ops/functional_ops.cc:16:
[variation=,node=ubuntu_16.04-x86_64] external/org_tensorflow/tensorflow/core/framework/numeric_types.h: In constructor 'tensorflow::bfloat16::bfloat16(float)':
[variation=,node=ubuntu_16.04-x86_64] external/org_tensorflow/tensorflow/core/framework/numeric_types.h:49:16: error: 'isnan' was not declared in this scope
[variation=,node=ubuntu_16.04-x86_64]      if (isnan(v)) {
[variation=,node=ubuntu_16.04-x86_64]                 ^
[variation=,node=ubuntu_16.04-x86_64] external/org_tensorflow/tensorflow/core/framework/numeric_types.h:49:16: note: suggested alternatives:
[variation=,node=ubuntu_16.04-x86_64] In file included from /usr/include/c++/5/complex:44:0,
[variation=,node=ubuntu_16.04-x86_64]                  from external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/Core:99,
[variation=,node=ubuntu_16.04-x86_64]                  from external/eigen_archive/unsupported/Eigen/CXX11/Tensor:14,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/tensor_shape.h:21,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/partial_tensor_shape.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/attr_value_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/node_def_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/shape_inference.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/ops/functional_ops.cc:16:
[variation=,node=ubuntu_16.04-x86_64] /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
[variation=,node=ubuntu_16.04-x86_64]      isnan(_Tp __x)
[variation=,node=ubuntu_16.04-x86_64]      ^
[variation=,node=ubuntu_16.04-x86_64] In file included from external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/Core:558:0,
[variation=,node=ubuntu_16.04-x86_64]                  from external/eigen_archive/unsupported/Eigen/CXX11/Tensor:14,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/tensor_shape.h:21,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/partial_tensor_shape.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/attr_value_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/node_def_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/shape_inference.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/ops/functional_ops.cc:16:
[variation=,node=ubuntu_16.04-x86_64] external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/src/Core/GlobalFunctions.h:88:3: note:   'Eigen::isnan'
[variation=,node=ubuntu_16.04-x86_64]    EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isnan,scalar_isnan_op,not-a-number test,\sa Eigen::isinf DOXCOMMA Eigen::isfinite DOXCOMMA ArrayBase::isnan)
[variation=,node=ubuntu_16.04-x86_64]    ^
[variation=,node=ubuntu_16.04-x86_64] In file included from external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/Core:392:0,
[variation=,node=ubuntu_16.04-x86_64]                  from external/eigen_archive/unsupported/Eigen/CXX11/Tensor:14,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/tensor_shape.h:21,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/partial_tensor_shape.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/attr_value_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/node_def_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/shape_inference.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/ops/functional_ops.cc:16:
[variation=,node=ubuntu_16.04-x86_64] external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h:1111:46: note:   'Eigen::numext::isnan'
[variation=,node=ubuntu_16.04-x86_64]  template<typename T> EIGEN_DEVICE_FUNC bool (isnan)   (const T &x) { return internal::isnan_impl(x); }
[variation=,node=ubuntu_16.04-x86_64]                                               ^
[variation=,node=ubuntu_16.04-x86_64] In file included from external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/Core:433:0,
[variation=,node=ubuntu_16.04-x86_64]                  from external/eigen_archive/unsupported/Eigen/CXX11/Tensor:14,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/tensor_shape.h:21,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/partial_tensor_shape.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/attr_value_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/node_def_util.h:23,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/shape_inference.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:20,
[variation=,node=ubuntu_16.04-x86_64]                  from external/org_tensorflow/tensorflow/core/ops/functional_ops.cc:16:
[variation=,node=ubuntu_16.04-x86_64] external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h:380:45: note:   'Eigen::half_impl::isnan'
[variation=,node=ubuntu_16.04-x86_64]  EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool (isnan)(const half& a) {
[variation=,node=ubuntu_16.04-x86_64]                                              ^
Updated 14/12/2017 19:00 6 Comments

resource counts are incorrect until refresh after updating channel

learningequality/kolibri

<!– Instructions: * Fill out the sections below, replace …’s with information about your issue * Use the ‘preview’ function above this text box to verify formatting before submitting –>

Observed behavior

<!– Description of the behavior that was observed, including screenshots or other references when applicable –>

After updating a channel, resource counts are incorrect. In the case below, the channel originally had 2 resources and then one was deleted in version 3. After updating, the count looked like this:

image

After refreshing and going to import again, the count looked like this:

image

Expected behavior

<!– Description of what behavior was expected but did not occur –>

After updating a channel, resource counts should be accurate

User-facing consequences

<!– Implications and real-world consequences for learners, coaches, admins, and other users of the application –>

Incorrect understanding of what happened during the update

Steps to reproduce

<!– Precise steps that someone else can follow in order to see this behavior –>

  • create a channel with a couple items and publish
  • import everything in it
  • delete an item from the channel. republish it
  • go to import it. click ‘update’
    • channel version updates
    • ‘on your device’ numbers update
    • ‘total’ numbers do not update

Context

<!– Tell us about your environment, including: * Kolibri version * Operating system * Browser –>

Kolibri 0.7.0

Updated 14/12/2017 20:36

local_repository's "bazel-<subrepo>" symlink causes @subrepo//... to fail

bazelbuild/bazel

Description of the problem / feature request / question:

Suppose I have a top-level workspace named toprepo, and it pulls in a local_repository named subrepo.

If the subrepo directory contains Bazel’s convenience symlinks (bazel-out, bazel-bin, etc.), then most of them don’t cause any problems; but the bazel-subrepo one does cause a problem.

If you are in toprepo, then the expression @subrepo//... will navigate into the bazel-subrepo symlink, looking for BUILD files, and it will get confused.

If possible, provide a minimal example to reproduce the problem:

In ~/toprepo, put these files:

WORKSPACE:

workspace(name = "toprepo")

local_repository(
    name = "subrepo",
    path = "../subrepo")

BUILD: empty file

In ~/subrepo, put these files:

WORKSPACE:

workspace(name = "subrepo")

BUILD:

sh_test(
    name = "subtest",
    srcs = ["foo.sh"]
)

foo.sh:

#!/usr/bin/env bash
echo hi from foo.sh

Then: starting in toprepo: bazel test @subrepo//...

Result: It works (runs one test).

Now go into subrepo and do bazel test //...

Result: It works (runs the same test), but also, the convenience symlinks have now been created: bazel-subrepo, bazel-bin, etc.

Now go back to toprepo and run tests again: bazel test @subrepo//...

Result: Error messages:

ERROR: error loading package '@subrepo//bazel-subrepo/external/bazel_tools/src/main/protobuf': Extension file not found. Unable to load package for '@subrepo//tools/build_rules:utilities.bzl': BUILD file not found on package path
ERROR: error loading package '@subrepo//bazel-subrepo/external/bazel_tools/src/main/protobuf': Extension file not found. Unable to load package for '@subrepo//tools/build_rules:utilities.bzl': BUILD file not found on package path
INFO: Elapsed time: 0.116s
FAILED: Build did NOT complete successfully (12 packages loaded)
    currently loading: @subrepo//bazel-subrepo/external/bazel_tools/src/main/protobuf ... (4 packages)
ERROR: Couldn't start the build. Unable to run tests

It seems that subrepo’s bazel-subrepo symlink is the only one that is causing a problem. If you delete that one symlink, but leave all the others, the problem goes away.

Environment info

  • Operating System: macOS 10.12.6 (Sierra)
  • Bazel version (output of bazel info release): 0.8.1
Updated 13/12/2017 12:15 2 Comments

Virtual Servers get updated perpetually because of profile comparison mismatch

F5Networks/marathon-bigip-ctlr

Description

In the logs, a Virtual Server is observed with perpetual updates, although no changes are occurring in Marathon. This happens because the profile in the ApiVirtualServer does not contain a ‘context’ field, whereas the IcrVirtualServer object contains that field. This causes the comparison to fail, and the Virtual Server will get updated.

Controller Version

master

Diagnostic Information

2017-12-12 12:01:37,996 controller: INFO : fetching apps 2017-12-12 12:01:37,998 requests.packages.urllib3.connectionpool: INFO : Starting new HTTP connection (1): 10.190.25.28 2017-12-12 12:01:37,999 requests.packages.urllib3.connectionpool: INFO : Starting new HTTP connection (1): 10.190.25.28 2017-12-12 12:01:38,045 controller: INFO : received event of type event_stream_attached 2017-12-12 12:01:38,047 controller: INFO : Working on app /nginx-app 2017-12-12 12:01:38,047 controller: INFO : Generating config for BIG-IP 2017-12-12 12:01:38,047 controller: INFO : Configuring app /nginx-app, partition Project2 2017-12-12 12:01:38,378 f5_cccl.resource.resource: INFO : Updating ApiVirtualServer: /Project2/nginx-app_8070 2017-12-12 12:01:38,804 controller: INFO : fetching apps 2017-12-12 12:01:38,805 requests.packages.urllib3.connectionpool: INFO : Starting new HTTP connection (1): 10.190.25.28 2017-12-12 12:01:38,850 controller: INFO : Working on app /nginx-app 2017-12-12 12:01:38,850 controller: INFO : Generating config for BIG-IP 2017-12-12 12:01:38,850 controller: INFO : Configuring app /nginx-app, partition Project2 2017-12-12 12:01:39,174 f5_cccl.resource.resource: INFO : Updating ApiVirtualServer: /Project2/nginx-app_8070 2017-12-12 12:01:58,178 controller: INFO : skipping empty message 2017-12-12 12:02:09,573 controller: INFO : fetching apps 2017-12-12 12:02:09,575 requests.packages.urllib3.connectionpool: INFO : Starting new HTTP connection (1): 10.190.25.28 2017-12-12 12:02:09,766 controller: INFO : Working on app /nginx-app 2017-12-12 12:02:09,766 controller: INFO : Generating config for BIG-IP 2017-12-12 12:02:09,766 controller: INFO : Configuring app /nginx-app, partition Project2 2017-12-12 12:02:09,768 requests.packages.urllib3.connectionpool: INFO : Resetting dropped connection: 10.190.24

Updated 14/12/2017 19:18

Find in page freeze

nwjs/nw.js

webview.find(...) freezes app then multiple webviews are present and one of them has transferred from display: none. It is hard to tell details because NWjs becomes completelly unresponsive…

Chromium 61 behaves exactly the same, Chromium >= 62 is ok. NWjs 0.27.1 still freezes. Replicable on macOS >= 10.12, Windows >=7. I haven’t tested it on Linux.

screencast

Manual steps: 1. Click “Switch webviews” - this will toggle display:none on the webviews 2. Type something into the input - it will call webview.find(input.value, {}, function(){ ... }) on the currentlly visible webview

find-in-page-trouble.zip

Updated 14/12/2017 15:55 7 Comments

Pasting links in topic can confuse/break the input field

vector-im/riot-web

<!– This is a bug report template. By following the instructions below and filling out the sections with your information, you will help the us to get all the necessary data to fix your issue.

You can also preview your report before submitting it. You may remove sections that aren’t relevant to your particular case.

Text between <!– and –​> marks will be invisible in the report. –>

Description

image

Topic was:

An alternative integrations menu for Riot | https://github.com/turt2live/matrix-dimension | https://dimension.t2bot.io/

Changed to:

An alternative integrations manager for Riot | https://github.com/turt2live/matrix-dimension | https://dimension.t2bot.io/ | Road to v1: https://github.com/turt2live/matrix-dimension/milestone/1

with steps: 1. Change menu -> manager 2. Add “| Road to v1: ” to end 3. Paste link from github (copied from address bar) 4. Get screenshot above

Version information

<!– IMPORTANT: please answer the following questions, to help us narrow down the problem –>

  • Platform: web (in-browser)
  • Browser: Chrome 62
  • OS: Windows 10
  • URL: riot.im/develop
Updated 12/12/2017 16:40

Double observer call with same property values

Polymer/polymer

Description

In some observers configuration, observer will be called twice with same property values.

Live Demo

https://jsfiddle.net/dw5n0n6o/3/

Steps to Reproduce

  1. Open fiddle
  2. Open console
  3. You will see that setPropC method called twice with same prop values.

Expected Results

Observer should be called only once for each property set.

Actual Results

Observer called twice with same properties.

Browsers Affected

<!– Check all that apply –> - [V] Chrome - [V] Firefox - [V] Edge - [V] Safari 9 - [V] Safari 8 - [V] IE 11

Versions

<!– Polymer.version will show the version for Polymer bower ls or npm ls will show the version of webcomponents.js or webcomponents-lite.js –> - Polymer: v2.3.1

Updated 14/12/2017 03:07 2 Comments

Expected status header not present

vector-im/riot-android

Update to 0.7.06 today causes issue “Expected ‘:status’ header not present. Previous version is fine. Log submitted via app

Edit: In the meantime is there an easy way to get the older version back? It’s not on APK mirror

Edit2: Error still occurs after clearing data/cache and going to the main screen. Can’t even log in.

Updated 14/12/2017 07:39 13 Comments

docs, Windows, runfiles: document runfiles semantics on Windows

bazelbuild/bazel

Split from https://github.com/bazelbuild/bazel/issues/4261#issuecomment-350797169:

Document the windows specific behaviour at right place, i.e. https://docs.bazel.build/versions/master/output_directories.html. Bazel on Windows may desire a dedicated page on useage. Currently there is only the installation instruction on Windows.

Perhaps a side-by-side comparison between Linux/macOS and Windows runfiles semantics would be the best.

Updated 13/12/2017 17:45 1 Comments

IE11 - Unable to get property 'length' of undefined or null reference

Polymer/polymer

Description

image

Live Demo

Reproducible with px-data-grid repo.

Steps to Reproduce

  1. Clone the https://github.com/vaadin/px-data-grid repo
  2. Install deps
  3. polymer serve
  4. Open the served document in IE11

Expected Results

No error is throw

Actual Results

Exception Unable to get property 'length' of undefined or null reference

Browsers Affected

<!– Check all that apply –> - [ ] Chrome - [ ] Firefox - [ ] Edge - [ ] Safari 9 - [ ] Safari 8 - [x] IE 11

Versions

  • Polymer: v2.3.1
  • webcomponents: v1.0.20
Updated 12/12/2017 19:03

College Profile Module: Course controls sequence is given wrong(P2).

srinikoganti/sams

Error: College Profile->Course->Edit>Here the given sequence is Stream dropdown, Group dropdown, Type dropdown,Medium dropdown. But the order should be Stream dropdown, Type dropdown,Group dropdown,Medium dropdown. sequence should be: Stream——Type——-Group——–Medium.

And also there is no relation established between the drop downs. 1)Type should be displayed based on the selected Stream . 2)All the available Groups should be displayed based on the selected Stream and type. 3)All the available mediums should be displayed for the selected stream,course and type.

Updated 12/12/2017 11:18

Microcopy on create community dialogue

vector-im/riot-web

When I was playing around trying to introduce sensible defaults on the create community dialogue (http://jsfiddle.net/5ocu2cqk/5/), I wrote some microcopy for the two fields.<hr>

Community Name

Your community name is how people will know your community - it should be as descriptive as possible to help people know what your community is all about. Remember: your community name is not unique across Matrix.

Community ID

Your community ID is a unique identifier; people will see it when you invite them to your community. Try to choose something that is easy to read and clearly represents your community. Matrix community IDs are lowercase only; words should be separated-with-dashes.

Updated 12/12/2017 16:38

College Profile Module: Women Empowerment display issues(P2).

srinikoganti/sams

Error: College Profile->Support Services tab->Edit-> In ‘Women Empowerment’ Radio button list even though i have selected ‘No’ and update, In the display , It is showing as i have checked ‘Yes’.

Please refer the below screen shot.

Here i have checked as ‘NO’ women empowerment radio

But displaying as ‘YES’. And also showing shortcut as ‘Women Cell’ but it should be ‘Women Empowerment Cell’. women empowerment display

Updated 12/12/2017 10:31

College Profile Module: Date format is given wrong(P2).

srinikoganti/sams

Error: College Profile->Courses tab->Edit->when i select any date from the Date Picker, it is showing in wrong format that is yyyy-mm-dd format. It should show dd-mm-yyyy. And while display, it is showing dd-mm-yyyy. And also the date picker is not disappearing as soon as i select the date. When only click some where in the page, then the date picker is going off.

Please refer the below screen shots.

datepickerissue

wrongdateformat

coursedisplay

Updated 12/12/2017 10:35

College Profile Module: Displaying old courses in Courses tab(P2).

srinikoganti/sams

Error: In College Profile, Courses tab, i have added a course for srr login and i have deleted from edit course page and hit the update button. Again if i see in Courses tab, it is showing old courses and if i go to edit page of Courses, it is showing only one course. Please refer the below screen shots.

Showing 2 courses in display. coursedisplay1

Showing only one course in edit page. courseedit

Updated 12/12/2017 10:37

College Profile: Missing Course display link(P2)

srinikoganti/sams

Error: In Admin Dash Board page, ‘Active Courses’ section, either we are missing ‘More Info(to display all the available courses list)Link Or we are not displaying all the courses 'Courses’ tab. We should do either of them. Please refer the below screen shots for more clarity.

Here in the Admin Dash Board, we are displaying 21 courses available in srr college and there is no link provided to see the list of the available courses. missing courselink Or/And And here in the Courses tab, we are not showing all the 21 courses list which are already available in that college. coursedisplay

Updated 12/12/2017 10:37

UI does not show when focused within the editing window of a Google Doc

jchang504/keeptabs

Unexpectedly, 1f92debb055b8fc567fb6d297292d78f786587ce fixed #2 along with #25. But for some reason, the UI (hold key indicator and tab search) does not show when you activate hold keys while focused within the editing window. As before, everything works normally if you click out of the editing window (e.g. top of the page). Needs investigation to figure out what’s going on. I suspect it’s more than just CSS because a quick glance at the console suggests that tab search is not being activated at all, not just being hidden under something.

Updated 12/12/2017 04:49

--replace_strings does not understand goog.module names

google/closure-compiler

Given this code:

// err.js
goog.module('example.Err');
class Err extends Error {}
exports = Err;

// thrower.js
goog.module('example.thrower');
const Err = goog.require('example.Err');
function throwErr() {
  throw new Err('please replace me');
}

String replacement does not occur when compiling with --replace_strings='example.Err(?)'.

It does occur when compiling with --replace_strings='Err(?)'.

Just using the short name is not a great solution, since short names can conflict, and module names can be shortened differently, across different modules in the compilation unit.

The same issue exists with goog.scope, but then at least you can simply avoid scoping the error type. With goog.module, the namespace must be removed, so there is no way to specify that a string replacement should be applied to a certain error type.

Updated 13/12/2017 17:31 3 Comments

Bug in observe property handling in dom-repeat (__handleObservedPaths)

Polymer/polymer

Description

Hey,

I think I found a bug in handling of the dom-repeat template’s observe property.

If the observe property should observe a path to an item’s subproperty, such as this: [ { mainObject: { subObject: { value: null } } } ] The following doesn’t work (leaving out nonessential attributes), even though it should: <template is="dom-repeat" observe="mainObject.subObject.value"> Omiting the first-level subproperty does the trick, but I don’t think this is the expected behavior: <template is="dom-repeat" observe="subObject.value">

I believe the issue lies here:

polymer/lib/elements/dom-repeat.html: __handleObservedPaths(path) { // Handle cases where path changes should cause a re-sort/filter if (this.__sortFn || this.__filterFn) { if (!path) { // Always re-render if the item itself changed this.__debounceRender(this.__render, this.delay); } else if (this.__observePaths) { // Otherwise, re-render if the path changed matches an observed path path = path.substring(path.indexOf('.') + 1); let paths = this.__observePaths; for (let i=0; i<paths.length; i++) { if (paths[i].indexOf(path) === 0) { this.__debounceRender(this.__render, this.delay); } } } } }

Specifically here: path = path.substring(path.indexOf('.') + 1); This line removes the first object from the notified item path, changing mainObject.subObject.value from the example above to subObject.value, which is then never found in the for loop, as it compares the shortened path to paths from observe="mainObject.subObject.value" property.

I hope the live demo helps:

Live Demo

http://jsbin.com/haqonocufo/1/edit?html,output

Steps to Reproduce

Create array of complex objects, bind the array to dom-repeat template, create a filter function, set a subproperty to observe path of the subproperty and change the subproperty after initial render.

Expected Results

Template gets re-rendered because of the observed subproperty change.

Actual Results

Template doesn’t get re-rendered.

Versions

  • Polymer: v2.3.1
  • webcomponents: v1.0.20
Updated 11/12/2017 17:44

CI, bazel-tests: failed because "Server crashed during startup."

bazelbuild/bazel

Ran with Bazel 0.8.1 release at e7707580aa47b1dea03c2c6af2438219ee8d9bd6. I’ll attempt to repro locally.

https://ci.bazel.io/view/Dashboard/job/bazel-tests/1430/consoleFull [node=darwin-x86_64] Running on darwin-x86_64-2 in /Users/ci/workspace/bazel-tests ... [node=darwin-x86_64] FAIL: //src/test/shell/integration:bazel_command_log_test (shard 1 of 4) (see /private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/execroot/io_bazel/bazel-out/darwin-fastbuild/testlogs/src/test/shell/integration/bazel_command_log_test/shard_1_of_4/test.log) [node=darwin-x86_64] INFO: From Testing //src/test/shell/integration:bazel_command_log_test (shard 1 of 4): [node=darwin-x86_64] ==================== Test output for //src/test/shell/integration:bazel_command_log_test (shard 1 of 4): [node=darwin-x86_64] INFO[bazel_command_log_test 17:10:53.N (+0000)] bazel binary is at /private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/src/test/shell/integration/bazel_command_log_test.runfiles/io_bazel/src/test/shell/bin [node=darwin-x86_64] INFO[bazel_command_log_test 17:10:53.N (+0000)] setting up client in /private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2/workspace [node=darwin-x86_64] INFO[bazel_command_log_test 17:11:12.N (+0000)] setting up client in /private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2/workspace [node=darwin-x86_64] INFO: $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2' and max_idle_secs default is '15'. [node=darwin-x86_64] WARNING: Running Bazel server needs to be killed, because the startup options are different. [node=darwin-x86_64] [node=darwin-x86_64] Integration tests of bazel command log. [node=darwin-x86_64] [node=darwin-x86_64] ** test_client_server_mode_with_logging_flag *********************************** [node=darwin-x86_64] -- Test log: ----------------------------------------------------------- [node=darwin-x86_64] INFO: $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2' and max_idle_secs default is '15'. [node=darwin-x86_64] .INFO: Reading 'startup' options from /private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2/bazelrc: --output_user_root=/private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2/root --host_javabase=/private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/src/test/shell/integration/bazel_command_log_test.runfiles/local_jdk [node=darwin-x86_64] [node=darwin-x86_64] Server crashed during startup. Now printing '/private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2/root/2b3c63579012db7c499e5eb8d5daf689/server/jvm.out': [node=darwin-x86_64] ------------------------------------------------------------------------ [node=darwin-x86_64] test_client_server_mode_with_logging_flag FAILED: Expected success . [node=darwin-x86_64] /private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/src/test/shell/integration/bazel_command_log_test.runfiles/io_bazel/src/test/shell/integration/bazel_command_log_test:93: in call to test_client_server_mode_with_logging_flag [node=darwin-x86_64] INFO: $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_ci/e238dab0092a26635782fe338f37014d/bazel-sandbox/5353985051735142676/execroot/io_bazel/_tmp/f7c220b0f470ad2773ff5e717c672be2' and max_idle_secs default is '15'. [node=darwin-x86_64] ........... [node=darwin-x86_64] FAILED: test_client_server_mode_with_logging_flag [node=darwin-x86_64] [node=darwin-x86_64] ** 0 / 1 tests passed. ********************************************************* [node=darwin-x86_64] ** There were errors. ********************************************************** [node=darwin-x86_64] ================================================================================

Updated 12/12/2017 15:46 5 Comments

FreeBSD packaging install performance regression

saltstack/salt

This commit: https://github.com/saltstack/salt/commit/f9ef30aabe16d920563c802d82e220db01972cc1 causes a major performance regression in FreeBSD since it means that every single state run forces all packages to be reinstalled even if they are already the correct version.

Since the use case of downgrading packages is rare, this commit should be removed. Or if you want a better approach, a version comparison should check if the correct version is already installed.

The problem line is this:

if salt.utils.platform.is_freebsd():

logs look like this: ```

[INFO ] Executing state pkg.installed for [net-mgmt/iftop] [DEBUG ] Could not LazyLoad pkg.normalize_name: ‘pkg.normalize_name’ is not available. [DEBUG ] Could not LazyLoad pkg.check_db: ‘pkg.check_db’ is not available. [DEBUG ] Could not LazyLoad pkg.normalize_name: ‘pkg.normalize_name’ is not available. [INFO ] Executing command [‘pkg’, ‘install’, ‘-yf’, ‘net-mgmt/iftop’] in directory ‘/root’ [INFO ] Executing command [‘pkg’, ‘info’, ‘-ao’] in directory ‘/root’ [DEBUG ] Could not LazyLoad pkg.hold: ‘pkg.hold’ is not available. [INFO ] The following packages were installed/updated: net-mgmt/iftop ```

Updated 11/12/2017 23:37 6 Comments

H5-个人设置: 地址信息管理

bstcine/cine-tasklist

1、在个人信息中,加入地址字段,用户可以在个人信息维护中,点击后的维护界面中,必须要有收件人的字段信息维护,也就是地址维护有两个字段:收件人信息+地址信息 省-市-区做结构化处理,-详细地址直接用一个文本字段来处理

2、在实物商品的订购页面中(如下),如果判断到用户已经有地址信息,则显示该用户的地址信息,该地址信息也允许用户在订购页面中修改

3、需要包含收件人姓名、详细地址,还需要收件人手机 此处的手机号不一定是注册用的手机号。 但是要判断手机号的输入格式的合理性,也就是1开头的11位数字。

<br>

注:参考标准的地址管理功能, 但代码尽可能简化
Updated 11/12/2017 06:48 1 Comments

Cannot merge grains in salt-cloud deploy

saltstack/salt

Description of Issue/Question

If grains settings are placed in /etc/salt/cloud, they are overwritten by grains settings in any provider config. This is unfortunate, as it prevents placing global grains in a single location.

Setup

/etc/salt/cloud: ```yaml

Global server grains.

grains: server: env: production type: cloud group: video ```

/etc/salt/cloud.providers.d/linode.conf: yaml linode: driver: linode apikey: foo password: bar grains: server: provider: linode

/etc/salt/cloud.profiles.d/linode.conf: yaml linode-test: provider: linode image: Debian 8 location: Dallas, TX, USA size: Linode 1024

/etc/salt/grains of created minion: yaml server: provider: linode

Steps to Reproduce Issue

  • Create the above /etc/salt/cloud, /etc/salt/cloud.providers.d/linode.conf, and /etc/salt/cloud.profiles.d/linode.conf files on a master
  • Run salt-cloud -p linode-test test
  • Observe that /etc/salt/grains on the created test minion does not contain the grains as provided in /etc/salt/cloud.

Versions Report

Salt Version: Salt: 2017.7.2

Dependency Versions: cffi: 0.8.6 cherrypy: Not Installed dateutil: 2.2 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed Jinja2: 2.9.4 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.4.2 mysql-python: 1.2.3 pycparser: 2.10 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.9 (default, Jun 29 2016, 13:08:31) python-gnupg: Not Installed PyYAML: 3.11 PyZMQ: 14.4.0 RAET: Not Installed smmap: Not Installed timelib: Not Installed Tornado: 4.2.1 ZMQ: 4.0.5

System Versions: dist: debian 8.10 locale: UTF-8 machine: x86_64 release: 3.16.0-4-amd64 system: Linux version: debian 8.10

Updated 11/12/2017 20:14 1 Comments

Riot often chokes on messages

vector-im/riot-android

Very often I see messages getting stuck without being sent. When I kill and restart Riot, I’m prompted “resend or cancel”. When I resend, some messages make it out. Sometimes I need to kill and restart many times before all the messages have been sent. Is this a known issue? screenshot_20171210-212436

Riot version 0.7.05

Updated 14/12/2017 23:23 9 Comments

Markdown button should give hint about what Markdown actually is

vector-im/riot-web

<!– This is a bug report template. By following the instructions below and filling out the sections with your information, you will help the us to get all the necessary data to fix your issue.

You can also preview your report before submitting it. You may remove sections that aren’t relevant to your particular case.

Text between <!– and –​> marks will be invisible in the report. –>

Description

The Markdown button in the text editor should probably give some hint as to what Markdown actually is (and say what pressing the button does, rather than the current state). Perhaps the button could be changed from “Markdown is Enabled” to “Disable Markdown text formatting”.

Version information

<!– IMPORTANT: please answer the following questions, to help us narrow down the problem –>

  • Platform: web
  • Browser:Firefox
  • OS: Linux
  • URL: riot.im/develop
Updated 12/12/2017 16:18

Cannot fullscreen TradingView widget on older Riots

vector-im/riot-web

<!– This is a bug report template. By following the instructions below and filling out the sections with your information, you will help the us to get all the necessary data to fix your issue.

You can also preview your report before submitting it. You may remove sections that aren’t relevant to your particular case.

Text between <!– and –​> marks will be invisible in the report. –>

Description

It just produces an error: ToggleFullscreen.js:88 Uncaught TypeError: Cannot read property 'requestFullscreen' of null at t.value (ToggleFullscreen.js:88) at t.value (ToggleFullscreen.js:115) at Object.r (ReactErrorUtils.js:26) at a (EventPluginUtils.js:85) at Object.s [as executeDispatchesInOrder] (EventPluginUtils.js:108) at d (EventPluginHub.js:43) at m (EventPluginHub.js:54) at Array.forEach (<anonymous>) at r (forEachAccumulated.js:24) at Object.processEventQueue (EventPluginHub.js:254)

<!– Include screenshots if possible: you can drag and drop images below. –>

Version information

<!– IMPORTANT: please answer the following questions, to help us narrow down the problem –>

  • Platform: web (in-browser)
  • Browser: Chrome 62
  • OS: Windows 10
  • URL: riot.im/app (widget added on /develop)
Updated 12/12/2017 16:17 1 Comments

Backup strategies aren't consistent in the file module.

saltstack/salt

Description of Issue/Question

Backup strategies aren’t consistent in the file module: file.managed uses standard backup strategy defined in the minion config file, while file.replace has it’s own ‘.bak’ strategy,

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).) Any Salt setup.

Steps to Reproduce Issue

(Include debug logs if possible and relevant.) Any state that uses file.managed and file.replace

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) The bug is in the master.

Updated 11/12/2017 19:42

[impl-j][std] Plot graph in browser when using java runtime

at15/reika

It is possible to draw graph in Java using its own UI library, but it’s way better if we can generate graph in browser. We might want to split the runtime to separate project in the future, so using the compiled java file don’t need to bring the compiler around (along with antl’s icu deps #39 )

  • [ ] find a web framework that supports websocket (so we can push to client)
  • [ ] embed static assets
  • [ ] might just use netty instead of using a full framework
Updated 09/12/2017 05:55

Bug: Windows Stack Trace on Minion

saltstack/salt

Description of Issue/Question

salt-call and salt-minion both show the following stack trace when run in debug mode:

[INFO    ] Executing command 'Powershell -NonInteractive -NoProfile "Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace \"root\WMI\" | Select -Expandproperty Attributes | %{($_.PortWWN | % {\"{0:x2}\" -f $_}) -join \"\"} | ConvertTo-JSON"' in directory 'C:\Users\Shane'
[ERROR   ] Command 'Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select -Expandproperty Attributes | %{($_.PortWWN | % {"{0:x2}" -f $_}) -join ""} | ConvertTo-JSON' failed with return code: 1
[ERROR   ] output: Get-WmiObject : Not supported
At line:1 char:1
+ Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
[ERROR   ] Error converting PowerShell JSON return
Traceback (most recent call last):
  File "c:\salt-dev\salt\salt\modules\cmdmod.py", line 3266, in powershell
    return json.loads(response)
  File "c:\python27\lib\json\__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "c:\python27\lib\json\decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "c:\python27\lib\json\decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Seems to have been introduced in this PR: https://github.com/saltstack/salt/pull/43647

Setup

Install the develop branch

Steps to Reproduce Issue

Run either salt-minion or salt-call with -l debug

Versions Report

Head of develop (oxygen)

Updated 11/12/2017 17:23

Bot Database

NdT3Development/DiscordBot

Change the bot database to use something like SQLite. This will allow for much better data storage, such as support for better warnings and being able to store cases in a database which will help with issues seen recently that have caused the new case number system to not work as intended. (That’s going to push the next version back a bit)

Updated 08/12/2017 19:21

Refactor ModelElement.href implementations

dart-lang/dartdoc

Link calculation in Dartdoc currently makes #739 and #1343 somewhat challenging. There’s no way to tell currently if dartdoc is calling href in a context where we know we should expect to have something to link (#1343). In addition, because of the way link calculation is handled, there’s no easy way to insert alternate handling when we want to link externally (#739).

  • Change href string assembly to be the responsibility of the individual element, and have href for non-canonical elements forward that on to the canonical element. This will help #739 by providing a clear place to insert the link generation.
  • Audit all uses of href and extract returns without links into an expression that explicitly checks whether we should be linking where appropriate to make #1343 possible.
Updated 08/12/2017 17:27

Feature request: Riot should warn if you are the last user in a room with an alias and you try to leave

vector-im/riot-web

<!– This is a bug report template. By following the instructions below and filling out the sections with your information, you will help the us to get all the necessary data to fix your issue.

You can also preview your report before submitting it. You may remove sections that aren’t relevant to your particular case.

Text between <!– and –​> marks will be invisible in the report. –>

Description

If a room becomes empty it becomes unjoinable. If the room has an alias that alias can not be used anymore. Riot should warn about this when you try to leave (and you are the last person left)

Updated 12/12/2017 16:16 2 Comments

In the net45 platform, some types in are public, although under the 'Internal' sub-namespace

AzureAD/azure-activedirectory-library-for-dotnet

The following types (present in the net45 platform only) are public, even if they are located under the Microsoft.IdentityModel.Clients.ActiveDirectory.Internal namespace: - WebBrowserNavigateErrorEventArgs - WindowsFormsWebAuthenticationDialogBase - WindowsFormsWebAuthenticationDialog - WebBrowserNavigateErrorEventHandler We should move them to non-public at the next major release of ADAL.NET.

I don’t think that Microsoft.IdentityModel.Clients.ActiveDirectory.Native.AsymmetricPaddingMode should be public either?

Updated 08/12/2017 15:31

Student Module(P2)

srinikoganti/sams

Home ->Student ->Manage Students-> veera p

In manage student module while i’m Updating the Academic details, in that i’m adding academics and updated then later i’m trying to delete that academics details particulars and then again update it but after updating also those academics details showing as-usual.

academic_error

acedamic1_error

Updated 12/12/2017 11:19

Hyperledger Composer Error Identity has not been registered once issued

hyperledger/composer

Hi I am using hyperledger composer 0.16.0 and I want to persist data to database so that data can be used even after restart. so I am using loopback-connector-mongodb

Context

I have been following this tutorial and I am able to complete it.

I have setup fabric by issuing below steps

cd ${HOME}/fabric-tools/

 ./stopFabric.sh 
 ./teardownFabric.sh
./downloadFabric.sh
./startFabric.sh

cd ${HOME}/tmt/Profile/

composer card create -p connection.json -u PeerAdmin -c Admin@org1.example.com-cert.pem -k 114aab0e76bf0c78308f89efc4b8c9423e31568da0c340ca187a9b17aa9a4457_sk -r PeerAdmin -r ChannelAdmin

composer card import -f PeerAdmin@fabric-network.card

composer runtime install -c PeerAdmin@fabric-network -n dam-network

cd ../dam-network/

# added model.cto file below
composer archive create -t dir -n .

composer network start -c PeerAdmin@fabric-network -a dam-network@0.0.1.bna -A admin -S adminpw

composer card import -f admin@dam-network.card

composer network ping -c admin@dam-network

chmod -R 777 ${HOME}/.composer 

## onetime setup using npm install -g loopback-connector-mongodb
docker run -d --name mongo --network composer_default -p 27017:27017 mongo

cd ${HOME}/tmt/docker

docker build -t myorg/my-composer-rest-server .

#Which is attached below

source envvars.txt

docker run \
    -d \
    -e COMPOSER_CARD=${COMPOSER_CARD} \
    -e COMPOSER_NAMESPACES=${COMPOSER_NAMESPACES} \
    -e COMPOSER_AUTHENTICATION=${COMPOSER_AUTHENTICATION} \
    -e COMPOSER_MULTIUSER=${COMPOSER_MULTIUSER} \
    -e COMPOSER_PROVIDERS="${COMPOSER_PROVIDERS}" \
    -e COMPOSER_DATASOURCES="${COMPOSER_DATASOURCES}" \
    -v ~/.composer:/home/composer/.composer \
    --name rest \
    --network composer_default \
    -p 3000:3000 \
    myorg/my-composer-rest-server

I issue a new identity, to an existing participant and I create a business card for this identity with the following command

composer participant add -c admin@dam-network -d ' {"$class": "com.asset.tmt.User","userId": "tmtadmin","email": "tmtadmin@gmail.com","firstName": "TMT","lastName": "Admin","userGroup": "peerAdmin"} ' 

composer identity issue -u tmtadmin -a com.asset.tmt.User#tmtadmin -c admin@dam-network 

composer card import -f tmtadmin@dam-network.card

Then, I import that business card via POST /wallet/import and I am able to call different REST API operations. After that, I stop the composer-rest-server and after a few minutes I start the composer-rest-server again with the commands  cd ${HOME}/fabric-tools/ ./startFabric.sh docker start mongo rest Then, I authenticate to the REST API using the configured authentication mechanism (in my case passport-github strategy) and if I try to call one operation for REST API it throws a A business network card has not been specified error message, then I import the previous business card via POST /wallet/import getting a no content which is supposed to be correct.

Finally, when I try to call another REST API operation I get the following error:

{
  "error": {
    "statusCode": 500,
    "name": "Error",
    "message": "Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Enrollment failed with errors [[{\"code\":400,\"message\":\"Authorization failure\"}]]",
    "stack": "Error: Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Enrollment failed with errors [[{\"code\":400,\"message\":\"Authorization failure\"}]]\n    at client.getUserContext.then.then.catch (/home/composer/.npm-global/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:305:34)\n    at <anonymous>\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)"
  }
}

Expected Behavior

This should work even after restart

Actual Behavior

This is the main issue, I don’t know why my identity is not being recognized by the REST API if I used it previously to call some operations.

Your Environment

<!— Include as many relevant details about the environment you experienced the bug in –> * Version used: 0.16.0 * Environment name and version (e.g. Chrome 39, node.js 5.4): chrome latest and node.js 8.9.1 * Operating System and version (desktop or mobile): Ubuntu desktop

My envvars.txt

COMPOSER_CARD=admin@dam-network
 COMPOSER_NAMESPACES=never
 COMPOSER_AUTHENTICATION=true
 COMPOSER_MULTIUSER=true
 COMPOSER_PROVIDERS='{
    "github": {
        "provider": "github",
        "module": "passport-github",
        "clientID": "xxxxxxxxxxxxx",
        "clientSecret": "xxxxxxxxxxxxxxxxxxxxx",
        "authPath": "/auth/github",
        "callbackURL": "/auth/github/callback",
        "successRedirect": "/",
        "failureRedirect": "/"
    }
}'
 COMPOSER_DATASOURCES='{
    "db": {
        "name": "db",
        "connector": "mongodb",
        "host": "10.142.0.10"
    }
}'

model.cto

/**
 * Model Definitions
 */
namespace com.asset.tmt

participant User identified by userId {
  o String userId
  o String email
  o String firstName
  o String lastName
  o String userGroup
}

asset Asset identified by assetId {
  o String assetId
  o String name
  o String creationDate
  o String expiryDate
}

transaction ChangeAssetValue {
  o String expiryDate
  o String assetId
  o String userId
}
Updated 14/12/2017 00:54 4 Comments

Only see part of the words for channel's language selection

learningequality/kolibri

Observed behavior

<img width=“195” alt=“screen shot 2017-12-07 at 3 34 34 pm” src=“https://user-images.githubusercontent.com/19424916/33744287-602f026c-db65-11e7-8e32-b9a5ab3d2800.png”>

The word English only has upper part

Note in Keen-UI demo, characters with descenders do not get cut off (possibly because they are assuming Roboto font?) https://josephuspaye.github.io/Keen-UI/#/ui-select

Expected behavior

Words for language selection should be shown fully

User-facing consequences

Users can’t see the full words, although it doesn’t really affect them understand the words

Steps to reproduce

  1. Go to the remote import page
  2. Select a language

Context

  • Kolibri version: 0.7
  • Operating system: Mac OS X
  • Browser: Chrome
Updated 14/12/2017 20:51

SQL DDL interface to manage vschemas

youtube/vitess

Proposal

The current method of managing vschemas is cumbersome and error-prone, as it requires editing the JSON schema that describes the whole keyspace and access to the management interface on the vtctld.

Instead it would be more convenient to manage these at the vtgate via Vitess-specific SQL DDL commands.

This assumes the user has selected a given keyspace with USE <keyspace>

Adding a new vindex:

CREATE VINDEX <name> <type> [WITH [param1=val1], [param2=val2] ...] [OWNER <table>]

Examples:

CREATE VINDEX `hash_vdx` hash
CREATE VINDEX `name_user_vdx` lookup_hash WITH table=`name_user_idx`, from=`name`, to=`user_id` OWNER `user`

Deleting a vindex:

DROP VINDEX <name>

Showing vindexes:

SHOW VINDEXES

|---------------|-------------|------------------------------------------|-------|
| Name          | Type        | Params                                   | Owner |
|---------------|-------------|------------------------------------------|-------|
| hash_vdx      | hash        |                                          |       |
| name_user_vdx | lookup_hash | table=name_user_idx from=name to=user_id | user  |
|---------------|-------------|------------------------------------------|-------|

Configuring a column vindex on a table:

ALTER TABLE <table> ADD VINDEX <name> ON <col>

Examples:

ALTER TABLE `user` ADD VINDEX `hash_vdx` ON `user_id`
ALTER TABLE `user` ADD VINDEX `name_user_vdx` ON `name`

Removing a column vindex for a table:

ALTER TABLE `user` REMOVE VINDEX FROM `name`

Showing vindexes on a table

SHOW VINDEXES ON user

|---------------|---------|
| Name          | Column  |
|---------------|---------|
| hash_vdx      | user_id |
| name_user_vdx | name    |
|---------------|---------|
Updated 07/12/2017 23:17

Inconsistent behaviors when viewing unlisted + unavailable channels

learningequality/kolibri

Observed behavior

To view an Unlisted (i.e. not public) and unavailable (i.e. no resources downloaded on device) channel, one must enter the Channel’s token in the “Enter channel token modal”.

Once it’s been made available (by downloading resources), then these issues do not apply.

Here are some issues

Not force fetching: If the channel has been updated on Studio within a single session on Kolibri, then when going through the “Enter channel token” modal, the resulting page will not indicate that the channel has been updated. This is because the RemoteChannelResource is not doing a force fetch.

Auto-updating

The upgrade button flashes briefly after the new metadata is downloaded. This is probably due to a timing issue between when pageState.channelList is updated and when pageState.wizardState.transferredChannel is updated.

upgrade flash

Expected behavior

Updates occur in a single session: Can be fixed by force fetching when getting Channel info through the modal.

Auto-updating: The update button does not flash.

Context

Kolibri version: 0.7

Updated 14/12/2017 20:53

bazel --client_debug should print server.pid location

bazelbuild/bazel

We got a workspace into a strange state: the server process had been killed, but the client kept trying to connect to it. Don’t know how to repro.

However, recovering from this was difficult, because - we didn’t know where bazel keeps the server pid - when we did figure out that it’s in the output_base, we couldn’t run bazel info to find out the location of the output_base

We did discover bazel --client_debug from the documentation, but it didn’t tell us how it finds the server. If it printed the absolute path to the server-pid.txt file it would have saved a lot of trouble.

Updated 11/12/2017 14:12

Fork me on GitHub