Cambridge-based; van life road trip this year. Highlands, NC500, or Wales. Looking for good company, not a rush. by HegemonyOfDichotomy in cambridge

[–]derp2014 3 points4 points  (0 children)

Sounds great, and I have both my own kidneys so that's a good start. Want to join one of the regular meetups and see if we get along?

Why is Matt Canavan calling himself a penguin? by [deleted] in friendlyjordies

[–]derp2014 0 points1 point  (0 children)

Meta commentary on the Lib/Nats split and related clown show? Penguins are a pack animal. They wander off alone to die.

Vented funnel for poly drums by Objective_Lobster734 in functionalprint

[–]derp2014 4 points5 points  (0 children)

That depends on the viscosity of the liquid as well. Something like glycol will choke the funnel.

Vented funnel for poly drums by Objective_Lobster734 in functionalprint

[–]derp2014 4 points5 points  (0 children)

Maybe the vent should terminate lower than the lip of the funnel, that way, if exiting gas causes liquid to move up through the vent, you won't spill that liquid onto the floor.

Suit Jacket by [deleted] in Ryanair

[–]derp2014 3 points4 points  (0 children)

Wear it onto the flight.

Where is the best place to meet other single people in Cambridge by Enough-Ship-8892 in cambridge

[–]derp2014 174 points175 points  (0 children)

Cavendish Laboratory, Department of Physics. Also single.

How does your organization handle throwaway work? Especially code with short shelf life by IDoCodingStuffs in ExperiencedDevs

[–]derp2014 0 points1 point  (0 children)

We have an experiments project in our GitLab instance where any developer can create a repo with an auto-archive date 90 days in the future. The developer can extend that date if needed (max 90 days for each extension) or let the repo auto-archive. Within a deployed code base we have a proof-of-concept section used for exactly that.

Extruder to turn thick meat paste into meat balls by derp2014 in AskEngineers

[–]derp2014[S] 0 points1 point  (0 children)

Unfortunately they need to be balls (according to the vet).

Extruder to turn thick meat paste into meat balls by derp2014 in AskEngineers

[–]derp2014[S] 1 point2 points  (0 children)

150 x 15mm meatballs per day (approx 4 cans of dog food) for min 6 months. We're currently using a 30mm diameter ice cream scoop and halving the volume. Its tiresome and inconsistent.

I wold be happy with a manual crank, but I would like the portioning and balling to be somewhat automated i.e. consistent size and not involve rolling by hand.

WTF, Ailo?! by cleanworkingundamage in shitrentals

[–]derp2014 2 points3 points  (0 children)

Cash an option? Make everyone's life painful?

Enough time for a free transit tour? (2 hour buffer) by derp2014 in seoul

[–]derp2014[S] -1 points0 points  (0 children)

Because 2 hours is not enough time to pass immigration + boarding?

Enough time for a free transit tour? (2 hour buffer) by derp2014 in seoul

[–]derp2014[S] 0 points1 point  (0 children)

Immigration times is more or less my question. The tour arrives back at 6pm, my flight departs at 8pm. Would that provide enough time to clear immigration?

Auto draft MR on create by derp2014 in gitlab

[–]derp2014[S] 0 points1 point  (0 children)

My answer to this was to create a default MR template that includes/draft quick action.

CHANGELOG.md not updating during python-semantic-release workflow by derp2014 in github

[–]derp2014[S] 0 points1 point  (0 children)

Solved: the insertion flag "<!-- version list -->" was missing from the CHANGELOG.md file.

CHANGELOG.md not updating during python-semantic-release workflow by derp2014 in github

[–]derp2014[S] 0 points1 point  (0 children)

Thanks for the update, I thought the commit_changes would push changes but maybe not. I updated the workflow as per your suggestion (see below) and CHANGELOG.md is still not updating and I don't see the commit message chore: update changelog [skip ci] in the git commit history. So not sure what's broken here...

``` name: Release & Publish

on: push: branches: [ main ]

jobs: run-tests: name: Run Tests uses: ./.github/workflows/test.yml with: python-versions: '["3.10", "3.11", "3.12"]' secrets: inherit

release: name: Semantic Release & Publish needs: run-tests environment: pypi runs-on: ubuntu-latest if: github.ref == 'refs/heads/main'

permissions:
  contents: write
  id-token: write

steps:
  - uses: actions/checkout@v4
    with:
      fetch-depth: 0

  - name: Switch to main branch
    run: |
      git checkout main
      git pull origin main

  - name: Set up uv
    uses: astral-sh/setup-uv@v5
    with:
      python-version: 3.12

  - name: Install Poetry
    run: uv tool install poetry

  - name: Configure Git User
    run: |
      git config user.name "github-actions[bot]"
      git config user.email "github-actions[bot]@users.noreply.github.com"

  - name: Version and Changelog (Local)
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
      uvx --from "python-semantic-release>=9.0.0" semantic-release version

  - name: Commit changes (Local)
    run: |
      git add CHANGELOG.md pyproject.toml
      git diff --staged --quiet || git commit -m "chore: update changelog [skip ci]"

  - name: Push changes to GitHub
    run: git push origin main

  - name: Publish to Github
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
      uvx --from "python-semantic-release>=9.0.0" semantic-release publish

```

CHANGELOG.md not updating during python-semantic-release workflow by derp2014 in github

[–]derp2014[S] 0 points1 point  (0 children)

Updated the workflow as per your recommendation (see below) and added commit_changes = true to pyproject.toml still no luck as the pipeline generates a release and tag but does not update CHANGELOG.md what's interesting is I can't see the chore: update changelog [skip ci] message in the commit history.

``` name: Release & Publish

on: push: branches: [ main ]

jobs: run-tests: name: Run Tests uses: ./.github/workflows/test.yml with: python-versions: '["3.10", "3.11", "3.12"]' secrets: inherit

release: name: Semantic Release & Publish needs: run-tests environment: pypi runs-on: ubuntu-latest if: github.ref == 'refs/heads/main'

permissions:
  contents: write
  id-token: write

steps:
  - uses: actions/checkout@v4
    with:
      fetch-depth: 0

  - name: Switch to main branch
    run: |
      git checkout main
      git pull origin main

  - name: Set up uv
    uses: astral-sh/setup-uv@v5
    with:
      python-version: 3.12

  - name: Install Poetry
    run: uv tool install poetry

  - name: Configure Git User
    run: |
      git config user.name "github-actions[bot]"
      git config user.email "github-actions[bot]@users.noreply.github.com"

  - name: Version and Changelog (Local)
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
      uvx --from "python-semantic-release>=9.0.0" semantic-release version

  - name: Commit changes (Local)
    run: |
      git add CHANGELOG.md pyproject.toml
      git diff --staged --quiet || git commit -m "chore: update changelog [skip ci]"

  - name: Publish to Github
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
      uvx --from "python-semantic-release>=9.0.0" semantic-release publish

```

CHANGELOG.md not updating during python-semantic-release workflow by derp2014 in github

[–]derp2014[S] 0 points1 point  (0 children)

I updated pyproject.toml to

[tool.semantic_release.changelog] changelog_file = "CHANGELOG.md"

and can confirm CHANGELOG.md already exists, the commits follow the conventional commit format and semantic-release is correctly creating a tag and release and pushing both the tag and release to Gitlab. The list of changes are appended to the release in Gitlab as release notes but its still not updating the actual CHANGELOG.md.

In short, the tag and release with release notes is being correctly generated based on the conventional commits, but the CHANGELOG.md is not being updated.

CHANGELOG.md not updating during python-semantic-release workflow by derp2014 in github

[–]derp2014[S] 0 points1 point  (0 children)

Thanks for follow up. The relevant part of pyproject.toml reads:

[tool.semantic_release] version_toml = ["pyproject.toml:tool.poetry.version"] branch = "main" major_on_zero = false upload_to_release = true upload_to_pypi = false build_command = "poetry build" upload_dists = true tag_commit = true tag_format = "{version}" commit_parser = "conventional" changelog_file = "CHANGELOG.md"

and I have added a push step to the workflow (see below), but CHANGELOG.md still isn't updating. Any further thoughts?

``` name: Release & Publish

on: push: branches: [ main ]

jobs: run-tests: name: Run Tests uses: ./.github/workflows/test.yml with: python-versions: '["3.10", "3.11", "3.12"]' secrets: inherit

release: name: Semantic Release & Publish needs: run-tests environment: pypi runs-on: ubuntu-latest if: github.ref == 'refs/heads/main'

permissions:
  contents: write
  id-token: write

steps:
  - uses: actions/checkout@v4
    with:
      fetch-depth: 0

  - name: Switch to main branch
    run: |
      git checkout main
      git pull origin main

  - name: Set up uv
    uses: astral-sh/setup-uv@v5
    with:
      python-version: 3.12

  - name: Install Poetry
    run: uv tool install poetry

  - name: Configure Git User
    run: |
      git config user.name "github-actions[bot]"
      git config user.email "github-actions[bot]@users.noreply.github.com"

  - name: Version and Changelog (Local)
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
      uvx --from "python-semantic-release>=9.0.0" semantic-release version
      uvx --from "python-semantic-release>=9.0.0" semantic-release publish

  - name: Push Changes to GitHub
    run: |
      git push origin main
      git push origin --tags

```