Skip to content

Use upstream adslib directly from Beckhoff#508

Closed
stlehmann wants to merge 988 commits intomasterfrom
ads-from-upstream-integration
Closed

Use upstream adslib directly from Beckhoff#508
stlehmann wants to merge 988 commits intomasterfrom
ads-from-upstream-integration

Conversation

@stlehmann
Copy link
Copy Markdown
Owner

Resolves #507

stlehmann and others added 30 commits February 20, 2021 21:01
- convert data values from dict into bytes, and write bytes
  accordingly in adsSumWrite()
- unit test still fails since data structure is lost during writing
Needs to be filled with life
The use-case where no structure_def is passed is covered by the ads.write_list_by_name and read_list_by_name functions.
…st_by_name

Structure support for write list by name
Auto-upload package to PyPi
First test of Github Actions
@RobertoRoos
Copy link
Copy Markdown
Contributor

RobertoRoos commented Apr 10, 2026

It would be easier for us to rely on the upstream directly.

The downside is it will require more dependencies on the client system, in case we don't have a pre-compiled wheel for them. @stlehmann do you think this is acceptable? I myself have no real idea how complete our wheel coverage is right now.

EDIT: Also relevant for editable installs from source.

@stlehmann
Copy link
Copy Markdown
Owner Author

stlehmann commented Apr 22, 2026

@RobertoRoos I'm in contact with Patrick Bruenn from Beckhoff discussing how to make adslib directly compilable to a shared library. So far it looks promising.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 22, 2026

Coverage Report for CI Build 25001451298

Coverage decreased (-0.02%) to 93.389%

Details

  • Coverage decreased (-0.02%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 11466
Covered Lines: 10708
Line Coverage: 93.39%
Coverage Strength: 0.93 hits per line

💛 - Coveralls

@stlehmann stlehmann closed this Apr 27, 2026
@stlehmann stlehmann deleted the ads-from-upstream-integration branch April 27, 2026 14:52
@stlehmann stlehmann restored the ads-from-upstream-integration branch April 27, 2026 14:59
@RobertoRoos
Copy link
Copy Markdown
Contributor

@stlehmann what just happened in this repo? All PRs got closed, was that you? Those PRs (and this one too) suddenly show 900+ commits diff. Which is about the entire size of this repo.

@stlehmann
Copy link
Copy Markdown
Owner Author

@RobertoRoos sadly I must admit that this was me, indeed. Yesterday I accidentally force-pushed another repository to pyads. I tackled by force-pushing the current version of pyads again. Unfortunately all PRs got closed. I haven't found a way to deal with this, yet. Any help is welcome. I'm sorry for the mess 😒.

@RobertoRoos
Copy link
Copy Markdown
Contributor

RobertoRoos commented Apr 28, 2026

Oof 😅
That's alright, these things happen.

I fetched locally without pulling and it doesn't show any differences with the upstream, so all commit references, tags, etc. should still work.

We should re-open the closed PRs, but maybe put them in 'Draft' because I think they would require a touchup before they could be merged.

@stlehmann
Copy link
Copy Markdown
Owner Author

Tell me ... 😮‍💨
Now I set up a branch protection rule to prevent this from happening again, hopefully.

Yes, I would like to re-open the PRs again. Don't know really how to do this because they refuse to enable the "REOPEN" button:

grafik

If someone has a good idea ...

@chrisbeardy
Copy link
Copy Markdown
Collaborator

Oh dear, I thought something was up. I feel like we must be able to recover from this somehow, did it rewrite history? If not we may be able to rewrite it back.

@RobertoRoos
Copy link
Copy Markdown
Contributor

RobertoRoos commented Apr 29, 2026

@chrisbeardy , the history is still identical, I checked that yesterday. See my comment above.

I was experimenting with trying to re-open #419 . I just rebased and force-pushed that branch, but the existing PR still shows this 901 commits diff.

This seems to be a known situation, see for example: https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c

EDIT: @stlehmann are you allowed to re-open #419 now? I reset my branch back to the last commit of master before the master-force-push, like the linked snippet suggests.

@stlehmann
Copy link
Copy Markdown
Owner Author

Conversation continues in #511

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.

Implement adslib directly from Beckhoff repository