Skip to content
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

alice: please: contribute: Race condition to view issue title for pull request body after issue creation #1403

Open
pdxjohnny opened this issue Jun 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@pdxjohnny
Copy link
Member

$ mkdir .output; alice please contribute -log debug -repos https://github.com/pdxjohnny/testaaaa -- recommended community standards 2>&1 | tee .output/$(date +%4Y-%m-%d-%H-%M).txt
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Stage: PROCESSING: alice.please.contribute.recommended_community_standards.alice.operations.github.pull_request.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubPullRequestReferenceIssue:readme_pr_body
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Inputs: {'readme_issue': 'https://github.com/pdxjohnny/testaaaa/issues/6'}
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Conditions: {}
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Outputs: {'result': 'Closes: https://github.com/pdxjohnny/testaaaa/issues/6'}
DEBUG:dffml.MemoryOperationImplementationNetworkContext:---
DEBUG:dffml.MemoryLockNetworkContext:Operation(name='alice.please.contribute.recommended_community_standards.dffml.operations.git.contribute.AlicePleaseContributeRecommendedCommunityStandardsOverlayGit:contribute_readme_md', inputs={'repo': AliceGitRepo, 'base': repo.git.base.branch, 'commit_message': repo.readme.git.commit.message}, outputs={'result': repo.readme.git.branch}, stage=<Stage.PROCESSING: 'processing'>, conditions=[], expand=[], instance_name='alice.please.contribute.recommended_community_standards.dffml.operations.git.contribute.AlicePleaseContributeRecommendedCommunityStandardsOverlayGit:contribute_readme_md', validator=False, retry=0) acquiring: a7ec6804-ec7c-44c0-a1d1-782086643ae7(GitRepoSpec(directory='/tmp/dffml-feature-git-46b2smjj', URL='https://github.com/pdxjohnny/testaaaa'))
DEBUG:dffml.MemoryLockNetworkContext:Operation(name='alice.please.contribute.recommended_community_standards.alice.operations.github.issue.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubIssue:meta_issue_body', inputs={'repo': AliceGitRepo, 'base': repo.git.base.branch, 'readme_path': ReadmePath, 'readme_issue': ReadmeIssue}, outputs={'result': MetaIssueBody}, stage=<Stage.PROCESSING: 'processing'>, conditions=[], expand=[], instance_name='alice.please.contribute.recommended_community_standards.alice.operations.github.issue.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubIssue:meta_issue_body', validator=False, retry=0) acquiring: a7ec6804-ec7c-44c0-a1d1-782086643ae7(GitRepoSpec(directory='/tmp/dffml-feature-git-46b2smjj', URL='https://github.com/pdxjohnny/testaaaa'))
DEBUG:dffml.MemoryLockNetworkContext:Acquiring: a7ec6804-ec7c-44c0-a1d1-782086643ae7(GitRepoSpec(directory='/tmp/dffml-feature-git-46b2smjj', URL='https://github.com/pdxjohnny/testaaaa')) (now held by Operation(name='alice.please.contribute.recommended_community_standards.alice.operations.github.pull_request.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubPullRequestReferenceIssue:readme_pr_title', inputs={'readme_issue': ReadmeIssue}, outputs={'result': github.pr.title}, stage=<Stage.PROCESSING: 'processing'>, conditions=[], expand=[], instance_name='alice.please.contribute.recommended_community_standards.alice.operations.github.pull_request.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubPullRequestReferenceIssue:readme_pr_title', validator=False, retry=0))
DEBUG:dffml.MemoryOperationImplementationNetworkContext:---
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Stage: PROCESSING: alice.please.contribute.recommended_community_standards.alice.operations.github.pull_request.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubPullRequestReferenceIssue:readme_pr_title
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Inputs: {'readme_issue': 'https://github.com/pdxjohnny/testaaaa/issues/6'}
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Conditions: {}
DEBUG:dffml.AlicePleaseContributeRecommendedCommunityStandardsAliceOperationsGithubPullRequestAlicepleasecontributerecommendedcommunitystandardsoverlaygithubpullrequestreferenceissue:ReadmePrTitleImplementationContext:Running ['gh', 'issue', 'view', '--json', 'title', '-q', '.title', 'https://github.com/pdxjohnny/testaaaa/issues/6'], {}
DEBUG:dffml.AlicePleaseContributeRecommendedCommunityStandardsAliceOperationsGithubPullRequestAlicepleasecontributerecommendedcommunitystandardsoverlaygithubpullrequestreferenceissue:ReadmePrTitleImplementationContext:['gh', 'issue', 'view', '--json', 'title', '-q', '.title', 'https://github.com/pdxjohnny/testaaaa/issues/6']: Subprocess.STDERR_READLINE: GraphQL: Could not resolve to an issue or pull request with the number of 6. (repository.issue)
DEBUG:dffml.MemoryLockNetworkContext:Acquiring: a7ec6804-ec7c-44c0-a1d1-782086643ae7(GitRepoSpec(directory='/tmp/dffml-feature-git-46b2smjj', URL='https://github.com/pdxjohnny/testaaaa')) (now held by Operation(name='alice.please.contribute.recommended_community_standards.dffml.operations.git.contribute.AlicePleaseContributeRecommendedCommunityStandardsOverlayGit:contribute_readme_md', inputs={'repo': AliceGitRepo, 'base': repo.git.base.branch, 'commit_message': repo.readme.git.commit.message}, outputs={'result': repo.readme.git.branch}, stage=<Stage.PROCESSING: 'processing'>, conditions=[], expand=[], instance_name='alice.please.contribute.recommended_community_standards.dffml.operations.git.contribute.AlicePleaseContributeRecommendedCommunityStandardsOverlayGit:contribute_readme_md', validator=False, retry=0))
DEBUG:dffml.MemoryOperationImplementationNetworkContext:---
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Stage: PROCESSING: alice.please.contribute.recommended_community_standards.dffml.operations.git.contribute.AlicePleaseContributeRecommendedCommunityStandardsOverlayGit:contribute_readme_md
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Inputs: {'repo': GitRepoSpec(directory='/tmp/dffml-feature-git-46b2smjj', URL='https://github.com/pdxjohnny/testaaaa'), 'base': 'master', 'commit_message': 'Recommended Community Standard: README\n\nCloses: https://github.com/pdxjohnny/testaaaa/issues/6\n'}
DEBUG:dffml.MemoryOperationImplementationNetworkContext:Conditions: {}
DEBUG:dffml.AlicePleaseContributeRecommendedCommunityStandardsDffmlOperationsGitContributeAlicepleasecontributerecommendedcommunitystandardsoverlaygit:ContributeReadmeMdImplementationContext:Running ['git', 'checkout', 'master', '-b', 'alice-contribute-recommended-community-standards-readme'], {'cwd': '/tmp/dffml-feature-git-46b2smjj'}
Traceback (most recent call last):
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1277, in run_dispatch
    outputs = await self.run(
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1242, in run
    return await self.run_no_retry(ctx, octx, operation, inputs)
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1220, in run_no_retry
    outputs = await opctx.run(inputs)
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/base.py", line 544, in run
    result = await result
  File "/home/pdxjohnny/Documents/python/dffml/entities/alice/alice/please/contribute/recommended_community_standards/alice/operations/github/pull_request.py", line 89, in readme_pr_title
    async for event, result in dffml.run_command_events(
  File "/home/pdxjohnny/Documents/python/dffml/dffml/util/subprocess.py", line 83, in run_command_events
    raise RuntimeError(
RuntimeError: ['gh', 'issue', 'view', '--json', 'title', '-q', '.title', 'https://github.com/pdxjohnny/testaaaa/issues/6']: GraphQL: Could not resolve to an issue or pull request with the number of 6. (repository.issue)


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1277, in run_dispatch
    outputs = await self.run(
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1242, in run
    return await self.run_no_retry(ctx, octx, operation, inputs)
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1220, in run_no_retry
    outputs = await opctx.run(inputs)
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/base.py", line 544, in run
    result = await result
  File "/home/pdxjohnny/Documents/python/dffml/entities/alice/alice/please/contribute/recommended_community_standards/cli.py", line 91, in cli_run_on_repo
    await dffml.run_dataflow.run_custom(
  File "/home/pdxjohnny/Documents/python/dffml/dffml/operation/dataflow.py", line 203, in run_custom
    async for ctx, result in octx.run(subflow_inputs, parent=self.octx):
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1689, in run
    raise exception
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1857, in run_operations_for_ctx
    raise OperationException(
dffml.df.base.OperationException: alice.please.contribute.recommended_community_standards.alice.operations.github.pull_request.AlicePleaseContributeRecommendedCommunityStandardsOverlayGitHubPullRequestReferenceIssue:readme_pr_title({'readme_issue': ReadmeIssue}): {'readme_issue': 'https://github.com/pdxjohnny/testaaaa/issues/6'}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pdxjohnny/.local/bin/alice", line 33, in <module>
    sys.exit(load_entry_point('alice', 'console_scripts', 'alice')())
  File "/home/pdxjohnny/Documents/python/dffml/dffml/util/cli/cmd.py", line 282, in main
    result = loop.run_until_complete(cls._main(*argv[1:]))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/pdxjohnny/Documents/python/dffml/dffml/util/cli/cmd.py", line 248, in _main
    return await cls.cli(*args)
  File "/home/pdxjohnny/Documents/python/dffml/dffml/util/cli/cmd.py", line 234, in cli
    return await cmd.do_run()
  File "/home/pdxjohnny/Documents/python/dffml/dffml/util/cli/cmd.py", line 213, in do_run
    return await self.run()
  File "/home/pdxjohnny/Documents/python/dffml/entities/alice/alice/cli.py", line 634, in run
    async for ctx, results in dffml.run(
  File "/home/pdxjohnny/Documents/python/dffml/dffml/high_level/dataflow.py", line 231, in run
    async for ctx, results in ctx.run(*input_sets, strict=strict):
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1689, in run
    raise exception
  File "/home/pdxjohnny/Documents/python/dffml/dffml/df/memory.py", line 1857, in run_operations_for_ctx
    raise OperationException(
dffml.df.base.OperationException: alice.please.contribute.recommended_community_standards.cli.AlicePleaseContributeRecommendedCommunityStandardsOverlayCLI:cli_run_on_repo({'repo': CLIRunOnRepo}): {'repo': 'https://github.com/pdxjohnny/testaaaa'}
@pdxjohnny pdxjohnny added the bug Something isn't working label Jun 30, 2022
@pdxjohnny pdxjohnny mentioned this issue Jun 30, 2022
43 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant