Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

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

@johnandersen777

Description

@johnandersen777
$ 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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions