Skip to content

Make observabilityScope and callbackQueue API args instead of instance members #6601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented May 23, 2023

Motivation:
SSWG package collection (https://github.com/swift-server/sswg-collection) is failing to sign. The code crashes with code 139.

To reproduce:

  1. Clone https://github.com/swift-server/sswg-collection
  2. Run docker-compose -f docker/docker-compose.yaml run generate to generate .output/collection.json or place a valid collection file in .output.
  3. Place signing key and cert under certs.
  4. Run docker-compose -f docker/docker-compose.yaml run sign

Expected: A signed collection file gets created .output/collection-signed.json
Actual: Error: 139

Modifications:
After debugging it seems like referencing self.observabilityScope, etc. causes the crash, thus changing observabilityScope, callbackQueue, encoder, decoder from instance members to API args or local value.

Need swiftlang/swift-package-collection-generator#62 for signer to work

…e members

Motivation:
SSWG package collection (https://github.com/swift-server/sswg-collection) is failing to sign. The code crashes with code 139.

To reproduce:
1. Clone https://github.com/swift-server/sswg-collection
2. Run `docker-compose -f docker/docker-compose.yaml run generate` to generate `.output/collection.json` or place a valid collection file in `.output`.
3. Place signing key and cert under `certs`.
4. Run `docker-compose -f docker/docker-compose.yaml run sign`

Expected: A signed collection file gets created `.output/collection-signed.json`
Actual: `Error: 139`

Modifications:
After debugging it seems like referencing `self.observabilityScope`, etc. causes the crash, thus changing `observabilityScope`, `callbackQueue`, `encoder`, `decoder` from instance members to API args or local value.
@yim-lee yim-lee marked this pull request as draft May 23, 2023 08:42
@yim-lee
Copy link
Contributor Author

yim-lee commented May 24, 2023

Closing this in favor of #6609

@yim-lee yim-lee closed this May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants