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

green up treeherder for bootstrapped add-on on pine

mozilla/activity-stream

This is actually probably several different issues. https://treeherder.mozilla.org/#/jobs?repo=pine is an example of the bootstrapped add-on test results on pine. A few of these are actually “normal” intermittent mozilla-central failures. Other classes include:

  • a bunch of identical-looking failures related to the localization set-up on pine
  • a set of failures due to the fact that a bunch of tests in the tree are expecting old-school new tab semantics, even though the push to pine is only building and testing the bootstrapped add-on. We may need to do some things to make both sets of preferences work in the tests, since presumably we’re going to be feature-flagged in the tree for a while.
  • eslint failure (there’s already a github issue open for this

Next steps here are to go through all the failing test (classes) and break them down into separate tickets.

Updated 20/03/2017 18:35

added access to itemRegistry to scripts

eclipse/smarthome

Working on some new use cases, I quickly noticed that only having access to item states in scripts isn’t enough - similar as we make the ThingRegistry available, we also need the ItemRegistry. Nonetheless, it can also be helpful to have a quick access to the states directly - so I have kept that in place. Wrt the naming, it didn’t make any sense to keep “items” as a key for the states, so I have changed this to “states”, which is effectively a breaking change.

Signed-off-by: Kai Kreuzer kai@openhab.org

Updated 20/03/2017 00:22 4 Comments

Wait visual regression tests fail on Windows

blackbaud/skyux2

Whenever I run visual regression tests for Sky Ux 2 on Windows the tests for the wait component fail every time. They all fail with the following issue:

 wait component should display wait on parent:
Failed: endY is out of range
running chrome
undefined: endY is out of range

This occurs even with a fresh pull of master with no changes to the code.

Updated 15/03/2017 17:48

Need a better way to keep the version number updated

sbmlteam/python-libsbml

The file PKG-INFO currently has a hard-coded libSBML version number (which is currently listed as 5.12.1). I’m concerned it will be too easy for the maintainers to update the version when issuing a new release.

On approach might be to create a script that is run as part of the release procedure; the script could use sed or something similar to update the version number automatically.

Updated 14/03/2017 00:55

Sync config_sample_php_parameters.rst with changes from core

owncloud/documentation

Concerning: https://doc.owncloud.org/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html and https://github.com/owncloud/documentation/blob/master/admin_manual/configuration_server/config_sample_php_parameters.rst

It seems the mentioned file was autogenerated in the past from the config.sample.php of core. This was done in commits like e.g. https://github.com/owncloud/documentation/commit/c55639ffb52b573a28d1ff74fad9bb7fc24ac23a

This was done the last time 9 months ago, but there where quite a few changes since then:

https://github.com/owncloud/core/commits/master/config/config.sample.php

I think it would make sense to redo this once a while for all branches (not only master) to keep the documentation in sync with the config.sample.php from core.

Updated 14/03/2017 11:15 4 Comments

JavaScript linter fails on ES6 code

EndPointCorp/lg_ros_nodes

Overview

We’ve been using closure linter to lint our JavaScripts, but that project is deprecated and fails when run against ES6 code. We need to find another solution.

Requirements

  • JavaScript linter does not break on ES6 code.

Development notes

Testing scenario

Must run against the old exclusion list (lib,lg_cms_director) and not fail on ES6 syntax.

Updated 09/03/2017 23:01

Rule / Modules: Should they use a separate scope?

eclipse/smarthome

Perhaps I am wrong, so please me correct me…

The different module handles add information to the global scope and this information could be used by e.g. Scripts.

E.g. some different modules add different stuff, e.g. state, newState, oldState, event, …

All this is added to the global namespace… Wouldn’t it be better placed in a separate namespace?

So, stuff injected by handlers does not collide some time with stuff that is added by the rule themselves?

So e.g. ctx.newState, ctx.oldState, … Or do I miss there something?

Updated 16/03/2017 06:54 3 Comments

Template resolving discussion.

eclipse/smarthome

I open this issue to continue discussion from #3050 - about template resolving.

@kaikreuzer ’s comment:

I think the PR#3097 will fix the problem.

Thanks.

But IMHO this should be a temporary change.

Yes, so we should continue discussing a proper solution. I did a suggestion above already:

We could also try to dynamically determine this: If a module is marked as HIDDEN, we could keep the placeholder, while any module that is meant to be displayed in the UI should also have “real” config values and no placeholder anymore.

This would allow us to do “black box templates”, i.e. create rules from templates, which do not expose their inner workings, but merely offer their configuration to the user. The hidden, internal modules would still have the placeholders, which are only replaced for the RuntimeRule. On the other hand, it also allows templates as a one-time skeleton for a complex rule, which is created in all its glory and left for further customization to the user - he might change modules, their configuration, etc and thus there must be no placeholders in the module configuration anymore.

What do you think about that?

Updated 16/03/2017 07:20 12 Comments

Improve package dependency management

DeDop/dedop-conda

This is based on the guideline written by @forman in CCI-Tools project (https://github.com/CCI-Tools/cate-core/issues/139)

Dependencies should be expressed such that PACKAGE>=MAJOR.MINOR[.PATCH]<MAJOR.(MINOR+1) achieving API compatibility according to SemVer. PATCH should ideally be omiited if not required for some reason.

In only rare cases we should rely on a specific version such that PACKAGE=MAJOR.MINOR.PATCH. For example, this could be the consequence of fixing a dependency conflict. In any of such cases, the reason for doing so must be documented (e.g. comment line).

Any transitive dependencies should not be specified at all unless there is special need for this. A dependency is non-transitive if we import it explicitly in Python code or we need it for some special behaviour (e.g. dask used by xarray) or it provides a special, dynamically loaded plugin.

These are the places where dependencies are declared. All configurations should share the same dependency specifications:

Updated 02/03/2017 08:26

Make 'style' target silent

dlang/phobos

This is a short follow-up to https://github.com/dlang/phobos/pull/5199 and this PR sets calls and echos in the style target to silent as Andrei requested. A message(s) will only be printed in case of an error.

However, I am not so convinced that this is a good idea because (a) it might make debugging more difficult and (b) there will be no visual feedback for 10-15s.

Anyways here are the potential changes. (I opened this PR because I am fine with both ways.)

Updated 01/03/2017 03:00

Flakey S3 uploads

edgi-govdata-archiving/archivers.space

Occasionally when trying to use keys generated by the app to upload large files to S3, you get permission denied errors.

Potential solutions: * behind-the-scenes direct upload from browsers to S3 * the backend passes the browser a temp key when the user presses the download button * cloud-native development (no need to upload if it’s all in the cloud)

Updated 27/02/2017 14:44 2 Comments

AutomationManagementClient parameter marshalling differs from Azure portal

Azure/azure-sdk-for-net

We are issuing Azure Automation Jobs (runbook execution requests) via AutomationManagementClient. There Parameters are provided via a Dictionary<string, string> as described in the documentation. We noticed, that some of our parameter strings that happened to contain numbers seem to lose leading zeros (e.g. 0815 results in 815). We do not get this behavior if the runbook is interactively triggered via the Azure portal.

After some investigation we noticed that in the job run logs input section shows the input value in quotes (e.g. "0815") for interactively triggered jobs and without quotes (e.g. 0815) for requests issued through the SDK. It looks as if the client does not marshal the parameters in the same way (or at all) as the Azure portal.

A basic runbook to show this behavior:

param (
    [Parameter(Mandatory=$false)]
    [string] 
    $TenantIdentifier
)

Write-Output "Creating tenant '$TenantIdentifier'"

When triggered through the SDK via

var parameters = new Dictionary<string, string>();
parameters.Add("TenantIdentifier", "0815");

var authority = "...";
var clientId = "...";
var secret = "...";
var subscriptionId = "...";
var resourceGroupName = "...";
var automationAccount = "...";
var runbook = "...";

var ctx = new AuthenticationContext(authority);
var result =
    await ctx.AcquireTokenAsync("https://management.core.windows.net/", new ClientCredential(clientId, secret));
var token = result.CreateAuthorizationHeader().Substring("Bearer ".Length);
var credentials = new TokenCloudCredentials(subscriptionId, token);
var client = new AutomationManagementClient(credentials);
var cancellationToken = new CancellationToken();
var job = await client.Jobs.CreateAsync(resourceGroupName, automationAccount, new JobCreateParameters
{
    Properties = new JobCreateProperties(new RunbookAssociationProperty
    {
        Name = runbook
    })
    {
        Parameters = parameters
    }
}, cancellationToken);

the resulting output is

Creating tenant '815'

instead of the expected

Creating tenant '0815'

This looks somewhat like there is some serialization/deserialization with included type guessing going on which causes the number-like string provided by the client to be interpreted as a number. We were unable to find documentation hinting at that behavior and given that the property Parameters of JobCreateProperties is of type IDictionary<string, string> it is not intuitive to have to add additional escaping on the client side.

Thank you in advance for looking into this.

Updated 24/02/2017 19:31 1 Comments

include a command-line invocation when generating an AWS token for harvesting

edgi-govdata-archiving/archivers.space

From @titaniumbones on February 11, 2017 7:28

When an AWS burner token is generated (for upload after harvesting), would it be possible to also include a script or one-liner that a user could run trivially on a remote VM? Asking mostly for those of us who have no AWS experience, Even if not downloadable, such a script could at least be documented & put in the harvesting-tools.

Copied from original issue: b5/pipeline#62

Updated 26/02/2017 23:07 2 Comments

Feed pipeline directly from chrome extension

edgi-govdata-archiving/archivers.space

From @titaniumbones on February 5, 2017 17:34

If we could feed the pipeline directly from the chrome extension, seeders at events could provide dataset URL’s for use on that day, even if @b5 and @danielballan are not physically present. So… that seems like a very substantial improvement. Here' are some todo items for that – happy to add to README if feature seems attainable/worth pressing towards. - [ ] implement a GET interface that accepts an entry from the Chrome extension & creates a new mongodb record - [ ] implement a security model for dealing w/ extension users – either by marking URL’s as chrome-seeded, or by adding authentication to the extension - [ ] decide whether we want the app to handle all nominations, even URLS going only to the IA. If so, figure out how to manage the IA seeds. If not, decide on criteria for sending URL to one storage location, the other, or both.

I’m sleepy! hope y'all are getting some rest!

Copied from original issue: b5/pipeline#40

Updated 09/03/2017 14:14 8 Comments

Update research to reflect changes to Nomination Chrome Extension

edgi-govdata-archiving/archivers.space

From @dcwalk on February 1, 2017 3:58

See edgi-govdata-archiving/presidential-harvest-nomination-tool#7.

<img width=“1159” alt=“screen shot 2017-01-31 at 10 51 29 pm” src=“https://cloud.githubusercontent.com/assets/4692834/22494728/f3e83502-e807-11e6-8ad6-d76998cc381b.png”>

Copied from original issue: b5/pipeline#9

Updated 26/02/2017 18:12 19 Comments

Run skyux visual tests through a skyux page

blackbaud/skyux2

Currently we are running our visual regression tests by using webpack to serve some component fixtures up locally, and then use the local Browserstack tunnel to test using multiple browsers.

This has a couple of drawbacks:

  • The Browserstack local tunnel can be flakey and disconnect randomly at times
  • Serving up our files with webpack doesn’t allow us to have as many tests running in parallel, because they start slowing down to the point of failure as we add more.
  • Our visual tests are not being run in a environment similar to our users (SKY UX host/builder/etc)

To solve this, we should find a way to build our visual tests as a SKY UX app, which our visual tests will then hit remotely.

Updated 15/02/2017 18:24

CNFE in ScriptModuleActivator

eclipse/smarthome

I get a CNFE on the first Script rule execution.

Exception while importing scope: java.lang.ClassNotFoundException: org.eclipse.smarthome.core.library.types.OpenClosedType cannot be found by com.eclipsesource.jaxrs.jersey-min_2.22.1

Details below…

  • Use the recent master branch (commit f3f43bf3c764bb03e7465139c17a75cf3c058f34) without local modifications
  • Change the Eclipse SmartHome launch configuration and enable the most of the Automation bundles
  • Start the Eclipse SmartHome launch configuration
  • Open the Rules section of the PaperUI
  • Create a new rule
  • Choose a name
  • Add an action by pressing on + after the then... text
  • Select the action type execute a given script
  • Press on NEXT
  • Check that the selectio is set to JavaScript
  • Add a simple script e.g. print("hello");
  • Press on OK
  • Save the rule
  • The log should contain something similar to
18:40:19.528 INFO  smarthome.event.RuleAddedEvent[:43] - Rule 'rule_1' has been added.
18:40:19.550 INFO  s.event.RuleStatusInfoEvent[:43] - rule_1 updated: INITIALIZING
18:40:19.564 INFO  s.event.RuleStatusInfoEvent[:43] - rule_1 updated: IDLE
18:40:19.568 DEBUG o.e.s.c.c.r.AbstractManagedProvider[:62] - Added new element rule_1 to ManagedRuleProvider.
  • Press the Run Now button

Now the Console shows me a ClassNotFoundException. This exception is only shown the first time and regardless of that excetion the rule is executed.

18:41:03.966 INFO  s.event.RuleStatusInfoEvent[:43] - rule_1 updated: RUNNING
18:41:04.318 WARN  o.e.s.a.m.s.i.ScriptModuleActivator[:211] - Found wrong classloader: To prevent class loading problems use this directive: -Dorg.osgi.framework.bundle.parent=ext
18:41:04.318 DEBUG o.e.s.a.m.s.i.ScriptModuleActivator[:214] - initializing script scope from 'DefaultScriptScopeProvider' for engine 'Oracle Nashorn'.
18:41:04.481 ERROR o.e.s.a.m.s.i.ScriptModuleActivator[:231] - Exception while importing scope: java.lang.ClassNotFoundException: org.eclipse.smarthome.core.library.types.OpenClosedType cannot be found by com.eclipsesource.jaxrs.jersey-min_2.22.1
hello
18:41:04.487 DEBUG o.e.s.a.c.internal.RuleEngine[:882] - The rule 'rule_1' is executed.
18:41:04.488 INFO  s.event.RuleStatusInfoEvent[:43] - rule_1 updated: IDLE
Updated 15/02/2017 09:51 6 Comments

Automate update and download of onesky translation strings via API

apinf/platform

From @kyyberi on January 28, 2017 8:32

At the moment strings to translate are manually uploaded to OneSkyApp in one .json file. Onesky has API which can be used to upload new .json file. With automation of this process we can save human labour and make process faster. Same API can be used to download ready translations to apinf server(s).

https://github.com/onesky/api-documentation-platform/blob/master/README.md

Todo:

  • [ ] Get familiar with onesky API
  • [ ] Design update process
  • [ ] Implement background processes to development servers (scripts perhaps)
  • [ ] Test process
  • [ ] Add information about automation in documentation so that community knows about it
  • [ ] Take into daily use.

Copied from original issue: Digipalvelutehdas/APIKA#315

Updated 17/02/2017 14:48 4 Comments

create a RunRuleAction

eclipse/smarthome

In order to directly execute a set of actions defined in another rule there should be an action module which supports this. This would enable the rule engine to support a kind of scene support. Scenes could be defined in a rule with only a set of actions, theses scenes then can be “activated” by callling runNow() on the rule directly or by an action within anoter rule. The RunRuleAction needs as parameter a set of ruleUIDs which should be executed.

Updated 10/03/2017 12:31 28 Comments

Automation: Rules cannot be distinguished by scope

eclipse/smarthome

Rules can be created in different scopes. Uses cases might be * system rules * rules created by an installing party * rules created by the user * rules created (automatically) by a remote UI

Currently there is no means to distinguish these rules and to find rules for a given scope in an easy way.

A solution might be to add a Scope property to Rule. Changes needed would be * Scope property for Rule * Change the REST API to enable transfer of Scope for Rule * Change the REST API to enable search by Scope for Rule * Changes to PaperUI to show (not modify) this information

A different approach might be to a reuse the existing tags property. There is already a search functionality for Rules by tags. This approach has the downside that tags are user visible and would be editable by the user.

Updated 16/03/2017 20:20 21 Comments

can't find tag in attribut with API

MISP/MISP

Hi team and thanks again for adding tag on attributes.

When I add a tag to an attribute I can not find it. I use pymisp. here is an example python r = misp.search(tags='sampleTag:test', controller='attributes') print(r)

The response does not contain the tagged attribute.

Updated 02/02/2017 14:20 3 Comments

Get-AzureRMAutomationAccount not returning initialised properties

Azure/azure-powershell

Cmdlet(s)

Get-AzureRMAutomationAccount

PowerShell Version

PSVersion 5.1.15007.1000

Module Version

AzureRM.Automation 2.4.0

OS Version

BuildVersion 10.0.15007.1000

Description

Get-AzureRMAutomationAccount , Get-AzureRMAutomationAccount -ResourceGroupName ResourceGroup both return objects without all properties initialised, specifically Plan and Tags

I assume this is related to #3044. I appreciate this may be by design - but have to concur with the point made in that issue thread, this is not very user friendly. Also for the tags to not  return is particularly troublesome. In my instance, I'm checking on tags to signify whether a function should be allowed to modify an automation account or not.

Specifying the -Name parameter in addition to -ResourceGroupName will initialise these properties - but when run with the -Name parameter, this will write a non-terminating error if the named account does not exist - which can adds extra hoops to jump through for Pester tests, etc.

Cheers

Updated 26/01/2017 22:04 2 Comments

turn on jsx-no-bind eslint rule to avoid unnecessary perf lossage

mozilla/activity-stream

Turns out that using arrow functions or binding functions in render() is a non-trivial performance hit, because it causes a function allocation and associated GC in every single call to render, even if render doesn’t end up changing anything in the layout.

See https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md and https://medium.com/@esamatti/react-js-pure-render-performance-anti-pattern-fb88c101332f#.2bk1pstfj.

We’ve got a bunch of instances of it in our codebase, though they shouldn’t be terribly hard to fix. The possible fixes are detailed in the above links, as well as (if we start using ES6 classes for our components) https://babeljs.io/blog/2015/06/07/react-on-es6-plus.

Updated 23/01/2017 19:57

[Test failures] AutomationIntegrationTest

eclipse/smarthome
assert that ruleNow method executes actions of the rule(org.eclipse.smarthome.automation.integration.test.AutomationIntegrationTest)  Time elapsed: 0.074 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is <ON>
     but: was <OFF>
    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    at org.junit.Assert.assertThat(Assert.java:865)
    at org.junit.Assert.assertThat(Assert.java:832)
    at org.junit.Assert$assertThat.callStatic(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:169)
    at org.eclipse.smarthome.automation.integration.test.AutomationIntegrationTest.assert that ruleNow method executes actions of the rule(AutomationIntegrationTest.groovy:452)
Results :
Failed tests: 
  AutomationIntegrationTest.assert that ruleNow method executes actions of the rule:452 
Expected: is <ON>
     but: was <OFF>
Tests run: 21, Failures: 1, Errors: 0, Skipped: 0

see https://travis-ci.org/eclipse/smarthome/builds/191295087

Updated 15/01/2017 11:19 3 Comments

Register-AzureRmAutomationScheduledRunbook parameters was not input correctly

Azure/azure-powershell

Cmdlet(s)

Register-AzureRmAutomationScheduledRunbook

PowerShell Version

5.1.14393.206

OS Version

10.0.14393.206

Description

When I use Register-AzureRmAutomationScheduledRunbook to create a Runbook’s cedule parameters in portal contain quotes see file to screenshot. This make my workbook to fail.

capture

Debug Output

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/c7d3e3e4-bd2a-44e2-9ed0-03b2b38c78b7/resourceGroups/MyAzureAutomationProd/providers/Microsoft.Automation/automationAccounts/MyAutomationProd/jobSchedules/4676249d-1a82-4ac2-a863-99229f7feecb?api-version=2015-10-31

Headers:
Accept                        : application/json
x-ms-version                  : 2014-06-01

Body:
{
  "properties": {
    "schedule": {
      "name": "CeduleAutoExport"
    },
    "runbook": {
      "name": "AutoExport"
    },
    "parameters": {
      "sqlDatabaseName": "\"myDb\"",
      "SqlServerName": "\"myServer\"",
      "sqlUserName": "\"myDbUser\""
    }
  }
}

Script/Steps for Reproduction

You need

  • Automation account
  • Runbook named AutoExport
  • Parameters of type [string] in the RunBook
    • SqlServerName
    • SqlDatabaseName
    • SqlUserName

Login-AzureRmAccount

$params = @{“SqlServerName”=“myServer”;“SqlDatabaseName”=“myDb”;“SqlUserName”=“myDbUser”}

Register-AzureRmAutomationScheduledRunbook -Name "AutoExport" -ResourceGroupName “myAzureAutomation” -AutomationAccountName "myAutomation" -ScheduleName “mySchedule” -Parameters $params -ErrorAction Stop; ```

Updated 17/01/2017 23:28 2 Comments

Login Test Suite Espresso

owncloud/android

UI testing suite on the ´AuthenticatorActivity´ activity to check the login feature.

Includes - Positive and negative test cases. - Checks in both orientations - Accounts Manager: to add/remove ownCloud accounts from device.

To Do - Special Servers (shibboleth is a special case, so that the UI is different and depends on a brandeable option) - Accepting untrusted certificate for versions lower than Android M. This check was included to avoid wrong positives.

Updated 24/03/2017 08:42 1 Comments

[jenkins] Automate docker-joomla deployment

joomla/joomla-websites

To deploy updates on the https://github.com/joomla/docker-joomla repo, I have to: - SSH into developer.joomla.org and edit the https://developer.joomla.org/latest_version.json file - SSH into the Jenkins box and run the update.sh script from the docker-joomla repo (the sed commands it uses don’t work right on Mac), commit and push the changes - Fork and edit https://github.com/docker-library/official-images/blob/master/library/joomla with the result of the generate-stackbrew-library.sh script from the docker-joomla repo and issue a pull request for the update

The first two steps can be automated. Probably the third step too using GitHub’s API. Let’s try to improve this.

Updated 04/01/2017 02:33 8 Comments

[jenkins] Improve API docs deployment

joomla/joomla-websites
  • [x] The API docs deployment job still requires a lot of manual intervention. Syncing the clone of the template repo and clearing the Twig cache both require SSH'ing into the server to run this. Optimally we should be able to automate this part of the job.
  • [x] Deploying changes to static assets (the index.html and results.html files (latter is for our Google Custom Search), and the non-CDN CSS, images, and JavaScript) is also manual.
  • [ ] There isn’t a job for the Framework deployments. This one is much trickier because it’s compiled from 40 separate repositories all with different version history (my local utilities script runs git commands to find the latest version tag and checks that out). Come up with a way to automate this.
Updated 04/01/2017 02:47 1 Comments

New-AzureRmAutomationSchedule TimeZone ignored when using DaysOfWeek and WeekInterval

Azure/azure-powershell

Cmdlet(s)

PowerShell Version

5.1.14393.206

Module Version

3.0

OS Version

10.0.14393.206

Description

Debug Output

DEBUG: 23:51:05 - NewAzureAutomationSchedule begin processing with ParameterSet 'ByWeekly'.
DEBUG: 23:51:05 - using account id 'pmb@codehouse.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'pmb@codehouse.com', environment: 'AzureCloud', tenant: '48eed373-fc69-4460-8a43-78e33fa
9d6a9'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 10/01/2016 21:51:05:  - TokenCache: Deserialized 3 items to token cache.

DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: '48eed373-fc69-4460-8a43-78e33fa9d6a9', Endpoint: 'https://login.mi
crosoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://manage
ment.core.windows.net/', ValidateAuthrity: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/48eed373-fc69-4460-8a43-78e33fa9d6a9/'
, CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: '48eed373-fc69-4460-8a43-78e33fa9d6a9', AdEndpoint: 'https://logi
n.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 10/01/2016 21:51:05: 8037015f-84fa-43da-b02f-36076330c4d5 - AcquireTokenHandlerBase: === Token Acquisition started:
    Authority: https://login.microsoftonline.com/48eed373-fc69-4460-8a43-78e33fa9d6a9/
    Resource: https://management.core.windows.net/
    ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
    CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (3 items)
    Authentication Target: User


DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 10/01/2016 21:51:05: 8037015f-84fa-43da-b02f-36076330c4d5 - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 10/01/2016 21:51:05: 8037015f-84fa-43da-b02f-36076330c4d5 - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 10/01/2016 21:51:05: 8037015f-84fa-43da-b02f-36076330c4d5 - TokenCache: 59.90450812 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 10/01/2016 21:51:05: 8037015f-84fa-43da-b02f-36076330c4d5 - TokenCache: A matching item (access token or refresh token or both) was found in th
e cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 10/01/2016 21:51:05: 8037015f-84fa-43da-b02f-36076330c4d5 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access tok
en was retuned:
    Access Token Hash: 0MYvy4Hkt1Ce+aGNsifPVjrVqH4TDxVOceS59fbd7bc=
    Refresh Token Hash: cTx8f9ToqB0wVDtx66IbF2jVgxSAhDtZvII62FrzDEU=
    Expiration Time: 10/01/2016 22:50:59 +00:00
    User Hash: dmN7ykiq0qKHBDuejP+zPZhKQNDWnTkPREk9inNW1WI=


DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 10/01/2016 21:51:05:  - TokenCache: Serializing token cache with 3 items.

DEBUG: [Common.Authentication]: Received token with LoginType 'LiveId', Tenant: '48eed373-fc69-4460-8a43-78e33fa9d6a9', UserId: 'pmb@codehouse.com'
DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/01/2016 22:50:59 +00:00', MultipleResource? 'True', Tenant: '48eed373-
fc69-4460-8a43-78e33fa9d6a9', UserId: 'pmb@codehouse.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'pmb@codehouse.com', Name: Per Bering, IdProvider: 'live.com', Uid: 'ead02efb-53d8-47ac
-96c4-de2352579ebc'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/01/2016 22:50:59 +00:00' Comparing to '10/01/2016 21:51:05 +00:00' With t
hreshold '00:05:00', calculated time until token expiry: '00:59:54.2704872'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscription-westeurope-dev/providers/Micro
soft.Automation/automationAccounts/carsub-automation-dev/schedules/Friday?api-version=2015-10-31

Headers:
Accept                        : application/json
x-ms-version                  : 2014-06-01

Body:
{
  "name": "Friday",
  "properties": {
    "startTime": "2016-10-02T10:00:00+02:00",
    "expiryTime": "9999-12-31T23:59:59.9999999+01:00",
    "interval": 1,
    "frequency": "Week",
    "advancedSchedule": {
      "weekDays": [
        "Friday"
      ]
    }
  }
}


DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Created

Headers:
Pragma                        : no-cache
x-ms-request-id               : eec79e98-9254-437a-88b6-12102a821721
x-ms-location                 : https://management.azure.com/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscriptio
n-westeurope-dev/providers/Microsoft.Automation/automationAccounts/carsub-automation-dev/schedules/Friday?api-version=2015-10-31
ocp-location                  : https://management.azure.com/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscriptio
n-westeurope-dev/providers/Microsoft.Automation/automationAccounts/carsub-automation-dev/schedules/Friday?api-version=2015-10-31
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-writes: 1197
x-ms-correlation-request-id   : 52a6dc61-4055-4229-8f7b-f0b7fb02b77f
x-ms-routing-request-id       : WESTEUROPE:20161001T215106Z:52a6dc61-4055-4229-8f7b-f0b7fb02b77f
Cache-Control                 : no-cache
Date                          : Sat, 01 Oct 2016 21:51:05 GMT
Location                      : https://management.azure.com/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscriptio
n-westeurope-dev/providers/Microsoft.Automation/automationAccounts/carsub-automation-dev/schedules/Friday?api-version=2015-10-31
Server                        : Microsoft-IIS/8.5
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET

Body:
{
  "id": "/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscription-westeurope-dev/providers/Microsoft.Automation/aut
omationAccounts/carsub-automation-dev/schedules/Friday",
  "name": "Friday",
  "properties": {
    "description": null,
    "startTime": "2016-10-02T10:00:00+02:00",
    "startTimeOffsetMinutes": 0.0,
    "expiryTime": "9999-12-31T23:59:59.9999999+01:00",
    "expiryTimeOffsetMinutes": 0.0,
    "isEnabled": true,
    "nextRun": "2016-10-07T10:00:00+02:00",
    "nextRunOffsetMinutes": 0.0,
    "interval": 1,
    "frequency": "Week",
    "creationTime": "2016-10-01T23:51:05.27+02:00",
    "lastModifiedTime": "2016-10-01T23:51:05.27+02:00",
    "timeZone": "UTC",
    "advancedSchedule": {
      "monthDays": null,
      "monthlyOccurrences": null,
      "weekDays": [
        "Friday"
      ]
    }
  }
}


DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '10/01/2016 22:50:59 +00:00', MultipleResource? 'True', Tenant: '48eed373-
fc69-4460-8a43-78e33fa9d6a9', UserId: 'pmb@codehouse.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'pmb@codehouse.com', Name: Per Bering, IdProvider: 'live.com', Uid: 'ead02efb-53d8-47ac
-96c4-de2352579ebc'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '10/01/2016 22:50:59 +00:00' Comparing to '10/01/2016 21:51:06 +00:00' With t
hreshold '00:05:00', calculated time until token expiry: '00:59:53.6968768'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscription-westeurope-dev/providers/Micro
soft.Automation/automationAccounts/carsub-automation-dev/schedules/Friday?api-version=2015-10-31

Headers:
Accept                        : application/json
x-ms-version                  : 2014-06-01

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-request-id               : eec79e98-9254-437a-88b6-12102a821721
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 14976
x-ms-correlation-request-id   : acdbe807-c4d7-4a5c-b1ee-d75af941cd58
x-ms-routing-request-id       : WESTEUROPE:20161001T215106Z:acdbe807-c4d7-4a5c-b1ee-d75af941cd58
Cache-Control                 : no-cache
Date                          : Sat, 01 Oct 2016 21:51:05 GMT
Server                        : Microsoft-IIS/8.5
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET

Body:
{
  "name": "Friday",
  "id": "/subscriptions/d85bb431-2275-40fd-b880-38a99ba86202/resourceGroups/interdan-carsubscription-westeurope-dev/providers/Microsoft.Automation/aut
omationAccounts/carsub-automation-dev/schedules/Friday",
  "properties": {
    "description": null,
    "startTime": "2016-10-02T10:00:00+02:00",
    "startTimeOffsetMinutes": 0.0,
    "expiryTime": "9999-12-31T23:59:59.9999999+01:00",
    "expiryTimeOffsetMinutes": 0.0,
    "isEnabled": true,
    "nextRun": "2016-10-07T10:00:00+02:00",
    "nextRunOffsetMinutes": 0.0,
    "interval": 1,
    "frequency": "Week",
    "creationTime": "2016-10-01T23:51:05.27+02:00",
    "lastModifiedTime": "2016-10-01T23:51:05.27+02:00",
    "timeZone": "UTC",
    "advancedSchedule": {
      "monthDays": null,
      "monthlyOccurrences": null,
      "weekDays": [
        "Friday"
      ]
    }
  }
}


StartTime              : 02-10-2016 08:00:00 +00:00
ExpiryTime             : 31-12-9999 22:59:59 +00:00
IsEnabled              : True
NextRun                : 07-10-2016 08:00:00 +00:00
Interval               : 1
Frequency              : Week
MonthlyScheduleOptions : Microsoft.Azure.Commands.Automation.Model.MonthlyScheduleOptions
WeeklyScheduleOptions  : Microsoft.Azure.Commands.Automation.Model.WeeklyScheduleOptions
TimeZone               : UTC
ResourceGroupName      : interdan-carsubscription-westeurope-dev
AutomationAccountName  : carsub-automation-dev
Name                   : Friday
CreationTime           : 01-10-2016 23:51:05 +02:00
LastModifiedTime       : 01-10-2016 23:51:05 +02:00
Description            : 

DEBUG: 23:51:06 - NewAzureAutomationSchedule end processing.
DEBUG: 23:51:06 - NewAzureAutomationSchedule end processing.

Script/Steps for Reproduction

Run New-AzureRmAutomationSchedule –Name "Friday" (Get-Date).Date.AddDays(1).AddHours(10) -DaysOfWeek Friday -WeekInterval 1 -TimeZone "Europe/Copenhagen" –AutomationAccountName $automationAccount -ResourceGroupName $resourceGroup

New schedule uses timezone UTC and not Europe/Copenhagen as I would expect. I’m trying to create a schedule that runs every friday at 10 CET.

Updated 27/02/2017 19:22 2 Comments

scriptable automation

eclipse/smarthome

This PR replaces https://github.com/eclipse/smarthome/pull/803, https://github.com/eclipse/smarthome/pull/806 and https://github.com/eclipse/smarthome/pull/813

It provides the ability to write Rules/ActionHandlers/Triggers directly from script files.

To accomplish this, this PR introduces: 1. A script loader that can load scripts from a directory and bundles 2. An import mechanism to allow bundles to provide script dependant classes for scripts. This means: scripts can import class instances via a default interface where the imported instances can have a reference to the scriptEngineId. This allows the unloading of Rules etc. if the script becomes unavailable. This extension mechanism is for example used to provide the following:

   ScriptExtension.importPreset("RuleSupport")
   ScriptExtension.importPreset("RuleSimple")
  1. The RuleSupport and RuleSimple presets provide the ability for scripts to programmatically add and remove Rules and Modules to the ScriptEngine. By providing the ScriptedRuleProvider, these Rules will only be kept at runtime and will not be persisted on reboot except the Rule will be explicitly added by addPermanent. For an example script, see: distribution/smarthome/conf/scripts/test.py
Updated 25/03/2017 11:03 110 Comments

Automate PR check for Front matter precedent

kubernetes/kubernetes.github.io

We need a script that checks for the following on all open PRs and prevents submission until these tests come back clean:

Front matter precedent

All .md pages must start with the following two lines:


---

---

Between these two lines, we can put front-matter YAML if we ever need to, though they are empty now. More importantly, Jekyll will not process Markdown/Liquid for .md files that do not start with a front-matter section.

Updated 11/01/2017 21:00 3 Comments

Import-AzureRmAutomationDscConfiguration: File name shouldn't be required to match the DSC Configuration name

Azure/azure-powershell

When you use the Import-AzureRmAutomationDscConfiguration command to import a PowerShell script file into an Azure Automation Account, the file name must match the DSC configuration name. If the DSC Configuration name, and the script file name that contains it, do not match, then you receive the exception below.

This is inconsistent with the Azure Portal experience, where no such naming requirement exists.

Import-AzureRmAutomationDscConfiguration : BadRequest: The configuration name in the script must match the configuration name.
At C:\Users\TrevorSullivan\Documents\Import DSC Configuration.ps1:26 char:1
+ Import-AzureRmAutomationDscConfiguration @DscConfiguration;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Import-AzureRmAutomationDscConfiguration], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.ImportAzureAutomationDscConfiguration

Cheers, Trevor Sullivan Microsoft MVP: PowerShell http://trevorsullivan.net http://twitter.com/pcgeek86

<!—@tfsbridge:{“tfsId”:5755263}–>

Updated 24/03/2017 10:32 9 Comments

Adding dependency manager for addons to Openframeworks

openframeworks/openFrameworks

Hello,

I would like to know what the opinions are about using cocoapods to manage dependencies on osx/ios. Cocoapods has the possibility to switch sources. The Openframeworks git could be used and Cocoapods could strip-down the parts that doesn’t have to be used. Adding addons with the latest versions is going to be allot easier. And the possibilities of Openframeworks versions, like 64 bit build, cpp11 would be easier to use.

People allready created podspecs for OpenCV, BOOST, POCO…

I know that apothecary exist, but i’m not convinced that that is a good dependency manager. I don’t know if there’s a better choice or even a multi-platform possibility. So i’m open to more input.

Updated 08/03/2017 19:29 7 Comments

Fork me on GitHub