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

Bug/fix conda ci #232

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Bug/fix conda ci #232

merged 3 commits into from
Jul 31, 2023

Conversation

benoit-cty
Copy link
Contributor

  • Technical changes
    • Fix de Echec de la publication en paquet conda #230 qui se produit quand le wokflow de CI a tourné deux fois pour le même commit, ce qui arrive quand on crée la PR. La solution est de limiter la recherche de l’artefact aux workflows lancés par un push.

@benoit-cty benoit-cty requested a review from benjello July 31, 2023 14:33
@benoit-cty benoit-cty linked an issue Jul 31, 2023 that may be closed by this pull request
@benoit-cty
Copy link
Contributor Author

Je confirme que j'ai bien reproduis le cas problèmatique :

ben@ben:~$ gh api   -H "Accept: application/vnd.github+json"   -H "X-GitHub-Api-Version: 2022-11-28"   /repos/openfisca/openfisca-france-data/actions/artifacts
{
  "total_count": 42,
  "artifacts": [
    {
      "id": 834647546,
      "node_id": "MDg6QXJ0aWZhY3Q4MzQ2NDc1NDY=",
      "name": "conda-build-2.0.1-d829af188fe3e8fe268c704e45a27f2615a7ac30",
      "size_in_bytes": 329058,
      "url": "https://api.github.com/repos/openfisca/openfisca-france-data/actions/artifacts/834647546",
      "archive_download_url": "https://api.github.com/repos/openfisca/openfisca-france-data/actions/artifacts/834647546/zip",
      "expired": false,
      "created_at": "2023-07-31T15:44:08Z",
      "updated_at": "2023-07-31T15:44:09Z",
      "expires_at": "2023-08-30T15:21:34Z",
      "workflow_run": {
        "id": 5716011491,
        "repository_id": 18373026,
        "head_repository_id": 18373026,
        "head_branch": "bug/fix-conda-ci",
        "head_sha": "06fc98ae46acfcf16ca948fe8143c98fabd9548c"
      }
    },
    {
      "id": 834644896,
      "node_id": "MDg6QXJ0aWZhY3Q4MzQ2NDQ4OTY=",
      "name": "conda-build-2.0.1-06fc98ae46acfcf16ca948fe8143c98fabd9548c",
      "size_in_bytes": 329063,
      "url": "https://api.github.com/repos/openfisca/openfisca-france-data/actions/artifacts/834644896",
      "archive_download_url": "https://api.github.com/repos/openfisca/openfisca-france-data/actions/artifacts/834644896/zip",
      "expired": false,
      "created_at": "2023-07-31T15:42:57Z",
      "updated_at": "2023-07-31T15:42:58Z",
      "expires_at": "2023-08-30T15:23:09Z",
      "workflow_run": {
        "id": 5715988317,
        "repository_id": 18373026,
        "head_repository_id": 18373026,
        "head_branch": "bug/fix-conda-ci",
        "head_sha": "06fc98ae46acfcf16ca948fe8143c98fabd9548c"
      }
    },

@benoit-cty benoit-cty merged commit a68f502 into master Jul 31, 2023
24 checks passed
@benoit-cty benoit-cty deleted the bug/fix-conda-ci branch July 31, 2023 15:57
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.

Echec de la publication en paquet conda
2 participants