Skip to content

Commit

Permalink
Switch schedules to manual. #1410
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Mar 8, 2024
1 parent 499efd1 commit b0e412a
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 74 deletions.
1 change: 0 additions & 1 deletion testbed/schedules/.gitignore

This file was deleted.

18 changes: 4 additions & 14 deletions testbed/schedules/Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
#
# Makefile for Testbed Schedules
# Makefile for Testbed Skeleton
#

PRODUCT := output.json

INTERVALS := intervals.json


default: build


BUILDER := ./build-schedules
$(PRODUCT): Makefile $(BUILDER) $(INTERVALS)
$(BUILDER) $(BUILDER_ARGS) < $(INTERVALS) > "$@"
TO_CLEAN += $(PRODUCT)


build: $(PRODUCT)

build:
../bin/validate-json output.json
@true

clean:
rm -rf $(TO_CLEAN) *~
23 changes: 23 additions & 0 deletions testbed/schedules/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Testbed Schedules

When adding new repeat intervals:

Add one named for the time:

```
"PT30M": { Named for the ISO interval
"repeat": "PT30M", Same as the name
"slip": "PT15M", Half the interval
"sliprand": true Allow random slip
}
```

Add a "strict" version:

```
"PT30S-strict": { Named for the ISO interval + "-strict"
"repeat": "PT30S", Same as the name
"slip": "PT30S", Shorter of interval or PT3M
"sliprand": false No random slip
}
```
46 changes: 0 additions & 46 deletions testbed/schedules/build-schedules

This file was deleted.

13 changes: 0 additions & 13 deletions testbed/schedules/intervals.json

This file was deleted.

127 changes: 127 additions & 0 deletions testbed/schedules/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"schedules": {

"PT30S": {
"repeat": "PT30S",
"slip": "PT15S",
"sliprand": true
},
"PT30S-strict": {
"repeat": "PT30S",
"slip": "PT30S",
"sliprand": false
},

"PT1M": {
"repeat": "PT1M",
"slip": "PT30S",
"sliprand": true
},
"PT1M-strict": {
"repeat": "PT1M",
"slip": "PT1M",
"sliprand": false
},

"PT5M": {
"repeat": "PT5M",
"slip": "PT2M30S",
"sliprand": true
},
"PT5M-strict": {
"repeat": "PT5M",
"slip": "PT3M",
"sliprand": false
},

"PT10M": {
"repeat": "PT10M",
"slip": "PT5M",
"sliprand": true
},
"PT10M-strict": {
"repeat": "PT10M",
"slip": "PT3M",
"sliprand": false
},

"PT15M": {
"repeat": "PT15M",
"slip": "PT7M30S",
"sliprand": true
},
"PT15M-strict": {
"repeat": "PT15M",
"slip": "PT3M",
"sliprand": false
},


"PT1H": {
"repeat": "PT1H",
"slip": "PT30M",
"sliprand": true
},
"PT1H-strict": {
"repeat": "PT1H",
"slip": "PT3M",
"sliprand": false
},

"PT30M": {
"repeat": "PT30M",
"slip": "PT15M",
"sliprand": true
},
"PT30M-strict": {
"repeat": "PT30M",
"slip": "PT3M",
"sliprand": false
},

"PT4H": {
"repeat": "PT4H",
"slip": "PT2H",
"sliprand": true
},
"PT4H-strict": {
"repeat": "PT4H",
"slip": "PT3M",
"sliprand": false
},

"PT6H": {
"repeat": "PT6H",
"slip": "PT3H",
"sliprand": true
},
"PT6H-strict": {
"repeat": "PT6H",
"slip": "PT3M",
"sliprand": false
},

"PT12H": {
"repeat": "PT12H",
"slip": "PT6H",
"sliprand": true
},
"PT12H-strict": {
"repeat": "PT12H",
"slip": "PT3M",
"sliprand": false
},

"P1D": {
"repeat": "P1D",
"slip": "PT12H",
"sliprand": true
},
"P1D-strict": {
"repeat": "P1D",
"slip": "PT3M",
"sliprand": false
}

}
}

0 comments on commit b0e412a

Please sign in to comment.