Skip to content

Commit

Permalink
Merge branch 'main-1.x' into lucmcdon/python-poc
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 authored Aug 15, 2023
2 parents 45e35bb + c32e241 commit 9d3ceec
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_models_dafny_verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
verification:
# Don't run the nightly build on forks
if: github.event_name != 'schedule' || github.repository_owner == 'awslabs'
if: github.event_name != 'schedule' || github.repository_owner == 'smithy-lang'
strategy:
matrix:
library: [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_models_java_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
testJava:
# Don't run the nightly build on forks
if: github.event_name != 'schedule' || github.repository_owner == 'awslabs'
if: github.event_name != 'schedule' || github.repository_owner == 'smithy-lang'
strategy:
matrix:
library: [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_models_net_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
testDotNet:
# Don't run the nightly build on forks
if: github.event_name != 'schedule' || github.repository_owner == 'awslabs'
if: github.event_name != 'schedule' || github.repository_owner == 'smithy-lang'
strategy:
matrix:
library: [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ which is not yet published anywhere outside of this repository.
We'd like to provide this functionality as another Smithy build plugin in the future,
likely named something like `dafny-library-codegen`.
If you're interested in this use case we'd love to hear from you -
feel free to [cut us an issue](https://github.com/awslabs/smithy-dafny/issues/new)!
feel free to [cut us an issue](https://github.com/smithy-lang/smithy-dafny/issues/new)!

See the [`codegen/smithy-dafny-codegen-cli`](codegen/smithy-dafny-codegen-cli) directory for further details and examples.

Expand Down
2 changes: 1 addition & 1 deletion TestModels/dafny-dependencies/Model/traits.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ structure mutableLocalState {}

// This is a workaround that should be removed when
// Smithy-Dafny properly supports @documentation
// https://github.com/awslabs/smithy-dafny/issues/247
// https://github.com/smithy-lang/smithy-dafny/issues/247
@trait(selector: "*")
string javadoc
2 changes: 1 addition & 1 deletion cfn/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Parameters:
GitHubRepo:
Type: String
Description: GitHub Repo that invokes CI
Default: awslabs/smithy-dafny
Default: smithy-lang/smithy-dafny

Resources:
DDBDafnyTestTable:
Expand Down
4 changes: 2 additions & 2 deletions codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ subprojects {
pom {
name.set(subproject.extra["displayName"].toString())
description.set(subproject.description)
url.set("https://github.com/awslabs/smithy")
url.set("https://github.com/smithy-lang/smithy")
licenses {
license {
name.set("Apache License 2.0")
Expand All @@ -168,7 +168,7 @@ subprojects {
}
}
scm {
url.set("https://github.com/awslabs/smithy.git")
url.set("https://github.com/smithy-lang/smithy.git")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public static void main(String[] args) {
final Model serviceModel = assembler.assemble().unwrap();

// If Smithy ever lets us configure this:
// https://github.com/awslabs/smithy/blob/f598b87c51af5943686e38706847a5091fe718da/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelLoader.java#L76
// https://github.com/smithy-lang/smithy/blob/f598b87c51af5943686e38706847a5091fe718da/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelLoader.java#L76
// We can remove this log statement.
// (Alternatively, We could inline `addImport`,
// and ignore dfy & md files. Link to `addImport` below)
// https://github.com/awslabs/smithy/blob/f598b87c51af5943686e38706847a5091fe718da/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java#L256-L281
// https://github.com/smithy-lang/smithy/blob/f598b87c51af5943686e38706847a5091fe718da/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java#L256-L281
LOGGER.info("End annoying Smithy \"No ModelLoader was able to load\" warnings.\n\n");

final Map<TargetLanguage, Path> outputDirs = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public DotNetNameResolver(Model model, ServiceShape serviceShape) {
* Returns the C# namespace containing the C# implementation/interface for the given shape ID.
*/
public String namespaceForShapeId(final ShapeId shapeId) {
// TODO remove special AWS SDK special-case when https://github.com/awslabs/polymorph/issues/7 is resolved
// TODO remove special AWS SDK special-case when https://github.com/smithy-lang/smithy-dafny/issues/7 is resolved
final Function<String, String> segmentMapper = AwsSdkNameResolverHelpers.isInAwsSdkNamespace(shapeId)
? StringUtils::capitalize
: DotNetNameResolver::capitalizeNamespaceSegment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public TypeName typeForShape(final ShapeId shapeId) {
* "Boolean, byte, short, integer, long, float, and double shapes
* are only considered boxed if they are marked with the box trait.
* All other shapes are always considered boxed."
* https://awslabs.github.io/smithy/1.0/spec/core/type-refinement-traits.html#box-trait
* https://smithy.io/1.0/spec/core/type-refinement-traits.html#box-trait
* While Smithy Models SHOULD use Smithy Prelude shapes to avoid this confusion,
* they do not have to.
* Hence, the need to check if these shapes have the box trait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ModelUtils {
// Require title-case alphanumeric names, so we don't need to check for keyword conflicts.
//
// The spec recommends a similar stricter definition for consistency (uppercase instead of title-case):
// https://awslabs.github.io/smithy/1.0/spec/core/constraint-traits.html?highlight=enum#enum-trait
// https://smithy.io/1.0/spec/core/constraint-traits.html?highlight=enum#enum-trait
private static final Pattern ENUM_NAME_PATTERN = Pattern.compile("^[A-Z]+[A-Za-z_0-9]*$");

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

public class AwsSdkTypeConversionCodegenTest {
// TODO: Apply "Errors" refactor to Tests
// https://github.com/awslabs/polymorph/issues/25
// https://github.com/smithy-lang/smithy-dafny/issues/25
private static final String SERVICE_NAMESPACE = "com.amazonaws.foobar";
private static final String SERVICE_NAME = "FoobarService";
private static final ShapeId SERVICE_SHAPE_ID = ShapeId.fromParts(SERVICE_NAMESPACE, SERVICE_NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class ServiceCodegenSmokeTest {
// TODO: Apply ServiceCodegen changes to tests
// https://github.com/awslabs/polymorph/issues/27
// https://github.com/smithy-lang/smithy-dafny/issues/27
@Test
public void testCorrectFilesGenerated() {
final URL modelUrl = Objects.requireNonNull(this.getClass().getClassLoader().getResource("model.smithy"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

public class ServiceCodegenTest {
// TODO: Apply ServiceCodegen changes to tests
// https://github.com/awslabs/polymorph/issues/27
// https://github.com/smithy-lang/smithy-dafny/issues/27
@Test
public void testGenerateEmptyService() {
final Model model = TestModel.setupModel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class ShimCodegenTest {
// TODO: Apply ShimCodegen refactor to tests
// https://github.com/awslabs/polymorph/issues/28
// https://github.com/smithy-lange/smithy-dafmy/issues/28
private static ShimCodegen setupCodegen(final BiConsumer<ServiceShape.Builder, ModelAssembler> updater) {
final Model model = TestModel.setupModel(updater);
final ServiceShape serviceShape = model.expectShape(SERVICE_SHAPE_ID, ServiceShape.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

public class TypeConversionCodegenTest {
// TODO: Apply TypeConversionCodegen refactor to tests
// https://github.com/awslabs/polymorph/issues/29
// https://github.com/smithy-lang/smithy-dafny/issues/29
private static TypeConversionCodegen setupCodegen(final BiConsumer<ServiceShape.Builder, ModelAssembler> updater) {
final Model model = TestModel.setupModel(updater);
final ServiceShape serviceShape = model.expectShape(SERVICE_SHAPE_ID, ServiceShape.class);
Expand Down
4 changes: 2 additions & 2 deletions smithy-dafny-conversion/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ publishing {
pom {
name.set("Smithy :: Dafny :: Conversion")
description.set("Convert Native Java Types to Dafny Runtime Types and vice versa")
url.set("https://github.com/awslabs/smithy")
url.set("https://github.com/smithy-lang/smithy")
licenses {
license {
name.set("Apache License 2.0")
Expand All @@ -95,7 +95,7 @@ publishing {
}
}
scm {
url.set("https://github.com/awslabs/smithy.git")
url.set("https://github.com/smithy-lang/smithy.git")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static <T, R> Set<R> GenericToSet(
) {
// From the Smithy Docs:
// "Implementations SHOULD use insertion ordered sets"
// https://awslabs.github.io/smithy/1.0/spec/core/model.html#set
// https://smithy.io/1.0/spec/core/model.html#set
// Thus, we use a LinkedHashSet
Set<R> returnSet = new LinkedHashSet<>(dafnyValues.size(), 1);
dafnyValues.Elements().forEach(value ->
Expand Down

0 comments on commit 9d3ceec

Please sign in to comment.